1 2008-11-17 Simon Josefsson <simon@josefsson.org>
3 * m4/warnings.m4: Use CPPFLAGS to really check whether the
6 2008-11-17 Simon Josefsson <simon@josefsson.org>
8 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
10 2008-11-17 Bruce Korb <bkorb@gnu.org>
12 * modules/parse-duration-tests: New file.
13 * tests/test-parse-duration.sh: New file.
14 * tests/test-parse-duration.c: New file.
16 New module 'parse-duration'.
17 * lib/parse-duration.h: New file.
18 * lib/parse-duration.c: New file.
19 * modules/parse-duration: New file.
21 2008-11-17 Bruno Haible <bruno@clisp.org>
23 * tests/test-select-out.sh: Comment out the first pipe test.
24 Reported by Simon Josefsson.
26 2008-11-17 Bruno Haible <bruno@clisp.org>
28 * modules/getaddrinfo (Depends-on): Add servent, hostent.
29 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
32 2008-11-17 Bruno Haible <bruno@clisp.org>
34 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
35 -lnetwork and -lnet. Needed for Haiku and BeOS.
37 2008-11-16 Bruno Haible <bruno@clisp.org>
39 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
41 2008-11-16 Bruno Haible <bruno@clisp.org>
43 Avoid test failure on Haiku.
44 * tests/test-fsync.c: Include <errno.h>.
45 (main): Don't require that fsync (0) fails.
47 2008-11-15 Bruno Haible <bruno@clisp.org>
50 * modules/hostent: New file.
51 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
53 2008-11-15 Bruno Haible <bruno@clisp.org>
56 * modules/servent: New file.
57 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
59 2008-11-15 Bruno Haible <bruno@clisp.org>
61 Avoid generating same test program with two different rules.
62 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
63 test-frexp to test-frexp-nolibm.
64 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
65 test-frexpl to test-frexpl-nolibm.
67 2008-11-15 Bruno Haible <bruno@clisp.org>
69 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
72 2008-11-15 Bruno Haible <bruno@clisp.org>
74 * lib/netdb.in.h: Activate the definitions also when the system's
75 <netdb.h> has 'struct addrinfo'.
76 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
77 EAI_OVERFLOW or AI_NUMERICSERV.
78 * doc/posix-headers/netdb.texi: Document the problem.
80 2008-11-15 Bruno Haible <bruno@clisp.org>
82 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
84 Make the 'sched' module work on platforms where <sched.h> exists but
85 is incomplete (such as Haiku).
86 * lib/sched.in.h; Include the system's <sched.h> if it exists.
87 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
88 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
89 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
90 HAVE_STRUCT_SCHED_PARAM.
91 * modules/sched (Depends-on): Add include_next.
92 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
93 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
94 * doc/posix-headers/sched.texi: Document the issue.
96 2008-11-13 Jim Meyering <meyering@redhat.com>
98 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
99 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
100 test would fail due to the difference in the Report bugs to ...
101 line. The expected address is empty, "<>", while the actual
102 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
104 2008-11-12 Bruno Haible <bruno@clisp.org>
106 lstat: don't compile lstat.c on systems lacking lstat
107 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
108 which don't have lstat; this is handled by lib/sys_stat.in.h already.
109 Reported by Daniel P. Berrange via Jim Meyering.
111 2008-11-12 Jim Meyering <meyering@redhat.com>
113 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
115 2008-11-12 Simon Josefsson <simon@josefsson.org>
117 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
120 2008-11-12 Bruno Haible <bruno@clisp.org>
122 * lib/unicodeio.c: Include unistr.h.
123 (utf8_wctomb): Remove function.
124 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
126 2008-11-12 Simon Josefsson <simon@josefsson.org>
128 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
129 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
131 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
133 2008-11-12 Simon Josefsson <simon@josefsson.org>
135 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
136 * doc/gnulib.texi: Add section for warnings.
138 2008-11-11 Bruno Haible <bruno@clisp.org>
140 * lib/sockets.h: Add a comment.
142 2008-11-11 Karl Berry <karl@gnu.org>
144 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
146 2008-11-11 Eric Blake <ebb9@byu.net>
148 fdl.texi: avoid git symlinks
149 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
151 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
153 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
155 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
157 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
158 (gl_WARN_ADD): Substitute $2 if literal.
160 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
162 * m4/warning.m4: Remove.
164 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
166 * m4/warnings.m4: Almost complete rewrite. :-)
168 2008-11-10 Simon Josefsson <simon@josefsson.org>
170 * modules/warnings: New module.
171 * m4/warnings.m4: New file.
172 * MODULES.html.sh: Mention warnings module.
173 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
174 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
176 2008-11-10 Eric Blake <ebb9@byu.net>
178 fdl.texi: make a symlink to the latest version
179 * doc/standards.texi: Revert today's earlier change.
180 * doc/fdl-1.2.texi: Rename from old fdl.texi...
181 * doc/fdl.texi: ...and replace this with a symlink to the newer
184 2008-11-10 Bruno Haible <bruno@clisp.org>
186 * tests/test-select-fd.c (main): Accept the result file name as fourth
188 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
189 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
191 2008-11-10 Bruno Haible <bruno@clisp.org>
193 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
194 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
195 as autoconf-substituted macros.
196 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
197 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
198 gl_NETDB_H_DEFAULTS. Set these variables.
199 * modules/netdb (Makefile.am): Substitute these variables.
201 2008-11-10 Eric Blake <ebb9@byu.net>
203 standards.texi: include correct file for FDL 1.3
204 * doc/standards.texi (GNU Free Documentation License): Change
205 include file to pull in FDL 1.3, not 1.2.
207 fdl.texi: revert accidental change to license
208 * doc/fdl.texi: This is FDL 1.2, not 1.3.
210 2008-11-10 Bruno Haible <bruno@clisp.org>
212 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
213 cross-compiling guesses also when the native compile gives no result.
215 2008-11-10 Bruno Haible <bruno@clisp.org>
217 * lib/spawni.c (__spawni): Force variable into the stack.
219 2008-11-10 Bruno Haible <bruno@clisp.org>
221 Add support for Haiku.
222 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
223 glibc and BeOS, but also on Haiku.
224 * lib/fpurge.c (fpurge): Likewise.
225 * lib/freadable.c (freadable): Likewise.
226 * lib/freadahead.c (freadahead): Likewise.
227 * lib/freading.c (freading): Likewise.
228 * lib/freadptr.c (freadptr): Likewise.
229 * lib/freadseek.c (freadptrinc): Likewise.
230 * lib/fseeko.c (rpl_fseeko): Likewise.
231 * lib/fseterr.c (fseterr): Likewise.
232 * lib/fwritable.c (fwritable): Likewise.
233 * lib/fwriting.c (fwriting): Likewise.
234 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
236 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
238 * lib/config.charset: Treat Haiku like BeOS.
240 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
242 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
243 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
245 2008-11-08 Bruno Haible <bruno@clisp.org>
247 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
250 2008-11-08 Bruno Haible <bruno@clisp.org>
252 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
254 2008-11-08 Bruno Haible <bruno@clisp.org>
256 * tests/test-select-fd.c: New file.
257 * tests/test-select-in.sh: New file.
258 * tests/test-select-out.sh: New file.
259 * tests/test-select-stdin.c: New file.
260 * modules/select-tests (Files): Add the new files.
261 (Depends-on): Add gettimeofday.
262 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
263 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
264 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
266 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
267 Bruno Haible <bruno@clisp.org>
269 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
271 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
273 * build-aux/pmccabe2html: Added support for C++ source files.
275 2008-11-05 Ben Pfaff <blp@gnu.org>
277 Fix lib/close.c build on Windows.
278 * modules/close (Files): Add lib/w32sock.h.
280 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
282 Accept Bison's NEWS format.
283 * build-aux/announce-gen (print_news_deltas): Tweak
286 2008-11-04 Bruno Haible <bruno@clisp.org>
288 * modules/random_r (Maintainer): Add glibc.
290 2008-11-04 Simon Josefsson <simon@josefsson.org>
292 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
293 by karl@freefriends.org (Karl Berry).
294 * doc/alloca.texi: Likewise.
295 * doc/c-ctype.texi: Likewise.
296 * doc/c-strcase.texi: Likewise.
297 * doc/c-strcaseeq.texi: Likewise.
298 * doc/c-strcasestr.texi: Likewise.
299 * doc/c-strstr.texi: Likewise.
300 * doc/c-strtod.texi: Likewise.
301 * doc/c-strtold.texi: Likewise.
302 * doc/ctime.texi: Likewise.
303 * doc/error.texi: Likewise.
304 * doc/fdl.texi: Likewise.
305 * doc/gcd.texi: Likewise.
306 * doc/getdate.texi: Likewise.
307 * doc/gnulib-intro.texi: Likewise.
308 * doc/gnulib-tool.texi: Likewise.
309 * doc/gnulib.texi: Likewise.
310 * doc/inet_ntoa.texi: Likewise.
311 * doc/maintain.texi: Likewise.
312 * doc/make-stds.texi: Likewise.
313 * doc/quote.texi: Likewise.
314 * doc/regexprops-generic.texi: Likewise.
315 * doc/standards.texi: Likewise.
316 * doc/verify.texi: Likewise.
317 * doc/visibility.texi: Likewise.
318 * doc/gnulib.texi (GNU Free Documentation License): Include
319 fdl-1.3.texi instead of fdl.texi.
321 2008-11-04 Simon Josefsson <simon@josefsson.org>
323 * doc/fdl-1.3.texi: New file, from
324 <http://www.gnu.org/licenses/fdl-1.3.texi>.
325 * modules/fdl-1.3: Add.
326 * MODULES.html.sh: Add fdl-1.3.
328 2008-11-03 Bruno Haible <bruno@clisp.org>
330 Make determination of absolute name of header file work with AIX xlc.
331 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
332 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
334 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
335 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
337 2008-11-03 Simon Josefsson <simon@josefsson.org>
339 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
340 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
343 2008-11-02 Bruno Haible <bruno@clisp.org>
345 Mark 'strpbrk' obsolete.
346 * modules/strpbrk (Status, Notice): New sections.
347 * modules/strtok_r (Depends-on): Add strpbrk.
349 2008-11-02 Bruno Haible <bruno@clisp.org>
351 Mark 'strdup' obsolete.
352 * modules/strdup (Status, Notice): New sections.
353 * modules/findprog (Depends-on): Add strdup.
354 * modules/getaddrinfo (Depends-on): Likewise.
355 * modules/localename (Depends-on): Likewise.
356 * modules/relocatable-lib (Depends-on): Likewise.
357 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
358 * modules/relocatable-prog (Depends-on): Likewise.
359 * modules/trim (Depends-on): Likewise.
360 * modules/unictype/gen-ctype (Depends-on): Likewise.
361 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
363 2008-11-02 Bruno Haible <bruno@clisp.org>
365 Mark 'strcspn' obsolete.
366 * modules/strcspn (Status, Notice): New sections.
368 2008-11-02 Bruno Haible <bruno@clisp.org>
370 Mark 'rmdir' obsolete.
371 * modules/rmdir (Status, Notice): New sections.
372 * modules/clean-temp (Depends-on): Add rmdir.
373 * modules/openat (Depends-on): Likewise.
375 2008-11-02 Bruno Haible <bruno@clisp.org>
377 Mark 'raise' obsolete.
378 * modules/raise (Status, Notice): New sections.
379 (Include): Specify <signal.h>.
380 * modules/stdio (Depends-on): Add raise.
381 * modules/write (Depends-on): Likewise.
383 2008-11-02 Bruno Haible <bruno@clisp.org>
385 Mark 'memset' obsolete.
386 * modules/memset (Status, Notice): New sections.
388 2008-11-02 Bruno Haible <bruno@clisp.org>
390 Mark 'memmove' obsolete.
391 * modules/memmove (Status, Notice): New sections.
392 * modules/argp (Depends-on): Add memmove.
393 * modules/argz (Depends-on): Likewise.
394 * modules/canonicalize (Depends-on): Likewise.
395 * modules/canonicalize-lgpl (Depends-on): Likewise.
396 * modules/fts (Depends-on): Likewise.
397 * modules/getcwd (Depends-on): Likewise.
398 * modules/human (Depends-on): Likewise.
399 * modules/regex (Depends-on): Likewise.
400 * modules/striconveh (Depends-on): Likewise.
401 * modules/trim (Depends-on): Likewise.
402 * modules/unistr/u8-move (Depends-on): Likewise.
403 * modules/unistr/u16-move (Depends-on): Likewise.
404 * modules/unistr/u32-move (Depends-on): Likewise.
406 2008-11-02 Bruno Haible <bruno@clisp.org>
408 Mark 'memcpy' obsolete.
409 * modules/memcpy (Status, Notice): New sections.
411 2008-11-02 Bruno Haible <bruno@clisp.org>
413 Mark 'memcmp' obsolete.
414 * modules/memcmp (Status, Notice): New sections.
415 * modules/argmatch (Depends-on): Add memchr.
416 * modules/backupfile (Depends-on): Likewise.
417 * modules/c-strcasestr (Depends-on): Likewise.
418 * modules/crypto/des (Depends-on): Likewise.
419 * modules/csharpcomp (Depends-on): Likewise.
420 * modules/fnmatch (Depends-on): Likewise.
421 * modules/git-merge-changelog (Depends-on): Likewise.
422 * modules/isnand (Depends-on): Likewise.
423 * modules/isnand-nolibm (Depends-on): Likewise.
424 * modules/isnanf (Depends-on): Likewise.
425 * modules/isnanf-nolibm (Depends-on): Likewise.
426 * modules/isnanl (Depends-on): Likewise.
427 * modules/isnanl-nolibm (Depends-on): Likewise.
428 * modules/mbchar (Depends-on): Likewise.
429 * modules/memcoll (Depends-on): Likewise.
430 * modules/quotearg (Depends-on): Likewise.
431 * modules/regex (Depends-on): Likewise.
432 * modules/relocatable-prog (Depends-on): Likewise.
433 * modules/same (Depends-on): Likewise.
434 * modules/signbit (Depends-on): Likewise.
435 * modules/strcasestr-simple (Depends-on): Likewise.
436 * modules/unictype/gen-ctype (Depends-on): Likewise.
437 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
438 * modules/uniname/uniname (Depends-on): Likewise.
439 * modules/unistr/u8-cmp (Depends-on): Likewise.
441 2008-11-02 Bruno Haible <bruno@clisp.org>
443 Mark 'memchr' obsolete.
444 * modules/memchr (Status, Notice): New sections.
445 * modules/argp (Depends-on): Add memchr.
446 * modules/base64 (Depends-on): Likewise.
447 * modules/c-strcasestr (Depends-on): Likewise.
448 * modules/chdir-long (Depends-on): Likewise.
449 * modules/fnmatch (Depends-on): Likewise.
450 * modules/getsubopt (Depends-on): Likewise.
451 * modules/git-merge-changelog (Depends-on): Likewise.
452 * modules/glob (Depends-on): Likewise.
453 * modules/strcasestr-simple (Depends-on): Likewise.
454 * modules/strnlen (Depends-on): Likewise.
456 2008-11-02 Bruno Haible <bruno@clisp.org>
458 Mark 'atexit' obsolete.
459 * modules/atexit (Status, Notice): New sections.
460 * modules/chdir-long (Depends-on): Add atexit.
461 * modules/wait-process (Depends-on): Likewise.
463 2008-11-02 Bruno Haible <bruno@clisp.org>
465 * gnulib-tool: New option --with-obsolete.
466 (func_usage): Document it.
467 (func_modules_transitive_closure): Drop obsolete dependencies if
468 incobsolete is not true.
469 (func_import): Read and save the incobsolete variable to the cache.
471 2008-11-02 Bruno Haible <bruno@clisp.org>
473 * modules/TEMPLATE-EXTENDED: New field 'Status'.
474 * gnulib-tool: New option --extract-status.
475 (func_usage): Document it.
476 (sed_extract_prog): Recognize it.
477 (func_get_status): New function.
479 2008-10-30 Simon Josefsson <simon@josefsson.org>
481 * modules/sockets (License): Change from LGPL to LGPLv2+.
483 2008-10-28 Simon Josefsson <simon@josefsson.org>
485 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
487 2008-10-28 Simon Josefsson <simon@josefsson.org>
489 * MODULES.html.sh (Support for systems lacking POSIX:2001):
490 Mention times and sys_times.
491 * modules/sys_times, modules/sys_times-tests: New modules.
492 * modules/times, modules/times-tests: Likewise
493 * m4/sys_times_h.m4: New file.
494 * lib/sys_times.in.h: Likewise
495 * lib/times.c: Likewise.
496 * tests/test-sys_times.c: Likewise.
497 * tests/test-times.c: Likewise.
498 * doc/posix-headers/sys_times.texi: Update.
499 * doc/posix-functions/times.texi: Update.
501 2008-10-28 Jim Meyering <meyering@redhat.com>
503 * modules/tempname (Depends-on): Add lstat.
505 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
507 2008-10-28 Simon Josefsson <simon@josefsson.org>
509 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
510 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
511 using idiom used elsewhere in gnulib.
513 2008-10-27 Jim Meyering <meyering@redhat.com>
515 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
517 2008-10-27 Simon Josefsson <simon@josefsson.org>
519 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
520 TESTS_ENVIRONMENT, for shell scripts that needs to call built
522 * tests/test-argp-2.sh: Use $EXEEXT when needed.
524 2008-10-27 Simon Josefsson <simon@josefsson.org>
526 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
528 2008-10-27 Bruno Haible <bruno@clisp.org>
530 * tests/test-lstat.c: Include <stdio.h>.
532 2008-10-27 Simon Josefsson <simon@josefsson.org>
534 * modules/lstat-tests: New module.
535 * tests/test-lstat.c: New file.
537 2008-10-26 Jim Meyering <meyering@redhat.com>
539 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
541 2008-10-26 Simon Josefsson <simon@josefsson.org>
542 Bruno Haible <bruno@clisp.org>
544 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
545 * modules/configmake (Include): Add a note that the include must come
546 after all system headers.
547 * lib/javaversion.c: Include configmake.h after all other includes.
549 2008-10-26 Bruno Haible <bruno@clisp.org>
551 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
552 HAVE_STRUCT_RANDOM_DATA to 1.
553 (gl_STDLIB_H): Simplify.
555 2008-10-26 Simon Josefsson <simon@josefsson.org>
557 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
558 substitute HAVE_STRUCT_RANDOM_DATA.
559 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
561 * modules/stdlib (Makefile.am): Substitute
562 HAVE_STRUCT_RANDOM_DATA.
564 2008-10-26 Simon Josefsson <simon@josefsson.org>
566 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
567 * doc/gnulib-intro.texi (Copyright): Likewise.
569 2008-10-26 Simon Josefsson <simon@josefsson.org>
571 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
574 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
575 Bruno Haible <bruno@clisp.org>
577 * lib/unistd.in.h: Include <winsock2.h>.
578 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
579 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
580 Provide dummy declarations.
581 (gethostname): Override.
582 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
583 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
584 gl_PREREQ_SYS_H_WINSOCK2.
585 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
586 * doc/posix-functions/gethostname.texi: More details.
588 2008-10-25 Bruno Haible <bruno@clisp.org>
590 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
591 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
592 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
594 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
596 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
597 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
598 gl_UNISTD_H_DEFAULTS.
600 2008-10-25 Eric Blake <ebb9@byu.net>
602 signbit: avoid spurious compiler failure
603 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
604 declarations inside function.
606 2008-10-24 Simon Josefsson <simon@josefsson.org>
607 Bruno Haible <bruno@clisp.org>
609 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
610 * modules/random_r (Depends-on): Add stdint.
612 2008-10-24 Bruno Haible <bruno@clisp.org>
614 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
616 * modules/strerror (License): Likewise.
618 2008-10-24 Jim Meyering <meyering@redhat.com>
620 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
621 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
623 2008-10-24 Eric Blake <ebb9@byu.net>
625 getgroups: fix compilation when getgroups is available
626 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
627 but with <config.h> override of getgroups disabled.
629 2008-10-24 Simon Josefsson <simon@josefsson.org>
631 * doc/gnulib.texi (Header files): Add note about C++ problems.
632 Explained by Bruno Haible <bruno@clisp.org>.
634 2008-10-23 Bruno Haible <bruno@clisp.org>
636 Define a dummy SA_NODEFER macro on Interix.
637 * lib/signal.in.h (SA_NODEFER): Define fallback.
638 Reported by Aleksey Cheusov <cheusov@tut.by> via
639 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
641 2008-10-23 Bruno Haible <bruno@clisp.org>
643 * modules/freadahead (License): Change to LGPLv2+.
644 Suggested by Simon Josefsson.
646 2008-10-23 Jim Meyering <meyering@redhat.com>
649 * modules/random_r: New file.
650 * m4/random_r.m4: New file.
651 * lib/random_r.c: New file, from glibc.
652 * modules/random_r-tests: New file.
653 * tests/test-random_r.c: New file.
654 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
657 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
658 * modules/stdlib: Substitute them, too.
659 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
660 * doc/glibc-functions/initstate_r.texi: Mention the new module.
661 * doc/glibc-functions/random_r.texi: Likewise.
662 * doc/glibc-functions/setstate_r.texi: Likewise.
663 * doc/glibc-functions/srandom_r.texi: Likewise.
664 * config/srclist.txt: Mention it.
666 2008-10-23 David Lutterkort <lutter@redhat.com>
668 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
671 2008-10-23 Jim Meyering <meyering@redhat.com>
673 selinux-h: mark parameters of stub functions as intentionally unused
674 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
675 * lib/se-context.in.h: Likewise.
677 2008-10-22 Simon Josefsson <simon@josefsson.org>
679 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
681 2008-10-22 Simon Josefsson <simon@josefsson.org>
683 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
685 2008-10-22 Eric Blake <ebb9@byu.net>
687 glthread/thread: avoid compiler warning
688 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
689 Add unreachable abort to silence compiler.
691 2008-10-22 Eric Blake <ebb9@byu.net>
693 netdb: also supply struct addrinfo for cygwin 1.5.x
694 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
696 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
698 * doc/posix-headers/netdb.texi (netdb.h): Document this.
700 2008-10-22 Bruno Haible <bruno@clisp.org>
702 * users.txt: Update entry about pspp.
704 2008-10-21 Bruno Haible <bruno@clisp.org>
707 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
708 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
711 * lib/ioctl.c (ioctl): Don't undefine.
712 * lib/socket.c (socket): Don't undefine.
714 Remove unused module indicator macros.
715 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
716 GNULIB_$1 as a C macro.
718 * doc/posix-functions/close.texi: Undo last change.
719 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
722 2008-10-21 Bruno Haible <bruno@clisp.org>
724 Add gethostname() declaration to <unistd.h>.
725 * lib/unistd.in.h (gethostname): New declaration.
726 * lib/gethostname.c: Include <unistd.h>.
727 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
728 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
729 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
730 and HAVE_GETHOSTNAME.
731 * modules/gethostname (Depends-on): Add unistd.
732 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
733 (Include): Specify <unistd.h>.
734 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
736 * tests/test-gethostname.c: Include <unistd.h> first.
738 2008-10-21 Bruno Haible <bruno@clisp.org>
740 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
741 * modules/select-tests (Depends-on): Likewise.
742 Reported by Simon Josefsson.
744 2008-10-21 Simon Josefsson <simon@josefsson.org>
746 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
747 * lib/accept.c: New file, based on winsock.c.
748 * lib/bind.c: New file, based on winsock.c.
749 * lib/connect.c: New file, based on winsock.c.
750 * lib/getpeername.c: New file, based on winsock.c.
751 * lib/getsockname.c: New file, based on winsock.c.
752 * lib/getsockopt.c: New file, based on winsock.c.
753 * lib/ioctl.c: New file, based on winsock.c.
754 * lib/listen.c: New file, based on winsock.c.
755 * lib/recv.c: New file, based on winsock.c.
756 * lib/recvfrom.c: New file, based on winsock.c.
757 * lib/send.c: New file, based on winsock.c.
758 * lib/sendto.c: New file, based on winsock.c.
759 * lib/setsockopt.c: New file, based on winsock.c.
760 * lib/shutdown.c: New file, based on winsock.c.
761 * lib/socket.c: New file, based on winsock.c.
762 * lib/w32sock.h: New file, based on winsock.c.
763 * lib/winsock.c: Remove file.
764 * modules/accept: Likewise.
765 * modules/bind: Likewise.
766 * modules/connect: Likewise.
767 * modules/getpeername: Likewise.
768 * modules/getsockname: Likewise.
769 * modules/getsockopt: Likewise.
770 * modules/ioctl: Likewise.
771 * modules/listen: Likewise.
772 * modules/recv: Likewise.
773 * modules/recvfrom: Likewise.
774 * modules/send: Likewise.
775 * modules/sendto: Likewise.
776 * modules/setsockopt: Likewise.
777 * modules/shutdown: Likewise.
778 * modules/socket: Use socket.c instead of winsock.c.
779 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
780 * doc/posix-functions/accept.texi: Doc fix.
781 * doc/posix-functions/bind.texi: Doc fix.
782 * doc/posix-functions/close.texi: Doc fix.
783 * doc/posix-functions/connect.texi: Doc fix.
784 * doc/posix-functions/getpeername.texi: Doc fix.
785 * doc/posix-functions/getsockname.texi: Doc fix.
786 * doc/posix-functions/getsockopt.texi: Doc fix.
787 * doc/posix-functions/ioctl.texi: Doc fix.
788 * doc/posix-functions/listen.texi: Doc fix.
789 * doc/posix-functions/recv.texi: Doc fix.
790 * doc/posix-functions/recvfrom.texi: Doc fix.
791 * doc/posix-functions/send.texi: Doc fix.
792 * doc/posix-functions/sendto.texi: Doc fix.
793 * doc/posix-functions/setsockopt.texi: Doc fix.
794 * doc/posix-functions/shutdown.texi: Doc fix.
795 * doc/posix-functions/socket.texi: Doc fix.
797 2008-10-20 Bruno Haible <bruno@clisp.org>
799 Take into account the role of SIGABRT_COMPAT on Windows 2008.
800 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
801 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
802 as an alias for SIGABRT.
803 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
804 (sigaction): Map it to SIGABRT.
805 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
807 2008-10-20 Bruno Haible <bruno@clisp.org>
809 * lib/fts.c: Don't include lstat.h.
810 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
812 Move the lstat() declaration to <sys/stat.h>.
813 * lib/lstat.h: Remove file.
814 * lib/sys_stat.in.h: Add special invocation convention.
815 (lstat): New declaration.
816 * lib/lstat.c (orig_lstat): New function.
817 (rpl_lstat): Use orig_lstat instead of lstat.
818 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
819 AC_C_INLINE. Set REPLACE_LSTAT.
820 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
822 * modules/lstat (Files): Remove lib/lstat.h.
823 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
824 (Include): Specify <sys/stat.h> instead of lstat.h.
825 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
827 * NEWS: Mention the change.
829 2008-10-20 Bruno Haible <bruno@clisp.org>
831 * modules/posix_spawn-tests: New file.
832 * tests/test-posix_spawn3.c: New file.
834 2008-10-20 Bruno Haible <bruno@clisp.org>
836 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
837 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
838 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
839 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
840 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
842 2008-10-20 Bruno Haible <bruno@clisp.org>
844 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
845 of posix_spawn on AIX 5.3.
847 2008-10-20 Bruno Haible <bruno@clisp.org>
849 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
851 2008-10-20 Bruno Haible <bruno@clisp.org>
853 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
856 2008-10-20 Simon Josefsson <simon@josefsson.org>
858 * lib/netdb.in.h: Don't define GNU specific constants until they
859 are supported or needed. Reported by Bruno Haible
862 2008-10-20 Simon Josefsson <simon@josefsson.org>
864 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
866 2008-10-20 Simon Josefsson <simon@josefsson.org>
868 * lib/getaddrinfo.h: Remove file.
869 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
870 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
871 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
872 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
873 * modules/netdb: Substitute GNULIB_GETADDRINFO.
874 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
875 * tests/test-getaddrinfo.c: Likewise.
876 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
877 * NEWS: Mention change.
879 2008-10-19 Bruno Haible <bruno@clisp.org>
881 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
883 2008-10-19 Bruno Haible <bruno@clisp.org>
885 * lib/wait-process.c: Include simply <sys/wait.h>.
886 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
887 WIFSTOPPED): Remove fallback definitions.
888 * modules/wait-process (Depends-on): Add sys_wait.
890 New module 'sys_wait'.
891 * modules/sys_wait: New file.
892 * lib/sys_wait.in.h: New file, partially copied from
894 * m4/sys_wait_h.m4: New file.
895 * doc/posix-headers/sys_wait.texi: Mention the new module.
897 2008-10-19 Bruno Haible <bruno@clisp.org>
899 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
901 2008-10-19 Bruno Haible <bruno@clisp.org>
903 Assume that waitpid() fills an 'int' status, not a 'union wait'.
904 * lib/wait-process.c (WAIT_T): Remove type.
905 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
906 (wait_subprocess): Update.
908 2008-10-19 Bruno Haible <bruno@clisp.org>
911 * modules/atoll: New file.
912 * lib/stdlib.in.h (atoll): New declaration.
913 * lib/atoll.c: New file, from glibc with modifications.
914 * m4/atoll.m4: New file.
915 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
917 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
918 * doc/posix-functions/atoll.texi: Mention the new module.
920 2008-10-19 Bruno Haible <bruno@clisp.org>
922 Add strtoull() declaration to <stdlib.h>.
923 * lib/stdlib.in.h (strtoull): New declaration.
924 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
926 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
928 * modules/strtoull (Depends-on): Add stdlib.
929 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
930 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
933 2008-10-19 Bruno Haible <bruno@clisp.org>
935 Add strtoll() declaration to <stdlib.h>.
936 * lib/stdlib.in.h (strtoll): New declaration.
937 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
939 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
941 * modules/strtoll (Depends-on): Add stdlib.
942 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
943 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
945 2008-10-19 Bruno Haible <bruno@clisp.org>
947 * modules/bcopy (Depends-on): Add strings.
948 (Include): Specify <strings.h>.
950 2008-10-19 Bruno Haible <bruno@clisp.org>
952 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
954 2008-10-19 Bruno Haible <bruno@clisp.org>
956 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
957 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
960 2008-10-19 Bruno Haible <bruno@clisp.org>
962 * lib/atanl.c: Don't include isnanl.h.
963 * lib/cosl.c: Likewise.
964 * lib/ldexpl.c: Likewise.
965 * lib/logl.c: Likewise.
966 * lib/sinl.c: Likewise.
967 * lib/sqrtl.c: Likewise.
968 * lib/tanl.c: Likewise.
970 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
971 * lib/isnanf.h: Remove file.
972 * lib/isnand.h: Remove file.
973 * lib/isnanl.h: Remove file.
974 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
975 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
977 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
978 HAVE_ISNANF, don't define it as a C macro.
979 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
980 HAVE_ISNAND, don't define it as a C macro.
981 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
982 HAVE_ISNANL, don't define it as a C macro.
983 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
985 * modules/isnanf (Files): Remove lib/isnanf.h.
986 (Depends-on): Add math.
987 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
988 (Include): Specify <math.h> instead of isnanf.h.
989 * modules/isnand (Files): Remove lib/isnand.h.
990 (Depends-on): Add math.
991 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
992 (Include): Specify <math.h> instead of isnand.h.
993 * modules/isnanl (Files): Remove lib/isnanl.h.
994 (Depends-on): Add math.
995 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
996 (Include): Specify <math.h> instead of isnanl.h.
997 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
999 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
1000 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
1001 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
1002 * NEWS: Mention the change.
1004 2008-10-18 Bruno Haible <bruno@clisp.org>
1006 Add getusershell(), setusershell(), endusershell() declarations to
1008 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
1010 * lib/getusershell.c: Include unistd.h.
1011 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
1012 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
1014 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
1015 and HAVE_GETUSERSHELL.
1016 * modules/getusershell (Depends-on): Add unistd, extensions.
1017 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1018 (Include): Specify <unistd.h>.
1019 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
1022 2008-10-18 Bruno Haible <bruno@clisp.org>
1024 Add a getloadavg() declaration to <stdlib.h>.
1025 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
1026 getloadavg declaration.
1027 (getloadavg): New declaration.
1028 * lib/getloadavg.c: Include <stdlib.h> first.
1029 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
1030 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
1031 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
1032 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
1033 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
1034 * modules/getloadavg (Depends-on): Add stdlib, extensions.
1035 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1036 (Include): Specify <stdlib.h>.
1037 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
1038 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
1040 2008-10-18 Bruno Haible <bruno@clisp.org>
1042 * lib/dirchownmod.c: Don't include lchmod.h.
1044 Move the lchmod() declaration to <sys/stat.h>.
1045 * lib/lchmod.h: Remove file.
1046 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
1047 (lchmod): New declaration, moved here from lib/lchown.h.
1048 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
1049 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
1050 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
1052 * modules/lchmod (Files): Remove lib/lchmod.h.
1053 (Depends-on): Add sys_stat, extensions.
1054 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
1055 (Include): Specify <sys/stat.h> instead of lchmod.h.
1056 * modules/sys_stat (Depends-on): Add link-warning.
1057 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
1058 definition of GL_LINK_WARNING.
1059 * NEWS: Mention the change.
1061 2008-10-18 Bruno Haible <bruno@clisp.org>
1063 * lib/fchdir.c: Don't include dirfd.h.
1064 * lib/fts.c: Likewise.
1065 * lib/getcwd.c: Likewise.
1066 * lib/glob.c: Likewise.
1068 Move the dirfd() declaration to <dirent.h>.
1069 * lib/dirfd.h: Remove file.
1070 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
1071 (dirfd): New declaration.
1072 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
1073 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
1074 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
1076 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
1078 * modules/dirfd (Files): Remove lib/dirfd.h.
1079 (Depends-on): Add dirent, extensions.
1080 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
1081 (Include): Specify <dirent.h> instead of dirfd.h.
1082 * modules/dirent (Depends-on): Add link-warning.
1083 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
1084 definition of GL_LINK_WARNING.
1085 * NEWS: Mention the change.
1087 2008-10-18 Bruno Haible <bruno@clisp.org>
1089 Move the euidaccess() declaration to <unistd.h>.
1090 * lib/euidaccess.h: Remove file.
1091 * lib/unistd.in.h (euidaccess): New declaration.
1092 * lib/euidaccess.c: Don't include euidaccess.h.
1093 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
1094 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
1095 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
1096 and HAVE_EUIDACCESS.
1097 * modules/euidaccess (Files): Remove lib/euidaccess.h.
1098 (Depends-on): Add unistd.
1099 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1100 (Include): Specify <unistd.h> instead of euidaccess.h.
1101 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
1103 * NEWS: Mention the change.
1105 2008-10-18 Bruno Haible <bruno@clisp.org>
1107 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
1109 Move the getdomainname() declaration to <unistd.h>.
1110 * lib/getdomainname.h: Remove file.
1111 * lib/unistd.in.h (getdomainname): New declaration.
1112 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
1113 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
1114 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
1116 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1117 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
1118 * modules/getdomainname (Files): Remove lib/getdomainname.h.
1119 (Depends-on): Add unistd, extensions.
1120 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1121 (Includes): Specify <unistd.h> instead of getdomainname.h.
1122 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
1124 * NEWS: Mention the change.
1126 2008-10-18 Bruno Haible <bruno@clisp.org>
1128 * modules/dirent: New file.
1129 * m4/dirent_h.m4: New file.
1130 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
1131 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
1132 * modules/fchdir (Files): Remove lib/dirent.in.h.
1133 (Depends-on): Add dirent.
1134 (Makefile.am): Move rules to modules/dirent.
1135 * doc/posix-headers/dirent.texi: Mention the new module.
1137 2008-10-18 Bruno Haible <bruno@clisp.org>
1139 Avoid -Wunused-parameter warnings in public gnulib header files.
1140 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
1142 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
1144 2008-10-18 Bruno Haible <bruno@clisp.org>
1146 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
1147 * doc/glibc-functions/error.texi: Mention the module 'error'.
1148 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
1149 * doc/glibc-functions/getdomainname.texi: Mention the module
1151 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
1152 * doc/glibc-functions/getpagesize.texi: Mention the module
1154 * doc/glibc-functions/getusershell.texi: Mention the module
1156 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
1157 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
1158 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
1159 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
1160 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
1161 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
1162 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
1163 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
1164 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
1165 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
1166 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
1167 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
1168 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
1169 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
1171 2008-10-17 Bruno Haible <bruno@clisp.org>
1173 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
1174 HP-UX and IRIX, use -0.0L.
1175 * tests/test-ceill.c (minus_zero): Likewise.
1176 * tests/test-floorl.c (minus_zero): Likewise.
1177 * tests/test-frexpl.c (minus_zero): Likewise.
1178 * tests/test-isnan.c (minus_zerol): Likewise.
1179 * tests/test-isnanl.h (minus_zero): Likewise.
1180 * tests/test-ldexpl.c (minus_zero): Likewise.
1181 * tests/test-roundl.c (minus_zero): Likewise.
1182 * tests/test-signbit.c (minus_zerol): Likewise.
1183 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
1184 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
1185 * tests/test-truncl.c (minus_zero): Likewise.
1186 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
1187 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
1188 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
1189 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
1191 2008-10-17 Bruno Haible <bruno@clisp.org>
1193 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
1194 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
1195 that it gets activated only for gcc >= 3.0.
1196 * lib/dirent.in.h: Likewise.
1197 * lib/errno.in.h: Likewise.
1198 * lib/fcntl.in.h: Likewise.
1199 * lib/float.in.h: Likewise.
1200 * lib/iconv.in.h: Likewise.
1201 * lib/inttypes.in.h: Likewise.
1202 * lib/locale.in.h: Likewise.
1203 * lib/math.in.h: Likewise.
1204 * lib/netdb.in.h: Likewise.
1205 * lib/netinet_in.in.h: Likewise.
1206 * lib/search.in.h: Likewise.
1207 * lib/signal.in.h: Likewise.
1208 * lib/spawn.in.h: Likewise.
1209 * lib/stdarg.in.h: Likewise.
1210 * lib/stdint.in.h: Likewise.
1211 * lib/stdio.in.h: Likewise.
1212 * lib/stdlib.in.h: Likewise.
1213 * lib/string.in.h: Likewise.
1214 * lib/strings.in.h: Likewise.
1215 * lib/sys_file.in.h: Likewise.
1216 * lib/sys_ioctl.in.h: Likewise.
1217 * lib/sys_select.in.h: Likewise.
1218 * lib/sys_socket.in.h: Likewise.
1219 * lib/sys_stat.in.h: Likewise.
1220 * lib/sys_time.in.h: Likewise.
1221 * lib/sysexits.in.h: Likewise.
1222 * lib/time.in.h: Likewise.
1223 * lib/unistd.in.h: Likewise.
1224 * lib/wchar.in.h: Likewise.
1225 * lib/wctype.in.h: Likewise.
1226 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1228 2008-10-17 Jim Meyering <meyering@redhat.com>
1230 ignore-value: don't depend on inline module
1231 * modules/ignore-value (Depends-on): Remove 'inline'.
1232 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
1233 Suggestion from Bruno Haible.
1235 2008-10-17 Bruno Haible <bruno@clisp.org>
1237 New implementation of condition variables for Win32.
1238 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
1239 (gl_linked_waitqueue_t): New type.
1240 (gl_cond_t): Use it.
1241 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
1242 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
1243 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
1244 (glthread_cond_init_func, glthread_cond_wait_func,
1245 glthread_cond_timedwait_func, glthread_cond_signal_func,
1246 glthread_cond_broadcast_func, glthread_cond_destroy_func):
1247 Reimplemented on the basis of gl_linked_waitqueue_t.
1248 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
1250 (gl_rwlock_t): Update.
1251 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
1253 2008-10-17 Simon Josefsson <simon@josefsson.org>
1255 * modules/recvfrom (Depends-on): Add dependency on getpeername.
1256 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1258 2008-10-17 Jim Meyering <meyering@redhat.com>
1260 ignore-value: new module
1261 * modules/ignore-value: New file.
1262 * lib/ignore-value.h: New file.
1263 * MODULES.html.sh (Compiler warning management): New section,
1264 just for this module. More to come.
1266 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
1268 open-safer.c: avoid 'signed and unsigned in conditional...' warning
1269 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
1270 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
1272 2008-10-16 Jim Meyering <meyering@redhat.com>
1274 openat-die.c: avoid 'no previous prototype' warning
1275 * lib/openat-die.c: Include "openat.h".
1276 Reported by Reuben Thomas <rrt@sc3d.org>.
1278 2008-10-16 Simon Josefsson <simon@josefsson.org>
1280 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
1281 * lib/netdb.in.h: Fix typo.
1282 Reported by Bruno Haible <bruno@clisp.org>
1284 * lib/netdb.in.h: Include sys/socket.h for platforms without
1285 netdb.h, to get structures like hostent on MinGW.
1286 * modules/netdb (Depends-on): Add sys_socket.
1288 2008-10-15 Simon Josefsson <simon@josefsson.org>
1290 * modules/netdb, modules/netdb-tests: New file.
1291 * m4/netdb_h.m4: New file.
1292 * lib/netdb.in.h: Add, currently just an empty file pending
1294 * tests/test-netdb.c: New file.
1295 * doc/posix-headers/netdb.texi: Mention that we replace it if
1297 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1300 2008-10-15 Simon Josefsson <simon@josefsson.org>
1302 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
1305 2008-10-13 Bruno Haible <bruno@clisp.org>
1307 * lib/glthread/cond.c (glthread_cond_wait_func,
1308 glthread_cond_timedwait_func): Add a comment.
1310 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
1312 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
1313 * tests/test-select.c: Likewise,
1315 2008-10-13 Bruno Haible <bruno@clisp.org>
1317 * lib/glthread/cond.c (glthread_cond_wait_func,
1318 glthread_cond_timedwait_func): Fix variable name.
1319 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1321 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
1323 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
1324 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
1325 struct sockaddr.sa_len.
1326 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
1328 2008-10-13 Simon Josefsson <simon@josefsson.org>
1330 * build-aux/pmccabe2html: Add css and css_url parameters.
1332 2008-10-12 Bruno Haible <bruno@clisp.org>
1334 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
1336 Reported by Rainer Tammer <tammer@tammer.net>.
1338 2008-10-12 Bruno Haible <bruno@clisp.org>
1340 Use msvcrt aware primitives for creation/termination of Win32 threads.
1341 * lib/glthread/thread.c: Include <process.h>.
1342 (glthread_create_func): Use _beginthreadex instead of CreateThread.
1343 (wrapper_func): Update signature.
1344 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
1346 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
1347 Bruno Haible <bruno@clisp.org>
1349 Provide a Win32 implementation of the 'cond' module.
1350 * lib/glthread/cond.h [USE_WIN32]: New implementation.
1351 * lib/glthread/cond.c (glthread_cond_init_func,
1352 glthread_cond_wait_func, glthread_cond_timedwait_func,
1353 glthread_cond_signal_func, glthread_cond_broadcast_func,
1354 glthread_cond_destroy_func) [USE_WIN32]: New functions.
1355 * modules/cond (Dependencies): Add gettimeofday.
1357 2008-10-11 Bruno Haible <bruno@clisp.org>
1359 Make sleep work on older versions of mingw.
1360 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
1361 only whether it exists.
1362 * doc/posix-functions/sleep.texi: Mention the problem with older
1365 2008-10-11 Bruno Haible <bruno@clisp.org>
1367 New module 'shutdown'.
1368 * modules/shutdown: New file.
1369 * lib/sys_socket.in.h (shutdown): New declaration.
1370 * lib/winsock.c (shutdown): New function.
1371 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1373 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
1374 * doc/posix-functions/shutdown.texi: Document the new module.
1376 2008-10-11 Jim Meyering <meyering@redhat.com>
1378 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
1380 2008-10-11 Bruno Haible <bruno@clisp.org>
1382 New module 'fclose'.
1383 * modules/fclose: New file.
1384 * lib/stdio.in.h (fclose): New declaration.
1385 * lib/fclose.c: New file.
1386 * m4/fclose.m4: New file.
1387 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
1389 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
1390 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
1392 * modules/close (Depends-on): fclose.
1393 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
1395 2008-10-11 Bruno Haible <bruno@clisp.org>
1397 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
1398 set errno and don't call _close.
1400 2008-10-10 Bruno Haible <bruno@clisp.org>
1402 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
1403 ACL, not afterwards. Fixes test failure on Cygwin.
1405 2008-10-09 Ben Pfaff <blp@gnu.org>
1407 * build-aux/announce-gen: Fix gnulib version related part of usage
1408 message. Die with a useful error message if no tarballs are
1411 2008-10-10 Jim Meyering <meyering@redhat.com>
1413 bootstrap: use git's --depth=N option only if it's supported
1414 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
1415 recognize the --depth option. Reported by Pádraig Brady.
1417 2008-10-09 Bruno Haible <bruno@clisp.org>
1420 * modules/ioctl: New file.
1421 * lib/sys_socket.in.h (ioctl): Remove declaration.
1422 * lib/winsock.c: Include <sys/ioctl.h>.
1423 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
1424 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
1425 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
1426 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
1427 * doc/posix-functions/ioctl.texi: Mention the new module.
1429 2008-10-09 Bruno Haible <bruno@clisp.org>
1431 New module 'sys_ioctl'.
1432 * lib/sys_ioctl.in.h: New file.
1433 * m4/sys_ioctl_h.m4: New file.
1434 * modules/sys_ioctl: New file.
1435 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
1437 2008-10-09 Bruno Haible <bruno@clisp.org>
1439 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
1440 * lib/winsock.c: Include <stdarg.h>.
1441 (rpl_ioctl): Change to second argument 'int' and then varargs.
1443 2008-10-09 Bruno Haible <bruno@clisp.org>
1445 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
1446 when the sys_socket module is present and the system has <winsock2.h>.
1448 2008-10-09 Bruno Haible <bruno@clisp.org>
1450 * doc/posix-functions/close.texi: Mention module 'close' instead of
1451 module 'sys_socket'.
1453 2008-10-09 Bruno Haible <bruno@clisp.org>
1455 * doc/glibc-headers/sys_ioctl.texi: New file.
1456 * doc/gnulib.texi: Include it.
1458 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
1459 Bruno Haible <bruno@clisp.org>
1461 Combine the two replacements of 'close'.
1462 * lib/sys_socket.in.h (close): Define to a reminder to include
1464 (_gl_close_fd_maybe_socket): New declaration.
1465 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
1466 * lib/winsock.c (close): Remove undefinition.
1467 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
1468 needed for the gnulib module 'close'.
1469 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
1470 define to an error symbol or to a warning, if suitable.
1471 * lib/close.c: Include <sys/socket.h>.
1472 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
1473 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
1474 UNISTD_H_HAVE_WINSOCK2_H.
1475 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
1476 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1477 UNISTD_H_HAVE_WINSOCK2_H.
1478 * modules/sys_socket (Files): Add m4/unistd_h.m4.
1479 (configure.ac): Set a module indicator.
1480 (Makefile.am): Substitute GNULIB_CLOSE.
1481 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
1482 * modules/poll-tests (Depends-on): Add close.
1483 * modules/select-tests (Depends-on): Likewise.
1485 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
1486 Bruno Haible <bruno@clisp.org>
1489 * modules/close: New file.
1490 * lib/unistd.in.h (close): Move declaration out of the
1491 FCHDIR_REPLACEMENT scope.
1492 (_gl_unregister_fd): New declaration.
1493 * lib/close.c: New file.
1494 * lib/fchdir.c (rpl_close): Remove function.
1495 * m4/close.m4: New file.
1496 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1498 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
1500 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
1502 * modules/fchdir (Depends-on): Add close.
1504 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
1505 Bruno Haible <bruno@clisp.org>
1507 * lib/fcntl.in.h (open): Simplify conditionals.
1508 (_gl_register_fd): New declaration.
1509 * lib/fchdir.c (rpl_open): Remove function.
1510 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
1512 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
1513 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1516 2008-10-09 Jim Meyering <meyering@redhat.com>
1518 GNUmakefile: use the more name-space-friendly "_version"
1519 * top/GNUmakefile (_dummy): Update.
1520 (_version): Rename from "version".
1522 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
1523 Bruno Haible <bruno@clisp.org>
1525 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
1527 (_gl_register_fd): New function, extracted from rpl_open.
1528 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
1529 (rpl_open, rpl_opendir): Use _gl_register_fd.
1531 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
1533 Fix organization of 'open' replacement.
1534 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
1535 (gl_FUNC_OPEN): Use it.
1536 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
1538 2008-10-08 Bruno Haible <bruno@clisp.org>
1540 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
1542 2008-10-08 Simon Josefsson <simon@josefsson.org>
1544 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
1545 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
1548 2008-10-08 Eric Blake <ebb9@byu.net>
1550 GNUmakefile: add 'make version' target
1551 * top/GNUmakefile (_curr-ver): Split version update rules...
1552 (version): ...into a target.
1554 2008-10-07 Bruno Haible <bruno@clisp.org>
1556 Use a more portable replacement expression for -0.0L.
1557 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
1558 instead of -0.0L. Fix m4 quotation.
1560 * tests/test-signbit.c: Include <float.h>.
1561 (minus_zero): New variable.
1562 (test_signbitl): Use minus_zero instead of -zero.
1563 * modules/signbit-tests (Depends-on): Add float.
1565 * tests/test-ceill.c: Include <float.h>.
1566 (zero): Remove variable.
1567 (minus_zero): New variable.
1568 (main): Use minus_zero instead of -zero.
1569 * modules/ceill-tests (Depends-on): Add float.
1571 * tests/test-floorl.c: Include <float.h>.
1572 (zero): Remove variable.
1573 (minus_zero): New variable.
1574 (main): Use minus_zero instead of -zero.
1575 * modules/floorl-tests (Depends-on): Add float.
1577 * tests/test-roundl.c: Include <float.h>.
1578 (zero): Remove variable.
1579 (minus_zero): New variable.
1580 (main): Use minus_zero instead of -zero.
1581 * modules/roundl-tests (Depends-on): Add float.
1583 * tests/test-truncl.c: Include <float.h>.
1584 (zero): Remove variable.
1585 (minus_zero): New variable.
1586 (main): Use minus_zero instead of -zero.
1587 * modules/truncl-tests (Depends-on): Add float.
1589 * tests/test-frexpl.c (zero): Remove variable.
1590 (minus_zero): New variable.
1591 (main): Use minus_zero instead of -zero.
1592 * modules/frexpl-tests (Depends-on): Add float.
1594 * tests/test-isnan.c (zerol): Remove variable.
1595 (minus_zerol): New variable.
1596 (test_long_double): Use minus_zerol instead of -zerol.
1597 * modules/isnan-tests (Depends-on): Add float.
1599 * tests/test-isnanl.h (zero): Remove variable.
1600 (minus_zero): New variable.
1601 (main): Use minus_zero instead of -zero.
1602 * modules/isnanl-nolibm-tests (Depends-on): Add float.
1603 * modules/isnanl-tests (Depends-on): Add float.
1605 * tests/test-ldexpl.c (zero): Remove variable.
1606 (minus_zero): New variable.
1607 (main): Use minus_zero instead of -zero.
1608 * modules/ldexpl-tests (Depends-on): Add float.
1610 * tests/test-snprintf-posix.h (zerol): Remove variable.
1611 (minus_zerol): New variable.
1612 (test_function): Use minus_zerol instead of -zerol.
1613 * modules/snprintf-posix-tests (Depends-on): Add float.
1614 * modules/vsnprintf-posix-tests (Depends-on): Add float.
1616 * tests/test-sprintf-posix.h (zerol): Remove variable.
1617 (minus_zerol): New variable.
1618 (test_function): Use minus_zerol instead of -zerol.
1619 * modules/sprintf-posix-tests (Depends-on): Add float.
1620 * modules/vsprintf-posix-tests (Depends-on): Add float.
1622 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
1623 (minus_zerol): New variable.
1624 (test_function): Use minus_zerol instead of -zerol.
1625 * modules/vasnprintf-posix-tests (Depends-on): Add float.
1627 * tests/test-vasprintf-posix.c (zerol): Remove variable.
1628 (minus_zerol): New variable.
1629 (test_function): Use minus_zerol instead of -zerol.
1630 * modules/vasprintf-posix-tests (Depends-on): Add float.
1632 2008-10-07 Simon Josefsson <simon@josefsson.org>
1634 * MODULES.html.sh (Support for building documentation): Mention
1635 pmccabe2html. Sort entries.
1637 Add pmccabe2html module, from gnupdf.
1638 * build-aux/pmccabe.css: New file.
1639 * build-aux/pmccabe2html: New file.
1640 * m4/pmccabe2html.m4: New file.
1641 * modules/pmccabe2html: New file.
1643 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
1646 * MODULES.html.sh: Add to list of modules.
1647 * lib/flock.c: flock implementation for Windows and Unix systems
1649 * doc/glibc-functions/flock.texi: Update documentation.
1650 * lib/sys_file.in.h: <sys/file.h> header file.
1651 * m4/flock.m4: M4 macros.
1652 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
1653 * modules/flock: flock module.
1654 * modules/flock-tests: flock tests module.
1655 * modules/sys_file: sys/file.h module.
1656 * tests/test-flock.c: test suite for flock.
1658 2008-10-06 Jim Meyering <meyering@redhat.com>
1660 bootstrap: check for LT_INIT more portably still ;-)
1661 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
1662 Spotted by Bruno Haible.
1664 2008-10-06 Eric Blake <ebb9@byu.net>
1666 test-signbit: avoid tripping Irix cc bug on -0.0L
1667 * tests/test-signbit.c (minus_zerol): Delete, and replace with
1668 '-zerol'. This may break on HP-UX/hppa, but at least makes the
1669 entire testsuite consistent and avoids an Irix 6.2 bug.
1671 2008-10-05 Bruno Haible <bruno@clisp.org>
1672 Jim Meyering <jim@meyering.net>
1674 Add an option for ignoring EPIPE during close_stdout.
1675 * lib/closeout.h: Include <stdbool.h>.
1676 (close_stdout_set_ignore_EPIPE): New declaration.
1677 * lib/closeout.c: Include <stdbool.h>.
1678 (ignore_EPIPE): New variable.
1679 (close_stdout_set_ignore_EPIPE): New function.
1680 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
1681 * lib/close-stream.c (close_stream): Mention the possible EPIPE
1683 * modules/closeout (Depends-on): Add stdbool.
1685 2008-10-05 Bruno Haible <bruno@clisp.org>
1687 * modules/accept: New file.
1688 * modules/bind: New file.
1689 * modules/connect: New file.
1690 * modules/getpeername: New file.
1691 * modules/getsockname: New file.
1692 * modules/getsockopt: New file.
1693 * modules/listen: New file.
1694 * modules/recv: New file.
1695 * modules/recvfrom: New file.
1696 * modules/send: New file.
1697 * modules/sendto: New file.
1698 * modules/setsockopt: New file.
1699 * modules/socket: New file.
1700 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
1701 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1702 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
1703 the particular module is requested. Add a link warning when the
1704 particular module is not requested.
1705 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
1706 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
1707 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
1708 the particular module is requested.
1709 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
1710 gl_SYS_SOCKET_H_DEFAULTS): New macros.
1711 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
1712 * modules/sys_socket (Depends-on): Add link-warning.
1713 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
1714 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
1715 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
1716 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
1718 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
1719 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
1720 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
1721 * doc/posix-functions/getpeername.texi: Mention the new module
1723 * doc/posix-functions/getsockname.texi: Mention the new module
1725 * doc/posix-functions/getsockopt.texi: Mention the new module
1727 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
1728 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
1729 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
1730 * doc/posix-functions/send.texi: Mention the new module 'send'.
1731 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
1732 * doc/posix-functions/setsockopt.texi: Mention the new module
1734 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
1735 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
1736 listen, connect, accept.
1737 * modules/select-tests (Depends-on): Likewise.
1739 2008-10-05 Bruno Haible <bruno@clisp.org>
1741 * lib/winsock.c (strerror): Remove unused #undef.
1742 (rpl_close): Remove unused local variable.
1744 * modules/sys_socket (Depends-on); Add errno.
1746 2008-10-05 Bruno Haible <bruno@clisp.org>
1748 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
1749 (select): Add a link warning when the 'select' module is not used.
1750 * modules/sys_select (Depends-on): Add link-warning.
1751 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
1752 Suggested by Paolo Bonzini.
1754 2008-10-05 Jim Meyering <meyering@redhat.com>
1756 bootstrap: check for LT_INIT more portably
1757 * build-aux/bootstrap: Avoid using grep -E, since it's not
1758 portable enough. Suggestion from Bruno Haible.
1760 2008-10-05 Bruno Haible <bruno@clisp.org>
1762 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
1763 as being fixed by gnulib.
1765 2008-10-05 Bruno Haible <bruno@clisp.org>
1767 * modules/select-tests: New file, mostly copied from
1768 modules/sys_select-tests.
1769 * tests/test-select.c: New file, mostly copied from
1770 tests/test-sys_select.c.
1771 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
1772 * modules/sys_select-tests (Depends-on): Remove all dependencies.
1773 (Makefile.am): Remove test_sys_select_LDADD.
1775 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
1776 to an undefined symbol, for an error message.
1777 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
1778 (gl_SYS_SELECT_H_DEFAULTS): New macro.
1779 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
1780 winsock-select.c here.
1781 * modules/sys_select (Files): Remove lib/winsock-select.c.
1782 (Depends-on): Remove alloca.
1783 (Makefile.am): Substitute GNULIB_SELECT.
1784 * modules/select: New file.
1785 * doc/posix-functions/select.texi: Update.
1787 2008-10-05 Bruno Haible <bruno@clisp.org>
1789 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
1790 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
1791 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
1792 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
1794 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1795 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1797 2008-10-05 Bruno Haible <bruno@clisp.org>
1799 * modules/getdtablesize-tests: New file.
1800 * tests/test-getdtablesize.c: New file.
1802 New module 'getdtablesize'.
1803 * lib/unistd.in.h (getdtablesize): New declaration.
1804 * lib/getdtablesize.c: New file.
1805 * m4/getdtablesize.m4: New file.
1806 * modules/getdtablesize: New file.
1807 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1808 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
1809 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
1811 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
1813 2008-10-05 Bruno Haible <bruno@clisp.org>
1815 * modules/sched (Makefile.am): Fix typo.
1816 Reported by Simon Josefsson.
1818 2008-10-05 Jim Meyering <meyering@redhat.com>
1820 bootstrap: check for LT_INIT, too
1821 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
1822 are deprecated. Suggestion from Ralf Wildenhues.
1824 2008-10-05 Bruno Haible <bruno@clisp.org>
1826 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
1827 overriding them by ours.
1828 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
1830 2008-10-05 Jim Meyering <meyering@redhat.com>
1832 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
1833 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
1834 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
1836 2008-10-04 Bruno Haible <bruno@clisp.org>
1838 * modules/dup2 (License): Change to LGPLv2+.
1839 * modules/sleep (License): Likewise.
1840 * modules/perror (License): Likewise.
1841 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
1843 * modules/signal (License): Likewise.
1844 * modules/sigprocmask (License): Likewise.
1845 * modules/raise (License): Change to LGPLv2+, with approval by Jim
1848 2008-10-04 Bruno Haible <bruno@clisp.org>
1850 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
1851 Reported by Rainer Tammer <tammer@tammer.net>.
1853 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
1854 Bruno Haible <bruno@clisp.org>
1856 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
1857 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
1858 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
1860 2008-10-03 Kamil Dudka <kdudka@redhat.com>
1862 filevercmp: new module
1863 * lib/filevercmp.h: New function filevercmp comparing version strings.
1864 * lib/filevercmp.c: Implementation of filevercmp function.
1865 * modules/filevercmp: Module metadata.
1866 * tests/test-filevercmp.c: Unit test for new module.
1867 * modules/filevercmp-tests: Unit test metadata.
1868 * MODULES.html.sh: Add filevercmp module.
1870 2008-10-03 Bruno Haible <bruno@clisp.org>
1872 * lib/c-ctype.h: Add comment.
1873 Reported by Jim Meyering.
1875 2008-10-02 Bruno Haible <bruno@clisp.org>
1877 * modules/posix_spawn-internal (Depends-on): Add 'open'.
1879 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
1881 * build-aux/bootstrap: Allow renaming bootstrap, and change the
1882 name of bootstrap.conf accordingly.
1884 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
1886 * build-aux/bootstrap: Install git-merge-changelog configuration
1887 items into .gitconfig if needed.
1889 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
1891 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
1892 git repository, and initialize/update it accordingly.
1894 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
1896 * modules/fsync-tests: New file.
1897 * tests/test-fsync.c: New file.
1900 * lib/fsync.c: New file.
1901 * m4/fsync.m4: New file.
1902 * modules/fsync: New file.
1903 * lib/unistd.in.h (fsync): New declaration.
1904 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
1905 GNULIB_FSYNC and HAVE_FSYNC.
1906 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
1907 * MODULES.html.sh (posix_functions): Add fsync.
1908 * doc/posix-functions/fsync.texi: Mention the new module.
1910 2008-10-02 Jim Meyering <meyering@redhat.com>
1912 fts.c: sync with similar code from coreutils' remove.c
1913 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
1914 Guard also with "#if defined __linux__", since for now at least,
1915 this code is Linux-kernel-specific.
1917 2008-10-02 Jim Meyering <meyering@redhat.com>
1920 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
1921 Include <sys/vfs.h>, not <sys/statfs.h>.
1923 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
1924 Include <sys/vfs.h>, not <sys/statfs.h>.
1926 2008-10-01 Bruno Haible <bruno@clisp.org>
1928 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
1929 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
1930 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
1931 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
1932 * doc/posix-functions/posix_spawnp.texi: Likewise.
1933 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
1934 whether posix_spawn actually works.
1935 * m4/pipe.m4 (gl_PIPE): Likewise.
1936 * modules/execute (Files): Add m4/posix_spawn.m4.
1937 * modules/pipe (Files): Add m4/posix_spawn.m4.
1938 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
1940 2008-10-01 Jim Meyering <meyering@redhat.com>
1942 remove trailing spaces
1944 * lib/poll.c (poll): Likewise.
1945 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
1946 * lib/winsock.c (rpl_close): Likewise.
1947 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
1948 * modules/yield: Likewise.
1949 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
1950 * tests/test-sys_select.c (connect_to_socket): Likewise.
1952 fts.c: adjust a new interface to be more generally useful
1953 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
1954 (fts_build): Adjust caller.
1956 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1958 * modules/cond-tests: New file.
1959 * tests/test-cond.c: New file.
1961 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1962 Bruno Haible <bruno@clisp.org>
1964 * modules/cond (Dependencies): Add errno, time.
1965 * lib/glthread/cond.h: Include <time.h>.
1966 (gl_cond_define, gl_cond_define_initialized): Use the same definition
1969 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1970 Bruno Haible <bruno@clisp.org>
1972 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
1974 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1975 Bruno Haible <bruno@clisp.org>
1977 * modules/tls-tests (Depends-on): Add thread, yield.
1978 (configure.ac): Remove all checks.
1979 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
1980 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1981 gl_thread_self): Remove definitions. Include glthread/thread.h and
1982 glthread/yield.h instead.
1983 (test_tls): Pass an additional NULL argument to gl_thread_join.
1985 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
1986 Bruno Haible <bruno@clisp.org>
1988 * modules/lock-tests (Depends-on): Add thread, yield.
1989 (configure.ac): Remove all checks.
1990 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
1991 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
1992 gl_thread_self): Remove definitions. Include glthread/thread.h and
1993 glthread/yield.h instead.
1994 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
1995 additional NULL argument to gl_thread_join.
1997 2008-09-30 Bruno Haible <bruno@clisp.org>
1999 Fix the Win32 implementation of the 'thread' module.
2000 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
2002 (gl_thread_self): Invoke gl_thread_self_func.
2003 (gl_thread_self_func): New declaration.
2004 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
2005 (do_init_self_key, init_self_key): New functions.
2006 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
2008 (running_threads, running_lock): Remove variables.
2009 (get_current_thread_handle): New function.
2010 (gl_thread_self_func, wrapper_func, glthread_create_func,
2011 glthread_join_func, gl_thread_exit_func): Largely rewritten and
2014 2008-09-30 Bruno Haible <bruno@clisp.org>
2016 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
2019 2008-09-30 Jim Meyering <meyering@redhat.com>
2021 fts.m4: correct the test for statfs.f_type
2022 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
2023 when checking for statfs.f_type.
2025 2008-09-15 Simon Josefsson <simon@josefsson.org>
2027 tests: avoid some compiler warnings
2028 * tests/test-memchr.c (main): Pass NULL indirectly.
2029 * tests/test-getdate.c (main): Remove unused variable 'ret'.
2031 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
2033 getdate.y: disallow countable dayshifts like "4 yesterday ago"
2034 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
2035 exactly specified dayshifts.
2036 (dayshift): New rule.
2037 (rel): Add dayshift.
2038 (relative_time_table) [tomorrow, yesterday, today, now]:
2039 Use tDAY_SHIFT in place of tDAY_UNIT.
2040 * tests/test-getdate.c: Add tests for now-disallowed countable
2041 dayshifts, e.g., "4 yesterday ago".
2043 2008-09-29 Bruno Haible <bruno@clisp.org>
2045 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
2046 * tests/test-posix_spawn1.in.sh: Renamed from
2047 tests/test-posix_spawn.in.sh.
2048 * tests/test-posix_spawn2.c: New file.
2049 * tests/test-posix_spawn2.in.sh: New file.
2050 * modules/posix_spawnp-tests (Files): Update.
2051 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
2053 2008-09-29 Bruno Haible <bruno@clisp.org>
2055 Propagate effects of putenv/setenv/unsetenv to child processes.
2056 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
2057 * lib/pipe.c (create_pipe): Likewise.
2059 2008-09-29 Bruno Haible <bruno@clisp.org>
2061 Enable use of shell scripts as executables in mingw.
2062 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
2063 run the program as a shell script.
2064 * lib/pipe.c (create_pipe): Likewise.
2065 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
2068 2008-09-29 Eric Blake <ebb9@byu.net>
2070 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
2072 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
2074 * doc/posix-functions/accept.texi: Update mingw problems.
2075 * doc/posix-functions/bind.texi: Update mingw problems.
2076 * doc/posix-functions/close.texi: Update mingw problems.
2077 * doc/posix-functions/connect.texi: Update mingw problems.
2078 * doc/posix-functions/getpeername.texi: Update mingw problems.
2079 * doc/posix-functions/getsockname.texi: Update mingw problems.
2080 * doc/posix-functions/getsockopt.texi: Update mingw problems.
2081 * doc/posix-functions/ioctl.texi: Update mingw problems.
2082 * doc/posix-functions/listen.texi: Update mingw problems.
2083 * doc/posix-functions/recv.texi: Update mingw problems.
2084 * doc/posix-functions/recvfrom.texi: Update mingw problems.
2085 * doc/posix-functions/select.texi: Update mingw problems.
2086 * doc/posix-functions/send.texi: Update mingw problems.
2087 * doc/posix-functions/sendto.texi: Update mingw problems.
2088 * doc/posix-functions/setsockopt.texi: Update mingw problems.
2089 * doc/posix-functions/socket.texi: Update mingw problems.
2091 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
2092 Bruno Haible <bruno@clisp.org>
2094 * lib/sys_select.in.h: Include sys/time.h.
2095 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
2096 * modules/sys_select: Depend on sys_time.
2097 * tests/test-sys_select.c: Test that sys/select.h defines struct
2100 2008-09-29 Bruno Haible <bruno@clisp.org>
2102 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
2103 * lib/sys_select.in.h: Likewise.
2105 2008-09-29 Bruno Haible <bruno@clisp.org>
2107 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
2109 2008-09-29 Bruno Haible <bruno@clisp.org>
2111 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
2112 Set LIBSOCKET instead of augmenting LIBS.
2113 * modules/sockets (Link): New section.
2114 * modules/sockets-tests (test_sockets_LDADD): New variable.
2115 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
2116 * modules/poll-tests (test_poll_LDADD): New variable.
2117 * NEWS: Document the change.
2119 2008-09-29 Bruno Haible <bruno@clisp.org>
2121 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
2122 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
2123 ARPA_INET_H directly.
2124 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2126 2008-09-28 Bruno Haible <bruno@clisp.org>
2128 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
2129 from gl_HEADER_SYS_SOCKET.
2130 (gl_HEADER_SYS_SOCKET): Invoke it.
2131 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2133 2008-09-28 Bruno Haible <bruno@clisp.org>
2135 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
2136 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
2137 Needed on OSF/1 4.0.
2139 2008-09-28 Bruno Haible <bruno@clisp.org>
2141 Override open more carefully.
2142 * lib/open.c (orig_open): New function.
2143 (rpl_open): Use orig_open instead of open.
2144 * lib/fcntl.in.h: Add special invocation convention.
2145 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
2146 (gl_FUNC_OPEN): Invoke it.
2148 Override freopen more carefully.
2149 * lib/freopen.c (orig_freopen): New function.
2150 (rpl_freopen): Use orig_freopen instead of freopen.
2151 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
2152 (gl_FUNC_FREOPEN): Invoke it.
2154 Override fopen more carefully.
2155 * lib/fopen.c (orig_fopen): New function.
2156 (rpl_fopen): Use orig_fopen instead of fopen.
2157 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
2158 (gl_FUNC_FOPEN): Invoke it.
2159 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
2161 2008-09-28 Bruno Haible <bruno@clisp.org>
2163 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
2166 2008-09-28 Bruno Haible <bruno@clisp.org>
2168 * tests/test-sigaction.c (handler, main): Disable the check whether
2169 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
2170 glibc systems with LinuxThreads.
2172 2008-09-28 Bruno Haible <bruno@clisp.org>
2174 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
2176 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
2178 * lib/fcntl.in.h (open): Likewise.
2179 Reported by Rainer Tammer <tammer@tammer.net>.
2181 2008-09-28 Bruno Haible <bruno@clisp.org>
2183 * modules/posix_spawnp-tests: New file.
2184 * tests/test-posix_spawn.c: New file.
2185 * tests/test-posix_spawn.in.sh: New file.
2187 New module 'posix_spawnp'.
2188 * modules/posix_spawnp: New file.
2189 * lib/spawnp.c: New file, from GNU libc with modifications.
2190 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
2192 New module 'posix_spawn'.
2193 * modules/posix_spawn: New file.
2194 * lib/spawn.c: New file, from GNU libc with modifications.
2195 * doc/posix-functions/posix_spawn.texi: Mention the new module.
2197 New module 'posix_spawnattr_destroy'.
2198 * modules/posix_spawnattr_destroy: New file.
2199 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
2200 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
2203 New module 'posix_spawnattr_setsigmask'.
2204 * modules/posix_spawnattr_setsigmask: New file.
2205 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
2207 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
2210 New module 'posix_spawnattr_getsigmask'.
2211 * modules/posix_spawnattr_getsigmask: New file.
2212 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
2214 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
2217 New module 'posix_spawnattr_setsigdefault'.
2218 * modules/posix_spawnattr_setsigdefault: New file.
2219 * lib/spawnattr_setdefault.c: New file, from GNU libc with
2221 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
2224 New module 'posix_spawnattr_getsigdefault'.
2225 * modules/posix_spawnattr_getsigdefault: New file.
2226 * lib/spawnattr_getdefault.c: New file, from GNU libc with
2228 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
2231 New module 'posix_spawnattr_setschedpolicy'.
2232 * modules/posix_spawnattr_setschedpolicy: New file.
2233 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
2235 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
2238 New module 'posix_spawnattr_getschedpolicy'.
2239 * modules/posix_spawnattr_getschedpolicy: New file.
2240 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
2242 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
2245 New module 'posix_spawnattr_setschedparam'.
2246 * modules/posix_spawnattr_setschedparam: New file.
2247 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
2249 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
2252 New module 'posix_spawnattr_getschedparam'.
2253 * modules/posix_spawnattr_getschedparam: New file.
2254 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
2256 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
2259 New module 'posix_spawnattr_setpgroup'.
2260 * modules/posix_spawnattr_setpgroup: New file.
2261 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
2263 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
2266 New module 'posix_spawnattr_getpgroup'.
2267 * modules/posix_spawnattr_getpgroup: New file.
2268 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
2270 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
2273 New module 'posix_spawnattr_setflags'.
2274 * modules/posix_spawnattr_setflags: New file.
2275 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
2276 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
2279 New module 'posix_spawnattr_getflags'.
2280 * modules/posix_spawnattr_getflags: New file.
2281 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
2282 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
2285 New module 'posix_spawnattr_init'.
2286 * modules/posix_spawnattr_init: New file.
2287 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
2288 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
2291 New module 'posix_spawn_file_actions_destroy'.
2292 * modules/posix_spawn_file_actions_destroy: New file.
2293 * lib/spawn_faction_destroy.c: New file, from GNU libc with
2295 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
2298 New module 'posix_spawn_file_actions_addopen'.
2299 * modules/posix_spawn_file_actions_addopen: New file.
2300 * lib/spawn_faction_addopen.c: New file, from GNU libc with
2302 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
2305 New module 'posix_spawn_file_actions_adddup2'.
2306 * modules/posix_spawn_file_actions_adddup2: New file.
2307 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
2309 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
2312 New module 'posix_spawn_file_actions_addclose'.
2313 * modules/posix_spawn_file_actions_addclose: New file.
2314 * lib/spawn_faction_addclose.c: New file, from GNU libc with
2316 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
2319 New module 'posix_spawn_file_actions_init'.
2320 * modules/posix_spawn_file_actions_init: New file.
2321 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
2322 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
2325 New module 'posix_spawn-internal'.
2326 * modules/posix_spawn-internal: New file.
2327 * lib/spawn_int.h: New file, from GNU libc with modifications.
2328 * lib/spawni.c: New file, from GNU libc with modifications.
2329 * m4/posix_spawn.m4: New file.
2332 * modules/spawn: New file.
2333 * lib/spawn.in.h: New file, from GNU libc with modifications.
2334 * m4/spawn_h.m4: New file.
2335 * doc/posix-headers/spawn.texi: Mention the new module.
2337 2008-09-28 Bruno Haible <bruno@clisp.org>
2339 * modules/sched-tests: New file.
2340 * tests/test-sched.c: New file.
2343 * modules/sched: New file.
2344 * lib/sched.in.h: New file.
2345 * m4/sched_h.m4: New file.
2346 * doc/posix-headers/sched.texi: Mention the new module.
2348 2008-09-27 Eric Blake <ebb9@byu.net>
2350 Fix previous patch, and tweak references to $0.
2351 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
2352 (func_version, func_gnulib_dir): Don't call this program
2354 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
2355 with using $0 in function.
2356 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
2357 (func_fatal_error): Reuse the name the user invoked us with.
2359 2008-09-27 Bruno Haible <bruno@clisp.org>
2361 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
2362 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
2363 (gl_ICONV_H): Not here.
2364 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2365 instead of assigning ICONV_H directly.
2367 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
2368 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
2371 2008-09-27 Bruno Haible <bruno@clisp.org>
2373 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
2374 * modules/arpa_inet (Depends-on): Add link-warning.
2375 (Makefile.am): Insert the definition of GL_LINK-WARNING.
2376 * modules/unistd (Makefile.am): Likewise.
2378 2008-09-26 Bruno Haible <bruno@clisp.org>
2380 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
2382 (func_version): Essentially copied from gnulib-tool.
2383 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
2384 func_readlink): Copied from gnulib-tool.
2386 2008-09-26 Bruno Haible <bruno@clisp.org>
2388 * gnulib-tool (func_version): Change directory to $gnulib_dir before
2389 invoking git-version-gen.
2391 2008-09-26 Bruno Haible <bruno@clisp.org>
2393 * posix-modules: Update to directory names changed on 2008-01-19.
2394 Remove commas in output before splitting into words. No more need to
2395 avoid 'ftruncate' since 2007-02-19.
2397 2008-09-26 Bruno Haible <bruno@clisp.org>
2399 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
2401 2008-09-26 Bruno Haible <bruno@clisp.org>
2403 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
2404 * modules/fwriteerror (Depends-on): Add errno.
2406 2008-09-26 Bruno Haible <bruno@clisp.org>
2408 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
2409 * tests/test-vc-list-files-cvs.sh: Likewise.
2411 2008-09-26 Bruno Haible <bruno@clisp.org>
2413 * doc/posix-headers/sys_resource.texi: Reorder items.
2415 2008-09-26 Jim Meyering <meyering@redhat.com>
2417 fts: tweak inode comparison function
2418 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
2419 inode numbers, as documented.
2421 fts: sort dirent entries on inode number before traversing
2422 This avoids a quadratic, seek-related performance penalty when
2423 operating on a directory containing many entries (measurable at 10k;
2424 3.5 hours at 2 million entries with a cold cache) on certain types
2425 of file systems, including ext3 and ext4, but not tmpfs.
2426 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
2427 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
2428 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
2429 (fs_handles_readdir_ordered_dirents_efficiently): New function.
2430 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
2431 (fts_build): Set the stat.st_ino member from D_INO.
2432 If it is likely to be useful, sort dirent entries on inode number.
2434 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
2435 and the struct statfs.f_type member.
2436 * modules/fts (Depends-on): Add d-ino.
2438 2008-09-26 Bruno Haible <bruno@clisp.org>
2440 * modules/sigpipe-die (Depends-on): Add sigpipe.
2442 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
2443 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
2444 and GNULIB_STDIO_H_SIGPIPE are set.
2445 * lib/stdio-write.c: New file.
2446 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
2447 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2448 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2449 REPLACE_STDIO_WRITE_FUNCS.
2450 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
2451 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2452 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2453 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
2454 * modules/stdio (Files): Add lib/stdio-write.c.
2455 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
2456 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2457 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2458 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
2459 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
2460 REPLACE_FPRINTF_POSIX.
2461 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
2462 REPLACE_PRINTF_POSIX.
2463 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
2464 REPLACE_VFPRINTF_POSIX.
2465 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
2466 REPLACE_VPRINTF_POSIX.
2467 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
2469 * doc/posix-functions/fputc.texi: Likewise.
2470 * doc/posix-functions/fputs.texi: Likewise.
2471 * doc/posix-functions/fwrite.texi: Likewise.
2472 * doc/posix-functions/printf.texi: Likewise.
2473 * doc/posix-functions/putc.texi: Likewise.
2474 * doc/posix-functions/putchar.texi: Likewise.
2475 * doc/posix-functions/puts.texi: Likewise.
2476 * doc/posix-functions/vfprintf.texi: Likewise.
2477 * doc/posix-functions/vprintf.texi: Likewise.
2479 * modules/safe-write (Depends-on): Add write.
2481 * modules/sigpipe-tests: New file.
2482 * tests/test-sigpipe.c: New file.
2483 * tests/test-sigpipe.sh: New file.
2485 * modules/write: New file.
2486 * lib/unistd.in.h: Include <sys/types.h>.
2487 (write): New declaration.
2488 * lib/write.c: New file.
2489 * m4/write.m4: New file.
2490 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2491 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
2492 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
2493 GNULIB_WRITE, REPLACE_WRITE.
2494 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
2495 and the SIGPIPE issue.
2497 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
2498 (raise): New declaration.
2499 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
2500 (ext_signal): New function.
2501 (rpl_raise): New function.
2502 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2503 GNULIB_SIGNAL_H_SIGPIPE.
2504 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
2505 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
2507 * modules/sigpipe: New file.
2508 * m4/sigpipe.m4: New file.
2510 2008-09-25 Derek Price <derek@ximbiot.com>
2511 Bruno Haible <bruno@clisp.org>
2513 * gnulib-tool (func_import): Report all license incompatibilities, not
2516 2008-09-25 Bruno Haible <bruno@clisp.org>
2518 * gnulib-tool (func_import): When computing the edits, consider not
2519 only the Makefile.ams that exist but also those that will be generated.
2521 2008-09-25 Simon Josefsson <simon@josefsson.org>
2523 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
2524 fixes gnulib-tool --test warning about duplicate dependency.
2526 2008-09-25 Bruno Haible <bruno@clisp.org>
2528 * gnulib-tool: Don't ask the user to perform edits in the generated
2530 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
2531 apply to the Makefile.am being generated.
2532 (func_emit_tests_Makefile_am): Execute edits that apply to the
2533 Makefile.am being generated.
2534 (func_import): Setup list of Makefile.am edits before emitting the
2535 Makefile.ams, not at the end.
2536 (func_create_testdir): Update.
2537 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2539 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2541 * gnulib-tool (func_import): Store the --tests-base option in the
2542 comment in gnulib-cache.m4.
2544 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
2546 * NEWS: Document increased portability that sys_select now provides.
2548 * lib/sys_select.in.h: Install select wrapper.
2549 * lib/sys_socket.in.h: Use more descriptive name when there is no
2551 * lib/winsock-select.c: New.
2552 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
2553 Require gl_HEADER_SYS_SOCKET.
2554 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
2555 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
2556 * tests/test-sys_select.c: Add functional tests.
2558 2008-09-24 Eric Blake <ebb9@byu.net>
2560 open, fopen: close fd leak in last patch
2561 * lib/open.c (rpl_open): Close fd before returning error.
2562 * lib/fopen.c (rpl_fopen): Close fd before returning error.
2563 * doc/posix-functions/open.texi (open): Document that Irix also
2565 * doc/posix-functions/fopen.texi (fopen): Likewise.
2566 Reported by Paolo Bonzini.
2568 2008-09-24 Bruno Haible <bruno@clisp.org>
2570 Ensure that a filename ending in a slash cannot be used to access a
2572 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
2573 to check whether it's really a directory.
2574 * lib/fopen.c: Include fcntl.h, unistd.h.
2575 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
2577 * modules/fopen (Depends-on): Add unistd.
2578 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
2579 * tests/test-fopen.c (main): Likewise.
2580 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
2581 * doc/posix-functions/fopen.texi: Likewise.
2582 Reported by Eric Blake.
2584 2008-09-23 Eric Blake <ebb9@byu.net>
2586 c-stack: avoid compiler optimizations when provoking overflow
2587 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
2588 recursion harder to optimize, to ensure a stack overflow occurs.
2589 * tests/test-c-stack.c (recurse): Likewise.
2590 Borrowed from libsigsegv.
2592 c-stack: work around Irix sigaltstack bug
2593 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
2594 whether sigaltstack uses wrong end of stack_t (copied in part from
2596 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
2597 Irix bug, without requiring an over-allocation.
2598 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
2601 fopen: document mingw bug on directories
2602 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
2603 not allowing a stream visiting a directory, even though reading
2604 from such a stream is not portable.
2606 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
2608 * lib/poll.c: Rewrite.
2609 * modules/poll: Depend on alloca.
2611 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
2613 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
2614 instead define prototypes for a full set of wrappers. Ensure
2615 that Cygwin does not use the compatibility code, which is only
2617 * lib/winsock.c: New.
2618 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
2619 * modules/sys_socket: Add lib/winsock.c.
2621 * modules/poll-tests: Add errno and perror.
2622 * tests/test-poll.c: Use ioctl, not ioctlsocket.
2624 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
2626 * tests/test-poll.c: Downgrade minimum needed Winsock version.
2628 2008-09-23 Bruno Haible <bruno@clisp.org>
2630 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
2631 * doc/glibc-functions/*: Likewise.
2633 2008-09-23 Simon Josefsson <simon@josefsson.org>
2635 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
2638 2008-09-22 Eric Blake <ebb9@byu.net>
2639 Bruno Haible <bruno@clisp.org>
2641 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
2642 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
2643 supply %A but mishandle pseudo-NaN.
2644 Reported by Simon Josefsson.
2646 2008-09-21 Bruno Haible <bruno@clisp.org>
2648 * tests/test-lock.c (main): Tweak skip message.
2649 * tests/test-tls.c (main): Likewise.
2651 2008-09-21 Bruno Haible <bruno@clisp.org>
2653 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
2654 whether 'struct sigaction' has sa_sigaction here...
2655 (gl_PREREQ_SIG_HANDLER_H): ... not here.
2656 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
2658 2008-09-21 Bruno Haible <bruno@clisp.org>
2660 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
2662 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
2663 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
2665 (Support for obsolete systems lacking POSIX:2001): New section.
2666 (String handling <string.h>): Move strdup to the new section.
2667 Suggested by Simon Josefsson and Paolo Bonzini.
2669 2008-09-21 Bruno Haible <bruno@clisp.org>
2671 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
2672 exponents in %e and %g results on 'long double'. Needed for mingw's
2673 improved *printf functions.
2674 * tests/test-vasprintf-posix.c (test_function): Likewise.
2675 * tests/test-snprintf-posix.h (test_function): Likewise.
2676 * tests/test-sprintf-posix.h (test_function): Likewise.
2677 Reported by Eric Blake.
2679 2008-09-21 Bruno Haible <bruno@clisp.org>
2681 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
2682 * tests/test-sprintf-posix.h (test_function): Likewise.
2684 2008-09-21 Bruno Haible <bruno@clisp.org>
2686 * modules/getpass (Depends-on): Add strdup-posix.
2688 New module 'strdup-posix'.
2689 * modules/strdup-posix: New file.
2690 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
2691 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
2692 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2694 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
2695 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
2696 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2699 * modules/strdup (Depends-on): Remove malloc-posix.
2701 2008-09-20 Bruno Haible <bruno@clisp.org>
2703 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
2706 2008-09-20 Bruno Haible <bruno@clisp.org>
2708 Ensure that wint_t gets defined on IRIX 5.3.
2709 * lib/wchar.in.h (wint_t): Define if not defined by the system.
2710 * lib/wctype.in.h (wint_t): Likewise.
2711 (__wctype_wint_t): Remove type.
2712 (isw*): Use wint_t instead of __wctype_wint_t.
2713 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
2714 * modules/wchar (Files): Add m4/wint_t.m4.
2715 (Makefile.am): Substitute HAVE_WINT_T.
2716 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
2717 * tests/test-wctype.c: Check that wint_t is defined.
2718 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
2719 * doc/posix-headers/wctype.texi: Likewise.
2720 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2722 2008-09-18 Bruno Haible <bruno@clisp.org>
2724 * gnulib-tool (func_exit): Update comment.
2726 2008-09-18 Simon Josefsson <simon@josefsson.org>
2728 * modules/getaddrinfo (Depends-on): Remove strdup, this module
2729 assumes strdup exists and does not depend on strdup to return
2730 ENOMEM on out of memory conditions.
2732 2008-09-18 Bruno Haible <bruno@clisp.org>
2734 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
2735 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
2736 digits for the exponent.
2738 2008-09-18 Jim Meyering <meyering@redhat.com>
2739 Bruno Haible <bruno@clisp.org>
2741 * lib/vasnprintf.c (decimal_point_char): Define also if
2742 NEED_PRINTF_INFINITE_LONG_DOUBLE.
2744 2008-09-16 Bruno Haible <bruno@clisp.org>
2745 and Eric Blake <ebb9@byu.net>
2747 vasnprintf: support Irix 5.3
2748 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
2749 that mishandle long double infinity.
2750 Reported by Tom G. Christensen.
2752 2008-09-16 Bruno Haible <bruno@clisp.org>
2754 * doc/glibc-functions/scandir.texi: Mention the function is missing on
2756 * doc/glibc-functions/alphasort.texi: Likewise.
2757 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
2759 2008-09-16 Jim Meyering <meyering@redhat.com>
2761 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
2762 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
2763 a umask modification leak out of a subshell. Otherwise, the
2764 opensolaris /bin/sh would be accepted and thus cause unwarranted
2765 failures in the coreutils test suite.
2767 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
2769 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
2772 2008-09-16 Jim Meyering <meyering@redhat.com>
2774 avoid spurious test failure when library is built without ACL support
2775 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
2776 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
2777 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
2778 * tests/test-copy-acl.sh: Likewise.
2780 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2782 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
2783 based on character occurrence counts.
2785 2008-09-15 Eric Blake <ebb9@byu.net>
2787 tests: avoid some compiler warnings
2788 * tests/test-memchr.c (main): Pass NULL indirectly.
2789 * tests/test-closein.c (main): Avoid unused variable.
2791 2008-09-15 Bruno Haible <bruno@clisp.org>
2793 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
2794 are missing on OpenBSD 4.0 individually.
2795 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2797 2008-09-15 Bruno Haible <bruno@clisp.org>
2799 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
2800 * doc/posix-functions/strerror.texi: Mention also Cygwin.
2801 * doc/posix-functions/perror.texi: Likewise.
2802 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
2804 Reported by Eric Blake.
2806 * lib/errno.in.h: Use replacement values >= 2000.
2807 Reported by Eric Blake.
2809 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2811 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
2812 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
2814 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
2815 compareseq was aborted.
2817 2008-09-14 Bruno Haible <bruno@clisp.org>
2819 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
2821 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
2822 (fstrcmp_bounded): Simplify result computation accordingly.
2824 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2826 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
2827 (fstrcmp): Define in terms of fstrcmp_bounded.
2828 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
2829 lower_bound argument.
2830 Return quickly if the result is certainly < lower_bound.
2831 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
2833 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2835 * lib/diffseq.h (EARLY_ABORT): New macro.
2836 (compareseq): Change return type to bool. Return true when EARLY_ABORT
2839 2008-09-14 Bruno Haible <bruno@clisp.org>
2841 * modules/perror-tests: New file.
2842 * tests/test-perror.sh: New file.
2843 * tests/test-perror.c: New file.
2845 New module 'perror'.
2846 * lib/stdio.in.h (perror): New declaration.
2847 * lib/perror.c: New file.
2848 * m4/perror.m4: New file.
2849 * modules/perror: New file.
2850 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
2851 * doc/posix-functions/perror.texi: Mention the perror module.
2852 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
2854 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
2857 2008-09-14 Bruno Haible <bruno@clisp.org>
2859 * modules/stdio (Makefile.am): Reorder to match the order in
2861 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2863 2008-09-13 Bruno Haible <bruno@clisp.org>
2865 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
2867 2008-09-13 Bruno Haible <bruno@clisp.org>
2869 Extend strerror to cover the added errno values.
2870 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
2871 (rpl_strerror): Provide error messages for the added errno values and
2872 for the WSA* values.
2873 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
2874 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
2876 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
2877 * modules/strerror (Depends-on): Add errno.
2878 * doc/posix-functions/strerror.texi: Document the change.
2879 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
2882 2008-09-13 Bruno Haible <bruno@clisp.org>
2884 * modules/EOVERFLOW: Remove file.
2885 * m4/eoverflow.m4: Remove file.
2886 * modules/EOVERFLOW-tests: Remove file.
2887 * tests/test-EOVERFLOW.c: Remove file.
2888 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
2889 * modules/ftell (Depends-on): Likewise.
2890 * modules/getdelim (Depends-on): Likewise.
2891 * modules/getugroups (Depends-on): Likewise.
2892 * modules/poll (Depends-on): Likewise.
2893 * modules/snprintf (Depends-on): Likewise.
2894 * modules/sprintf-posix (Depends-on): Likewise.
2895 * modules/vasnprintf (Depends-on): Likewise.
2896 * modules/vasprintf (Depends-on): Likewise.
2897 * modules/vfprintf-posix (Depends-on): Likewise.
2898 * modules/vsnprintf (Depends-on): Likewise.
2899 * modules/vsprintf-posix (Depends-on): Likewise.
2900 * modules/xvasprintf (Depends-on): Likewise.
2901 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
2902 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
2903 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
2904 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
2905 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2906 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
2907 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
2908 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
2909 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2910 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
2911 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
2912 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
2913 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2914 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
2915 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
2916 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
2917 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2918 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
2919 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
2920 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
2921 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2922 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
2923 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
2924 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
2925 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
2926 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2927 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
2928 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
2929 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
2930 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
2931 * MODULES.html.sh: Remove EOVERFLOW.
2932 * NEWS: Mention the change.
2934 2008-09-13 Bruno Haible <bruno@clisp.org>
2936 * modules/errno-tests: New file.
2937 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
2939 * lib/errno.in.h: New file.
2940 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
2941 * modules/errno: New file.
2942 * doc/posix-headers/errno.texi: Update documentation.
2943 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
2945 2008-09-13 Bruno Haible <bruno@clisp.org>
2947 * tests/test-poll.c: Use #if for native Windows, rather than testing
2950 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2951 Bruno Haible <bruno@clisp.org>
2953 * lib/glob.c: Don't include <pwd.h> on native Windows.
2954 (WINDOWS32): New macro.
2955 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
2957 2008-09-13 Bruno Haible <bruno@clisp.org>
2959 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
2960 (ETIMEDOUT): Remove macro.
2961 (glthread_cond_timedwait_multithreaded): New declaration.
2962 (glthread_cond_timedwait): Use it.
2963 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
2964 (glthread_cond_timedwait_multithreaded): New function.
2966 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
2968 * modules/poll-tests: Do not check for io.h.
2969 * tests/test-poll.c: Check for __MSVCRT__ instead.
2971 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
2973 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
2974 * modules/poll-tests: Add inet_pton, stdbool, sockets.
2975 * tests/test-poll.c: Use them. Use _pipe on Windows.
2977 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
2979 * modules/poll-tests: New.
2980 * tests/test-poll.c: New.
2982 2008-09-12 Eric Blake <ebb9@byu.net>
2984 frexp: test for NetBSD failure on -0.0
2985 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
2986 not all, bugs from NetBSD 3.0 have been fixed.
2987 * doc/posix-functions/frexp.texi (frexp): Document bug.
2988 Reported by Thomas Klausner.
2990 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
2991 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
2993 Reported by Jonathan C. Patschke <jp@centtech.com>.
2995 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
2997 * lib/glthread/cond.h: Use dummy implementation also if
3000 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3002 * modules/fnmatch-posix (License): Change to LGPLv2+.
3003 * modules/fnmatch-gnu (License): Likewise.
3005 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3007 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
3009 2008-09-11 Jim Meyering <meyering@redhat.com>
3011 * users.txt: Add gtk-vnc.
3013 2008-09-08 Simon Josefsson <simon@josefsson.org>
3015 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
3018 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
3019 required for 16-bit and 8-bit rotates.
3020 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
3021 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
3022 UINT8_MAX instead of hard-coded constants.
3023 Suggested by Paul Eggert.
3025 2008-09-07 Bruno Haible <bruno@clisp.org>
3027 * tests/test-striconveh.c (main): Check behaviour when converting from
3030 Make striconveh work better with stateful encodings.
3031 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
3032 that iconv does not increment the inptr when returning -1/EINVAL.
3034 2008-09-07 Bruno Haible <bruno@clisp.org>
3036 * build-aux/config.rpath: Update according to libtool-2.2.6.
3037 * build-aux/config.libpath: Likewise.
3039 2008-09-06 Bruno Haible <bruno@clisp.org>
3041 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
3042 * lib/freadptr.c (freadptr): Likewise.
3043 * lib/freadseek.c (freadptrinc): Likewise.
3044 Reported by Simon Josefsson.
3046 2008-09-06 Bruno Haible <bruno@clisp.org>
3048 * modules/freadptr (License): Change to LGPLv2+.
3049 * modules/freadseek (License): Likewise.
3050 Suggested by Eric Blake.
3052 * modules/memchr2 (License): Change to LGPLv2+.
3053 Approved by Eric Blake.
3055 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3056 Bruno Haible <bruno@clisp.org>
3058 Make gnulib-tool work with native 'sed' on AIX.
3059 * gnulib-tool (sed_noop): New variable.
3060 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
3061 func_add_or_update, func_create_testdir): Use it to initialize sed
3063 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3065 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
3066 Bruno Haible <bruno@clisp.org>
3068 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
3069 also works after #include directives.
3071 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
3073 getdate.y: reject an out-of-range timezone value
3074 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
3075 the range [-24...+24]. When specified with only one or two digits,
3076 * tests/test-getdate.c: Tests for the fix.
3077 * doc/getdate.texi: Document this change.
3079 2008-09-03 Bruno Haible <bruno@clisp.org>
3081 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
3083 2008-09-02 Simon Josefsson <simon@josefsson.org>
3085 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
3086 <bruce.korb@gmail.com> with ideas from Ben Pfaff
3087 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
3088 Blake <ebb9@byu.net>.
3090 * tests/test-bitrotate.c: Add more test vectors.
3092 2008-09-02 Eric Blake <ebb9@byu.net>
3094 vasnprintf-posix: handle large precision via %.*d
3095 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
3096 when handling it ourselves.
3097 * tests/test-vasnprintf-posix.c (test_function): Add test.
3098 * tests/test-snprintf-posix.h (test_function): Likewise.
3099 * tests/test-sprintf-posix.h (test_function): Likewise.
3100 * tests/test-vasprintf-posix.c (test_function): Likewise.
3101 Reported by Alain Guibert.
3103 2008-09-01 Eric Blake <ebb9@byu.net>
3105 c-stack: make configure-time check more robust
3106 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
3107 successful sigaction call.
3108 Reported by Tom G. Christensen.
3110 2008-09-01 Bruno Haible <bruno@clisp.org>
3112 New module 'findprog-lgpl'.
3113 * modules/findprog-lgpl: New file.
3114 * lib/findprog-lgpl.c: New file.
3115 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
3116 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
3117 to decide whether to use strdup or xstrdup, concatenated_filename or
3118 xconcatenated_filename.
3120 2008-09-01 Bruno Haible <bruno@clisp.org>
3122 Split module 'concat-filename' into 'concat-filename' (LGPL) and
3123 'xconcat-filename' (GPL).
3124 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
3125 (License): Change to LGPLv2+.
3126 * modules/xconcat-filename: New file.
3127 * lib/concat-filename.h (concatenated_filename): Change specification.
3128 (xconcatenated_filename): New declaration.
3129 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
3130 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
3132 * lib/xconcat-filename.c: New file.
3133 * NEWS: Mention the change.
3134 * lib/findprog.c: Include concat-filename.h, not filename.h.
3135 (find_in_path): Use xconcatenated_filename instead of
3136 concatenated_filename.
3137 * lib/javacomp.c: Include concat-filename.h, not filename.h.
3138 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
3139 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
3140 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
3141 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
3142 instead of concatenated_filename.
3143 * lib/javaexec.c: Include concat-filename.h, not filename.h.
3144 (execute_java_class): Use xconcatenated_filename instead of
3145 concatenated_filename.
3146 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
3147 * modules/javacomp (Depends-on): Likewise.
3148 * modules/javaexec (Depends-on): Likewise.
3150 2008-09-01 Bruno Haible <bruno@clisp.org>
3152 Split module 'filename' into 'filename' and 'concat-filename'.
3153 * modules/filename: Keep only lib/filename.h.
3154 (License): Change to LGPLv2+.
3155 * modules/concat-filename: New file, extracted from modules/filename.
3156 * lib/filename.h (concatenated_filename): Remove declaration.
3157 * lib/concat-filename.h: New file, extracted from lib/filename.h.
3158 * lib/concat-filename.c: Include concat-filename.h.
3159 * NEWS: Mention the change.
3161 2008-09-01 Simon Josefsson <simon@josefsson.org>
3163 * lib/bitrotate.h (rotl8, rotr8): Add.
3165 * modules/bitrotate (configure.ac): Need
3166 AC_REQUIRE([AC_C_INLINE]).
3167 (Description): Mention stdint.h. Reported by Bruno Haible
3170 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
3171 Paolo Bonzini <bonzini@gnu.org>.
3173 2008-08-31 Bruno Haible <bruno@clisp.org>
3175 Assume Solaris specific bi-arch conventions on Solaris systems.
3176 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
3177 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
3178 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
3179 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
3180 like acl_libdirstem.
3181 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
3183 * NEWS: Mention the change.
3184 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
3186 2008-08-31 Jim Meyering <meyering@redhat.com>
3188 * lib/strftime.h: Add comments describing the two added arguments.
3190 remove duplicate #include directives
3191 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
3192 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
3194 2008-08-31 Bruno Haible <bruno@clisp.org>
3196 New module 'sigpipe-die'.
3197 * modules/sigpipe-die: New file.
3198 * lib/sigpipe-die.h: New file.
3199 * lib/sigpipe-die.c: New file.
3200 * MODULES.html.sh (Signal handling): Add sigpipe-die.
3202 2008-08-31 Bruno Haible <bruno@clisp.org>
3204 Don't override previously installed signal handlers.
3205 * lib/fatal-signal.c (saved_sigactions): New variable.
3206 (uninstall_handlers): Reset the signal to the saved handler, not
3207 to SIG_DFL (except when ignored).
3208 (install_handlers): Save the previous handlers.
3210 2008-08-30 Bruno Haible <bruno@clisp.org>
3212 * gnulib-tool (func_reset_sigpipe): New function.
3213 (func_get_automake_snippet, func_modules_transitive_closure,
3214 func_import): Invoke it before a join command that reads from stdin,
3215 to avoid "echo: write error: Broken pipe" error messages on stderr.
3216 Reported by Sam Steingold <sds@gnu.org>.
3218 2008-08-30 Bruno Haible <bruno@clisp.org>
3220 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
3221 Code copied from m4/open.m4.
3222 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
3223 access and the filename ends in a slash. Code copied from lib/open.c.
3224 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
3225 * tests/test-fopen.c (main): Check against bug with trailing slash.
3227 2008-08-29 Bruno Haible <bruno@clisp.org>
3229 Avoid some "gcc -pedantic" warnings.
3230 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
3231 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
3232 * lib/dirent.in.h: Likewise.
3233 * lib/fcntl.in.h: Likewise.
3234 * lib/float.in.h: Likewise.
3235 * lib/iconv.in.h: Likewise.
3236 * lib/inttypes.in.h: Likewise.
3237 * lib/locale.in.h: Likewise.
3238 * lib/math.in.h: Likewise.
3239 * lib/netinet_in.in.h: Likewise.
3240 * lib/search.in.h: Likewise.
3241 * lib/signal.in.h: Likewise.
3242 * lib/stdarg.in.h: Likewise.
3243 * lib/stdint.in.h: Likewise.
3244 * lib/stdio.in.h: Likewise.
3245 * lib/stdlib.in.h: Likewise.
3246 * lib/string.in.h: Likewise.
3247 * lib/strings.in.h: Likewise.
3248 * lib/sys_select.in.h: Likewise.
3249 * lib/sys_socket.in.h: Likewise.
3250 * lib/sys_stat.in.h: Likewise.
3251 * lib/sys_time.in.h: Likewise.
3252 * lib/sysexits.in.h: Likewise.
3253 * lib/time.in.h: Likewise.
3254 * lib/unistd.in.h: Likewise.
3255 * lib/wchar.in.h: Likewise.
3256 * lib/wctype.in.h: Likewise.
3257 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
3258 * modules/fchdir (Makefile.am): Likewise.
3259 * modules/fcntl (Makefile.am): Likewise.
3260 * modules/float (Makefile.am): Likewise.
3261 * modules/iconv_open (Makefile.am): Likewise.
3262 * modules/inttypes (Makefile.am): Likewise.
3263 * modules/locale (Makefile.am): Likewise.
3264 * modules/math (Makefile.am): Likewise.
3265 * modules/netinet_in (Makefile.am): Likewise.
3266 * modules/search (Makefile.am): Likewise.
3267 * modules/signal (Makefile.am): Likewise.
3268 * modules/stdarg (Makefile.am): Likewise.
3269 * modules/stdint (Makefile.am): Likewise.
3270 * modules/stdio (Makefile.am): Likewise.
3271 * modules/stdlib (Makefile.am): Likewise.
3272 * modules/string (Makefile.am): Likewise.
3273 * modules/strings (Makefile.am): Likewise.
3274 * modules/sys_select (Makefile.am): Likewise.
3275 * modules/sys_socket (Makefile.am): Likewise.
3276 * modules/sys_stat (Makefile.am): Likewise.
3277 * modules/sys_time (Makefile.am): Likewise.
3278 * modules/sysexits (Makefile.am): Likewise.
3279 * modules/time (Makefile.am): Likewise.
3280 * modules/unistd (Makefile.am): Likewise.
3281 * modules/wchar (Makefile.am): Likewise.
3282 * modules/wctype (Makefile.am): Likewise.
3283 Reported by Reuben Thomas <rrt@sc3d.org>.
3285 2008-08-29 Bruno Haible <bruno@clisp.org>
3287 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
3290 2008-08-29 Simon Josefsson <simon@josefsson.org>
3292 * MODULES.html.sh (Misc): Add bitrotate.
3294 * modules/bitrotate: New file.
3296 * lib/bitrotate.h: New file.
3298 * modules/bitrotate-tests: New file.
3300 * tests/test-bitrotate.c: New file.
3302 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
3303 on the bitrotate module.
3305 * lib/arctwo.c: Use new bitrotate module.
3307 2008-08-29 Jim Meyering <meyering@redhat.com>
3309 bootstrap: merge changes from coreutils
3310 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
3311 of copied files. Remove a kludge, now that this is fixed.
3312 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
3313 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
3314 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
3316 2008-08-29 Bruno Haible <bruno@clisp.org>
3318 * MODULES.html.sh: Remove --cvs-urls option.
3320 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
3322 maint.mk: adjust to file name change
3323 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
3325 2008-08-28 Jim Meyering <meyering@redhat.com>
3327 * modules/getndelim2 (License): Relicense to LGPLv2+.
3328 Approved by Richard Stallman for the version of 1995, and by
3329 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
3331 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
3333 * lib/getdelim.c (flockfile, funlockfile): Make all of them
3334 dummy if one is not available. Do not touch them if
3335 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
3336 (getc_maybe_unlocked): New.
3337 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
3339 2008-08-26 Eric Blake <ebb9@byu.net>
3341 doc/INSTALL: resync from autoconf
3342 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
3343 (INSTALL_PRELUDE): Delete; this is done more efficiently by
3345 * install.texi [!autoconf]: ...here. Resync from autoconf.
3346 * INSTALL: Regenerate.
3347 * INSTALL.ISO: New file.
3348 * INSTALL.UTF-8: Likewise.
3350 2008-08-26 Jim Meyering <meyering@redhat.com>
3352 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
3353 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
3354 these definitions conditional, so that they may be overridden, too.
3356 2008-08-26 Bruno Haible <bruno@clisp.org>
3358 Generate INSTALL file variants with prettier quotes.
3359 * doc/Makefile (INSTALL_PRELUDE): New macro.
3361 (INSTALL.ISO, INSTALL.UTF-8): New rules.
3363 2008-08-26 Bruno Haible <bruno@clisp.org>
3365 Run makeinfo in an English locale.
3366 * doc/Makefile (MAKEINFO): New variable.
3368 2008-08-26 Bruno Haible <bruno@clisp.org>
3370 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
3371 Suggested by Eric Blake.
3373 2008-08-25 Bruno Haible <bruno@clisp.org>
3375 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
3377 2008-08-25 Eric Blake <ebb9@byu.net>
3379 c-stack: test that stack overflow can be caught
3380 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
3381 that platform allows handling stack overflow; at least OS/2 EMX
3382 has sigaltstack, but crashes before transferring control to
3383 handler on stack overflow.
3384 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
3385 check for HAVE_STACK_OVERFLOW_HANDLING.
3386 Reported by Elbert Pol.
3388 2008-08-25 Bruno Haible <bruno@clisp.org>
3390 * doc/posix-functions/strftime.texi: Fix description of strftime
3393 2008-08-24 Bruno Haible <bruno@clisp.org>
3395 * tests/uniwidth/test-uc_width2.c: New file.
3396 * tests/uniwidth/test-uc_width2.sh: New file.
3397 * modules/uniwidth/width-tests (Files): Add the new files.
3398 (TESTS): Add uniwidth/test-uc_width2.sh.
3399 (TESTS_ENVIRONMENT): New variable.
3400 (check_PROGRAMS): Add test-uc_width2.
3401 (test_uc_width2_SOURCES): New variable.
3403 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
3404 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
3406 Reported by Alexander V. Lukyanov <lav@netis.ru>.
3408 2008-08-22 Eric Blake <ebb9@byu.net>
3410 test-lock, test-tls: mention why a test is skipped
3411 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
3413 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
3415 count-one-bits: relax license
3416 * modules/count-one-bits (License): Relicense to LGPLv2+.
3417 Suggested by Ludovic Courtès, approved by Ben Pfaff.
3419 2008-08-22 Andreas Schwab <schwab@suse.de>
3421 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
3422 Remove spurious space in assignment.
3424 2008-08-21 Simon Josefsson <simon@josefsson.org>
3426 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
3427 Paul Eggert <eggert@CS.UCLA.EDU>.
3429 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
3431 * modules/gettext: Add m4/threadlib.m4.
3433 2008-08-19 Eric Blake <ebb9@byu.net>
3435 test-c-stack: fix compilation failure on FreeBSD 5.0
3436 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
3437 headers before <sys/resource.h>.
3438 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
3440 Reported by Nelson H. F. Beebe.
3442 strverscmp: migrate from "strverscmp.h" to <string.h>
3443 * modules/string (Makefile.am): Add new hooks.
3444 * modules/strverscmp (Files): Remove strverscmp.h.
3445 (Depends-on): Add string.
3446 (configure.ac): Add indicator.
3447 (Include): Mention new header.
3448 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
3450 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
3452 * lib/strverscmp.h: Delete.
3453 * lib/string.in.h (strverscmp): Provide declaration, when needed.
3454 * tests/test-strverscmp.c (includes): Adjust client.
3455 * lib/check-version.c (includes): Likewise.
3456 * NEWS: Document the change.
3458 strverscmp: add unit test
3459 * modules/strverscmp-tests: New file.
3460 * tests/test-strverscmp.c: Likewise.
3462 2008-08-19 Simon Josefsson <simon@josefsson.org>
3464 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
3465 regarding Windows crypto stuff, from Mono.
3467 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
3469 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
3470 if present, for intel RND. Return error on failures.
3472 2008-08-18 Ben Pfaff <blp@gnu.org>
3474 gitlog-to-changelog: give better diagnostic for failed pipe-open
3475 * build-aux/gitlog-to-changelog: Improve error message: suggest
3476 that the version of Git may be too old.
3478 2008-08-18 Simon Josefsson <simon@josefsson.org>
3480 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
3481 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
3483 2008-08-18 Bruno Haible <bruno@clisp.org>
3485 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
3488 2008-08-18 Bruno Haible <bruno@clisp.org>
3490 * lib/glthread/threadlib.c: Include <pthread.h>.
3492 2008-08-18 Bruno Haible <bruno@clisp.org>
3494 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
3495 glthread_recursive_lock_* macros.
3496 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
3499 2008-08-18 Bruno Haible <bruno@clisp.org>
3501 * lib/glthread/thread.c: Avoid forcing a context switch right after
3504 2008-08-17 Bruno Haible <bruno@clisp.org>
3506 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
3507 * lib/glthread/thread.h: Provide Win32 specific implementation.
3508 * modules/thread (Files): Add lib/glthread/thread.c.
3509 (Depends-on): Add lock.
3510 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
3512 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3515 * modules/yield: New file.
3516 * lib/glthread/yield.h: New file.
3517 * m4/yield.m4: New file.
3518 * MODULES.html.sh (Multithreading): Add yield.
3520 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3522 New module 'thread'.
3523 * modules/thread: New file.
3524 * lib/glthread/thread.h: New file.
3525 * m4/thread.m4: New file.
3526 * MODULES.html.sh (Multithreading): Add thread.
3528 2008-08-17 Bruno Haible <bruno@clisp.org>
3530 * lib/glthread/lock.h: Include <stdlib.h> always.
3531 * lib/glthread/tls.h: Likewise.
3532 * lib/glthread/cond.h: Likewise.
3534 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
3537 * modules/cond: New file.
3538 * lib/glthread/cond.h: New file.
3539 * lib/glthread/cond.c: New file.
3540 * m4/cond.m4: New file.
3541 * MODULES.html.sh (Multithreading): Add cond.
3543 2008-08-16 Eric Blake <ebb9@byu.net>
3545 c-stack: fix regression on Irix 5.3 from 2008-06-21
3546 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
3548 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
3549 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
3550 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
3551 * modules/signal (Makefile.am): Use the value.
3552 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
3553 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
3554 * doc/posix-headers/signal.texi (signal.h): Document this
3556 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
3557 Reported by Tom G. Christensen.
3559 2008-08-17 Bruno Haible <bruno@clisp.org>
3561 New module 'threadlib'.
3562 * modules/threadlib: New file.
3563 * lib/glthread/threadlib.c: New file, extracted from
3564 lib/glthread/lock.c.
3565 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
3567 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
3568 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
3569 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
3571 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
3572 (gl_DISABLE_THREADS): Remove macro.
3573 * modules/lock (Files): Remove build-aux/config.rpath.
3574 (Depends-on): Remove havelib. Add threadlib.
3575 (configure.ac-early): Remove section.
3576 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
3577 * modules/tls (Depends-on): Remove lock. Add threadlib.
3578 (Link): New section, copied from threadlib.
3579 * MODULES.html.sh (Multithreading): Add threadlib.
3581 2008-08-14 Bruno Haible <bruno@clisp.org>
3583 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
3584 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
3585 glthread_rwlock_unlock, glthread_rwlock_destroy,
3586 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
3587 glthread_recursive_lock_destroy): Define as macros always.
3588 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
3590 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
3591 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
3592 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
3593 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
3594 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
3595 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
3596 (glthread_recursive_lock_lock_func): Renamed from
3597 glthread_recursive_lock_lock.
3598 (glthread_recursive_lock_unlock_func): Renamed from
3599 glthread_recursive_lock_unlock.
3600 (glthread_recursive_lock_destroy_func): Renamed from
3601 glthread_recursive_lock_destroy.
3603 2008-08-14 Bruno Haible <bruno@clisp.org>
3605 * lib/glthread/lock.h: Renamed from lib/lock.h.
3606 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
3607 * lib/glthread/tls.h: Renamed from lib/tls.h.
3608 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
3609 * lib/fstrcmp.c: Update includes.
3610 * lib/strsignal.c: Update includes.
3611 * modules/lock (Files, Makefile.am): Update.
3612 (Include): Change to "glthread/lock.h".
3613 * modules/tls (Files, Makefile.am): Update.
3614 (Include): Change to "glthread/tls.h".
3615 * tests/test-lock.c: Update includes.
3616 * tests/test-tls.c: Update includes.
3617 * NEWS: Mention the renamed header files.
3619 2008-08-11 Jim Meyering <meyering@redhat.com>
3621 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
3623 2008-08-11 Eric Blake <ebb9@byu.net>
3625 test-c-stack: avoid C99-ism
3626 * tests/test-c-stack.c (main): Fix whitespace, move declaration
3628 Reported by Alain Guibert.
3630 2008-08-10 Jim Meyering <meyering@redhat.com>
3632 ensure that return value of uinttostr et al are not ignored
3633 * lib/inttostr.h (__GNUC_PREREQ): Define.
3634 (__attribute_warn_unused_result__): Define.
3635 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
3637 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
3639 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
3640 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
3642 2008-08-07 Jim Meyering <meyering@redhat.com>
3644 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
3646 * modules/mkstemp (License): Relicense under LGPLv2+.
3647 * modules/tempname (License): Likewise.
3649 2008-08-06 Bruno Haible <bruno@clisp.org>
3651 * lib/poll.c (poll): Further micro-optimization.
3653 2008-08-06 Jim Meyering <meyering@redhat.com>
3655 inet_pton.c: use locale-independent tolower
3656 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
3657 (inet_pton6): Use c_tolower rather than tolower.
3658 * modules/inet_pton (Depends-on): Add c-ctype.
3660 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
3662 * lib/poll.c (poll): Avoid division when timeout is 0, cache
3663 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
3665 2008-08-06 Jim Meyering <meyering@redhat.com>
3667 * modules/inet_pton (License): Relicense under LGPLv2+.
3669 2008-08-03 Bruno Haible <bruno@clisp.org>
3671 Additional non-aborting API for lock and tls.
3672 * lib/lock.h: Include <errno.h>.
3673 (glthread_lock_init): New macro/function.
3674 (gl_lock_init): Define as wrapper around glthread_lock_init.
3675 (glthread_lock_lock): New macro/function.
3676 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
3677 (glthread_lock_unlock): New macro/function.
3678 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
3679 (glthread_lock_destroy): New macro/function.
3680 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
3681 (glthread_rwlock_init): New macro/function.
3682 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
3683 (glthread_rwlock_rdlock): New macro/function.
3684 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
3685 (glthread_rwlock_wrlock): New macro/function.
3686 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
3687 (glthread_rwlock_unlock): New macro/function.
3688 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
3689 (glthread_rwlock_destroy): New macro/function.
3690 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
3691 (glthread_recursive_lock_init): New macro/function.
3692 (gl_recursive_lock_init): Define as wrapper around
3693 glthread_recursive_lock_init.
3694 (glthread_recursive_lock_lock): New macro/function.
3695 (gl_recursive_lock_lock): Define as wrapper around
3696 glthread_recursive_lock_lock.
3697 (glthread_recursive_lock_unlock): New macro/function.
3698 (gl_recursive_lock_unlock): Define as wrapper around
3699 glthread_recursive_lock_unlock.
3700 (glthread_recursive_lock_destroy): New macro/function.
3701 (gl_recursive_lock_destroy): Define as wrapper around
3702 glthread_recursive_lock_destroy.
3703 (glthread_once): New macro/function.
3704 (gl_once): Define as wrapper around glthread_once.
3705 Update function declarations.
3706 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
3707 glthread_rwlock_init. Return error code.
3708 (glthread_rwlock_rdlock_multithreaded): Renamed from
3709 glthread_rwlock_rdlock. Return error code.
3710 (glthread_rwlock_wrlock_multithreaded): Renamed from
3711 glthread_rwlock_wrlock. Return error code.
3712 (glthread_rwlock_unlock_multithreaded): Renamed from
3713 glthread_rwlock_unlock. Return error code.
3714 (glthread_rwlock_destroy_multithreaded): Renamed from
3715 glthread_rwlock_destroy. Return error code.
3716 (glthread_recursive_lock_init_multithreaded): Renamed from
3717 glthread_recursive_lock_init. Return error code.
3718 (glthread_recursive_lock_lock_multithreaded): Renamed from
3719 glthread_recursive_lock_lock. Return error code.
3720 (glthread_recursive_lock_unlock_multithreaded): Renamed from
3721 glthread_recursive_lock_unlock. Return error code.
3722 (glthread_recursive_lock_destroy_multithreaded): Renamed from
3723 glthread_recursive_lock_destroy. Return error code.
3724 (glthread_once_call): Make static.
3725 (glthread_once_multithreaded): Renamed from glthread_once.
3726 * lib/tls.h: Include <errno.h>.
3727 (glthread_tls_key_init): New macro/function.
3728 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
3729 (glthread_tls_set): New macro/function.
3730 (gl_tls_set): Define as wrapper around glthread_tls_set.
3731 (glthread_tls_key_destroy): New macro/function.
3732 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
3733 Update function declarations.
3734 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
3736 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
3738 2008-08-04 Eric Blake <ebb9@byu.net>
3740 gnumakefile: use space, not TAB, outside of targets
3741 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
3743 2008-08-02 Jim Meyering <meyering@redhat.com>
3745 getdate.y: avoid locale-dependent date parsing failure
3746 In Turkish locales, getdate would fail to recognize keywords
3747 containing a lowercase "i". The solution is not to rely on
3748 locale-sensitive case-conversion.
3749 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
3750 (lookup_word): Use c_toupper in place of toupper.
3751 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
3752 Reported by Vefa Bicakci <bicave@superonline.com> in
3753 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
3754 * modules/getdate (Depends-on): Add c-ctype.
3756 2008-08-02 Bruno Haible <bruno@clisp.org>
3758 * gnulib-tool (func_import): When updating or creating a .gitignore
3759 file, prepend each added line with a slash, and ignore leading slashes
3760 from the existing lines.
3761 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
3763 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3765 Portability fix for GNU make 3.79.1.
3766 * top/GNUmakefile: Avoid 'else COND', which older GNU make
3767 versions do not understand.
3769 2008-08-01 Bruno Haible <bruno@clisp.org>
3771 Work around bug of HP-UX 10.20 cc with -0.0 literal.
3772 * tests/test-isnanf.h (zero): New variable.
3773 (main): Avoid literal -0.0f.
3774 * tests/test-isnand.h (zero): New variable.
3775 (main): Avoid literal -0.0.
3776 * tests/test-isnanl.h (zero): New variable.
3777 (main): Avoid literal -0.0L.
3778 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
3779 (test_float, test_double, test_long_double): Avoid literals -0.0f,
3781 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
3782 (test_signbitd): Avoid literal -0.0.
3783 (test_signbitl): Avoid literal -0.0L.
3784 * tests/test-ceilf1.c (zero): New variable.
3785 (main): Avoid literal -0.0f.
3786 * tests/test-ceill.c (zero): New variable.
3787 (main): Avoid literal -0.0L.
3788 * tests/test-floorf1.c (zero): New variable.
3789 (main): Avoid literal -0.0f.
3790 * tests/test-floorl.c (zero): New variable.
3791 (main): Avoid literal -0.0L.
3792 * tests/test-roundf1.c (zero): New variable.
3793 (main): Avoid literal -0.0f.
3794 * tests/test-round1.c (zero): New variable.
3795 (main): Avoid literal -0.0.
3796 * tests/test-roundl.c (zero): New variable.
3797 (main): Avoid literal -0.0L.
3798 * tests/test-truncf1.c (zero): New variable.
3799 (main): Avoid literal -0.0f.
3800 * tests/test-trunc1.c (zero): New variable.
3801 (main): Avoid literal -0.0.
3802 * tests/test-truncl.c (zero): New variable.
3803 (main): Avoid literal -0.0L.
3804 * tests/test-frexp.c (zero): New variable.
3805 (main): Avoid literal -0.0.
3806 * tests/test-frexpl.c (zero): New variable.
3807 (main): Avoid literal -0.0L.
3808 * tests/test-ldexpl.c (zero): New variable.
3809 (main): Avoid literal -0.0L.
3810 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3811 (zerod, zerol): New variables.
3812 (test_function): Avoid literals -0.0, -0.0L.
3813 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3814 (zerod, zerol): New variables.
3815 (test_function): Avoid literals -0.0, -0.0L.
3816 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3817 (zerod, zerol): New variables.
3818 (test_function): Avoid literals -0.0, -0.0L.
3819 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3820 (zerod, zerol): New variables.
3821 (test_function): Avoid literals -0.0, -0.0L.
3822 * tests/test-strtod.c (zero): New variable.
3823 (main): Avoid literal -0.0.
3824 Reported by Jonathan C. Patschke <jp@centtech.com>.
3826 2008-07-31 Jim Meyering <meyering@redhat.com>
3828 sha256.h: correct definition of SHA224_DIGEST_SIZE
3829 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
3830 Reported by Paulie Pena IV <paulie4@gmail.com>.
3831 Define as 224 / 8, rather than as a literal.
3832 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
3833 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
3834 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
3836 2008-07-31 Bruno Haible <bruno@clisp.org>
3838 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
3839 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
3840 Reported by Jonathan Patschke <jp@centtech.com>.
3842 2008-07-31 Bruno Haible <bruno@clisp.org>
3844 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
3845 Reported by Paolo Bonzini <bonzini@gnu.org>.
3847 2008-07-30 Eric Blake <ebb9@byu.net>
3849 test-strtod: allow compilation without -lm
3850 * tests/test-strtod.c (main): Avoid link dependence on fabs.
3851 Reported by Dennis Clarke <blastwave@gmail.com>.
3853 2008-07-28 Jim Meyering <meyering@redhat.com>
3855 bootstrap: work also when there are no .po files in po/
3856 * build-aux/bootstrap (update_po_files): Complete the change
3857 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
3859 2008-07-27 Jim Meyering <meyering@redhat.com>
3861 * users.txt: Add zile.
3863 2008-07-26 Ben Pfaff <blp@gnu.org>
3865 Add missing dependencies on new m4/exponent[fdl].m4 files.
3866 * modules/isnanf-nolibm: Add m4/exponentf.m4.
3867 * modules/isnand-nolibm: Add m4/exponentd.m4.
3868 * modules/isnanl-nolibm: Add m4/exponentl.m4.
3869 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
3870 m4/isnan[fdl].m4, because the macros actually used moved.
3871 Reported by Jim Meyering.
3873 2008-07-14 Ben Pfaff <blp@gnu.org>
3876 * lib/isinf.c: New file.
3877 * lib/math.in.h: Define isinf macro if we have decided to replace
3879 * m4/isinf.m4: New file.
3880 * m4/math_h.m4: Initialize and substitute variables for isinf
3882 * modules/isinf: New file.
3883 * modules/isinf-tests: New file.
3884 * modules/math: Add substitutions for new module.
3885 * tests/test-isinf.c: New file.
3886 * doc/posix-functions/isinf.texi: Mention new module.
3887 * MODULES.html.sh: Mention new module.
3889 2008-07-14 Ben Pfaff <blp@gnu.org>
3891 Factor out some macros for use by additional modules.
3892 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
3894 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
3896 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
3898 * m4/exponentf.m4: New file.
3899 * m4/exponentd.m4: New file.
3900 * m4/exponentl.m4: New file.
3901 * modules/isnanf: Use new file m4/exponentf.m4.
3902 * modules/isnand: Use new file m4/exponentd.m4.
3903 * modules/isnanl: Use new file m4/exponentl.m4.
3905 2008-07-23 Ulrich Drepper <drepper@redhat.com>
3907 mktime.c: normalize tp->tm_isdst value to -1/0/1.
3908 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
3909 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
3910 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
3912 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
3913 readlink on platforms without PATH_MAX.
3915 2008-07-21 Eric Blake <ebb9@byu.net>
3917 Warn, not fail, on stale version.
3918 * top/GNUmakefile (_curr-ver): Tone down previous patch.
3920 Don't allow installation with stale devel version number.
3921 * top/GNUmakefile (_is-install-target): New macro.
3922 (_curr-ver): Forbid installation with stale version number.
3924 2008-07-20 Bruno Haible <bruno@clisp.org>
3926 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
3928 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
3930 2008-07-20 Bruno Haible <bruno@clisp.org>
3932 * lib/c-stack.h (c_stack_action): Add documentation.
3933 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
3935 2008-07-20 Bruno Haible <bruno@clisp.org>
3937 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
3938 * modules/readlink (License): Likewise.
3940 2008-07-17 Eric Blake <ebb9@byu.net>
3942 * modules/c-stack (Link): Fix typo.
3944 Make c-stack use libsigsegv, when available.
3945 * modules/c-stack (Depends-on): Add libsigsegv.
3946 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
3948 * lib/c-stack.c (SIGSTKSZ): Define fallback.
3949 (segv_handler, overflow_handler, c_stack_action)
3950 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
3951 implementation when libsigsegv is available, but only when using
3952 the library is necessary.
3953 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
3954 comment, explaining why XSI check fails on Linux.
3955 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
3956 * tests/test-c-stack2.sh: Tweak skip message.
3957 * NEWS: Document new link-time requirements.
3959 2008-07-16 Eric Blake <ebb9@byu.net>
3961 c-stack: Expose false positives when not using libsigsegv.
3962 * modules/c-stack-tests (Files): Expand test.
3963 * tests/test-c-stack.c (main): Add means to conditionally trigger
3964 non-overflow SIGSEGV.
3965 * tests/test-c-stack2.sh: New file.
3967 2008-07-14 Bruno Haible <bruno@clisp.org>
3969 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
3970 Reported by Eric Blake.
3972 2008-07-14 Sam Steingold <sds@gnu.org>
3973 Bruno Haible <bruno@clisp.org>
3975 New module libsigsegv.
3976 * modules/libsigsegv: New file.
3977 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
3979 * MODULES.html.sh (Signal handling): New section.
3981 2008-07-14 Bruno Haible <bruno@clisp.org>
3983 * modules/unictype/ctype-* (Description): Add the word "function".
3984 Improves the resulting doc in MODULES.html.
3986 2008-07-12 Ben Pfaff <blp@gnu.org>
3988 Add longlong module.
3989 * modules/longlong: New file.
3991 2008-07-12 Bruno Haible <bruno@clisp.org>
3993 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
3996 2008-07-10 Ben Pfaff <blp@gnu.org>
3999 * doc/posix-functions/isnan.texi: Mention new module.
4000 * lib/math.in.h: Define isnan macro if we have decided to replace
4002 * m4/isnan.m4: New file.
4003 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
4004 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
4006 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
4008 * m4/math_h.m4: Initialize and substitute variables for isnan
4010 * modules/isnan: New file.
4011 * modules/isnan-tests: New file.
4012 * modules/math: Add substitutions for new module.
4013 * tests/test-isnan.c: New file.
4014 * MODULES.html.sh: Mention new module.
4016 2008-07-10 Ben Pfaff <blp@gnu.org>
4019 * lib/isnanf.m4: New file.
4020 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
4021 (gl_HAVE_ISNANF_IN_LIBM): New macro.
4022 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
4023 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
4024 * modules/isnanf: New file.
4025 * modules/isnanf-tests: New file.
4026 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
4028 * tests/test-isnanf-nolibm.c: factored most of its contents into
4029 new file tests/test-isnanf.h.
4030 * tests/test-isnanf.h: New file.
4031 * tests/test-isnanf.c: New file.
4032 * MODULES.html.sh: Mention new module.
4033 * doc/glibc-functions/isnanf.texi: Mention new module.
4035 2008-07-10 Ben Pfaff <blp@gnu.org>
4038 * lib/isnand.h: New file.
4039 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
4040 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
4041 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
4043 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
4044 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
4045 (gl_HAVE_ISNAND_IN_LIBM): New macro.
4046 * modules/isnand: New file.
4047 * modules/isnand-tests: New file.
4048 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
4050 * tests/test-isnand-nolibm.c: factored most of its contents into
4051 new file tests/test-isnand.h.
4052 * tests/test-isnand.h: New file.
4053 * tests/test-isnand.c: New file.
4054 * MODULES.html.sh: Mention new module.
4056 2008-07-10 Ben Pfaff <blp@gnu.org>
4058 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
4059 * lib/isnand.h: Rename lib/isnand-nolibm.h.
4060 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
4061 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
4062 * modules/isnanf-nolibm: Update references to renamed files.
4063 * modules/isnand-nolibm: Likewise.
4064 * modules/isnanf-nolibm-tests: Likewise.
4065 * modules/isnand-nolibm-tests: Likewise.
4066 * lib/frexp.c: Likewise.
4067 * lib/isfinite.c: Likewise.
4068 * lib/signbitd.c: Likewise.
4069 * lib/signbitf.c: Likewise.
4070 * lib/vasnprintf.c: Likewise.
4071 * tests/test-ceilf1.c: Likewise.
4072 * tests/test-ceilf2.c: Likewise.
4073 * tests/test-floorf1.c: Likewise.
4074 * tests/test-floorf2.c: Likewise.
4075 * tests/test-frexp.c: Likewise.
4076 * tests/test-round1.c: Likewise.
4077 * tests/test-round2.c: Likewise.
4078 * tests/test-roundf1.c: Likewise.
4079 * tests/test-strtod.c: Likewise.
4080 * tests/test-trunc1.c: Likewise.
4081 * tests/test-trunc2.c: Likewise.
4082 * tests/test-truncf1.c: Likewise.
4083 * tests/test-truncf2.c: Likewise.
4084 * NEWS: Mention the renamed header files.
4086 2008-07-11 Jim Meyering <meyering@redhat.com>
4088 vc-list-files: make the last-resort awk code more portable
4089 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
4090 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
4091 does not support it.
4093 2008-07-10 Eric Blake <ebb9@byu.net>
4095 Work with tar's bootstrap.
4096 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
4097 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
4100 2008-07-09 Jim Meyering <meyering@redhat.com>
4102 posix-shell.m4: fix typo that made this test malfunction
4103 * m4/posix-shell.m4: Remove capitalization in variable name.
4105 2008-07-08 Bruno Haible <bruno@clisp.org>
4107 * m4/onceonly.m4: Update comments.
4108 Reported by Ben Pfaff <blp@cs.stanford.edu>.
4110 2008-07-04 Jim Meyering <meyering@redhat.com>
4112 * users.txt: Add vc-dwim.
4113 (bison, coreutils): Use the gitweb URL.
4115 2008-07-03 Jim Meyering <meyering@redhat.com>
4117 * users.txt: Add libffcall. From Sam Steingold.
4119 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
4121 getdate.y: do not ignore TZ with relative day, month or year offset
4122 * lib/getdate.y (get_date): Move the tz-handling block to follow the
4123 relative-date-handling, since otherwise, the latter would clobber the
4124 sole output (an updated Start value) of the tz-handling block.
4125 * tests/test-getdate.c: Tests for the fix
4127 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4129 Recognize 'foo_LIBRARIES += libgnu.a'.
4130 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
4131 makefile snippet has already specified an installation location,
4134 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
4136 getdate.y: factor out common actions
4137 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
4138 Use them in place of open-coded actions.
4140 2008-07-01 Simon Josefsson <simon@josefsson.org>
4142 Add self-test for getdate module.
4143 * modules/getdate-tests: New file.
4144 * tests/test-getdate.c: New file.
4146 2008-06-29 Bruno Haible <bruno@clisp.org>
4148 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
4150 Reported by Sylvain Beucler <beuc@beuc.net>.
4152 2008-06-29 Bruno Haible <bruno@clisp.org>
4154 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
4155 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
4157 2008-06-29 Bruno Haible <bruno@clisp.org>
4159 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
4161 Reported by Sylvain Beucler <beuc@beuc.net>.
4163 2008-06-26 Jim Meyering <meyering@redhat.com>
4165 make several modules depend on the "open" module
4166 This provides slightly increased consistency when opening-for-write
4167 the name of a non-directory spelled with a trailing slash.
4168 * modules/chdir-safer: Likewise.
4169 * modules/chown: Likewise.
4170 * modules/clean-temp: Likewise.
4171 * modules/copy-file: Likewise.
4172 * modules/fchdir: Likewise.
4173 * modules/fcntl-safer: Likewise.
4174 * modules/pipe: Likewise.
4175 * modules/utime: Likewise.
4176 Prompted by Eric Blake and Bruno Haible.
4178 2008-06-24 Andreas Schwab <schwab@suse.de>
4180 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
4181 literals can be used as initializers for global variables.
4183 2008-06-23 Eric Blake <ebb9@byu.net>
4185 Make gnulib-cache.m4 easier to diff.
4186 * gnulib-tool (func_import): Allow newlines when reading cached
4187 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
4189 2008-06-23 Bruno Haible <bruno@clisp.org>
4191 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
4192 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
4193 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
4194 m4/signalblocking.m4.
4195 (gl_PREREQ_SIGACTION): Don't invoke it.
4196 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
4197 gl_PREREQ_SIG_HANDLER_H.
4198 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4199 Don't check for sigaction here.
4201 2008-06-23 Bruno Haible <bruno@clisp.org>
4203 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
4204 (install_handlers): Don't set the SA_RESETHAND flag.
4206 2008-06-23 Bruno Haible <bruno@clisp.org>
4208 * m4/sigaction.m4: Comment fixes.
4209 * lib/signal.in.h: Likewise.
4211 2008-06-23 Eric Blake <ebb9@byu.net>
4214 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
4216 Avoid SA_ namespace.
4217 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
4218 Reported by Ralf Wildenhues.
4220 Avoid test failure due to SA_RESTORER.
4221 * tests/test-sigaction.c (SA_MASK): New macro.
4222 (main): Avoid failing due to extension flags being set.
4223 Reported by Jim Meyering.
4225 Revert use of sig-handler.h in sigprocmask.c.
4226 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
4227 it requires the existence of struct sigaction.
4228 * lib/sigprocmask.c (handler_t): Restore typedef.
4229 (rpl_signal, old_handlers): Use local type.
4231 2008-06-22 Bruno Haible <bruno@clisp.org>
4233 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
4235 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4237 2008-06-22 Bruno Haible <bruno@clisp.org>
4239 * doc/posix-functions/siginterrupt.texi: Move note.
4241 * lib/signal.in.h (SA_RESTART): New macro.
4242 * lib/sigaction.c: Update comment.
4244 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
4246 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
4247 (gl_PREREQ_SIGPROCMASK): Invoke it.
4248 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
4250 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
4252 * lib/sigprocmask.c: Update a comment.
4254 2008-06-21 Eric Blake <ebb9@byu.net>
4256 Use sigaction module rather than signal().
4257 * modules/c-stack (Depends-on): Add sigaction.
4258 * modules/fatal-signal (Depends-on): Likewise.
4259 * modules/nanosleep (Depends-on): Likewise.
4260 * modules/sigprocmask (Files): Add sig-handler.h.
4261 * modules/sigaction (Files): Likewise.
4262 * lib/sig-handler.h (get_handler): New file, suggested by Paul
4264 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
4265 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
4266 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4267 (init_fatal_signals): Likewise.
4268 * lib/nanosleep.c (rpl_nanosleep): Likewise.
4269 (siginterrupt): Delete fallback.
4270 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
4272 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
4275 New module sigaction, for mingw.
4276 * modules/sigaction: New module...
4277 * modules/sigaction-tests: ...and its test.
4278 * m4/sigaction.m4: New file.
4279 * lib/sigaction.c: Likewise.
4280 * tests/test-sigaction.c: Likewise.
4281 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
4282 * modules/signal (Makefile.am): Likewise.
4283 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
4285 * doc/posix-headers/signal.texi (signal.h): Mention provided
4287 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
4288 that sigaction is preferable.
4289 * doc/posix-functions/sigaction.texi (sigaction): Mention new
4291 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
4294 Improve robustness of sigprocmask by overriding signal.
4295 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
4297 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
4298 (SIGKILL, SIGSTOP): Provide fallbacks.
4299 (rpl_signal): Implement.
4300 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
4301 signal can be called inside handlers.
4303 Fix nanosleep module on mingw.
4304 * modules/nanosleep (Depends-on): Add sys_select.
4305 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
4307 Fix licensing of sigprocmask.
4308 * modules/raise (License): Relicense as LGPL.
4310 2008-06-21 Bruno Haible <bruno@clisp.org>
4312 * lib/propername.c (proper_name_utf8): Don't use the transliterated
4313 result if it contains question marks.
4314 Reported by Michael Geng <linux@michaelgeng.de>.
4316 2008-06-19 Bruno Haible <bruno@clisp.org>
4319 * doc/gnulib.texi: Include updated-stamp.texi.
4320 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
4321 (updated-stamp.texi): New rule.
4322 (gnulib.info): Depend on it.
4323 * doc/.gitignore: Add updated-stamp.texi.
4324 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
4326 2008-06-19 Bruno Haible <bruno@clisp.org>
4328 * doc/Makefile (gnulib.info): Update and simplify dependencies.
4329 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4331 2008-06-19 Eric Blake <ebb9@byu.net>
4333 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
4334 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
4335 Reported by Stepan Kasal.
4337 2008-06-18 Bruno Haible <bruno@clisp.org>
4339 * lib/fatal-signal.c (init_fatal_signals): Add comment.
4340 Reported by Eric Blake.
4342 2008-06-18 Eric Blake <ebb9@byu.net>
4344 Work around cygwin 1.5.25 strsignal bug.
4345 * tests/test-strsignal.c: Allow for const char *.
4346 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
4348 2008-06-18 Simon Josefsson <simon@josefsson.org>
4350 * users.txt: Update URL to article and add author/date
4353 2008-06-17 Bruno Haible <bruno@clisp.org>
4355 New macro gl_DISABLE_THREADS.
4356 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
4357 if the user did not pass --enable-threads or --disable-threads option.
4358 (gl_DISABLE_THREADS): New macro.
4359 Reported by Eric Blake <ebb9@byu.net>.
4361 2008-06-17 Bruno Haible <bruno@clisp.org>
4363 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
4364 when the macro ignores it.
4365 Based on a patch by Eric Blake <ebb9@byu.net>.
4367 2008-06-17 Bruno Haible <bruno@clisp.org>
4369 * modules/tls (License): Change to LGPLv2+.
4370 Reported by Eric Blake.
4372 2008-06-17 Eric Blake <ebb9@byu.net>
4374 Simplify c-stack prerequisites.
4375 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
4376 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
4377 no longer requires <ucontext.h> to exist. Optimize setrlimit
4379 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
4382 Move c-stack test into testsuite.
4383 * modules/c-stack-tests: New file.
4384 * lib/c-stack.c [DEBUG]: Move test program...
4385 * tests/test-c-stack.c: ...into this new file. Skip rather than
4386 fail test if sigaltstack is lacking.
4387 * tests/test-c-stack.sh: New driver file.
4389 2008-06-16 Eric Blake <ebb9@byu.net>
4391 Use raise module consistently.
4392 * modules/fatal-signal (Depends-on): Add raise.
4393 * modules/sigprocmask (Depends-on): Likewise.
4394 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
4395 * lib/sigprocmask.c (sigprocmask): Likewise.
4396 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4397 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
4399 Fix compliance bug in sigpending.
4400 * lib/sigprocmask.c (sigpending): Return pending array via
4401 parameter, not return value.
4403 2008-06-14 Eric Blake <ebb9@byu.net>
4405 Improve obstack-printf test code.
4406 * tests/test-obstack-printf.c (test_function): Fix comment, and
4407 simplify usage of obstack_* in macros. Add a test for coverage.
4408 Reported by Bruno Haible.
4410 2008-06-14 Bruno Haible <bruno@clisp.org>
4412 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
4413 array size as a constant, not as a const variable.
4414 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
4415 AC_USE_SYSTEM_EXTENSIONS.
4416 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
4417 Test whether the obstack_printf function actually exists.
4418 * modules/obstack-printf (Depends-on): Add extensions.
4419 (Include): Remove obstack.h.
4420 * modules/obstack-printf-posix (Depends-on): Add extensions.
4421 (Include): Remove obstack.h.
4423 2008-06-13 Eric Blake <ebb9@byu.net>
4425 Add obstack-printf and obstack-printf-posix modules.
4426 * modules/obstack-printf: New file.
4427 * modules/obstack-printf-posix: Likewise.
4428 * MODULES.html.sh (Misc): Mention them.
4429 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
4431 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
4433 * modules/stdio (Makefile.am): Accomodate new modules.
4434 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4435 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
4437 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
4439 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
4440 (gl_REPLACE_OBSTACK_PRINTF): New macros
4441 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
4442 * tests/test-obstack-printf.c: New file.
4443 * modules/obstack-printf-tests: Likewise.
4444 * modules/obstack-printf-posix-tests: Likewise.
4446 2008-06-11 Bruno Haible <bruno@clisp.org>
4448 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
4449 * lib/open.c: Include errno.h.
4450 (open): Fail when attempting to write to a file that has a trailing
4452 * tests/test-open.c (main): Test against trailing slash bug.
4453 * doc/posix-functions/open.texi: Mention the trailing slash bug.
4455 2008-06-10 Bruno Haible <bruno@clisp.org>
4457 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
4458 for $? to work inside the trap command, with various /bin/sh-s.
4459 * tests/test-vc-list-files-cvs.sh: Likewise.
4461 2008-06-10 Bruno Haible <bruno@clisp.org>
4463 * lib/acl-internal.h: Don't include gettext.h here.
4464 * lib/set-mode-acl.c: Include gettext.h here.
4465 * lib/copy-acl.c: Likewise.
4467 2008-06-10 Bruno Haible <bruno@clisp.org>
4469 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
4470 * lib/wait-process.c (wait_subprocess): Likewise.
4471 * lib/execute.h (execute): Add termsigp argument.
4472 * lib/execute.c (execute): Likewise.
4473 * lib/csharpcomp.c (compile_csharp_using_pnet,
4474 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
4475 * lib/csharpexec.c (execute_csharp_using_pnet,
4476 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
4477 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
4478 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
4479 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
4480 is_jikes_present): Update.
4481 * lib/javaexec.c (execute_java_class): Update.
4482 * lib/javaversion.c (execute_and_read_line): Update.
4483 * NEWS: Document the changes.
4484 Reported by Eric Blake.
4486 2008-06-10 Eric Blake <ebb9@byu.net>
4488 Add missing include.
4489 * tests/test-strstr.c (includes): Add <signal.h>.
4490 * tests/test-strcasestr.c (includes): Likewise.
4491 * tests/test-memmem.c (includes): Likewise.
4493 2008-06-10 Bruno Haible <bruno@clisp.org>
4495 * lib/wait-process.c (wait_subprocess): Add an assertion.
4497 2008-06-10 Bruno Haible <bruno@clisp.org>
4499 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
4501 2008-06-10 Bruno Haible <bruno@clisp.org>
4503 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
4505 * tests/test-strcasestr.c (main): Likewise.
4506 * tests/test-strstr.c (main): Likewise.
4508 2008-06-09 Bruno Haible <bruno@clisp.org>
4510 Work around the Solaris 10 ACE ACLs ABI change.
4511 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
4512 declare if ACL_NO_TRIVIAL is present.
4513 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
4514 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
4515 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
4516 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
4517 define if ACL_NO_TRIVIAL is present.
4518 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
4519 and use the current ABI.
4520 (file_has_acl): Use same #if condition as elsewhere.
4521 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
4522 in use, and use the current ABI.
4523 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
4524 Reported by Jim Meyering.
4526 2008-06-09 Eric Blake <ebb9@byu.net>
4528 Work around environments that (stupidly) ignore SIGALRM.
4529 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
4530 before using alarm().
4531 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4532 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4533 Reported by Ian Beckwith <ianb@erislabs.net>.
4535 Produce autobuild blurb earlier in log.
4536 * modules/autobuild (configure.ac-early): Move AB_INIT here.
4538 2008-06-09 Jim Meyering <meyering@redhat.com>
4539 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
4541 utimens.c: correct kernel bug work-around
4542 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
4543 failure, not success, and the kernel bug we're trying to work
4544 around affects not just the utimensat call, but also the fallback
4546 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
4548 [HAVE_FUTIMENS]: Use the same work-around, here.
4550 2008-06-09 Jim Meyering <meyering@redhat.com>
4552 add more guards around definition of ACE_-related code
4553 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
4554 ALLOW and ACE_OWNER are also defined.
4556 2008-06-08 Bruno Haible <bruno@clisp.org>
4558 * lib/acl-internal.h: Add me as co-author.
4559 * lib/file-has-acl.c: Likewise.
4560 * lib/set-mode-acl.c: Likewise.
4561 * lib/copy-acl.c: Likewise.
4563 2008-06-08 Bruno Haible <bruno@clisp.org>
4565 Add support for AIX ACLs.
4566 * lib/acl-internal.h (acl_nontrivial): New declaration.
4567 * lib/file-has-acl.c (acl_nontrivial): New function.
4568 (file_has_acl): Add implementation using AIX 4 ACL API.
4569 * lib/set-mode-acl.c (qset_acl): Likewise.
4570 * lib/copy-acl.c (qcopy_acl): Likewise.
4572 2008-06-08 Bruno Haible <bruno@clisp.org>
4574 Add support for HP-UX ACLs.
4575 * lib/acl-internal.h (acl_nontrivial): New declaration.
4576 * lib/file-has-acl.c (acl_nontrivial): New function.
4577 (file_has_acl): Add implementation using HP-UX 11 ACL API.
4578 * lib/set-mode-acl.c (qset_acl): Likewise.
4579 * lib/copy-acl.c (qcopy_acl): Likewise.
4581 2008-06-08 Bruno Haible <bruno@clisp.org>
4583 Add support for Cygwin ACLs.
4584 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
4585 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
4586 the chmod_or_fchmod call.
4587 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
4589 2008-06-08 Bruno Haible <bruno@clisp.org>
4591 Fix bug with setuid modes in Solaris 10+ code.
4592 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
4593 succeeded, when the mode contains some special bits.
4595 2008-06-08 Bruno Haible <bruno@clisp.org>
4597 Add support for Solaris 7..10 ACLs.
4598 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
4600 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
4602 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
4603 * lib/set-mode-acl.c (qset_acl): Likewise.
4604 * lib/copy-acl.c (qcopy_acl): Likewise.
4606 2008-06-08 Bruno Haible <bruno@clisp.org>
4608 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
4610 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
4611 (acl_access_nontrivial): Remove MacOS X case.
4612 (file_has_acl): Use acl_extended_nontrivial.
4613 * lib/copy-acl.c (qcopy_acl): Likewise.
4615 2008-06-08 Bruno Haible <bruno@clisp.org>
4617 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
4619 2008-06-08 Jim Meyering <meyering@redhat.com>
4621 * modules/acl (Maintainer): Add Bruno Haible.
4623 2008-06-07 Bruno Haible <bruno@clisp.org>
4625 Improve support for Tru64 ACLs.
4626 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
4629 2008-06-07 Bruno Haible <bruno@clisp.org>
4631 Add support for MacOS X ACLs.
4632 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
4633 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
4634 * lib/set-mode-acl.c (qset_acl): Likewise.
4635 * lib/copy-acl.c (qcopy_acl): Likewise.
4637 2008-06-07 Bruno Haible <bruno@clisp.org>
4639 Fix memory leak introduced on 2008-05-22.
4640 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
4643 2008-06-07 Bruno Haible <bruno@clisp.org>
4645 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
4646 to construct an empty ACL.
4648 2008-06-07 Bruno Haible <bruno@clisp.org>
4650 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
4652 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
4654 2008-06-07 Bruno Haible <bruno@clisp.org>
4656 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
4657 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
4659 2008-06-07 Bruno Haible <bruno@clisp.org>
4661 * doc/posix-functions/_setjmp.texi: Explain the use of this function
4662 regardless of POSIX.
4663 * doc/posix-functions/_longjmp.texi: Likewise.
4664 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
4665 SystemV platform in this case.
4667 2008-06-06 Eric Blake <ebb9@byu.net>
4669 Document abort() bugs.
4670 * doc/posix-functions/abort.texi (abort): Mention anomalies.
4672 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
4673 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
4675 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
4676 siglongjmp, but only as a macro.
4677 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
4679 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
4681 Tweak documentation to cover cygwin argz bugs.
4682 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
4683 argz bug fix; no code change needed since no cygwin releases
4684 occurred between the last fix and the bug being tested.
4685 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
4686 module and recently fixed cygwin bugs.
4687 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
4688 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
4689 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
4690 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
4691 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
4693 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
4694 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
4695 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
4696 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
4697 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
4698 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
4701 Avoid gcc warning on cygwin.
4702 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
4703 !ACL_NO_TRIVIAL]: Avoid unused variable.
4705 2008-06-05 Eric Blake <ebb9@byu.net>
4707 Be tolerant of UNKNOWN version in gnulib-tool test dir.
4708 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
4709 git-version-gen fails to come up with a version.
4710 Reported by Simon Josefsson.
4712 2008-06-05 Jim Meyering <meyering@redhat.com>
4713 Paul Eggert <eggert@cs.ucla.edu>
4715 utimens.c: work around a probable Linux kernel bug
4716 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
4717 appears to be a kernel bug that causes utimensat to return 280
4718 instead of 0, indicating success.
4720 2008-06-04 Bruno Haible <bruno@clisp.org>
4722 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
4725 2008-06-04 Bruno Haible <bruno@clisp.org>
4727 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
4728 * lib/file-has-acl.c (acl_access_nontrivial): New function.
4729 (file_has_acl): Use it. Save errno afterwards.
4730 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
4732 2008-06-03 Bruno Haible <bruno@clisp.org>
4734 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
4735 draft code. Simplify #ifs.
4736 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
4737 Put Solaris code after POSIX-draft code. Fix comments regarding
4738 Solaris 10, HP-UX. Mention Cygwin.
4739 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
4741 2008-06-03 Eric Blake <ebb9@byu.net>
4743 Provide fallback for older kernels.
4744 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
4745 Provide runtime fallback if kernel lacks support.
4746 Reported by Mike Frysinger.
4748 2008-06-02 Bruno Haible <bruno@clisp.org>
4750 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
4753 2008-06-02 Bruno Haible <bruno@clisp.org>
4755 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
4756 * lib/copy-acl.c (qcopy_acl): Update comment.
4758 2008-06-02 Bruno Haible <bruno@clisp.org>
4760 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
4763 2008-06-02 Bruno Haible <bruno@clisp.org>
4765 * tests/test-file-has-acl.sh: Use different code for Cygwin.
4766 * tests/test-set-mode-acl.sh: Likewise.
4767 * tests/test-copy-acl.sh: Likewise.
4768 * tests/test-copy-file.sh: Likewise.
4770 2008-06-02 Bruno Haible <bruno@clisp.org>
4772 * tests/test-file-has-acl.sh: Remove unused code.
4774 2008-06-01 Bruno Haible <bruno@clisp.org>
4776 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
4777 (copy_acl): Just a wrapper around qcopy_acl that emits the error
4779 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
4781 2008-06-01 Bruno Haible <bruno@clisp.org>
4783 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
4784 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
4785 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
4787 * modules/acl-tests (configure.ac): Remove tests now contained in
4790 2008-06-02 Jim Meyering <meyering@redhat.com>
4792 announce-gen: use a better key-server host name
4793 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
4794 it may be more consistently reliable. Suggested by Werner Koch
4795 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
4797 2008-06-01 Bruno Haible <bruno@clisp.org>
4799 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
4800 Reported by Voroskoi Andras <voroskoi@gmail.com>.
4802 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
4804 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
4806 2008-06-01 Bruno Haible <bruno@clisp.org>
4809 * tests/test-file-has-acl.sh: New file.
4810 * tests/test-file-has-acl.c: New file.
4811 * tests/test-set-mode-acl.sh: New file.
4812 * tests/test-set-mode-acl.c: New file.
4813 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
4814 * tests/test-copy-acl.c: New file.
4815 * modules/acl-tests: New file, based on modules/copy-file-tests.
4816 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
4817 (Depends-on): Add acl-tests.
4818 (configure.ac): Remove checks.
4819 (Makefile.am): Don't create test-sameacls program here any more.
4821 2008-06-01 Bruno Haible <bruno@clisp.org>
4823 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
4824 * tests/test-sameacls.c: Include progname.h.
4825 (main): Invoke set_program_name. Portability fixes for MacOS X,
4828 2008-06-01 Bruno Haible <bruno@clisp.org>
4830 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
4832 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
4834 2008-06-01 Bruno Haible <bruno@clisp.org>
4836 * modules/rpmatch (Depends-on): Add strdup.
4838 2008-06-01 Bruno Haible <bruno@clisp.org>
4840 * lib/pipe.c: Include unistd-safer.h.
4841 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
4842 * modules/pipe (Depends-on): Add unistd-safer.
4844 2008-05-30 Simon Josefsson <simon@josefsson.org>
4846 * modules/autobuild (configure.ac): Call AB_INIT.
4848 2008-05-30 Simon Josefsson <simon@josefsson.org>
4850 * tests/test-getaddrinfo.c: Don't print debug messages by default.
4851 Suggested by Bruno Haible <bruno@clisp.org>.
4853 2008-05-30 Simon Josefsson <simon@josefsson.org>
4855 * tests/test-base64.c: Cast size_t to unsigned long when invoking
4856 printf. Use %lu instead of %d. Reported by Bruno Haible
4859 2008-05-29 Eric Blake <ebb9@byu.net>
4861 Prefer new POSIX 200x interfaces over futimesat.
4862 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
4863 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
4865 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
4867 2008-05-28 Bruno Haible <bruno@clisp.org>
4869 * modules/stpcpy (License): Change to LGPLv2+.
4870 Requested by David Lutterkort <dlutter@redhat.com>.
4872 2008-05-27 Bruno Haible <bruno@clisp.org>
4874 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
4876 Reported by Jose E. Marchesi <jemarch@gnu.org>.
4878 2008-05-27 Bruno Haible <bruno@clisp.org>
4880 * modules/iconv_open (Link): New section, from module 'iconv'.
4881 * modules/striconv (Link): Likewise.
4882 * modules/striconveh (Link): Likewise.
4883 * modules/xstriconv (Link): Likewise.
4884 * modules/unicodeio (Link): Likewise.
4885 * modules/propername (Link): Likewise.
4886 Reported by Jim Meyering.
4888 2008-05-26 Jim Meyering <meyering@redhat.com>
4890 sha256: do not artificially restrict buffer length to be < 2^32
4891 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
4893 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
4896 avoid unaligned access errors, e.g., on sparc
4897 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
4898 direct access through a possibly-unaligned uint64* pointer.
4899 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
4900 direct access through a possibly-unaligned uint32* pointer.
4901 Prompted by this patch from Tom "spot" Callaway:
4902 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
4904 sha512.c: fix typo in comment
4905 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
4907 2008-05-25 Bruno Haible <bruno@clisp.org>
4909 * lib/set-mode-acl.c: Renamed from lib/acl.c.
4910 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
4911 (Makefile.am): Update lib_SOURCES.
4913 2008-05-25 Bruno Haible <bruno@clisp.org>
4915 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
4917 2008-05-25 Jim Meyering <meyering@redhat.com>
4919 useless-if-before-free: freed expr may have white-space differences
4920 * build-aux/useless-if-before-free: Recognize cases in which the
4921 freed expression differs from the tested one in embedded white
4922 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
4923 $1 was used, so we can't make any regexp shy. Improved tests now
4926 useless-if-before-free: accept white space in the expression.
4927 * build-aux/useless-if-before-free: For now, any white space
4928 in the expression must be identical in the free argument.
4930 useless-if-before-free: efficiency tweak
4931 * build-aux/useless-if-before-free: Make the expression-matching
4933 Make the *outer* regexp shy, not the expr-matching one.
4935 update code-in-comment to accept cast of free arg
4936 * build-aux/useless-if-before-free: Update regexp.
4938 2008-05-25 Bruno Haible <bruno@clisp.org>
4940 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
4941 * modules/copy-file-tests (Files, Makefile.am): Update.
4942 * tests/test-copy-file.c (func_test_copy): Update.
4944 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
4946 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
4948 2008-05-23 Bruno Haible <bruno@clisp.org>
4950 Improve support for ACLs on OSF/1.
4951 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
4952 Remove fallback for unknown flavors of ACLs.
4954 2008-05-22 Bruno Haible <bruno@clisp.org>
4956 Add support for ACLs on OSF/1.
4957 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
4959 (acl_free_text): New macro fallback.
4960 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
4962 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
4963 acl_free_text function. Require AC_C_INLINE.
4965 2008-05-22 Bruno Haible <bruno@clisp.org>
4967 Make copy_acl work on MacOS X 10.5.
4968 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
4969 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
4970 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
4971 If MODE_INSIDE_ACL, don't assume that every system has the same text
4972 representation for ACLs as FreeBSD.
4973 * lib/copy-acl.c (copy_acl): Add support for platforms with
4975 * lib/file-has-acl.c (file_has_acl): Likewise.
4976 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
4977 FreeBSD, MacOS X, or IRIX, respectively.
4979 2008-05-22 Bruno Haible <bruno@clisp.org>
4981 * lib/acl.h: Don't include <sys/acl.h>.
4982 (GETACLCNT): Move fallback to lib/acl-internal.h.
4983 * lib/acl-internal.h: Include <sys/acl.h> here.
4984 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
4986 2008-05-22 Bruno Haible <bruno@clisp.org>
4988 Split off copy_acl function to separate file.
4989 * lib/copy-acl.c: New file, extracted from lib/acl.c.
4990 * lib/acl.c (copy_acl): Moved function to separate file.
4991 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
4992 * modules/acl (Files): Add lib/copy-acl.c.
4993 (Makefiles.am): Augment lib_SOURCES.
4995 2008-05-22 Bruno Haible <bruno@clisp.org>
4997 * modules/copy-file-tests: New file.
4998 * tests/test-copy-file.sh: New file.
4999 * tests/test-copy-file.c: New file.
5000 * tests/test-copy-file-sameacls.c: New file.
5002 2008-05-22 Eric Blake <ebb9@byu.net>
5005 * tests/test-memcmp.c (main): Pass NULL indirectly.
5007 2008-05-21 Bruno Haible <bruno@clisp.org>
5009 Add reference doc about ACLs.
5010 * doc/acl-resources.txt: New file.
5011 * doc/acl-cygwin.txt: New file.
5013 2008-05-21 Bruno Haible <bruno@clisp.org>
5015 Avoid one more warning from gcc.
5016 * lib/vasnprintf.c (IF_LINT): Update comments.
5017 (VASNPRINTF): Use it also for the 'prefix' array initializer.
5019 2008-05-21 Jim Meyering <meyering@redhat.com>
5021 avoid a warning from gcc
5022 * lib/vasnprintf.c (IF_LINT): Define.
5023 (scale10_round_decimal_long_double):
5024 Use it to avoid a "may be used uninitialized" warning.
5025 (scale10_round_decimal_double): Likewise.
5027 2008-05-21 Simon Josefsson <simon@josefsson.org>
5029 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
5032 2008-05-20 Bruno Haible <bruno@clisp.org>
5034 * tests/test-memcmp.c (main): Test also the sign of the result. Test
5035 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
5037 2008-05-20 Simon Josefsson <simon@josefsson.org>
5039 * modules/memcmp-tests: New file.
5040 * tests/test-memcmp.c: New file.
5042 2008-05-19 Bruno Haible <bruno@clisp.org>
5044 * modules/propername (Notice, configure.ac): Put quoted "..." into
5046 * lib/propername.h: Update comments accordingly.
5047 Reported by Eric Blake.
5049 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
5051 * modules/getpass-gnu (Depends-on): Add fseeko.
5053 2008-05-19 Simon Josefsson <simon@josefsson.org>
5055 * modules/base64-tests: New file.
5057 2008-05-19 Bo Borgerson <gigabo@gmail.com>
5059 * lib/base64.c (base64_decode_ctx): If a decode context structure
5060 was passed in use it to ignore newlines. If a context structure
5061 was _not_ passed in, continue to treat newlines as garbage (this
5062 is the historical behavior). Formerly base64_decode.
5063 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
5064 takes a decode context structure.
5065 * lib/base64.h (base64_decode): Macro for four-argument calls.
5066 (base64_decode_alloc): Likewise.
5067 * lib/base64.c (base64_decode_ctx): If a decode context structure
5068 was passed in use it to ignore newlines. If a context structure
5069 was _not_ passed in, continue to treat newlines as garbage (this
5070 is the historical behavior). Formerly base64_decode.
5071 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
5072 takes a decode context structure.
5073 * lib/base64.h (base64_decode): Macro for four-argument calls.
5074 (base64_decode_alloc): Likewise.
5076 2008-05-19 Jim Meyering <meyering@redhat.com>
5078 avoid a warning from gcc
5079 * lib/trim.c (IF_LINT): Define.
5080 (trim2): Use it to avoid a "may be used uninitialized" warning.
5083 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
5085 2008-05-19 Bruno Haible <bruno@clisp.org>
5087 * doc/glibc-functions/getpass.texi: Document limits of other
5090 2008-05-19 Simon Josefsson <simon@josefsson.org>
5091 Bruno Haible <bruno@clisp.org>
5093 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
5095 2008-05-18 Bruno Haible <bruno@clisp.org>
5097 * modules/propername: New file, from GNU gettext.
5098 * lib/propername.h: New file, from GNU gettext.
5099 * lib/propername.c: New file, from GNU gettext.
5100 * MODULES.html.sh (Internationalization functions): Add propername.
5102 2008-05-16 Jim Meyering <meyering@redhat.com>
5103 Bruno Haible <bruno@clisp.org>
5105 Avoid some warnings from "gcc -Wshadow".
5106 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
5108 2008-05-15 Eric Blake <ebb9@byu.net>
5110 Extend previous patch to cygwin 1.7.0.
5111 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
5112 fast implementation in cygwin >= 1.7.0.
5113 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5114 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5116 2008-05-15 Bruno Haible <bruno@clisp.org>
5118 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
5119 implementation in glibc >= 2.9.
5120 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5121 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5123 2008-05-15 Bruno Haible <bruno@clisp.org>
5125 * MODULES.html.sh (Internationalization functions): Remove linebreak.
5126 (Unicode string functions): Add unilbrk/*.
5127 Reported by Karl Berry.
5129 2008-05-15 Eric Blake <ebb9@byu.net>
5131 Fix violation of <stdbool.h> replacement in regex.
5132 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
5133 * lib/regexec.c (re_search_internal): Likewise.
5134 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
5136 2008-05-15 Jim Meyering <meyering@redhat.com>
5138 avoid distracting test output when git or cvs is not found
5139 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
5140 * tests/test-vc-list-files-git.sh: Likewise.
5142 2008-05-15 Eric Blake <ebb9@byu.net>
5144 Glibc finally accepted the memmem speedup code, bugzilla #5514.
5145 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
5147 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
5148 * doc/posix-functions/strstr.texi (strstr): Likewise.
5149 * lib/str-two-way.h (MAX): Sychronize with glibc.
5151 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
5153 * lib/regcomp.c (optimize_utf8): Add a note on why we test
5155 (calc_first): Initialize constraint field.
5156 (duplicate_node_closure): Use it instead of special casing ANCHORS.
5158 (duplicate_node): Merge constraint field for all node types.
5159 (calc_eclosure_iter): Look at constraint field for all node types.
5160 * lib/regex_internal.c (create_cd_newstate): Don't look at
5163 2008-05-14 Bruno Haible <bruno@clisp.org>
5165 Help GCC to do better code generation.
5166 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
5167 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
5168 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
5169 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
5170 Declare with attribute 'malloc' if supported.
5172 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
5174 use "echo STR|wc -c" rather than unportable "expr length STR"
5175 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
5176 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
5178 2008-05-14 Jim Meyering <meyering@redhat.com>
5180 use dd ibs=$n count=1 ... rather than less-portable head -c$n
5181 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
5182 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
5183 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
5186 2008-05-14 Eric Blake <ebb9@byu.net>
5188 Avoid quadratic growth in gl_LIBSOURCES.
5189 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
5190 Suggested by Bruno Haible.
5193 * modules/xmemdup0-tests: New file.
5194 * tests/test-xmemdup0.c: Likewise.
5196 2008-05-13 Eric Blake <ebb9@byu.net>
5198 Split xmemdup0 into its own module.
5199 * modules/xmemdup0: New file.
5200 * lib/xmemdup0.h: Likewise.
5201 * lib/xmemdup0.c: Likewise.
5202 * MODULES.html.sh (Memory management functions): Add xmemdup0.
5203 * lib/xalloc.h (xmemdup0): Remove.
5204 * lib/xmalloc.c (xmemdup0): Likewise.
5206 2008-05-13 Eric Blake <ebb9@byu.net>
5207 Bruno Haible <bruno@clisp.org>
5209 Reduce number of forks required during autoconf.
5210 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
5211 and gl_LIBSOURCES_DIR.
5212 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
5213 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
5215 <m4_foreach_w>: Move...
5216 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
5218 2008-05-13 Eric Blake <ebb9@byu.net>
5220 * gnulib-tool: Fix various comment typos.
5222 2008-05-12 Bruno Haible <bruno@clisp.org>
5224 Tailor the linebreaking algorithm.
5225 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
5227 2008-05-12 Bruno Haible <bruno@clisp.org>
5229 Update to Unicode 5.0.0.
5230 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
5231 LBP_JV, LBP_JT. Redistribute values.
5232 (unilbrk_table): Change size.
5233 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
5234 Unicode TR#14 rev. 22.
5235 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
5236 LBP_JV, LBP_JT. Redistribute values.
5237 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
5238 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
5240 * lib/unilbrk/lbrkprop1.h: Regenerated.
5241 * lib/unilbrk/lbrkprop2.h: Regenerated.
5242 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
5243 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
5244 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
5246 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
5248 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
5250 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5251 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5252 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5253 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
5254 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
5255 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
5257 2008-05-11 Bruno Haible <bruno@clisp.org>
5259 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
5261 2008-05-11 Bruno Haible <bruno@clisp.org>
5263 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
5264 * modules/unilbrk/gen-lbrk: New file.
5266 2008-05-11 Bruno Haible <bruno@clisp.org>
5268 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
5269 * m4/sha512.m4 (gl_SHA512): Likewise.
5271 2008-05-11 Jim Meyering <meyering@redhat.com>
5273 New modules: crypto/sha256, crypto/sha512 (from coreutils)
5274 * modules/crypto/sha256: New file.
5275 * modules/crypto/sha512: Likewise.
5276 * lib/sha256.c: Likewise.
5277 * lib/sha256.h: Likewise.
5278 * lib/sha512.c: Likewise.
5279 * lib/sha512.h: Likewise.
5280 * lib/u64.h: Likewise.
5281 * m4/sha256.m4: Likewise.
5282 * m4/sha512.m4: Likewise.
5283 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
5285 2008-05-10 Bruno Haible <bruno@clisp.org>
5287 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
5288 (Input/Output <stdio.h>): Add xprintf.
5289 (Signal handling <signal.h>): Add strsignal.
5290 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
5291 (Core language properties): Add func.
5292 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
5293 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
5295 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
5296 (Input/output): New section.
5297 (File system functions): Add openat-die, stat-macros.
5298 (Networking functions): Add sockets.
5299 (Unicode string functions): Add unictype/*.
5300 (Support for building libraries and executables): Add gperf.
5301 (Support for building documentation): Add agpl-3.0.
5302 (Misc): Add nocrash.
5304 2008-05-10 Bruno Haible <bruno@clisp.org>
5306 * modules/unictype/gen-ctype: New file.
5308 2008-05-10 Jim Meyering <meyering@redhat.com>
5310 Make chdir-safer.c more efficient on a system with no symlinks.
5311 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
5312 also if ELOOP is zero. Suggested by Bruno Haible.
5314 Make chdir-safer.c slightly safer.
5315 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
5316 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
5318 Avoid compile failure on systems without ELOOP (like mingw).
5319 * lib/chdir-safer.c (ELOOP): Define if not already defined.
5320 Reported by Bruno Haible.
5322 2008-05-10 Bruno Haible <bruno@clisp.org>
5324 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
5325 (is_utf8_encoding): Use a case-insensitive comparison.
5326 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
5329 2008-05-10 Bruno Haible <bruno@clisp.org>
5331 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
5332 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
5333 * lib/unilbrk/ulc-common.h (iconv_string_length,
5334 iconv_string_keeping_offsets): Remove declarations.
5335 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
5336 Don't include <iconv.h>, streq.h, xsize.h.
5337 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
5339 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
5340 <iconv.h>, streq.h, xsize.h.
5341 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
5343 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
5344 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
5345 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
5346 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
5348 2008-05-10 Bruno Haible <bruno@clisp.org>
5350 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
5351 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
5353 * modules/unilbrk/u32-width-linebreaks-tests: New file.
5354 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
5356 * modules/unilbrk/u16-width-linebreaks-tests: New file.
5357 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
5359 * modules/unilbrk/u8-width-linebreaks-tests: New file.
5360 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
5362 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
5363 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
5365 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
5366 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
5368 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
5369 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
5371 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
5372 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
5374 2008-05-10 Bruno Haible <bruno@clisp.org>
5376 Split up 'linebreak' module.
5377 * lib/unilbrk.h: New file, based on lib/linebreak.h.
5378 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
5379 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
5381 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
5382 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
5383 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
5385 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
5387 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
5389 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
5390 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
5391 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
5393 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
5395 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
5397 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
5399 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
5401 * modules/unilbrk/base: New file.
5402 * modules/unilbrk/tables: New file.
5403 * modules/unilbrk/u8-possible-linebreaks: New file.
5404 * modules/unilbrk/u16-possible-linebreaks: New file.
5405 * modules/unilbrk/u32-possible-linebreaks: New file.
5406 * modules/unilbrk/ulc-common: New file.
5407 * modules/unilbrk/ulc-possible-linebreaks: New file.
5408 * modules/unilbrk/u8-width-linebreaks: New file.
5409 * modules/unilbrk/u16-width-linebreaks: New file.
5410 * modules/unilbrk/u32-width-linebreaks: New file.
5411 * modules/unilbrk/ulc-width-linebreaks: New file.
5412 * lib/linebreak.h: Remove file.
5413 * lib/linebreak.c: Remove file.
5414 * m4/linebreak.m4: Remove file.
5415 * modules/linebreak: Remove file.
5416 * NEWS: Mention the changes.
5418 2008-05-09 Eric Blake <ebb9@byu.net>
5421 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
5423 * lib/xmalloc.c (xmemdup0): New C implementation.
5425 2008-05-08 Bruno Haible <bruno@clisp.org>
5427 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
5429 2008-05-07 Eric Blake <ebb9@byu.net>
5431 Support cross-compilation of <wctype.h>.
5432 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
5435 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
5437 * build-aux/vc-list-files: Add support for bzr.
5439 2008-05-03 Jim Meyering <meyering@redhat.com>
5441 avoid failed assertion with tight malloc
5442 * tests/test-getndelim2.c: Correct an off-by-one assertion.
5444 2008-05-03 Simon Josefsson <simon@josefsson.org>
5446 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
5447 are needed from arpa/inet.h.
5448 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
5449 Reported by Bruno Haible.
5451 2008-05-02 Jim Meyering <meyering@redhat.com>
5453 avoid compilation error on FreeBSD 6
5454 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
5456 2008-05-01 Jim Meyering <meyering@redhat.com>
5458 useless-if-before-free: correct --help's exit status description
5459 * build-aux/useless-if-before-free (usage): Like grep, exit 0
5460 for one or more matches, etc. Reported by Bruno Haible.
5462 vc-list-files: make the stand-alone gnulib test work
5463 * modules/vc-list-files-tests (configure.ac):
5464 Define and AC_SUBST abs_aux_dir.
5465 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
5466 $(abs_top_srcdir) to each script and having each of them
5467 duplicate the work of setting PATH, set PATH here, using
5468 the new variable, abs_aux_dir instead.
5469 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
5470 * tests/test-vc-list-files-git.sh: Likewise.
5471 Reported by Bruno Haible.
5473 2008-05-01 Bruno Haible <bruno@clisp.org>
5475 * lib/getndelim2.c (getndelim2): Fix newsize computation during
5476 reallocation. Rename 'done' to 'found_delimiter'.
5478 2008-05-01 Jim Meyering <meyering@redhat.com>
5480 vc-list-files: accommodate /bin/sh like the one from Solaris 10
5481 * build-aux/vc-list-files: Use `...`, not $(...).
5483 2008-04-30 Jim Meyering <meyering@redhat.com>
5485 add tests for vc-list-files
5486 * modules/vc-list-files-tests: New module.
5487 * tests/test-vc-list-files-cvs.sh: New file.
5488 * tests/test-vc-list-files-git.sh: New file.
5490 avoid a warning from gcc
5491 * lib/getndelim2.c (IF_LINT): Define.
5492 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
5494 vc-list-files: work properly with build-aux/cvsu, too
5495 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
5496 to all cvs-based clauses.
5498 vc-list-files: work properly in the CVS+awk case, too
5499 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
5501 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
5502 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
5503 take more than one file argument, so . Add quotes, just in case $dir
5504 ever contains a shell meta-character. Prompted by Soren Hansen in
5505 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
5507 2008-04-29 Eric Blake <ebb9@byu.net>
5509 Optimize getndelim2 to use block operations when possible.
5510 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
5511 freadseek, and memchr2.
5512 * lib/getndelim2.c (getndelim2): Use them for block reads.
5514 2008-04-29 Bruno Haible <bruno@clisp.org>
5516 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
5517 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5518 * modules/inet_ntop (Depends-on): Add extensions.
5519 * modules/inet_pton (Depends-on): Likewise.
5520 Reported by Simon Josefsson.
5522 2008-04-29 Jim Meyering <meyering@redhat.com>
5524 When the is more than one match in a block, match all of them.
5525 * build-aux/useless-if-before-free: Iterate through each block
5526 until there are no more matches.
5528 Fix broken useless-if-before-free script.
5529 * build-aux/useless-if-before-free: Fix typo: missing "?" after
5530 the expression to match cast of argument to free-like function.
5532 2008-04-29 Eric Blake <ebb9@byu.net>
5535 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
5537 2008-04-29 Jim Meyering <meyering@redhat.com>
5539 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
5540 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
5541 by gnulib to exist and to declare e.g., inet_ntop.
5542 Don't include "inet_ntop.h", now removed.
5544 * m4/arpa_inet_h.m4: Remove trailing blanks.
5546 2008-04-29 Eric Blake <ebb9@byu.net>
5548 Silence valgrind on safe reads beyond potential array bounds.
5549 * lib/rawmemchr.valgrind: New file.
5550 * lib/strchrnul.valgrind: Likewise.
5551 * modules/rawmemchr (Files): Distribute new file.
5552 * modules/strchrnul (Files): Likewise.
5553 Suggested by Bruno Haible.
5555 2008-04-29 Bruno Haible <bruno@clisp.org>
5557 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
5558 (inet_ntop, inet_pton): Change portability warning's wording.
5559 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
5560 Invoke gl_CHECK_NEXT_HEADERS.
5561 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
5562 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
5564 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5565 * modules/arpa_inet (Description): No longer only for systems that
5567 (Depends-on): Add include_next.
5568 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
5571 2008-04-29 Jim Meyering <meyering@redhat.com>
5573 * modules/mkdir (License): Re-license as LGPLv2+.
5575 2008-04-29 Bruno Haible <bruno@clisp.org>
5577 * modules/rawmemchr (Maintainer): Set to Eric.
5578 * modules/strchrnul (Maintainer): Likewise.
5580 2008-04-29 Simon Josefsson <simon@josefsson.org>
5582 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
5583 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
5585 * modules/arpa_inet (arpa/inet.h): Use them.
5587 2008-04-28 Eric Blake <ebb9@byu.net>
5590 * modules/getndelim2-tests: New file.
5591 * tests/test-getndelim2.c: Likewise.
5592 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
5594 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
5596 * MODULES.html.sh: Document new module.
5598 2008-04-20 Bruno Haible <bruno@clisp.org>
5600 * lib/c-stack.c (die): Use raise.
5601 * modules/c-stack (Depends-on): Add raise.
5603 2008-04-28 Bruno Haible <bruno@clisp.org>
5605 Expect rpmatch to be declared.
5606 * lib/yesno.c (rpmatch): Remove declaration.
5609 * lib/stdlib.in.h (rpmatch): New declaration.
5610 * lib/rpmatch.c: Include <stdlib.h> first.
5611 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
5612 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
5613 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
5615 * modules/rpmatch (Depends-on): Add stdlib, extensions.
5616 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5617 (Include): Set to <stdlib.h>.
5618 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
5620 * NEWS: Document the change.
5622 2008-04-28 Bruno Haible <bruno@clisp.org>
5624 Change rpmatch to use nl_langinfo when appropriate.
5625 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
5627 (localized_pattern): New function/macro.
5628 (try): Remove match, nomatch arguments. Copy the pattern into safe
5629 memory before caching it.
5630 (rpmatch): Use localized_pattern. Add translator comments.
5631 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
5632 Suggested by Eric Blake.
5633 * modules/rpmatch (Depends-on): Add stdbool.
5635 2008-04-28 Eric Blake <ebb9@byu.net>
5637 Add rawmemchr module, matching glibc.
5638 * modules/string (Makefile.am): New indicator.
5639 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
5640 * lib/string.in.h (rawmemchr): Declare when appropriate.
5641 * modules/rawmemchr: New file.
5642 * m4/rawmemchr.m4: Likewise.
5643 * lib/rawmemchr.c: Likewise.
5644 * modules/rawmemchr-tests: Likewise.
5645 * tests/test-rawmemchr.c: Likewise.
5646 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
5648 * modules/strchrnul (Depends-on): Add rawmemchr.
5649 * lib/strchrnul.c (strchrnul): Optimize a corner case.
5652 * tests/test-strchrnul.c: Reindent.
5653 * lib/strchrnul.c: Likewise.
5655 Optimize and test strchrnul.
5656 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
5657 * modules/strchrnul-tests: New file.
5658 * tests/test-strchrnul.c: Likewise.
5660 Remove intprops dependency.
5661 * modules/memchr (Depends-on): Remove intprops.
5662 * modules/memrchr (Depends-on): Likewise.
5663 * modules/memchr2 (Depends-on): Likewise.
5664 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
5665 * lib/memrchr.c (__memrchr): Likewise.
5666 * lib/memrchr2.c (memchr2): Likewise.
5667 Reported by Simon Josefsson.
5669 2008-04-28 Simon Josefsson <simon@josefsson.org>
5671 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
5672 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5674 2008-04-28 Simon Josefsson <simon@josefsson.org>
5676 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
5678 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
5680 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
5682 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
5684 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
5686 * m4/inet_pton.m4: Don't check for header files.
5688 * m4/inet_ntop.m4: Don't check for header files.
5690 2008-04-28 Simon Josefsson <simon@josefsson.org>
5692 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
5693 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
5694 trigger for cygwin).
5695 Reported by Bruno Haible <bruno@clisp.org>.
5697 2008-04-28 Bruno Haible <bruno@clisp.org>
5699 * doc/posix-functions/strdup.texi: Mention mingw problem.
5701 2008-04-27 Bruno Haible <bruno@clisp.org>
5703 * modules/stat-time-tests (Depends-on): Add sleep.
5704 * tests/test-stat-time.c (force_unlink): New function.
5706 (test_mtime): Remove the ctime related tests.
5707 (test_ctime): New function, containing the ctime related tests.
5708 (main): Call test_ctime, except on native Windows platforms.
5710 2008-04-27 Bruno Haible <bruno@clisp.org>
5712 * lib/rpmatch.c (rpmatch): Add some comments.
5713 Reported by James Youngman <jay@gnu.org>.
5715 2008-04-27 Bruno Haible <bruno@clisp.org>
5717 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
5720 2008-04-27 Bruno Haible <bruno@clisp.org>
5722 Make test-yesno.sh work on mingw.
5723 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
5724 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
5725 (main): Set stdin to binary mode.
5726 * modules/yesno-tests (Depends-on): Add binary-io.
5728 2008-04-27 Bruno Haible <bruno@clisp.org>
5730 Fix 'isfinite' on x86, x86_64, ia64 platforms.
5731 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
5732 argument that lie outside the IEEE 854 domain.
5733 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
5734 (gl_ISFINITE): Use it.
5735 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
5737 2008-04-27 Bruno Haible <bruno@clisp.org>
5739 Allow local renaming in config.h.
5740 * lib/memrchr.c (memrchr): Don't undefine outside libc.
5742 2008-04-27 Bruno Haible <bruno@clisp.org>
5744 * lib/memchr.c (__memchr): Change type of 'i'.
5745 * lib/memchr2.c (memchr2): Likewise.
5747 2008-04-26 Eric Blake <ebb9@byu.net>
5748 and Bruno Haible <bruno@clisp.org>
5750 Optimize and test memrchr.
5751 * modules/memrchr (Depends-on): Add intprops.
5752 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
5753 * modules/memrchr-tests: New file.
5754 * tests/test-memrchr.c: New file.
5756 2008-04-26 Bruno Haible <bruno@clisp.org>
5758 Add tentative support for DragonFly BSD.
5759 * lib/stdio-impl.h: Add macros for DragonFly BSD.
5760 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
5762 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5763 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
5764 * lib/fpurge.c (fpurge): Likewise.
5765 * lib/freadable.c (freaadable): Likewise.
5766 * lib/freadahead.c (freadahead): Likewise.
5767 * lib/freading.c (freading): Likewise.
5768 * lib/freadptr.c (freadptr): Likewise.
5769 * lib/freadseek.c (freadptrinc): Likewise.
5770 * lib/fseeko.c (fseeko): Likewise.
5771 * lib/fseterr.c (fseterr): Likewise.
5772 * lib/fwritable.c (fwritable): Likewise.
5773 * lib/fwriting.c (fwriting): Likewise.
5775 2008-04-26 Bruno Haible <bruno@clisp.org>
5777 * lib/stdio-impl.h: New file.
5778 * lib/fbufmode.c: Include stdio-impl.h.
5779 (fbufmode): Use fp_, remove redundant #defines.
5780 * lib/fflush.c: Include stdio-impl.h.
5781 (clear_ungetc_buffer): Remove redundant #defines.
5782 * lib/fpurge.c: Include stdio-impl.h.
5783 (fpurge): Remove redundant #defines.
5784 * lib/freadable.c: Include stdio-impl.h.
5785 (freadable): Remove redundant #defines.
5786 * lib/freadahead.c: Include stdio-impl.h.
5787 (freadahead): Remove redundant #defines.
5788 * lib/freading.c: Include stdio-impl.h.
5789 (freading): Remove redundant #defines.
5790 * lib/freadptr.c: Include stdio-impl.h.
5791 (freadptr): Remove redundant #defines.
5792 * lib/freadseek.c: Include stdio-impl.h.
5793 (freadptrinc): Remove redundant #defines.
5794 * lib/fseeko.c: Include stdio-impl.h.
5795 (rpl_fseeko): Remove redundant #defines.
5796 * lib/fseterr.c: Include stdio-impl.h.
5797 (fseterr): Remove redundant #defines.
5798 * lib/fwritable.c: Include stdio-impl.h.
5799 (fwritable: Remove redundant #defines.
5800 * lib/fwriting.c: Include stdio-impl.h.
5801 (fwriting): Remove redundant #defines.
5802 * modules/fbufmode (Files): Add lib/stdio-impl.h.
5803 * modules/fflush (Files): Likewise.
5804 * modules/fpurge (Files): Likewise.
5805 * modules/freadable (Files): Likewise.
5806 * modules/freadahead (Files): Likewise.
5807 * modules/freading (Files): Likewise.
5808 * modules/freadptr (Files): Likewise.
5809 * modules/freadseek (Files): Likewise.
5810 * modules/fseeko (Files): Likewise.
5811 * modules/fseterr (Files): Likewise.
5812 * modules/fwritable (Files): Likewise.
5813 * modules/fwriting (Files): Likewise.
5815 2008-04-26 Bruno Haible <bruno@clisp.org>
5817 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5818 restore_seek_optimization, update_fpos_cache): New functions, extracted
5820 (rpl_fflush): Use them.
5821 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
5822 (gl_REPLACE_FFLUSH): Use it.
5824 2008-04-26 Bruno Haible <bruno@clisp.org>
5826 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
5828 * tests/test-xstrtoimax.sh: Likewise.
5829 * tests/test-xstrtoumax.sh: Likewise.
5830 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5832 2008-04-26 Bruno Haible <bruno@clisp.org>
5834 * modules/memchr-tests: New file.
5835 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
5837 2008-04-26 Eric Blake <ebb9@byu.net>
5838 Bruno Haible <bruno@clisp.org>
5840 * lib/memchr.c: Include intprops.h.
5841 (__memchr): Optimize parallel detection of matching bytes. Rename local
5842 variables. Add explanatory comments.
5844 2008-04-26 Bruno Haible <bruno@clisp.org>
5846 Fix module 'memchr', broken since 2000-10-28.
5847 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
5849 2008-04-26 Bruno Haible <bruno@clisp.org>
5851 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
5854 2008-04-25 Eric Blake <ebb9@byu.net>
5856 Use native fstatat on cygwin 1.7.0.
5857 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
5860 2008-04-23 Eric Blake <ebb9@byu.net>
5862 Improve memchr2 performance.
5863 * lib/memchr2.c (memchr2): Further optimize parallel detection of
5865 * modules/memchr2 (Depends-on): Use intprops.h.
5867 2008-04-23 Simon Josefsson <simon@josefsson.org>
5869 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
5870 an inline function instead of a CPP macro. Patch by Ben Pfaff
5871 <blp@cs.stanford.edu>.
5873 2008-04-23 Simon Josefsson <simon@josefsson.org>
5875 * lib/arpa_inet.in.h: New file.
5877 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
5878 (Makefile.am): Sed in substitute header file.
5880 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
5881 gl_ARPA_INET_MODULE_INDICATOR. Use them.
5883 * modules/inet_ntop (configure.ac): Use
5884 gl_ARPA_INET_MODULE_INDICATOR.
5886 * modules/inet_pton (configure.ac): Use
5887 gl_ARPA_INET_MODULE_INDICATOR.
5889 2008-04-22 Jim Meyering <meyering@redhat.com>
5891 * modules/verify (License): Re-license as LGPLv2+.
5893 2008-04-22 Simon Josefsson <simon@josefsson.org>
5895 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
5896 parameter to void* as per POSIX standard (MinGW uses char*).
5898 2008-04-21 Bruno Haible <bruno@clisp.org>
5900 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
5901 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
5902 Define to replacements if REPLACE_ISWCNTRL is 1.
5903 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
5904 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
5905 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
5906 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
5908 * doc/posix-functions/iswalpha.texi: Likewise.
5909 * doc/posix-functions/iswblank.texi: Likewise.
5910 * doc/posix-functions/iswcntrl.texi: Likewise.
5911 * doc/posix-functions/iswdigit.texi: Likewise.
5912 * doc/posix-functions/iswgraph.texi: Likewise.
5913 * doc/posix-functions/iswlower.texi: Likewise.
5914 * doc/posix-functions/iswprint.texi: Likewise.
5915 * doc/posix-functions/iswpunct.texi: Likewise.
5916 * doc/posix-functions/iswspace.texi: Likewise.
5917 * doc/posix-functions/iswupper.texi: Likewise.
5918 * doc/posix-functions/iswxdigit.texi: Likewise.
5919 Reported by Alain Guibert.
5921 2008-04-21 Bruno Haible <bruno@clisp.org>
5923 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
5924 Patch by Alain Guibert.
5926 2008-04-21 Bruno Haible <bruno@clisp.org>
5928 Fix test failures on mingw.
5929 * tests/test-xstrtol.c (print_no_progname): New function.
5930 (main): Install it in error_print_progname hook.
5931 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
5932 * tests/test-xstrtoimax.sh: Likewise.
5933 * tests/test-xstrtoumax.sh: Likewise.
5935 2008-04-21 Bruno Haible <bruno@clisp.org>
5937 Fix test failure on mingw.
5938 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
5940 2008-04-21 Bruno Haible <bruno@clisp.org>
5942 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
5943 Actually assign a value.
5945 2008-04-20 Bruno Haible <bruno@clisp.org>
5947 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
5949 * lib/canonicalize.c (canonicalize_file_name): Elide if the
5950 'canonicalize-lgpl' module is also used.
5951 * lib/canonicalize-lgpl.c: Undo last change.
5952 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
5954 2008-04-20 Bruno Haible <bruno@clisp.org>
5956 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
5957 config.h. Provide _mkdir based fallback for mingw.
5958 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
5959 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
5960 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
5961 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
5962 rather than defining mkdir in config.h.
5963 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
5964 (gl_SYS_STAT_H_DEFAULTS): New macro.
5965 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
5967 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
5968 HAVE_DECL_MKDIR and HAVE_IO_H.
5970 2008-04-20 Bruno Haible <bruno@clisp.org>
5972 * lib/isapipe.c: Port to native Windows platforms.
5974 2008-04-20 Bruno Haible <bruno@clisp.org>
5976 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
5978 2008-04-21 Eric Blake <ebb9@byu.net>
5980 Work around preprocessors that don't handle UINTMAX_MAX.
5981 * lib/memchr2.c (memchr2): Avoid embedded #if.
5982 Reported by Alain Guibert, fix suggested by Bruno Haible.
5984 2008-04-21 Simon Josefsson <simon@josefsson.org>
5986 * doc/posix-functions/strftime.texi (strftime): Explain better
5987 Windows incompatibility. Suggested by Micah Cowan
5990 2008-04-20 Bruno Haible <bruno@clisp.org>
5992 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
5995 2008-04-20 Bruno Haible <bruno@clisp.org>
5997 Fix test failure on platforms with non-GNU iconv.
5998 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
5999 (U_TO_U8): Use it, rather than u16_to_u8.
6000 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
6001 units at the end of the input string.
6002 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
6004 2008-04-20 Bruno Haible <bruno@clisp.org>
6006 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
6007 when the resulting length is 0.
6008 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
6010 2008-04-20 Bruno Haible <bruno@clisp.org>
6012 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
6014 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
6016 2008-04-20 Bruno Haible <bruno@clisp.org>
6018 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
6019 * modules/tsearch-tests (configure.ac): Test for initstate function.
6021 2008-04-20 Bruno Haible <bruno@clisp.org>
6023 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
6024 for nlink_t if missing.
6025 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
6027 2008-04-19 Bruno Haible <bruno@clisp.org>
6029 Work around snprintf bug on Linux libc5.
6030 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
6031 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
6033 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6034 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
6036 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6037 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
6038 * modules/snprintf (Files): Add m4/printf.m4.
6039 * modules/vsnprintf (Files): Likewise.
6040 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
6041 * doc/posix-functions/vsnprintf.texi: Likewise.
6043 2008-04-19 Bruno Haible <bruno@clisp.org>
6045 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
6046 from 0.0058 to less than 10^-7.
6048 2008-04-19 Bruno Haible <bruno@clisp.org>
6050 Fix rounding when a precision is given.
6051 * lib/vasnprintf.c (is_borderline): New function.
6052 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
6054 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
6056 * tests/test-vasprintf-posix.c (test_function): Likewise.
6057 * tests/test-snprintf-posix.h (test_function): Likewise.
6058 * tests/test-sprintf-posix.h (test_function): Likewise.
6059 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
6060 * tests/test-printf-posix.h (test_function): Likewise.
6061 * tests/test-printf-posix.output: Update.
6062 Reported by John Darrington <john@darrington.wattle.id.au> via
6063 Ben Pfaff <blp@cs.stanford.edu>.
6065 2008-04-18 Simon Josefsson <simon@josefsson.org>
6067 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
6068 Suggested by Bruno Haible <bruno@clisp.org>.
6070 2008-04-17 Bruno Haible <bruno@clisp.org>
6072 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
6073 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
6075 Patch by Bruce Merry <bmerry@gmail.com>.
6077 2008-04-17 Simon Josefsson <simon@josefsson.org>
6079 * doc/posix-functions/strftime.texi (strftime): Mention that %e
6080 doesn't work under Windows.
6082 2008-04-16 Bruno Haible <bruno@clisp.org>
6084 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
6086 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
6087 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
6088 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
6089 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
6090 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
6091 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
6092 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
6094 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
6095 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
6096 Northern Sotho, Uighur.
6098 2008-04-16 Bruno Haible <bruno@clisp.org>
6100 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
6101 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
6102 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
6103 Reported by Daniel Bergström <daniel@octocode.com>.
6105 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
6106 Bruno Haible <bruno@clisp.org>
6108 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
6110 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
6111 New functions, mostly extracted from gl_locale_name_default.
6112 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
6114 2008-04-16 Eric Blake <ebb9@byu.net>
6116 Adjust strtod detection to catch glibc 2.7 bug.
6117 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
6118 Reported by John Gatewood Ham.
6120 2008-04-16 Bruno Haible <bruno@clisp.org>
6122 Add tentative support for Linux libc5.
6123 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
6124 * lib/fpurge.c (fpurge): Likewise.
6125 * lib/freadable.c (freadable): Likewise.
6126 * lib/freadahead.c (freadahead): Likewise.
6127 * lib/freading.c (freading): Likewise.
6128 * lib/freadptr.c (freadptr): Likewise.
6129 * lib/freadseek.c (freadptrinc): Likewise.
6130 * lib/fseeko.c (rpl_fseeko): Likewise.
6131 * lib/fseterr.c (fseterr): Likewise.
6132 * lib/fwritable.c (fwritable): Likewise.
6133 * lib/fwriting.c (fwriting): Likewise.
6134 Reported by Alain Guibert <alguibert+bts@free.fr>.
6136 2008-04-15 Bruno Haible <bruno@clisp.org>
6138 * modules/mathl (configure.ac): Define module indicator.
6140 2008-04-15 Bruno Haible <bruno@clisp.org>
6142 * lib/logl.c (logl): Remove unused variables.
6144 2008-04-15 Bruno Haible <bruno@clisp.org>
6146 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
6149 2008-04-15 Bruno Haible <bruno@clisp.org>
6151 * lib/trim.c (trim2): Fix argument of isspace() macro.
6153 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
6155 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
6157 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
6159 2008-04-14 Bruno Haible <bruno@clisp.org>
6161 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
6162 AC_LANG_PROGRAM argument.
6163 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
6164 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
6165 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6166 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6167 * m4/math_h.m4 (gl_MATH_H): Likewise.
6168 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6169 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6170 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
6171 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6172 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6173 * m4/regex.m4 (gl_REGEX): Likewise.
6174 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
6175 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
6176 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6177 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
6178 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6179 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6180 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6181 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6183 2008-04-14 Jim Meyering <meyering@redhat.com>
6185 test-strtod: fix typos: s/abs/fabs/
6186 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
6188 2008-04-13 Bruno Haible <bruno@clisp.org>
6190 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
6191 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
6192 module is also used and while not building the reloc-wrapper.
6194 2008-04-13 Bruno Haible <bruno@clisp.org>
6196 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
6198 2008-04-13 Bruno Haible <bruno@clisp.org>
6200 Fix AIX compilation failure introduced on 2008-04-02.
6201 * tests/test-frexp.c (exp): Undefine before redefining.
6202 * tests/test-frexpl.c (exp): Likewise.
6204 2008-04-13 Bruno Haible <bruno@clisp.org>
6206 Work around a HP-UX stdio bug.
6207 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
6208 * tests/test-ftello.c (main): Likewise.
6209 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
6210 * doc/posix-functions/ftello.texi: Likewise.
6212 2008-04-13 Bruno Haible <bruno@clisp.org>
6214 Make test-signbit pass on HP-UX/hppa.
6215 * tests/test-signbit.c (minus_zerol): New variable.
6216 (test_signbitl): Use it.
6218 2008-04-13 Bruno Haible <bruno@clisp.org>
6220 Make truncl work on OSF/1 4.0.
6221 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
6222 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
6223 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
6224 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
6226 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
6228 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
6230 2008-04-13 Bruno Haible <bruno@clisp.org>
6232 * lib/unictype.h: Remove trailing comma from enumeration definitions.
6234 2008-04-13 Bruno Haible <bruno@clisp.org>
6236 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
6237 expression, so as to avoid HP-UX 11 cc compiler bug.
6239 2008-04-13 Bruno Haible <bruno@clisp.org>
6241 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
6243 2008-04-13 Bruno Haible <bruno@clisp.org>
6245 * lib/git-merge-changelog.c: Remove empty declaration outside of
6248 2008-04-13 Bruno Haible <bruno@clisp.org>
6250 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
6252 2008-04-13 Bruno Haible <bruno@clisp.org>
6254 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
6255 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
6256 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
6257 also if it exists but lacks definitions of the SHUT_* macros.
6258 * modules/sys_socket (Description): Update.
6259 Reported by Elbert Pol <e.pol@chello.nl>.
6261 2008-04-13 Bruno Haible <bruno@clisp.org>
6263 * lib/localcharset.c (OS2): Don't redefine if already defined.
6264 Reported by Elbert Pol <e.pol@chello.nl>.
6266 2008-04-13 Bruno Haible <bruno@clisp.org>
6268 * lib/binary-io.h [__EMX__]: Include <io.h>.
6269 Reported by Elbert Pol <e.pol@chello.nl>.
6271 2008-04-12 Bruno Haible <bruno@clisp.org>
6273 * lib/fpucw.h: Enable the definitions also for x86_64.
6274 Needed for NetBSD/x86_64.
6275 Reported by Thomas Klausner <tk@giga.or.at>.
6277 2008-04-12 Bruno Haible <bruno@clisp.org>
6279 * tests/test-strtod.c: Include isnand.h.
6280 (main): Use isnand instead of isnan.
6281 Reported by Jim Meyering.
6283 2008-04-12 Bruno Haible <bruno@clisp.org>
6285 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
6286 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
6288 2008-04-12 Jim Meyering <meyering@redhat.com>
6290 * m4/math_h.m4 (gl_MATH_H): Fix typos.
6292 2008-04-12 Bruno Haible <bruno@clisp.org>
6294 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
6295 Reported by Elbert Pol <e.pol@chello.nl>.
6297 2008-04-12 Eric Blake <ebb9@byu.net>
6299 Work around Solaris 10 math.h bug.
6300 * m4/math_h.m4 (gl_MATH_H): Check for bug.
6301 (gl_MATH_H_DEFAULTS): Set up default.
6302 * modules/math (Makefile.am): Replace new indicators.
6303 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
6304 * tests/test-math.c (main): Test this.
6305 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
6306 * doc/posix-headers/math.texi (math.h): Mention bug.
6307 Reported by Nelson H. F. Beebe and Jim Meyering.
6309 2008-04-11 Bruno Haible <bruno@clisp.org>
6311 Adapt to future versions of Apple GCC.
6312 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
6313 Reported by Peter O'Gorman <peter@pogma.com>.
6315 2008-04-11 Bruno Haible <bruno@clisp.org>
6317 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
6319 2008-04-11 Bruno Haible <bruno@clisp.org>
6321 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
6323 * modules/getaddrinfo-tests (Makefile.am): Define
6324 test_getaddrinfo_LDADD.
6326 2008-04-11 Bruno Haible <bruno@clisp.org>
6328 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
6329 (init): Fix syntax error.
6330 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
6333 2008-04-11 Bruno Haible <bruno@clisp.org>
6335 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
6336 * modules/glob (Depends-on): Add stdbool.
6338 2008-04-11 Bruno Haible <bruno@clisp.org>
6340 * lib/trim.c: Include <string.h>.
6342 2008-04-11 Eric Blake <ebb9@byu.net>
6344 Avoid compile failure on OS/2.
6345 * lib/regex_internal.h (internal_function): Disable optimization
6346 on OS/2 (__EMX__), where it caused compiler error.
6347 Reported by Elbert Pol.
6349 2008-04-11 Bruno Haible <bruno@clisp.org>
6351 Flush the standard error stream before aborting. Needed on mingw.
6352 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
6353 * tests/test-array_list.c (ASSERT): Likewise.
6354 * tests/test-array_oset.c (ASSERT): Likewise.
6355 * tests/test-avltree_list.c (ASSERT): Likewise.
6356 * tests/test-avltree_oset.c (ASSERT): Likewise.
6357 * tests/test-avltreehash_list.c (ASSERT): Likewise.
6358 * tests/test-binary-io.c (ASSERT): Likewise.
6359 * tests/test-byteswap.c (ASSERT): Likewise.
6360 * tests/test-c-ctype.c (ASSERT): Likewise.
6361 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
6362 * tests/test-c-strcasestr.c (ASSERT): Likewise.
6363 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
6364 * tests/test-c-strstr.c (ASSERT): Likewise.
6365 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
6366 * tests/test-canonicalize.c (ASSERT): Likewise.
6367 * tests/test-carray_list.c (ASSERT): Likewise.
6368 * tests/test-ceilf1.c (ASSERT): Likewise.
6369 * tests/test-ceilf2.c (ASSERT): Likewise.
6370 * tests/test-ceill.c (ASSERT): Likewise.
6371 * tests/test-count-one-bits.c (ASSERT): Likewise.
6372 * tests/test-fbufmode.c (ASSERT): Likewise.
6373 * tests/test-fflush2.c (ASSERT): Likewise.
6374 * tests/test-floorf1.c (ASSERT): Likewise.
6375 * tests/test-floorf2.c (ASSERT): Likewise.
6376 * tests/test-floorl.c (ASSERT): Likewise.
6377 * tests/test-fopen.c (ASSERT): Likewise.
6378 * tests/test-fpending.c (ASSERT): Likewise.
6379 * tests/test-fprintf-posix.c (ASSERT): Likewise.
6380 * tests/test-fpurge.c (ASSERT): Likewise.
6381 * tests/test-freadable.c (ASSERT): Likewise.
6382 * tests/test-freadahead.c (ASSERT): Likewise.
6383 * tests/test-freading.c (ASSERT): Likewise.
6384 * tests/test-freadptr.c (ASSERT): Likewise.
6385 * tests/test-freadptr2.c (ASSERT): Likewise.
6386 * tests/test-freadseek.c (ASSERT): Likewise.
6387 * tests/test-freopen.c (ASSERT): Likewise.
6388 * tests/test-frexp.c (ASSERT): Likewise.
6389 * tests/test-frexpl.c (ASSERT): Likewise.
6390 * tests/test-fseek.c (ASSERT): Likewise.
6391 * tests/test-fseeko.c (ASSERT): Likewise.
6392 * tests/test-fstrcmp.c (ASSERT): Likewise.
6393 * tests/test-ftell.c (ASSERT): Likewise.
6394 * tests/test-ftello.c (ASSERT): Likewise.
6395 * tests/test-func.c (ASSERT): Likewise.
6396 * tests/test-fwritable.c (ASSERT): Likewise.
6397 * tests/test-fwriting.c (ASSERT): Likewise.
6398 * tests/test-getdelim.c (ASSERT): Likewise.
6399 * tests/test-getline.c (ASSERT): Likewise.
6400 * tests/test-i-ring.c (ASSERT): Likewise.
6401 * tests/test-iconv-utf.c (ASSERT): Likewise.
6402 * tests/test-iconv.c (ASSERT): Likewise.
6403 * tests/test-isfinite.c (ASSERT): Likewise.
6404 * tests/test-isnand.c (ASSERT): Likewise.
6405 * tests/test-isnanf.c (ASSERT): Likewise.
6406 * tests/test-isnanl.h (ASSERT): Likewise.
6407 * tests/test-ldexpl.c (ASSERT): Likewise.
6408 * tests/test-linked_list.c (ASSERT): Likewise.
6409 * tests/test-linkedhash_list.c (ASSERT): Likewise.
6410 * tests/test-localename.c (ASSERT): Likewise.
6411 * tests/test-lseek.c (ASSERT): Likewise.
6412 * tests/test-mbscasecmp.c (ASSERT): Likewise.
6413 * tests/test-mbscasestr1.c (ASSERT): Likewise.
6414 * tests/test-mbscasestr2.c (ASSERT): Likewise.
6415 * tests/test-mbscasestr3.c (ASSERT): Likewise.
6416 * tests/test-mbscasestr4.c (ASSERT): Likewise.
6417 * tests/test-mbschr.c (ASSERT): Likewise.
6418 * tests/test-mbscspn.c (ASSERT): Likewise.
6419 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
6420 * tests/test-mbspbrk.c (ASSERT): Likewise.
6421 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
6422 * tests/test-mbsrchr.c (ASSERT): Likewise.
6423 * tests/test-mbsspn.c (ASSERT): Likewise.
6424 * tests/test-mbsstr1.c (ASSERT): Likewise.
6425 * tests/test-mbsstr2.c (ASSERT): Likewise.
6426 * tests/test-mbsstr3.c (ASSERT): Likewise.
6427 * tests/test-memchr2.c (ASSERT): Likewise.
6428 * tests/test-memmem.c (ASSERT): Likewise.
6429 * tests/test-open.c (ASSERT): Likewise.
6430 * tests/test-printf-frexp.c (ASSERT): Likewise.
6431 * tests/test-printf-frexpl.c (ASSERT): Likewise.
6432 * tests/test-printf-posix.c (ASSERT): Likewise.
6433 * tests/test-quotearg.c (ASSERT): Likewise.
6434 * tests/test-rbtree_list.c (ASSERT): Likewise.
6435 * tests/test-rbtree_oset.c (ASSERT): Likewise.
6436 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
6437 * tests/test-round1.c (ASSERT): Likewise.
6438 * tests/test-roundf1.c (ASSERT): Likewise.
6439 * tests/test-roundl.c (ASSERT): Likewise.
6440 * tests/test-signbit.c (ASSERT): Likewise.
6441 * tests/test-sleep.c (ASSERT): Likewise.
6442 * tests/test-snprintf-posix.c (ASSERT): Likewise.
6443 * tests/test-snprintf.c (ASSERT): Likewise.
6444 * tests/test-sprintf-posix.c (ASSERT): Likewise.
6445 * tests/test-stat-time.c (ASSERT): Likewise.
6446 * tests/test-strcasestr.c (ASSERT): Likewise.
6447 * tests/test-strerror.c (ASSERT): Likewise.
6448 * tests/test-striconv.c (ASSERT): Likewise.
6449 * tests/test-striconveh.c (ASSERT): Likewise.
6450 * tests/test-striconveha.c (ASSERT): Likewise.
6451 * tests/test-strsignal.c (ASSERT): Likewise.
6452 * tests/test-strstr.c (ASSERT): Likewise.
6453 * tests/test-strtod.c (ASSERT): Likewise.
6454 * tests/test-trunc1.c (ASSERT): Likewise.
6455 * tests/test-trunc2.c (ASSERT): Likewise.
6456 * tests/test-truncf1.c (ASSERT): Likewise.
6457 * tests/test-truncf2.c (ASSERT): Likewise.
6458 * tests/test-truncl.c (ASSERT): Likewise.
6459 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
6460 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
6461 * tests/test-vasnprintf.c (ASSERT): Likewise.
6462 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
6463 * tests/test-vasprintf.c (ASSERT): Likewise.
6464 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
6465 * tests/test-vprintf-posix.c (ASSERT): Likewise.
6466 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
6467 * tests/test-vsnprintf.c (ASSERT): Likewise.
6468 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
6469 * tests/test-wcwidth.c (ASSERT): Likewise.
6470 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
6471 * tests/test-xprintf-posix.c (ASSERT): Likewise.
6472 * tests/test-xvasprintf.c (ASSERT): Likewise.
6473 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
6474 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
6475 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
6476 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
6477 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
6478 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
6479 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
6480 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
6481 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
6482 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
6483 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
6484 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
6485 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
6486 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
6487 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
6488 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
6489 * tests/unictype/test-block_list.c (ASSERT): Likewise.
6490 * tests/unictype/test-block_of.c (ASSERT): Likewise.
6491 * tests/unictype/test-block_test.c (ASSERT): Likewise.
6492 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
6493 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
6494 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
6495 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
6496 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
6497 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
6498 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
6499 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
6500 * tests/unictype/test-combining.c (ASSERT): Likewise.
6501 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
6502 * tests/unictype/test-digit.c (ASSERT): Likewise.
6503 * tests/unictype/test-mirror.c (ASSERT): Likewise.
6504 * tests/unictype/test-numeric.c (ASSERT): Likewise.
6505 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
6506 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
6507 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
6508 * tests/unictype/test-scripts.c (ASSERT): Likewise.
6509 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
6510 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
6511 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
6512 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
6513 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
6514 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
6515 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
6516 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
6517 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
6518 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
6519 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
6520 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
6521 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
6522 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
6523 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
6524 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
6525 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
6526 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
6527 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
6528 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
6529 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
6530 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
6531 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
6532 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
6533 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
6534 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
6535 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
6536 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
6537 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
6538 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
6539 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
6540 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
6541 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
6542 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
6543 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
6544 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
6545 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
6546 Reported by Eric Blake.
6548 2008-04-11 Bruno Haible <bruno@clisp.org>
6550 * lib/wchar.in.h: Tweak comment.
6552 2008-04-11 Bruno Haible <bruno@clisp.org>
6554 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
6555 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
6557 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
6559 2008-04-11 Bruno Haible <bruno@clisp.org>
6561 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
6563 2008-04-11 Simon Josefsson <simon@josefsson.org>
6565 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
6566 of attempting to use non-existing /dev/*random. Based on patch
6567 from Adam Strzelecki <ono@java.pl> in
6568 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
6570 2008-04-08 Bruno Haible <bruno@clisp.org>
6572 Add tentative support for emx+gcc.
6573 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
6574 * lib/fpurge.c (fpurge): Likewise.
6575 * lib/freadable.c (freadable): Likewise.
6576 * lib/freadahead.c (freadahead): Likewise.
6577 * lib/freading.c (freading): Likewise.
6578 * lib/freadptr.c (freadptr): Likewise.
6579 * lib/freadseek.c (freadptrinc): Likewise.
6580 * lib/fseeko.c (rpl_fseeko): Likewise.
6581 * lib/fseterr.c (fseterr): Likewise.
6582 * lib/fwritable.c (fwritable): Likewise.
6583 * lib/fwriting.c (fwriting): Likewise.
6584 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
6586 2008-04-09 Eric Blake <ebb9@byu.net>
6588 Avoid some autoconf warnings.
6589 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
6590 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
6591 * m4/afs.m4 (gl_AFS): Likewise.
6592 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
6593 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
6594 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6595 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
6596 (gl_INTEGER_TYPE_SUFFIX): Likewise.
6597 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
6598 (AC_CHECK_DECLS_ONCE): Likewise.
6600 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
6601 gnulib-tool requires autoconf 2.59 or better.
6602 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
6604 2008-04-08 Eric Blake <ebb9@byu.net>
6606 Use 'git describe --match' if present (added in git 1.5.5).
6607 * build-aux/git-version-gen: Limit result to tags that match 'v*'
6610 2008-04-08 Bruno Haible <bruno@clisp.org>
6612 Add tentative support for OpenServer.
6613 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
6615 * lib/fpurge.c (fpurge): Likewise.
6616 * lib/freadable.c (freadable): Likewise.
6617 * lib/freadahead.c (freadahead): Likewise.
6618 * lib/freading.c (freading): Likewise.
6619 * lib/freadptr.c (freadptr): Likewise.
6620 * lib/freadseek.c (freadptrinc): Likewise.
6621 * lib/fseeko.c (rpl_fseeko): Likewise.
6622 * lib/fseterr.c (fseterr): Likewise.
6623 * lib/fwritable.c (fwritable): Likewise.
6624 * lib/fwriting.c (fwriting): Likewise.
6625 Reported by Roger Cornelius <rac@tenzing.org> and
6626 Brian K. White <brian@aljex.com>.
6628 2008-04-06 Jim Meyering <meyering@redhat.com>
6630 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
6632 2008-04-06 Bruno Haible <bruno@clisp.org>
6634 Avoid possible error with non-ASCII bytes in UTF-8 locales.
6635 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
6636 * tests/test-printf-posix.sh: Likewise.
6637 * tests/test-vfprintf-posix.sh: Likewise.
6638 * tests/test-vprintf-posix.sh: Likewise.
6639 * tests/test-xprintf-posix.sh: Likewise.
6641 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6643 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
6644 hide error from 'ls', needed on OS/2.
6645 Report by Elbert Pol <elbert.pol@gmail.com>.
6647 2008-04-04 Eric Blake <ebb9@byu.net>
6649 Make test-fseeko.c failures meaningful.
6650 * tests/test-fseeko.c: Print line number on failure.
6651 * tests/test-fseek.c: Likewise.
6652 Reported by Nelson H. F. Beebe.
6654 Improve strtod bug detection check.
6655 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
6656 required for Solaris 10.
6657 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
6659 2008-04-04 Bruno Haible <bruno@clisp.org>
6661 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
6664 2008-04-03 Eric Blake <ebb9@byu.net>
6666 Ensure sane .version contents.
6667 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
6669 * build-aux/git-version-gen: Improve documentation.
6671 Make GNU make output nicer.
6672 * top/GNUmakefile [!_have-Makefile]: Add dependency on
6673 MAKECMDGOALS to enforce message for all command line targets. Set
6674 srcdir for use in maint.mk.
6676 Another maintainer tweak.
6677 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
6678 a target that regenerates version.
6680 2008-04-03 Jim Meyering <meyering@redhat.com>
6682 vc-list-files: don't cause coreutils "make po-check" failure
6683 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
6685 2008-04-03 Eric Blake <ebb9@byu.net>
6687 Allow VPATH usage of vc-list-files.
6688 * build-aux/vc-list-files (scriptversion): Add timestamp.
6689 (options): Add --help, --version, -C.
6690 (CVS): Support installed cvsu.
6692 2008-04-02 Bruno Haible <bruno@clisp.org>
6694 Avoid some "statement with no effect" warnings from gcc.
6695 * tests/test-wctype.c (main): Explicitly ignore unused values.
6696 Reported by Jim Meyering.
6698 2008-04-02 Jim Meyering <meyering@redhat.com>
6700 Avoid some warnings from "gcc -Wshadow".
6701 * tests/test-frexp.c (exp): Define to a different identifier.
6702 * tests/test-frexpl.c (exp): Likewise.
6704 2008-04-03 Jim Meyering <meyering@redhat.com>
6706 bootstrap: remove dangling *.[ch] symlinks from lib
6707 * build-aux/bootstrap [dangling symlink removal]: Move find's
6708 -depth option to precede all others, to avoid a warning.
6709 Remove *.[ch] files too, and from "$source_base" (usually lib/).
6711 2008-04-02 Bruno Haible <bruno@clisp.org>
6713 Avoid some warnings from "gcc -Wshadow".
6714 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
6715 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
6716 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
6717 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
6718 Reported by Jim Meyering.
6720 2008-04-01 Bruno Haible <bruno@clisp.org>
6722 Fix test to work on IRIX 6.5 with cc.
6723 * tests/test-math.c (numeric_equal): New function.
6726 2008-04-01 Bruno Haible <bruno@clisp.org>
6728 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
6730 2008-04-01 Bruno Haible <bruno@clisp.org>
6732 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
6733 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6734 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
6735 (Depends-on): Remove math.
6737 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
6738 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6739 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
6740 (Depends-on): Remove math.
6742 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
6743 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6744 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
6745 (Depends-on): Remove math.
6746 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
6747 (Depends-on): Remove math.
6749 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
6750 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6751 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
6752 (Depends-on): Remove math.
6753 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
6754 (Depends-on): Remove math.
6756 * tests/test-round1.c: Include nan.h.
6757 (main): Use NaNd instead of NAN.
6758 * modules/round-tests (Files): Add tests/nan.h.
6760 * tests/test-trunc1.c: Include nan.h.
6761 (main): Use NaNd instead of NAN.
6762 * modules/trunc-tests (Files): Add tests/nan.h.
6764 * tests/test-roundf1.c: Include nan.h.
6765 (main): Use NaNf instead of NAN.
6766 * modules/roundf-tests (Files): Add tests/nan.h.
6768 * tests/test-truncf1.c: Include nan.h.
6769 (main): Use NaNf instead of NAN.
6770 * modules/truncf-tests (Files): Add tests/nan.h.
6772 * tests/test-ceilf1.c: Include nan.h.
6773 (main): Use NaNf instead of NAN.
6774 * modules/ceilf-tests (Files): Add tests/nan.h.
6776 * tests/test-floorf1.c: Include nan.h.
6777 (main): Use NaNf instead of NAN.
6778 * modules/floorf-tests (Files): Add tests/nan.h.
6780 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
6781 (main): Use NaNf instead of NAN.
6782 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
6784 * tests/test-isnand.c: Include nan.h instead of <math.h>.
6785 (main): Use NaNd instead of NAN.
6786 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
6788 * tests/test-frexp.c: Include nan.h.
6789 (main): Use NaNd instead of NAN.
6790 * modules/frexp-tests (Files): Add tests/nan.h.
6792 * lib/isnan.c: Don't include <math.h>.
6793 (FUNC): Don't use NAN macro.
6794 * modules/isnand-nolibm (Depends-on): Remove math.
6795 * modules/isnanf-nolibm (Depends-on): Remove math.
6796 * modules/isnanl (Depends-on): Remove math.
6797 * modules/isnanl-nolibm (Depends-on): Remove math.
6799 * tests/nan.h: New file.
6801 2008-04-01 Eric Blake <ebb9@byu.net>
6804 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
6805 values to be the right type.
6807 For now, cater to gnulib strtod inaccuracies.
6808 * tests/test-strtod.c (main): Allow 1-ulp error on expected
6809 fractional results. While not as nice from a QoI perspective, it
6810 is a quicker patch than correctly implementing decimal to binary
6813 2008-03-31 Eric Blake <ebb9@byu.net>
6815 Guarantee a definition of NAN.
6816 * lib/math.in.h (NAN): Define if missing.
6817 * tests/test-math.c (main): Test it.
6818 * doc/posix-headers/math.texi (math.h): Document this.
6819 * lib/isnan.c (rpl_isnand): Use it.
6820 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
6821 * tests/test-floorf1.c (NaN): Likewise.
6822 * tests/test-frexp.c (NaN): Likewise.
6823 * tests/test-isnand.c (NaN): Likewise.
6824 * tests/test-isnanf.c (NaN): Likewise.
6825 * tests/test-round1.c (NaN): Likewise.
6826 * tests/test-roundf1.c (NaN): Likewise.
6827 * tests/test-snprintf-posix.h (NaN): Likewise.
6828 * tests/test-sprintf-posix.h (NaN): Likewise.
6829 * tests/test-trunc1.c (NaN): Likewise.
6830 * tests/test-truncf1.c (NaN): Likewise.
6831 * tests/test-vasnprintf-posix.c (NaN): Likewise.
6832 * tests/test-vasprintf-posix.c (NaN): Likewise.
6833 * modules/isnand-nolibm (Depends-on): Add math.
6834 * modules/isnanf-nolibm (Depends-on): Likewise.
6835 * modules/isnanl (Depends-on): Likewise.
6836 * modules/isnanl-nolibm (Depends-on): Likewise.
6837 * modules/snprintf-posix-tests (Depends-on): Likewise.
6838 * modules/sprintf-posix-tests (Depends-on): Likewise.
6839 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
6840 * modules/vsprintf-posix-tests (Depends-on): Likewise.
6841 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
6842 * modules/vasprintf-posix-tests (Depends-on): Likewise.
6844 2008-03-31 Bruno Haible <bruno@clisp.org>
6846 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
6847 * doc/posix-functions/strtod.texi: Likewise.
6849 2008-03-31 Bruno Haible <bruno@clisp.org>
6851 * tests/test-strtod.c (main): Don't use C99 syntax.
6853 2008-03-31 Bruno Haible <bruno@clisp.org>
6855 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
6856 Reported by Eric Blake.
6858 2008-03-31 Jim Meyering <meyering@redhat.com>
6860 Don't compare actual signbit return values.
6861 * tests/test-strtod.c (main): Rather, compare only their
6862 zero/non-zero nature.
6864 2008-03-31 Eric Blake <ebb9@byu.net>
6866 More strtod documentation.
6867 * doc/posix-functions/strtod.texi (strtod): Interpret more test
6868 failures as distinct bugs.
6870 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
6872 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
6873 Problem reported by Erik Benada in
6874 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
6876 2008-03-30 Bruno Haible <bruno@clisp.org>
6878 * tests/test-strtod.c: Add comments about which assertion fails on which
6880 * doc/posix-functions/strtod.texi: Add info about many more platforms.
6882 2008-03-30 Eric Blake <ebb9@byu.net>
6884 Test signbit behavior on zeros.
6885 * tests/test-signbit.c (test_signbitf): Add tests for zero.
6886 (test_signbitd, test_signbitl): Likewise.
6888 More strtod touchups.
6889 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
6890 sign of negative underflow, for now. Use .5, not .1.
6891 * doc/posix-functions/strtod.texi (strtod): Mention these
6893 Reported by Jim Meyering.
6895 2008-03-30 Bruno Haible <bruno@clisp.org>
6897 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
6898 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
6900 2008-03-30 Bruno Haible <bruno@clisp.org>
6902 Avoid failure when attempting to return empty iconv results on some
6904 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
6905 allocation, don't report ENOMEM when the resulting string is empty.
6907 2008-03-30 Bruno Haible <bruno@clisp.org>
6910 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
6911 Don't consider the width for tmp_length. Check count against tmp_length
6912 before doing the padding. Ensure enough allocation during padding.
6914 2008-03-30 Eric Blake <ebb9@byu.net>
6917 * lib/strtod.c (strtod): Avoid compiler warnings.
6918 Reported by Jim Meyering.
6920 2008-03-30 Bruno Haible <bruno@clisp.org>
6922 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
6923 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
6924 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
6925 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
6926 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
6927 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
6928 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
6929 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
6931 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
6932 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
6933 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
6934 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
6935 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
6936 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
6937 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
6938 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
6940 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
6941 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
6942 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
6943 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
6944 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
6945 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
6946 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
6947 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
6949 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
6950 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
6952 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
6953 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
6955 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
6956 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
6958 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
6959 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
6960 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
6962 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
6963 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
6964 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
6966 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
6967 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
6968 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
6970 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
6971 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
6972 * modules/vasprintf (Depends-on): Add EOVERFLOW.
6974 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
6975 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
6976 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
6977 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
6978 (Depends-on): Add EOVERFLOW.
6979 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
6980 (Depends-on): Add EOVERFLOW.
6981 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6982 (Depends-on): Add EOVERFLOW.
6983 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
6984 (Depends-on): Add EOVERFLOW.
6985 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6986 (Depends-on): Add EOVERFLOW.
6987 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
6988 (Depends-on): Add EOVERFLOW.
6989 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6990 (Depends-on): Add EOVERFLOW.
6991 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
6992 (Depends-on): Add EOVERFLOW.
6994 * lib/sprintf.c (EOVERFLOW): Remove fallback.
6995 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
6996 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
6998 * lib/snprintf.c (EOVERFLOW): Remove fallback.
6999 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
7000 * modules/snprintf (Depends-on): Add EOVERFLOW.
7002 * lib/poll.c (EOVERFLOW): Remove fallback.
7003 * modules/poll (Depends-on): Add EOVERFLOW.
7005 * lib/getugroups.c (EOVERFLOW): Remove fallback.
7006 * modules/getugroups (Depends-on): Add EOVERFLOW.
7008 * lib/getdelim.c (EOVERFLOW): Remove fallback.
7009 * modules/getdelim (Depends-on): Add EOVERFLOW.
7011 * lib/ftell.c (EOVERFLOW): Remove fallback.
7012 * modules/ftell (Depends-on): Add EOVERFLOW.
7014 * lib/fprintf.c (EOVERFLOW): Remove fallback.
7015 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
7016 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
7018 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
7020 * modules/EOVERFLOW-tests: New file.
7021 * tests/test-EOVERFLOW.c: New file.
7023 * modules/EOVERFLOW: New file.
7024 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
7026 2008-03-30 Bruno Haible <bruno@clisp.org>
7028 Fix bug introduced on 2007-06-10.
7029 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
7030 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
7032 2008-03-30 Bruno Haible <bruno@clisp.org>
7034 Improve freadseek's efficiency after ungetc.
7035 * lib/freadseek.c: Include freadahead.h.
7036 (freadptrinc): New function, extracted from freadseek.
7037 (freadseek): Use it in a loop. Use freadahead to determine the number
7039 * modules/freadseek (Depends-on): Add freadahead.
7040 (configure.ac): Require AC_C_INLINE.
7042 2008-03-30 Bruno Haible <bruno@clisp.org>
7044 * lib/freadseek.c (freadseek): Don't ignore the return value of
7047 2008-03-29 Eric Blake <ebb9@byu.net>
7049 Add hex float support.
7050 * modules/strtod (Depends-on): Add c-ctype.
7051 (Link): Mention POW_LIB.
7052 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
7053 whitespace between 'e' and exponent.
7054 * tests/test-strtod.c (main): Enable hex float tests.
7055 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
7058 Document various strtod bugs, with some fixes.
7059 * doc/posix-functions/strtod.texi (strtod): Document bugs with
7060 "-0x", "inf", "nan", and hex constants.
7061 * doc/posix-functions/atof.texi (atof): Likewise.
7062 * modules/stdlib (Makefile.am): Support strtod.
7063 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
7064 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
7065 detect additional strtod bugs.
7066 * lib/stdlib.in.h (rpl_strtod): Add declarations.
7067 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
7068 bool where appropriate. Parse 'inf' and 'nan'.
7069 * tests/test-strtod.c: New file.
7070 * modules/strtod (Depends-on): Add stdbool, stdlib.
7071 (configure.ac): Turn on module indicator.
7072 * modules/strtod-tests: New module.
7074 2008-03-29 Eric Blake <ebb9@byu.net>
7077 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
7078 * modules/ftell-tests (Depends-on): Add binary-io.
7079 * modules/ftello-tests (Depends-on): Likewise.
7080 * tests/test-ftell.c (main): Enhance test to cover behavior after
7081 ungetc. Enforce binary mode.
7082 * tests/test-ftello.c (main): Likewise.
7084 Pass test-freadseek on cygwin.
7085 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
7086 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
7089 * tests/test-fflush2.c (main): Fix typo.
7091 2008-03-29 Bruno Haible <bruno@clisp.org>
7093 * tests/test-fflush2.c (main): Temporarily disable the contents of
7095 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
7096 Reported by Eric Blake.
7098 2008-03-28 Simon Josefsson <simon@josefsson.org>
7100 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
7101 (GC_SHA224_DIGEST_SIZE): Add.
7103 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
7104 (gc_hash_digest_length): Likewise.
7105 (gc_hash_buffer): Likewise.
7107 2008-03-25 Bruno Haible <bruno@clisp.org>
7109 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
7110 detail which gettext release to use.
7111 Reported by Simon Josefsson.
7113 2008-03-26 Jim Meyering <meyering@redhat.com>
7115 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
7116 * modules/gnumakefile (clean-GNUmakefile): Also, use
7117 test ... && ... || : syntax rather than if-then ... fi.
7119 gnumakefile: Don't double-quote-expand $(VPATH) value.
7120 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
7122 2008-03-24 Eric Blake <ebb9@byu.net>
7124 Alter GNUmakefile to install into top directory.
7125 * modules/maintainer-makefile: Split, and add dependency...
7126 * modules/gnumakefile: to this new module.
7127 * build-aux/GNUmakefile: Move...
7128 * top/GNUmakefile: ...here.
7129 * build-aux/maint.mk: Move...
7130 * top/maint.mk: ...here.
7131 * MODULES.html.sh (Support for maintaining...): Document new
7134 2008-03-23 Bruno Haible <bruno@clisp.org>
7136 * gnulib-tool: New options --vc-files, --no-vc-files.
7137 (func_usage): Document them.
7138 (vc_files): New variable.
7139 (func_import): Consider vc_files.
7140 (func_create_testdir): Set vc_files to empty.
7141 Suggested by Jim Meyering and Karl Berry.
7143 2008-03-23 Bruno Haible <bruno@clisp.org>
7145 Fix regex compilation error on HP-UX 11.
7146 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
7147 * modules/regex (Files): Add m4/mbstate_t.m4.
7148 Reported by Ton Voon <ton.voon@altinity.com>.
7150 2008-03-23 Bruno Haible <bruno@clisp.org>
7152 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
7154 2008-03-23 Eric Blake <ebb9@byu.net>
7155 Bruno Haible <bruno@clisp.org>
7157 Install files from top/ in the destination directory.
7158 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
7159 augmentation also for the files from top/.
7160 (func_import, func_create_testdir): Rewrite file names:
7161 top/filename -> filename.
7163 2008-03-23 Bruno Haible <bruno@clisp.org>
7165 Tweak "gnulib --version" output.
7166 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
7168 2008-03-23 Bruno Haible <bruno@clisp.org>
7170 Tweak "gnulib --version" output.
7171 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
7172 rather than contents of ChangeLog, when possible.
7174 2008-03-21 Eric Blake <ebb9@byu.net>
7176 More --version tweaks.
7177 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
7178 date of last ChangeLog entry.
7180 2008-03-21 Jim Meyering <meyering@redhat.com>
7182 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
7184 2008-03-20 Eric Blake <ebb9@byu.net>
7187 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
7189 2008-03-20 Simon Josefsson <simon@josefsson.org>
7191 * build-aux/GNUmakefile: Make git-version-gen optional. Add
7192 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
7194 2008-03-20 Eric Blake <ebb9@byu.net>
7196 Sync GNUmakefile with coreutils.
7197 * build-aux/GNUmakefile (have-Makefile): Rename...
7198 (_have-Makefile): ...to this, for namespace consideration.
7199 (GNUmakefile.cfg): Include, if present.
7200 (_autoreconf): Define a default.
7201 (_is-dist-target): New rule for rebuilds to pick up intra-release
7203 (maint-cfg.mk): Rename...
7204 (cfg.mk): ...to this.
7206 2008-03-18 Jim Meyering <meyering@redhat.com>
7208 New script and module: mktempd
7209 * MODULES.html.sh (maint+release support): Add mktempd.
7210 * build-aux/mktempd: New file.
7211 * modules/mktempd: New file.
7213 2008-03-15 Jim Meyering <meyering@redhat.com>
7216 * lib/sha1.c, lib/md5.c: 63 != ~63.
7217 Reported by Andreas Schwab.
7219 sha1.c, md5.c: Hoist a redundant expression.
7220 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
7221 "ctx->buflen" only once, before calling *_process_block.
7222 * lib/md5.c (md5_process_bytes): Likewise.
7224 2008-03-14 Eric Blake <ebb9@byu.net>
7226 Bump copyright year in files generated by gnulib-tool.
7227 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
7228 gnulib-tool, rather than hard-coding it.
7230 Fix 'gnulib-tool --version' output to work with git.
7231 * gnulib-tool (func_gnulib_dir): New function, extracted from...
7233 (func_version): Use it to invoke git-version-gen, rather than
7234 relying on CVS keyword expansion. Modernize wording.
7235 (cvsdatestamp, last_checkin_date, version): Kill unused
7238 2008-03-12 Jim Meyering <meyering@redhat.com>
7240 Recognize optional cast of the argument to free.
7241 * build-aux/useless-if-before-free: Update regexps.
7243 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
7245 2008-03-11 Bruno Haible <bruno@clisp.org>
7247 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
7248 by a single package.
7249 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
7250 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
7251 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
7252 Reported by Sam Steingold <sds@gnu.org>.
7254 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
7256 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
7259 2008-03-11 Bruno Haible <bruno@clisp.org>
7261 Avoid conflicts between local macro definitions.
7262 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7263 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
7265 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
7266 Bruno Haible <bruno@clisp.org>
7268 Make va_copy work with some version of xlc on AIX 5.1.
7269 * lib/stdarg.in.h: New file.
7270 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
7271 On AIX, use a <stdarg.h> file substitute.
7272 * modules/stdarg (Files): Add lib/stdarg.in.h.
7273 (Depends-on): Add include_next.
7274 (Makefile.am): Build a stdarg.h substitute if requested.
7275 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
7277 2008-03-10 Bruno Haible <bruno@clisp.org>
7279 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
7280 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7281 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
7283 2008-03-10 Bruno Haible <bruno@clisp.org>
7285 * modules/stdlib (Depends-on): Add include_next, remove
7288 2008-03-09 Bruno Haible <bruno@clisp.org>
7290 * lib/freadahead.h (freadahead): Document more precisely.
7291 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
7292 the sum of both buffer sizes.
7293 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
7294 * NEWS: Document the change.
7296 2008-03-09 Bruno Haible <bruno@clisp.org>
7298 Extend freadptr to return also the buffer size.
7299 * lib/freadptr.h (freadptr): Add sizep argument.
7300 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
7301 (freadptr): Add sizep argument. Determine buffer size like freadahead
7303 * tests/test-freadptr.c: Don't include freadahead.h.
7304 (main): Adapt for new calling convention of freadptr.
7305 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
7306 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
7307 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
7308 tests/test-freadptr2.sh.
7309 (Depends): Remove freadahead.
7310 (TESTS): Add test-freadptr2.sh.
7311 (check_PROGRAMS): Add test-freadptr2.
7313 2008-03-09 Bruno Haible <bruno@clisp.org>
7315 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
7316 Report and solution by Simon Josefsson.
7318 2008-03-06 Bruno Haible <bruno@clisp.org>
7320 Make fflush after ungetc work on BSD platforms.
7321 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
7322 * tests/test-fflush2.c: New file.
7323 * tests/test-fflush2.sh: New file.
7324 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
7325 tests/test-fflush2.c.
7326 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
7327 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
7329 2008-03-06 Eric Blake <ebb9@byu.net>
7331 Likewise for ftello.
7332 * modules/ftello (Dependencies): Add extensions.
7333 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
7335 2008-03-06 Bruno Haible <bruno@clisp.org>
7337 * modules/fseeko (Dependencies): Add extensions.
7338 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
7339 Needed on glibc systems.
7341 2008-03-06 Bruno Haible <bruno@clisp.org>
7343 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
7345 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7347 2008-03-06 Bruno Haible <bruno@clisp.org>
7349 * users.txt: Add libgnupdf.
7351 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
7353 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
7354 (Header File Substitutes, Function Substitutes,
7355 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
7356 (Build robot for gnulib): Fix typo.
7358 2008-03-06 Bruno Haible <bruno@clisp.org>
7360 * doc/gnulib-tool.texi (VCS Issues): Small updates.
7361 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7363 2008-03-06 Bruno Haible <bruno@clisp.org>
7365 * doc/func.texi: New file, extracted from doc/gnulib.texi.
7366 * doc/gnulib.texi: Include it.
7368 2008-03-06 Simon Josefsson <simon@josefsson.org>
7370 * modules/func (License): Change license to unlimited; there was
7371 no LGPL parts in the module anyway.
7373 2008-03-06 Simon Josefsson <simon@josefsson.org>
7375 * modules/__func__: Renamed to modules/func.
7376 * modules/__func__-tests: Renamed to modules/func-tests.
7377 * tests/test-__func__.c: Renamed to tests/test-func.c.
7378 * m4/__func__.m4: Renamed to m4/func.m4.
7379 * doc/gnulib.texi (__func__): Section renamed to func.
7380 Suggested by Eric Blake <ebb9@byu.net>.
7382 2008-03-06 Simon Josefsson <simon@josefsson.org>
7384 * doc/gnulib.texi (__func__): Use C99 terminology when talking
7385 about __func__. Make example self-contained. Suggested by Eric
7386 Blake <ebb9@byu.net>.
7388 * tests/test-__func__.c (main): Avoid extraneous () around __func.
7389 Suggested by Eric Blake <ebb9@byu.net>.
7391 2008-03-06 Simon Josefsson <simon@josefsson.org>
7393 * modules/__func__: New file.
7394 * modules/__func__-tests: New file.
7395 * tests/test-__func__.c: New file.
7396 * m4/__func__.m4: New file.
7397 * doc/gnulib.texi (__func__): Document __func__ module.
7399 2008-03-05 Simon Josefsson <simon@josefsson.org>
7401 * modules/byteswap (License): Re-license as LGPLv2+.
7403 2008-03-05 Simon Josefsson <simon@josefsson.org>
7405 * doc/Makefile: Add pdf target.
7407 2008-03-05 Simon Josefsson <simon@josefsson.org>
7409 * modules/inline (License): Use 'unlimited', since there are only
7410 *.m4 files in this module.
7412 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
7413 Bruno Haible <bruno@clisp.org>
7415 Add support for HP C 7.1 on OpenVMS 8.3.
7416 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
7418 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
7420 Update VMS specifics.
7421 * lib/getopt.c [VMS]: Remove include of unixlib.h.
7423 2008-03-02 Jim Meyering <meyering@redhat.com>
7425 Remove the last dependency on the "free" module.
7426 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
7427 Reported by Bob Proulx.
7429 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
7431 Remove useless "if" tests before free. Deprecate "free" module.
7432 * doc/posix-functions/free.texi: Mention that this
7433 module is no longer useful.
7434 * modules/free (Notice): Say this module is obsolete.
7435 * modules/readutmp (Depends-on): Remove free.
7436 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
7437 * lib/putenv.c (putenv): Likewise.
7438 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
7439 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
7440 * tests/test-c-strcasestr.c (main): Likewise.
7441 * tests/test-c-strstr.c (main): Likewise.
7442 * tests/test-mbscasestr1.c (main): Likewise.
7443 * tests/test-mbscasestr2.c (main): Likewise.
7444 * tests/test-mbsstr1.c (main): Likewise.
7445 * tests/test-mbsstr2.c (main): Likewise.
7446 * tests/test-memmem.c (main): Likewise.
7447 * tests/test-strcasestr.c (main): Likewise.
7448 * tests/test-striconv.c (main): Likewise.
7449 * tests/test-striconveh.c (main): Likewise.
7450 * tests/test-striconveha.c (main): Likewise.
7451 * tests/test-strstr.c (main): Likewise.
7453 * build-aux/git-version-gen: Adjust a comment and the Usage string.
7455 bootstrap: sync from coreutils again
7456 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
7458 2008-03-01 Jim Meyering <meyering@redhat.com>
7460 bootstrap: sync from coreutils
7461 * build-aux/bootstrap (update_po_files): Copy a .po file into place
7462 also when the target doesn't exist.
7464 2008-03-01 Eric Blake <ebb9@byu.net>
7466 Fix bugs in last patch.
7467 * lib/memchr2.c (memchr2): Fix typo.
7468 * tests/test-memchr2.c: Test previous bug, and don't use GNU
7470 Reported by Bruce Korb.
7472 New module 'memchr2'.
7473 * modules/memchr2: New file.
7474 * modules/memchr2-tests: Likewise.
7475 * lib/memchr2.h: Likewise.
7476 * lib/memchr2.c: Likewise, based on memchr.c.
7477 * tests/test-memchr2.c: New test.
7478 * MODULES.html.sh (String handling): Add memchr2.
7480 2008-02-29 Bruno Haible <bruno@clisp.org>
7482 * modules/freadseek-tests: New file.
7483 * tests/test-freadseek.sh: New file.
7484 * tests/test-freadseek.c: New file.
7486 New module 'freadseek'.
7487 * modules/freadseek: New file.
7488 * lib/freadseek.h: New file.
7489 * lib/freadseek.c: New file.
7490 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
7492 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
7494 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
7497 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
7498 program_invocation_name and program_invocation_short_name are
7501 2008-02-28 Bruno Haible <bruno@clisp.org>
7503 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
7504 * tests/test-freadptr.sh: Also test non-seekable stdin.
7506 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
7508 * build-aux/bootstrap (source_base, m4_base)
7509 (doc_base, tests_base): New variables.
7510 (gnulib_tool_options): Do not hardcode base directories, use
7511 the above variables instead.
7513 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
7515 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
7517 2008-02-28 Bruno Haible <bruno@clisp.org>
7519 * modules/freadptr-tests: New file.
7520 * tests/test-freadptr.sh: New file.
7521 * tests/test-freadptr.c: New file.
7523 New module 'freadptr'.
7524 * modules/freadptr: New file.
7525 * lib/freadptr.h: New file.
7526 * lib/freadptr.c: New file.
7527 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
7529 2008-02-26 Karl Berry <karl@freefriends.org>
7532 * libltdl/argz.c (argz_add, argz_count): New functions.
7533 * libltdl/argz.in.h: Declare them.
7534 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
7536 2008-02-22 Bruno Haible <bruno@clisp.org>
7538 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
7539 is a pointer type. Needed for HP-UX 10.
7540 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
7541 * doc/posix-functions/gmtime_r.texi: Likewise.
7542 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
7544 2008-02-24 Bruno Haible <bruno@clisp.org>
7546 * modules/environ-tests: New file.
7547 * tests/test-environ.c: New file.
7549 New module 'environ'.
7550 * modules/environ: New file.
7551 * lib/unistd.in.h (environ): New declaration.
7552 * m4/environ.m4: New file.
7553 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
7555 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
7557 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
7559 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
7560 wrong claim that 'environ' is missing on some systems.
7561 * modules/execute (Depends-on): Add environ.
7562 * lib/execute.c (environ): Remove fallback declaration.
7563 * modules/pipe (Depends-on): Add environ.
7564 * lib/pipe.c (environ): Remove fallback declaration.
7565 * modules/setenv (Depends-on): Add environ.
7566 * lib/setenv.c (environ): Remove fallback declaration.
7567 * modules/unsetenv (Depends-on): Add environ.
7568 * lib/unsetenv.c (environ): Remove fallback declaration.
7569 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
7571 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
7572 (gl_PREREQ_UNSETENV): Likewise.
7574 2008-02-24 Bruno Haible <bruno@clisp.org>
7576 * doc/posix-functions/environ.texi: Document the MacOS X problem.
7578 2008-02-20 Bob Proulx <bob@proulx.com>
7580 Enable use of older two part flavor 'git describe'.
7581 * build-aux/git-version-gen: If using the older two part flavor of
7582 git version then recreate the third part now present in the
7583 newer three part flavor of git describe.
7585 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
7587 * lib/fts.c (fts_build): Typo correction to comment.
7589 2008-02-17 Bruno Haible <bruno@clisp.org>
7591 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
7592 generating no-op conflicts.
7594 2008-02-17 Bruno Haible <bruno@clisp.org>
7597 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
7598 result_entries, rather than an index-based loop.
7600 2008-02-17 Bruno Haible <bruno@clisp.org>
7603 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
7605 (entry_create): New function.
7606 (entry_hashcode): Use the cached hashcode if possible.
7607 (read_changelog_file, try_split_merged_entry): Use entry_create.
7609 2008-02-17 Bruno Haible <bruno@clisp.org>
7611 Speed up from O(n^2) to O(n) for long ChangeLog files.
7612 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
7613 (read_changelog_file): Change implementation of entries_reversed list
7615 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
7617 2008-02-17 Bruno Haible <bruno@clisp.org>
7619 New option --split-merged-entry.
7620 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
7621 (find_paragraph_end, try_split_merged_entry): New functions.
7622 (long_options): Add option --split-merged-entry.
7623 (usage): Document option --split-merged-entry.
7624 (main): Implement option --split-merged-entry.
7625 Reported by Eric Blake.
7627 2008-02-17 Bruno Haible <bruno@clisp.org>
7629 * lib/git-merge-changelog.c: Include c-strstr.h.
7630 (main): Support the "git pull --rebase" situation.
7631 * modules/git-merge-changelog (Depends-on): Add c-strstr.
7632 Reported by Eric Blake.
7634 2008-02-16 Eric Blake <ebb9@byu.net>
7636 Avoid doubling \ in common case of "c-maybe" quoting style.
7637 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
7638 eliding outer quotes.
7639 * lib/quotearg.h: Document this.
7640 * tests/test-quotearg.c (result_strings, inputs, results_g)
7641 (flag_results, locale_results): Test it by adding a new string to
7643 (compare_strings): Test new string.
7645 2008-02-13 Eric Blake <ebb9@byu.net>
7647 Avoid trigraph quoting in default output.
7648 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
7649 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
7650 unless explicitly requested.
7651 * tests/test-quotearg.c (flag_results, main): Add additional tests.
7653 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
7655 Don't rely on signed integer overflowing to negative value.
7656 * lib/getugroups.c (getugroups): Include <limits.h>.
7657 Instead, compare against INT_MAX, and increment only if the test passes.
7659 2008-02-13 Jim Meyering <meyering@redhat.com>
7660 and Eric Blake <ebb9@byu.net>
7662 Avoid shadowing warning and compile errors on Linux.
7663 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
7664 forwarding macros on Linux.
7665 (dcgettext): Define a stub, for Linux.
7666 (results_g, main): Avoid warnings.
7668 2008-02-12 Eric Blake <ebb9@byu.net>
7670 Silence warning in last patch.
7671 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
7673 Quotearg part 4: add tests, fix c-maybe colon quoting.
7674 * lib/quotearg.h: Improve documentation.
7675 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
7676 escapes when adding outer quotes. When quoting trigraphs, use
7677 valid C notation. When quoting NUL, omit extra characters if next
7678 character is not digit. Alter prototype.
7679 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
7681 * modules/quotearg-tests: New module.
7682 * tests/test-quotearg.c: New test.
7684 2008-02-07 Eric Blake <ebb9@byu.net>
7686 Quotearg part 3: add flag to control outer quote elision.
7687 * lib/quotearg.h (c_maybe_quoting_style): New style.
7688 (enum quoting_flags): Better documentation of flags.
7689 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
7691 (quotearg_buffer_restyled): Handle new flag to elide outer
7694 Quotearg part 2: add flag that can control NUL elision.
7695 * lib/quotearg.h (set_quoting_flags): New prototype.
7696 * lib/quotearg.c (struct quoting_options): Add flag field.
7697 (set_quoting_flags): New function.
7698 (quotearg_buffer_restyled): Add flags parameter.
7699 (quotearg_alloc_mem): Set the flag if length cannot be returned.
7700 (quotearg_n_options): Set the flag, since length cannot be
7702 (quoting_options_from_style): Default flags correctly.
7704 Quotearg part 1: more wrappers, restore quotearg_char state.
7705 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
7706 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
7707 (quotearg_colon_mem): New wrappers.
7708 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
7709 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
7711 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
7712 (quotearg_colon_mem): New functions.
7714 2008-02-11 Bruno Haible <bruno@clisp.org>
7716 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
7717 library in the current directory: it does not work with parallel make.
7718 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7720 2008-02-11 Bruno Haible <bruno@clisp.org>
7722 * .gitattributes: New file.
7724 2008-02-11 Jim Meyering <meyering@redhat.com>
7726 useless-if-before-free: Fix reversed exit values.
7727 * build-aux/useless-if-before-free: Use correct values
7728 for EXIT_MATCH and EXIT_NO_MATCH.
7730 * build-aux/useless-if-before-free: Close stdout carefully.
7732 2008-02-10 Bruno Haible <bruno@clisp.org>
7734 New module 'git-merge-changelog'.
7735 * modules/git-merge-changelog: New file.
7736 * lib/git-merge-changelog.c: New file.
7738 2008-02-10 Jim Meyering <meyering@redhat.com>
7740 useless-if-before-free: New option: --list (-l).
7742 useless-if-before-free: Don't exit immediately upon open failure.
7743 * build-aux/useless-if-before-free: Exit 2 for errors.
7744 Upon failure to open a file, don't exit immediately.
7745 Rather, just warn and continue with any remaining files.
7747 2008-02-10 Bruno Haible <bruno@clisp.org>
7749 New abstract list operation 'node_set_value'.
7750 * lib/gl_list.h (gl_list_node_set_value): New function.
7751 (struct gl_list_implementation): New field node_set_value.
7752 * lib/gl_list.c (gl_list_node_set_value): New function.
7753 * lib/gl_array_list.c (gl_array_node_set_value): New function.
7754 (gl_array_list_implementation): Update.
7755 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
7756 (gl_carray_list_implementation): Update.
7757 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
7758 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
7759 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
7760 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
7761 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
7762 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
7763 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7765 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
7766 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
7767 (gl_sublist_list_implementation): Update.
7769 2008-02-10 Bruno Haible <bruno@clisp.org>
7771 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
7772 Needed when ELEMENT is #defined to 'some_type *'.
7774 2008-02-10 Jim Meyering <meyering@redhat.com>
7776 New script and module: useless-if-before-free
7777 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
7778 * build-aux/useless-if-before-free: New file.
7779 * modules/useless-if-before-free: New file.
7781 * build-aux/gitlog-to-changelog: Use committer date, not author date.
7783 xstrtol_error: Fix typo.
7784 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
7785 s/exit_failure/exit_status/.
7787 2008-02-09 Jim Meyering <meyering@redhat.com>
7789 New script and module: gitlog-to-changelog
7790 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
7791 * modules/gitlog-to-changelog: New file.
7792 * build-aux/gitlog-to-changelog: New file.
7794 2008-02-08 Jim Meyering <meyering@redhat.com>
7796 Avoid two "parameter unused" warnings.
7797 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
7800 Use "git COMMAND", not "git-COMMAND".
7801 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
7802 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
7803 * build-aux/git-version-gen: Use "git status", not "git-status".
7805 2008-02-07 Bruno Haible <bruno@clisp.org>
7807 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
7808 Avoids a crash on Windows Vista.
7809 Reported by Adam Strzelecki <ono@java.pl> via
7810 Simon Josefsson <simon@josefsson.org>.
7812 2008-02-06 Bruno Haible <bruno@clisp.org>
7814 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
7815 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
7816 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
7817 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
7818 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7819 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7820 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
7821 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
7822 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7823 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7824 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7825 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7826 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7827 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7828 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7829 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
7831 * tests/test-snprintf-posix.h (test_function): Likewise.
7832 * tests/test-sprintf-posix.h (test_function): Likewise.
7833 * tests/test-vasprintf-posix.c (test_function): Likewise.
7834 * doc/posix-functions/fprintf.texi: Update.
7835 * doc/posix-functions/printf.texi: Update.
7836 * doc/posix-functions/snprintf.texi: Update.
7837 * doc/posix-functions/sprintf.texi: Update.
7838 * doc/posix-functions/vfprintf.texi: Update.
7839 * doc/posix-functions/vprintf.texi: Update.
7840 * doc/posix-functions/vsnprintf.texi: Update.
7841 * doc/posix-functions/vsprintf.texi: Update.
7842 Reported by Peter Fales <psfales@alcatel-lucent.com>.
7844 2008-02-06 Bruno Haible <bruno@clisp.org>
7846 Fix bug introduced on 2008-01-26.
7847 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
7849 2008-02-06 Bruno Haible <bruno@clisp.org>
7851 Fix bug introduced on 2007-06-10.
7852 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
7853 !NEED_PRINTF_FLAG_ZERO.
7855 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
7857 getloadavg: use libperfstat on AIX5
7858 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
7860 2008-02-03 Bruno Haible <bruno@clisp.org>
7862 * lib/diffseq.h: Add comments about required #includes.
7863 Reported by Michael Biggs <gnulib@doubleplum.net>.
7865 2008-02-01 Bruno Haible <bruno@clisp.org>
7867 * users.txt: Add gnuit.
7869 2008-01-31 Bruno Haible <bruno@clisp.org>
7871 * lib/md4.c (set_uint32): Mark as inline.
7872 * lib/md5.c (set_uint32): Likewise.
7873 * lib/sha1.c (set_uint32): Likewise.
7874 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
7875 * m4/md5.m4 (gl_MD5): Likewise.
7876 * m4/sha1.m4 (gl_SHA1): Likewise.
7878 2008-01-31 Jim Meyering <meyering@redhat.com>
7880 Use "sizeof VAR", rather than a literal "4".
7881 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
7882 * lib/md4.c (md4_read_ctx): Likewise.
7883 * lib/sha1.c (sha1_read_ctx): Likewise.
7885 2008-01-31 Simon Josefsson <simon@josefsson.org>
7887 * tests/test-sha1.c: New file, based on test-md5.c.
7889 * modules/crypto/sha1-tests: New file.
7891 2008-01-31 Simon Josefsson <simon@josefsson.org>
7893 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
7895 2008-01-31 Jim Meyering <meyering@redhat.com>
7897 Prefer "sizeof v" over the equivalent "4".
7898 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
7899 * lib/md5.c (set_uint32): Likewise.
7900 * lib/sha1.c (set_uint32): Likewise.
7902 2008-01-31 Simon Josefsson <simon@josefsson.org>
7904 * lib/sha1.c (set_uint32): Mark function as static.
7906 2008-01-31 Simon Josefsson <simon@josefsson.org>
7908 md2: clarify comments to say that alignment is not required.
7909 * lib/md2.h: Remove warning about alignment in comment.
7910 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
7911 never been required.
7913 2008-01-31 Simon Josefsson <simon@josefsson.org>
7915 md4: adapt alignment constraint fix from sha1.
7916 * lib/md4.c (set_uint32): New function, from sha1.c
7917 (md4_read_ctx): Use it.
7918 (md4_finish_ctx): Doc fix.
7919 * lib/md4.h: Doc fix.
7921 2008-01-31 Simon Josefsson <simon@josefsson.org>
7923 md5: adapt alignment constraint fix from sha1.
7924 * lib/md5.c (set_uint32): New function, from sha1.c
7925 (md5_read_ctx): Use it.
7926 (md5_finish_ctx): Doc fix.
7927 * lib/md5.h: Doc fix.
7929 2008-01-30 Peter Palfrader <weasel@debian.org>
7931 sha1: remove the result buffer alignment constraint
7932 * lib/sha1.c (set_uint32): New function.
7933 (sha1_read_ctx): Rewrite to remove the result buffer alignment
7935 (sha1_finish_ctx): Remove comment warning about alignment constraint.
7936 * lib/sha1.h: Likewise.
7938 2008-01-30 Andreas Schwab <schwab@suse.de>
7939 Bruno Haible <bruno@clisp.org>
7941 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
7942 correct definition of LDBL_MIN_EXP.
7944 2008-01-30 Karl Berry <karl@gnu.org>
7946 * config/srclist-update: try to preserve x bit on updates.
7947 * config/srclistvars.sh: update for karl.
7949 2008-01-29 Jim Meyering <meyering@redhat.com>
7951 vasnprintf.c: Avoid warning about unused label
7952 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
7953 "overflow" label definition and associated code with the
7954 same cpp condition that guards the sole use of that label.
7956 2008-01-26 Bruno Haible <bruno@clisp.org>
7958 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7959 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
7960 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
7961 * lib/isnanl-nolibm.h (isnanl): Likewise.
7962 Reported by Paul Eggert <eggert@cs.ucla.edu>.
7964 2008-01-26 Bruno Haible <bruno@clisp.org>
7966 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
7967 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
7969 2008-01-26 Bruno Haible <bruno@clisp.org>
7971 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
7972 GCC >= 4.0 built-in.
7973 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
7975 2008-01-26 Bruno Haible <bruno@clisp.org>
7977 Rename isnan, applicable to 'double' only, to isnand.
7978 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
7979 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
7980 (configure.ac): Update.
7981 (Include): Replace "isnan.h" with "isnand.h".
7982 * m4/isnand.m4: Renamed from m4/isnan.m4.
7983 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
7984 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
7986 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
7987 instead of HAVE_ISNAN_IN_LIBC.
7988 (isnand): Renamed from isnan.
7989 * lib/isnand.c: New file.
7990 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
7991 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
7992 (Makefile.am): Update.
7993 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
7994 Include isnand.h instead of isnan.h.
7995 (main): Test isnand instead of isnan.
7996 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
7998 * modules/frexp (Depends-on): Likewise.
7999 * modules/frexp-tests (Depends-on): Likewise.
8000 * modules/frexp-nolibm (Depends-on): Likewise.
8001 * modules/frexp-nolibm-tests (Depends-on): Likewise.
8002 * modules/isfinite (Depends-on): Likewise.
8003 * modules/round-tests (Depends-on): Likewise.
8004 * modules/signbit (Depends-on): Likewise.
8005 * modules/signbit-tests (Depends-on): Likewise.
8006 * modules/snprintf-posix (Depends-on): Likewise.
8007 * modules/sprintf-posix (Depends-on): Likewise.
8008 * modules/trunc-tests (Depends-on): Likewise.
8009 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8010 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8011 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8012 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8013 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8014 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8015 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8016 * modules/vasnprintf-posix (Depends-on): Likewise.
8017 * modules/vasprintf-posix (Depends-on): Likewise.
8018 * modules/vfprintf-posix (Depends-on): Likewise.
8019 * modules/vsnprintf-posix (Depends-on): Likewise.
8020 * modules/vsprintf-posix (Depends-on): Likewise.
8021 * lib/frexp.c: Include isnand.h instead of isnan.h.
8022 (ISNAN): Set to isnand instead of isnan.
8023 * lib/isfinite.c: Include isnand.h instead of isnan.h.
8024 (gl_isfinited): Use isnand instead of isnan.
8025 * lib/signbitd.c: Include isnand.h instead of isnan.h.
8026 (gl_signbitd): Use isnand instead of isnan.
8027 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
8028 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
8029 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
8030 (main): Use isnand instead of isnan.
8031 * tests/test-round1.c: Include isnand.h.
8032 (main): Use isnand instead of isnan.
8033 * tests/test-round2.c: Include isnand.h instead of isnan.h.
8034 (ISNAN): Set to isnand instead of isnan.
8035 * tests/test-trunc1.c: Include isnand.h.
8036 (main): Use isnand instead of isnan.
8037 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
8038 (equal): Use isnand instead of isnan.
8039 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
8041 * NEWS: Mention the change.
8043 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
8044 Bruno Haible <bruno@clisp.org>
8046 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
8047 the GCC builtins for signbits are present and set
8048 REPLACE_SIGNBIT_USING_GCC if so.
8049 * lib/math.in.h (signbit): Define using GCC builtins if
8050 REPLACE_SIGNBIT_USING_GCC is set.
8051 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
8052 REPLACE_SIGNBIT_USING_GCC.
8053 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
8055 2008-01-25 Jim Meyering <meyering@redhat.com>
8057 Prefer <config.h> over "config.h". See autoconf doc for explanation.
8058 * lib/poll.c: Include <config.h>, not "config.h".
8059 * tests/test-getaddrinfo.c: Likewise.
8061 2008-01-25 Simon Josefsson <simon@josefsson.org>
8063 * modules/sockets-tests: New file.
8065 2008-01-24 Simon Josefsson <simon@josefsson.org>
8067 * modules/sockets: New module, can be used to call WSA_Startup and
8068 WSA_Cleanup when needed.
8070 * lib/sockets.h, lib/sockets.c: New files.
8072 * m4/sockets.m4: New file.
8074 * tests/test-sockets.c: New file.
8076 2008-01-19 Bruno Haible <bruno@clisp.org>
8078 * doc/posix-headers: Renamed from doc/headers.
8079 * doc/posix-functions: Renamed from doc/functions.
8080 * doc/gnulib.texi: Update.
8082 2008-01-19 Bruno Haible <bruno@clisp.org>
8084 * doc/glibc-functions/strcasestr.texi: Include contents of
8085 doc/functions/strcasestr.texi, fixing the list of platforms.
8086 * doc/functions/strcasestr.texi: Remove file.
8088 2008-01-19 Bruno Haible <bruno@clisp.org>
8090 * doc/glibc-functions/memmem.texi: Include contents of
8091 doc/functions/memmem.texi.
8092 * doc/functions/memmem.texi: Remove file.
8094 2008-01-18 Bruno Haible <bruno@clisp.org>
8096 * doc/glibc-functions/*.texi: New files.
8097 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
8098 to use the new files.
8100 2008-01-17 Bruno Haible <bruno@clisp.org>
8102 * tests/test-gethostname.c (main): Fix printf statement.
8104 2008-01-17 Simon Josefsson <simon@josefsson.org>
8106 * modules/gethostname-tests: New file.
8108 * tests/test-gethostname.c: New file.
8110 2008-01-17 Simon Josefsson <simon@josefsson.org>
8112 * lib/gethostname.c: Include string.h unconditionally, strncpy is
8113 used by the UNAME case. Reported by Bruno Haible
8116 2008-01-17 Eric Blake <ebb9@byu.net>
8118 Convert c-strcasestr to be more efficient.
8119 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
8120 (Depends-on): Add c-strcase, remove malloca, strnlen.
8121 * tests/test-c-strcasestr.c (main): Enhance test.
8122 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
8124 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
8126 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
8127 Use it in creating po/Makevars.
8129 2008-01-15 Simon Josefsson <simon@josefsson.org>
8131 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
8132 Applications that requires it should initialize libgcrypt
8135 2008-01-16 Simon Josefsson <simon@josefsson.org>
8137 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
8139 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
8141 Fix problem with getdate on mingw32 reported by Simon Josefsson
8142 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
8143 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
8144 tzname", when deciding whether to declare tzname.
8145 * lib/strftime.c (tzname): Likewise.
8147 2008-01-15 Bruno Haible <bruno@clisp.org>
8149 Work around a MacOS X 10.5 bug in frexpl().
8150 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
8151 * doc/functions/frexpl.texi: Document the bug.
8152 Reported by Elias Pipping <pipping@gentoo.org>.
8154 2008-01-14 Eric Blake <ebb9@byu.net>
8156 Touch up previous patch.
8157 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
8158 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
8160 Convert strcasestr module to use Two-Way algorithm.
8161 * modules/strcasestr-simple: New module, based on the old
8162 strcasestr, but with Two-Way rather than KMP.
8163 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
8164 * lib/string.in.h (rpl_strcasestr): Declare.
8165 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
8167 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
8168 * modules/string (Makefile.am): Support strcasestr.
8169 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
8170 * modules/strcasestr-tests (Depends-on): Check for alarm.
8171 * tests/test-strcasestr.c: Augment test.
8172 * lib/str-two-way.h: Clean up stray macro.
8173 * NEWS: Document new module.
8174 * MODULES.html.sh (string handling): Likewise.
8175 * doc/functions/strcasestr.texi: New file.
8176 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
8177 here, since it is not a POSIX function.
8179 2008-01-14 Colin Watson <cjwatson@debian.org>
8180 Bruno Haible <bruno@clisp.org>
8182 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
8183 works fine; if not, set REPLACE_STRSIGNAL.
8184 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
8185 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8187 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
8188 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
8189 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
8191 2008-01-14 Bruno Haible <bruno@clisp.org>
8193 * modules/strsignal (Include): Change to <string.h>.
8195 2008-01-14 Colin Watson <cjwatson@debian.org>
8197 * modules/argp (Notice): Add a notice recommending to change
8199 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
8201 2008-01-13 Colin Watson <cjwatson@debian.org>
8203 * modules/strsignal-tests: New file.
8204 * tests/test-strsignal.c: New file.
8206 * lib/strsignal.c: New file, from glibc with modifications.
8207 * lib/siglist.h: New file, from glibc with modifications.
8208 * lib/string.in.h (strsignal): New declaration.
8209 * m4/strsignal.m4: New file.
8210 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8211 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
8212 * modules/strsignal: New file.
8213 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
8214 HAVE_DECL_STRSIGNAL.
8216 2008-01-13 Bruno Haible <bruno@clisp.org>
8218 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
8219 locale encoding is not ASCII. Needed for OpenBSD 4.0.
8220 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8221 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8223 2008-01-13 Bruno Haible <bruno@clisp.org>
8225 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
8226 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
8227 * lib/argp.h (__attribute__): Likewise.
8228 * lib/c-stack.c (__attribute__): Likewise.
8229 * lib/error.h (__attribute__): Likewise.
8230 * lib/fts.c (__attribute__): Likewise.
8231 * lib/openat.h (__attribute__): Likewise.
8232 * lib/stdio.in.h (__attribute__): Likewise.
8233 * lib/string.in.h (__attribute__): Likewise.
8234 * lib/utimens.c (__attribute__): Likewise.
8235 * lib/vasnprintf.h (__attribute__): Likewise.
8236 * lib/xalloc.h (__attribute__): Likewise.
8237 * lib/xprintf.h (__attribute__): Likewise.
8238 * lib/xstrtol.h (__attribute__): Likewise.
8239 * lib/xvasprintf.h (__attribute__): Likewise.
8241 2008-01-12 Bruno Haible <bruno@clisp.org>
8243 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
8244 * doc/glibc-headers/a.out.texi: New file.
8245 * doc/glibc-headers/aliases.texi: New file.
8246 * doc/glibc-headers/alloca.texi: New file.
8247 * doc/glibc-headers/ar.texi: New file.
8248 * doc/glibc-headers/argp.texi: New file.
8249 * doc/glibc-headers/argz.texi: New file.
8250 * doc/glibc-headers/byteswap.texi: New file.
8251 * doc/glibc-headers/crypt.texi: New file.
8252 * doc/glibc-headers/endian.texi: New file.
8253 * doc/glibc-headers/envz.texi: New file.
8254 * doc/glibc-headers/err.texi: New file.
8255 * doc/glibc-headers/error.texi: New file.
8256 * doc/glibc-headers/execinfo.texi: New file.
8257 * doc/glibc-headers/fpu_control.texi: New file.
8258 * doc/glibc-headers/fstab.texi: New file.
8259 * doc/glibc-headers/fts.texi: New file.
8260 * doc/glibc-headers/getopt.texi: New file.
8261 * doc/glibc-headers/ieee754.texi: New file.
8262 * doc/glibc-headers/ifaddrs.texi: New file.
8263 * doc/glibc-headers/libintl.texi: New file.
8264 * doc/glibc-headers/mcheck.texi: New file.
8265 * doc/glibc-headers/mntent.texi: New file.
8266 * doc/glibc-headers/obstack.texi: New file.
8267 * doc/glibc-headers/paths.texi: New file.
8268 * doc/glibc-headers/printf.texi: New file.
8269 * doc/glibc-headers/pty.texi: New file.
8270 * doc/glibc-headers/resolv.texi: New file.
8271 * doc/glibc-headers/shadow.texi: New file.
8272 * doc/glibc-headers/sysexits.texi: New file.
8273 * doc/glibc-headers/ttyent.texi: New file.
8275 2008-01-12 Jim Meyering <meyering@redhat.com>
8277 announce-gen: emit Gnulib's git-based version string.
8278 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
8279 New option --gnulib-version=V, where V is expected to be
8280 the output of running git describe in the gnulib directory.
8281 (get_tool_versions): Request feedback on xdelta. I suspect it's
8282 not useful, and plan to stop publishing an xdelta file with each
8285 * build-aux/announce-gen: Also check for lzma-compressed files.
8287 2008-01-11 Bruno Haible <bruno@clisp.org>
8289 * tests/test-memmem.c (main): Increase maximum allowed time.
8290 * tests/test-strstr.c (main): Likewise.
8292 2008-01-11 Bruno Haible <bruno@clisp.org>
8294 * doc/functions/memmem.texi: Add more precisions about platforms.
8295 * doc/functions/strstr.texi: Likewise.
8297 2008-01-10 Eric Blake <ebb9@byu.net>
8299 * m4/strstr.m4: Delete cruft from copy-n-paste.
8300 Reported by Bruno Haible.
8302 2008-01-10 Bruno Haible <bruno@clisp.org>
8304 Make c-strstr rely on strstr.
8305 * lib/c-strstr.c: Don't include str-kmp.h.
8306 (c_strstr): Define in terms of strstr.
8307 * modules/c-strstr (Files): Remove lib/str-kmp.h.
8308 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
8310 2008-01-10 Bruno Haible <bruno@clisp.org>
8312 * doc/gnulib.texi (String Functions in C Locale): New section.
8313 * doc/c-ctype.texi: New file.
8314 * doc/c-strcase.texi: New file.
8315 * doc/c-strcaseeq.texi: New file.
8316 * doc/c-strcasestr.texi: New file.
8317 * doc/c-strstr.texi: New file.
8318 * doc/c-strtod.texi: New file.
8319 * doc/c-strtold.texi: New file.
8321 2008-01-10 Eric Blake <ebb9@byu.net>
8323 * lib/relocatable.h: Fix a comment.
8325 2008-01-10 Eric Blake <ebb9@byu.net>
8327 Share two-way algorithm.
8328 * lib/str-two-way.h: New file, merged from...
8329 * lib/memmem.c: ...here...
8330 * lib/strstr.c: ...and here.
8331 * modules/memmem (Files): Use it.
8332 * modules/strstr (Files): Likewise.
8334 Avoid quadratic strstr implementations.
8335 * lib/strstr.c: New file.
8336 * m4/strstr.m4: Likewise.
8337 * modules/strstr: Likewise.
8338 * modules/strstr-tests: Likewise.
8339 * tests/test-strstr.c: Likewise.
8340 * lib/string.in.h (rpl_strstr): Declare.
8341 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
8342 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
8343 * modules/string (Makefile.am): Likewise.
8344 * MODULES.html.sh (string handling): Mention new module.
8345 * doc/functions/strstr.texi (strstr): Document the bug.
8347 2008-01-10 Bruno Haible <bruno@clisp.org>
8349 * lib/relocatable.h (relocate): State whether result is freshly
8351 * lib/relocatable.c (relocate): Return a freshly allocated string
8352 instead of a pointer to a privately held string.
8353 Reported by Sylvain Beucler <beuc@gnu.org>.
8355 2008-01-10 Colin Watson <cjwatson@debian.org>
8357 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
8360 2008-01-09 Bruno Haible <bruno@clisp.org>
8362 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
8364 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
8365 if it's only a guess.
8366 * modules/memmem: Simplify by depending on memmem-simple.
8368 2008-01-09 Bruno Haible <bruno@clisp.org>
8370 Work around OpenBSD 4.0 tdelete() bug.
8371 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
8372 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
8373 macros and don't redefine the enum values.
8374 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
8375 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
8376 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
8378 2008-01-09 Bruno Haible <bruno@clisp.org>
8380 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
8381 (main): Don't perform the tests if setlocale did not install a UTF-8
8382 locale. Needed on OpenBSD 4.0.
8383 * modules/wcwidth-tests (Depends-on): Add localcharset.
8385 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
8387 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
8388 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
8389 * NEWS: announce this.
8390 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
8392 2008-01-09 Simon Josefsson <simon@josefsson.org>
8393 and Eric Blake <ebb9@byu.net>
8395 Add memmem-simple module.
8396 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
8397 (gl_FUNC_MEMMEM): Separate performance from presence checks.
8398 * modules/memmem-simple: New file.
8399 * modules/memmem (Description): Tweak.
8400 * MODULES.html.sh (string handling): Mention new module.
8401 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
8402 addressed by memmem-simple.
8403 * NEWS: Document the difference.
8405 2008-01-09 Eric Blake <ebb9@byu.net>
8407 Give gcc some memmem optimization hints.
8408 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
8409 (strcasestr): Declare as pure.
8410 * modules/memmem (Maintainer): Claim my implementation.
8412 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8414 Support AIX 6.1 and higher.
8415 * build-aux/config.libpath: Likewise.
8416 * build-aux/config.rpath: Likewise.
8418 2008-01-08 Jim Meyering <meyering@redhat.com>
8419 Bruno Haible <bruno@clisp.org>
8421 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
8422 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
8423 Reported by Peter Fales in
8424 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
8426 2008-01-08 Bruno Haible <bruno@clisp.org>
8428 * modules/unictype/category-of (Depends-on): Add
8429 unictype/category-none.
8430 * modules/unictype/category-and-tests (Depends-on): Add
8431 unictype/category-{L,N,Lu,Nd}.
8432 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
8433 * modules/unictype/category-or-tests (Depends-on): Add
8434 unictype/category-{L,N}.
8435 * modules/unictype/category-name-tests (Depends-on): Add
8436 unictype/category-{Z,Nl}.
8437 Reported by Simon Josefsson.
8439 2008-01-08 Bruno Haible <bruno@clisp.org>
8441 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
8443 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
8444 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
8445 Reported by Peter Miller <millerp@canb.auug.org.au>.
8447 2008-01-08 Eric Blake <ebb9@byu.net>
8449 Rewrite memmem to guarantee linear complexity without malloc.
8450 * lib/memmem.c (memmem): Use Two-Way rather than
8451 Knuth-Morris-Pratt, to allow O(1) space usage.
8452 (critical_factorization, two_way_short_needle)
8453 (two_way_long_needle): New functions.
8454 (knuth_morris_pratt): Delete.
8455 * modules/memmem (Depends-on): No longer need malloca or stdbool.
8457 * tests/test-memmem.c (main): Add tests for periodic needle and
8458 sublinear performance.
8459 * doc/functions/memmem.texi (memmem): Document other deficiencies
8460 in cygwin and older glibc.
8462 2008-01-08 Bruno Haible <bruno@clisp.org>
8464 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
8467 2008-01-08 Mike Frysinger <vapier@gentoo.org>
8469 Add a configure time option: --disable-acl.
8470 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
8473 2008-01-06 Simon Josefsson <simon@josefsson.org>
8475 * tests/test-localename.c: Don't include obsolete "setenv.h".
8477 * modules/localename-tests (Depends-on): Need unsetenv.
8479 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8481 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
8483 2008-01-06 Colin Watson <cjwatson@debian.org>
8485 * users.txt: Add man-db.
8487 2008-01-07 Bruno Haible <bruno@clisp.org>
8489 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
8490 previous section name.
8492 2008-01-07 Bruno Haible <bruno@clisp.org>
8494 * lib/progname.c (set_program_name): Don't strip off a leading
8495 "lt-" prefix outside a .libs directory.
8496 Suggested by Paul Eggert.
8498 2008-01-01 Sylvain Beucler <beuc@gnu.org>
8499 Bruno Haible <bruno@clisp.org>
8501 Improve memory cleanup in 'relocatable' module.
8502 * lib/relocatable.h (compute_curr_prefix): Change return type to
8504 * lib/relocatable.c (compute_curr_prefix): Change return type to
8505 'char *'. Free curr_installdir after use.
8506 (relocate): Free curr_prefix_better after use.
8507 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
8509 2008-01-01 Bruno Haible <bruno@clisp.org>
8511 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
8512 failure on older glibc systems.
8513 Reported by Peter Fales <psfales@alcatel-lucent.com>.
8515 2008-01-05 Eric Blake <ebb9@byu.net>
8517 Avoid quadratic system memmem.
8518 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
8519 Reported by Ralf Wildenhues.
8521 Fix memmem test for mingw.
8522 * modules/memmem-tests (configure.ac): Check for alarm.
8523 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
8525 * doc/functions/memmem.texi: New file.
8526 * doc/gnulib.texi (Function Substitutes): Add memmem.
8527 Reported by Bruno Haible.
8529 2008-01-04 Bruno Haible <bruno@clisp.org>
8531 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
8532 Require gl_HEADER_STRINGS_H_DEFAULTS, not
8533 gl_HEADER_STRING_H_DEFAULTS.
8535 2008-01-04 Eric Blake <ebb9@byu.net>
8537 Shorten duration of memmem test.
8538 * tests/test-memmem.c (main): Use alarm to declare failure if test
8540 Reported by Ralf Wildenhues.
8542 2007-12-21 Simon Josefsson <simon@josefsson.org>
8544 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
8545 string, needed by strerror.
8547 2008-01-03 Colin Watson <cjwatson@debian.org>
8548 Bruno Haible <bruno@clisp.org>
8550 * doc/gnulib-tool.texi (Localization): New section.
8552 2008-01-02 Bruno Haible <bruno@clisp.org>
8554 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
8555 variables to 'unsigned char *' type.
8556 Reported by Paul Eggert.
8558 2008-01-02 Jim Meyering <jim@meyering.net>
8560 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
8562 2007-12-31 Jim Meyering <jim@meyering.net>
8564 Avoid use of private FTS type name.
8565 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
8567 2007-12-30 Karl Berry <karl@gnu.org>
8569 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
8570 work around defect in Texinfo and/or the standalone Info browser.
8572 2007-12-30 Bruno Haible <bruno@clisp.org>
8574 Unify 5 copies of the KMP code.
8575 * lib/str-kmp.h: New file.
8576 * lib/c-strcasestr.c: Include str-kmp.h.
8577 (knuth_morris_pratt): Remove function.
8578 (c_strcasestr): Update.
8579 * lib/c-strstr.c: Include str-kmp.h.
8580 (knuth_morris_pratt): Remove function.
8581 (c_strcasestr): Update.
8582 * lib/mbscasestr.c: Include str-kmp.h.
8583 (knuth_morris_pratt_unibyte): Remove function.
8584 * lib/mbsstr.c: Include str-kmp.h.
8585 (knuth_morris_pratt_unibyte): Remove function.
8586 * lib/strcasestr.c: Include str-kmp.h.
8587 (knuth_morris_pratt): Remove function.
8588 (strcasestr): Update.
8589 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
8590 * modules/c-strstr (Files): Likewise.
8591 * modules/mbscasestr (Files): Likewise.
8592 * modules/mbsstr (Files): Likewise.
8593 * modules/strcasestr (Files): Likewise.
8594 Suggested by Paul Eggert.
8596 2007-12-30 Bruno Haible <bruno@clisp.org>
8598 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
8601 2007-12-30 Bruno Haible <bruno@clisp.org>
8603 * lib/xmalloca.h: Include xalloc.h.
8604 (xnmalloca): New macro.
8606 2007-12-30 Bruno Haible <bruno@clisp.org>
8608 * lib/malloca.h (nmalloca): New macro.
8609 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
8610 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
8611 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
8612 knuth_morris_pratt_multibyte): Likewise.
8613 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
8614 knuth_morris_pratt_multibyte): Likewise.
8615 * lib/memmem.c (knuth_morris_pratt): Likewise.
8616 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
8618 2007-12-25 Bruno Haible <bruno@clisp.org>
8620 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
8621 * lib/glob.c: Don't include openat.h.
8622 (link_exists2_p): Add back the code that deals with the
8623 !GLOB_ALTDIRFUNC case.
8624 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
8625 let it do the filename concatenation.
8626 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
8627 * modules/glob (Depends-on): Remove openat.
8629 2007-12-31 Bruno Haible <bruno@clisp.org>
8631 * modules/dirfd (License): Change to LGPLv2+.
8632 Approved by Jim Meyering.
8634 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
8636 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
8637 when multiplying M by sizeof (size_t).
8639 2007-12-10 Martin Lambers <marlam@marlam.de>
8641 Override getpagesize on mingw.
8642 * lib/getpagesize.c: New file.
8643 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
8644 * modules/getpagesize (Files): Add lib/getpagesize.c.
8645 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
8646 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8647 REPLACE_GETPAGESIZE.
8648 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
8650 2007-12-25 Bruno Haible <bruno@clisp.org>
8652 * modules/localcharset (Notice): New field.
8653 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
8654 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8656 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
8657 Bruno Haible <bruno@clisp.org>
8659 Avoid using the syntax symbol() in formatted documentation.
8660 * MODULES.html.sh (func_module): When replacing symbol() with a
8661 hyperlink, remove the parentheses. Show an error if some remain.
8662 Recognize and render the '...' syntax.
8663 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
8664 Rework. Add paragraph about GCC's inlining.
8665 * doc/alloca.texi: Likewise.
8666 * doc/error.texi: Remove parentheses from symbol reference.
8667 * doc/gnulib-intro.texi: Likewise.
8668 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
8669 * modules/fnmatch (Description): Reword to say "the ... function".
8670 * modules/full-read (Description): Likewise.
8671 * modules/full-write (Description): Likewise.
8672 * modules/safe-read (Description): Likewise.
8673 * modules/safe-write (Description): Likewise.
8674 * modules/strchrnul (Description): Likewise.
8675 * modules/trim (Description): Likewise.
8676 * modules/error (Description): Remove parentheses from symbol
8678 * modules/verror (Description): Likewise.
8679 Reported by Karl Berry.
8681 2007-12-25 Bruno Haible <bruno@clisp.org>
8683 Fixup after 2007-10-16 commit.
8684 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
8686 2007-12-24 Bruno Haible <bruno@clisp.org>
8688 Make --enable-relocatable work with DESTDIR.
8689 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
8690 to compute installdir from destprog.
8691 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
8692 also set the RELOC_DESTDIR variable.
8693 Reported by Левашев Иван <octagram@bluebottle.com>.
8695 2007-12-24 Bruno Haible <bruno@clisp.org>
8697 Fix link error due to xalloc_die().
8698 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
8700 * lib/relocwrapper.c: Update comments.
8701 * build-aux/install-reloc: Remove xreadlink.c from file list.
8702 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
8704 Reported by Левашев Иван <octagram@bluebottle.com>.
8706 2007-12-24 Bruno Haible <bruno@clisp.org>
8708 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
8709 * lib/setenv.h: Remove file.
8710 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
8712 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
8713 (Depends-on): Add stdlib.
8714 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
8716 (Include): Replace setenv.h with <stdlib.h>.
8717 * modules/unsetenv: New file.
8718 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
8719 * lib/unsetenv.c: Include <stdlib.h> first.
8720 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
8721 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
8722 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
8723 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
8724 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
8725 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8726 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
8727 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8728 * doc/functions/unsetenv.texi: Update.
8729 * modules/xsetenv (Depends-on): Add unsetenv.
8730 * modules/getdate (Depends-on): Likewise.
8731 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
8732 * lib/xsetenv.c: Don't include setenv.h.
8733 * lib/getdate.y: Likewise.
8734 * lib/relocwrapper.c: Likewise.
8735 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
8736 (Depends-on): Add stdlib.
8737 * NEWS: Mention the changes.
8738 Reported by Левашев Иван <octagram@bluebottle.com>.
8740 2007-12-23 Bruno Haible <bruno@clisp.org>
8742 * lib/memmem.c (memmem): Use lowercase variable names. Tab
8745 2007-12-23 Bruno Haible <bruno@clisp.org>
8747 * lib/c-strcasestr.c: Add more comments.
8748 * lib/c-strstr.c: Likewise.
8749 * lib/mbscasestr.c: Likewise.
8750 * lib/mbsstr.c: Likewise.
8751 * lib/strcasestr.c: Likewise.
8752 * lib/memmem.c: Likewise.
8754 2007-12-23 Bruno Haible <bruno@clisp.org>
8756 * tests/test-memmem.c: Include <string.h> first.
8758 2007-12-22 Bruno Haible <bruno@clisp.org>
8760 * gnulib-tool (func_create_testdir): Change $auxdir while generating
8761 the contents of $testsbase.
8762 Reported by Ralf Wildenhues.
8764 2007-12-22 Bruno Haible <bruno@clisp.org>
8766 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
8767 two variables local_ldadd_before, local_ldadd_last.
8769 2007-12-20 Eric Blake <ebb9@byu.net>
8771 Work around circular library issue when cross-compiling.
8772 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
8773 that progname.o does not need to pull in rpl_memcmp.
8775 2007-12-19 Eric Blake <ebb9@byu.net>
8777 Fix memmem to avoid O(n^2) worst-case complexity.
8778 * lib/memmem.c (knuth_morris_pratt): New function.
8779 (memmem): Use it if first few naive iterations fail.
8780 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
8781 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
8782 * modules/memchr (License): Likewise.
8783 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
8785 * tests/test-memmem.c: Rewrite, borrowing ideas from
8786 test-mbsstr1.c; the old version wouldn't even compile!
8787 * modules/memmem-tests: New file.
8788 * lib/string.in.h (rpl_memmem): Add declaration.
8789 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
8790 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
8793 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
8795 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
8796 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
8797 before any system include files, and undef after them all. This
8798 should fix a problem on VMS reported by John E. Malmberg in
8799 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
8801 2007-12-17 Eric Blake <ebb9@byu.net>
8803 Revert addition of verify, for BSD/OS.
8804 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
8805 can't handle large files, for the sake of obsolete platforms.
8806 * modules/fseeko (Depends-on): Remove verify.
8807 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
8808 * doc/functions/ftello.texi (ftello): Likewise.
8809 * doc/functions/fgetpos.texi (fgetpos): Likewise.
8810 Reported by Larry Jones.
8812 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
8814 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
8815 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
8817 2007-12-17 Jim Meyering <meyering@redhat.com>
8819 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
8820 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
8821 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
8822 * modules/getcwd (Depends-on): Add openat.
8823 Reported by Petr Salinger.
8825 2007-12-17 Bruno Haible <bruno@clisp.org>
8827 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
8828 avoid a segmentation fault of the configure test on x86_64 systems.
8830 2007-12-15 Jim Meyering <meyering@redhat.com>
8832 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
8834 2007-12-13 Eric Blake <ebb9@byu.net>
8837 * tests/test-fseek.c (main): Also test ungetc handling.
8838 * tests/test-fseeko.c (main): Likewise.
8839 * modules/fseeko (Depends-on): Add verify.
8840 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
8842 Reported by Larry Jones.
8844 Fix fseeko on mingw.
8845 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
8848 Beef up fseek tests.
8849 * tests/test-fseek.c (main): Also test eof handling.
8850 * tests/test-fseeko.c (main): Likewise.
8851 Reported by Larry Jones.
8853 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
8855 Fix fseeko on BSD-based platforms.
8856 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
8859 2007-12-12 Eric Blake <ebb9@byu.net>
8861 Allow circular dependency of separate libtests.a
8862 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
8865 2007-12-11 Eric Blake <ebb9@byu.net>
8867 Fix bug with -0.0L in previous patch.
8868 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
8869 * tests/test-isnan.c (main): Also test on zeroes.
8870 * tests/test-isnanf.c (main): Likewise.
8871 * tests/test-isnanl.h (main): Likewise.
8873 Detect pseudo-denormals on x86 even when cross-compiling.
8874 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
8875 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
8876 invalid bit patterns that happen to satisfy ==.
8878 Avoid link failures with separate libtests.a.
8879 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
8880 last, to satisfy circular dependencies.
8882 2007-12-11 Eric Blake <ebb9@byu.net>
8883 and Bruno Haible <bruno@clisp.org>
8885 Fix OpenBSD 4.0 <float.h> handling of long double.
8886 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
8887 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
8888 * doc/headers/float.texi (float.h): Document OpenBSD bug.
8890 2007-12-11 Jim Meyering <meyering@redhat.com>
8892 * users.txt: Add libvirt.
8894 Support versions of autoconf prior to 2.59c.
8895 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
8896 if it is not already defined.
8898 2007-12-09 Bruno Haible <bruno@clisp.org>
8900 Let 'gnulib-tool --import' collect sources needed for the tests in
8901 tests/ rather than in lib/.
8902 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
8903 argument. If true, add rules to generate libtests.a, and put libtests.a
8904 into $(LDADD). Consider source files in subdirectories and set
8906 (func_emit_initmacro_start, func_emit_initmacro_end,
8907 func_emit_initmacro_done): Pass all arguments explicitly.
8908 (func_import): Determine two module lists main_modules,
8909 testsrelated_modules. Determine use_libtests. Determine two variables
8910 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
8911 instead of just sed_transform_lib_file. Determine two variables
8912 main_files and testsrelated_files. Compute 'files' as the union of
8913 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
8914 func_add_or_update. In the generated gnulib-comp.m4, collect the
8915 object files for tests/ in different variables than those for lib/.
8916 Substitute LIBTESTS_LIBDEPS.
8917 (func_create_testdir): Combine the uses_subdirs results from
8918 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
8920 2007-12-09 Bruno Haible <bruno@clisp.org>
8922 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
8923 the build-aux directory.
8925 2007-12-09 Bruno Haible <bruno@clisp.org>
8927 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
8928 introduced on 2006-09-09.
8930 2007-12-07 Jim Meyering <meyering@redhat.com>
8932 Let these macros work also with autoconf-2.59.
8933 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
8934 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
8935 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
8937 2007-12-06 Jim Meyering <meyering@redhat.com>
8939 Avoid a configure-time syntax error in gl_FUNC_ACL.
8940 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
8941 function in each branch, before testing the cache variable.
8943 2007-12-04 Eric Blake <ebb9@byu.net>
8945 Make scripts executable.
8946 * build-aux/config.guess: Add execute permissions.
8947 * build-aux/config.sub: Likewise.
8948 * build-aux/gendocs.sh: Likewise.
8951 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
8953 * doc/functions/frexp.texi (frexp): Document the bug.
8955 Make cygwin fseeko check more reliable.
8956 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
8957 version numbers, rather than unrelated feature check.
8958 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
8959 * doc/functions/ftello.texi (ftello): Likewise.
8960 Reported by Bruno Haible.
8962 * m4/strerror.m4: Bump version number.
8964 2007-12-03 Bruno Haible <bruno@clisp.org>
8966 * doc/functions/mprotect.texi: Mention the mingw problem.
8968 2007-12-03 Eric Blake <ebb9@byu.net>
8970 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
8971 REPLACE_STRERROR is initialized before this macro.
8973 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
8975 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
8976 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
8977 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
8978 put -lsec in even for programs other than 'ls'. This fixes a problem
8979 for gettext reported by Bruno Haible in
8980 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
8981 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
8982 Add support for Solaris 10. This isn't efficient, but should get the
8985 2007-12-03 James Youngman <jay@gnu.org>
8987 * doc/regexprops-generic.texi: change "an close-group" to "a
8988 close-group" and "illegal" to "not allowed".
8990 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8992 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
8993 pr_byname.h. Needed for the rare case when the maintainer has done
8994 "make maintainer-clean" in the source directory and then attempts a
8995 build outside the source directory.
8996 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
8999 2007-12-02 Martin Lambers <marlam@marlam.de>
9000 Bruno Haible <bruno@clisp.org>
9002 * lib/getpagesize.h: Remove file.
9003 * lib/unistd.in.h: Include declaration of getpagesize here.
9004 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
9005 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
9007 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
9008 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
9009 * modules/getpagesize (Files): Remove lib/getpagesize.h.
9010 (Depends-on): Add unistd.
9011 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9012 (Include): Use <unistd.h> instead of getpagesize.h.
9013 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
9014 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
9015 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
9016 gl_GETPAGESIZE invocation, already handled by module dependency.
9017 * lib/pagealign_alloc.c: Don't include getpagesize.h.
9019 2007-12-02 Bruno Haible <bruno@clisp.org>
9021 * modules/strings-tests: New file.
9022 * tests/test-strings.c: New file.
9024 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
9025 * lib/strings.in.h: New file.
9026 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
9027 * m4/strings_h.m4: New file.
9028 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
9029 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
9030 * modules/strings: New file.
9031 * modules/string (Makefile.am): Update.
9032 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
9033 Reported by Karl Berry.
9035 2007-12-01 Eric Blake <ebb9@byu.net>
9037 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
9038 accomodate fix in cygwin 1.5.25.
9040 2007-12-01 Jim Meyering <meyering@redhat.com>
9042 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
9043 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
9044 that would inhibit utf8-optimization of a regexp containing line-
9045 or buffer-anchors, e.g., `^', `$'.
9047 2007-11-30 Bruno Haible <bruno@clisp.org>
9049 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
9050 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
9051 glthread_recursive_lock_init.
9052 * lib/lock.c (glthread_recursive_lock_init)
9053 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
9054 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9056 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
9058 New function qset_acl, like set_acl but with syscall semantics.
9059 * lib/acl.h (qset_acl): New decl.
9060 * lib/acl.c (qset_acl): New function.
9061 (set_acl): Use new function. Use more-consistent diagnostics.
9063 2007-11-28 Jim Meyering <meyering@redhat.com>
9065 * modules/physmem (License): Change from GPL to LGPLv2+.
9067 2007-11-26 Bruno Haible <bruno@clisp.org>
9069 * lib/vasnprintf.c (decode_long_double): Don't abort if the
9070 'long double' type has excess precision.
9071 Reported by Jim Meyering in
9072 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
9074 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9076 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
9077 Sync from <http://gnu.org/licenses>.
9078 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
9079 with license text from same location.
9080 * doc/maintain.texi, doc/standards.texi: Sync from
9081 <http://savannah.gnu.org/projects/gnustandards>.
9083 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
9084 and Jim Meyering <meyering@redhat.com>
9086 Adjust getdate' grammar to accept a slightly more regular language.
9087 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
9088 Before, the former was rejected.
9089 * lib/getdate.y (digits_to_date_time): New function, factored
9091 (number): ...here. Just call digits_to_date_time.
9092 (hybrid): New non-terminal to handle an <unsigned number,
9093 signed relative offset> sequence consistently.
9095 2007-11-18 Jim Meyering <meyering@redhat.com>
9097 Pull my changes from coreutils:
9098 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
9099 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
9100 use of $gnulib_tool_option_extras, so that it's separated from the
9103 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
9104 * build-aux/bootstrap (cp_mark_as_generated): Create any required
9105 parent destination directories before copying a file into place.
9107 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
9109 bootstrap: work also with 4-argument variant of AC_INIT
9110 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
9112 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
9114 Port test-getaddrinfo to Solaris.
9115 Problem reported by Bruno Haible in
9116 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
9117 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
9118 explanation of setting 'hints'.
9119 Don't reject an implementation merely because it returns EAI_SERVICE.
9120 (EAI_SERVICE): Define to 0 if not defined.
9122 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
9124 The license of gnu-make and posix-shell is now "GPLed build tool".
9125 * modules/gnu-make (License): Likewise.
9126 * modules/posix-shell (License): Likewise.
9128 New module posix-shell, for determining a POSIX shell
9129 or perhaps something that is close enough to a POSIX shell.
9130 * m4/posix-shell.m4: New file.
9131 * modules/posix-shell: New file.
9133 * MODULES.html.sh: Mention new module.
9135 New module gnu-make, for determining whether we're using GNU Make.
9136 * m4/gnu-make.m4: New file.
9137 * modules/gnu-make: New file.
9138 * MODULES.html.sh: Mention new module.
9140 2007-11-14 Jim Meyering <meyering@redhat.com>
9142 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
9143 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
9144 use this macro to create a function _definition_.
9145 Remove useless "#undef ARGMATCH_DIE".
9147 2007-11-14 Bruno Haible <bruno@clisp.org>
9149 * lib/config.charset: Update for OpenBSD 4.1.
9150 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
9152 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
9154 Document 64-bit #if problems in stdint.texi.
9155 * doc/headers/stdint.texi (stdint.h): Mention problems with
9156 64-bit-#if, and how to work around them.
9158 Don't insist on 'long long int' support in the preprocessor. It
9159 breaks too many things. For example, PRIdMAX still uses a 'long
9160 long int' format with the latest Sun compiler, even though
9161 HAVE_LONG_LONG_INT isn't defined due to that compiler's
9162 preprocessor problem. This causes the latest coreutils to dump
9163 core on Solaris 10 sparc with the Sun C compiler.
9164 Instead, fix the 2007-10-16 problem in a different way, by evaluating
9165 the troublesome expressions at configure-time, not at #if-time.
9166 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
9168 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
9169 compile-time C checks, done at 'configure'-time.
9170 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
9171 * modules/inttypes (Makefile): Substitute the new symbols that
9172 gl_INTTYPES_H now generates.
9173 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
9175 2007-11-12 Bruno Haible <bruno@clisp.org>
9177 Tests for Unicode character classification functions.
9179 * modules/unictype/bidicategory-byname-tests: New file.
9180 * modules/unictype/bidicategory-name-tests: New file.
9181 * modules/unictype/bidicategory-of-tests: New file.
9182 * modules/unictype/bidicategory-test-tests: New file.
9183 * modules/unictype/block-list-tests: New file.
9184 * modules/unictype/block-of-tests: New file.
9185 * modules/unictype/block-test-tests: New file.
9186 * modules/unictype/category-C-tests: New file.
9187 * modules/unictype/category-Cc-tests: New file.
9188 * modules/unictype/category-Cf-tests: New file.
9189 * modules/unictype/category-Cn-tests: New file.
9190 * modules/unictype/category-Co-tests: New file.
9191 * modules/unictype/category-Cs-tests: New file.
9192 * modules/unictype/category-L-tests: New file.
9193 * modules/unictype/category-Ll-tests: New file.
9194 * modules/unictype/category-Lm-tests: New file.
9195 * modules/unictype/category-Lo-tests: New file.
9196 * modules/unictype/category-Lt-tests: New file.
9197 * modules/unictype/category-Lu-tests: New file.
9198 * modules/unictype/category-M-tests: New file.
9199 * modules/unictype/category-Mc-tests: New file.
9200 * modules/unictype/category-Me-tests: New file.
9201 * modules/unictype/category-Mn-tests: New file.
9202 * modules/unictype/category-N-tests: New file.
9203 * modules/unictype/category-Nd-tests: New file.
9204 * modules/unictype/category-Nl-tests: New file.
9205 * modules/unictype/category-No-tests: New file.
9206 * modules/unictype/category-P-tests: New file.
9207 * modules/unictype/category-Pc-tests: New file.
9208 * modules/unictype/category-Pd-tests: New file.
9209 * modules/unictype/category-Pe-tests: New file.
9210 * modules/unictype/category-Pf-tests: New file.
9211 * modules/unictype/category-Pi-tests: New file.
9212 * modules/unictype/category-Po-tests: New file.
9213 * modules/unictype/category-Ps-tests: New file.
9214 * modules/unictype/category-S-tests: New file.
9215 * modules/unictype/category-Sc-tests: New file.
9216 * modules/unictype/category-Sk-tests: New file.
9217 * modules/unictype/category-Sm-tests: New file.
9218 * modules/unictype/category-So-tests: New file.
9219 * modules/unictype/category-Z-tests: New file.
9220 * modules/unictype/category-Zl-tests: New file.
9221 * modules/unictype/category-Zp-tests: New file.
9222 * modules/unictype/category-Zs-tests: New file.
9223 * modules/unictype/category-and-not-tests: New file.
9224 * modules/unictype/category-and-tests: New file.
9225 * modules/unictype/category-byname-tests: New file.
9226 * modules/unictype/category-name-tests: New file.
9227 * modules/unictype/category-none-tests: New file.
9228 * modules/unictype/category-of-tests: New file.
9229 * modules/unictype/category-or-tests: New file.
9230 * modules/unictype/category-test-withtable-tests: New file.
9231 * modules/unictype/combining-class-tests: New file.
9232 * modules/unictype/ctype-alnum-tests: New file.
9233 * modules/unictype/ctype-alpha-tests: New file.
9234 * modules/unictype/ctype-blank-tests: New file.
9235 * modules/unictype/ctype-cntrl-tests: New file.
9236 * modules/unictype/ctype-digit-tests: New file.
9237 * modules/unictype/ctype-graph-tests: New file.
9238 * modules/unictype/ctype-lower-tests: New file.
9239 * modules/unictype/ctype-print-tests: New file.
9240 * modules/unictype/ctype-punct-tests: New file.
9241 * modules/unictype/ctype-space-tests: New file.
9242 * modules/unictype/ctype-upper-tests: New file.
9243 * modules/unictype/ctype-xdigit-tests: New file.
9244 * modules/unictype/decimal-digit-tests: New file.
9245 * modules/unictype/digit-tests: New file.
9246 * modules/unictype/mirror-tests: New file.
9247 * modules/unictype/numeric-tests: New file.
9248 * modules/unictype/property-alphabetic-tests: New file.
9249 * modules/unictype/property-ascii-hex-digit-tests: New file.
9250 * modules/unictype/property-bidi-arabic-digit-tests: New file.
9251 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
9252 * modules/unictype/property-bidi-block-separator-tests: New file.
9253 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
9254 * modules/unictype/property-bidi-common-separator-tests: New file.
9255 * modules/unictype/property-bidi-control-tests: New file.
9256 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
9257 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
9258 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
9259 * modules/unictype/property-bidi-european-digit-tests: New file.
9260 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
9261 * modules/unictype/property-bidi-left-to-right-tests: New file.
9262 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
9263 * modules/unictype/property-bidi-other-neutral-tests: New file.
9264 * modules/unictype/property-bidi-pdf-tests: New file.
9265 * modules/unictype/property-bidi-segment-separator-tests: New file.
9266 * modules/unictype/property-bidi-whitespace-tests: New file.
9267 * modules/unictype/property-byname-tests: New file.
9268 * modules/unictype/property-combining-tests: New file.
9269 * modules/unictype/property-composite-tests: New file.
9270 * modules/unictype/property-currency-symbol-tests: New file.
9271 * modules/unictype/property-dash-tests: New file.
9272 * modules/unictype/property-decimal-digit-tests: New file.
9273 * modules/unictype/property-default-ignorable-code-point-tests: New file.
9274 * modules/unictype/property-deprecated-tests: New file.
9275 * modules/unictype/property-diacritic-tests: New file.
9276 * modules/unictype/property-extender-tests: New file.
9277 * modules/unictype/property-format-control-tests: New file.
9278 * modules/unictype/property-grapheme-base-tests: New file.
9279 * modules/unictype/property-grapheme-extend-tests: New file.
9280 * modules/unictype/property-grapheme-link-tests: New file.
9281 * modules/unictype/property-hex-digit-tests: New file.
9282 * modules/unictype/property-hyphen-tests: New file.
9283 * modules/unictype/property-id-continue-tests: New file.
9284 * modules/unictype/property-id-start-tests: New file.
9285 * modules/unictype/property-ideographic-tests: New file.
9286 * modules/unictype/property-ids-binary-operator-tests: New file.
9287 * modules/unictype/property-ids-trinary-operator-tests: New file.
9288 * modules/unictype/property-ignorable-control-tests: New file.
9289 * modules/unictype/property-iso-control-tests: New file.
9290 * modules/unictype/property-join-control-tests: New file.
9291 * modules/unictype/property-left-of-pair-tests: New file.
9292 * modules/unictype/property-line-separator-tests: New file.
9293 * modules/unictype/property-logical-order-exception-tests: New file.
9294 * modules/unictype/property-lowercase-tests: New file.
9295 * modules/unictype/property-math-tests: New file.
9296 * modules/unictype/property-non-break-tests: New file.
9297 * modules/unictype/property-not-a-character-tests: New file.
9298 * modules/unictype/property-numeric-tests: New file.
9299 * modules/unictype/property-other-alphabetic-tests: New file.
9300 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
9301 * modules/unictype/property-other-grapheme-extend-tests: New file.
9302 * modules/unictype/property-other-id-continue-tests: New file.
9303 * modules/unictype/property-other-id-start-tests: New file.
9304 * modules/unictype/property-other-lowercase-tests: New file.
9305 * modules/unictype/property-other-math-tests: New file.
9306 * modules/unictype/property-other-uppercase-tests: New file.
9307 * modules/unictype/property-paired-punctuation-tests: New file.
9308 * modules/unictype/property-paragraph-separator-tests: New file.
9309 * modules/unictype/property-pattern-syntax-tests: New file.
9310 * modules/unictype/property-pattern-white-space-tests: New file.
9311 * modules/unictype/property-private-use-tests: New file.
9312 * modules/unictype/property-punctuation-tests: New file.
9313 * modules/unictype/property-quotation-mark-tests: New file.
9314 * modules/unictype/property-radical-tests: New file.
9315 * modules/unictype/property-sentence-terminal-tests: New file.
9316 * modules/unictype/property-soft-dotted-tests: New file.
9317 * modules/unictype/property-space-tests: New file.
9318 * modules/unictype/property-terminal-punctuation-tests: New file.
9319 * modules/unictype/property-test-tests: New file.
9320 * modules/unictype/property-titlecase-tests: New file.
9321 * modules/unictype/property-unassigned-code-value-tests: New file.
9322 * modules/unictype/property-unified-ideograph-tests: New file.
9323 * modules/unictype/property-uppercase-tests: New file.
9324 * modules/unictype/property-variation-selector-tests: New file.
9325 * modules/unictype/property-white-space-tests: New file.
9326 * modules/unictype/property-xid-continue-tests: New file.
9327 * modules/unictype/property-xid-start-tests: New file.
9328 * modules/unictype/property-zero-width-tests: New file.
9329 * modules/unictype/scripts-tests: New file.
9330 * modules/unictype/syntax-c-ident-tests: New file.
9331 * modules/unictype/syntax-c-whitespace-tests: New file.
9332 * modules/unictype/syntax-java-ident-tests: New file.
9333 * modules/unictype/syntax-java-whitespace-tests: New file.
9334 * tests/unictype/test-bidi_byname.c: New file.
9335 * tests/unictype/test-bidi_name.c: New file.
9336 * tests/unictype/test-bidi_of.c: New file.
9337 * tests/unictype/test-bidi_test.c: New file.
9338 * tests/unictype/test-block_list.c: New file.
9339 * tests/unictype/test-block_of.c: New file.
9340 * tests/unictype/test-block_test.c: New file.
9341 * tests/unictype/test-categ_and.c: New file.
9342 * tests/unictype/test-categ_and_not.c: New file.
9343 * tests/unictype/test-categ_byname.c: New file.
9344 * tests/unictype/test-categ_name.c: New file.
9345 * tests/unictype/test-categ_none.c: New file.
9346 * tests/unictype/test-categ_of.c: New file.
9347 * tests/unictype/test-categ_or.c: New file.
9348 * tests/unictype/test-categ_test_withtable.c: New file.
9349 * tests/unictype/test-combining.c: New file.
9350 * tests/unictype/test-decdigit.c: New file.
9351 * tests/unictype/test-digit.c: New file.
9352 * tests/unictype/test-mirror.c: New file.
9353 * tests/unictype/test-numeric.c: New file.
9354 * tests/unictype/test-pr_byname.c: New file.
9355 * tests/unictype/test-pr_test.c: New file.
9356 * tests/unictype/test-predicate-part1.h: New file.
9357 * tests/unictype/test-predicate-part2.h: New file.
9358 * tests/unictype/test-scripts.c: New file.
9359 * tests/unictype/test-sy_c_ident.c: New file.
9360 * tests/unictype/test-sy_java_ident.c: New file.
9362 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
9364 * tests/unictype/test-categ_Cc.c: Likewise.
9365 * tests/unictype/test-categ_Cf.c: Likewise.
9366 * tests/unictype/test-categ_Cn.c: Likewise.
9367 * tests/unictype/test-categ_Co.c: Likewise.
9368 * tests/unictype/test-categ_Cs.c: Likewise.
9369 * tests/unictype/test-categ_L.c: Likewise.
9370 * tests/unictype/test-categ_Ll.c: Likewise.
9371 * tests/unictype/test-categ_Lm.c: Likewise.
9372 * tests/unictype/test-categ_Lo.c: Likewise.
9373 * tests/unictype/test-categ_Lt.c: Likewise.
9374 * tests/unictype/test-categ_Lu.c: Likewise.
9375 * tests/unictype/test-categ_M.c: Likewise.
9376 * tests/unictype/test-categ_Mc.c: Likewise.
9377 * tests/unictype/test-categ_Me.c: Likewise.
9378 * tests/unictype/test-categ_Mn.c: Likewise.
9379 * tests/unictype/test-categ_N.c: Likewise.
9380 * tests/unictype/test-categ_Nd.c: Likewise.
9381 * tests/unictype/test-categ_Nl.c: Likewise.
9382 * tests/unictype/test-categ_No.c: Likewise.
9383 * tests/unictype/test-categ_P.c: Likewise.
9384 * tests/unictype/test-categ_Pc.c: Likewise.
9385 * tests/unictype/test-categ_Pd.c: Likewise.
9386 * tests/unictype/test-categ_Pe.c: Likewise.
9387 * tests/unictype/test-categ_Pf.c: Likewise.
9388 * tests/unictype/test-categ_Pi.c: Likewise.
9389 * tests/unictype/test-categ_Po.c: Likewise.
9390 * tests/unictype/test-categ_Ps.c: Likewise.
9391 * tests/unictype/test-categ_S.c: Likewise.
9392 * tests/unictype/test-categ_Sc.c: Likewise.
9393 * tests/unictype/test-categ_Sk.c: Likewise.
9394 * tests/unictype/test-categ_Sm.c: Likewise.
9395 * tests/unictype/test-categ_So.c: Likewise.
9396 * tests/unictype/test-categ_Z.c: Likewise.
9397 * tests/unictype/test-categ_Zl.c: Likewise.
9398 * tests/unictype/test-categ_Zp.c: Likewise.
9399 * tests/unictype/test-categ_Zs.c: Likewise.
9400 * tests/unictype/test-ctype_alnum.c: Likewise.
9401 * tests/unictype/test-ctype_alpha.c: Likewise.
9402 * tests/unictype/test-ctype_blank.c: Likewise.
9403 * tests/unictype/test-ctype_cntrl.c: Likewise.
9404 * tests/unictype/test-ctype_digit.c: Likewise.
9405 * tests/unictype/test-ctype_graph.c: Likewise.
9406 * tests/unictype/test-ctype_lower.c: Likewise.
9407 * tests/unictype/test-ctype_print.c: Likewise.
9408 * tests/unictype/test-ctype_punct.c: Likewise.
9409 * tests/unictype/test-ctype_space.c: Likewise.
9410 * tests/unictype/test-ctype_upper.c: Likewise.
9411 * tests/unictype/test-ctype_xdigit.c: Likewise.
9412 * tests/unictype/test-decdigit.h: Likewise.
9413 * tests/unictype/test-digit.h: Likewise.
9414 * tests/unictype/test-numeric.h: Likewise.
9415 * tests/unictype/test-pr_alphabetic.c: Likewise.
9416 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
9417 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9418 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9419 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
9420 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9421 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
9422 * tests/unictype/test-pr_bidi_control.c: Likewise.
9423 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
9424 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
9425 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9426 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9427 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9428 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9429 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9430 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9431 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
9432 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
9433 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
9434 * tests/unictype/test-pr_combining.c: Likewise.
9435 * tests/unictype/test-pr_composite.c: Likewise.
9436 * tests/unictype/test-pr_currency_symbol.c: Likewise.
9437 * tests/unictype/test-pr_dash.c: Likewise.
9438 * tests/unictype/test-pr_decimal_digit.c: Likewise.
9439 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
9440 * tests/unictype/test-pr_deprecated.c: Likewise.
9441 * tests/unictype/test-pr_diacritic.c: Likewise.
9442 * tests/unictype/test-pr_extender.c: Likewise.
9443 * tests/unictype/test-pr_format_control.c: Likewise.
9444 * tests/unictype/test-pr_grapheme_base.c: Likewise.
9445 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9446 * tests/unictype/test-pr_grapheme_link.c: Likewise.
9447 * tests/unictype/test-pr_hex_digit.c: Likewise.
9448 * tests/unictype/test-pr_hyphen.c: Likewise.
9449 * tests/unictype/test-pr_id_continue.c: Likewise.
9450 * tests/unictype/test-pr_id_start.c: Likewise.
9451 * tests/unictype/test-pr_ideographic.c: Likewise.
9452 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
9453 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
9454 * tests/unictype/test-pr_ignorable_control.c: Likewise.
9455 * tests/unictype/test-pr_iso_control.c: Likewise.
9456 * tests/unictype/test-pr_join_control.c: Likewise.
9457 * tests/unictype/test-pr_left_of_pair.c: Likewise.
9458 * tests/unictype/test-pr_line_separator.c: Likewise.
9459 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9460 * tests/unictype/test-pr_lowercase.c: Likewise.
9461 * tests/unictype/test-pr_math.c: Likewise.
9462 * tests/unictype/test-pr_non_break.c: Likewise.
9463 * tests/unictype/test-pr_not_a_character.c: Likewise.
9464 * tests/unictype/test-pr_numeric.c: Likewise.
9465 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9466 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
9467 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
9468 * tests/unictype/test-pr_other_id_continue.c: Likewise.
9469 * tests/unictype/test-pr_other_id_start.c: Likewise.
9470 * tests/unictype/test-pr_other_lowercase.c: Likewise.
9471 * tests/unictype/test-pr_other_math.c: Likewise.
9472 * tests/unictype/test-pr_other_uppercase.c: Likewise.
9473 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
9474 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
9475 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
9476 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
9477 * tests/unictype/test-pr_private_use.c: Likewise.
9478 * tests/unictype/test-pr_punctuation.c: Likewise.
9479 * tests/unictype/test-pr_quotation_mark.c: Likewise.
9480 * tests/unictype/test-pr_radical.c: Likewise.
9481 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9482 * tests/unictype/test-pr_soft_dotted.c: Likewise.
9483 * tests/unictype/test-pr_space.c: Likewise.
9484 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9485 * tests/unictype/test-pr_titlecase.c: Likewise.
9486 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9487 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9488 * tests/unictype/test-pr_uppercase.c: Likewise.
9489 * tests/unictype/test-pr_variation_selector.c: Likewise.
9490 * tests/unictype/test-pr_white_space.c: Likewise.
9491 * tests/unictype/test-pr_xid_continue.c: Likewise.
9492 * tests/unictype/test-pr_xid_start.c: Likewise.
9493 * tests/unictype/test-pr_zero_width.c: Likewise.
9494 * tests/unictype/test-sy_c_whitespace.c: Likewise.
9495 * tests/unictype/test-sy_java_whitespace.c: Likewise.
9497 2007-11-12 Bruno Haible <bruno@clisp.org>
9499 Unicode character classification functions.
9500 * lib/unictype.h: New file.
9501 * modules/unictype/base: New file.
9502 * modules/unictype/category-L: New file.
9503 * modules/unictype/category-Lu: New file.
9504 * modules/unictype/category-Ll: New file.
9505 * modules/unictype/category-Lt: New file.
9506 * modules/unictype/category-Lm: New file.
9507 * modules/unictype/category-Lo: New file.
9508 * modules/unictype/category-M: New file.
9509 * modules/unictype/category-Mn: New file.
9510 * modules/unictype/category-Mc: New file.
9511 * modules/unictype/category-Me: New file.
9512 * modules/unictype/category-N: New file.
9513 * modules/unictype/category-Nd: New file.
9514 * modules/unictype/category-Nl: New file.
9515 * modules/unictype/category-No: New file.
9516 * modules/unictype/category-P: New file.
9517 * modules/unictype/category-Pc: New file.
9518 * modules/unictype/category-Pd: New file.
9519 * modules/unictype/category-Ps: New file.
9520 * modules/unictype/category-Pe: New file.
9521 * modules/unictype/category-Pi: New file.
9522 * modules/unictype/category-Pf: New file.
9523 * modules/unictype/category-Po: New file.
9524 * modules/unictype/category-S: New file.
9525 * modules/unictype/category-Sm: New file.
9526 * modules/unictype/category-Sc: New file.
9527 * modules/unictype/category-Sk: New file.
9528 * modules/unictype/category-So: New file.
9529 * modules/unictype/category-Z: New file.
9530 * modules/unictype/category-Zs: New file.
9531 * modules/unictype/category-Zl: New file.
9532 * modules/unictype/category-Zp: New file.
9533 * modules/unictype/category-C: New file.
9534 * modules/unictype/category-Cc: New file.
9535 * modules/unictype/category-Cf: New file.
9536 * modules/unictype/category-Cs: New file.
9537 * modules/unictype/category-Co: New file.
9538 * modules/unictype/category-Cn: New file.
9539 * modules/unictype/category-or: New file.
9540 * modules/unictype/category-of: New file.
9541 * modules/unictype/category-test: New file.
9542 * modules/unictype/category-test-withtable: New file.
9543 * modules/unictype/category-byname: New file.
9544 * modules/unictype/category-none: New file.
9545 * modules/unictype/category-and: New file.
9546 * modules/unictype/category-and-not: New file.
9547 * modules/unictype/category-name: New file.
9548 * modules/unictype/combining-class: New file.
9549 * modules/unictype/category-all: New file.
9550 * modules/unictype/bidicategory-all: New file.
9551 * modules/unictype/bidicategory-byname: New file.
9552 * modules/unictype/bidicategory-name: New file.
9553 * modules/unictype/bidicategory-of: New file.
9554 * modules/unictype/bidicategory-test: New file.
9555 * modules/unictype/decimal-digit: New file.
9556 * modules/unictype/digit: New file.
9557 * modules/unictype/numeric: New file.
9558 * modules/unictype/mirror: New file.
9559 * modules/unictype/property-white-space: New file.
9560 * modules/unictype/property-alphabetic: New file.
9561 * modules/unictype/property-other-alphabetic: New file.
9562 * modules/unictype/property-not-a-character: New file.
9563 * modules/unictype/property-default-ignorable-code-point: New file.
9564 * modules/unictype/property-other-default-ignorable-code-point: New
9566 * modules/unictype/property-deprecated: New file.
9567 * modules/unictype/property-logical-order-exception: New file.
9568 * modules/unictype/property-variation-selector: New file.
9569 * modules/unictype/property-private-use: New file.
9570 * modules/unictype/property-unassigned-code-value: New file.
9571 * modules/unictype/property-uppercase: New file.
9572 * modules/unictype/property-other-uppercase: New file.
9573 * modules/unictype/property-lowercase: New file.
9574 * modules/unictype/property-other-lowercase: New file.
9575 * modules/unictype/property-titlecase: New file.
9576 * modules/unictype/property-soft-dotted: New file.
9577 * modules/unictype/property-id-start: New file.
9578 * modules/unictype/property-other-id-start: New file.
9579 * modules/unictype/property-id-continue: New file.
9580 * modules/unictype/property-other-id-continue: New file.
9581 * modules/unictype/property-xid-start: New file.
9582 * modules/unictype/property-xid-continue: New file.
9583 * modules/unictype/property-pattern-white-space: New file.
9584 * modules/unictype/property-pattern-syntax: New file.
9585 * modules/unictype/property-join-control: New file.
9586 * modules/unictype/property-grapheme-base: New file.
9587 * modules/unictype/property-grapheme-extend: New file.
9588 * modules/unictype/property-other-grapheme-extend: New file.
9589 * modules/unictype/property-grapheme-link: New file.
9590 * modules/unictype/property-bidi-control: New file.
9591 * modules/unictype/property-bidi-left-to-right: New file.
9592 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
9593 * modules/unictype/property-bidi-arabic-right-to-left: New file.
9594 * modules/unictype/property-bidi-european-digit: New file.
9595 * modules/unictype/property-bidi-eur-num-separator: New file.
9596 * modules/unictype/property-bidi-eur-num-terminator: New file.
9597 * modules/unictype/property-bidi-arabic-digit: New file.
9598 * modules/unictype/property-bidi-common-separator: New file.
9599 * modules/unictype/property-bidi-block-separator: New file.
9600 * modules/unictype/property-bidi-segment-separator: New file.
9601 * modules/unictype/property-bidi-whitespace: New file.
9602 * modules/unictype/property-bidi-non-spacing-mark: New file.
9603 * modules/unictype/property-bidi-boundary-neutral: New file.
9604 * modules/unictype/property-bidi-pdf: New file.
9605 * modules/unictype/property-bidi-embedding-or-override: New file.
9606 * modules/unictype/property-bidi-other-neutral: New file.
9607 * modules/unictype/property-hex-digit: New file.
9608 * modules/unictype/property-ascii-hex-digit: New file.
9609 * modules/unictype/property-ideographic: New file.
9610 * modules/unictype/property-unified-ideograph: New file.
9611 * modules/unictype/property-radical: New file.
9612 * modules/unictype/property-ids-binary-operator: New file.
9613 * modules/unictype/property-ids-trinary-operator: New file.
9614 * modules/unictype/property-zero-width: New file.
9615 * modules/unictype/property-space: New file.
9616 * modules/unictype/property-non-break: New file.
9617 * modules/unictype/property-iso-control: New file.
9618 * modules/unictype/property-format-control: New file.
9619 * modules/unictype/property-dash: New file.
9620 * modules/unictype/property-hyphen: New file.
9621 * modules/unictype/property-punctuation: New file.
9622 * modules/unictype/property-line-separator: New file.
9623 * modules/unictype/property-paragraph-separator: New file.
9624 * modules/unictype/property-quotation-mark: New file.
9625 * modules/unictype/property-sentence-terminal: New file.
9626 * modules/unictype/property-terminal-punctuation: New file.
9627 * modules/unictype/property-currency-symbol: New file.
9628 * modules/unictype/property-math: New file.
9629 * modules/unictype/property-other-math: New file.
9630 * modules/unictype/property-paired-punctuation: New file.
9631 * modules/unictype/property-left-of-pair: New file.
9632 * modules/unictype/property-combining: New file.
9633 * modules/unictype/property-composite: New file.
9634 * modules/unictype/property-decimal-digit: New file.
9635 * modules/unictype/property-numeric: New file.
9636 * modules/unictype/property-diacritic: New file.
9637 * modules/unictype/property-extender: New file.
9638 * modules/unictype/property-ignorable-control: New file.
9639 * modules/unictype/property-test: New file.
9640 * modules/unictype/property-byname: New file.
9641 * modules/unictype/property-all: New file.
9642 * modules/unictype/scripts: New file.
9643 * modules/unictype/scripts-all: New file.
9644 * modules/unictype/block-of: New file.
9645 * modules/unictype/block-test: New file.
9646 * modules/unictype/block-list: New file.
9647 * modules/unictype/block-all: New file.
9648 * modules/unictype/syntax-c-whitespace: New file.
9649 * modules/unictype/syntax-java-whitespace: New file.
9650 * modules/unictype/syntax-c-ident: New file.
9651 * modules/unictype/syntax-java-ident: New file.
9652 * modules/unictype/ctype-alnum: New file.
9653 * modules/unictype/ctype-alpha: New file.
9654 * modules/unictype/ctype-cntrl: New file.
9655 * modules/unictype/ctype-digit: New file.
9656 * modules/unictype/ctype-graph: New file.
9657 * modules/unictype/ctype-lower: New file.
9658 * modules/unictype/ctype-print: New file.
9659 * modules/unictype/ctype-punct: New file.
9660 * modules/unictype/ctype-space: New file.
9661 * modules/unictype/ctype-upper: New file.
9662 * modules/unictype/ctype-xdigit: New file.
9663 * modules/unictype/ctype-blank: New file.
9664 * lib/unictype/bidi_byname.c: New file.
9665 * lib/unictype/bidi_name.c: New file.
9666 * lib/unictype/bidi_of.c: New file.
9667 * lib/unictype/bidi_test.c: New file.
9668 * lib/unictype/bitmap.h: New file.
9669 * lib/unictype/block_test.c: New file.
9670 * lib/unictype/blocks.c: New file.
9671 * lib/unictype/categ_C.c: New file.
9672 * lib/unictype/categ_Cc.c: New file.
9673 * lib/unictype/categ_Cf.c: New file.
9674 * lib/unictype/categ_Cn.c: New file.
9675 * lib/unictype/categ_Co.c: New file.
9676 * lib/unictype/categ_Cs.c: New file.
9677 * lib/unictype/categ_L.c: New file.
9678 * lib/unictype/categ_Ll.c: New file.
9679 * lib/unictype/categ_Lm.c: New file.
9680 * lib/unictype/categ_Lo.c: New file.
9681 * lib/unictype/categ_Lt.c: New file.
9682 * lib/unictype/categ_Lu.c: New file.
9683 * lib/unictype/categ_M.c: New file.
9684 * lib/unictype/categ_Mc.c: New file.
9685 * lib/unictype/categ_Me.c: New file.
9686 * lib/unictype/categ_Mn.c: New file.
9687 * lib/unictype/categ_N.c: New file.
9688 * lib/unictype/categ_Nd.c: New file.
9689 * lib/unictype/categ_Nl.c: New file.
9690 * lib/unictype/categ_No.c: New file.
9691 * lib/unictype/categ_P.c: New file.
9692 * lib/unictype/categ_Pc.c: New file.
9693 * lib/unictype/categ_Pd.c: New file.
9694 * lib/unictype/categ_Pe.c: New file.
9695 * lib/unictype/categ_Pf.c: New file.
9696 * lib/unictype/categ_Pi.c: New file.
9697 * lib/unictype/categ_Po.c: New file.
9698 * lib/unictype/categ_Ps.c: New file.
9699 * lib/unictype/categ_S.c: New file.
9700 * lib/unictype/categ_Sc.c: New file.
9701 * lib/unictype/categ_Sk.c: New file.
9702 * lib/unictype/categ_Sm.c: New file.
9703 * lib/unictype/categ_So.c: New file.
9704 * lib/unictype/categ_Z.c: New file.
9705 * lib/unictype/categ_Zl.c: New file.
9706 * lib/unictype/categ_Zp.c: New file.
9707 * lib/unictype/categ_Zs.c: New file.
9708 * lib/unictype/categ_and.c: New file.
9709 * lib/unictype/categ_and_not.c: New file.
9710 * lib/unictype/categ_byname.c: New file.
9711 * lib/unictype/categ_name.c: New file.
9712 * lib/unictype/categ_none.c: New file.
9713 * lib/unictype/categ_of.c: New file.
9714 * lib/unictype/categ_or.c: New file.
9715 * lib/unictype/categ_test.c: New file.
9716 * lib/unictype/combining.c: New file.
9717 * lib/unictype/ctype_alnum.c: New file.
9718 * lib/unictype/ctype_alpha.c: New file.
9719 * lib/unictype/ctype_blank.c: New file.
9720 * lib/unictype/ctype_cntrl.c: New file.
9721 * lib/unictype/ctype_digit.c: New file.
9722 * lib/unictype/ctype_graph.c: New file.
9723 * lib/unictype/ctype_lower.c: New file.
9724 * lib/unictype/ctype_print.c: New file.
9725 * lib/unictype/ctype_punct.c: New file.
9726 * lib/unictype/ctype_space.c: New file.
9727 * lib/unictype/ctype_upper.c: New file.
9728 * lib/unictype/ctype_xdigit.c: New file.
9729 * lib/unictype/decdigit.c: New file.
9730 * lib/unictype/digit.c: New file.
9731 * lib/unictype/identsyntaxmap.h: New file.
9732 * lib/unictype/mirror.c: New file.
9733 * lib/unictype/numeric.c: New file.
9734 * lib/unictype/pr_alphabetic.c: New file.
9735 * lib/unictype/pr_ascii_hex_digit.c: New file.
9736 * lib/unictype/pr_bidi_arabic_digit.c: New file.
9737 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
9738 * lib/unictype/pr_bidi_block_separator.c: New file.
9739 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
9740 * lib/unictype/pr_bidi_common_separator.c: New file.
9741 * lib/unictype/pr_bidi_control.c: New file.
9742 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
9743 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
9744 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
9745 * lib/unictype/pr_bidi_european_digit.c: New file.
9746 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
9747 * lib/unictype/pr_bidi_left_to_right.c: New file.
9748 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
9749 * lib/unictype/pr_bidi_other_neutral.c: New file.
9750 * lib/unictype/pr_bidi_pdf.c: New file.
9751 * lib/unictype/pr_bidi_segment_separator.c: New file.
9752 * lib/unictype/pr_bidi_whitespace.c: New file.
9753 * lib/unictype/pr_byname.c: New file.
9754 * lib/unictype/pr_byname.gperf: New file.
9755 * lib/unictype/pr_combining.c: New file.
9756 * lib/unictype/pr_composite.c: New file.
9757 * lib/unictype/pr_currency_symbol.c: New file.
9758 * lib/unictype/pr_dash.c: New file.
9759 * lib/unictype/pr_decimal_digit.c: New file.
9760 * lib/unictype/pr_default_ignorable_code_point.c: New file.
9761 * lib/unictype/pr_deprecated.c: New file.
9762 * lib/unictype/pr_diacritic.c: New file.
9763 * lib/unictype/pr_extender.c: New file.
9764 * lib/unictype/pr_format_control.c: New file.
9765 * lib/unictype/pr_grapheme_base.c: New file.
9766 * lib/unictype/pr_grapheme_extend.c: New file.
9767 * lib/unictype/pr_grapheme_link.c: New file.
9768 * lib/unictype/pr_hex_digit.c: New file.
9769 * lib/unictype/pr_hyphen.c: New file.
9770 * lib/unictype/pr_id_continue.c: New file.
9771 * lib/unictype/pr_id_start.c: New file.
9772 * lib/unictype/pr_ideographic.c: New file.
9773 * lib/unictype/pr_ids_binary_operator.c: New file.
9774 * lib/unictype/pr_ids_trinary_operator.c: New file.
9775 * lib/unictype/pr_ignorable_control.c: New file.
9776 * lib/unictype/pr_iso_control.c: New file.
9777 * lib/unictype/pr_join_control.c: New file.
9778 * lib/unictype/pr_left_of_pair.c: New file.
9779 * lib/unictype/pr_line_separator.c: New file.
9780 * lib/unictype/pr_logical_order_exception.c: New file.
9781 * lib/unictype/pr_lowercase.c: New file.
9782 * lib/unictype/pr_math.c: New file.
9783 * lib/unictype/pr_non_break.c: New file.
9784 * lib/unictype/pr_not_a_character.c: New file.
9785 * lib/unictype/pr_numeric.c: New file.
9786 * lib/unictype/pr_other_alphabetic.c: New file.
9787 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
9788 * lib/unictype/pr_other_grapheme_extend.c: New file.
9789 * lib/unictype/pr_other_id_continue.c: New file.
9790 * lib/unictype/pr_other_id_start.c: New file.
9791 * lib/unictype/pr_other_lowercase.c: New file.
9792 * lib/unictype/pr_other_math.c: New file.
9793 * lib/unictype/pr_other_uppercase.c: New file.
9794 * lib/unictype/pr_paired_punctuation.c: New file.
9795 * lib/unictype/pr_paragraph_separator.c: New file.
9796 * lib/unictype/pr_pattern_syntax.c: New file.
9797 * lib/unictype/pr_pattern_white_space.c: New file.
9798 * lib/unictype/pr_private_use.c: New file.
9799 * lib/unictype/pr_punctuation.c: New file.
9800 * lib/unictype/pr_quotation_mark.c: New file.
9801 * lib/unictype/pr_radical.c: New file.
9802 * lib/unictype/pr_sentence_terminal.c: New file.
9803 * lib/unictype/pr_soft_dotted.c: New file.
9804 * lib/unictype/pr_space.c: New file.
9805 * lib/unictype/pr_terminal_punctuation.c: New file.
9806 * lib/unictype/pr_test.c: New file.
9807 * lib/unictype/pr_titlecase.c: New file.
9808 * lib/unictype/pr_unassigned_code_value.c: New file.
9809 * lib/unictype/pr_unified_ideograph.c: New file.
9810 * lib/unictype/pr_uppercase.c: New file.
9811 * lib/unictype/pr_variation_selector.c: New file.
9812 * lib/unictype/pr_white_space.c: New file.
9813 * lib/unictype/pr_xid_continue.c: New file.
9814 * lib/unictype/pr_xid_start.c: New file.
9815 * lib/unictype/pr_zero_width.c: New file.
9816 * lib/unictype/scripts.c: New file.
9817 * lib/unictype/sy_c_ident.c: New file.
9818 * lib/unictype/sy_c_whitespace.c: New file.
9819 * lib/unictype/sy_java_ident.c: New file.
9820 * lib/unictype/sy_java_whitespace.c: New file.
9822 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
9824 * lib/unictype/blocks.h: Likewise.
9825 * lib/unictype/categ_C.h: Likewise.
9826 * lib/unictype/categ_Cc.h: Likewise.
9827 * lib/unictype/categ_Cf.h: Likewise.
9828 * lib/unictype/categ_Cn.h: Likewise.
9829 * lib/unictype/categ_Co.h: Likewise.
9830 * lib/unictype/categ_Cs.h: Likewise.
9831 * lib/unictype/categ_L.h: Likewise.
9832 * lib/unictype/categ_Ll.h: Likewise.
9833 * lib/unictype/categ_Lm.h: Likewise.
9834 * lib/unictype/categ_Lo.h: Likewise.
9835 * lib/unictype/categ_Lt.h: Likewise.
9836 * lib/unictype/categ_Lu.h: Likewise.
9837 * lib/unictype/categ_M.h: Likewise.
9838 * lib/unictype/categ_Mc.h: Likewise.
9839 * lib/unictype/categ_Me.h: Likewise.
9840 * lib/unictype/categ_Mn.h: Likewise.
9841 * lib/unictype/categ_N.h: Likewise.
9842 * lib/unictype/categ_Nd.h: Likewise.
9843 * lib/unictype/categ_Nl.h: Likewise.
9844 * lib/unictype/categ_No.h: Likewise.
9845 * lib/unictype/categ_P.h: Likewise.
9846 * lib/unictype/categ_Pc.h: Likewise.
9847 * lib/unictype/categ_Pd.h: Likewise.
9848 * lib/unictype/categ_Pe.h: Likewise.
9849 * lib/unictype/categ_Pf.h: Likewise.
9850 * lib/unictype/categ_Pi.h: Likewise.
9851 * lib/unictype/categ_Po.h: Likewise.
9852 * lib/unictype/categ_Ps.h: Likewise.
9853 * lib/unictype/categ_S.h: Likewise.
9854 * lib/unictype/categ_Sc.h: Likewise.
9855 * lib/unictype/categ_Sk.h: Likewise.
9856 * lib/unictype/categ_Sm.h: Likewise.
9857 * lib/unictype/categ_So.h: Likewise.
9858 * lib/unictype/categ_Z.h: Likewise.
9859 * lib/unictype/categ_Zl.h: Likewise.
9860 * lib/unictype/categ_Zp.h: Likewise.
9861 * lib/unictype/categ_Zs.h: Likewise.
9862 * lib/unictype/categ_of.h: Likewise.
9863 * lib/unictype/combining.h: Likewise.
9864 * lib/unictype/ctype_alnum.h: Likewise.
9865 * lib/unictype/ctype_alpha.h: Likewise.
9866 * lib/unictype/ctype_blank.h: Likewise.
9867 * lib/unictype/ctype_cntrl.h: Likewise.
9868 * lib/unictype/ctype_digit.h: Likewise.
9869 * lib/unictype/ctype_graph.h: Likewise.
9870 * lib/unictype/ctype_lower.h: Likewise.
9871 * lib/unictype/ctype_print.h: Likewise.
9872 * lib/unictype/ctype_punct.h: Likewise.
9873 * lib/unictype/ctype_space.h: Likewise.
9874 * lib/unictype/ctype_upper.h: Likewise.
9875 * lib/unictype/ctype_xdigit.h: Likewise.
9876 * lib/unictype/decdigit.h: Likewise.
9877 * lib/unictype/digit.h: Likewise.
9878 * lib/unictype/mirror.h: Likewise.
9879 * lib/unictype/numeric.h: Likewise.
9880 * lib/unictype/pr_alphabetic.h: Likewise.
9881 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9882 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9883 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9884 * lib/unictype/pr_bidi_block_separator.h: Likewise.
9885 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9886 * lib/unictype/pr_bidi_common_separator.h: Likewise.
9887 * lib/unictype/pr_bidi_control.h: Likewise.
9888 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9889 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9890 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9891 * lib/unictype/pr_bidi_european_digit.h: Likewise.
9892 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9893 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9894 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9895 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9896 * lib/unictype/pr_bidi_pdf.h: Likewise.
9897 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9898 * lib/unictype/pr_bidi_whitespace.h: Likewise.
9899 * lib/unictype/pr_combining.h: Likewise.
9900 * lib/unictype/pr_composite.h: Likewise.
9901 * lib/unictype/pr_currency_symbol.h: Likewise.
9902 * lib/unictype/pr_dash.h: Likewise.
9903 * lib/unictype/pr_decimal_digit.h: Likewise.
9904 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
9905 * lib/unictype/pr_deprecated.h: Likewise.
9906 * lib/unictype/pr_diacritic.h: Likewise.
9907 * lib/unictype/pr_extender.h: Likewise.
9908 * lib/unictype/pr_format_control.h: Likewise.
9909 * lib/unictype/pr_grapheme_base.h: Likewise.
9910 * lib/unictype/pr_grapheme_extend.h: Likewise.
9911 * lib/unictype/pr_grapheme_link.h: Likewise.
9912 * lib/unictype/pr_hex_digit.h: Likewise.
9913 * lib/unictype/pr_hyphen.h: Likewise.
9914 * lib/unictype/pr_id_continue.h: Likewise.
9915 * lib/unictype/pr_id_start.h: Likewise.
9916 * lib/unictype/pr_ideographic.h: Likewise.
9917 * lib/unictype/pr_ids_binary_operator.h: Likewise.
9918 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
9919 * lib/unictype/pr_ignorable_control.h: Likewise.
9920 * lib/unictype/pr_iso_control.h: Likewise.
9921 * lib/unictype/pr_join_control.h: Likewise.
9922 * lib/unictype/pr_left_of_pair.h: Likewise.
9923 * lib/unictype/pr_line_separator.h: Likewise.
9924 * lib/unictype/pr_logical_order_exception.h: Likewise.
9925 * lib/unictype/pr_lowercase.h: Likewise.
9926 * lib/unictype/pr_math.h: Likewise.
9927 * lib/unictype/pr_non_break.h: Likewise.
9928 * lib/unictype/pr_not_a_character.h: Likewise.
9929 * lib/unictype/pr_numeric.h: Likewise.
9930 * lib/unictype/pr_other_alphabetic.h: Likewise.
9931 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
9932 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
9933 * lib/unictype/pr_other_id_continue.h: Likewise.
9934 * lib/unictype/pr_other_id_start.h: Likewise.
9935 * lib/unictype/pr_other_lowercase.h: Likewise.
9936 * lib/unictype/pr_other_math.h: Likewise.
9937 * lib/unictype/pr_other_uppercase.h: Likewise.
9938 * lib/unictype/pr_paired_punctuation.h: Likewise.
9939 * lib/unictype/pr_paragraph_separator.h: Likewise.
9940 * lib/unictype/pr_pattern_syntax.h: Likewise.
9941 * lib/unictype/pr_pattern_white_space.h: Likewise.
9942 * lib/unictype/pr_private_use.h: Likewise.
9943 * lib/unictype/pr_punctuation.h: Likewise.
9944 * lib/unictype/pr_quotation_mark.h: Likewise.
9945 * lib/unictype/pr_radical.h: Likewise.
9946 * lib/unictype/pr_sentence_terminal.h: Likewise.
9947 * lib/unictype/pr_soft_dotted.h: Likewise.
9948 * lib/unictype/pr_space.h: Likewise.
9949 * lib/unictype/pr_terminal_punctuation.h: Likewise.
9950 * lib/unictype/pr_titlecase.h: Likewise.
9951 * lib/unictype/pr_unassigned_code_value.h: Likewise.
9952 * lib/unictype/pr_unified_ideograph.h: Likewise.
9953 * lib/unictype/pr_uppercase.h: Likewise.
9954 * lib/unictype/pr_variation_selector.h: Likewise.
9955 * lib/unictype/pr_white_space.h: Likewise.
9956 * lib/unictype/pr_xid_continue.h: Likewise.
9957 * lib/unictype/pr_xid_start.h: Likewise.
9958 * lib/unictype/pr_zero_width.h: Likewise.
9959 * lib/unictype/scripts.h: Likewise.
9960 * lib/unictype/scripts_byname.gperf: Likewise.
9961 * lib/unictype/sy_c_ident.h: Likewise.
9962 * lib/unictype/sy_c_whitespace.h: Likewise.
9963 * lib/unictype/sy_java_ident.h: Likewise.
9964 * lib/unictype/sy_java_whitespace.h: Likewise.
9966 * lib/unictype/Makefile: New file.
9967 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
9969 * lib/unictype/3level.h: New file, copied from glibc.
9970 * lib/unictype/3levelbit.h: New file.
9972 2007-11-11 Bruno Haible <bruno@clisp.org>
9974 * modules/gperf: New file.
9975 * modules/iconv_open (Depends-on): Add it.
9976 (Makefile.am): Remove the GPERF definition.
9978 2007-11-11 Bruno Haible <bruno@clisp.org>
9980 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
9981 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
9983 2007-11-11 Bruno Haible <bruno@clisp.org>
9985 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
9986 (usage): Remove function.
9988 2007-11-11 Bruno Haible <bruno@clisp.org>
9990 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
9992 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
9994 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
9996 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
9997 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
9998 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
10000 2007-11-11 Bruno Haible <bruno@clisp.org>
10002 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
10003 roundf were declared but do not exist on functions.
10004 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
10005 roundl were declared but do not exist on functions.
10006 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
10007 HAVE_FLOORL_AND_CEILL, respectively.
10008 Needed for Sun C on Solaris 10.
10010 2007-11-11 Bruno Haible <bruno@clisp.org>
10012 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
10013 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
10014 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
10015 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
10016 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
10017 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
10018 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
10020 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
10021 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
10022 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
10023 of HAVE_DECL_ROUND*.
10024 * modules/math (Makefile.am): Update.
10026 2007-11-10 Bruno Haible <bruno@clisp.org>
10028 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
10029 ptrdiff_t as m4/intl.m4.
10031 2007-11-10 Jim Meyering <meyering@redhat.com>
10033 Avoid link failure for the argmatch test.
10034 * tests/test-argmatch.c (usage): Define function to avoid a link
10035 failure: argmatch_die requires a usage function.
10037 2007-11-09 Bruno Haible <bruno@clisp.org>
10039 * doc/functions/snprintf.texi: Mention BeOS deficiency.
10040 * doc/functions/vsnprintf.texi: Likewise.
10041 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
10042 with a size argument < 2.
10044 2007-11-09 Bruno Haible <bruno@clisp.org>
10046 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
10047 buffer. Fixes an inefficiency introduced on 2007-11-03.
10049 2007-11-09 Bruno Haible <bruno@clisp.org>
10051 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
10052 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
10054 2007-11-08 Jim Meyering <meyering@redhat.com>
10056 Change cache variable name prefix "jm_" to "gl_" everywhere.
10057 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
10058 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
10059 * m4/uptime.m4: s/gl_/jm_/
10061 2007-11-07 Bruno Haible <bruno@clisp.org>
10063 Update to GNU gettext 0.17.
10064 * m4/intl.m4: Update to GNU gettext 0.17.
10065 * m4/po.m4: Likewise.
10066 * modules/gettext (Files): Remove m4/ulonglong.m4.
10067 (configure.ac): Require gettext infrastructure from version 0.17.
10069 2007-11-06 Bruno Haible <bruno@clisp.org>
10071 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
10072 symbolic values are not defined in a public header.
10073 * lib/freadable.c (freadable) [QNX]: Likewise.
10074 * lib/freadahead.c (freadahead) [QNX]: Likewise.
10075 * lib/freading.c (freading) [QNX]: Likewise.
10076 * lib/fseterr.c (fseterr) [QNX]: Likewise.
10077 * lib/fwritable.c (fwritable) [QNX]: Likewise.
10078 * lib/fwriting.c (fwriting) [QNX]: Likewise.
10079 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
10080 Reported by Alain Magloire.
10082 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
10084 2007-11-05 Bruno Haible <bruno@clisp.org>
10086 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
10087 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
10088 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
10089 Reported by Eric Blake.
10091 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10092 Bruno Haible <bruno@clisp.org>
10094 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
10095 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
10096 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
10097 (malloc): Undefine also before including <stdlib.h>.
10098 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
10099 Needed on OSF/1 4.0.
10101 2007-11-05 Jim Meyering <meyering@redhat.com>
10103 git-version-gen: sync from coreutils.
10104 * build-aux/git-version-gen: Add comments.
10105 Change the first '-' to '.' in the snapshot version string,
10106 e.g., 6.9-377-08144 -> 6.9.377-08144
10107 Remove first parameter.
10108 Don't declare a version "-dirty" merely because a time
10111 2007-11-04 Bruno Haible <bruno@clisp.org>
10113 * lib/lock.h: Protect all macro definitions containing an 'if'
10114 statement through a "do { ... } while (0)".
10115 * lib/tls.h: Likewise.
10117 2007-11-04 Bruno Haible <bruno@clisp.org>
10119 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
10121 2007-11-04 Bruno Haible <bruno@clisp.org>
10123 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
10124 * modules/fprintf-posix (Depends-on): Add nocrash.
10125 * modules/snprintf-posix (Depends-on): Likewise.
10126 * modules/sprintf-posix (Depends-on): Likewise.
10127 * modules/vasnprintf-posix (Depends-on): Likewise.
10128 * modules/vasprintf-posix (Depends-on): Likewise.
10129 * modules/vfprintf-posix (Depends-on): Likewise.
10130 * modules/vsnprintf-posix (Depends-on): Likewise.
10131 * modules/vsprintf-posix (Depends-on): Likewise.
10132 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10133 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10134 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10135 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10136 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10137 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10138 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10140 2007-11-04 Bruno Haible <bruno@clisp.org>
10142 * modules/nocrash: New file.
10143 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
10144 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
10146 2007-11-04 Bruno Haible <bruno@clisp.org>
10148 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
10149 precision handling.
10150 * tests/test-vasprintf-posix.c (test_function): Likewise.
10151 * tests/test-snprintf-posix.h (test_function): Likewise.
10152 * tests/test-sprintf-posix.h (test_function): Likewise.
10154 Fix *printf behaviour for large precisions on mingw and BeOS.
10155 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
10156 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
10157 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
10158 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
10159 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10160 gl_PRINTF_PRECISION and test its result. Invoke
10161 gl_PREREQ_VASNPRINTF_PRECISION.
10162 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10163 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10164 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10165 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10166 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10167 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10168 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10169 * doc/functions/fprintf.texi: Update.
10170 * doc/functions/printf.texi: Update.
10171 * doc/functions/snprintf.texi: Update.
10172 * doc/functions/sprintf.texi: Update.
10173 * doc/functions/vfprintf.texi: Update.
10174 * doc/functions/vprintf.texi: Update.
10175 * doc/functions/vsnprintf.texi: Update.
10176 * doc/functions/vsprintf.texi: Update.
10178 2007-11-04 Bruno Haible <bruno@clisp.org>
10180 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
10182 2007-11-04 Bruno Haible <bruno@clisp.org>
10184 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
10185 Reported by Sylvain Beucler <beuc@gnu.org>.
10187 2007-11-03 Bruno Haible <bruno@clisp.org>
10189 * tests/test-fprintf-posix2.sh: New file.
10190 * tests/test-fprintf-posix2.c: New file.
10191 * modules/fprintf-posix-tests (Files): Add them.
10192 (TESTS): Add test-fprintf-posix2.sh.
10193 (configure.ac): Check for getrlimit and setrlimit.
10194 (check_PROGRAMS): Add test-fprintf-posix2.
10196 * tests/test-printf-posix2.sh: New file.
10197 * tests/test-printf-posix2.c: New file.
10198 * modules/printf-posix-tests (Files): Add them.
10199 (TESTS): Add test-printf-posix2.sh.
10200 (configure.ac): Check for getrlimit and setrlimit.
10201 (check_PROGRAMS): Add test-printf-posix2.
10203 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
10204 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
10205 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
10206 (decode_double): New function, copied from decode_long_double.
10207 (scale10_round_decimal_decoded): New function, extracted from
10208 scale10_round_decimal_long_double.
10209 (scale10_round_decimal_long_double): Use it.
10210 (scale10_round_decimal_double): New function.
10211 (floorlog10): New function.
10212 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
10213 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
10214 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
10215 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10216 gl_PRINTF_ENOMEM and test its result. Invoke
10217 gl_PREREQ_VASNPRINTF_ENOMEM.
10218 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10219 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10220 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10221 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10222 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10223 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10224 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10225 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
10226 * modules/snprintf-posix (Depends-on): Likewise.
10227 * modules/sprintf-posix (Depends-on): Likewise.
10228 * modules/vasnprintf-posix (Depends-on): Likewise.
10229 * modules/vasprintf-posix (Depends-on): Likewise.
10230 * modules/vfprintf-posix (Depends-on): Likewise.
10231 * modules/vsnprintf-posix (Depends-on): Likewise.
10232 * modules/vsprintf-posix (Depends-on): Likewise.
10233 * doc/functions/fprintf.texi: Update.
10234 * doc/functions/printf.texi: Update.
10235 * doc/functions/snprintf.texi: Update.
10236 * doc/functions/sprintf.texi: Update.
10237 * doc/functions/vfprintf.texi: Update.
10238 * doc/functions/vprintf.texi: Update.
10239 * doc/functions/vsnprintf.texi: Update.
10240 * doc/functions/vsprintf.texi: Update.
10242 2007-11-03 Bruno Haible <bruno@clisp.org>
10244 * modules/frexp-nolibm-tests: New file.
10246 * modules/frexp-nolibm: New file.
10247 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
10249 2007-11-03 Bruno Haible <bruno@clisp.org>
10251 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
10252 value is C99 compliant.
10253 Needed for OSF/1 5.1.
10255 2007-11-03 Bruno Haible <bruno@clisp.org>
10257 Fix out-of-memory handling of vasnprintf.
10258 * lib/printf-parse.c: Include <errno.h>.
10259 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
10260 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
10263 2007-11-02 Eric Blake <ebb9@byu.net>
10265 Fix tests on cygwin.
10266 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
10268 2007-11-01 Bruno Haible <bruno@clisp.org>
10270 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
10272 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
10273 needed for POSIX compatibility.
10275 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
10277 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
10278 for compatibility with GNU.
10280 2007-11-01 Bruno Haible <bruno@clisp.org>
10282 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
10283 (putenv): Renamed from rpl_putenv. Change argument type from
10284 'const char *' to 'char *'.
10285 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
10286 of defining putenv in config.h, just set REPLACE_PUTENV.
10287 * modules/putenv (Depends-on): Add stdlib.
10288 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10289 (Include): Use <stdlib.h>.
10290 * lib/stdlib.in.h (putenv): New declaration.
10291 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
10293 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
10295 Needed for MacOS X 10.5.0.
10296 Reported by Peter O'Gorman <peter@pogma.com>.
10298 2007-11-01 Jim Meyering <meyering@redhat.com>
10300 Treat an empty date string exactly like "0".
10301 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
10302 if the remaining date string (to be parsed) is empty, use "0".
10303 Reported by Mischa Molhoek and discussed in this thread:
10304 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
10306 2007-10-31 Bruno Haible <bruno@clisp.org>
10308 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
10309 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
10310 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
10311 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
10312 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
10313 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
10315 2007-10-31 Bruno Haible <bruno@clisp.org>
10317 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
10318 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
10319 (AC_TYPE_LONG_LONG_INT): Use it.
10320 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
10322 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
10324 * modules/stdint (Files): Remove m4/ulonglong.m4.
10325 * modules/strtoull (Files): Use m4/longlong.m4 instead of
10327 * modules/strtoumax (Files): Likewise.
10329 2007-10-30 Bruno Haible <bruno@clisp.org>
10331 * modules/xvasprintf-posix: New file.
10332 Suggested by Eric Blake.
10334 2007-10-30 Bruno Haible <bruno@clisp.org>
10336 * modules/xprintf-posix-tests: New file.
10337 * tests/test-xprintf-posix.sh: New file.
10338 * tests/test-xprintf-posix.c: New file.
10339 * tests/test-xfprintf-posix.c: New file.
10341 * modules/xprintf-posix: New file.
10343 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10345 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
10346 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
10347 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
10349 2007-10-29 Bruno Haible <bruno@clisp.org>
10351 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
10352 contain the special marker '_cv_'.
10353 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10354 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10355 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10356 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10357 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10358 Reported by Ralf Wildenhues.
10360 2007-10-29 Bruno Haible <bruno@clisp.org>
10362 * gnulib-tool (func_import): When --lgpl is not specified, set
10363 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
10365 Reported by Simon Josefsson.
10367 2007-10-28 Bruno Haible <bruno@clisp.org>
10369 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
10370 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
10371 HAVE_DECL_ISFINITE.
10372 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10373 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
10374 HAVE_DECL_ISFINITE.
10376 2007-10-28 Bruno Haible <bruno@clisp.org>
10378 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
10379 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
10381 2007-10-28 Bruno Haible <bruno@clisp.org>
10383 Fix link errors with Sun C 5.0 on Solaris 10.
10384 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
10385 function is declared but not present in the compiler's libm.
10386 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10387 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10388 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
10389 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
10390 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
10391 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
10392 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
10393 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10394 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
10395 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
10396 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
10399 2007-10-28 Bruno Haible <bruno@clisp.org>
10401 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
10402 gl_FUNC_FLOORL. Cache the result.
10403 (gl_FUNC_FLOORL): Use it.
10404 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
10405 gl_FUNC_CEILL. Cache the result.
10406 (gl_FUNC_CEILL): Use it.
10408 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
10409 gl_FUNC_FLOOR. Cache the result.
10410 (gl_FUNC_FLOOR): Use it.
10411 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
10412 gl_FUNC_CEIL. Cache the result.
10413 (gl_FUNC_CEIL): Use it.
10415 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
10416 gl_FUNC_FLOORF. Cache the result.
10417 (gl_FUNC_FLOORF): Use it.
10418 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
10419 gl_FUNC_CEILF. Cache the result.
10420 (gl_FUNC_CEILF): Use it.
10422 2007-10-28 Bruno Haible <bruno@clisp.org>
10424 * gnulib-tool: Allow specifying the LGPL version number through
10425 --lgpl=2 or --lgpl=3.
10426 (func_usage): Document --lgpl with argument.
10427 Handle --lgpl=... arguments.
10428 (func_import): Recognize also gl_LGPL calls with an argument. When
10429 --lgpl=2 is used and the module's license is just LGPL, report an
10430 error. Set sed_transform_lib_file according to the lgpl variable. In
10431 the generated files, use --lgpl or gl_LGPL invocations with argument,
10433 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
10435 * doc/gnulib-tool.texi (Modified imports): Update explanation of
10438 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10439 Bruno Haible <bruno@clisp.org>
10441 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
10442 (u16_uctomb_aux): Likewise.
10443 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
10445 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
10447 2007-10-28 Bruno Haible <bruno@clisp.org>
10449 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
10450 Invoke AM_GETTEXT_OPTION if it exists.
10451 * modules/vasprintf: Likewise.
10452 * modules/verror: Likewise.
10453 * modules/xprintf: Likewise.
10454 * modules/xvasprintf: Likewise.
10456 2007-10-27 Ben Pfaff <blp@gnu.org>
10458 * lib/math.in.h: Define isfinite macro and prototypes for
10459 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
10461 * m4/math_h.m4: New substitutions for isfinite module.
10462 * lib/isfinite.c: New file.
10463 * m4/isfinite.m4: New file.
10464 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
10465 * modules/isfinite: New file.
10466 * modules/isfinite-tests: New file.
10467 * tests/tests-isfinite.c: New file.
10468 * doc/functions/isfinite.texi: Mention isfinite module.
10469 * MODULES.html.sh: Mention new module.
10471 2007-10-27 Ben Pfaff <blp@gnu.org>
10473 Ralf Wildenhues reported that Tru64 4.0D declares the round
10474 functions but does not have definitions.
10475 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
10476 cannot be found in any library, set the output variable to
10477 "missing" instead of "".
10478 * m4/round.m4: Also use our substitute if we cannot find round in
10479 any library, even if it is declared.
10480 * m4/roundf.m4: Likewise for roundf.
10481 * m4/roundl.m4: Likewise for roundl.
10482 * lib/math.in.h: Undefine roundf, round, roundl before defining
10483 their replacements, to allow for hypothetical systems where these
10484 may be defined as macros but not available in libraries.
10486 2007-10-27 Bruno Haible <bruno@clisp.org>
10488 * doc/gnulib.texi: Invoke @firstparagraphindent.
10489 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
10491 (Source changes): New section.
10493 2007-10-26 Bruno Haible <bruno@clisp.org>
10495 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
10496 borrowed from autoconf.
10498 2007-10-26 Bruno Haible <bruno@clisp.org>
10500 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
10501 strerror returned the empty string. Needed on HP-UX 11.00.
10503 2007-10-24 Micah Cowan <micah@cowan.name>
10505 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
10506 * build-aux/bootstrap: Remove support for now-unnecessary option,
10507 --cvs-user, and envvars CVS_USER, CVS_RSH.
10509 2007-10-24 Jim Meyering <meyering@redhat.com>
10511 Avoid diagnostics from sha1sum when there is no cached checksum.
10512 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
10513 if the po.s1 file hasn't been created yet.
10515 * build-aux/bootstrap: Sync from coreutils:
10516 2007-10-24 Jim Meyering <meyering@redhat.com>
10517 Get gnulib from the git repository, not from an obsolete cvs one.
10518 * build-aux/bootstrap: Suggestion from Micah Cowan.
10519 2007-10-04 Jim Meyering <jim@meyering.net>
10520 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
10521 (update_po_files): Work also when there are no .po files in po/.
10523 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
10525 * README: Append ".git" to git and cg examples.
10526 Problem reported by Benoit Sigoure.
10528 2007-10-23 Micah Cowan <micah@cowan.name>
10530 * users.txt: Add wget.
10532 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10534 Fix linking of some unistdio tests on FreeBSD.
10535 * modules/unistdio/u16-vsnprintf-tests
10536 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
10537 * modules/unistdio/u16-vsprintf-tests
10538 (test_u16_vsnprintf1_LDADD): Likewise.
10539 * modules/unistdio/u32-vsnprintf-tests
10540 (test_u32_vsnprintf1_LDADD): Likewise.
10541 * modules/unistdio/u32-vsprintf-tests
10542 (test_u32_vsprintf1_LDADD): Likewise.
10543 * modules/unistdio/u8-vsnprintf-tests
10544 (test_u8_vsnprintf1_LDADD): Likewise.
10545 * modules/unistdio/u8-vsprintf-tests
10546 (test_u8_vsprintf1_LDADD): Likewise.
10547 * modules/unistdio/ulc-vsnprintf-tests
10548 (test_ulc_vsnprintf1_LDADD): Likewise.
10549 * modules/unistdio/ulc-vsprintf-tests
10550 (test_ulc_vsprintf1_LDADD): Likewise.
10552 Fix linking of some uniconv tests on FreeBSD.
10553 * modules/uniconv/u16-conv-from-enc-tests
10554 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
10555 * modules/uniconv/u16-conv-to-enc-tests
10556 (test_u16_conv_to_enc_LDADD): Likewise.
10557 * modules/uniconv/u16-strconv-from-enc-tests
10558 (test_u16_strconv_from_enc_LDADD): Likewise.
10559 * modules/uniconv/u16-strconv-to-enc-tests
10560 (test_u16_strconv_to_enc_LDADD): Likewise.
10561 * modules/uniconv/u32-conv-from-enc-tests
10562 (test_u32_conv_from_enc_LDADD): Likewise.
10563 * modules/uniconv/u32-conv-to-enc-tests
10564 (test_u32_conv_to_enc_LDADD): Likewise.
10565 * modules/uniconv/u32-strconv-from-enc-tests
10566 (test_u32_strconv_from_enc_LDADD): Likewise.
10567 * modules/uniconv/u32-strconv-to-enc-tests
10568 (test_u32_strconv_to_enc_LDADD): Likewise.
10569 * modules/uniconv/u8-conv-from-enc-tests
10570 (test_u8_conv_from_enc_LDADD): Likewise.
10571 * modules/uniconv/u8-conv-to-enc-tests
10572 (test_u8_conv_to_enc_LDADD): Likewise.
10573 * modules/uniconv/u8-strconv-from-enc-tests
10574 (test_u8_strconv_from_enc_LDADD): Likewise.
10575 * modules/uniconv/u8-strconv-to-enc-tests
10576 (test_u8_strconv_to_enc_LDADD): Likewise.
10578 2007-10-22 Bruno Haible <bruno@clisp.org>
10580 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
10583 2007-10-22 Eric Blake <ebb9@byu.net>
10585 Tweak x*printf documentation.
10586 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
10587 variable name and comments.
10588 Suggested by Bruno Haible.
10590 2007-10-22 Bruno Haible <bruno@clisp.org>
10592 * lib/acl.c (copy_acl): Fix file name in comment.
10594 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
10596 Fix Tru64 problem with stdbool.h.
10597 * lib/stdbool.in.h (false, true):
10598 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
10599 Don't declare as an enum in this situation; it runs afoul of Tru64.
10600 Problem reported by Steven M. Schweda in
10601 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
10603 2007-10-22 Eric Blake <ebb9@byu.net>
10605 Also wrap vf?printf.
10606 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
10607 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
10608 (xvprintf, xvfprintf): New functions.
10610 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10612 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
10613 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
10615 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
10616 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
10618 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
10620 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
10623 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10626 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
10627 Undef `sys' after including sys/table.h, for Tru64 4.0D.
10629 * tests/test-i-ring.c: Work for C89.
10631 2007-10-22 Bruno Haible <bruno@clisp.org>
10633 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
10634 -1u, in preprocessor expression, so that we don't test for the bug
10635 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
10636 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
10638 2007-10-22 Eric Blake <ebb9@byu.net>
10640 * tests/test-yesno.sh: Silence stderr during test.
10642 2007-10-22 Simon Josefsson <simon@josefsson.org>
10644 * modules/crypto/gc-camellia: New file.
10646 * m4/gc-camellia.m4: New file.
10648 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
10650 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
10652 2007-10-22 Simon Josefsson <simon@josefsson.org>
10654 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
10655 --help to stdout. Reported by sms@antinode.org (Steven
10658 2007-10-22 Simon Josefsson <simon@josefsson.org>
10660 * users.txt: Fix link to libksba.
10662 2007-10-21 Ben Pfaff <blp@gnu.org>
10664 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
10665 round.c roundf implementation that depends on floorf and ceilf to
10666 be tested unconditionally.
10668 2007-10-21 Ben Pfaff <blp@gnu.org>
10670 * m4/check-libm-func.m4: Removed.
10671 * m4/check-math-lib.m4: New file.
10672 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
10673 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
10674 definition and lack of AC_LIBOBJ([roundf]).
10675 * m4/roundl.m4: Ditto, and similarly for roundl.
10676 * modules/round: Reference new m4 file.
10677 * modules/roundf: Ditto.
10678 * modules/roundl: Ditto.
10679 * tests/test-round2.c (main): Use ROUND instead of round.
10680 Bug report from Bruno Haible.
10682 2007-10-21 Bruno Haible <bruno@clisp.org>
10684 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
10687 2007-10-21 Bruno Haible <bruno@clisp.org>
10689 * tests/test-wcwidth.c (main): Allow negative result for some control
10692 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
10693 Needed on OSF/1 5.1.
10695 2007-10-21 Bruno Haible <bruno@clisp.org>
10697 * tests/test-floorf1.c: Include isnanf.h.
10698 (main): Use isnanf() instead of isnan().
10699 * tests/test-ceilf1.c: Include isnanf.h.
10700 (main): Use isnanf() instead of isnan().
10701 * tests/test-truncf1.c: Include isnanf.h.
10702 (main): Use isnanf() instead of isnan().
10703 * tests/test-roundf1.c: Include isnanf.h.
10704 (main): Use isnanf() instead of isnan().
10706 2007-10-21 Eric Blake <ebb9@byu.net>
10708 * users.txt: Update URL for m4.
10710 2007-10-21 Bruno Haible <bruno@clisp.org>
10712 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
10714 2007-10-21 Bruno Haible <bruno@clisp.org>
10716 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
10717 Git's management files if the CVS files are not present.
10719 2007-10-20 Bruno Haible <bruno@clisp.org>
10721 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
10724 2007-10-20 Ben Pfaff <blp@gnu.org>
10726 * lib/math.in.h: Declare round, roundf, roundl if we are providing
10728 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
10729 * lib/round.c: New file.
10730 * lib/roundf.c: New file.
10731 * lib/roundl.c: New file.
10732 * m4/round.m4: New file.
10733 * m4/roundf.m4: New file.
10734 * m4/roundl.m4: New file.
10735 * m4/check-libm-func-m4: New file.
10736 * modules/math: Replace round, roundf, roundl related @VARS@ in
10738 * modules/round: New file.
10739 * modules/round-tests: New file.
10740 * modules/roundf: New file.
10741 * modules/roundf-tests: New file.
10742 * modules/roundl: New file.
10743 * modules/roundl-tests: New file.
10744 * tests/test-round1.c: New file.
10745 * tests/test-round2.c: New file.
10746 * tests/test-roundf1.c: New file.
10747 * tests/test-roundf2.c: New file.
10748 * tests/test-roundl.c: New file.
10749 * doc/functions/round.texi: Mention round module.
10750 * doc/functions/roundf.texi: Mention roundf module.
10751 * doc/functions/roundl.texi: Mention roundl module.
10752 * MODULES.html.sh: Mention new modules.
10753 Thanks to Bruno Haible for suggestions.
10755 2007-10-20 Jim Meyering <meyering@redhat.com>
10757 * lib/xprintf.c: Include <config.h> unconditionally.
10759 Change xprintf's license to GPL.
10760 * modules/xprintf (License): s/LGPL/GPL/, since this module
10761 depends on modules (exit and exitfail) which are GPL.
10762 Suggestion from Bruno Haible.
10765 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
10766 Use a clearer diagnostic.
10767 Patch from Bruno Haible.
10769 2007-10-20 Bruno Haible <bruno@clisp.org>
10771 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
10772 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
10773 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10775 2007-10-20 Bruno Haible <bruno@clisp.org>
10777 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
10778 precision in the comparison result > x - 1 or similar.
10779 * tests/test-ceilf2.c (correct_result_p): Likewise.
10780 * tests/test-truncf2.c (correct_result_p): Likewise.
10781 * tests/test-trunc2.c (correct_result_p): Likewise.
10782 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10784 2007-10-20 Bruno Haible <bruno@clisp.org>
10786 * modules/ceil: New file.
10787 * m4/ceil.m4: New file.
10788 * doc/functions/ceil.texi: Mention the 'ceil' module.
10790 2007-10-20 Bruno Haible <bruno@clisp.org>
10792 * modules/floor: New file.
10793 * m4/floor.m4: New file.
10794 * doc/functions/floor.texi: Mention the 'floor' module.
10796 2007-10-20 Bruno Haible <bruno@clisp.org>
10798 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
10800 * modules/floorf-tests (Depends-on): Likewise.
10801 * modules/truncf-tests (Depends-on): Likewise.
10802 * modules/trunc-tests (Depends-on): Likewise.
10803 Reported by Ben Pfaff.
10805 2007-10-19 Jim Meyering <meyering@redhat.com>
10807 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
10808 Don't bother testing specific errno values. Just test ferror.
10810 New module: xprintf
10811 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
10813 2007-10-19 Bruno Haible <bruno@clisp.org>
10815 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
10817 * modules/javaexec (Makefile.am): Likewise.
10818 * modules/relocatable-prog (Makefile.am): Likewise.
10819 Suggested by Jim Meyering.
10821 2007-10-18 Bruno Haible <bruno@clisp.org>
10823 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
10824 Reported by Jim Meyering.
10826 2007-10-18 Eric Blake <ebb9@byu.net>
10828 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
10830 2007-10-18 Bruno Haible <bruno@clisp.org>
10832 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
10833 the format string into writable memory. Needed in Fortify conditions.
10835 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
10836 Bruno Haible <bruno@clisp.org>
10838 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
10839 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
10840 * modules/trim (Depends-on): Add mbchar.
10841 (configure.ac): Add gl_FUNC_MBRTOWC.
10842 (Makefile.am): Augment lib_SOURCES.
10844 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
10846 Modify glob.c to use fstatat and dirfd, to simplify it.
10847 Suggested by Eric Blake.
10848 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
10849 Don't include <stdbool.h>; not used.
10850 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
10851 (link_exists_p): Simplify implementation, since we can now assume
10853 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
10855 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10857 * gnulib-tool (func_get_dependencies): Fix sed script to
10860 2007-10-17 Bruno Haible <bruno@clisp.org>
10862 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
10863 allow locale names without encoding suffix.
10864 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10865 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10867 2007-10-16 Bruno Haible <bruno@clisp.org>
10869 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
10870 * lib/getgroups.c (getgroups): Likewise.
10871 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
10873 2007-10-16 Bruno Haible <bruno@clisp.org>
10875 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
10876 * modules/malloc-posix (License): Likewise.
10877 * modules/realloc-posix (License): Likewise.
10878 * modules/calloc-posix (License): Likewise.
10879 * modules/intprops (License): Change from GPL to LGPL, with
10880 Paul Eggert's approval.
10882 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
10884 Merge glibc changes into lib/glob.c.
10886 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
10887 2007-10-15 04:59:03 UTC. Here are the changes:
10889 2007-10-14 Ulrich Drepper <drepper@redhat.com>
10891 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
10893 * lib/glob.c: Add some branch prediction throughout.
10895 2007-10-07 Ulrich Drepper <drepper@redhat.com>
10898 * lib/glob.c (glob): Recognize patterns starting \/.
10900 2007-02-14 Jakub Jelinek <jakub@redhat.com>
10903 * lib/glob.c (attribute_hidden): Define if not defined.
10904 (glob): Unescape dirname, filename or username when needed and not
10905 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
10906 is NULL. Handle unescaped [ in pattern without closing ].
10907 Don't pass GLOB_CHECK down to recursive glob for directories.
10908 (__glob_pattern_type): New function.
10909 (__glob_pattern_p): Implement using __glob_pattern_type.
10910 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
10911 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
10912 Remove unreachable code.
10914 2006-09-30 Ulrich Drepper <drepper@redhat.com>
10916 * lib/glob.c (glob_in_dir): Add some comments and asserts to
10917 explain why there are no leaks.
10919 2006-09-25 Jakub Jelinek <jakub@redhat.com>
10922 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
10923 time, rather allocate increasingly bigger arrays of pointers, if
10924 possible with alloca, if too large with malloc.
10926 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
10928 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
10929 Problem reported by H.Merijn Brand in
10930 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
10931 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
10932 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
10934 2007-10-15 Bruno Haible <bruno@clisp.org>
10936 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
10937 with explicit rpl_ prefix.
10938 * lib/fopen.c (fopen): Likewise.
10939 * lib/freopen.c (freopen): Likewise.
10940 * lib/iconv.c (iconv): Likewise.
10941 * lib/iconv_close.c (iconv_close): Likewise.
10943 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10945 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
10947 2007-10-15 Bruno Haible <bruno@clisp.org>
10949 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
10950 <stddef.h> instead of <stdlib.h> since we only need NULL.
10951 Reported by Ben Pfaff <blp@cs.stanford.edu>.
10953 2007-10-15 Bruno Haible <bruno@clisp.org>
10955 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
10956 Replace paragraph talking about LIBOBJS.
10957 Reported by Colin Watson <cjwatson@debian.org>.
10959 2007-10-15 Bruno Haible <bruno@clisp.org>
10961 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
10962 <stdlib.h> before using NULL.
10964 2007-10-15 Simon Josefsson <simon@josefsson.org>
10966 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
10967 Reported by Albert Chin <china@thewrittenword.com>.
10969 2007-10-14 Bruno Haible <bruno@clisp.org>
10971 * modules/iconv_open-utf-tests: New file.
10972 * tests/test-iconv-utf.c: New file.
10974 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
10975 * modules/iconv_open-utf: New file.
10976 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
10977 (iconv, iconv_close): New declarations.
10978 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
10980 (iconv_open): Add special handling of conversion between UTF-8 and
10981 UTF-{16,32}{BE,LE}.
10982 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
10983 * lib/iconv_close.c: New file.
10984 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
10985 gl_FUNC_ICONV_OPEN.
10986 (gl_FUNC_ICONV_OPEN): Use it.
10987 (gl_FUNC_ICONV_OPEN_UTF): New macro.
10988 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
10989 and REPLACE_ICONV_UTF.
10990 * modules/iconv_open (Depends-on): Add c-strcase.
10991 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
10993 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
10995 2007-10-13 Albert Chin <china@thewrittenword.com>
10996 Bruno Haible <bruno@clisp.org>
10998 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
10999 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
11001 2007-10-13 Bruno Haible <bruno@clisp.org>
11003 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
11004 defined, use the ISO C99 inline semantics.
11005 * lib/argp.h (ARGP_EI): Likewise.
11007 2007-10-13 Bruno Haible <bruno@clisp.org>
11009 Handle 'inline' change in gcc 4.3.0.
11010 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
11011 argp_fmtstream_write, argp_fmtstream_set_lmargin,
11012 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
11013 argp_fmtstream_point): Disable 'extern' declaration if the function
11014 definition is going to be provided inline.
11015 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
11016 semantics, not the ISO C99 inline semantics.
11017 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
11018 'extern' declaration if the function definition is going to be provided
11020 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
11021 the GNU C inline semantics, not the ISO C99 inline semantics. With
11022 GCC 4.2, avoid a warning.
11024 2007-10-13 Bruno Haible <bruno@clisp.org>
11026 * lib/freading.h (freading): Enable the use of __freading for
11028 * lib/freading.c (freading): Likewise.
11030 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
11032 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
11033 "warning: C99 inline functions are not supported; using GNU89".
11035 2007-10-12 Bruno Haible <bruno@clisp.org>
11037 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
11039 * tests/test-ceilf2.c: New file.
11040 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
11042 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
11043 * modules/ceilf-tests: Update.
11045 2007-10-12 Bruno Haible <bruno@clisp.org>
11047 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
11049 * tests/test-floorf2.c: New file.
11050 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
11052 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
11053 * modules/floorf-tests: Update.
11055 2007-10-12 Bruno Haible <bruno@clisp.org>
11057 * tests/test-trunc2.c: New file.
11058 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
11060 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
11061 * modules/trunc-tests: Update.
11063 2007-10-12 Bruno Haible <bruno@clisp.org>
11065 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
11067 * tests/test-truncf2.c: New file.
11068 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
11070 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
11071 * modules/truncf-tests: Update.
11073 2007-10-11 Eric Blake <ebb9@byu.net>
11075 Don't claim strerror is broken on Interix.
11076 * doc/functions/strerror.texi (strerror): Known broken systems are
11077 now Solaris 8, and not Interix.
11078 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
11079 Interix on cross-compile.
11080 Reported by Martin Koeppe in
11081 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
11083 2007-10-11 Bruno Haible <bruno@clisp.org>
11085 * modules/i-ring-tests: New file.
11086 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
11089 2007-10-11 Bruno Haible <bruno@clisp.org>
11091 * modules/filenamecat-tests: New file.
11092 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
11093 * lib/filenamecat.c: Remove test code.
11095 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
11097 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
11099 * lib/strerror.c: Include <string.h> always, to test interface,
11100 and to remove the need for the dummy.
11101 Include intprops.h to compute width instead of doing it ourselves
11102 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
11103 (strerror): Define it to return NULL if there's no system strerror.
11104 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
11105 Omit !HAVE_STRERROR code. We don't need to worry about supporting
11106 ancient pre-strerror Unix systems well any more. Saying "unknown
11107 system error" is enough.
11108 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
11109 simpler strerror.c implementation.
11110 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
11111 Simplify the tests to reflect the simpler strerror implementation.
11112 * modules/strerror (Depends-on): Add intprops.
11114 2007-10-09 Eric Blake <ebb9@byu.net>
11116 Silence test-fpending.
11117 * modules/fpending-tests (Files): Add wrapper script.
11118 * tests/test-fpending.sh: New file.
11120 2007-10-09 Bruno Haible <bruno@clisp.org>
11122 * MODULES.html.sh (func_module): Don't create a hyperlink for
11123 function names like 'printf_frexp'.
11124 (Misc): Add crc, memxor.
11125 (Characteristics of floating types): New section.
11126 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
11127 isnanf-nolibm, signbit, trunc, truncf, truncl.
11128 (Enhancements for ISO C 99 functions): New subsection Input/output.
11129 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
11130 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
11131 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
11132 (Compatibility checks for POSIX:2001 functions): Add clock-time.
11133 (Enhancements for POSIX:2001 functions): Add chdir-long.
11134 (File system functions): Add areadlink, chdir-safer, read-file.
11135 Remove cycle-check.
11136 (File system as inode set): New section.
11137 (Date and time): Add gethrxtime.
11138 (Multithreading): Add openmp.
11139 (Internationalization functions): Add localename.
11140 (Unicode string functions): Add unistr/u*-mbsnlen.
11141 (Support for maintaining and releasing projects): Add git-version-gen.
11142 (Lone files): Remove directories.
11144 2007-10-08 Ben Pfaff <blp@gnu.org>
11146 * lib/xmalloca.h: Fix typo in comment.
11148 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
11150 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
11151 when avoiding problems with integer overflow. Use a portable test
11154 2007-10-08 Simon Josefsson <simon@josefsson.org>
11156 * modules/dummy (License): Change to LGPLv2+.
11157 * modules/float (License): Likewise
11158 * modules/realloc (License): Likewise
11159 * modules/stdlib (License): Likewise
11161 2007-10-07 Bruno Haible <bruno@clisp.org>
11163 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
11164 * floor.c (TWO_MANT_DIG): Likewise.
11165 * ceil.c (TWO_MANT_DIG): Likewise.
11166 Reported by Ben Pfaff.
11168 2007-10-07 Bruno Haible <bruno@clisp.org>
11170 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
11171 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
11172 * lib/frexp.c (FUNC): Likewise.
11173 * lib/printf-frexp.h (printf_frexp): Likewise.
11174 * lib/printf-frexpl.h (printf_frexpl): Likewise.
11175 * lib/printf-frexp.c (FUNC): Likewise.
11176 Suggested by Jim Meyering.
11178 2007-10-07 Jim Meyering <meyering@redhat.com>
11180 Make xnanosleep's integer overflow test more robust.
11181 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
11182 so that gcc-4.3.0 doesn't optimize away this test for overflow.
11184 2007-10-07 Bruno Haible <bruno@clisp.org>
11186 * NEWS: Mention the license change.
11188 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
11189 abbreviations in the modules files.
11191 Change copyright notice from GPLv2+ to GPLv3+.
11192 * README: Change copyright notice.
11193 * MODULES.html.sh: Likewise.
11194 * build-aux/bootstrap.conf: Likewise.
11195 * build-aux/config.libpath: Likewise.
11196 * build-aux/csharpcomp.sh.in: Likewise.
11197 * build-aux/csharpexec.sh.in: Likewise.
11198 * build-aux/install-reloc: Likewise.
11199 * build-aux/javacomp.sh.in: Likewise.
11200 * build-aux/javaexec.sh.in: Likewise.
11201 * build-aux/ldd.sh.in: Likewise.
11202 * build-aux/reloc-ldflags: Likewise.
11203 * build-aux/relocatable.sh.in: Likewise.
11204 * build-aux/x-to-1.in: Likewise.
11205 * check-module: Likewise.
11206 * config/srclistvars.sh: Likewise.
11207 * gnulib-tool: Likewise.
11208 * lib/acl-internal.h: Likewise.
11209 * lib/acl.c: Likewise.
11210 * lib/acl.h: Likewise.
11211 * lib/acl_entries.c: Likewise.
11212 * lib/areadlink-with-size.c: Likewise.
11213 * lib/areadlink.c: Likewise.
11214 * lib/areadlink.h: Likewise.
11215 * lib/argmatch.c: Likewise.
11216 * lib/argmatch.h: Likewise.
11217 * lib/argp-ba.c: Likewise.
11218 * lib/argp-eexst.c: Likewise.
11219 * lib/argp-fmtstream.c: Likewise.
11220 * lib/argp-fmtstream.h: Likewise.
11221 * lib/argp-fs-xinl.c: Likewise.
11222 * lib/argp-help.c: Likewise.
11223 * lib/argp-namefrob.h: Likewise.
11224 * lib/argp-parse.c: Likewise.
11225 * lib/argp-pin.c: Likewise.
11226 * lib/argp-pv.c: Likewise.
11227 * lib/argp-pvh.c: Likewise.
11228 * lib/argp-xinl.c: Likewise.
11229 * lib/argp.h: Likewise.
11230 * lib/at-func.c: Likewise.
11231 * lib/atanl.c: Likewise.
11232 * lib/backupfile.c: Likewise.
11233 * lib/backupfile.h: Likewise.
11234 * lib/basename.c: Likewise.
11235 * lib/binary-io.h: Likewise.
11236 * lib/byteswap.in.h: Likewise.
11237 * lib/c-stack.c: Likewise.
11238 * lib/c-stack.h: Likewise.
11239 * lib/c-strcasestr.c: Likewise.
11240 * lib/c-strcasestr.h: Likewise.
11241 * lib/c-strstr.c: Likewise.
11242 * lib/c-strstr.h: Likewise.
11243 * lib/c-strtod.c: Likewise.
11244 * lib/calloc.c: Likewise.
11245 * lib/canon-host.c: Likewise.
11246 * lib/canon-host.h: Likewise.
11247 * lib/canonicalize-lgpl.c: Likewise.
11248 * lib/canonicalize.c: Likewise.
11249 * lib/canonicalize.h: Likewise.
11250 * lib/ceil.c: Likewise.
11251 * lib/ceilf.c: Likewise.
11252 * lib/ceill.c: Likewise.
11253 * lib/chdir-long.c: Likewise.
11254 * lib/chdir-long.h: Likewise.
11255 * lib/chdir-safer.c: Likewise.
11256 * lib/chdir-safer.h: Likewise.
11257 * lib/chown.c: Likewise.
11258 * lib/classpath.c: Likewise.
11259 * lib/classpath.h: Likewise.
11260 * lib/clean-temp.c: Likewise.
11261 * lib/clean-temp.h: Likewise.
11262 * lib/cloexec.c: Likewise.
11263 * lib/close-stream.c: Likewise.
11264 * lib/closein.c: Likewise.
11265 * lib/closein.h: Likewise.
11266 * lib/closeout.c: Likewise.
11267 * lib/closeout.h: Likewise.
11268 * lib/concat-filename.c: Likewise.
11269 * lib/copy-file.c: Likewise.
11270 * lib/copy-file.h: Likewise.
11271 * lib/count-one-bits.h: Likewise.
11272 * lib/crc.c: Likewise.
11273 * lib/crc.h: Likewise.
11274 * lib/creat-safer.c: Likewise.
11275 * lib/csharpcomp.c: Likewise.
11276 * lib/csharpcomp.h: Likewise.
11277 * lib/csharpexec.c: Likewise.
11278 * lib/csharpexec.h: Likewise.
11279 * lib/cycle-check.c: Likewise.
11280 * lib/cycle-check.h: Likewise.
11281 * lib/diacrit.c: Likewise.
11282 * lib/diacrit.h: Likewise.
11283 * lib/diffseq.h: Likewise.
11284 * lib/dirchownmod.c: Likewise.
11285 * lib/dirent.in.h: Likewise.
11286 * lib/dirfd.c: Likewise.
11287 * lib/dirfd.h: Likewise.
11288 * lib/dirname.c: Likewise.
11289 * lib/dirname.h: Likewise.
11290 * lib/dummy.c: Likewise.
11291 * lib/dup-safer.c: Likewise.
11292 * lib/dup2.c: Likewise.
11293 * lib/eealloc.h: Likewise.
11294 * lib/error.c: Likewise.
11295 * lib/error.h: Likewise.
11296 * lib/euidaccess.c: Likewise.
11297 * lib/exclude.c: Likewise.
11298 * lib/exclude.h: Likewise.
11299 * lib/execute.c: Likewise.
11300 * lib/execute.h: Likewise.
11301 * lib/exitfail.c: Likewise.
11302 * lib/exitfail.h: Likewise.
11303 * lib/expl.c: Likewise.
11304 * lib/fatal-signal.c: Likewise.
11305 * lib/fatal-signal.h: Likewise.
11306 * lib/fbufmode.c: Likewise.
11307 * lib/fbufmode.h: Likewise.
11308 * lib/fchdir.c: Likewise.
11309 * lib/fchmodat.c: Likewise.
11310 * lib/fchownat.c: Likewise.
11311 * lib/fcntl--.h: Likewise.
11312 * lib/fcntl-safer.h: Likewise.
11313 * lib/fcntl.in.h: Likewise.
11314 * lib/fd-safer.c: Likewise.
11315 * lib/fflush.c: Likewise.
11316 * lib/file-has-acl.c: Likewise.
11317 * lib/file-set.c: Likewise.
11318 * lib/file-type.c: Likewise.
11319 * lib/file-type.h: Likewise.
11320 * lib/fileblocks.c: Likewise.
11321 * lib/filemode.c: Likewise.
11322 * lib/filemode.h: Likewise.
11323 * lib/filename.h: Likewise.
11324 * lib/filenamecat.c: Likewise.
11325 * lib/filenamecat.h: Likewise.
11326 * lib/findprog.c: Likewise.
11327 * lib/findprog.h: Likewise.
11328 * lib/float.in.h: Likewise.
11329 * lib/floor.c: Likewise.
11330 * lib/floorf.c: Likewise.
11331 * lib/floorl.c: Likewise.
11332 * lib/fopen-safer.c: Likewise.
11333 * lib/fopen.c: Likewise.
11334 * lib/fpending.c: Likewise.
11335 * lib/fpending.h: Likewise.
11336 * lib/fprintf.c: Likewise.
11337 * lib/fprintftime.h: Likewise.
11338 * lib/fpucw.h: Likewise.
11339 * lib/fpurge.c: Likewise.
11340 * lib/fpurge.h: Likewise.
11341 * lib/freadable.c: Likewise.
11342 * lib/freadable.h: Likewise.
11343 * lib/freadahead.c: Likewise.
11344 * lib/freadahead.h: Likewise.
11345 * lib/freading.c: Likewise.
11346 * lib/freading.h: Likewise.
11347 * lib/free.c: Likewise.
11348 * lib/freopen.c: Likewise.
11349 * lib/frexp.c: Likewise.
11350 * lib/frexpl.c: Likewise.
11351 * lib/fseek.c: Likewise.
11352 * lib/fseterr.c: Likewise.
11353 * lib/fseterr.h: Likewise.
11354 * lib/fstatat.c: Likewise.
11355 * lib/fstrcmp.c: Likewise.
11356 * lib/fstrcmp.h: Likewise.
11357 * lib/fsusage.c: Likewise.
11358 * lib/fsusage.h: Likewise.
11359 * lib/ftell.c: Likewise.
11360 * lib/ftello.c: Likewise.
11361 * lib/fts-cycle.c: Likewise.
11362 * lib/fts.c: Likewise.
11363 * lib/fts_.h: Likewise.
11364 * lib/full-read.c: Likewise.
11365 * lib/full-read.h: Likewise.
11366 * lib/full-write.c: Likewise.
11367 * lib/full-write.h: Likewise.
11368 * lib/fwritable.c: Likewise.
11369 * lib/fwritable.h: Likewise.
11370 * lib/fwriteerror.c: Likewise.
11371 * lib/fwriteerror.h: Likewise.
11372 * lib/fwriting.c: Likewise.
11373 * lib/fwriting.h: Likewise.
11374 * lib/gcd.c: Likewise.
11375 * lib/gcd.h: Likewise.
11376 * lib/getcwd.c: Likewise.
11377 * lib/getdate.h: Likewise.
11378 * lib/getdate.y: Likewise.
11379 * lib/getdomainname.c: Likewise.
11380 * lib/getdomainname.h: Likewise.
11381 * lib/getgroups.c: Likewise.
11382 * lib/gethostname.c: Likewise.
11383 * lib/gethrxtime.c: Likewise.
11384 * lib/gethrxtime.h: Likewise.
11385 * lib/getloadavg.c: Likewise.
11386 * lib/getndelim2.c: Likewise.
11387 * lib/getndelim2.h: Likewise.
11388 * lib/getnline.c: Likewise.
11389 * lib/getnline.h: Likewise.
11390 * lib/getopt.c: Likewise.
11391 * lib/getopt.in.h: Likewise.
11392 * lib/getopt1.c: Likewise.
11393 * lib/getopt_int.h: Likewise.
11394 * lib/getpagesize.h: Likewise.
11395 * lib/getsubopt.c: Likewise.
11396 * lib/gettime.c: Likewise.
11397 * lib/getugroups.c: Likewise.
11398 * lib/getugroups.h: Likewise.
11399 * lib/getusershell.c: Likewise.
11400 * lib/gl_anyavltree_list1.h: Likewise.
11401 * lib/gl_anyavltree_list2.h: Likewise.
11402 * lib/gl_anyhash_list1.h: Likewise.
11403 * lib/gl_anyhash_list2.h: Likewise.
11404 * lib/gl_anylinked_list1.h: Likewise.
11405 * lib/gl_anylinked_list2.h: Likewise.
11406 * lib/gl_anyrbtree_list1.h: Likewise.
11407 * lib/gl_anyrbtree_list2.h: Likewise.
11408 * lib/gl_anytree_list1.h: Likewise.
11409 * lib/gl_anytree_list2.h: Likewise.
11410 * lib/gl_anytree_oset.h: Likewise.
11411 * lib/gl_anytreehash_list1.h: Likewise.
11412 * lib/gl_anytreehash_list2.h: Likewise.
11413 * lib/gl_array_list.c: Likewise.
11414 * lib/gl_array_list.h: Likewise.
11415 * lib/gl_array_oset.c: Likewise.
11416 * lib/gl_array_oset.h: Likewise.
11417 * lib/gl_avltree_list.c: Likewise.
11418 * lib/gl_avltree_list.h: Likewise.
11419 * lib/gl_avltree_oset.c: Likewise.
11420 * lib/gl_avltree_oset.h: Likewise.
11421 * lib/gl_avltreehash_list.c: Likewise.
11422 * lib/gl_avltreehash_list.h: Likewise.
11423 * lib/gl_carray_list.c: Likewise.
11424 * lib/gl_carray_list.h: Likewise.
11425 * lib/gl_linked_list.c: Likewise.
11426 * lib/gl_linked_list.h: Likewise.
11427 * lib/gl_linkedhash_list.c: Likewise.
11428 * lib/gl_linkedhash_list.h: Likewise.
11429 * lib/gl_list.c: Likewise.
11430 * lib/gl_list.h: Likewise.
11431 * lib/gl_oset.c: Likewise.
11432 * lib/gl_oset.h: Likewise.
11433 * lib/gl_rbtree_list.c: Likewise.
11434 * lib/gl_rbtree_list.h: Likewise.
11435 * lib/gl_rbtree_oset.c: Likewise.
11436 * lib/gl_rbtree_oset.h: Likewise.
11437 * lib/gl_rbtreehash_list.c: Likewise.
11438 * lib/gl_rbtreehash_list.h: Likewise.
11439 * lib/gl_sublist.c: Likewise.
11440 * lib/gl_sublist.h: Likewise.
11441 * lib/group-member.c: Likewise.
11442 * lib/group-member.h: Likewise.
11443 * lib/hard-locale.c: Likewise.
11444 * lib/hard-locale.h: Likewise.
11445 * lib/hash-pjw.c: Likewise.
11446 * lib/hash-pjw.h: Likewise.
11447 * lib/hash-triple.c: Likewise.
11448 * lib/hash.c: Likewise.
11449 * lib/hash.h: Likewise.
11450 * lib/human.c: Likewise.
11451 * lib/human.h: Likewise.
11452 * lib/i-ring.c: Likewise.
11453 * lib/i-ring.h: Likewise.
11454 * lib/idcache.c: Likewise.
11455 * lib/imaxabs.c: Likewise.
11456 * lib/imaxdiv.c: Likewise.
11457 * lib/inet_pton.c: Likewise.
11458 * lib/inet_pton.h: Likewise.
11459 * lib/intprops.h: Likewise.
11460 * lib/inttostr.c: Likewise.
11461 * lib/inttostr.h: Likewise.
11462 * lib/inttypes.in.h: Likewise.
11463 * lib/isapipe.c: Likewise.
11464 * lib/isdir.c: Likewise.
11465 * lib/isnan.c: Likewise.
11466 * lib/isnan.h: Likewise.
11467 * lib/isnanf.c: Likewise.
11468 * lib/isnanf.h: Likewise.
11469 * lib/isnanl-nolibm.h: Likewise.
11470 * lib/isnanl.c: Likewise.
11471 * lib/isnanl.h: Likewise.
11472 * lib/javacomp.c: Likewise.
11473 * lib/javacomp.h: Likewise.
11474 * lib/javaexec.c: Likewise.
11475 * lib/javaexec.h: Likewise.
11476 * lib/javaversion.c: Likewise.
11477 * lib/javaversion.h: Likewise.
11478 * lib/javaversion.java: Likewise.
11479 * lib/lbrkprop.h: Likewise.
11480 * lib/lchmod.h: Likewise.
11481 * lib/lchown.c: Likewise.
11482 * lib/ldexpl.c: Likewise.
11483 * lib/linebreak.c: Likewise.
11484 * lib/linebreak.h: Likewise.
11485 * lib/linebuffer.c: Likewise.
11486 * lib/linebuffer.h: Likewise.
11487 * lib/locale.in.h: Likewise.
11488 * lib/logl.c: Likewise.
11489 * lib/long-options.c: Likewise.
11490 * lib/long-options.h: Likewise.
11491 * lib/lstat.c: Likewise.
11492 * lib/lstat.h: Likewise.
11493 * lib/math.in.h: Likewise.
11494 * lib/mbchar.c: Likewise.
11495 * lib/mbchar.h: Likewise.
11496 * lib/mbfile.h: Likewise.
11497 * lib/mbiter.h: Likewise.
11498 * lib/mbscasecmp.c: Likewise.
11499 * lib/mbscasestr.c: Likewise.
11500 * lib/mbschr.c: Likewise.
11501 * lib/mbscspn.c: Likewise.
11502 * lib/mbslen.c: Likewise.
11503 * lib/mbsncasecmp.c: Likewise.
11504 * lib/mbsnlen.c: Likewise.
11505 * lib/mbspbrk.c: Likewise.
11506 * lib/mbspcasecmp.c: Likewise.
11507 * lib/mbsrchr.c: Likewise.
11508 * lib/mbssep.c: Likewise.
11509 * lib/mbsspn.c: Likewise.
11510 * lib/mbsstr.c: Likewise.
11511 * lib/mbstok_r.c: Likewise.
11512 * lib/mbswidth.c: Likewise.
11513 * lib/mbswidth.h: Likewise.
11514 * lib/mbuiter.h: Likewise.
11515 * lib/memcasecmp.c: Likewise.
11516 * lib/memcasecmp.h: Likewise.
11517 * lib/memchr.c: Likewise.
11518 * lib/memcmp.c: Likewise.
11519 * lib/memcoll.c: Likewise.
11520 * lib/memcoll.h: Likewise.
11521 * lib/memcpy.c: Likewise.
11522 * lib/memrchr.c: Likewise.
11523 * lib/mkancesdirs.c: Likewise.
11524 * lib/mkdir-p.c: Likewise.
11525 * lib/mkdir-p.h: Likewise.
11526 * lib/mkdir.c: Likewise.
11527 * lib/mkdirat.c: Likewise.
11528 * lib/mkdtemp.c: Likewise.
11529 * lib/mkstemp-safer.c: Likewise.
11530 * lib/mkstemp.c: Likewise.
11531 * lib/modechange.c: Likewise.
11532 * lib/modechange.h: Likewise.
11533 * lib/mountlist.c: Likewise.
11534 * lib/mountlist.h: Likewise.
11535 * lib/mpsort.c: Likewise.
11536 * lib/nanosleep.c: Likewise.
11537 * lib/obstack.c: Likewise.
11538 * lib/obstack.h: Likewise.
11539 * lib/open-safer.c: Likewise.
11540 * lib/open.c: Likewise.
11541 * lib/openat-die.c: Likewise.
11542 * lib/openat-priv.h: Likewise.
11543 * lib/openat-proc.c: Likewise.
11544 * lib/openat.c: Likewise.
11545 * lib/openat.h: Likewise.
11546 * lib/pagealign_alloc.c: Likewise.
11547 * lib/pagealign_alloc.h: Likewise.
11548 * lib/physmem.c: Likewise.
11549 * lib/physmem.h: Likewise.
11550 * lib/pipe-safer.c: Likewise.
11551 * lib/pipe.c: Likewise.
11552 * lib/pipe.h: Likewise.
11553 * lib/posixtm.c: Likewise.
11554 * lib/posixtm.h: Likewise.
11555 * lib/posixver.c: Likewise.
11556 * lib/printf-frexp.c: Likewise.
11557 * lib/printf-frexp.h: Likewise.
11558 * lib/printf-frexpl.c: Likewise.
11559 * lib/printf-frexpl.h: Likewise.
11560 * lib/printf.c: Likewise.
11561 * lib/progname.c: Likewise.
11562 * lib/progname.h: Likewise.
11563 * lib/progreloc.c: Likewise.
11564 * lib/putenv.c: Likewise.
11565 * lib/quote.c: Likewise.
11566 * lib/quote.h: Likewise.
11567 * lib/quotearg.c: Likewise.
11568 * lib/quotearg.h: Likewise.
11569 * lib/raise.c: Likewise.
11570 * lib/readline.c: Likewise.
11571 * lib/readline.h: Likewise.
11572 * lib/readlink.c: Likewise.
11573 * lib/readtokens.c: Likewise.
11574 * lib/readtokens.h: Likewise.
11575 * lib/readtokens0.c: Likewise.
11576 * lib/readtokens0.h: Likewise.
11577 * lib/readutmp.c: Likewise.
11578 * lib/readutmp.h: Likewise.
11579 * lib/realloc.c: Likewise.
11580 * lib/relocwrapper.c: Likewise.
11581 * lib/rename-dest-slash.c: Likewise.
11582 * lib/rename.c: Likewise.
11583 * lib/rmdir.c: Likewise.
11584 * lib/rpmatch.c: Likewise.
11585 * lib/safe-read.c: Likewise.
11586 * lib/safe-read.h: Likewise.
11587 * lib/safe-write.c: Likewise.
11588 * lib/safe-write.h: Likewise.
11589 * lib/same-inode.h: Likewise.
11590 * lib/same.c: Likewise.
11591 * lib/same.h: Likewise.
11592 * lib/save-cwd.c: Likewise.
11593 * lib/save-cwd.h: Likewise.
11594 * lib/savedir.c: Likewise.
11595 * lib/savedir.h: Likewise.
11596 * lib/savewd.c: Likewise.
11597 * lib/savewd.h: Likewise.
11598 * lib/search.in.h: Likewise.
11599 * lib/setenv.c: Likewise.
11600 * lib/setenv.h: Likewise.
11601 * lib/settime.c: Likewise.
11602 * lib/sh-quote.c: Likewise.
11603 * lib/sh-quote.h: Likewise.
11604 * lib/sig2str.c: Likewise.
11605 * lib/sig2str.h: Likewise.
11606 * lib/signal.in.h: Likewise.
11607 * lib/signbitd.c: Likewise.
11608 * lib/signbitf.c: Likewise.
11609 * lib/signbitl.c: Likewise.
11610 * lib/sigprocmask.c: Likewise.
11611 * lib/sincosl.c: Likewise.
11612 * lib/sleep.c: Likewise.
11613 * lib/sprintf.c: Likewise.
11614 * lib/sqrtl.c: Likewise.
11615 * lib/stat-time.h: Likewise.
11616 * lib/stdio--.h: Likewise.
11617 * lib/stdio-safer.h: Likewise.
11618 * lib/stdlib--.h: Likewise.
11619 * lib/stdlib-safer.h: Likewise.
11620 * lib/stdlib.in.h: Likewise.
11621 * lib/stpcpy.c: Likewise.
11622 * lib/stpncpy.c: Likewise.
11623 * lib/strchrnul.c: Likewise.
11624 * lib/strcspn.c: Likewise.
11625 * lib/strerror.c: Likewise.
11626 * lib/strftime.c: Likewise.
11627 * lib/strftime.h: Likewise.
11628 * lib/striconveh.c: Likewise.
11629 * lib/striconveh.h: Likewise.
11630 * lib/striconveha.c: Likewise.
11631 * lib/striconveha.h: Likewise.
11632 * lib/stripslash.c: Likewise.
11633 * lib/strnlen1.c: Likewise.
11634 * lib/strnlen1.h: Likewise.
11635 * lib/strtod.c: Likewise.
11636 * lib/strtoimax.c: Likewise.
11637 * lib/strtok_r.c: Likewise.
11638 * lib/strtol.c: Likewise.
11639 * lib/strtoll.c: Likewise.
11640 * lib/strtoul.c: Likewise.
11641 * lib/strtoull.c: Likewise.
11642 * lib/sysexits.in.h: Likewise.
11643 * lib/tempname.c: Likewise.
11644 * lib/tempname.h: Likewise.
11645 * lib/timespec.h: Likewise.
11646 * lib/tls.c: Likewise.
11647 * lib/tls.h: Likewise.
11648 * lib/tmpdir.c: Likewise.
11649 * lib/tmpdir.h: Likewise.
11650 * lib/tmpfile-safer.c: Likewise.
11651 * lib/tmpfile.c: Likewise.
11652 * lib/trigl.c: Likewise.
11653 * lib/trigl.h: Likewise.
11654 * lib/trim.c: Likewise.
11655 * lib/trim.h: Likewise.
11656 * lib/trunc.c: Likewise.
11657 * lib/truncf.c: Likewise.
11658 * lib/truncl.c: Likewise.
11659 * lib/tsearch.c: Likewise.
11660 * lib/unicodeio.c: Likewise.
11661 * lib/unicodeio.h: Likewise.
11662 * lib/unistd--.h: Likewise.
11663 * lib/unistd-safer.h: Likewise.
11664 * lib/unistdio/ulc-fprintf.c: Likewise.
11665 * lib/unistdio/ulc-vfprintf.c: Likewise.
11666 * lib/unlinkdir.c: Likewise.
11667 * lib/unlinkdir.h: Likewise.
11668 * lib/unlocked-io.h: Likewise.
11669 * lib/unsetenv.c: Likewise.
11670 * lib/userspec.c: Likewise.
11671 * lib/utime.c: Likewise.
11672 * lib/utimecmp.c: Likewise.
11673 * lib/utimecmp.h: Likewise.
11674 * lib/utimens.c: Likewise.
11675 * lib/verify.h: Likewise.
11676 * lib/verror.c: Likewise.
11677 * lib/verror.h: Likewise.
11678 * lib/version-etc-fsf.c: Likewise.
11679 * lib/version-etc.c: Likewise.
11680 * lib/version-etc.h: Likewise.
11681 * lib/vfprintf.c: Likewise.
11682 * lib/vprintf.c: Likewise.
11683 * lib/vsprintf.c: Likewise.
11684 * lib/w32spawn.h: Likewise.
11685 * lib/wait-process.c: Likewise.
11686 * lib/wait-process.h: Likewise.
11687 * lib/wcwidth.c: Likewise.
11688 * lib/write-any-file.c: Likewise.
11689 * lib/xalloc-die.c: Likewise.
11690 * lib/xalloc.h: Likewise.
11691 * lib/xasprintf.c: Likewise.
11692 * lib/xgetcwd.c: Likewise.
11693 * lib/xgetcwd.h: Likewise.
11694 * lib/xgetdomainname.c: Likewise.
11695 * lib/xgetdomainname.h: Likewise.
11696 * lib/xgethostname.c: Likewise.
11697 * lib/xmalloc.c: Likewise.
11698 * lib/xmalloca.c: Likewise.
11699 * lib/xmalloca.h: Likewise.
11700 * lib/xmemcoll.c: Likewise.
11701 * lib/xnanosleep.c: Likewise.
11702 * lib/xreadlink.c: Likewise.
11703 * lib/xreadlink.h: Likewise.
11704 * lib/xsetenv.c: Likewise.
11705 * lib/xsetenv.h: Likewise.
11706 * lib/xstriconv.c: Likewise.
11707 * lib/xstriconv.h: Likewise.
11708 * lib/xstrndup.c: Likewise.
11709 * lib/xstrndup.h: Likewise.
11710 * lib/xstrtod.c: Likewise.
11711 * lib/xstrtod.h: Likewise.
11712 * lib/xstrtol-error.c: Likewise.
11713 * lib/xstrtol.c: Likewise.
11714 * lib/xstrtol.h: Likewise.
11715 * lib/xtime.h: Likewise.
11716 * lib/xvasprintf.c: Likewise.
11717 * lib/xvasprintf.h: Likewise.
11718 * lib/yesno.c: Likewise.
11719 * lib/yesno.h: Likewise.
11720 * posix-modules: Likewise.
11721 * tests/test-alloca-opt.c: Likewise.
11722 * tests/test-arcfour.c: Likewise.
11723 * tests/test-arctwo.c: Likewise.
11724 * tests/test-argmatch.c: Likewise.
11725 * tests/test-argp-2.sh: Likewise.
11726 * tests/test-argp.c: Likewise.
11727 * tests/test-arpa_inet.c: Likewise.
11728 * tests/test-array_list.c: Likewise.
11729 * tests/test-array_oset.c: Likewise.
11730 * tests/test-atexit.c: Likewise.
11731 * tests/test-avltree_list.c: Likewise.
11732 * tests/test-avltree_oset.c: Likewise.
11733 * tests/test-avltreehash_list.c: Likewise.
11734 * tests/test-base64.c: Likewise.
11735 * tests/test-binary-io.c: Likewise.
11736 * tests/test-byteswap.c: Likewise.
11737 * tests/test-c-ctype.c: Likewise.
11738 * tests/test-c-strcasecmp.c: Likewise.
11739 * tests/test-c-strcasestr.c: Likewise.
11740 * tests/test-c-strncasecmp.c: Likewise.
11741 * tests/test-c-strstr.c: Likewise.
11742 * tests/test-canonicalize-lgpl.c: Likewise.
11743 * tests/test-canonicalize.c: Likewise.
11744 * tests/test-carray_list.c: Likewise.
11745 * tests/test-ceilf.c: Likewise.
11746 * tests/test-ceill.c: Likewise.
11747 * tests/test-count-one-bits.c: Likewise.
11748 * tests/test-crc.c: Likewise.
11749 * tests/test-dirname.c: Likewise.
11750 * tests/test-fbufmode.c: Likewise.
11751 * tests/test-fcntl.c: Likewise.
11752 * tests/test-fflush.c: Likewise.
11753 * tests/test-floorf.c: Likewise.
11754 * tests/test-floorl.c: Likewise.
11755 * tests/test-fopen.c: Likewise.
11756 * tests/test-fprintf-posix.c: Likewise.
11757 * tests/test-fprintf-posix.h: Likewise.
11758 * tests/test-fpurge.c: Likewise.
11759 * tests/test-freadable.c: Likewise.
11760 * tests/test-freadahead.c: Likewise.
11761 * tests/test-freading.c: Likewise.
11762 * tests/test-freopen.c: Likewise.
11763 * tests/test-frexp.c: Likewise.
11764 * tests/test-frexpl.c: Likewise.
11765 * tests/test-fseek.c: Likewise.
11766 * tests/test-fseeko.c: Likewise.
11767 * tests/test-fseterr.c: Likewise.
11768 * tests/test-fstrcmp.c: Likewise.
11769 * tests/test-ftell.c: Likewise.
11770 * tests/test-ftello.c: Likewise.
11771 * tests/test-fwritable.c: Likewise.
11772 * tests/test-fwriting.c: Likewise.
11773 * tests/test-getaddrinfo.c: Likewise.
11774 * tests/test-getpass.c: Likewise.
11775 * tests/test-gettimeofday.c: Likewise.
11776 * tests/test-hmac-md5.c: Likewise.
11777 * tests/test-hmac-sha1.c: Likewise.
11778 * tests/test-iconv.c: Likewise.
11779 * tests/test-iconvme.c: Likewise.
11780 * tests/test-inttypes.c: Likewise.
11781 * tests/test-isnan.c: Likewise.
11782 * tests/test-isnanf.c: Likewise.
11783 * tests/test-isnanl-nolibm.c: Likewise.
11784 * tests/test-isnanl.c: Likewise.
11785 * tests/test-isnanl.h: Likewise.
11786 * tests/test-ldexpl.c: Likewise.
11787 * tests/test-linked_list.c: Likewise.
11788 * tests/test-linkedhash_list.c: Likewise.
11789 * tests/test-locale.c: Likewise.
11790 * tests/test-localename.c: Likewise.
11791 * tests/test-lock.c: Likewise.
11792 * tests/test-lseek.c: Likewise.
11793 * tests/test-malloca.c: Likewise.
11794 * tests/test-math.c: Likewise.
11795 * tests/test-mbscasecmp.c: Likewise.
11796 * tests/test-mbscasestr1.c: Likewise.
11797 * tests/test-mbscasestr2.c: Likewise.
11798 * tests/test-mbscasestr3.c: Likewise.
11799 * tests/test-mbscasestr4.c: Likewise.
11800 * tests/test-mbschr.c: Likewise.
11801 * tests/test-mbscspn.c: Likewise.
11802 * tests/test-mbsncasecmp.c: Likewise.
11803 * tests/test-mbspbrk.c: Likewise.
11804 * tests/test-mbspcasecmp.c: Likewise.
11805 * tests/test-mbsrchr.c: Likewise.
11806 * tests/test-mbsspn.c: Likewise.
11807 * tests/test-mbsstr1.c: Likewise.
11808 * tests/test-mbsstr2.c: Likewise.
11809 * tests/test-mbsstr3.c: Likewise.
11810 * tests/test-md5.c: Likewise.
11811 * tests/test-memmem.c: Likewise.
11812 * tests/test-netinet_in.c: Likewise.
11813 * tests/test-open.c: Likewise.
11814 * tests/test-printf-frexp.c: Likewise.
11815 * tests/test-printf-frexpl.c: Likewise.
11816 * tests/test-printf-posix.c: Likewise.
11817 * tests/test-printf-posix.h: Likewise.
11818 * tests/test-rbtree_list.c: Likewise.
11819 * tests/test-rbtree_oset.c: Likewise.
11820 * tests/test-rbtreehash_list.c: Likewise.
11821 * tests/test-read-file.c: Likewise.
11822 * tests/test-rijndael.c: Likewise.
11823 * tests/test-search.c: Likewise.
11824 * tests/test-signbit.c: Likewise.
11825 * tests/test-sleep.c: Likewise.
11826 * tests/test-snprintf-posix.c: Likewise.
11827 * tests/test-snprintf-posix.h: Likewise.
11828 * tests/test-snprintf.c: Likewise.
11829 * tests/test-sprintf-posix.c: Likewise.
11830 * tests/test-sprintf-posix.h: Likewise.
11831 * tests/test-stat-time.c: Likewise.
11832 * tests/test-stdbool.c: Likewise.
11833 * tests/test-stdint.c: Likewise.
11834 * tests/test-stdio.c: Likewise.
11835 * tests/test-stdlib.c: Likewise.
11836 * tests/test-stpncpy.c: Likewise.
11837 * tests/test-strcasestr.c: Likewise.
11838 * tests/test-striconv.c: Likewise.
11839 * tests/test-striconveh.c: Likewise.
11840 * tests/test-striconveha.c: Likewise.
11841 * tests/test-string.c: Likewise.
11842 * tests/test-sys_select.c: Likewise.
11843 * tests/test-sys_socket.c: Likewise.
11844 * tests/test-sys_stat.c: Likewise.
11845 * tests/test-sys_time.c: Likewise.
11846 * tests/test-sysexits.c: Likewise.
11847 * tests/test-time.c: Likewise.
11848 * tests/test-tls.c: Likewise.
11849 * tests/test-trunc.c: Likewise.
11850 * tests/test-truncf.c: Likewise.
11851 * tests/test-truncl.c: Likewise.
11852 * tests/test-unistd.c: Likewise.
11853 * tests/test-vasnprintf-posix.c: Likewise.
11854 * tests/test-vasnprintf-posix2.c: Likewise.
11855 * tests/test-vasnprintf.c: Likewise.
11856 * tests/test-vasprintf-posix.c: Likewise.
11857 * tests/test-vasprintf.c: Likewise.
11858 * tests/test-verify.c: Likewise.
11859 * tests/test-vfprintf-posix.c: Likewise.
11860 * tests/test-vprintf-posix.c: Likewise.
11861 * tests/test-vsnprintf-posix.c: Likewise.
11862 * tests/test-vsnprintf.c: Likewise.
11863 * tests/test-vsprintf-posix.c: Likewise.
11864 * tests/test-wchar.c: Likewise.
11865 * tests/test-wctype.c: Likewise.
11866 * tests/test-wcwidth.c: Likewise.
11867 * tests/test-xstrtol.c: Likewise.
11868 * tests/test-xvasprintf.c: Likewise.
11869 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11870 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11871 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11872 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11873 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11874 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11875 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11876 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11877 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11878 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11879 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11880 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11881 * tests/uniname/test-uninames.c: Likewise.
11882 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11883 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
11884 * tests/unistdio/test-u16-printf1.h: Likewise.
11885 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11886 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11887 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11888 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11889 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11890 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11891 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11892 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
11893 * tests/unistdio/test-u32-printf1.h: Likewise.
11894 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11895 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11896 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11897 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11898 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11899 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
11900 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
11901 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
11902 * tests/unistdio/test-u8-printf1.h: Likewise.
11903 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
11904 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
11905 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
11906 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
11907 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
11908 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
11909 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
11910 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
11911 * tests/unistdio/test-ulc-printf1.h: Likewise.
11912 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
11913 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
11914 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
11915 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
11916 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
11917 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
11918 * tests/uniwidth/test-u16-strwidth.c: Likewise.
11919 * tests/uniwidth/test-u16-width.c: Likewise.
11920 * tests/uniwidth/test-u32-strwidth.c: Likewise.
11921 * tests/uniwidth/test-u32-width.c: Likewise.
11922 * tests/uniwidth/test-u8-strwidth.c: Likewise.
11923 * tests/uniwidth/test-u8-width.c: Likewise.
11924 * tests/uniwidth/test-uc_width.c: Likewise.
11925 * config/srclist-update: Likewise.
11926 (fixlicense): Update to GPLv3+.
11928 Change copyright notice from LGPLv2.1+ to LGPLv3+.
11929 * tests/test-tsearch.c: Change copyright notice.
11931 Change copyright notice from LGPLv2.0+ to LGPLv3+.
11932 * lib/c-strcaseeq.h: Change copyright notice.
11933 * lib/streq.h: Likewise.
11934 * lib/uniconv.h: Likewise.
11935 * lib/uniconv/u-conv-from-enc.h: Likewise.
11936 * lib/uniconv/u-conv-to-enc.h: Likewise.
11937 * lib/uniconv/u-strconv-from-enc.h: Likewise.
11938 * lib/uniconv/u-strconv-to-enc.h: Likewise.
11939 * lib/uniconv/u16-conv-from-enc.c: Likewise.
11940 * lib/uniconv/u16-conv-to-enc.c: Likewise.
11941 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
11942 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
11943 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
11944 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
11945 * lib/uniconv/u32-conv-from-enc.c: Likewise.
11946 * lib/uniconv/u32-conv-to-enc.c: Likewise.
11947 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
11948 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
11949 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
11950 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
11951 * lib/uniconv/u8-conv-from-enc.c: Likewise.
11952 * lib/uniconv/u8-conv-to-enc.c: Likewise.
11953 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
11954 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
11955 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
11956 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
11957 * lib/uniname.h: Likewise.
11958 * lib/uniname/uniname.c: Likewise.
11959 * lib/unistdio.h: Likewise.
11960 * lib/unistdio/u-asnprintf.h: Likewise.
11961 * lib/unistdio/u-asprintf.h: Likewise.
11962 * lib/unistdio/u-printf-args.c: Likewise.
11963 * lib/unistdio/u-printf-args.h: Likewise.
11964 * lib/unistdio/u-printf-parse.h: Likewise.
11965 * lib/unistdio/u-snprintf.h: Likewise.
11966 * lib/unistdio/u-sprintf.h: Likewise.
11967 * lib/unistdio/u-vasprintf.h: Likewise.
11968 * lib/unistdio/u-vsnprintf.h: Likewise.
11969 * lib/unistdio/u-vsprintf.h: Likewise.
11970 * lib/unistdio/u16-asnprintf.c: Likewise.
11971 * lib/unistdio/u16-asprintf.c: Likewise.
11972 * lib/unistdio/u16-printf-parse.c: Likewise.
11973 * lib/unistdio/u16-snprintf.c: Likewise.
11974 * lib/unistdio/u16-sprintf.c: Likewise.
11975 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
11976 * lib/unistdio/u16-u16-asprintf.c: Likewise.
11977 * lib/unistdio/u16-u16-snprintf.c: Likewise.
11978 * lib/unistdio/u16-u16-sprintf.c: Likewise.
11979 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
11980 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
11981 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
11982 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
11983 * lib/unistdio/u16-vasnprintf.c: Likewise.
11984 * lib/unistdio/u16-vasprintf.c: Likewise.
11985 * lib/unistdio/u16-vsnprintf.c: Likewise.
11986 * lib/unistdio/u16-vsprintf.c: Likewise.
11987 * lib/unistdio/u32-asnprintf.c: Likewise.
11988 * lib/unistdio/u32-asprintf.c: Likewise.
11989 * lib/unistdio/u32-printf-parse.c: Likewise.
11990 * lib/unistdio/u32-snprintf.c: Likewise.
11991 * lib/unistdio/u32-sprintf.c: Likewise.
11992 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
11993 * lib/unistdio/u32-u32-asprintf.c: Likewise.
11994 * lib/unistdio/u32-u32-snprintf.c: Likewise.
11995 * lib/unistdio/u32-u32-sprintf.c: Likewise.
11996 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
11997 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
11998 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
11999 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
12000 * lib/unistdio/u32-vasnprintf.c: Likewise.
12001 * lib/unistdio/u32-vasprintf.c: Likewise.
12002 * lib/unistdio/u32-vsnprintf.c: Likewise.
12003 * lib/unistdio/u32-vsprintf.c: Likewise.
12004 * lib/unistdio/u8-asnprintf.c: Likewise.
12005 * lib/unistdio/u8-asprintf.c: Likewise.
12006 * lib/unistdio/u8-printf-parse.c: Likewise.
12007 * lib/unistdio/u8-snprintf.c: Likewise.
12008 * lib/unistdio/u8-sprintf.c: Likewise.
12009 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
12010 * lib/unistdio/u8-u8-asprintf.c: Likewise.
12011 * lib/unistdio/u8-u8-snprintf.c: Likewise.
12012 * lib/unistdio/u8-u8-sprintf.c: Likewise.
12013 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
12014 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
12015 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
12016 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
12017 * lib/unistdio/u8-vasnprintf.c: Likewise.
12018 * lib/unistdio/u8-vasprintf.c: Likewise.
12019 * lib/unistdio/u8-vsnprintf.c: Likewise.
12020 * lib/unistdio/u8-vsprintf.c: Likewise.
12021 * lib/unistdio/ulc-asnprintf.c: Likewise.
12022 * lib/unistdio/ulc-asprintf.c: Likewise.
12023 * lib/unistdio/ulc-printf-parse.c: Likewise.
12024 * lib/unistdio/ulc-snprintf.c: Likewise.
12025 * lib/unistdio/ulc-sprintf.c: Likewise.
12026 * lib/unistdio/ulc-vasnprintf.c: Likewise.
12027 * lib/unistdio/ulc-vasprintf.c: Likewise.
12028 * lib/unistdio/ulc-vsnprintf.c: Likewise.
12029 * lib/unistdio/ulc-vsprintf.c: Likewise.
12030 * lib/unistr.h: Likewise.
12031 * lib/unistr/u-cpy-alloc.h: Likewise.
12032 * lib/unistr/u-cpy.h: Likewise.
12033 * lib/unistr/u-endswith.h: Likewise.
12034 * lib/unistr/u-move.h: Likewise.
12035 * lib/unistr/u-set.h: Likewise.
12036 * lib/unistr/u-startswith.h: Likewise.
12037 * lib/unistr/u-stpcpy.h: Likewise.
12038 * lib/unistr/u-stpncpy.h: Likewise.
12039 * lib/unistr/u-strcat.h: Likewise.
12040 * lib/unistr/u-strcpy.h: Likewise.
12041 * lib/unistr/u-strcspn.h: Likewise.
12042 * lib/unistr/u-strdup.h: Likewise.
12043 * lib/unistr/u-strlen.h: Likewise.
12044 * lib/unistr/u-strncat.h: Likewise.
12045 * lib/unistr/u-strncpy.h: Likewise.
12046 * lib/unistr/u-strnlen.h: Likewise.
12047 * lib/unistr/u-strpbrk.h: Likewise.
12048 * lib/unistr/u-strspn.h: Likewise.
12049 * lib/unistr/u-strstr.h: Likewise.
12050 * lib/unistr/u-strtok.h: Likewise.
12051 * lib/unistr/u16-check.c: Likewise.
12052 * lib/unistr/u16-chr.c: Likewise.
12053 * lib/unistr/u16-cmp.c: Likewise.
12054 * lib/unistr/u16-cpy-alloc.c: Likewise.
12055 * lib/unistr/u16-cpy.c: Likewise.
12056 * lib/unistr/u16-endswith.c: Likewise.
12057 * lib/unistr/u16-mblen.c: Likewise.
12058 * lib/unistr/u16-mbsnlen.c: Likewise.
12059 * lib/unistr/u16-mbtouc-aux.c: Likewise.
12060 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12061 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12062 * lib/unistr/u16-mbtouc.c: Likewise.
12063 * lib/unistr/u16-mbtoucr.c: Likewise.
12064 * lib/unistr/u16-move.c: Likewise.
12065 * lib/unistr/u16-next.c: Likewise.
12066 * lib/unistr/u16-prev.c: Likewise.
12067 * lib/unistr/u16-set.c: Likewise.
12068 * lib/unistr/u16-startswith.c: Likewise.
12069 * lib/unistr/u16-stpcpy.c: Likewise.
12070 * lib/unistr/u16-stpncpy.c: Likewise.
12071 * lib/unistr/u16-strcat.c: Likewise.
12072 * lib/unistr/u16-strchr.c: Likewise.
12073 * lib/unistr/u16-strcmp.c: Likewise.
12074 * lib/unistr/u16-strcpy.c: Likewise.
12075 * lib/unistr/u16-strcspn.c: Likewise.
12076 * lib/unistr/u16-strdup.c: Likewise.
12077 * lib/unistr/u16-strlen.c: Likewise.
12078 * lib/unistr/u16-strmblen.c: Likewise.
12079 * lib/unistr/u16-strmbtouc.c: Likewise.
12080 * lib/unistr/u16-strncat.c: Likewise.
12081 * lib/unistr/u16-strncmp.c: Likewise.
12082 * lib/unistr/u16-strncpy.c: Likewise.
12083 * lib/unistr/u16-strnlen.c: Likewise.
12084 * lib/unistr/u16-strpbrk.c: Likewise.
12085 * lib/unistr/u16-strrchr.c: Likewise.
12086 * lib/unistr/u16-strspn.c: Likewise.
12087 * lib/unistr/u16-strstr.c: Likewise.
12088 * lib/unistr/u16-strtok.c: Likewise.
12089 * lib/unistr/u16-to-u32.c: Likewise.
12090 * lib/unistr/u16-to-u8.c: Likewise.
12091 * lib/unistr/u16-uctomb-aux.c: Likewise.
12092 * lib/unistr/u16-uctomb.c: Likewise.
12093 * lib/unistr/u32-check.c: Likewise.
12094 * lib/unistr/u32-chr.c: Likewise.
12095 * lib/unistr/u32-cmp.c: Likewise.
12096 * lib/unistr/u32-cpy-alloc.c: Likewise.
12097 * lib/unistr/u32-cpy.c: Likewise.
12098 * lib/unistr/u32-endswith.c: Likewise.
12099 * lib/unistr/u32-mblen.c: Likewise.
12100 * lib/unistr/u32-mbsnlen.c: Likewise.
12101 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12102 * lib/unistr/u32-mbtouc.c: Likewise.
12103 * lib/unistr/u32-mbtoucr.c: Likewise.
12104 * lib/unistr/u32-move.c: Likewise.
12105 * lib/unistr/u32-next.c: Likewise.
12106 * lib/unistr/u32-prev.c: Likewise.
12107 * lib/unistr/u32-set.c: Likewise.
12108 * lib/unistr/u32-startswith.c: Likewise.
12109 * lib/unistr/u32-stpcpy.c: Likewise.
12110 * lib/unistr/u32-stpncpy.c: Likewise.
12111 * lib/unistr/u32-strcat.c: Likewise.
12112 * lib/unistr/u32-strchr.c: Likewise.
12113 * lib/unistr/u32-strcmp.c: Likewise.
12114 * lib/unistr/u32-strcpy.c: Likewise.
12115 * lib/unistr/u32-strcspn.c: Likewise.
12116 * lib/unistr/u32-strdup.c: Likewise.
12117 * lib/unistr/u32-strlen.c: Likewise.
12118 * lib/unistr/u32-strmblen.c: Likewise.
12119 * lib/unistr/u32-strmbtouc.c: Likewise.
12120 * lib/unistr/u32-strncat.c: Likewise.
12121 * lib/unistr/u32-strncmp.c: Likewise.
12122 * lib/unistr/u32-strncpy.c: Likewise.
12123 * lib/unistr/u32-strnlen.c: Likewise.
12124 * lib/unistr/u32-strpbrk.c: Likewise.
12125 * lib/unistr/u32-strrchr.c: Likewise.
12126 * lib/unistr/u32-strspn.c: Likewise.
12127 * lib/unistr/u32-strstr.c: Likewise.
12128 * lib/unistr/u32-strtok.c: Likewise.
12129 * lib/unistr/u32-to-u16.c: Likewise.
12130 * lib/unistr/u32-to-u8.c: Likewise.
12131 * lib/unistr/u32-uctomb.c: Likewise.
12132 * lib/unistr/u8-check.c: Likewise.
12133 * lib/unistr/u8-chr.c: Likewise.
12134 * lib/unistr/u8-cmp.c: Likewise.
12135 * lib/unistr/u8-cpy-alloc.c: Likewise.
12136 * lib/unistr/u8-cpy.c: Likewise.
12137 * lib/unistr/u8-endswith.c: Likewise.
12138 * lib/unistr/u8-mblen.c: Likewise.
12139 * lib/unistr/u8-mbsnlen.c: Likewise.
12140 * lib/unistr/u8-mbtouc-aux.c: Likewise.
12141 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12142 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12143 * lib/unistr/u8-mbtouc.c: Likewise.
12144 * lib/unistr/u8-mbtoucr.c: Likewise.
12145 * lib/unistr/u8-move.c: Likewise.
12146 * lib/unistr/u8-next.c: Likewise.
12147 * lib/unistr/u8-prev.c: Likewise.
12148 * lib/unistr/u8-set.c: Likewise.
12149 * lib/unistr/u8-startswith.c: Likewise.
12150 * lib/unistr/u8-stpcpy.c: Likewise.
12151 * lib/unistr/u8-stpncpy.c: Likewise.
12152 * lib/unistr/u8-strcat.c: Likewise.
12153 * lib/unistr/u8-strchr.c: Likewise.
12154 * lib/unistr/u8-strcmp.c: Likewise.
12155 * lib/unistr/u8-strcpy.c: Likewise.
12156 * lib/unistr/u8-strcspn.c: Likewise.
12157 * lib/unistr/u8-strdup.c: Likewise.
12158 * lib/unistr/u8-strlen.c: Likewise.
12159 * lib/unistr/u8-strmblen.c: Likewise.
12160 * lib/unistr/u8-strmbtouc.c: Likewise.
12161 * lib/unistr/u8-strncat.c: Likewise.
12162 * lib/unistr/u8-strncmp.c: Likewise.
12163 * lib/unistr/u8-strncpy.c: Likewise.
12164 * lib/unistr/u8-strnlen.c: Likewise.
12165 * lib/unistr/u8-strpbrk.c: Likewise.
12166 * lib/unistr/u8-strrchr.c: Likewise.
12167 * lib/unistr/u8-strspn.c: Likewise.
12168 * lib/unistr/u8-strstr.c: Likewise.
12169 * lib/unistr/u8-strtok.c: Likewise.
12170 * lib/unistr/u8-to-u16.c: Likewise.
12171 * lib/unistr/u8-to-u32.c: Likewise.
12172 * lib/unistr/u8-uctomb-aux.c: Likewise.
12173 * lib/unistr/u8-uctomb.c: Likewise.
12174 * lib/unitypes.h: Likewise.
12175 * lib/uniwidth.h: Likewise.
12176 * lib/uniwidth/cjk.h: Likewise.
12177 * lib/uniwidth/u16-strwidth.c: Likewise.
12178 * lib/uniwidth/u16-width.c: Likewise.
12179 * lib/uniwidth/u32-strwidth.c: Likewise.
12180 * lib/uniwidth/u32-width.c: Likewise.
12181 * lib/uniwidth/u8-strwidth.c: Likewise.
12182 * lib/uniwidth/u8-width.c: Likewise.
12183 * lib/uniwidth/width.c: Likewise.
12185 2007-10-07 Bruno Haible <bruno@clisp.org>
12187 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
12188 The file is still under LGPL (see modules/inttypes).
12190 2007-10-06 Bruno Haible <bruno@clisp.org>
12192 * modules/trunc (Dependencies): Add 'extensions'.
12193 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
12194 Reported by Ben Pfaff <blp@gnu.org>.
12196 2007-10-06 Bruno Haible <bruno@clisp.org>
12198 * modules/freopen-tests: New file.
12199 * tests/test-freopen.c: New file.
12201 * modules/fopen-tests: New file.
12202 * tests/test-fopen.c: New file.
12204 * modules/fopen: New file.
12205 * lib/fopen.c: New file.
12206 * m4/fopen.m4: New file.
12207 * modules/freopen: New file.
12208 * lib/freopen.c: New file.
12209 * m4/freopen.m4: New file.
12210 * lib/stdio.in.h (fopen, freopen): New declarations.
12211 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
12212 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
12213 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
12214 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
12215 * doc/functions/fopen.texi: Mention the 'fopen' module.
12216 * doc/functions/freopen.texi: Mention the 'freopen' module.
12218 2007-10-06 Bruno Haible <bruno@clisp.org>
12220 * modules/open-tests: New file.
12221 * tests/test-open.c: New file.
12223 * modules/open: New file.
12224 * lib/open.c: New file.
12225 * m4/open.m4: New file.
12226 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
12228 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
12229 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
12231 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
12232 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
12234 * doc/functions/open.texi: Mention the 'open' module.
12236 2007-10-04 Bruno Haible <bruno@clisp.org>
12238 * modules/ceill-tests: New file.
12239 * tests/test-ceill.c: New file.
12241 * modules/ceill: New file.
12242 * lib/ceill.c: Replace entire file.
12243 * m4/ceill.m4: New file.
12244 * lib/math.in.h (ceill): Replace declaration.
12245 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
12246 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
12247 * doc/functions/ceill.texi: Mention the 'ceill' module.
12248 * modules/mathl (Files): Remove lib/ceill.c.
12249 (Depends-on): Add ceill.
12251 2007-10-04 Bruno Haible <bruno@clisp.org>
12253 * modules/ceilf-tests: New file.
12254 * tests/test-ceilf.c: New file.
12256 * modules/ceilf: New file.
12257 * lib/ceil.c: New file.
12258 * lib/ceilf.c: New file.
12259 * m4/ceilf.m4: New file.
12260 * lib/math.in.h (ceilf): New declaration.
12261 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
12263 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
12265 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
12267 2007-10-04 Bruno Haible <bruno@clisp.org>
12269 * modules/floorl-tests: New file.
12270 * tests/test-floorl.c: New file.
12272 * modules/floorl: New file.
12273 * lib/floorl.c: Replace entire file.
12274 * m4/floorl.m4: New file.
12275 * lib/math.in.h (floorl): Replace declaration.
12276 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
12277 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
12278 * doc/functions/floorl.texi: Mention the 'floorl' module.
12279 * modules/mathl (Files): Remove lib/floorl.c.
12280 (Depends-on): Add floorl.
12282 2007-10-04 Bruno Haible <bruno@clisp.org>
12284 * modules/floorf-tests: New file.
12285 * tests/test-floorf.c: New file.
12287 * modules/floorf: New file.
12288 * lib/floor.c: New file.
12289 * lib/floorf.c: New file.
12290 * m4/floorf.m4: New file.
12291 * lib/math.in.h (floorf): New declaration.
12292 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
12294 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
12296 * doc/functions/floorf.texi: Mention the 'floorf' module.
12298 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
12299 Bruno Haible <bruno@clisp.org>
12301 Advertise for the Git server instead of the CVS server.
12302 * doc/gnulib-intro.texi (Steady Development): Mention the Git
12303 repository instead of the CVS one.
12304 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
12305 about all VCS systems generically.
12306 * doc/gnulib.texi (Introduction): Capitalize `Git'.
12308 2007-10-04 Bruno Haible <bruno@clisp.org>
12310 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
12312 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
12314 2007-10-04 Bruno Haible <bruno@clisp.org>
12316 * modules/truncl-tests: New file.
12317 * tests/test-truncl.c: New file.
12319 * modules/truncl: New file.
12320 * lib/truncl.c: New file.
12321 * m4/truncl.m4: New file.
12322 * lib/math.in.h (truncl): New declaration.
12323 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
12325 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
12327 * doc/functions/truncl.texi: Mention the 'truncl' module.
12329 2007-10-04 Bruno Haible <bruno@clisp.org>
12331 * modules/truncf-tests: New file.
12332 * tests/test-truncf.c: New file.
12334 * modules/truncf: New file.
12335 * lib/trunc.c: Make paramerizable through USE_* macros.
12336 * lib/truncf.c: New file.
12337 * m4/truncf.m4: New file.
12338 * lib/math.in.h (truncf): New declaration.
12339 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
12341 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
12343 * doc/functions/truncf.texi: Mention the 'truncf' module.
12345 2007-10-03 Bruno Haible <bruno@clisp.org>
12347 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
12348 augmentation also for tests modules.
12349 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
12350 * modules/atexit-tests (Makefile.am): Likewise.
12351 * modules/binary-io-tests (Makefile.am): Likewise.
12352 * modules/c-strcase-tests (Makefile.am): Likewise.
12353 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
12354 * modules/canonicalize-tests (Makefile.am): Likewise.
12355 * modules/closein-tests (Makefile.am): Likewise.
12356 * modules/fprintf-posix-tests (Makefile.am): Likewise.
12357 * modules/freadahead-tests (Makefile.am): Likewise.
12358 * modules/fseek-tests (Makefile.am): Likewise.
12359 * modules/fseeko-tests (Makefile.am): Likewise.
12360 * modules/ftell-tests (Makefile.am): Likewise.
12361 * modules/ftello-tests (Makefile.am): Likewise.
12362 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
12363 * modules/isnanl-tests (Makefile.am): Likewise.
12364 * modules/lseek-tests (Makefile.am): Likewise.
12365 * modules/mbscasecmp-tests (Makefile.am): Likewise.
12366 * modules/mbscasestr-tests (Makefile.am): Likewise.
12367 * modules/mbschr-tests (Makefile.am): Likewise.
12368 * modules/mbscspn-tests (Makefile.am): Likewise.
12369 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12370 * modules/mbspbrk-tests (Makefile.am): Likewise.
12371 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12372 * modules/mbsrchr-tests (Makefile.am): Likewise.
12373 * modules/mbsspn-tests (Makefile.am): Likewise.
12374 * modules/mbsstr-tests (Makefile.am): Likewise.
12375 * modules/printf-posix-tests (Makefile.am): Likewise.
12376 * modules/snprintf-posix-tests (Makefile.am): Likewise.
12377 * modules/sprintf-posix-tests (Makefile.am): Likewise.
12378 * modules/tsearch-tests (Makefile.am): Likewise.
12379 * modules/uniname/uniname-tests (Makefile.am): Likewise.
12380 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12381 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12382 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12383 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12384 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12385 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12386 * modules/vprintf-posix-tests (Makefile.am): Likewise.
12387 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
12388 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
12389 * modules/xstrtoimax-tests (Makefile.am): Likewise.
12390 * modules/xstrtol-tests (Makefile.am): Likewise.
12391 * modules/xstrtoumax-tests (Makefile.am): Likewise.
12392 * modules/yesno-tests (Makefile.am): Likewise.
12394 2007-10-03 Bruno Haible <bruno@clisp.org>
12396 * modules/trunc-tests: New file.
12397 * tests/test-trunc.c: New file.
12399 * modules/trunc: New file.
12400 * lib/trunc.c: New file.
12401 * m4/trunc.m4: New file.
12402 * lib/math.in.h (trunc): New declaration.
12403 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
12405 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
12407 * doc/functions/trunc.texi: Mention the 'trunc' module.
12409 2007-10-03 Bruno Haible <bruno@clisp.org>
12411 * tests/test-fpending.c: New file, mostly copied
12412 from coreutils/lib/t-fpending.c.
12413 * modules/fpending-tests: New file.
12415 2007-10-03 Bruno Haible <bruno@clisp.org>
12417 Port the stdio extensions to QNX (untested).
12418 * lib/fseterr.c (fseterr): Add support for QNX.
12419 * lib/fbufmode.c (fbufmode): Likewise.
12420 * lib/freadable.c (freadable): Likewise.
12421 * lib/fwritable.c (fwritable): Likewise.
12422 * lib/freading.c (freading): Likewise.
12423 * lib/fwriting.c (fwriting): Likewise.
12424 * lib/freadahead.c (freadahed): Likewise.
12425 * lib/fpurge.c (fpurge): Likewise.
12426 * lib/fseeko.c (rpl_fseeko): Likewise.
12428 2007-10-03 Bruno Haible <bruno@clisp.org>
12429 Jim Meyering <jim@meyering.net>
12430 Eric Blake <ebb9@byu.net>
12432 * doc/relocatable.texi: Use @command instead of @program.
12434 2007-10-02 Jim Meyering <jim@meyering.net>
12436 Perform one more "_.h" -> ".in.h" substitution.
12437 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
12438 instead of unistd_.h here, too.
12440 2007-10-01 Bruno Haible <bruno@clisp.org>
12442 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
12443 Needed for the alloca-opt module.
12445 2007-09-30 Bruno Haible <bruno@clisp.org>
12447 * lib/alloca.in.h: Renamed from lib/alloca_.h.
12448 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
12450 * lib/argz.in.h: Renamed from lib/argz_.h.
12451 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
12452 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
12453 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
12455 * lib/dirent.in.h: Renamed from lib/dirent_.h.
12456 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
12458 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
12459 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
12461 * lib/float.in.h: Renamed from lib/float_.h.
12462 * modules/float (Files, Makefile.am): Use float.in.h instead of
12464 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
12465 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
12467 * lib/getopt.in.h: Renamed from lib/getopt_.h.
12468 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
12470 * lib/glob.in.h: Renamed from lib/glob_.h.
12471 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
12472 * lib/iconv.in.h: Renamed from lib/iconv_.h.
12473 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
12475 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
12476 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
12478 * lib/locale.in.h: Renamed from lib/locale_.h.
12479 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
12481 * lib/math.in.h: Renamed from lib/math_.h.
12482 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
12483 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
12484 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
12485 of netinet_in_.h. Add dependency.
12486 * lib/poll.in.h: Renamed from lib/poll_.h.
12487 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
12488 * lib/search.in.h: Renamed from lib/search_.h.
12489 * modules/search (Files, Makefile.am): Use search.in.h instead of
12491 * lib/signal.in.h: Renamed from lib/signal_.h.
12492 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
12494 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
12495 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
12497 * lib/stdint.in.h: Renamed from lib/stdint_.h.
12498 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
12500 * lib/stdio.in.h: Renamed from lib/stdio_.h.
12501 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
12503 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
12504 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
12506 * lib/string.in.h: Renamed from lib/string_.h.
12507 * modules/string (Files, Makefile.am): Use string.in.h instead of
12509 * doc/gnulib-tool.texi (Initial import): Update.
12510 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
12511 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
12512 of sys_select_.h. Add dependency.
12513 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
12514 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
12516 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
12517 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
12519 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
12520 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
12522 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
12523 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
12525 * lib/time.in.h: Renamed from lib/time_.h.
12526 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
12527 * lib/unistd.in.h: Renamed from lib/unistd_.h.
12528 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
12530 * lib/wchar.in.h: Renamed from lib/wchar_.h.
12531 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
12533 * lib/wctype.in.h: Renamed from lib/wctype_.h.
12534 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
12536 * build-aux/bootstrap (slurp): Update.
12537 * lib/.cppi-disable: Update.
12539 2007-09-30 Bruno Haible <bruno@clisp.org>
12541 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
12544 2007-09-30 Bruno Haible <bruno@clisp.org>
12546 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
12548 2007-09-29 Bruno Haible <bruno@clisp.org>
12550 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
12552 2007-09-29 Bruno Haible <bruno@clisp.org>
12554 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
12555 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
12556 * build-aux/install-reloc: Compile also areadlink.c.
12557 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
12559 2007-09-29 Bruno Haible <bruno@clisp.org>
12561 * gnulib-tool (func_emit_initmacro_done): Indentation.
12563 2007-09-29 Bruno Haible <bruno@clisp.org>
12565 * README: Add CVS checkout update instructions.
12566 Info from Bob Proulx <bob@proulx.com>.
12568 2007-09-28 Eric Blake <ebb9@byu.net>
12570 Provide move-if-change.
12571 * build-aux/move-if-change: New file, based on best practice
12572 rather than any canonical upstream location.
12574 2007-09-28 Jim Meyering <jim@meyering.net>
12576 Fix canonicalize loop-detection corner case.
12577 Do not attempt to stat the symlink values stored via seen_triple.
12578 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
12579 on linux-2.6.18, (but not 2.6.22).
12580 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
12581 triple_compare. The former compares dev,ino,filename, while the latter
12582 would actually stat dirname(filename) when dev and ino were equal.
12583 * lib/hash-triple.c: Install <string.h>.
12585 (triple_compare_ino_str): New function.
12586 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
12588 2007-09-28 Eric Blake <ebb9@byu.net>
12590 Enforce that AC_REPLACE_FUNCS files exist.
12591 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
12592 override check for typos.
12594 Fix test-closein on Solaris 10.
12595 * tests/test-closein.c (main): Don't assume stdin can be inherited
12596 closed on all systems.
12597 * tests/test-closein.sh: Likewise.
12598 Reported by Piotr Tarnowski.
12600 2007-09-28 Jim Meyering <jim@meyering.net>
12602 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
12604 2007-09-27 Jim Meyering <jim@meyering.net>
12606 canonicalize: Avoid a false-positive cycle failure.
12607 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
12608 Sort. Remove cycle-check.
12609 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
12611 (seen_triple): New function.
12612 (canonicalize_filename_mode): Use it instead of cycle-check.
12613 * tests/test-canonicalize.c: Add a test for this bug.
12614 * tests/test-canonicalize.sh: Set up and run the test.
12616 New module, file-set, from coreutils.
12617 * modules/file-set: Define it.
12618 * lib/file-set.c, lib/file-set.h: Implement.
12620 New module, hash-triple, from coreutils.
12621 * modules/hash-triple: Define it.
12622 * lib/hash-triple.c, lib/hash-triple.h: Implement.
12624 2007-09-25 Eric Blake <ebb9@byu.net>
12626 Fix strerror on Interix.
12627 * lib/string_.h (strerror): Declare replacement.
12628 * doc/functions/strerror.texi (strerror): Document the Interix
12630 * modules/string (Makefile.am): Support new hooks.
12631 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
12632 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
12633 gl_FUNC_STRERROR_SEPARATE.
12634 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
12635 * lib/strerror.c (rpl_strerror): Provide replacement.
12636 * modules/strerror (Depends-on): Add string.
12637 (configure.ac): Detect use of module.
12638 * tests/test-strerror.c: New file.
12639 * modules/strerror-tests: New test module.
12640 * modules/argp (Depends-on): Add strerror.
12641 * modules/error (Depends-on): Likewise.
12642 Reported by Martin Koeppe.
12644 2007-09-24 Bruno Haible <bruno@clisp.org>
12646 * README: Update git instructions.
12648 2007-09-24 Eric Blake <ebb9@byu.net>
12650 Revert fpending breakage from 2007-09-08.
12651 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
12654 2007-09-24 Jim Meyering <jim@meyering.net>
12656 filenamecat.c: Add a test.
12657 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
12658 showing how the function works when DIR is the empty string.
12660 2007-09-21 Simon Josefsson <simon@josefsson.org>
12662 * tests/test-canonicalize.sh: Turn on executable bit.
12664 2007-09-19 Eric Blake <ebb9@byu.net>
12666 * README: Update CVS instructions.
12668 2007-09-18 Bruno Haible <bruno@clisp.org>
12670 * modules/areadlink: New file.
12671 * lib/areadlink.h (areadlink): New declaration.
12672 * lib/areadlink.c: New file, based on lib/xreadlink.c.
12674 2007-09-17 Jim Meyering <jim@meyering.net>
12676 * lib/savewd.c (ESTALE) [!defined]: Define.
12677 Reported to be required on Interix by Martin Koeppe.
12679 2007-09-17 Bruno Haible <bruno@clisp.org>
12681 * gnulib-tool (func_version): Use $version.
12683 2007-09-16 Bruno Haible <bruno@clisp.org>
12685 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
12686 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
12687 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
12688 Reported by Greg Schafer <gschafer@zip.com.au>.
12690 2007-09-15 Bruno Haible <bruno@clisp.org>
12692 * gnulib-tool (sed): Try a little harder to make bash understand the
12694 Reported by Bruce Korb <bruce.korb@gmail.com>.
12696 2007-09-13 Eric Blake <ebb9@byu.net>
12698 * ChangeLog: Remove conflict markers.
12700 2007-09-13 Simon Josefsson <simon@josefsson.org>
12702 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
12703 Reported by Bruno Haible <bruno@clisp.org>.
12705 2007-09-12 Bruno Haible <bruno@clisp.org>
12707 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
12708 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
12711 2007-09-12 Eric Blake <ebb9@byu.net>
12713 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
12714 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
12715 Autoconf definition.
12716 * modules/euidaccess (Depends-on): Add extensions, for
12717 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
12718 * modules/fnmatch (Depends-on): Likewise.
12719 * modules/getaddrinfo (Depends-on): Likewise.
12720 * modules/getdelim (Depends-on): Likewise.
12721 * modules/getline (Depends-on): Likewise.
12722 * modules/getsubopt (Depends-on): Likewise.
12723 * modules/gettext (Depends-on): Likewise.
12724 * modules/group-member (Depends-on): Likewise.
12725 * modules/mbchar (Depends-on): Likewise.
12726 * modules/memmem (Depends-on): Likewise.
12727 * modules/mempcpy (Depends-on): Likewise.
12728 * modules/memrchr (Depends-on): Likewise.
12729 * modules/pagealign_alloc (Depends-on): Likewise.
12730 * modules/readutmp (Depends-on): Likewise.
12731 * modules/stpcpy (Depends-on): Likewise.
12732 * modules/stpncpy (Depends-on): Likewise.
12733 * modules/strchrnul (Depends-on): Likewise.
12734 * modules/strndup (Depends-on): Likewise.
12735 * modules/strsep (Depends-on): Likewise.
12736 * modules/strverscmp (Depends-on): Likewise.
12737 * modules/vasprintf (Depends-on): Likewise.
12738 * modules/wcwidth (Depends-on): Likewise.
12739 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
12740 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
12741 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
12742 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
12743 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12744 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12745 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
12746 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12747 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
12748 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12749 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12750 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
12751 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
12752 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12753 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
12754 * m4/readutmp.m4 (gl_READUTMP): Likewise.
12755 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12756 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
12757 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12758 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
12759 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
12760 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
12761 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
12762 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
12763 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
12764 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12765 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
12766 so that lock.m4 can be used in gettext without extensions module.
12768 2007-09-11 Bruno Haible <bruno@clisp.org>
12770 * m4/isc-posix.m4: Remove file.
12771 Suggested by Eric Blake.
12773 2007-09-11 Eric Blake <ebb9@byu.net>
12775 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
12777 2007-09-10 Bruno Haible <bruno@clisp.org>
12779 * posix-modules: Fix typo in error message.
12780 Reported by Matt <mkraai@beckman.com>.
12782 2007-09-09 Bruno Haible <bruno@clisp.org>
12784 * doc/functions/getdelim.texi: Update list of platforms lacking the
12786 * doc/functions/getline.texi: Likewise.
12788 2007-09-09 Jim Meyering <jim@meyering.net>
12790 * lib/hash.c (hash_initialize): Detect calloc failure.
12791 Reported by Bruno Haible.
12793 2007-09-09 Bruno Haible <bruno@clisp.org>
12795 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
12796 malloc or realloc fails.
12798 2007-09-09 Bruno Haible <bruno@clisp.org>
12800 * modules/getcwd (Depends-on): Add malloc-posix.
12801 * modules/glob (Depends-on): Likewise.
12802 * modules/putenv (Depends-on): Likewise.
12803 * modules/strdup (Depends-on): Likewise.
12804 * modules/getdelim (Depends-on): Add realloc-posix.
12805 * modules/read-file (Depends-on): Likewise.
12807 2007-09-09 Bruno Haible <bruno@clisp.org>
12809 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
12810 (gl_FUNC_MALLOC_POSIX): Require it.
12811 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
12812 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
12813 * modules/realloc (Files): Add m4/malloc.m4.
12814 * modules/calloc (Files): Likewise.
12816 2007-09-09 Bruno Haible <bruno@clisp.org>
12818 * modules/malloc-posix: New file.
12819 * modules/malloc (Depends-on): Add malloc-posix.
12820 * lib/malloc.c: Include errno.h.
12821 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
12822 and a POSIX-compatible malloc into a single function. Set ENOMEM
12823 when returning NULL.
12824 * m4/malloc.m4: New file.
12825 * doc/functions/malloc.texi: Mention the malloc-posix module.
12826 * lib/stdlib_.h (malloc): New declaration.
12827 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12828 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
12829 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
12830 and HAVE_MALLOC_POSIX.
12832 2007-09-09 Bruno Haible <bruno@clisp.org>
12834 * modules/realloc-posix: New file.
12835 * modules/realloc (Depends-on): Add realloc-posix.
12836 * lib/realloc.c: Include errno.h.
12837 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
12838 and a POSIX-compatible realloc into a single function. Set ENOMEM
12839 when returning NULL.
12840 * m4/realloc.m4: New file.
12841 * doc/functions/realloc.texi: Mention the realloc-posix module.
12842 * lib/stdlib_.h (realloc): New declaration.
12843 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12844 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
12845 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
12846 and HAVE_REALLOC_POSIX.
12848 2007-09-09 Bruno Haible <bruno@clisp.org>
12850 * modules/calloc-posix: New file.
12851 * modules/calloc (Depends-on): Add calloc-posix.
12852 * lib/calloc.c: Include errno.h.
12853 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
12854 and a POSIX-compatible calloc into a single function. Set ENOMEM
12855 when returning NULL.
12856 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
12857 * doc/functions/calloc.texi: Mention the calloc-posix module.
12858 * lib/stdlib_.h (calloc): New declaration.
12859 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12860 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
12861 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
12862 and HAVE_CALLOC_POSIX.
12864 2007-09-09 Bruno Haible <bruno@clisp.org>
12866 Allow for modules to show an arbitrary notice.
12867 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
12868 * gnulib-tool: New option --extract-notice.
12869 (func_usage): Document it.
12870 (sed_extract_prog): Update.
12871 (func_get_notice): New function.
12872 (func_modules_notice): New function.
12873 (func_import, func_create_testdir): Invoke it.
12874 Suggested by Jim Meyering.
12876 2007-09-09 Bruno Haible <bruno@clisp.org>
12878 * gnulib-tool: New options --verbose, --quiet.
12879 (func_usage): Document them.
12880 (verbose): New variable.
12881 (func_execute_command): New function.
12882 (func_import): Don't show the module list and the file list if
12884 (func_create_testdir): Likewise. Use func_execute_command.
12885 (func_create_megatestdir): Use func_execute_command.
12887 2007-09-08 Bruno Haible <bruno@clisp.org>
12889 * gnulib-tool (func_import): Prefer rsync over wget when available,
12890 for fetching the PO files.
12892 2007-09-08 Bruno Haible <bruno@clisp.org>
12894 * posix-modules: New file. Portions copied from gnulib-tool.
12895 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
12897 2007-09-08 Jim Meyering <jim@meyering.net>
12899 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
12900 * lib/fpending.h: Rename from __fpending.h.
12901 * lib/fpending.c: Rename from __fpending.c.
12902 Include "fpending.h", not "__fpending.h".
12903 * lib/__fpending.h, lib/__fpending.c: Remove files.
12904 * modules/fpending (Files): Reflect new file names.
12905 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
12907 2007-09-08 Bruno Haible <bruno@clisp.org>
12909 * m4/inttypes-h.m4: Remove stub file.
12911 2007-09-07 Simon Josefsson <simon@josefsson.org>
12913 * doc/headers/stdint.texi: Discuss #include_next issue.
12915 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
12917 * build-aux/bootstrap: Remove obsolete comment about wget --help.
12919 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12921 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
12924 2007-09-03 Jim Meyering <jim@meyering.net>
12926 New module: git-version-gen.
12927 * modules/git-version-gen: New file.
12929 Import changes from coreutils for bootstrap script.
12931 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
12933 bootstrap: uses rsync to download the .po files
12934 * build-aux/bootstrap (po_download_command_format): New global.
12935 (download_po_files): Use rsync.
12936 (update_po_files): Don't remove .po files after download,
12937 so future rsync runs can take advantage of the copies.
12939 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
12941 Solve the unnecessary-.po-file-regeneration problem once and for all.
12942 * build-aux/bootstrap (download_po_files): New function, renamed from
12943 get_translations. Now, downloads, but doesn't update LINGUAS.
12944 (update_po_files): New function.
12946 bootstrap: Ignore more.
12947 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
12948 uniwidth to e.g., lib/.gitignore.
12949 (slurp): Handle the sys_stat_.h -> sys mapping, too.
12951 * build-aux/bootstrap: New setting: vc_ignore.
12952 (insert_sorted_if_absent): Create $file if absent.
12953 Adapt to new, possibly empty, list: $vc_ignore.
12955 bootstrap: generate more ignorable names
12956 * build-aux/bootstrap (slurp): When generating ignorable names,
12957 also map .sin to .sed, .gperf to .c, and .y to .c.
12959 2007-09-03 Jim Meyering <jim@meyering.net>
12961 * build-aux/git-version-gen: New file, from coreutils. For details, see
12962 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
12964 2007-09-02 Bruno Haible <bruno@clisp.org>
12966 Fix mis-recognition of 'mcs' on QNX 6.
12967 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
12968 output contains the string "Mono".
12969 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
12970 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
12972 2007-09-01 Bruno Haible <bruno@clisp.org>
12974 Fix collision between uniwidth/* and linebreak modules.
12975 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
12976 u32_width): Remove declarations.
12977 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
12978 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
12979 streq3, streq2, streq1, streq0): Remove functions.
12980 (STREQ): Remove macro.
12981 (is_cjk_encoding): Remove function.
12982 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
12983 (uc_width, u8_width, u16_width, u32_width): Remove functions.
12984 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
12985 * NEWS: Document the change.
12987 2007-09-01 Bruno Haible <bruno@clisp.org>
12989 * lib/streq.h: Add double-inclusion guard.
12991 2007-09-01 Karl Berry <karl@gnu.org>
12993 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
12995 2007-08-28 Jim Meyering <jim@meyering.net>
12997 Rename mreadlink_with_size to areadlink_with_size.
12998 * NEWS: Document the change.
12999 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
13000 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
13001 * lib/mreadlink.h: Rename this to...
13002 * lib/areadlink.h: ...this.
13003 * modules/mreadlink-with-size: Rename this to...
13004 * modules/areadlink-with-size: ...this.
13005 * lib/canonicalize.c: Reflect the renaming.
13006 * modules/canonicalize: Likewise.
13008 2007-08-26 Bruno Haible <bruno@clisp.org>
13010 * gnulib-tool (func_import): When deciding which files to remove,
13011 consider also dangling symbolic links.
13012 Reported by Eric Blake.
13014 2007-08-26 Bruno Haible <bruno@clisp.org>
13016 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
13018 2007-08-23 Simon Josefsson <simon@josefsson.org>
13020 * lib/readline.c: Don't include getline.h, the prototype is now
13023 2007-08-23 Jim Meyering <jim@meyering.net>
13026 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
13027 around the funlockfile call, since funlockfile never sets errno.
13028 Don't set errno upon failed realloc.
13030 2007-08-22 Eric Blake <ebb9@byu.net>
13033 * lib/getdelim.c (getdelim): Revert regression that required *n to
13034 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
13035 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
13036 getdelim, rather than whether implementation is missing.
13037 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
13038 * lib/stdio_.h (getline): Also declare if replacement is
13040 * doc/functions/getdelim.texi: New file.
13041 * doc/functions/getline.texi: Likewise.
13042 * doc/gnulib.texi (Function Substitutes): Add new files.
13043 Reported by Bruno Haible.
13045 2007-08-22 Ludovic Courtès <ludo@gnu.org>
13047 * users.txt: Add Guile.
13049 2007-08-22 Eric Blake <ebb9@byu.net>
13051 * tests/test-getdelim.c (main): Use remove, not unlink.
13052 * tests/test-getline.c (main): Likewise.
13054 Move getline and getdelim into stdio.h, per POSIX 200x.
13055 * modules/getline (Files): Remove getline.h.
13056 (Depends-on): Add stdio.
13057 (configure.ac): Add module indicator.
13058 * modules/getdelim (Files): Remove getdelim.h.
13059 (Depends-on): Add stdio.
13060 (configure.ac): Add module indicator.
13061 * modules/stdio (Makefile.am): Work with new indicators.
13062 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
13063 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
13064 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13065 * lib/getdelim.h: Delete.
13066 * lib/getline.h: Delete.
13067 * lib/stdio_.h (getdelim, getline): Declare.
13068 * modules/getdelim-tests: New module.
13069 * modules/getline-tests: Likewise.
13070 * tests/test-getdelim.c: New file.
13071 * tests/test-getline.c: Likewise.
13072 * NEWS: Document the change.
13073 * lib/getline.c: Update choice of header.
13074 * lib/csharpcomp.c: Likewise.
13075 * lib/getpass.c: Likewise.
13076 * lib/javacomp.c: Likewise.
13077 * lib/javaversion.c: Likewise.
13078 * lib/yesno.c: Likewise.
13079 * lib/getdelim.c: Likewise.
13080 (getdelim): Set errno on failure, and avoid memory leak.
13082 2007-08-19 Bruno Haible <bruno@clisp.org>
13084 * modules/closein (Depends-on): Add freadahead.
13085 * lib/closein.c: Include freadahead.h.
13086 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
13089 2007-08-19 Bruno Haible <bruno@clisp.org>
13091 * modules/freadahead-tests: New file.
13092 * tests/test-freadahead.sh: New file.
13093 * tests/test-freadahead.c: New file.
13095 * modules/freadahead: New file.
13096 * lib/freadahead.h: New file.
13097 * lib/freadahead.c: New file.
13098 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
13099 fbufmode, fpurge, freadable, fwritable.
13101 2007-08-19 Eric Blake <ebb9@byu.net>
13103 Test yesno in combination with closein.
13104 * lib/yesno.c (yesno): Document use of stdin.
13105 * modules/yesno-tests (Files): New module.
13106 * tests/test-yesno.c (main): New file.
13107 * tests/test-yesno.sh: Likewise.
13109 2007-08-19 Bruno Haible <bruno@clisp.org>
13111 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
13112 * lib/fseeko.c (rpl_fseeko): Likewise.
13113 * lib/fseterr.c (fseterr): Likewise.
13115 2007-08-19 Bruno Haible <bruno@clisp.org>
13117 * tests/test-lseek.c (main): Disable a test for BeOS.
13118 * doc/functions/lseek.texi: Document the BeOS bug.
13120 2007-08-19 Bruno Haible <bruno@clisp.org>
13121 Eric Blake <ebb9@byu.net>
13123 * lib/lseek.c: Include <sys/stat.h>.
13124 (rpl_lseek): Add workaround code also for Unix platforms.
13126 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
13127 * doc/functions/lseek.texi: Document BeOS definiency.
13129 2007-08-18 Bruno Haible <bruno@clisp.org>
13131 * modules/fstrcmp-tests: New file.
13132 * tests/test-fstrcmp.c: New file.
13134 2007-08-18 Bruno Haible <bruno@clisp.org>
13136 * modules/fstrcmp: New file, from GNU gettext with modifications.
13137 * lib/fstrcmp.h: New file, from GNU gettext.
13138 * lib/fstrcmp.c: New file, from GNU gettext.
13139 * MODULES.html.sh (String handling): Add fstrcmp.
13141 2007-08-18 Bruno Haible <bruno@clisp.org>
13143 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
13145 (diag, compareseq): Remove const from the ctxt argument.
13146 (USE_HEURISTIC): Undefine at the end.
13148 2007-08-18 Jim Meyering <jim@meyering.net>
13150 New file: lib/idcache.h
13151 * NEWS: Mention the addition.
13152 * modules/idcache (Files): Add lib/idcache.h
13153 * lib/idcache.c: Include "idcache.h".
13154 Don't include <sys/types.h>.
13155 Add a FIXME comment.
13156 Move file-scoped "static" declarations to the top.
13157 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
13159 2007-08-17 Bruno Haible <bruno@clisp.org>
13160 and Paul Eggert <eggert@cs.ucla.edu>
13162 * MODULES.html.sh: Add diffseq.
13163 * modules/diffseq: New file.
13164 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
13165 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
13167 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
13169 Import changes from coreutils for bootstrap script.
13171 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
13173 * build-aux/bootstrap (slurp): Work even in environments where
13174 "ls" defaults to "ls -A". Put in a FIXME, though, since the
13175 current code does not slurp files whose names start with ".", and
13176 this looks like it might be a troublesome area.
13178 2007-07-11 Jim Meyering <jim@meyering.net>
13180 If there's a GPL vN copyright comment, require that N == 3.
13182 2007-07-08 Jim Meyering <jim@meyering.net>
13184 Run the coreutils-specific code only if tests/Makefile.am.in exists.
13185 * build-aux/bootstrap (mam_template): Move definition out of loop.
13187 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
13189 * build-aux/bootstrap (symlink_to_dir): Rename function from
13190 symlink_to_gnulib. Add a directory parameter. Update all
13192 (cp_mark_as_generated): Also check for -- and link to -- files in
13195 2007-07-08 Jim Meyering <jim@meyering.net>
13197 Adapt to deeper hierarchy in gnulib.
13198 * build-aux/bootstrap (symlink_to_dir): If the destination
13199 directory doesn't exist, create it. This is required at least for
13200 "lib/uniwidth/cjk.h".
13202 2007-05-15 Jim Meyering <jim@meyering.net>
13204 * build-aux/bootstrap: Now that generated Makefile.am files
13205 are no longer under version control, they must be created at
13208 2007-08-14 Ben Pfaff <blp@gnu.org>
13210 * lib/count-one-bits.h: Add comments. From Bruno Haible.
13212 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
13214 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
13215 given the changes below.
13216 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
13217 even on hosts that have padding bits beyond the supported 64.
13219 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
13221 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
13222 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
13223 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
13225 (xstrtol_error): Remove.
13226 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
13227 but with a different signature.
13228 (ATTRIBUTE_NORETURN, __attribute__): New macros.
13229 * lib/xstrtol-error.c: Include exitfail.h.
13230 (xstrtol_fatal): New function, with a different signature from the
13231 old xstrtol_error, so that the caller need not worry about passing
13232 in an exit status, or about storage management of the option argument.
13233 (xstrtol_error): Now a static function. Redo signature to
13234 implement xstrtol_fatal. Output the correct number of hyphens in
13235 front of the option so that the caller need not worry about
13236 storage management.
13238 (_): Remove; not used now.
13239 * modules/xstrtol: Depend on getopt.
13240 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
13241 of old STRTOL_FATAL_ERROR macro.
13242 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
13244 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
13245 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
13247 2007-08-08 Eric Blake <ebb9@byu.net>
13249 * lib/xstrtol-error.c: Add missing include.
13251 Move xstrtol messages into gnulib domain, when --pobase is used.
13252 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
13253 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
13254 * modules/xstrtol (Files): Distribute new file.
13255 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
13256 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
13257 * tests/test-xstrtol.c: ...into new file.
13258 * tests/test-xstrtoul.c: Also test xstrtoul.
13259 * tests/test-xstrtoimax.c: Also test xstrtoimax.
13260 * tests/test-xstrtoumax.c: Also test xstrtoumax.
13261 * tests/test-xstrtol.sh: Drive the tests.
13262 * tests/test-xstrtoimax.sh: Likewise.
13263 * tests/test-xstrtoumax.sh: Likewise.
13264 * modules/xstrtol-tests: New module.
13265 * modules/xstrtoimax-tests: Likewise.
13266 * modules/xstrtoumax-tests: Likewise.
13268 2007-08-08 Jim Meyering <jim@meyering.net>
13270 New function: mfile_name_concat.
13271 * lib/filenamecat.c (mfile_name_concat): New function, just like
13272 file_name_concat, but return NULL upon failure rather than exiting
13274 * lib/filenamecat.h: Declare it.
13276 2007-08-07 Bruno Haible <bruno@clisp.org>
13278 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
13279 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
13281 Reported by Eric Blake.
13283 2007-08-07 Simon Josefsson <simon@josefsson.org>
13285 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
13286 * modules/crypto/arcfour (License): Likewise.
13287 * modules/crypto/des-tests (License): Likewise.
13288 * modules/crypto/gc-arctwo-tests (License): Likewise.
13289 * modules/crypto/gc-des-tests (License): Likewise.
13290 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
13291 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
13292 * modules/crypto/gc-md2-tests (License): Likewise.
13293 * modules/crypto/gc-md4-tests (License): Likewise.
13294 * modules/crypto/gc-md5-tests (License): Likewise.
13295 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
13296 * modules/crypto/gc-rijndael-tests (License): Likewise.
13297 * modules/crypto/gc-sha1-tests (License): Likewise.
13298 * modules/crypto/gc-tests (License): Likewise.
13299 * modules/crypto/hmac-md5 (License): Likewise.
13300 * modules/crypto/hmac-sha1 (License): Likewise.
13301 * modules/crypto/md2-tests (License): Likewise.
13302 * modules/crypto/md4-tests (License): Likewise.
13303 * modules/crypto/md5 (License): Likewise.
13304 * modules/crypto/rijndael (License): Likewise.
13305 * modules/crypto/sha1 (License): Likewise.
13306 * modules/memxor (License): Likewise.
13308 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
13309 and Bruno Haible <bruno@clisp.org>
13311 * NEWS: Describe interface changes to human, xstrtol.
13312 * lib/human.h: Include <xstrtol.h>.
13313 (human_options): Return enum strtol_error, not int. Remove
13314 bool arg; take int * instead.
13315 * lib/human.c: Don't include "gettext.h".
13316 (_): Remove; no longer used.
13317 Don't include <xstrtol.h>, since human.h does it.
13318 (human_options): Adjust to abovementioned interface changes.
13319 Do not report error to stderr; that's now the caller's
13321 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
13323 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
13324 Str, Argument_type_string. All uses changed. Put " argument"
13325 in diagnostics to make them clearer. Change wording of suffix
13326 message for clarity.
13327 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
13328 Argument_type_string.
13329 (STRTOL_FATAL_WARN): Remove; no longer used.
13330 * modules/human (Depends-on): Remove gettext-h.
13332 2007-08-06 Simon Josefsson <simon@josefsson.org>
13334 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
13336 2007-07-31 Bruno Haible <bruno@clisp.org>
13338 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
13339 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
13340 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
13342 2007-07-31 Bruno Haible <bruno@clisp.org>
13344 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
13345 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
13347 2007-07-30 Bruno Haible <bruno@clisp.org>
13349 * modules/base64 (License): Use the synonymous term "LGPLv2+".
13350 * modules/c-ctype (License): Likewise.
13351 * modules/c-strcase (License): Likewise.
13352 * modules/check-version (License): Likewise.
13353 * modules/iconv (License): Likewise.
13354 * modules/iconv_open (License): Likewise.
13355 * modules/read-file (License): Likewise.
13356 * modules/striconv (License): Likewise.
13357 * modules/strverscmp (License): Likewise.
13358 * modules/vasprintf (License): Likewise.
13359 * modules/crypto/des (License): Likewise.
13360 * modules/crypto/gc (License): Likewise.
13361 * modules/crypto/gc-arcfour (License): Likewise.
13362 * modules/crypto/gc-arctwo (License): Likewise.
13363 * modules/crypto/gc-des (License): Likewise.
13364 * modules/crypto/gc-hmac-md5 (License): Likewise.
13365 * modules/crypto/gc-hmac-sha1 (License): Likewise.
13366 * modules/crypto/gc-md2 (License): Likewise.
13367 * modules/crypto/gc-md4 (License): Likewise.
13368 * modules/crypto/gc-md5 (License): Likewise.
13369 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
13370 * modules/crypto/gc-random (License): Likewise.
13371 * modules/crypto/gc-rijndael (License): Likewise.
13372 * modules/crypto/gc-sha1 (License): Likewise.
13373 * modules/crypto/md2 (License): Likewise.
13374 * modules/crypto/md4 (License): Likewise.
13376 2007-07-30 Jim Meyering <jim@meyering.net>
13378 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
13379 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
13380 it has valid stat data. This bug would cause du not to count the
13381 sizes of inaccessible directories.
13382 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
13383 in <http://bugzilla.redhat.com/250077>.
13385 2007-07-25 Peter O'Gorman <peter@pogma.com>
13386 Bruno Haible <bruno@clisp.org>
13388 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
13389 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
13390 #include_next, gives a diagnostic about it, but reports no error in
13392 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
13394 2007-07-24 Ben Pfaff <blp@gnu.org>
13396 Improve name: "count-one-bits" is better than "popcount".
13397 * MODULES.html.sh: Update name.
13398 * lib/popcount.h: Renamed lib/count-one-bits.h.
13399 (popcount): Renamed count_one_bits.
13400 (popcountl): Renamed count_one_bits_l.
13401 (popcountll): Renamed count_one_bits_ll.
13402 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
13403 * modules/popcount: Renamed module/count-one-bits.
13404 * modules/popcount-tests: Renamed module/count-one-bits-tests.
13405 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
13407 2007-07-23 Ben Pfaff <blp@gnu.org>
13409 * lib/popcount.h (popcount32): Reduce size of constants, to allow
13410 better code generation, and add U to large constants to avoid
13411 warnings, in non-GCC case.
13412 Suggested by Bruno Haible.
13414 2007-07-23 Ben Pfaff <blp@gnu.org>
13416 * lib/popcount.h: Use verify_true instead of if...abort.
13417 * modules/popcount: Depend on verify module.
13418 Suggested by Jim Meyering.
13420 2007-07-23 Bruno Haible <bruno@clisp.org>
13422 * gnulib-tool (func_import): Create a .cvsignore file also when the
13423 directory is not yet in CVS but the toplevel directory is. When
13424 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
13425 Reported by Karl Berry.
13427 2007-07-22 Ben Pfaff <blp@gnu.org>
13429 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
13431 Suggested by Eric Blake.
13433 2007-07-22 Ben Pfaff <blp@gnu.org>
13435 New module: popcount.
13436 * MODULES.html.sh: Add popcount.
13437 * modules/popcount: New file.
13438 * modules/popcount-tests: New file.
13439 * tests/test-popcount.c: New file.
13440 * lib/popcount.h: New file.
13441 * m4/popcount.m4: New file.
13443 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
13445 * build-aux/announce-gen: Update to GPLv3.
13447 * build-aux/config.guess: Update from config.
13449 2007-07-21 Bruno Haible <bruno@clisp.org>
13451 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
13452 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
13454 2007-07-20 Jim Meyering <jim@meyering.net>
13456 * check-module: Diagnose a self-dependency.
13458 2007-07-19 Bruno Haible <bruno@clisp.org>
13460 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
13462 Reported by Eric Blake.
13464 2007-07-18 Bruno Haible <bruno@clisp.org>
13466 * gnulib-tool: New options --po-base, --po-domain.
13467 (func_usage): Document them.
13468 (pobase, po_domain): New variables.
13469 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
13470 DEFAULT_TEXT_DOMAIN.
13471 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
13472 (func_import): Consider pobase and po_domain. Create a po/ directory.
13473 (func_create_testdir): Set pobase and po_domain to empty.
13474 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
13475 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
13477 2007-07-18 Bruno Haible <bruno@clisp.org>
13479 * gnulib-tool (func_get_automake_snippet): Synthesize also an
13480 EXTRA_DIST augmentation for files in build-aux/.
13482 2007-07-16 Bruno Haible <bruno@clisp.org>
13484 * modules/lseek (License): Use the synonymous term "LGPLv2+".
13485 * modules/getdelim (License): Likewise.
13487 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13489 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
13490 * modules/d-type (License): Likewise.
13491 * modules/extensions (License): Likewise.
13492 * modules/fnmatch (License): Likewise.
13493 * modules/fseeko (License): Likewise.
13494 * modules/getaddrinfo (License): Likewise.
13495 * modules/getline (License): Likewise.
13496 * modules/getlogin_r (License): Likewise.
13497 * modules/getpass (License): Likewise.
13498 * modules/gettimeofday (License): Likewise.
13499 * modules/glob (License): Likewise.
13500 * modules/inet_ntop (License): Likewise.
13501 * modules/malloc (License): Likewise.
13502 * modules/malloca (License): Likewise.
13503 * modules/memmem (License): Likewise.
13504 * modules/mempcpy (License): Likewise.
13505 * modules/memset (License): Likewise.
13506 * modules/minmax (License): Likewise.
13507 * modules/mktime (License): Likewise.
13508 * modules/netinet_in (License): Likewise.
13509 * modules/pathmax (License): Likewise.
13510 * modules/poll (License): Likewise.
13511 * modules/regex (License): Likewise.
13512 * modules/snprintf (License): Likewise.
13513 * modules/stdbool (License): Likewise.
13514 * modules/stdint (License): Likewise.
13515 * modules/stdio (License): Likewise.
13516 * modules/strcase (License): Likewise.
13517 * modules/strcasestr (License): Likewise.
13518 * modules/strdup (License): Likewise.
13519 * modules/string (License): Likewise.
13520 * modules/strndup (License): Likewise.
13521 * modules/strnlen (License): Likewise.
13522 * modules/strpbrk (License): Likewise.
13523 * modules/strptime (License): Likewise.
13524 * modules/strsep (License): Likewise.
13525 * modules/sys_select (License): Likewise.
13526 * modules/sys_socket (License): Likewise.
13527 * modules/sys_stat (License): Likewise.
13528 * modules/sys_time (License): Likewise.
13529 * modules/time (License): Likewise.
13530 * modules/time_r (License): Likewise.
13531 * modules/timegm (License): Likewise.
13532 * modules/unistd (License): Likewise.
13533 * modules/vsnprintf (License): Likewise.
13534 * modules/wctype (License): Likewise.
13536 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13538 * modules/argz (License): LGPLv2+.
13540 2007-07-15 Karl Berry <karl@gnu.org>
13542 * doc/gnulib.texi: revise node structure per new fdl.texi.
13544 2007-07-14 Bruno Haible <bruno@clisp.org>
13546 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
13548 * lib/uniname/uninames.h: Regenerated.
13550 2007-07-14 Karl Berry <karl@gnu.org>
13552 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
13553 omitting sectioning and index commands.
13555 2007-07-13 Bruno Haible <bruno@clisp.org>
13557 New gnulib-tool option --more-symlinks.
13558 * gnulib-tool (func_usage): Document --more-symlinks.
13559 (do_copyrights): New variable.
13560 Recognize option --more-symlinks.
13561 (func_import): Don't add a copyright notice transform to
13562 sed_transform_lib_file if do_copyrights is empty.
13564 2007-07-13 Bruno Haible <bruno@clisp.org>
13566 * lib/vasnprintf.c (decimal_point_char): Define also if
13567 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
13568 && !NEED_PRINTF_DIRECTIVE_A.
13569 Reported by Clemens Koller <clemens.koller@anagramm.de> via
13570 Gary V. Vaughan <gary@gnu.org>.
13572 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
13574 * lib/inttypes_.h: Undo previous change, since it was fixed
13575 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
13577 2007-07-13 Bruno Haible <bruno@clisp.org>
13579 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
13580 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
13582 2007-07-13 Jim Meyering <jim@meyering.net>
13584 df: Don't fail for Tru64's "file-on-file mount".
13585 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
13586 so we fall through and use statfs instead. Details here:
13587 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
13588 Reported by Albert Chin.
13590 2007-07-13 Bruno Haible <bruno@clisp.org>
13592 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
13593 * modules/configmake (License): Likewise.
13594 * modules/gettext (License): Likewise.
13595 * modules/gettext-h (License): Likewise.
13596 * modules/include_next (License): Likewise.
13597 * modules/link-warning (License): Likewise.
13598 * modules/localcharset (License): Likewise.
13599 * modules/localename (License): Likewise.
13600 * modules/lock (License): Likewise.
13601 * modules/relocatable-lib-lgpl (License): Likewise.
13602 * modules/size_max (License): Likewise.
13603 * modules/vasnprintf (License): Likewise.
13604 * modules/wchar (License): Likewise.
13605 * modules/xsize (License): Likewise.
13607 2007-07-13 Bruno Haible <bruno@clisp.org>
13609 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
13610 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
13612 2007-07-12 Bruno Haible <bruno@clisp.org>
13614 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
13615 in the modules files.
13617 2007-07-11 Karl Berry <karl@gnu.org>
13619 * MODULES.html.sh (func_module): use
13620 sed -e '\|^'"${includefile}"'$|d'
13621 instead of /.../d, to avoid errors on $includefile's containing /.
13623 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
13625 * gnulib-tool (func_import): Avoid duplication of --avoid
13627 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
13628 names to `_' in variable names.
13630 2007-07-10 Eric Blake <ebb9@byu.net>
13632 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
13633 * NEWS: Document this change.
13635 2007-07-08 Bruno Haible <bruno@clisp.org>
13637 Update to Unicode 5.0.
13638 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
13639 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
13640 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
13641 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
13642 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
13643 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
13644 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
13645 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
13646 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
13647 U+10A3F, U+1D242..U+1D244.
13648 (nonspacing_table_ind): Update.
13649 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
13650 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
13652 2007-07-08 Bruno Haible <bruno@clisp.org>
13654 Update to Unicode 5.0.
13655 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
13656 code transform. Extend the name index field of unicode_name_to_code and
13657 unicode_code_to_name from 16 to 24 bits.
13658 * lib/uniname/uniname.c (unicode_character_name,
13659 unicode_name_character): Add the range 0x12xxx to the code transform.
13660 * lib/uniname/uninames.h: Regenerated.
13661 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
13663 2007-07-07 Bruno Haible <bruno@clisp.org>
13665 * modules/wcwidth-tests: New file.
13666 * tests/test-wcwidth.c: New file.
13668 Work around MacOS X wcwidth() bug.
13669 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
13670 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
13671 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
13672 original wcwidth in non-UTF-8 locales.
13673 * modules/wcwidth (Depends-on): Add localcharset, streq,
13675 * doc/functions/wcwidth.texi: Update.
13677 2007-07-07 Bruno Haible <bruno@clisp.org>
13679 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
13680 (wcwidth): New declaration.
13681 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
13683 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
13684 here. Prepare for creating <wchar.h> unconditionally.
13685 * modules/wchar (Depends-on): Add link-warning.
13686 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
13687 REPLACE_WCWIDTH, and GL_LINK_WARNING.
13688 * lib/wcwidth.h: Remove file.
13689 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
13690 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
13691 * modules/wcwidth (Files): Remove lib/wcwidth.h.
13692 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
13693 (Include): Replace wcwidth.h with <wchar.h>.
13694 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
13695 * lib/mbchar.h: Don't include wcwidth.h.
13696 * lib/mbswidth.c: Likewise.
13697 * NEWS: Mention the change.
13699 2007-07-07 Bruno Haible <bruno@clisp.org>
13701 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
13702 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
13703 definition with an external declaration.
13704 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
13705 defined as a function. Remove AC_C_INLINE requirement.
13706 * modules/wcwidth (Files): Add lib/wcwidth.c.
13707 (Makefile.am): Remove redundant statement.
13709 2007-07-07 Bruno Haible <bruno@clisp.org>
13711 * MODULES.html.sh (Unicode string functions): Add the new modules.
13713 * tests/uniwidth/test-u32-strwidth.c: New file.
13714 * modules/uniwidth/u32-strwidth-tests: New file.
13716 * lib/uniwidth/u32-strwidth.c: New file.
13717 * modules/uniwidth/u32-strwidth: New file.
13719 * tests/uniwidth/test-u16-strwidth.c: New file.
13720 * modules/uniwidth/u16-strwidth-tests: New file.
13722 * lib/uniwidth/u16-strwidth.c: New file.
13723 * modules/uniwidth/u16-strwidth: New file.
13725 * tests/uniwidth/test-u8-strwidth.c: New file.
13726 * modules/uniwidth/u8-strwidth-tests: New file.
13728 * lib/uniwidth/u8-strwidth.c: New file.
13729 * modules/uniwidth/u8-strwidth: New file.
13731 * tests/uniwidth/test-u32-width.c: New file.
13732 * modules/uniwidth/u32-width-tests: New file.
13734 * lib/uniwidth/u32-width.c: New file.
13735 * modules/uniwidth/u32-width: New file.
13737 * tests/uniwidth/test-u16-width.c: New file.
13738 * modules/uniwidth/u16-width-tests: New file.
13740 * lib/uniwidth/u16-width.c: New file.
13741 * modules/uniwidth/u16-width: New file.
13743 * tests/uniwidth/test-u8-width.c: New file.
13744 * modules/uniwidth/u8-width-tests: New file.
13746 * lib/uniwidth/u8-width.c: New file.
13747 * modules/uniwidth/u8-width: New file.
13749 * tests/uniwidth/test-uc_width.c: New file.
13750 * modules/uniwidth/width-tests: New file.
13752 * lib/uniwidth/width.c: New file, from GNU libiconv.
13753 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
13754 * modules/uniwidth/width: New file.
13756 * lib/uniwidth.h: New file, from GNU libiconv.
13757 * modules/uniwidth/base: New file.
13759 2007-07-07 Bruno Haible <bruno@clisp.org>
13761 * lib/uniname.h: New file, from GNU gettext.
13762 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
13763 * lib/uniname/uninames.h: New file, from GNU gettext.
13764 * lib/uniname/uniname.c: New file, from GNU gettext.
13765 * tests/uniname/test-uninames.sh: New file.
13766 * tests/uniname/test-uninames.c: New file, from GNU gettext.
13767 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
13768 * modules/uniname/base: New file.
13769 * modules/uniname/uniname: New file.
13770 * modules/uniname/uniname-tests: New file.
13771 * MODULES.html.sh (Unicode string functions): Add the new modules.
13773 2007-07-06 Bruno Haible <bruno@clisp.org>
13775 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
13777 2007-07-06 Bruno Haible <bruno@clisp.org>
13779 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
13780 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
13781 includes <cygwin/sys_time.h> which includes <sys/select.h> which
13782 include <sys/time.h>.
13783 Reported by Eric Blake.
13785 2007-07-06 Eric Blake <ebb9@byu.net>
13787 Fix testing canonicalize on cygwin.
13788 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13789 Revert patch from 2007-06-19.
13790 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
13791 canonicalize module is also in use.
13792 * tests/test-canonicalize.c: New file.
13793 * tests/test-canonicalize.sh: Likewise.
13794 * modules/canonicalize-tests: Likewise.
13796 2007-07-06 Jim Meyering <jim@meyering.net>
13798 * lib/getugroups.c (getugroups): Detect getgrent failure.
13799 Adjust comment to reflect reality: this function may return -1.
13801 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
13803 * build-aux/bootstrap (TP_URL,get_translations): Update to use
13804 the new TP address.
13806 (gnulib_mk): New variable.
13808 2007-07-05 Jim Meyering <jim@meyering.net>
13810 Don't let endgrent clobber errno, no matter how improbable.
13811 * lib/getugroups.c (getugroups): Save and restore errno around
13814 Close the group DB even when failing with 2^31 or more members.
13815 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
13817 2007-07-04 Jim Meyering <jim@meyering.net>
13819 * lib/getugroups.h: New file.
13820 * lib/getugroups.c: Include "getugroups.h".
13821 Remove uses of "register" keyword.
13822 Move local variable, "cp", down into scope where used.
13823 Give "username" parameter the "const" attribute.
13824 * modules/getugroups (Files): Add lib/getugroups.h
13826 2007-07-04 Karl Berry <karl@gnu.org>
13828 * MODULES.html.sh (func_all_modules): Complete rename of
13829 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
13831 2007-07-02 Bruno Haible <bruno@clisp.org>
13833 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
13834 mode, when inttypes.h comes from gnulib.
13835 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13837 2007-07-02 Simon Josefsson <simon@josefsson.org>
13839 * NEWS: Mention lgpl module name change.
13841 * modules/lgpl-2.1: Renamed from lgpl.
13843 * NEWS: Mention gpl module name change.
13845 * modules/gpl-3.0: New file, based on gpl-2.0.
13847 * modules/gpl-2.0: Renamed from gpl.
13849 * modules/gpl: Fix filename, doc/gpl.texi is now found at
13852 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
13854 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
13855 #define __STDC_LIMIT_MACROS temporarily while including
13856 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
13857 Problem reported by Joel E. Denny in
13858 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
13860 2007-07-01 Bruno Haible <bruno@clisp.org>
13862 * lib/unistdio.h: New file.
13863 * lib/unistdio/u-asnprintf.h: New file.
13864 * lib/unistdio/u-asprintf.h: New file.
13865 * lib/unistdio/u-printf-args.c: New file.
13866 * lib/unistdio/u-printf-args.h: New file.
13867 * lib/unistdio/u-printf-parse.h: New file.
13868 * lib/unistdio/u-snprintf.h: New file.
13869 * lib/unistdio/u-sprintf.h: New file.
13870 * lib/unistdio/u-vasprintf.h: New file.
13871 * lib/unistdio/u-vsnprintf.h: New file.
13872 * lib/unistdio/u-vsprintf.h: New file.
13873 * lib/unistdio/ulc-asnprintf.c: New file.
13874 * lib/unistdio/ulc-asprintf.c: New file.
13875 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
13876 * lib/unistdio/ulc-printf-parse.c: New file.
13877 * lib/unistdio/ulc-snprintf.c: New file.
13878 * lib/unistdio/ulc-sprintf.c: New file.
13879 * lib/unistdio/ulc-vasnprintf.c: New file.
13880 * lib/unistdio/ulc-vasprintf.c: New file.
13881 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
13882 * lib/unistdio/ulc-vsnprintf.c: New file.
13883 * lib/unistdio/ulc-vsprintf.c: New file.
13884 * lib/unistdio/u8-asnprintf.c: New file.
13885 * lib/unistdio/u8-asprintf.c: New file.
13886 * lib/unistdio/u8-printf-parse.c: New file.
13887 * lib/unistdio/u8-snprintf.c: New file.
13888 * lib/unistdio/u8-sprintf.c: New file.
13889 * lib/unistdio/u8-vasnprintf.c: New file.
13890 * lib/unistdio/u8-vasprintf.c: New file.
13891 * lib/unistdio/u8-vsnprintf.c: New file.
13892 * lib/unistdio/u8-vsprintf.c: New file.
13893 * lib/unistdio/u8-u8-asnprintf.c: New file.
13894 * lib/unistdio/u8-u8-asprintf.c: New file.
13895 * lib/unistdio/u8-u8-snprintf.c: New file.
13896 * lib/unistdio/u8-u8-sprintf.c: New file.
13897 * lib/unistdio/u8-u8-vasnprintf.c: New file.
13898 * lib/unistdio/u8-u8-vasprintf.c: New file.
13899 * lib/unistdio/u8-u8-vsnprintf.c: New file.
13900 * lib/unistdio/u8-u8-vsprintf.c: New file.
13901 * lib/unistdio/u16-asnprintf.c: New file.
13902 * lib/unistdio/u16-asprintf.c: New file.
13903 * lib/unistdio/u16-printf-parse.c: New file.
13904 * lib/unistdio/u16-snprintf.c: New file.
13905 * lib/unistdio/u16-sprintf.c: New file.
13906 * lib/unistdio/u16-vasnprintf.c: New file.
13907 * lib/unistdio/u16-vasprintf.c: New file.
13908 * lib/unistdio/u16-vsnprintf.c: New file.
13909 * lib/unistdio/u16-vsprintf.c: New file.
13910 * lib/unistdio/u16-u16-asnprintf.c: New file.
13911 * lib/unistdio/u16-u16-asprintf.c: New file.
13912 * lib/unistdio/u16-u16-snprintf.c: New file.
13913 * lib/unistdio/u16-u16-sprintf.c: New file.
13914 * lib/unistdio/u16-u16-vasnprintf.c: New file.
13915 * lib/unistdio/u16-u16-vasprintf.c: New file.
13916 * lib/unistdio/u16-u16-vsnprintf.c: New file.
13917 * lib/unistdio/u16-u16-vsprintf.c: New file.
13918 * lib/unistdio/u32-asnprintf.c: New file.
13919 * lib/unistdio/u32-asprintf.c: New file.
13920 * lib/unistdio/u32-printf-parse.c: New file.
13921 * lib/unistdio/u32-snprintf.c: New file.
13922 * lib/unistdio/u32-sprintf.c: New file.
13923 * lib/unistdio/u32-vasnprintf.c: New file.
13924 * lib/unistdio/u32-vasprintf.c: New file.
13925 * lib/unistdio/u32-vsnprintf.c: New file.
13926 * lib/unistdio/u32-vsprintf.c: New file.
13927 * lib/unistdio/u32-u32-asnprintf.c: New file.
13928 * lib/unistdio/u32-u32-asprintf.c: New file.
13929 * lib/unistdio/u32-u32-snprintf.c: New file.
13930 * lib/unistdio/u32-u32-sprintf.c: New file.
13931 * lib/unistdio/u32-u32-vasnprintf.c: New file.
13932 * lib/unistdio/u32-u32-vasprintf.c: New file.
13933 * lib/unistdio/u32-u32-vsnprintf.c: New file.
13934 * lib/unistdio/u32-u32-vsprintf.c: New file.
13935 * tests/unistdio/test-ulc-asnprintf1.c: New file.
13936 * tests/unistdio/test-ulc-asnprintf1.h: New file.
13937 * tests/unistdio/test-ulc-printf1.h: New file.
13938 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
13939 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
13940 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
13941 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
13942 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
13943 * tests/unistdio/test-ulc-vasprintf1.c: New file.
13944 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
13945 * tests/unistdio/test-ulc-vsprintf1.c: New file.
13946 * tests/unistdio/test-u8-asnprintf1.c: New file.
13947 * tests/unistdio/test-u8-asnprintf1.h: New file.
13948 * tests/unistdio/test-u8-printf1.h: New file.
13949 * tests/unistdio/test-u8-vasnprintf1.c: New file.
13950 * tests/unistdio/test-u8-vasnprintf2.c: New file.
13951 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
13952 * tests/unistdio/test-u8-vasnprintf3.c: New file.
13953 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
13954 * tests/unistdio/test-u8-vasprintf1.c: New file.
13955 * tests/unistdio/test-u8-vsnprintf1.c: New file.
13956 * tests/unistdio/test-u8-vsprintf1.c: New file.
13957 * tests/unistdio/test-u16-asnprintf1.c: New file.
13958 * tests/unistdio/test-u16-asnprintf1.h: New file.
13959 * tests/unistdio/test-u16-printf1.h: New file.
13960 * tests/unistdio/test-u16-vasnprintf1.c: New file.
13961 * tests/unistdio/test-u16-vasnprintf2.c: New file.
13962 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
13963 * tests/unistdio/test-u16-vasnprintf3.c: New file.
13964 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
13965 * tests/unistdio/test-u16-vasprintf1.c: New file.
13966 * tests/unistdio/test-u16-vsnprintf1.c: New file.
13967 * tests/unistdio/test-u16-vsprintf1.c: New file.
13968 * tests/unistdio/test-u32-asnprintf1.c: New file.
13969 * tests/unistdio/test-u32-asnprintf1.h: New file.
13970 * tests/unistdio/test-u32-printf1.h: New file.
13971 * tests/unistdio/test-u32-vasnprintf1.c: New file.
13972 * tests/unistdio/test-u32-vasnprintf2.c: New file.
13973 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
13974 * tests/unistdio/test-u32-vasnprintf3.c: New file.
13975 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
13976 * tests/unistdio/test-u32-vasprintf1.c: New file.
13977 * tests/unistdio/test-u32-vsnprintf1.c: New file.
13978 * tests/unistdio/test-u32-vsprintf1.c: New file.
13979 * modules/unistdio/base: New file.
13980 * modules/unistdio/u-printf-args: New file.
13981 * modules/unistdio/ulc-asnprintf: New file.
13982 * modules/unistdio/ulc-asprintf: New file.
13983 * modules/unistdio/ulc-fprintf: New file.
13984 * modules/unistdio/ulc-printf-parse: New file.
13985 * modules/unistdio/ulc-snprintf: New file.
13986 * modules/unistdio/ulc-sprintf: New file.
13987 * modules/unistdio/ulc-vasnprintf: New file.
13988 * modules/unistdio/ulc-vasprintf: New file.
13989 * modules/unistdio/ulc-vfprintf: New file.
13990 * modules/unistdio/ulc-vsnprintf: New file.
13991 * modules/unistdio/ulc-vsprintf: New file.
13992 * modules/unistdio/u8-asnprintf: New file.
13993 * modules/unistdio/u8-asprintf: New file.
13994 * modules/unistdio/u8-printf-parse: New file.
13995 * modules/unistdio/u8-snprintf: New file.
13996 * modules/unistdio/u8-sprintf: New file.
13997 * modules/unistdio/u8-vasnprintf: New file.
13998 * modules/unistdio/u8-vasprintf: New file.
13999 * modules/unistdio/u8-vsnprintf: New file.
14000 * modules/unistdio/u8-vsprintf: New file.
14001 * modules/unistdio/u8-u8-asnprintf: New file.
14002 * modules/unistdio/u8-u8-asprintf: New file.
14003 * modules/unistdio/u8-u8-snprintf: New file.
14004 * modules/unistdio/u8-u8-sprintf: New file.
14005 * modules/unistdio/u8-u8-vasnprintf: New file.
14006 * modules/unistdio/u8-u8-vasprintf: New file.
14007 * modules/unistdio/u8-u8-vsnprintf: New file.
14008 * modules/unistdio/u8-u8-vsprintf: New file.
14009 * modules/unistdio/u16-asnprintf: New file.
14010 * modules/unistdio/u16-asprintf: New file.
14011 * modules/unistdio/u16-printf-parse: New file.
14012 * modules/unistdio/u16-snprintf: New file.
14013 * modules/unistdio/u16-sprintf: New file.
14014 * modules/unistdio/u16-vasnprintf: New file.
14015 * modules/unistdio/u16-vasprintf: New file.
14016 * modules/unistdio/u16-vsnprintf: New file.
14017 * modules/unistdio/u16-vsprintf: New file.
14018 * modules/unistdio/u16-u16-asnprintf: New file.
14019 * modules/unistdio/u16-u16-asprintf: New file.
14020 * modules/unistdio/u16-u16-snprintf: New file.
14021 * modules/unistdio/u16-u16-sprintf: New file.
14022 * modules/unistdio/u16-u16-vasnprintf: New file.
14023 * modules/unistdio/u16-u16-vasprintf: New file.
14024 * modules/unistdio/u16-u16-vsnprintf: New file.
14025 * modules/unistdio/u16-u16-vsprintf: New file.
14026 * modules/unistdio/u32-asnprintf: New file.
14027 * modules/unistdio/u32-asprintf: New file.
14028 * modules/unistdio/u32-printf-parse: New file.
14029 * modules/unistdio/u32-snprintf: New file.
14030 * modules/unistdio/u32-sprintf: New file.
14031 * modules/unistdio/u32-vasnprintf: New file.
14032 * modules/unistdio/u32-vasprintf: New file.
14033 * modules/unistdio/u32-vsnprintf: New file.
14034 * modules/unistdio/u32-vsprintf: New file.
14035 * modules/unistdio/u32-u32-asnprintf: New file.
14036 * modules/unistdio/u32-u32-asprintf: New file.
14037 * modules/unistdio/u32-u32-snprintf: New file.
14038 * modules/unistdio/u32-u32-sprintf: New file.
14039 * modules/unistdio/u32-u32-vasnprintf: New file.
14040 * modules/unistdio/u32-u32-vasprintf: New file.
14041 * modules/unistdio/u32-u32-vsnprintf: New file.
14042 * modules/unistdio/u32-u32-vsprintf: New file.
14043 * modules/unistdio/ulc-asnprintf-tests: New file.
14044 * modules/unistdio/ulc-vasnprintf-tests: New file.
14045 * modules/unistdio/ulc-vasprintf-tests: New file.
14046 * modules/unistdio/ulc-vsnprintf-tests: New file.
14047 * modules/unistdio/ulc-vsprintf-tests: New file.
14048 * modules/unistdio/u8-asnprintf-tests: New file.
14049 * modules/unistdio/u8-vasnprintf-tests: New file.
14050 * modules/unistdio/u8-vasprintf-tests: New file.
14051 * modules/unistdio/u8-vsnprintf-tests: New file.
14052 * modules/unistdio/u8-vsprintf-tests: New file.
14053 * modules/unistdio/u16-asnprintf-tests: New file.
14054 * modules/unistdio/u16-vasnprintf-tests: New file.
14055 * modules/unistdio/u16-vasprintf-tests: New file.
14056 * modules/unistdio/u16-vsnprintf-tests: New file.
14057 * modules/unistdio/u16-vsprintf-tests: New file.
14058 * modules/unistdio/u32-asnprintf-tests: New file.
14059 * modules/unistdio/u32-vasnprintf-tests: New file.
14060 * modules/unistdio/u32-vasprintf-tests: New file.
14061 * modules/unistdio/u32-vsnprintf-tests: New file.
14062 * modules/unistdio/u32-vsprintf-tests: New file.
14063 * MODULES.html.sh (Unicode string functions): Add the new modules.
14065 2007-07-01 Bruno Haible <bruno@clisp.org>
14067 * lib/sprintf.c (sprintf): Limit the available length estimation,
14068 to avoid address wraparound.
14069 * lib/vsprintf.c (vsprintf): Likewise.
14070 * modules/sprintf-posix (Dependencies): Add stdint.
14071 * modules/vsprintf-posix (Dependencies): Likewise.
14073 2007-07-01 Bruno Haible <bruno@clisp.org>
14075 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
14076 Windows PATH as well. Conservative double-quoting. Comments.
14078 2007-07-01 Bruno Haible <bruno@clisp.org>
14079 Eric Blake <ebb9@byu.net>
14080 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14082 * gnulib-tool (self_abspathname): Fix algorithm to cope with
14083 empty components in $PATH, denoting '.'.
14085 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14087 * gnulib-tool: Fix indentation.
14088 (func_create_megatestdir): Likewise.
14089 Report by Bruno Haible.
14091 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14093 Sync from Automake.
14094 * build-aux/gnupload: Fix shell portability issues with for loops.
14095 Report by Karl Berry.
14097 2007-06-29 Simon Josefsson <simon@josefsson.org>
14099 * build-aux/maint.mk (POURL): Use translationproject.org.
14101 2007-06-27 Simon Josefsson <simon@josefsson.org>
14102 Bruno Haible <bruno@clisp.org>
14104 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
14105 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
14106 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
14107 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
14108 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
14110 2007-06-27 Bruno Haible <bruno@clisp.org>
14112 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
14113 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
14115 2007-06-26 Karl Berry <karl@gnu.org>
14117 * MODULES.html.sh: remove xreadlink-with-size.
14119 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
14121 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
14122 method that I hope also handles the double-include problem noted
14124 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
14126 2007-06-23 Bruno Haible <bruno@clisp.org>
14128 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14129 Don't let the 'mostlyclean' target fail if the last subdirectory could
14131 Reported by Karl Berry.
14133 2007-06-23 Bruno Haible <bruno@clisp.org>
14135 * gnulib-tool (echo): Add a speedier workaround for ksh.
14136 * tests/test-echo.sh: Likewise.
14138 2007-06-23 Bruno Haible <bruno@clisp.org>
14140 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
14141 * tests/test-echo.sh: Likewise.
14143 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14145 * gnulib-tool (IFS): Initialize early, so we don't set it to
14147 (self_abspathname): Rewrite algorithm to set it, reindent.
14148 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
14149 (func_create_megatestdir): Merge some sed scripts.
14151 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
14153 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
14154 exposed by Sun Studio 11 cc on Solaris 8.
14156 2007-06-22 Bruno Haible <bruno@clisp.org>
14158 * gnulib-tool (echo): Ensure the echo primitive does not interpret
14160 * tests/test-echo.sh: New file.
14162 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14164 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
14165 simplify `sed_replace_build_aux' scripts, they are portable but
14166 echoing them with `echo' is not.
14167 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
14169 2007-06-21 Karl Berry <karl@gnu.org>
14171 * config/srclist.txt: guess we can't handle the licenses via
14172 srclist at the moment.
14174 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
14176 * MODULES.html.sh: Add include_next.
14177 * modules/include_next: New file.
14179 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
14181 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
14183 (gl_CHECK_NEXT_HEADERS): New macro.
14184 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
14185 the obsolescent gl_ABSOLUTE_HEADER.
14186 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
14187 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
14188 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14189 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14190 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14191 * m4/math_h.m4 (gl_MATH_H): Likewise.
14192 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
14193 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14194 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14195 * m4/stdint.m4 (gl_STDINT_H): Likewise.
14196 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
14197 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
14198 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
14199 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14200 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14201 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14202 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
14203 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
14204 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14205 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14206 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14207 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14208 * m4/inttypes.m4 (gl_INTTYPES_H): Define
14209 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
14210 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
14211 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
14212 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
14213 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
14214 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
14215 * lib/float_.h: Likewise.
14216 * lib/inttypes_.h: Likewise.
14217 * lib/math_.h: Likewise.
14218 * lib/search_.h: Likewise.
14219 * lib/signal_.h: Likewise.
14220 * lib/stdint_.h: Likewise.
14221 * lib/stdio_.h: Likewise.
14222 * lib/stdlib_.h: Likewise.
14223 * lib/string_.h: Likewise.
14224 * lib/sys_stat_.h: Likewise.
14225 * lib/sys_time_.h: Likewise.
14226 * lib/time_.h: Likewise.
14227 * lib/unistd_.h: Likewise.
14228 * lib/wchar_.h: Likewise.
14229 * lib/wctype_.h: Likewise.
14230 * lib/dirent_.h: Likewise.
14231 * lib/iconv_.h: Likewise.
14232 * lib/locale_.h: Likewise.
14233 * lib/netinet_in_.h: Likewise.
14234 * lib/sys_select_.h: Likewise.
14235 * lib/sys_socket_.h: Likewise.
14236 * lib/sysexits_.h: Likewise.
14237 * modules/fcntl (Depends-on): Depend on include_next, not
14239 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
14240 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
14241 * modules/fchdir: Likewise.
14242 * modules/float: Likewise.
14243 * modules/iconv_open: Likewise.
14244 * modules/inttypes: Likewise.
14245 * modules/locale: Likewise.
14246 * modules/math: Likewise.
14247 * modules/netinet_in: Likewise.
14248 * modules/search: Likewise.
14249 * modules/signal: Likewise.
14250 * modules/stdint: Likewise.
14251 * modules/stdio: Likewise.
14252 * modules/stdlib: Likewise.
14253 * modules/string: Likewise.
14254 * modules/sys_select: Likewise.
14255 * modules/sys_socket: Likewise.
14256 * modules/sys_stat: Likewise.
14257 * modules/sys_time: Likewise.
14258 * modules/sysexits: Likewise.
14259 * modules/time: Likewise.
14260 * modules/unistd: Likewise.
14261 * modules/wchar: Likewise.
14262 * modules/wctype: Likewise.
14263 * modules/sys_stat: Change maintainer to "all".
14264 * modules/unistd: Likewise.
14266 2007-06-20 Karl Berry <karl@gnu.org>
14268 * config/srclist.txt: track www changes in license files.
14270 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
14272 * build-aux/bootstrap: Remove stray dot.
14273 Make sure build_aux settings are honored when linking
14274 gnulib_extra_files.
14276 2007-06-19 Eric Blake <ebb9@byu.net>
14278 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
14279 Allow compilation on cygwin.
14281 2007-06-19 Jim Meyering <jim@meyering.net>
14283 xreadlink-with-size: Remove module. No longer used.
14284 Ex-callers now use xreadlink or mreadlink-with-size.
14285 * modules/xreadlink-with-size: Remove module.
14286 * lib/xreadlink-with-size.c: Remove file.
14287 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
14288 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
14289 just before the function definition *is* accurate.
14291 Eliminate one way canonicalize_filename_mode could exit.
14292 * lib/canonicalize.c (canonicalize_filename_mode):
14293 Use mreadlink_with_size, not xreadlink_with_size.
14295 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
14297 Detect porting problems to FreeBSD/arm, which has time_t wider than
14298 long int. Original problem reported for GNU diff by Xin Li in
14299 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
14300 * modules/getdate (Depends-on): Add intprops, verify.
14301 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
14302 is an integer type no wider than long int.
14304 2007-06-18 Jim Meyering <jim@meyering.net>
14306 New module: mreadlink-with-size.
14307 * MODULES.html.sh: Add mreadlink-with-size.
14308 * modules/mreadlink-with-size: New module
14309 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
14310 not xreadlink-with-size.
14311 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
14313 2007-06-16 Bruno Haible <bruno@clisp.org>
14315 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
14316 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
14317 Reported by Gary V. Vaughan <gary@gnu.org>.
14319 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
14321 Revamp lchown so that it lives in unistd.h where it belongs.
14322 * lib/lchown.h: Remove.
14323 * lib/dirchownmod.c: Don't include lib/lchown.h.
14324 * lib/fchownat.c: Likewise.
14325 * lib/openat.c: Likewise.
14326 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
14327 does not follow symlinks.
14328 (EOPNOTSUPP): Define if not defined.
14329 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
14331 (lchown): New decl.
14332 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
14333 Do not check for lchown decl.
14334 Set REPLACE_LCHOWN.
14335 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
14337 * modules/chown: Make it clear it follows symlinks.
14338 * modules/lchown: Make it clear it doesn't follow symlinks.
14339 (Files): Remove lib/lchown.h
14340 (Depends-on): Add unistd.
14341 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
14342 (Include): Include <unistd.h>, not "lchown.h".
14343 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
14346 2007-06-15 Jim Meyering <jim@meyering.net>
14348 Change license (GPL to LGPL) of fsusage and dependents.
14349 * modules/fsusage (License): Change to LGPL.
14350 * modules/full-read (License): Likewise.
14351 * modules/full-write (License): Likewise.
14352 * modules/safe-read (License): Likewise.
14353 * modules/safe-write (License): Likewise.
14355 2007-06-14 Ben Pfaff <blp@gnu.org>
14357 Missing part of allocsa -> malloca transition.
14358 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
14361 2007-06-12 Bruno Haible <bruno@clisp.org>
14363 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
14364 to ia64, x86_64, i386.
14365 Reported by Eric Blake.
14367 2007-06-12 Bruno Haible <bruno@clisp.org>
14369 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
14370 cross-compiling to x86_64.
14372 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
14374 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
14375 glitch reported by Ralf Wildenhues in
14376 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
14378 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
14381 2007-06-11 Bruno Haible <bruno@clisp.org>
14383 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
14384 replacement string.
14385 Reported by Eric Blake.
14387 2007-06-10 Bruno Haible <bruno@clisp.org>
14389 Prepare vasnprintf code for use with Unicode strings.
14390 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
14391 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
14393 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
14394 a_u32_string variants.
14395 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14396 * lib/printf-args.c: Don't include config.h and the specification
14397 header if PRINTF_FETCHARGS is already defined.
14398 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14399 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
14400 TYPE_U16_STRING, TYPE_U32_STRING.
14401 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
14402 u16_directive, u16_directives, u32_directive, u32_directives): New
14404 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
14406 * lib/printf-parse.c: Don't include config.h and the specification
14407 header if PRINTF_PARSE is already defined. Eliminate the set of
14408 parameters for WIDE_CHAR_VERSION; the user of this file must provide
14409 them now. Include c-ctype.h.
14410 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
14411 directive and CHAR_T_ONLY_ASCII.
14412 * lib/vasnprintf.c: Don't include config.h and the specification header
14413 if VASNPRINTF is already defined.
14414 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
14415 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
14416 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
14417 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
14418 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
14419 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
14421 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
14422 pad_ourselves also in this case, with the 'c' and 's' directives, and
14423 with a different notion of "width".
14424 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
14426 2007-06-10 Bruno Haible <bruno@clisp.org>
14428 * modules/unistr/u32-mbsnlen: New file.
14429 * lib/unistr/u32-mbsnlen.c: New file.
14431 * modules/unistr/u16-mbsnlen: New file.
14432 * lib/unistr/u16-mbsnlen.c: New file.
14434 * modules/unistr/u8-mbsnlen: New file.
14435 * lib/unistr/u8-mbsnlen.c: New file.
14437 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
14440 2007-06-10 Bruno Haible <bruno@clisp.org>
14442 * lib/string_.h (mbsnlen): New declaration.
14443 * lib/mbsnlen.c: New file.
14444 * m4/mbsnlen.m4: New file.
14445 * modules/mbsnlen: New file.
14446 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
14447 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
14448 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
14450 2007-06-10 Bruno Haible <bruno@clisp.org>
14452 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
14454 2007-06-10 Bruno Haible <bruno@clisp.org>
14456 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
14457 * lib/mbuiter.h: Likewise.
14459 2007-06-10 Bruno Haible <bruno@clisp.org>
14461 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
14464 2007-06-10 Karl Berry <karl@gnu.org>
14466 * config/srclist.txt: remove gettext entries, Bruno prefers
14467 to update individually.
14469 2007-06-10 Bruno Haible <bruno@clisp.org>
14471 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
14472 'maxlen'. Ensure only length + width bytes are allocated, not
14473 length + 1 + width.
14475 2007-06-09 Bruno Haible <bruno@clisp.org>
14477 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
14478 (CHAR_T): Remove macro.
14479 (VASNPRINTF): Update.
14481 2007-06-09 Bruno Haible <bruno@clisp.org>
14483 * MODULES.html.sh (Unicode string functions): Add the new modules.
14485 * modules/uniconv/u32-conv-to-enc: New file.
14486 * lib/uniconv/u32-conv-to-enc.c: New file.
14487 * modules/uniconv/u32-conv-to-enc-tests: New file.
14488 * tests/uniconv/test-u32-conv-to-enc.c: New file.
14490 * modules/uniconv/u16-conv-to-enc: New file.
14491 * lib/uniconv/u16-conv-to-enc.c: New file.
14492 * lib/uniconv/u-conv-to-enc.h: New file.
14493 * modules/uniconv/u16-conv-to-enc-tests: New file.
14494 * tests/uniconv/test-u16-conv-to-enc.c: New file.
14496 * modules/uniconv/u8-conv-to-enc: New file.
14497 * lib/uniconv/u8-conv-to-enc.c: New file.
14498 * modules/uniconv/u8-conv-to-enc-tests: New file.
14499 * tests/uniconv/test-u8-conv-to-enc.c: New file.
14501 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14502 u32_conv_to_encoding): New declarations.
14504 2007-06-09 Bruno Haible <bruno@clisp.org>
14506 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
14508 2007-06-09 Bruno Haible <bruno@clisp.org>
14510 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
14511 * modules/malloca: Renamed from modules/allocsa, updated.
14512 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
14513 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
14514 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
14515 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
14516 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
14517 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
14518 * modules/xmalloca: Renamed from modules/xallocsa, updated.
14519 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
14520 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
14521 * modules/c-strcasestr (Depends-on): Update.
14522 * lib/c-strcasestr.c: Update.
14523 * modules/c-strstr (Depends-on): Update.
14524 * lib/c-strstr.c: Update.
14525 * modules/canonicalize-lgpl (Depends-on): Update.
14526 * lib/canonicalize-lgpl.c: Update.
14527 * modules/clean-temp (Depends-on): Update.
14528 * lib/clean-temp.c: Update.
14529 * modules/csharpcomp (Depends-on): Update.
14530 * lib/csharpcomp.c: Update.
14531 * modules/csharpexec (Depends-on): Update.
14532 * lib/csharpexec.c: Update.
14533 * modules/javacomp (Depends-on): Update.
14534 * lib/javacomp.c: Update.
14535 * modules/javaexec (Depends-on): Update.
14536 * lib/javaexec.c: Update.
14537 * modules/mbscasestr (Depends-on): Update.
14538 * lib/mbscasestr.c: Update.
14539 * modules/mbsstr (Depends-on): Update.
14540 * lib/mbsstr.c: Update.
14541 * modules/setenv (Depends-on): Update.
14542 * lib/setenv.c: Update.
14543 * modules/strcasestr (Depends-on): Update.
14544 * lib/strcasestr.c: Update.
14545 * modules/striconveha (Depends-on): Update.
14546 * lib/striconveha.c: Update.
14547 * modules/relocatable-prog-wrapper (Files): Update.
14548 * lib/relocwrapper.c: Update.
14549 * build-aux/install-reloc: Update.
14550 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
14552 2007-06-08 Bruno Haible <bruno@clisp.org>
14555 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
14556 * lib/fpurge.c (fpurge): Likewise.
14557 * lib/freading.c (freading): Likewise.
14558 * lib/fseeko.c (rpl_fseeko): Likewise.
14559 * lib/fseterr.c (fseterr): Likewise.
14560 * lib/fwriting.c (fwriting): Likewise.
14561 * tests/test-fflush.c (main): Avoid a failure on uClibc.
14563 2007-06-08 Bruno Haible <bruno@clisp.org>
14565 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
14566 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
14567 * modules/gettext (Files): Add m4/intlmacosx.m4.
14569 2007-06-07 Bruno Haible <bruno@clisp.org>
14571 * modules/localename-tests: New file.
14572 * tests/test-localename.c: New file.
14574 New module 'localename'.
14575 * lib/localename.h: New file.
14576 * lib/localename.c: New file, from GNU gettext.
14577 * m4/localename.m4: New file.
14578 * modules/localename: New file.
14580 2007-06-07 Bruno Haible <bruno@clisp.org>
14582 Work around the lack of <wchar.h> on some builds of uClibc.
14583 * doc/headers/wchar.texi: Update.
14584 * lib/wchar_.h: Include <wchar.h> only if it exists.
14585 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
14586 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
14587 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
14589 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
14590 * modules/mbfile (Depends-on): Add wchar.
14591 * modules/mbiter (Depends-on): Likewise.
14592 * modules/mbuiter (Depends-on): Likewise.
14593 Reported by Simon Josefsson.
14595 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
14597 Work around problem reported by Steven M. Schweda in
14598 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
14599 Tru64 5.1B with the Compaq compiler environment installed declares
14600 an 'isblank' function but does not define it in the C library.
14601 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
14602 * lib/regex_internal.h (isblank): Likewise.
14603 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
14604 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14606 2007-06-05 Bruno Haible <bruno@clisp.org>
14608 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
14610 * modules/printf-safe: New file.
14611 * modules/fprintf-posix (Depends-on): Add printf-safe.
14612 * modules/printf-posix (Depends-on): Likewise.
14613 * modules/snprintf-posix (Depends-on): Likewise.
14614 * modules/sprintf-posix (Depends-on): Likewise.
14615 * modules/vasnprintf-posix (Depends-on): Likewise.
14616 * modules/vasprintf-posix (Depends-on): Likewise.
14617 * modules/vfprintf-posix (Depends-on): Likewise.
14618 * modules/vprintf-posix (Depends-on): Likewise.
14619 * modules/vsnprintf-posix (Depends-on): Likewise.
14620 * modules/vsprintf-posix (Depends-on): Likewise.
14621 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
14622 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
14623 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
14624 "no" on i386, x86_64, ia64.
14625 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
14626 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14627 on i386, x86_64, ia64.
14628 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
14629 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14630 on i386, x86_64, ia64.
14631 * tests/test-vasnprintf-posix.c: Include float.h.
14632 (LDBL80_WORDS): New macro.
14633 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14634 on i386, x86_64, ia64.
14635 * tests/test-vasprintf-posix.c: Include float.h.
14636 (LDBL80_WORDS): New macro.
14637 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14638 on i386, x86_64, ia64.
14639 * tests/test-snprintf-posix.c: Include float.h.
14640 * tests/test-sprintf-posix.c: Likewise.
14641 * tests/test-vsnprintf-posix.c: Likewise.
14642 * tests/test-vsprintf-posix.c: Likewise.
14644 2007-06-05 Bruno Haible <bruno@clisp.org>
14646 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
14647 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
14648 non-IEEE numbers on i386, x86_64, ia64.
14649 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
14650 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
14651 * tests/test-isnanl.h: Include float.h.
14652 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
14654 2007-06-05 Bruno Haible <bruno@clisp.org>
14656 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
14657 also the %a / %A. Handle the %a / %A code before this extra handling.
14659 2007-06-05 Bruno Haible <bruno@clisp.org>
14661 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
14662 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
14664 2007-06-05 Bruno Haible <bruno@clisp.org>
14666 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
14667 typo in variable name.
14669 2007-06-05 Eric Blake <ebb9@byu.net>
14671 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
14672 Reported by Simon Josefsson.
14674 2007-06-04 Bruno Haible <bruno@clisp.org>
14676 Avoid test failures on some PowerPC platforms.
14677 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
14678 Define differently for PowerPC.
14679 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
14680 Reported by Gary V. Vaughan <gary@gnu.org>.
14682 2007-06-02 Bruno Haible <bruno@clisp.org>
14684 Fix test-stdint failure on FreeBSD/ia64.
14685 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
14686 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
14687 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
14688 * doc/headers/stdint.texi: Update.
14690 2007-06-01 Bruno Haible <bruno@clisp.org>
14692 * tests/test-binary-io.c (main): Pass a third argument to open().
14693 Reported by Gary V. Vaughan <gary@gnu.org>.
14695 2007-06-01 Bruno Haible <bruno@clisp.org>
14697 * doc/functions/frexpl.texi: Update for mingw.
14699 2007-06-01 Bruno Haible <bruno@clisp.org>
14701 * tests/test-lseek.c (main): Disable test of errno for invalid third
14703 * doc/functions/lseek.texi: Update.
14704 Reported by Gary V. Vaughan <gary@gnu.org>.
14706 2007-05-28 Bruno Haible <bruno@clisp.org>
14708 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
14710 2007-05-31 Eric Blake <ebb9@byu.net>
14712 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
14715 2007-05-30 Eric Blake <ebb9@byu.net>
14716 and Bruno Haible <bruno@clisp.org>
14718 Work around mingw test failures exposed by m4-1.4.9b.
14719 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
14720 * tests/test-unistd.c: Disable uid_t and git_t tests for the
14723 2007-05-30 Bruno Haible <bruno@clisp.org>
14725 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
14726 assuming that they are closed. Needed on HP-UX 11.
14728 2007-05-29 Bruno Haible <bruno@clisp.org>
14730 Fix a problem with #include_next.
14731 * lib/dirent_.h: Split the double-inclusion guard.
14732 * lib/fcntl_.h: Likewise.
14733 * lib/float_.h: Likewise.
14734 * lib/iconv_.h: Likewise.
14735 * lib/inttypes_.h: Likewise.
14736 * lib/locale_.h: Likewise.
14737 * lib/math_.h: Likewise.
14738 * lib/netinet_in_.h: Likewise.
14739 * lib/search_.h: Likewise.
14740 * lib/signal_.h: Likewise.
14741 * lib/stdint_.h: Likewise.
14742 * lib/stdio_.h: Likewise.
14743 * lib/stdlib_.h: Likewise.
14744 * lib/string_.h: Likewise.
14745 * lib/sys_select_.h: Likewise.
14746 * lib/sys_socket_.h: Likewise.
14747 * lib/sys_stat_.h: Likewise.
14748 * lib/sys_time_.h: Likewise.
14749 * lib/sysexits_.h: Likewise.
14750 * lib/time_.h: Likewise.
14751 * lib/unistd_.h: Likewise.
14752 * lib/wchar_.h: Likewise.
14753 * lib/wctype_.h: Likewise.
14755 2007-05-29 Bruno Haible <bruno@clisp.org>
14757 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
14760 2007-05-29 Bruno Haible <bruno@clisp.org>
14762 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
14764 Reported by Eric Blake.
14766 2007-05-29 Bruno Haible <bruno@clisp.org>
14768 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
14771 2007-05-29 Eric Blake <ebb9@byu.net>
14772 Bruno Haible <bruno@clisp.org>
14774 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
14777 2007-05-28 Eric Blake <ebb9@byu.net>
14779 * modules/closein-tests (test_closein_LDADD): Support test on
14780 cygwin with libtool.
14782 2007-05-28 Bruno Haible <bruno@clisp.org>
14784 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
14785 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14786 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14787 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14788 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14789 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14790 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14791 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14792 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14794 2007-05-28 Eric Blake <ebb9@byu.net>
14796 Unconditionally include <config.h> in unit tests.
14797 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
14798 * tests/test-allocsa.c, tests/test-arcfour.c,
14799 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
14800 tests/test-array_list.c, tests/test-array_oset.c,
14801 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
14802 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
14803 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
14804 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
14805 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
14806 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
14807 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
14808 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
14809 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
14810 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
14811 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
14812 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
14813 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
14814 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
14815 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
14816 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
14817 test-md5.c, test-memmem.c, test-printf-posix.c,
14818 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
14819 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
14820 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
14821 test-strcasestr.c, test-striconv.c, test-striconveh.c,
14822 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
14823 test-vasnprintf-posix2.c, test-vasnprintf.c,
14824 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
14825 test-vfprintf-posix.c, test-vprintf-posix.c,
14826 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
14827 test-xvasprintf.c: Likewise.
14829 2007-05-28 Bruno Haible <bruno@clisp.org>
14831 * gnulib-tool (func_import): Remember the --with-tests command-line
14832 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
14833 Reported by Eric Blake.
14835 2007-05-28 Bruno Haible <bruno@clisp.org>
14837 * modules/ftell-tests: New file.
14838 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
14839 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
14841 * lib/ftell.c: New file.
14842 * modules/ftell: New file.
14843 * m4/ftell.m4: New file.
14844 * doc/functions/ftell.texi: Update.
14845 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
14847 * lib/stdio_.h (rpl_ftell): New declaration.
14848 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
14851 2007-05-28 Eric Blake <ebb9@byu.net>
14853 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
14855 2007-05-28 Bruno Haible <bruno@clisp.org>
14857 * modules/fseek-tests: New file.
14858 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
14859 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
14861 * lib/fseek.c: New file.
14862 * modules/fseek: New file.
14863 * m4/fseek.m4: New file.
14864 * doc/functions/fseek.texi: Update.
14865 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
14867 * lib/stdio_.h (rpl_fseek): New declaration.
14868 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
14871 2007-05-28 Bruno Haible <bruno@clisp.org>
14873 * lib/stdio_.h (fflush): More comments.
14875 2007-05-28 Bruno Haible <bruno@clisp.org>
14877 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
14880 2007-05-28 Eric Blake <ebb9@byu.net>
14882 Improve lseek module.
14883 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
14884 * lib/unistd_.h (lseek): Scale back link warning message.
14885 * tests/test-lseek.c: Beef up test.
14886 * tests/test-lseek.sh: Exercise more facets of lseek.
14887 Reported by Bruno Haible.
14889 2007-05-28 Bruno Haible <bruno@clisp.org>
14891 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
14894 2007-05-27 Bruno Haible <bruno@clisp.org>
14896 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
14898 2007-05-27 Bruno Haible <bruno@clisp.org>
14900 * modules/openmp: New file.
14901 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
14904 2007-05-26 Bruno Haible <bruno@clisp.org>
14906 * modules/chdir-long (Depends-on): Add fchdir.
14907 * modules/chdir-safer (Depends-on): Likewise.
14908 * modules/fts (Depends-on): Likewise.
14909 * modules/fts-lgpl (Depends-on): Likewise.
14910 * modules/openat (Depends-on): Likewise.
14911 * modules/savewd (Depends-on): Likewise.
14913 2007-05-24 Eric Blake <ebb9@byu.net>
14915 Fix lseek on mingw.
14916 * modules/lseek: New module.
14917 * m4/lseek.m4: New file.
14918 * lib/lseek.c: New file.
14919 * modules/lseek-tests: New file.
14920 * tests/test-lseek.c: New file.
14921 * tests/test-lseek.sh: New file.
14922 * MODULES.html.sh: Document lseek module.
14923 * modules/fflush (Depends-on): Add lseek, fseeko.
14924 * modules/fseeko (Depends-on): Likewise.
14925 * modules/ftello (Depends-on): Likewise.
14926 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
14928 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
14930 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
14931 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
14932 * lib/ftello.c (rpl_ftello): Likewise.
14933 * tests/test-fseeko.c (main): Test this.
14934 * tests/test-fseeko.sh: Likewise.
14935 * tests/test-ftello.c (main): Likewise.
14936 * tests/test-ftello.sh: Likewise.
14937 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
14938 implies replacing fseek.
14939 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
14941 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
14942 * modules/unistd (Makefile.am): Likewise.
14943 * lib/unistd_.h (lseek): Declare a replacement.
14944 * doc/functions/lseek.texi (lseek): Document this fix.
14945 * doc/functions/fseek.texi (fseek): Likewise.
14946 * doc/functions/ftell.texi (ftell): Likewise.
14948 2007-05-24 Bruno Haible <bruno@clisp.org>
14950 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
14951 in the printed representation of a NaN.
14952 * tests/test-vasprintf-posix.c (test_function): Likewise.
14953 * tests/test-snprintf-posix.h (test_function): Likewise.
14954 * tests/test-sprintf-posix.h (test_function): Likewise.
14955 Reported by Eric Blake.
14957 2007-05-23 Eric Blake <ebb9@byu.net>
14959 Fix fseeko/ftello on cygwin 1.5.24.
14960 * doc/functions/fseeko.texi (fseeko): Document the fix.
14961 * doc/functions/ftello.texi (ftello): Document the fix.
14962 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
14963 * doc/functions/stdout.text (stdout): New file.
14964 * doc/functions/stderr.text (stderr): New file.
14965 * doc/gnulib.texi (Function Substitutes): Use new files.
14966 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
14968 * tests/test-ftello.c (main): Likewise for ftello.
14969 * tests/test-fseeko.sh: New file.
14970 * tests/test-ftello.sh: New file.
14971 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
14972 with seekable stdin.
14973 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
14974 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
14975 (gl_REPLACE_FSEEKO): New macro.
14976 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
14977 * modules/fseeko (Files): Distribute fseeko.c.
14978 * modules/ftello (Files): Distribute ftello.c.
14979 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
14981 * lib/ftello.c (rpl_ftello): New file.
14982 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
14984 (gl_STDIN_LARGE_OFFSET): New macro.
14985 * modules/stdio (Makefile.am): Perform the replacement.
14986 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
14988 2007-05-23 Bruno Haible <bruno@clisp.org>
14990 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
14991 GNULIB_POSIXCHECK is defined.
14993 2007-05-21 Bruno Haible <bruno@clisp.org>
14995 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
14996 Check also the output for NaN arguments. When cross-compiling, guess
14998 * lib/vasnprintf.c: Update comments.
14999 * tests/test-vasnprintf-posix.c (strisnan): New function.
15000 (test_function): Use it.
15001 * tests/test-vasprintf-posix.c (strisnan): New function.
15002 (test_function): Use it.
15003 * tests/test-snprintf-posix.h (strisnan): New function.
15004 (test_function): Use it.
15005 * tests/test-sprintf-posix.h (strisnan): New function.
15006 (test_function): Use it.
15007 Reported by Eric Blake.
15009 2007-05-20 Bruno Haible <bruno@clisp.org>
15011 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
15012 numbers that fails on BeOS.
15013 * doc/functions/frexpl.texi: Update.
15015 2007-05-20 Jim Meyering <jim@meyering.net>
15017 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
15018 forced upon us by glibc-2.6.
15020 2007-05-20 Bruno Haible <bruno@clisp.org>
15022 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
15023 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
15024 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
15025 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
15026 NEED_PRINTF_INFINITE.
15027 (is_infinitel): New function.
15028 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
15029 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
15030 gl_PREREQ_VASNPRINTF_INFINITE.
15031 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
15032 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15033 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
15034 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
15035 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
15036 gl_PREREQ_VASNPRINTF_INFINITE.
15037 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15038 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15039 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15040 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15041 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15042 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15043 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15044 * doc/functions/fprintf.texi: Update.
15045 * doc/functions/printf.texi: Update.
15046 * doc/functions/snprintf.texi: Update.
15047 * doc/functions/sprintf.texi: Update.
15048 * doc/functions/vfprintf.texi: Update.
15049 * doc/functions/vprintf.texi: Update.
15050 * doc/functions/vsnprintf.texi: Update.
15051 * doc/functions/vsprintf.texi: Update.
15053 2007-05-20 Bruno Haible <bruno@clisp.org>
15055 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
15056 was not found in libc.
15057 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15059 2007-05-20 Bruno Haible <bruno@clisp.org>
15061 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
15062 printed as "-nan" instead of "nan".
15063 * tests/test-vasprintf-posix.c (test_function): Likewise.
15064 * tests/test-snprintf-posix.h (test_function): Likewise.
15065 * tests/test-sprintf-posix.h (test_function): Likewise.
15066 Needed for HP-UX 11.
15068 2007-05-20 Jim Meyering <jim@meyering.net>
15070 Fix buggy test for the fchownat-deref bug.
15071 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
15072 symlink required for the run-test. Without it, this test would
15073 always declare that fchownat doesn't work, and client code would
15074 unnecessarily use the replacement function with fixed libc.
15075 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
15076 Reported by Greg Schafer.
15078 2007-05-19 Bruno Haible <bruno@clisp.org>
15080 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
15081 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
15082 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
15083 Needed for IRIX 6.5 and Solaris 2.5.1.
15085 2007-05-19 Bruno Haible <bruno@clisp.org>
15087 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
15088 (test_function): Skip tests involving -0.0 on platforms where
15090 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
15091 (test_function): Skip tests involving -0.0 on platforms where
15093 * tests/test-snprintf-posix.h (have_minus_zero): New function.
15094 (test_function): Skip tests involving -0.0 on platforms where
15096 * tests/test-sprintf-posix.h (have_minus_zero): New function.
15097 (test_function): Skip tests involving -0.0 on platforms where
15099 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
15101 * tests/test-printf-posix.h (test_function): Likewise.
15102 * tests/test-printf-posix.output: Remove all -0.0 related results.
15103 Needed for IRIX 6.5.
15105 2007-05-19 Bruno Haible <bruno@clisp.org>
15107 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
15108 printed as "nan0x7fffffff" instead of "nan".
15109 * tests/test-vasprintf-posix.c (test_function): Likewise.
15110 * tests/test-snprintf-posix.h (test_function): Likewise.
15111 * tests/test-sprintf-posix.h (test_function): Likewise.
15112 * tests/test-fprintf-posix.h (NaN): Remove macro.
15113 (test_function): Remove all NaN related tests.
15114 * tests/test-printf-posix.h (NaN): Remove macro.
15115 (test_function): Remove all NaN related tests.
15116 * tests/test-printf-posix.output: Remove all NaN related results.
15117 Needed for IRIX 6.5.
15119 2007-05-19 Bruno Haible <bruno@clisp.org>
15121 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
15122 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15124 2007-05-19 Bruno Haible <bruno@clisp.org>
15126 * lib/float_.h: New file.
15127 * m4/float_h.m4: New file.
15128 * modules/float: New file.
15129 * modules/isnanl (Dependencies): Add float.
15130 * modules/isnanl-nolibm (Dependencies): Likewise.
15131 * modules/mathl (Dependencies): Likewise.
15132 * modules/printf-frexpl (Dependencies): Likewise.
15133 * modules/signbit (Dependencies): Likewise.
15134 * modules/vasnprintf (Dependencies): Likewise.
15135 * doc/headers/float.texi: Update.
15137 2007-05-19 Jim Meyering <jim@meyering.net>
15139 * lib/utimens.c (gl_futimens): Rename from futimens,
15140 now that glibc-2.6 declares futimens.
15141 * lib/utimens.h: Likewise.
15143 2007-05-19 Bruno Haible <bruno@clisp.org>
15145 Avoid test failures on mingw.
15146 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
15147 * tests/test-printf-posix.sh: Likewise.
15148 * tests/test-vfprintf-posix.sh: Likewise.
15149 * tests/test-vprintf-posix.sh: Likewise.
15151 2007-05-19 Bruno Haible <bruno@clisp.org>
15153 Fix *printf result for NaN, Inf, -0.0 on mingw.
15154 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
15155 * lib/vasnprintf.c: Include math.h and isnan.h.
15156 (is_infinite_or_zero): New function.
15157 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
15158 values in the %f, %F, %e, %E, %g, %G directives.
15159 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
15160 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15161 gl_PRINTF_INFINITE and test its result. Invoke
15162 gl_PREREQ_VASNPRINTF_INFINITE.
15163 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15164 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15165 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15166 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15167 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15168 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15169 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15170 * doc/functions/fprintf.texi: Update.
15171 * doc/functions/printf.texi: Update.
15172 * doc/functions/snprintf.texi: Update.
15173 * doc/functions/sprintf.texi: Update.
15174 * doc/functions/vfprintf.texi: Update.
15175 * doc/functions/vprintf.texi: Update.
15176 * doc/functions/vsnprintf.texi: Update.
15177 * doc/functions/vsprintf.texi: Update.
15179 2007-05-19 Bruno Haible <bruno@clisp.org>
15181 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
15182 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
15183 Instead of multiplying with 10^k, set extra_zeroes to k.
15184 (scale10_round_long_double): Remove function.
15186 2007-05-18 Bruno Haible <bruno@clisp.org>
15188 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
15189 introduced on 2007-05-06.
15191 2007-05-18 Bruno Haible <bruno@clisp.org>
15193 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
15195 * tests/test-vasprintf-posix.c (test_function): Likewise.
15196 * tests/test-snprintf-posix.h (test_function): Likewise.
15197 * tests/test-sprintf-posix.h (test_function): Likewise.
15199 2007-05-18 Bruno Haible <bruno@clisp.org>
15201 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
15202 (strmatch): New function.
15203 (test_function): Test the %f directive on numbers of various exponents.
15204 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
15205 (strmatch): New function.
15206 (test_function): Test the %f directive on numbers of various exponents.
15207 * tests/test-snprintf-posix.h (strmatch): New function.
15208 (test_function): Test the %f directive on numbers of various exponents.
15209 * tests/test-sprintf-posix.h (strmatch): New function.
15210 (test_function): Test the %f directive on numbers of various exponents.
15211 * tests/test-snprintf-posix.c (SIZEOF): New macro.
15212 * tests/test-sprintf-posix.c (SIZEOF): New macro.
15213 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
15214 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
15216 2007-05-18 Bruno Haible <bruno@clisp.org>
15218 Add support for 'long double' number output.
15219 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
15220 * lib/vasnprintf.c: Include math.h and float+.h.
15221 (mp_limb_t): New type.
15222 (GMP_LIMB_BITS): New macro.
15223 (mp_twolimb_t): New type.
15224 (GMP_TWOLIMB_BITS): New macro.
15226 (multiply, divide, convert_to_decimal, decode_long_double,
15227 scale10_round_long_double, scale10_round_decimal_long_double,
15228 floorlog10l): New functions.
15229 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
15230 for the %f, %F, %e, %E, %g, %G directives.
15231 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
15232 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15233 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
15234 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
15235 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15236 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15237 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15238 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15239 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15240 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15241 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15242 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
15243 * modules/snprintf-posix (Depends-on): Likewise.
15244 * modules/sprintf-posix (Depends-on): Likewise.
15245 * modules/vasnprintf-posix (Depends-on): Likewise.
15246 * modules/vasprintf-posix (Depends-on): Likewise.
15247 * modules/vfprintf-posix (Depends-on): Likewise.
15248 * modules/vsnprintf-posix (Depends-on): Likewise.
15249 * modules/vsprintf-posix (Depends-on): Likewise.
15250 * modules/vasnprintf (Files): Add lib/float+.h.
15251 * doc/functions/fprintf.texi: Update.
15252 * doc/functions/printf.texi: Update.
15253 * doc/functions/snprintf.texi: Update.
15254 * doc/functions/sprintf.texi: Update.
15255 * doc/functions/vfprintf.texi: Update.
15256 * doc/functions/vprintf.texi: Update.
15257 * doc/functions/vsnprintf.texi: Update.
15258 * doc/functions/vsprintf.texi: Update.
15260 2007-05-18 Bruno Haible <bruno@clisp.org>
15262 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
15264 2007-05-18 Bruno Haible <bruno@clisp.org>
15266 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
15267 for printing 64-bit integers. Needed for mingw.
15269 2007-05-18 Bruno Haible <bruno@clisp.org>
15271 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15272 gl_FUNC_FREXPL_WORKS.
15273 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
15275 2007-05-18 Bruno Haible <bruno@clisp.org>
15277 * modules/frexpl-nolibm-tests: New file.
15279 * modules/frexpl-nolibm: New file.
15280 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
15282 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
15284 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
15285 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
15286 GCC 4.2, which otherwise issues a lot of warnings.
15287 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
15288 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
15290 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
15291 * modules/iconv_open (iconv.h): Likewise.
15292 * modules/locale (locale.h): Likewise.
15293 * modules/netinet_in (netinet/in.h): Likewise.
15294 * modules/sys_select (sys_select.h): Likewise.
15295 * modules/sys_socket (sys/socket.h): Likewise.
15296 * modules/sys_stat (sys/stat.h): Likewise.
15297 * modules/sysexits (sysexits.h): Likewise.
15298 * modules/unistd (unistd.h): Likewise.
15300 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15302 * modules/closein-tests (Makefile.am): Distribute
15305 2007-05-17 Bruno Haible <bruno@clisp.org>
15307 * tests/test-printf-posix.output: Renamed from
15308 tests/test-fprintf-posix.out.
15309 * modules/fprintf-posix-tests: Update.
15310 * modules/printf-posix-tests: Update.
15311 * modules/vfprintf-posix-tests: Update.
15312 * modules/vprintf-posix-tests: Update.
15313 * tests/test-fprintf-posix.sh: Update.
15314 * tests/test-printf-posix.sh: Update.
15315 * tests/test-vfprintf-posix.sh: Update.
15316 * tests/test-vprintf-posix.sh: Update.
15317 Reported by Ralf Wildenhues.
15319 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
15321 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
15322 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
15323 GCC 4.2, which otherwise issues a lot of warnings.
15324 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
15325 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
15326 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
15327 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
15328 it should no longer be needed.
15329 * lib/string_.h: Likewise.
15330 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
15331 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
15332 * modules/inttypes (inttypes.h): Likewise.
15333 * modules/math (math.h): Likewise.
15334 * modules/search (search.h): Likewise.
15335 * modules/signal (signal.h): Likewise.
15336 * modules/stdint (stdint.h): Likewise.
15337 * modules/stdio (stdio.h): Likewise.
15338 * modules/stdlib (stdlib.h): Likewise.
15339 * modules/string (string.h): Likewise.
15340 * modules/sys_time (sys/time.h): Likewise.
15341 * modules/time (time.h): Likewise.
15342 * modules/wchar (wchar.h): Likewise.
15343 * modules/wctype (wtype.h): Likewise.
15345 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
15347 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
15349 2007-05-13 Bruno Haible <bruno@clisp.org>
15351 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
15352 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15353 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
15354 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
15355 (gl_PREREQ_STRTOK_R): Don't require it here.
15357 2007-05-13 Bruno Haible <bruno@clisp.org>
15359 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
15360 when used in C++ mode.
15362 2007-05-12 Bruno Haible <bruno@clisp.org>
15364 * lib/linebuffer.h: Tweak doc.
15365 * lib/linebuffer.c: Likewise.
15367 2007-05-12 James Youngman <jay@gnu.org>
15369 * lib/linebuffer.c (readlinebuffer_delim): New function,
15370 like readlinebuffer, but use a caller-specified delimiter.
15371 (readlinebuffer): Just call readlinebuffer_delim with '\n'
15373 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
15375 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
15377 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
15378 * modules/openat (Files): Remove openat-die.c.
15379 (Depends-on): Add openat-die.
15380 * modules/openat-die: New module.
15382 2007-05-06 Bruno Haible <bruno@clisp.org>
15384 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
15385 Update with info about Cygwin.
15386 * doc/functions/fprintf.texi: Update.
15387 * doc/functions/printf.texi: Update.
15388 * doc/functions/snprintf.texi: Update.
15389 * doc/functions/sprintf.texi: Update.
15390 * doc/functions/vfprintf.texi: Update.
15391 * doc/functions/vprintf.texi: Update.
15392 * doc/functions/vsnprintf.texi: Update.
15393 * doc/functions/vsprintf.texi: Update.
15394 Reported by Eric Blake.
15396 2007-05-06 Bruno Haible <bruno@clisp.org>
15398 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
15399 padding ourselves for the floating-point directives.
15400 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
15401 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
15402 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15403 gl_PRINTF_FLAG_ZERO and test its result. Invoke
15404 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
15405 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15406 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15407 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15408 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15409 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15410 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15411 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15412 * tests/test-snprintf-posix.h (test_function): Also check the width
15413 and some flags in the %f directive.
15414 * tests/test-sprintf-posix.h (test_function): Likewise.
15415 * tests/test-vasnprintf-posix.c (test_function): Likewise.
15416 * tests/test-vasprintf-posix.c (test_function): Likewise.
15417 * doc/functions/fprintf.texi: Update.
15418 * doc/functions/printf.texi: Update.
15419 * doc/functions/snprintf.texi: Update.
15420 * doc/functions/sprintf.texi: Update.
15421 * doc/functions/vfprintf.texi: Update.
15422 * doc/functions/vprintf.texi: Update.
15423 * doc/functions/vsnprintf.texi: Update.
15424 * doc/functions/vsprintf.texi: Update.
15426 2007-05-06 Bruno Haible <bruno@clisp.org>
15428 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
15429 pass the ' flag character to sprintf or snprintf.
15430 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
15431 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
15432 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15433 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
15434 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
15435 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15436 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15437 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15438 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15439 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15440 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15441 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15442 * tests/test-snprintf-posix.h (test_function): Also check the grouping
15444 * tests/test-sprintf-posix.h (test_function): Likewise.
15445 * tests/test-vasnprintf-posix.c (test_function): Likewise.
15446 * tests/test-vasprintf-posix.c (test_function): Likewise.
15447 * doc/functions/fprintf.texi: Update.
15448 * doc/functions/printf.texi: Update.
15449 * doc/functions/snprintf.texi: Update.
15450 * doc/functions/sprintf.texi: Update.
15451 * doc/functions/vfprintf.texi: Update.
15452 * doc/functions/vprintf.texi: Update.
15453 * doc/functions/vsnprintf.texi: Update.
15454 * doc/functions/vsprintf.texi: Update.
15456 2007-05-01 Bruno Haible <bruno@clisp.org>
15458 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
15460 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
15462 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
15463 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
15465 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
15467 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
15468 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
15469 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
15471 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
15473 * lib/argp-help.c (struct hol_entry): New member `ord'.
15474 (HOL_ENTRY_PTRCMP): Use ord for comparison
15475 (hol_sort): Initialize ord.
15477 2007-05-01 Bruno Haible <bruno@clisp.org>
15479 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
15480 Reported by Eric Blake.
15481 * doc/gnulib.texi (Function Substitutes): Update.
15483 2007-05-01 Bruno Haible <bruno@clisp.org>
15485 * doc/functions.texi: Remove file, now redundant through
15486 doc/functions/*.texi.
15488 2007-05-01 Bruno Haible <bruno@clisp.org>
15490 * modules/argp (Depends-on): Add sleep.
15492 2007-05-01 Bruno Haible <bruno@clisp.org>
15494 * modules/sleep-tests: New file.
15495 * tests/test-sleep.c: New file.
15497 * modules/sleep: New file.
15498 * lib/sleep.c: New file.
15499 * m4/sleep.m4: New file.
15500 * lib/unistd_.h (sleep): New declaration.
15501 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
15503 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
15504 * doc/functions/sleep.texi: Document the sleep module.
15506 2007-05-01 Bruno Haible <bruno@clisp.org>
15508 * lib/sigprocmask.h: Remove file.
15509 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
15510 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
15511 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
15512 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
15513 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15514 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
15515 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
15516 HAVE_SIGSET_T as a shell variable.
15517 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
15518 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
15519 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
15520 (Depends-on): Add signal. Remove verify.
15521 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
15522 (Include): Mention <signal.h> instead of sigprocmask.h.
15523 * NEWS: Mention the change.
15524 * lib/fatal-signal.c: Don't include sigprocmask.h.
15526 2007-05-01 Bruno Haible <bruno@clisp.org>
15528 * modules/signal: New file.
15529 * lib/signal_.h: New file.
15530 * m4/signal_h.m4: New file.
15532 2007-05-01 Bruno Haible <bruno@clisp.org>
15534 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
15535 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
15536 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
15537 HAVE_WCTYPE_CTMP_BUG into wctype.h.
15539 2007-05-01 Bruno Haible <bruno@clisp.org>
15541 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
15543 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
15544 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
15545 * modules/sys_stat (Makefile.am): Substitute their values into
15548 2007-05-01 Bruno Haible <bruno@clisp.org>
15550 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
15551 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
15552 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
15554 2007-05-01 Bruno Haible <bruno@clisp.org>
15556 * doc/header/assert.texi: Undo last change: don't mention the gnulib
15557 'assert' module here.
15559 2007-05-01 Bruno Haible <bruno@clisp.org>
15561 * doc/functions/*.texi: New files.
15562 * doc/functions/google-ranking.txt: New file.
15563 * doc/gnulib.texi (Function Substitutes): New chapter.
15564 (ctime, inet_ntoa): Remove sections.
15565 * doc/ctime.texi: Remove file.
15566 * doc/inet_ntoa.texi: Remove file.
15567 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
15569 (%.info): New rule, specifying a --reference-limit.
15571 2007-05-01 Bruno Haible <bruno@clisp.org>
15573 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
15575 2007-05-01 Bruno Haible <bruno@clisp.org>
15577 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
15578 the portability of 'mkdir' to mingw systems.
15580 2007-05-01 Bruno Haible <bruno@clisp.org>
15582 * doc/headers/google-ranking.txt: New file.
15584 2007-04-30 Eric Blake <ebb9@byu.net>
15586 Prefer fseeko to fseek.
15587 * modules/getpass (Depends-on): Add fseeko.
15588 * lib/getpass.c (getpass): Use fseeko, not fseek.
15590 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
15592 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
15593 assumes the sorting is stable, while most qsort implementations
15594 are not. Use argument addresses to ensure they never compare as
15597 * tests/test-argp-2.sh (usage-indent test): Fix output
15598 (func_compare): Restore diff options
15599 * tests/test-argp.c: Restore #include "progname.h"
15601 2007-04-29 Bruno Haible <bruno@clisp.org>
15603 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
15604 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15605 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
15606 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15607 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
15608 (configure.ac): Define CHECK_SNPRINTF_POSIX.
15609 (TESTS, check_PROGRAMS): Add test-snprintf.
15610 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
15611 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
15612 (TESTS, check_PROGRAMS): Add test-vsnprintf.
15613 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
15614 assertions that fail on HP-UX, OSF/1, or IRIX.
15615 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
15617 2007-04-29 Bruno Haible <bruno@clisp.org>
15619 * MODULES.html.sh (posix_functions): Remove 'contents'.
15621 2007-04-29 Karl Berry <karl@gnu.org>
15623 * config/srclist.txt (gendocs_template_min): new entry.
15625 2007-04-29 Bruno Haible <bruno@clisp.org>
15627 Work around fpurge bug on BSD systems.
15628 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
15629 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
15630 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
15631 fpurge to rpl_fpurge if the system already has this function.
15632 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
15633 the case where the system already has this function. Correct invariants
15635 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
15638 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
15640 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
15641 proposed by Sven Verdoolaege.
15643 * tests/test-argp.c: Fix option ordering. Test deeply clustered
15645 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
15646 (usage and help tests): Update
15648 2007-04-29 Bruno Haible <bruno@clisp.org>
15650 * tests/test-fflush.c (main): Use a file of size 17, not 10.
15651 Print more information in case of failure. Disable a test on BeOS.
15653 2007-04-29 Bruno Haible <bruno@clisp.org>
15655 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
15656 This helps debugging on systems on which no gdb is available.
15658 2007-04-29 Bruno Haible <bruno@clisp.org>
15660 * lib/freading.h: Improve comments.
15661 * lib/fwriting.h: Likewise.
15662 * tests/test-freading.c (main): Don't check freading immediately after
15663 repositioning. Needed for glibc.
15665 2007-04-29 Bruno Haible <bruno@clisp.org>
15667 * lib/freading.c (freading): Trivial simplification.
15669 2007-04-28 Bruno Haible <bruno@clisp.org>
15671 * tests/test-fwriting.c (main): Also test the interaction between
15672 fflush and fwriting.
15673 * modules/fwriting-tests (Depends-on): Add fflush.
15675 * tests/test-freading.c (main): Also test the interaction between
15676 fflush and freading.
15677 * modules/freading-tests (Depends-on): Add fflush.
15679 2007-04-28 Bruno Haible <bruno@clisp.org>
15681 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
15683 Suggested by Eric Blake.
15685 2007-04-28 Jim Meyering <jim@meyering.net>
15687 Avoid false-negative in gl_STDINT_H's C99 conformance test.
15688 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
15689 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
15691 2007-04-27 Eric Blake <ebb9@byu.net>
15693 * doc/headers/assert.texi (assert.h): Document assert module use.
15695 2007-04-27 Bruno Haible <bruno@clisp.org>
15697 * doc/headers/*.texi: New files.
15698 * doc/gnulib.texi (Header File Substitutes): New chapter.
15699 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
15701 (standards.info ,standards.html, standards.dvi): Update dependencies.
15702 (mostlyclean, clean): New targets.
15704 2007-04-27 Bruno Haible <bruno@clisp.org>
15706 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
15707 * modules/sysexits (Files, Makefile.am): Update.
15709 * lib/sys_socket_.h: Renamed from lib/socket_.h.
15710 * modules/sys_socket (Files, Makefile.am): Update.
15712 * lib/sys_stat_.h: Renamed from lib/stat_.h.
15713 * modules/sys_stat (Files, Makefile.am): Update.
15715 2007-04-27 Eric Blake <ebb9@byu.net>
15717 * lib/freading.h: Improve comments.
15718 * lib/fwriting.h: Likewise.
15719 * lib/fflush.c: Likewise.
15721 Fix closein for mingw.
15722 * modules/closein-tests: Add tests for closein.
15723 * tests/test-closein.c: New file.
15724 * tests/test-closein.sh: Likewise.
15725 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
15726 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
15728 2007-04-27 Bruno Haible <bruno@clisp.org>
15730 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
15732 * lib/math_.h [__DECC]: Likewise.
15733 * lib/stdio_.h [__DECC]: Likewise.
15734 * lib/stdlib_.h [__DECC]: Likewise.
15735 * lib/string_.h [__DECC]: Likewise.
15736 * lib/time_.h [__DECC]: Likewise.
15737 * lib/wchar_.h [__DECC]: Likewise.
15738 * lib/wctype_.h [__DECC]: Likewise.
15740 2007-04-27 Bruno Haible <bruno@clisp.org>
15742 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
15744 2007-04-27 Bruno Haible <bruno@clisp.org>
15746 * lib/fflush.c: Add comments.
15747 * modules/fpurge-tests (Depends-on): Add fflush.
15748 * modules/freadable-tests (Depends-on): Likewise.
15749 * modules/fwritable-tests (Depends-on): Likewise.
15751 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
15753 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
15754 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
15755 Report by Bruno Haible <bruno@clisp.org>.
15757 2007-04-26 Eric Blake <ebb9@byu.net>
15759 Fix fflush on mingw.
15760 * modules/fflush (Depends-on): Add freading.
15761 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
15764 2007-04-26 Eric Blake <ebb9@byu.net>
15765 and Bruno Haible <bruno@clisp.org>
15767 Implement freading and fwriting.
15768 * lib/freading.c: New file.
15769 * lib/freading.h: Likewise.
15770 * m4/freading.m4: Likewise.
15771 * modules/freading: Likewise.
15772 * modules/freading-tests: Likewise.
15773 * tests/test-freading.c: Likewise.
15774 * lib/fwriting.c: New file.
15775 * lib/fwriting.h: Likewise.
15776 * m4/fwriting.m4: Likewise.
15777 * modules/fwriting: Likewise.
15778 * modules/fwriting-tests: Likewise.
15779 * tests/test-fwriting.c: Likewise.
15780 * MODULES.html.sh (File stream based Input/Output): Mention them.
15782 2007-04-26 Bruno Haible <bruno@clisp.org>
15784 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
15785 'long' when we assume it.
15786 Suggested by Eric Blake.
15788 2007-04-26 Bruno Haible <bruno@clisp.org>
15790 Ensure fseeko, ftello are declared on glibc systems.
15791 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
15792 * modules/fseeko (configure.ac-early): Likewise.
15793 * modules/ftello (configure.ac-early): Likewise.
15794 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
15795 AC_FUNC_FSEEKO for this.
15796 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
15797 (gl_CHECK_FSEEKO): Remove macro.
15799 2007-04-26 Bruno Haible <bruno@clisp.org>
15801 * tests/test-fflush.c (main): Also check the ftell result after
15802 fflush and fseek/fseeko.
15803 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
15804 file descriptor position cache in the stream.
15805 * lib/fseeko.c (rpl_fseeko): Likewise.
15807 2007-04-26 Bruno Haible <bruno@clisp.org>
15809 * modules/fflush-tests (Depends-on): Add fseeko.
15811 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
15812 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
15814 * lib/argz_.h: ensure error_t definition is obtained in same
15815 mechanism system argz.h would have.
15816 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
15817 argz facilities are known bad. Err on the side of caution if
15820 2007-04-25 Eric Blake <ebb9@byu.net>
15822 * lib/fpurge.c (includes): Use stdlib.h for free.
15823 * tests/test-fflush.c (main): Also test fflush-fseeko.
15825 2007-04-25 Bruno Haible <bruno@clisp.org>
15827 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
15828 * lib/fseeko.c: New file.
15829 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
15830 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
15831 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
15833 (gl_FUNC_FSEEKO): Invoke it.
15834 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
15835 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
15836 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
15838 2007-04-25 Bruno Haible <bruno@clisp.org>
15840 * modules/fflush (Depends-on): Add ftello.
15842 2007-04-25 Bruno Haible <bruno@clisp.org>
15844 * modules/ftello-tests: New file.
15845 * tests/test-ftello.c: New file.
15847 * modules/ftello: New file.
15848 * m4/ftello.m4: New file.
15849 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
15851 * lib/stdio_.h (ftello): New declaration.
15852 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
15855 2007-04-25 Bruno Haible <bruno@clisp.org>
15857 * modules/fseeko-tests: New file.
15858 * tests/test-fseeko.c: New file.
15860 * modules/fseeko: New file.
15861 * m4/fseeko.m4: New file.
15862 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
15864 * lib/stdio_.h (fseeko): New declaration.
15865 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
15868 2007-04-25 Bruno Haible <bruno@clisp.org>
15870 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
15872 2007-04-25 Bruno Haible <bruno@clisp.org>
15874 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
15875 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
15876 * tests/test-unistd.c: Likewise.
15877 * tests/test-fcntl.c: Likewise.
15879 2007-04-23 Eric Blake <ebb9@byu.net>
15881 * lib/fflush.c: Fix missing include.
15882 Reported by Bruno Haible.
15884 2007-04-23 Bruno Haible <bruno@clisp.org>
15886 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
15887 Reported by Eric Blake.
15889 2007-04-23 Bruno Haible <bruno@clisp.org>
15891 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
15893 2007-04-23 Bruno Haible <bruno@clisp.org>
15895 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
15897 2007-04-23 Bruno Haible <bruno@clisp.org>
15899 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
15900 Needed on HP-UX 11.
15902 2007-04-16 Eric Blake <ebb9@byu.net>
15904 Make fflush rely on fpurge.
15905 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
15906 open coding all variants.
15907 * modules/fflush (Depends-on): Add fpurge and unistd.
15908 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
15909 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
15911 Fix --with-tests compilation on cygwin.
15912 * modules/argmatch-tests (Makefile.am): List gnulib library first
15914 * modules/argp-tests (Makefile.am): Likewise.
15915 * modules/array-list-tests (Makefile.am): Likewise.
15916 * modules/array-oset-tests (Makefile.am): Likewise.
15917 * modules/avltree-list-tests (Makefile.am): Likewise.
15918 * modules/avltree-oset-tests (Makefile.am): Likewise.
15919 * modules/avltreehash-list-tests (Makefile.am): Likewise.
15920 * modules/carray-list-tests (Makefile.am): Likewise.
15921 * modules/dirname-tests (Makefile.am): Likewise.
15922 * modules/frexp-tests (Makefile.am): Likewise.
15923 * modules/isnanl-tests (Makefile.am): Likewise.
15924 * modules/linked-list-tests (Makefile.am): Likewise.
15925 * modules/linkedhash-list-tests (Makefile.am): Likewise.
15926 * modules/lock-tests (Makefile.am): Likewise.
15927 * modules/rbtree-list-tests (Makefile.am): Likewise.
15928 * modules/rbtree-oset-tests (Makefile.am): Likewise.
15929 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
15930 * modules/tls-tests (Makefile.am): Likewise.
15931 * modules/tsearch-tests (Makefile.am): Likewise.
15932 * modules/xvasprintf-tests (Makefile.am): Likewise.
15934 Fix fpurge for cygwin.
15935 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
15937 * modules/fpurge-tests (Depends-on): Clean up trash.
15939 2007-04-16 Simon Josefsson <simon@josefsson.org>
15941 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
15943 * m4/autobuild.m4: Re-indent.
15945 2007-04-13 Bruno Haible <bruno@clisp.org>
15947 * modules/fpurge-tests: New file.
15948 * tests/test-fpurge.c: New file.
15950 * modules/fpurge: New file.
15951 * lib/fpurge.h: New file.
15952 * lib/fpurge.c: New file.
15953 * m4/fpurge.m4: New file.
15955 2007-04-13 Bruno Haible <bruno@clisp.org>
15957 * modules/fbufmode-tests: New file.
15958 * tests/test-fbufmode.c: New file.
15960 * modules/fbufmode: New file.
15961 * lib/fbufmode.h: New file.
15962 * lib/fbufmode.c: New file.
15963 * m4/fbufmode.m4: New file.
15965 2007-04-13 Bruno Haible <bruno@clisp.org>
15967 * modules/fwritable-tests: New file.
15968 * tests/test-fwritable.c: New file.
15970 * modules/fwritable: New file.
15971 * lib/fwritable.h: New file.
15972 * lib/fwritable.c: New file.
15973 * m4/fwritable.m4: New file.
15975 2007-04-13 Bruno Haible <bruno@clisp.org>
15977 * modules/freadable-tests: New file.
15978 * tests/test-freadable.c: New file.
15980 * modules/freadable: New file.
15981 * lib/freadable.h: New file.
15982 * lib/freadable.c: New file.
15983 * m4/freadable.m4: New file.
15985 2007-04-13 Bruno Haible <bruno@clisp.org>
15987 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
15990 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
15992 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
15993 gzip bootstrap.conf to avoid dragging in i18n machinery.
15994 (gnulib_tool_option): Use it.
15996 2007-04-13 Bruno Haible <bruno@clisp.org>
15998 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
16000 * tests/test-vasprintf-posix.c (test_function): Likewise.
16001 * tests/test-snprintf-posix.h (test_function): Likewise.
16002 * tests/test-sprintf-posix.h (test_function): Likewise.
16003 * tests/test-fprintf-posix.h (test_function): Likewise.
16004 * tests/test-printf-posix.h (test_function): Likewise.
16005 * tests/test-fprintf-posix.out: Likewise.
16007 2007-04-13 Bruno Haible <bruno@clisp.org>
16009 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
16010 * modules/tls-tests (configure.ac): Likewise.
16011 Reported by Arto C. Nirkko <anirkko@insel.ch>.
16013 2007-04-13 Bruno Haible <bruno@clisp.org>
16015 * lib/tls.c (glthread_tls_get): Fix return type.
16016 Patch by Arto C. Nirkko <anirkko@insel.ch>.
16018 2007-04-12 Eric Blake <ebb9@byu.net>
16020 * modules/gettime (Depends-on): Remove gettime.
16021 Reported by Dmitry V. Levin.
16023 2007-04-12 Bruno Haible <bruno@clisp.org>
16025 * modules/fflush (Include): Mention <stdio.h>.
16026 * modules/strtoimax (Include): Mention <inttypes.h>.
16027 * modules/strtoumax (Include): Likewise.
16029 2007-04-12 Eric Blake <ebb9@byu.net>
16031 * .cvsignore: New file.
16032 * .gitignore: Likewise.
16034 2007-04-12 Bruno Haible <bruno@clisp.org>
16036 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
16037 not before, since $(LDADD) often contains libgnu.a.
16038 * modules/striconv-tests (test_striconv_LDADD): Likewise.
16039 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
16040 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
16043 2007-04-12 Eric Blake <ebb9@byu.net>
16045 Work around glibc's failure to flush stdin on fclose.
16046 * lib/closein.c (close_stdin): Flush stdin before closing.
16048 Work around glibc's failure to reset seekable stdin on exit.
16049 * modules/closein: New module.
16050 * lib/closein.c: New file.
16051 * lib/closein.h: Likewise.
16052 * m4/closein.m4: Likewise.
16053 * MODULES.html.sh (File stream based Input/Output): Document it.
16055 2007-04-12 Simon Josefsson <simon@josefsson.org>
16057 * gnulib-tool: Rename generated 'autobuild' script to
16058 'do-autobuild' in --create-megatestdir output.
16060 * doc/gnulib.texi (Build robot for gnulib): Fix.
16062 2007-04-12 Simon Josefsson <simon@josefsson.org>
16064 * modules/sysexits (Depends-on): Add absolute-header.
16066 2007-04-12 Eric Blake <ebb9@byu.net>
16068 No need to preserve errno on success.
16069 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
16070 Reported by Bruno Haible.
16072 2007-04-12 Simon Josefsson <simon@josefsson.org>
16074 * MODULES.html.sh (Support for maintaining and releasing
16075 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
16077 2007-04-12 Simon Josefsson <simon@josefsson.org>
16079 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
16081 2007-04-12 Simon Josefsson <simon@josefsson.org>
16083 * modules/autobuild: New module.
16085 * m4/autobuild.m4: New file.
16087 2007-04-11 Bruno Haible <bruno@clisp.org>
16089 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
16090 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
16091 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
16092 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
16093 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16094 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16095 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16096 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
16097 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16098 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16099 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
16100 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16101 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16102 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
16103 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16104 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16105 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
16106 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16107 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16108 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
16109 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16110 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16111 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
16112 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16113 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16114 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
16115 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16116 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16117 Reported by Eric Blake.
16119 2007-04-11 Bruno Haible <bruno@clisp.org>
16121 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
16123 2007-04-10 Bruno Haible <bruno@clisp.org>
16125 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
16126 for NaN and Infinity. Needed on FreeBSD 6.1.
16127 * tests/test-vasnprintf-posix.c (test_function): Undo last change
16128 regarding results for "%010a" of Infinity and NaN.
16129 * tests/test-vasprintf-posix.c (test_function): Likewise.
16130 * tests/test-snprintf-posix.h (test_function): Likewise.
16131 * tests/test-sprintf-posix.h (test_function): Likewise.
16132 * tests/test-fprintf-posix.h (test_function): Likewise.
16133 * tests/test-printf-posix.h (test_function): Likewise.
16134 * tests/test-fprintf-posix.out: Likewise.
16136 2007-04-10 Bruno Haible <bruno@clisp.org>
16138 * modules/locale-tests: New file.
16139 * tests/test-locale.c: New file.
16141 * modules/locale: New file.
16142 * lib/locale_.h: New file.
16143 * m4/locale_h.m4: New file.
16145 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
16146 Bruno Haible <bruno@clisp.org>
16148 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
16149 be determined, test for availability of the copysignf, copysign,
16150 copysignl functions.
16151 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
16152 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
16153 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
16155 2007-04-09 Eric Blake <ebb9@byu.net>
16157 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
16158 * modules/stdio (Makefile.am): Support fflush.
16159 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16160 * modules/fflush: New file.
16161 * lib/fflush.c: Likewise.
16162 * m4/fflush.m4: Likewise.
16163 * modules/fflush-tests: New test.
16164 * tests/test-fflush.c: Likewise.
16165 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
16167 2007-04-06 Bruno Haible <bruno@clisp.org>
16169 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
16170 (VASNPRINTF): Use signbit for faster determination whether to print a
16172 * modules/vasnprintf (Files): Remove lib/float+.h.
16173 * modules/fprintf-posix (Depends-on): Add signbit.
16174 * modules/snprintf-posix (Depends-on): Likewise.
16175 * modules/sprintf-posix (Depends-on): Likewise.
16176 * modules/vasnprintf-posix (Depends-on): Likewise.
16177 * modules/vasprintf-posix (Depends-on): Likewise.
16178 * modules/vfprintf-posix (Depends-on): Likewise.
16179 * modules/vsnprintf-posix (Depends-on): Likewise.
16180 * modules/vsprintf-posix (Depends-on): Likewise.
16182 2007-04-06 Bruno Haible <bruno@clisp.org>
16184 * tests/test-frexp.c (main): Test also the sign bit of zero results.
16185 * tests/test-frexpl.c (main): Likewise.
16186 * tests/test-ldexpl.c (main): Likewise.
16187 * modules/frexp-tests (Depends-on): Add signbit.
16188 * modules/frexpl-tests (Depdends-on): Likewise.
16189 * modules/ldexpl-tests (Depdends-on): Likewise.
16191 2007-04-06 Bruno Haible <bruno@clisp.org>
16193 * modules/signbit-tests: New file.
16194 * tests/test-signbit.c: New file.
16196 * modules/signbit: New file.
16197 * lib/signbitf.c: New file.
16198 * lib/signbitd.c: New file.
16199 * lib/signbitl.c: New file.
16200 * m4/signbit.m4: New file.
16201 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
16202 (signbit): New macro.
16203 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
16205 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
16206 REPLACE_FREXPL into math.h.
16208 2007-04-06 Bruno Haible <bruno@clisp.org>
16210 * modules/isnanf-nolibm-tests: New file.
16211 * tests/test-isnanf.c: New file.
16213 * modules/isnanf-nolibm: New file.
16214 * lib/isnanf.h: New file.
16215 * lib/isnanf.c: New file.
16216 * lib/isnan.c: Consider the USE_FLOAT macro.
16217 * m4/isnanf.m4: New file.
16219 2007-04-06 Bruno Haible <bruno@clisp.org>
16221 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
16222 (Link): New section.
16224 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
16226 2007-04-06 Bruno Haible <bruno@clisp.org>
16228 Assume the 'long double' type.
16229 * m4/longdouble.m4: Remove file.
16230 * config/srclist.txt: Don't mention longdouble.m4.
16231 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
16232 * lib/float+.h: Likewise.
16233 * lib/frexp.c: Likewise.
16234 * lib/printf-args.h: Likewise.
16235 * lib/printf-args.c: Likewise.
16236 * lib/printf-frexp.c: Likewise.
16237 * lib/printf-parse.c: Likewise.
16238 * lib/vasnprintf.c: Likewise.
16239 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
16240 * m4/intl.m4: Likewise.
16241 * m4/isnanl.m4: Likewise.
16242 * m4/printf.m4: Likewise.
16243 * m4/printf-frexpl.m4: Likewise.
16244 * m4/vasnprintf.m4: Likewise.
16245 * modules/allocsa (Files): Remove m4/longdouble.m4.
16246 * modules/gettext (Files): Likewise.
16247 * modules/relocatable-prog-wrapper (Files): Likewise.
16248 * modules/vasnprintf (Files): Likewise.
16249 * modules/isnanl (Files): Likewise.
16250 (Include): Simplify.
16251 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
16252 (Include): Simplify.
16253 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
16254 (Include): Simplify.
16255 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
16256 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16257 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
16258 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16259 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
16260 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16261 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
16262 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16263 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
16264 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16265 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
16266 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16267 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
16268 * tests/test-isnanl.c: Likewise.
16269 * tests/test-snprintf-posix.h: Likewise.
16270 * tests/test-sprintf-posix.h: Likewise.
16271 * tests/test-vasnprintf-posix.c: Likewise.
16272 * tests/test-vasnprintf-posix2.c: Likewise.
16273 * tests/test-vasprintf-posix.c: Likewise.
16275 2007-04-06 Bruno Haible <bruno@clisp.org>
16277 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
16278 * lib/math_.h [__DECC]: Include the overridden include file through
16279 #include_next, outside the double-inclusion guard.
16280 * lib/stdio_.h [__DECC]: Likewise.
16281 * lib/stdlib_.h [__DECC]: Likewise.
16282 * lib/string_.h [__DECC]: Likewise.
16283 * lib/time_.h [__DECC]: Likewise.
16284 * lib/wchar_.h [__DECC]: Likewise.
16285 * lib/wctype_.h [__DECC]: Likewise.
16286 * lib/inttypes_.h [__DECC]: Likewise.
16287 Reported by Albert Chin <china@thewrittenword.com> in
16288 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
16290 2007-04-04 Eric Blake <ebb9@byu.net>
16292 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
16295 2007-04-04 Bruno Haible <bruno@clisp.org>
16297 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
16298 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
16300 2007-04-04 Bruno Haible <bruno@clisp.org>
16302 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
16303 results for "%010a" of Infinity and NaN.
16304 * tests/test-vasprintf-posix.c (test_function): Likewise.
16305 * tests/test-snprintf-posix.h (test_function): Likewise.
16306 * tests/test-sprintf-posix.h (test_function): Likewise.
16307 * tests/test-fprintf-posix.h (test_function): Remove these tests.
16308 * tests/test-printf-posix.h (test_function): Likewise.
16309 * tests/test-fprintf-posix.out: Update.
16310 Needed for FreeBSD 6.1.
16312 2007-04-04 Bruno Haible <bruno@clisp.org>
16314 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
16315 directly used by the gnulib modules nor by gnulib-tool.
16317 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
16319 * DEPENDENCIES: Give overall description of version dependency
16320 desirability. Use more-typical names for apps.
16321 Add shell, coreutils, diffutils, grep, tar, gzip.
16323 2007-04-04 Simon Josefsson <simon@josefsson.org>
16325 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
16327 2007-04-04 Karl Berry <karl@gnu.org>
16329 * MODULES.html.sh (func_module): missing '.
16331 2007-04-03 Bruno Haible <bruno@clisp.org>
16333 * modules/argmatch-tests (Makefile.am): New variable
16334 test_argmatch_LDADD.
16335 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
16336 * modules/array-list-tests (Makefile.am): New variable
16337 test_array_list_LDADD.
16338 * modules/array-oset-tests (Makefile.am): New variable
16339 test_array_oset_LDADD.
16340 * modules/avltree-list-tests (Makefile.am): New variable
16341 test_avltree_list_LDADD.
16342 * modules/avltree-oset-tests (Makefile.am): New variable
16343 test_avltree_oset_LDADD.
16344 * modules/avltreehash-list-tests (Makefile.am): New variable
16345 test_avltreehash_list_LDADD.
16346 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
16347 test_canonicalize_lgpl_LDADD.
16348 * modules/carray-list-tests (Makefile.am): New variable
16349 test_carray_list_LDADD.
16350 * modules/dirname-tests (Makefile.am): New variable
16351 test_dirname_LDADD.
16352 * modules/linked-list-tests (Makefile.am): New variable
16353 test_linked_list_LDADD.
16354 * modules/linkedhash-list-tests (Makefile.am): New variable
16355 test_linkedhash_list_LDADD.
16356 * modules/rbtree-list-tests (Makefile.am): New variable
16357 test_rbtree_list_LDADD.
16358 * modules/rbtree-oset-tests (Makefile.am): New variable
16359 test_rbtree_oset_LDADD.
16360 * modules/rbtreehash-list-tests (Makefile.am): New variable
16361 test_rbtreehash_list_LDADD.
16362 * modules/xvasprintf-tests (Makefile.am): New variable
16363 test_xvasprintf_LDADD.
16364 Reported by Eric Blake.
16366 2007-04-03 Eric Blake <ebb9@byu.net>
16368 * DEPENDENCIES: Weaken m4 requirements.
16370 2007-04-03 Bruno Haible <bruno@clisp.org>
16372 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
16373 * modules/isnanl-tests (configure.ac): Likewise.
16375 2007-04-03 Ben Pfaff <blp@gnu.org>
16377 * modules/iconv_open: Add $(srcdir)/ to source directory
16378 references in Makefile fragments that call gperf, to fix VPATH
16381 2007-04-03 Bruno Haible <bruno@clisp.org>
16383 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
16384 * lib/ldexpl.c: Undo last change.
16386 2007-04-03 Bruno Haible <bruno@clisp.org>
16388 * modules/printf-frexpl (Depends-on): Undo last change.
16389 (Files): Add m4/ldexpl.m4.
16391 2007-04-03 Bruno Haible <bruno@clisp.org>
16393 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
16394 * modules/isnanl (Link): New section.
16396 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
16397 * modules/frexp (Link): New section.
16399 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
16400 * modules/frexpl (Link): New section.
16402 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
16403 * modules/ldexpl (Link): New section.
16405 2007-04-03 Bruno Haible <bruno@clisp.org>
16407 * modules/TEMPLATE-EXTENDED: New file.
16408 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
16410 2007-04-03 Bruno Haible <bruno@clisp.org>
16412 * DEPENDENCIES: New file.
16413 Suggested by Simon Josefsson.
16415 2007-04-03 Bruno Haible <bruno@clisp.org>
16417 * doc/gnulib.texi: Escape @.
16419 2007-04-03 James Youngman <jay@gnu.org>
16420 and Paul Eggert <eggert@cs.ucla.edu>
16422 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
16423 birthtime on all systems that have birthtime, not just those which
16424 use st_birthtimensec rather than st_birthtim. Putting zero in
16425 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
16426 that the birth time is not available for files on an NFS mount.
16428 2007-04-03 Simon Josefsson <simon@josefsson.org>
16430 * modules/memxor: Move back from crypto/, suggested by Bruno.
16431 * modules/crypto/hmac-sha1: Fix memxor dependency.
16433 * modules/crypto/gc: Moved from ../.
16435 2007-04-02 Eric Blake <ebb9@byu.net>
16437 * lib/ldexpl.c (includes): Avoid libm.
16439 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
16441 2007-04-02 Bruno Haible <bruno@clisp.org>
16443 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
16446 2007-04-02 Bruno Haible <bruno@clisp.org>
16448 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
16449 x86 or x86_64 platforms running MacOS X.
16450 Reported by Ryan Schmidt <@ryandesign.com>.
16452 2007-04-02 Bruno Haible <bruno@clisp.org>
16454 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
16457 2007-04-01 Simon Josefsson <simon@josefsson.org>
16459 * modules/crypto/arcfour: Moved from ../.
16460 * modules/crypto/arcfour-tests: Moved from ../.
16461 * modules/crypto/arctwo: Moved from ../.
16462 * modules/crypto/arctwo-tests: Moved from ../.
16463 * modules/crypto/des: Moved from ../.
16464 * modules/crypto/des-tests: Moved from ../.
16465 * modules/crypto/gc-arcfour: Moved from ../.
16466 * modules/crypto/gc-arcfour-tests: Moved from ../.
16467 * modules/crypto/gc-arctwo: Moved from ../.
16468 * modules/crypto/gc-arctwo-tests: Moved from ../.
16469 * modules/crypto/gc-des: Moved from ../.
16470 * modules/crypto/gc-des-tests: Moved from ../.
16471 * modules/crypto/gc-hmac-md5: Moved from ../.
16472 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
16473 * modules/crypto/gc-hmac-sha1: Moved from ../.
16474 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
16475 * modules/crypto/gc-md2: Moved from ../.
16476 * modules/crypto/gc-md2-tests: Moved from ../.
16477 * modules/crypto/gc-md4: Moved from ../.
16478 * modules/crypto/gc-md4-tests: Moved from ../.
16479 * modules/crypto/gc-md5: Moved from ../.
16480 * modules/crypto/gc-md5-tests: Moved from ../.
16481 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
16482 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
16483 * modules/crypto/gc-random: Moved from ../.
16484 * modules/crypto/gc-rijndael: Moved from ../.
16485 * modules/crypto/gc-rijndael-tests: Moved from ../.
16486 * modules/crypto/gc-sha1: Moved from ../.
16487 * modules/crypto/gc-sha1-tests: Moved from ../.
16488 * modules/crypto/gc-tests: Moved from ../.
16489 * modules/crypto/hmac-md5: Moved from ../.
16490 * modules/crypto/hmac-md5-tests: Moved from ../.
16491 * modules/crypto/hmac-sha1: Moved from ../.
16492 * modules/crypto/hmac-sha1-tests: Moved from ../.
16493 * modules/crypto/md2: Moved from ../.
16494 * modules/crypto/md2-tests: Moved from ../.
16495 * modules/crypto/md4: Moved from ../.
16496 * modules/crypto/md4-tests: Moved from ../.
16497 * modules/crypto/md5: Moved from ../.
16498 * modules/crypto/md5-tests: Moved from ../.
16499 * modules/crypto/memxor: Moved from ../.
16500 * modules/crypto/rijndael: Moved from ../.
16501 * modules/crypto/rijndael-tests: Moved from ../.
16502 * modules/crypto/sha1: Moved from ../.
16504 2007-03-30 James Youngman <jay@gnu.org>
16506 * tests/test-stat-time.c (prepare_test): use chmod() rather than
16507 rename() to change the ctime of a file (because ctime is unaffected
16508 by rename on jfs2 on AIX 5.1).
16509 (main): Start by doing cleanup, in case a previous run failed leaving
16512 2007-03-31 Bruno Haible <bruno@clisp.org>
16514 Support old proprietary implementations of iconv.
16515 * modules/iconv_open: New file.
16516 * lib/iconv_.h: New file.
16517 * m4/iconv_h.m4: New file.
16518 * lib/iconv_open.c: New file.
16519 * lib/iconv_open-aix.gperf: New file.
16520 * lib/iconv_open-hpux.gperf: New file.
16521 * lib/iconv_open-irix.gperf: New file.
16522 * lib/iconv_open-osf.gperf: New file.
16523 * m4/iconv_open.m4: New file.
16524 * modules/linebreak (Depends-on): Add iconv_open.
16525 * modules/striconv (Depends-on): Likewise.
16526 * modules/striconveh (Depends-on): Likewise.
16527 * modules/unicodeio (Depends-on): Likewise.
16528 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
16530 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
16531 conversion if cd is (iconv_t)(-1).
16532 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
16535 2007-03-31 Bruno Haible <bruno@clisp.org>
16537 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16538 work on Solaris either. Protect also second use of "autodetect_jp".
16540 2007-03-31 Bruno Haible <bruno@clisp.org>
16542 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
16543 the function is not present.
16545 2007-03-31 Bruno Haible <bruno@clisp.org>
16547 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
16548 the function is not present.
16550 2007-03-31 Bruno Haible <bruno@clisp.org>
16552 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
16553 a bug in HP-UX iconv_open().
16555 2007-03-31 Bruno Haible <bruno@clisp.org>
16557 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
16558 (Mathematics <math.h>): New section, add fpieee.
16559 (Input/output <stdio.h>): Add fseterr.
16560 (Mathematics <math.h>): New section, add printf-frexp.
16561 (Container data structures): Add sublist.
16562 (Core language properties): Add fpucw, inline.
16563 (Functions for greatest-width integer types <inttypes.h>): Add
16564 imaxabs, imaxdiv, inttypes.
16565 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
16566 isnanl-nolibm, ldexp.
16567 (Mathematics <math.h>): New section, add printf-frexpl.
16568 (Support for systems lacking POSIX:2001): Add fprintf-posix,
16569 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
16570 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
16571 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
16572 (Unicode string functions): Add unistr/u*-mbtoucr.
16573 (Java): Add javacomp-script, javaexec-script.
16574 (C#): Add csharpcomp-script, csharpexec-script.
16575 (Support for building libraries and executables): Add havelib,
16577 (Support for maintaining and releasing projects): Renamed from
16578 'Support for maintaining and release projects'. Add announce-gen.
16580 2007-03-31 Bruno Haible <bruno@clisp.org>
16582 * README: Talk primarily about git.
16583 (git and CVS): Renamed from CVS.
16584 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
16585 gnulib is available through git.
16586 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
16588 2007-03-30 Bruno Haible <bruno@clisp.org>
16590 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
16591 * lib/poll_.h: Likewise.
16592 * lib/stat_.h: Likewise.
16593 * lib/sys_time_.h: Likewise.
16594 * lib/sysexit_.h: Likewise.
16595 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
16596 * lib/stdbool_.h: Likewise.
16597 * lib/byteswap_.h: Add double-inclusion guard.
16599 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
16601 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
16603 2007-03-30 Karl Berry <karl@gnu.org>
16605 * config/srclist-update: double space after USA in the license
16606 substitution, since that's how it's usually (?) written.
16608 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
16610 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
16611 reported by Bruno Haible.
16613 2007-03-29 Bruno Haible <bruno@clisp.org>
16615 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
16616 a bug in AIX iconv().
16618 2007-03-29 Bruno Haible <bruno@clisp.org>
16620 * modules/ldexpl-tests: New file.
16621 * tests/test-ldexpl.c: New file.
16623 2007-03-29 Bruno Haible <bruno@clisp.org>
16625 * lib/ldexpl.c: Include fpucw.h.
16626 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
16628 * modules/ldexpl (Depends-on): Add fpucw.
16630 2007-03-29 Bruno Haible <bruno@clisp.org>
16632 * modules/ldexpl: New file.
16633 * m4/ldexpl.m4: New file.
16634 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
16636 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
16638 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
16640 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
16641 gl_FUNC_LDEXPL_WORKS.
16642 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
16643 * modules/mathl (Files): Remove lib/ldexpl.c.
16644 (Depends-on): Add ldexpl.
16646 2007-03-29 Bruno Haible <bruno@clisp.org>
16648 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
16650 2007-03-29 Bruno Haible <bruno@clisp.org>
16652 * tests/test-striconveh.c (main): Don't assume that a direct conversion
16653 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
16654 and possibly also HP-UX.
16655 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16656 work on AIX, IRIX, HP-UX, OSF/1.
16657 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16658 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16659 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16660 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16661 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16662 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16664 2007-03-29 Bruno Haible <bruno@clisp.org>
16666 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
16668 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
16670 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
16671 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
16673 2007-03-29 Eric Blake <ebb9@byu.net>
16675 * lib/acl-internal.h: Remove redundant include.
16676 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
16677 Cygwin when a file is locked.
16679 2007-03-29 Bruno Haible <bruno@clisp.org>
16681 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
16683 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
16685 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
16687 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
16688 try to remove a parent directory if the child couldn't be removed
16689 (except for the first rmdir, which could fail because the child
16690 doesn't exist). Problem reported by Jeff Blaine in
16691 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
16693 2007-03-28 Bruno Haible <bruno@clisp.org>
16695 * lib/striconveh.c (utf8conv_carefully): New function.
16696 (mem_cd_iconveh_internal): Invoke it.
16698 2007-03-28 Bruno Haible <bruno@clisp.org>
16700 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
16701 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
16703 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
16704 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
16707 2007-03-28 Bruno Haible <bruno@clisp.org>
16709 * modules/unistr/u8-mbtoucr: New file.
16710 * lib/unistr/u8-mbtoucr.c: New file.
16711 * modules/unistr/u16-mbtoucr: New file.
16712 * lib/unistr/u16-mbtoucr.c: New file.
16713 * modules/unistr/u16-mbtoucr: New file.
16714 * lib/unistr/u16-mbtoucr.c: New file.
16715 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
16717 2007-03-27 Simon Josefsson <simon@josefsson.org>
16718 Bruno Haible <bruno@clisp.org>
16720 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
16721 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
16722 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
16724 * m4/stdio_h.m4: Add stubs for vasprintf too.
16726 * modules/stdio: Support vasprintf in sed command.
16728 * modules/vasprintf: Depend on stdio for prototypes. Remove
16729 vasprintf.h. Add stdio module indicator.
16731 * lib/stdio_.h: Declare asprintf and vasprintf, based on
16734 * lib/vasprintf.h: File removed.
16736 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
16737 * lib/vasprintf.c: Ditto.
16738 * lib/xvasprintf.c: Ditto.
16739 * tests/test-vasprintf-posix.c: Ditto.
16740 * tests/test-vasprintf.c: Ditto.
16742 2007-03-27 Bruno Haible <bruno@clisp.org>
16744 Make vasnprintf multithread-safe.
16745 * lib/vasnprintf.c (decimal_point_char): New function.
16746 (VASNPRINTF): Use it.
16747 Suggested by Simon Josefsson.
16749 2007-03-27 Eric Blake <ebb9@byu.net>
16751 Support sub-second birthtime on cygwin.
16752 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
16753 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
16754 (get_stat_birthtime): Also work with st_birthtim.
16756 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
16758 * lib/stat-time.h (USE_BIRTHTIME): Remove.
16759 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
16760 (get_stat_birthtime_ns): Do not try to use "spare" fields.
16761 (get_stat_birthtime_ns): Simplify compile-time tests.
16762 (get_stat_birthtime): Change the API to look like
16763 get_stat_mtime etc., except return a negative tv_nsec on error.
16764 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
16765 Don't check for "spare" fields.
16766 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
16767 or for struct stat.st_birthtime, as these tests aren't used.
16768 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
16770 2007-03-27 Bruno Haible <bruno@clisp.org>
16772 * lib/stat-time.h: Include <sys/stat.h>.
16774 2007-03-27 James Youngman <jay@gnu.org>
16776 * lib/stat-time.h (get_stat_birthtime): New function for
16777 retrieving st_birthtime as provided by UFS2 (hence *BSD).
16778 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
16780 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
16781 * modules/stat-time-test: New file.
16782 * tests/test-stat-time.c: New test, devised by Bruno Haible.
16784 2007-03-26 Bruno Haible <bruno@clisp.org>
16786 Better support of signalling NaNs.
16787 * lib/atanl.c: Include isnanl.h.
16788 (atanl): Perform test for NaN at the beginning of the function and
16789 through a call to isnanl.
16790 * lib/cosl.c: Include isnanl.h.
16791 (cosl): Perform test for NaN at the beginning of the function and
16792 through a call to isnanl.
16793 * lib/ldexpl.c: Include isnanl.h.
16794 (ldexpl): Perform test for NaN through a call to isnanl.
16795 * lib/logl.c: Include isnanl.h.
16796 (logl): Perform test for NaN at the beginning of the function and
16797 through a call to isnanl.
16798 * lib/sinl.c: Include isnanl.h.
16799 (sinl): Perform test for NaN at the beginning of the function and
16800 through a call to isnanl.
16801 * lib/sqrtl.c: Include isnanl.h.
16802 (sqrtl): Perform test for NaN at the beginning of the function and
16803 through a call to isnanl.
16804 * lib/tanl.c: Include isnanl.h.
16805 (tanl): Perform test for NaN at the beginning of the function and
16806 through a call to isnanl.
16807 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
16808 * modules/mathl (Depends-on): Add isnanl.
16810 2007-03-26 Eric Blake <ebb9@byu.net>
16812 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
16813 regression in logic sense of previous patch.
16815 2007-03-26 Bruno Haible <bruno@clisp.org>
16817 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
16818 unportable shell command "if ! ...".
16819 Reported by Ralf Wildenhues.
16821 2007-03-25 Bruno Haible <bruno@clisp.org>
16823 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
16824 <sysexits.h> file, and only add EX_CONFIG.
16825 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
16826 absolute file name and whether it is sufficient. Substitute also
16827 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
16828 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
16829 ABSOLUTE_SYSEXITS_H into sysexits.h.
16831 2007-03-25 Bruno Haible <bruno@clisp.org>
16833 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
16836 2007-03-25 Bruno Haible <bruno@clisp.org>
16838 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
16839 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
16841 2007-03-25 Bruno Haible <bruno@clisp.org>
16843 * lib/vasnprintf.c: Include langinfo.h.
16844 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
16846 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
16847 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
16848 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16849 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16850 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16851 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16852 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16853 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
16854 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16855 Reported by Simon Josefsson.
16857 2007-03-25 Bruno Haible <bruno@clisp.org>
16859 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
16860 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
16861 * modules/vasnprintf (Depends-on): Add stdint.
16863 2007-03-25 Bruno Haible <bruno@clisp.org>
16865 * modules/fpieee: New file.
16866 * m4/fpieee.m4: New file.
16867 * modules/isnan-nolibm (Depends-on): Add fpieee.
16868 * modules/isnanl-nolibm (Depends-on): Add fpieee.
16869 * modules/isnanl (Depends-on): Add fpieee.
16871 2007-03-25 Bruno Haible <bruno@clisp.org>
16873 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
16875 2007-03-25 Bruno Haible <bruno@clisp.org>
16877 Avoid test failures on IRIX 6.5.
16878 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
16880 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
16884 2007-03-25 Bruno Haible <bruno@clisp.org>
16886 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
16887 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
16888 exists but doesn't work.
16889 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
16890 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
16891 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
16892 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
16894 2007-03-25 Bruno Haible <bruno@clisp.org>
16896 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
16897 returns inf. Needed on IRIX 6.5.
16899 2007-03-25 Bruno Haible <bruno@clisp.org>
16901 * tests/test-frexpl.c: Include isnanl-nolibm.h.
16902 (main): Use isnanl instead of x != x idiom.
16903 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
16905 * tests/test-frexp.c: Include isnan.h.
16906 (main): Use isnan instead of x != x idiom.
16907 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
16909 2007-03-25 Bruno Haible <bruno@clisp.org>
16911 * tests/test-frexp.c (NaN): New function/macro.
16912 (main): Use it instead of 0.0 / 0.0.
16913 * tests/test-isnan.c (NaN): New function/macro.
16914 (main): Use it instead of 0.0 / 0.0.
16915 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
16916 (test_function): Use it instead of 0.0 / 0.0.
16917 * tests/test-vasprintf-posix.c (NaN): New function/macro.
16918 (test_function): Use it instead of 0.0 / 0.0.
16919 * tests/test-snprintf-posix.h (NaN): New function/macro.
16920 (test_function): Use it instead of 0.0 / 0.0.
16921 * tests/test-sprintf-posix.h (NaN): New function/macro.
16922 (test_function): Use it instead of 0.0 / 0.0.
16923 * tests/test-fprintf-posix.h (NaN): New function/macro.
16924 (test_function): Use it instead of 0.0 / 0.0.
16925 * tests/test-printf-posix.h (NaN): New function/macro.
16926 (test_function): Use it instead of 0.0 / 0.0.
16928 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
16930 2007-03-25 Bruno Haible <bruno@clisp.org>
16932 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
16934 2007-03-25 Bruno Haible <bruno@clisp.org>
16936 * lib/regexec.c (merge_state_with_log): Make static.
16938 2007-03-25 Bruno Haible <bruno@clisp.org>
16940 * lib/trigl.c (kernel_rem_pio2): Make static.
16942 2007-03-25 Bruno Haible <bruno@clisp.org>
16944 * lib/sincosl.c (sincosl_table): Make static.
16946 2007-03-25 Bruno Haible <bruno@clisp.org>
16948 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
16949 if the compiler does not support C99.
16951 2007-03-25 Bruno Haible <bruno@clisp.org>
16953 * modules/time (Makefile.am): Ensure all rule action lines start with a
16956 2007-03-24 Bruno Haible <bruno@clisp.org>
16958 * modules/tsearch-tests: New file.
16959 * tests/test-tsearch.sh: New file.
16960 * tests/test-tsearch.c: New file, mostly copied from glibc.
16962 * modules/search-tests: New file.
16963 * tests/test-search.c: New file.
16965 * modules/search: New file.
16966 * lib/search_.h: New file, incorporating lib/tsearch.h.
16967 * m4/search_h.m4: New file.
16968 * lib/tsearch.h: Remove file.
16969 * lib/tsearch.c: Include search.h instead of tsearch.h.
16970 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
16972 * modules/tsearch (Files): Remove lib/tsearch.h.
16973 (Depends-on): Add search.
16974 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
16975 (Include): Change tsearch.h into search.h.
16977 2007-03-24 Bruno Haible <bruno@clisp.org>
16979 * modules/fpucw: New file.
16980 * lib/fpucw.h: New file.
16981 * lib/frexp.c: Include fpucw.h.
16982 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16984 * lib/printf-frexp.c: Include fpucw.h.
16985 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
16987 * lib/vasnprintf.c: Include fpucw.h.
16988 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
16989 'long double' calculations.
16990 * tests/test-frexpl.c: Include fpucw.h.
16991 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16992 * tests/test-printf-frexpl.c: Include fpucw.h.
16993 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
16994 * modules/frexpl (Depends-on): Add fpucw.
16995 * modules/printf-frexpl (Depends-on): Likewise.
16996 * modules/fprintf-posix (Depends-on): Likewise.
16997 * modules/snprintf-posix (Depends-on): Likewise.
16998 * modules/sprintf-posix (Depends-on): Likewise.
16999 * modules/vasnprintf-posix (Depends-on): Likewise.
17000 * modules/vasprintf-posix (Depends-on): Likewise.
17001 * modules/vfprintf-posix (Depends-on): Likewise.
17002 * modules/vsnprintf-posix (Depends-on): Likewise.
17003 * modules/vsprintf-posix (Depends-on): Likewise.
17004 * modules/frexpl-tests (Depends-on): Likewise.
17005 * modules/printf-frexpl-tests (Depends-on): Likewise.
17007 2007-03-24 Bruno Haible <bruno@clisp.org>
17009 * lib/float+.h: New file.
17010 * lib/isnan.c: Include float+.h.
17012 (FUNC): Compare only SIZE bytes of the value.
17013 * lib/vasnprintf.c: Include float+.h.
17014 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
17015 SIZEOF_LDBL or SIZEOF_DBL bytes.
17016 * modules/isnan-nolibm (Files): Add lib/float+.h.
17017 * modules/isnanl-nolibm (Files): Add lib/float+.h.
17018 * modules/isnanl (Files): Add lib/float+.h.
17019 * modules/vasnprintf (Files): Add lib/float+.h.
17021 2007-03-24 Bruno Haible <bruno@clisp.org>
17023 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
17024 include isnanl-nolibm.h.
17026 2007-03-24 Bruno Haible <bruno@clisp.org>
17028 * tests/test-read-file.c (main): Don't produce spurious output for
17029 expected situations. Make the test fail if it encountered unexpected
17032 2007-03-24 Bruno Haible <bruno@clisp.org>
17034 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
17035 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
17037 2007-03-24 Bruno Haible <bruno@clisp.org>
17039 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
17041 2007-03-24 Bruno Haible <bruno@clisp.org>
17043 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
17044 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
17046 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
17047 * modules/utf8-ucs4: Turn into a symbolic link to module
17050 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
17052 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
17053 unistr/u8-mbtouc-unsafe.
17055 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
17056 * modules/utf16-ucs4: Turn into a symbolic link to module
17059 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
17061 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
17062 unistr/u16-mbtouc-unsafe.
17064 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
17065 * modules/ucs4-utf8: Turn into a symbolic link to module
17068 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
17069 * modules/ucs4-utf16: Turn into a symbolic link to module
17072 2007-03-24 Bruno Haible <bruno@clisp.org>
17074 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
17075 Enable the function only if HAVE_INLINE.
17076 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
17077 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
17078 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
17079 Enable the function only if HAVE_INLINE.
17080 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
17081 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
17082 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
17083 Enable the function only if HAVE_INLINE.
17084 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
17085 Enable the function only if HAVE_INLINE.
17086 * modules/utf8-ucs4: Update.
17087 * modules/utf8-ucs4-unsafe: Update.
17088 * modules/utf16-ucs4: Update.
17089 * modules/utf16-ucs4-unsafe: Update.
17090 * modules/ucs4-utf8: Update.
17091 * modules/ucs4-utf16: Update.
17093 2007-03-24 Bruno Haible <bruno@clisp.org>
17095 * lib/utf8-ucs4.h: Remove file.
17096 * lib/utf8-ucs4-unsafe.h: Remove file.
17097 * lib/utf16-ucs4.h: Remove file.
17098 * lib/utf16-ucs4-unsafe.h: Remove file.
17099 * lib/ucs4-utf8.h: Remove file.
17100 * lib/ucs4-utf16.h: Remove file.
17101 * lib/unistr.h: Include their previous contents.
17102 * m4/utf-ucs4.m4: Remove file.
17103 * m4/ucs4-utf.m4: Remove file.
17104 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
17105 (Depends-on): Add unistr/base.
17106 (configure.ac): Remove gl_UTF_UCS4.
17107 (Makefile.am): Update.
17108 (Include): Change to unistr.h.
17109 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
17110 (Depends-on): Add unistr/base.
17111 (configure.ac): Remove gl_UTF_UCS4.
17112 (Makefile.am): Update.
17113 (Include): Change to unistr.h.
17114 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
17115 (Depends-on): Add unistr/base.
17116 (configure.ac): Remove gl_UTF_UCS4.
17117 (Makefile.am): Update.
17118 (Include): Change to unistr.h.
17119 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
17120 (Depends-on): Add unistr/base.
17121 (configure.ac): Remove gl_UTF_UCS4.
17122 (Makefile.am): Update.
17123 (Include): Change to unistr.h.
17124 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
17125 (Depends-on): Add unistr/base.
17126 (configure.ac): Remove gl_UCS4_UTF.
17127 (Makefile.am): Update.
17128 (Include): Change to unistr.h.
17129 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
17130 (Depends-on): Add unistr/base.
17131 (configure.ac): Remove gl_UCS4_UTF.
17132 (Makefile.am): Update.
17133 (Include): Change to unistr.h.
17134 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
17135 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
17136 utf8-ucs4-unsafe.h.
17137 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
17138 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
17139 utf16-ucs4-unsafe.h.
17140 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
17141 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
17142 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
17143 * lib/unistr/u8-strchr.c: Likewise.
17144 * lib/unistr/u8-strrchr.c: Likewise.
17145 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
17146 * lib/unistr/u16-strchr.c: Likewise.
17147 * lib/unistr/u16-strrchr.c: Likewise.
17148 * lib/striconveh.c: Update.
17149 * lib/linebreak.c: Update.
17151 2007-03-24 Bruno Haible <bruno@clisp.org>
17153 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
17154 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
17156 2007-03-22 Bruno Haible <bruno@clisp.org>
17158 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
17160 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
17162 * MODULES.html.sh (File system functions): New module write-any-file.
17163 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
17164 * m4/write-any-file.m4: New files.
17166 2007-03-23 Eric Blake <ebb9@byu.net>
17168 * gnulib-tool: Rearrange space-tab sequences, since some editors
17171 2007-03-23 Eric Blake <ebb9@byu.net>
17173 * lib/version-etc.c (version_etc_va): Update license wording to
17174 be more concise. Recommended by Richard Stallman.
17176 2007-03-22 Bruno Haible <bruno@clisp.org>
17178 * lib/poll.c (MSG_PEEK): New fallback definition.
17180 2007-03-22 Bruno Haible <bruno@clisp.org>
17182 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
17183 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
17185 Fixes a compilation error on BeOS.
17187 2007-03-22 Bruno Haible <bruno@clisp.org>
17189 * modules/frexpl-tests: New file.
17190 * tests/test-frexpl.c: New file.
17192 * modules/frexpl: New file.
17193 * m4/frexpl.m4: New file.
17194 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
17195 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
17196 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
17197 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
17198 (Depends-on): Add frexpl. Remove isnanl-nolibm.
17199 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
17201 2007-03-22 Bruno Haible <bruno@clisp.org>
17203 * lib/frexpl.c: Share code with lib/frexp.c.
17204 * modules/mathl (Files): Add lib/frexp.c.
17205 (Depends-on): Add isnanl-nolibm.
17207 2007-03-22 Bruno Haible <bruno@clisp.org>
17209 * modules/printf-frexp (Files): Add m4/frexp.m4.
17210 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
17211 only if the found frexp function actually works.
17213 2007-03-22 Bruno Haible <bruno@clisp.org>
17215 * lib/frexp.c: Remove older implementation that uses divisions.
17217 2007-03-21 Bruno Haible <bruno@clisp.org>
17219 * modules/frexp-tests: New file.
17220 * tests/test-frexp.c: New file.
17222 * modules/frexp: New file.
17223 * lib/frexp.c: New file.
17224 * m4/frexp.m4: New file.
17225 * lib/math_.h (frexp): New declaration.
17226 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
17228 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
17230 2007-03-21 Bruno Haible <bruno@clisp.org>
17232 * modules/isnanl-tests: New file.
17233 * tests/test-isnanl.c: New file.
17235 * modules/isnanl: New file.
17236 * lib/isnanl.h: New file.
17237 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
17238 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
17239 gl_FUNC_ISNANL_WORKS.
17240 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
17243 2007-03-21 Bruno Haible <bruno@clisp.org>
17245 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
17248 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
17249 * lib/vasnprintf.c: Update.
17250 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
17251 tests/test-isnanl.h, remove tests/test-isnanl.c.
17252 (Makefile.am): Update.
17253 * tests/test-isnanl-nolibm.c: New file.
17254 * tests/test-isnanl.h: New file.
17255 * tests/test-isnanl.c: Remove file.
17257 2007-03-21 Jim Meyering <jim@meyering.net>
17259 When trying to open ".", treat ESTALE like EACCES.
17260 * lib/savewd.c (savewd_save): Resort to forking not just upon
17261 failure with EACCES, but also when errno is ESTALE.
17263 2007-03-20 Bruno Haible <bruno@clisp.org>
17265 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
17266 Needed on AIX 5.1. Reported by Matthew Woehlke.
17268 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
17270 Suggestions by Bruno Haible:
17271 * lib/acl-internal.h: Include "gettext.h" rather than rolling
17273 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
17274 * modules/acl (Depends-on): Add gettext.
17276 2007-03-19 Bruno Haible <bruno@clisp.org>
17278 * modules/iconvme: Remove file.
17279 * lib/iconvme.h: Remove file.
17280 * lib/iconvme.c: Remove file.
17281 * m4/iconvme.m4: Remove file.
17283 2007-03-19 Bruno Haible <bruno@clisp.org>
17285 * doc/relocatable-maint.texi: Break long shell script line.
17286 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
17288 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
17290 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
17291 handle file_has_acl.
17292 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
17293 * lib/acl.c: Move header inclusions and related macro defns into
17294 lib/acl-internal.h.
17295 (S_ISLNK): Remove defn, since that's now done for us.
17296 (file_has_acl): Move to lib/file-has-acl.c.
17297 Call acl_trivial if available. This is the crucial part of the fix.
17298 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
17299 shared within the library. Rewrite a bit, partly to make it compatible
17300 with the GNU coding style.
17301 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
17302 Remove unnecessary double-quotes.
17303 Don't test for acl_to_text; the build will catch that.
17304 Replace acl_entries if it doesn't exist and it is needed.
17305 Check for -lsec and acl_trivial (as used on Solaris 10).
17306 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
17307 lib/file-has-acl.c.
17308 (Depends-on): Add sys_stat, for S_ISLNK.
17310 2007-03-19 Ben Pfaff <blp@gnu.org>
17312 * doc/gnulib.texi: Fix typos.
17313 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
17315 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
17317 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
17318 If size is zero here, buf must be zero.
17320 2007-03-19 Simon Josefsson <simon@josefsson.org>
17322 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
17325 2007-03-18 Bruno Haible <bruno@clisp.org>
17327 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
17328 Suggested by Eric Blake.
17330 2007-03-18 Ben Pfaff <blp@gnu.org>
17332 * doc/relocatable.texi: Recommend using as prefix a directory
17333 that does not exist and will never be created. Based on
17334 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
17337 2007-03-17 Bruno Haible <bruno@clisp.org>
17339 * lib/fchownat.c: Include lchown.h.
17341 2007-03-17 Bruno Haible <bruno@clisp.org>
17343 Fix endless loop when the given allocated size was > INT_MAX.
17344 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
17345 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
17346 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
17347 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
17348 * lib/sprintf.c (sprintf): Likewise.
17350 2007-03-17 Bruno Haible <bruno@clisp.org>
17352 * tests/test-argp-2.sh (func_compare): Output a context diff.
17354 2007-03-17 Bruno Haible <bruno@clisp.org>
17356 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
17357 locale's decimal-point character.
17359 2007-03-17 Bruno Haible <bruno@clisp.org>
17361 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
17362 before comparing it. Needed because on some platforms (e.g. x86) a
17363 'long double' occupies less bytes than sizeof (long double).
17365 2007-03-17 Bruno Haible <bruno@clisp.org>
17367 * tests/test-crc.c (main): Make printf statements 64-bit clean.
17368 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
17369 * tests/test-getaddrinfo.c (simple): Likewise.
17370 * tests/test-read-file.c (main): Likewise.
17372 2007-03-17 Bruno Haible <bruno@clisp.org>
17374 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
17376 2007-03-17 Bruno Haible <bruno@clisp.org>
17378 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
17381 2007-03-17 Bruno Haible <bruno@clisp.org>
17383 * tests/test-c-strcasecmp.c: Include c-strcase.h.
17384 * tests/test-c-strncasecmp.c: Likewise.
17386 2007-03-17 Bruno Haible <bruno@clisp.org>
17388 * modules/stdlib (Depends-on): Add unistd.
17389 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
17390 Needed for MacOS X 10.3.
17392 2007-03-17 Bruno Haible <bruno@clisp.org>
17394 * lib/unistr/u-strdup.h: Include <stdlib.h>.
17396 2007-03-17 Bruno Haible <bruno@clisp.org>
17398 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
17400 2007-03-17 Bruno Haible <bruno@clisp.org>
17402 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
17403 to reflect files copied from gnulib (with or without modifications).
17404 Suggested by Jim Meyering.
17406 2007-03-17 Eric Blake <ebb9@byu.net>
17408 * NEWS: Document stdlib change from 2007-02-18.
17410 2007-03-17 Jim Meyering <jim@meyering.net>
17412 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
17413 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
17414 someone uses a name containing shell meta-characters.
17415 Reported by Alfred M. Szmidt.
17417 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
17419 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
17421 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
17422 and copy gettext configuration files only if configure.ac contains
17423 a use of AM_GNU_GETTEXT_VERSION.
17425 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
17427 * build-aux/bootstrap (gnulib_name): New variable.
17428 (gnulib_tool_options): Use it.
17430 2007-03-13 Simon Josefsson <simon@josefsson.org>
17432 * tests/test-des.c: Use new namespace.
17434 2007-03-15 Bruno Haible <bruno@clisp.org>
17436 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
17437 Reported by James Youngman <jay@gnu.org>.
17439 2007-03-15 Bruno Haible <bruno@clisp.org>
17441 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
17442 declared prototype. Needed with cc on OSF/1 5.1.
17444 2007-03-15 Bruno Haible <bruno@clisp.org>
17446 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
17447 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
17448 (struct gl_list_implementation): Add dispose_fn argument to the
17449 'create_empty', 'create' methods.
17450 (struct gl_list_impl_base): Add field 'dispose_fn'.
17451 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
17453 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
17454 dispose_fn argument.
17455 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
17456 dispose_fn on the dropped values.
17457 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
17458 dispose_fn argument.
17459 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
17461 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
17462 (gl_tree_remove_node): Call dispose_fn on the dropped value.
17463 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
17464 (gl_tree_remove_node): Call dispose_fn on the dropped value.
17465 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
17467 (gl_tree_list_free): Call dispose_fn on the dropped values.
17468 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
17469 the dropped values.
17470 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17471 Add dispose_fn argument.
17472 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
17473 Call dispose_fn on the dropped values.
17474 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
17475 Add dispose_fn argument.
17476 (gl_sublist_create): Initialize the 'dispose_fn' field.
17477 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
17478 * tests/test-array_list.c (main): Update.
17479 * tests/test-carray_list.c (main): Update.
17480 * tests/test-avltree_list.c (main): Update.
17481 * tests/test-rbtree_list.c (main): Update.
17482 * tests/test-avltreehash_list.c (main): Update.
17483 * tests/test-rbtreehash_list.c (main): Update.
17484 * tests/test-linked_list.c (main): Update.
17485 * tests/test-linkedhash_list.c (main): Update.
17486 * tests/test-array_oset.c (main): Update.
17488 2007-03-15 Bruno Haible <bruno@clisp.org>
17490 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
17491 (gl_oset_create_empty): Add dispose_fn argument.
17492 (struct gl_oset_implementation): Add dispose_fn argument to
17493 'create_empty' method.
17494 (struct gl_oset_impl_base): Add dispose_fn field.
17495 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
17496 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
17497 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
17499 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
17500 (gl_tree_oset_free): Call dispose_fn on the dropped values.
17501 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17503 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17505 * tests/test-array_oset.c (main): Update.
17506 * tests/test-avltree_oset.c (main): Update.
17507 * tests/test-rbtree_oset.c (main): Update.
17508 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
17510 2007-03-13 Bruno Haible <bruno@clisp.org>
17512 * tests/test-stdbool.c (i): Update after last patch.
17514 2007-03-12 Bruno Haible <bruno@clisp.org>
17516 * lib/quotearg.c: Include <wctype.h> early, before the definition of
17517 the iswprint macro. Needed on Solaris 2.5.1.
17519 2007-03-12 Bruno Haible <bruno@clisp.org>
17521 * tests/test-printf-frexp.c (main): Declare x as volatile.
17523 2007-03-12 Simon Josefsson <simon@josefsson.org>
17525 * doc/gnulib.texi (Build robot for gnulib): New section.
17527 2007-03-12 Jim Meyering <jim@meyering.net>
17529 * build-aux/bootstrap: New file.
17530 * build-aux/bootstrap.conf: New file, from coreutils.
17532 2007-03-11 Bruno Haible <bruno@clisp.org>
17534 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
17536 2007-03-12 Simon Josefsson <simon@josefsson.org>
17538 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
17539 avoid collisions with 'des_setkey'. Reported by Bruno Haible
17540 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
17542 2007-03-11 Bruno Haible <bruno@clisp.org>
17544 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
17545 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
17547 2007-03-11 Bruno Haible <bruno@clisp.org>
17549 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
17550 formula. Needed for SunPRO C 5.0.
17552 2007-03-11 Bruno Haible <bruno@clisp.org>
17554 * modules/long-options (Depends-on): Add getopt.
17556 2007-03-11 Bruno Haible <bruno@clisp.org>
17558 * modules/modechange (Depends-on): Add stdbool.
17560 2007-03-11 Bruno Haible <bruno@clisp.org>
17562 * modules/i-ring (Depends-on): Add stdbool.
17564 2007-03-11 Bruno Haible <bruno@clisp.org>
17566 * modules/gc-des (Depends-on): Add stdbool.
17568 2007-03-11 Bruno Haible <bruno@clisp.org>
17570 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
17572 2007-03-11 Bruno Haible <bruno@clisp.org>
17574 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
17576 2007-03-11 Bruno Haible <bruno@clisp.org>
17578 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
17580 2007-03-11 Bruno Haible <bruno@clisp.org>
17582 * lib/vasnprintf.c (sprintf): Undefine.
17584 2007-03-11 Bruno Haible <bruno@clisp.org>
17586 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
17587 initializers in SunPRO C and Compaq C compilers.
17589 2007-03-11 Bruno Haible <bruno@clisp.org>
17591 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
17592 decrementing code ANSI C compliant.
17594 2007-03-11 Bruno Haible <bruno@clisp.org>
17596 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
17597 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
17599 2007-03-11 Bruno Haible <bruno@clisp.org>
17601 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
17602 <stdbool.h> substitute doesn't pass.
17604 2007-03-11 Bruno Haible <bruno@clisp.org>
17606 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
17608 2007-03-11 Bruno Haible <bruno@clisp.org>
17610 * gnulib-tool (func_create_megatestdir): Create also an autobuild
17611 script, for submission to autobuild.josefsson.org.
17613 2007-03-10 Bruno Haible <bruno@clisp.org>
17615 * modules/canonicalize-lgpl-tests: New file.
17616 * tests/test-canonicalize-lgpl.sh: New file.
17617 * tests/test-canonicalize-lgpl.c: New file.
17619 * modules/c-strcase-tests: New file.
17620 * tests/test-c-strcase.sh: New file.
17621 * tests/test-c-strcasecmp.c: New file.
17622 * tests/test-c-strncasecmp.c: New file.
17624 * modules/atexit-tests: New file.
17625 * tests/test-atexit.sh: New file.
17626 * tests/test-atexit.c: New file.
17628 2007-03-10 Bruno Haible <bruno@clisp.org>
17630 * tests/test-binary-io.sh: Use temporary filenames that are not so
17631 likely to clash with those of other tests (in a parallel make).
17632 * tests/test-binary-io.c: Likewise.
17634 2007-03-10 Bruno Haible <bruno@clisp.org>
17636 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
17637 fallback; use #error instead.
17638 Suggested by Simon Josefsson.
17640 2007-03-10 Bruno Haible <bruno@clisp.org>
17642 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
17643 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
17644 first and the last.
17646 2007-03-10 Bruno Haible <bruno@clisp.org>
17648 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
17650 2007-03-10 Bruno Haible <bruno@clisp.org>
17652 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
17654 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
17655 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
17656 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
17658 2007-03-10 Bruno Haible <bruno@clisp.org>
17660 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
17662 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
17665 2007-03-09 Eric Blake <ebb9@byu.net>
17666 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
17668 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
17669 types are not being provided by gnulib.
17670 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
17671 types are supported.
17673 2007-03-10 Bruno Haible <bruno@clisp.org>
17675 * lib/stdio_.h (__attribute__): New macro.
17676 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
17677 vsprintf): Specify __attribute__ __format__ for GCC.
17678 Suggested by Eric Blake.
17680 2007-03-09 Bruno Haible <bruno@clisp.org>
17682 * modules/printf-posix-tests: New file.
17683 * tests/test-printf-posix.sh: New file.
17684 * tests/test-printf-posix.c: New file.
17686 * modules/printf-posix: New file.
17687 * lib/printf.c: New file.
17688 * m4/printf-posix-rpl.m4: New file.
17689 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
17691 * lib/stdio_.h (printf): New declaration.
17692 (format, __format__, ____printf____, ____scanf____, ____strftime____,
17693 ____strfmon____): New macros.
17694 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
17697 2007-03-09 Bruno Haible <bruno@clisp.org>
17699 * tests/test-vasnprintf-posix2.sh: New file.
17700 * tests/test-vasnprintf-posix2.c: New file.
17701 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
17702 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17703 (Makefile.am): Activate test-vasnprintf-posix2.sh.
17705 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
17706 a locale dependent decimal point, rather than always '.'.
17708 2007-03-09 Eric Blake <ebb9@byu.net>
17710 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
17711 spite of platforms like Tandem/NSK that define it to -1.
17713 2007-03-08 Bruno Haible <bruno@clisp.org>
17715 * modules/vprintf-posix-tests: New file.
17716 * tests/test-vprintf-posix.sh: New file.
17717 * tests/test-vprintf-posix.c: New file.
17718 * tests/test-printf-posix.h: New file.
17720 * modules/vprintf-posix: New file.
17721 * lib/vprintf.c: New file.
17722 * m4/vprintf-posix.m4: New file.
17723 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
17725 * lib/stdio_.h (vprintf): New declaration.
17726 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
17729 2007-03-08 Bruno Haible <bruno@clisp.org>
17731 * modules/fprintf-posix-tests: New file.
17732 * tests/test-fprintf-posix.sh: New file.
17733 * tests/test-fprintf-posix.c: New file.
17735 * modules/fprintf-posix: New file.
17736 * lib/fprintf.c: New file.
17737 * m4/fprintf-posix.m4: New file.
17738 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
17740 * lib/stdio_.h (fprintf): New declaration.
17741 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
17744 2007-03-08 Bruno Haible <bruno@clisp.org>
17746 * modules/vfprintf-posix-tests: New file.
17747 * tests/test-vfprintf-posix.sh: New file.
17748 * tests/test-vfprintf-posix.c: New file.
17749 * tests/test-fprintf-posix.h: New file.
17750 * tests/test-fprintf-posix.out: New file.
17752 * modules/vfprintf-posix: New file.
17753 * lib/vfprintf.c: New file.
17754 * m4/vfprintf-posix.m4: New file.
17755 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
17757 * lib/stdio_.h (vfprintf): New declaration.
17758 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
17761 2007-03-08 Bruno Haible <bruno@clisp.org>
17763 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
17765 2007-03-08 Bruno Haible <bruno@clisp.org>
17767 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
17768 instead of 'expr' invocations.
17769 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17770 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17771 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17772 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17773 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17774 Suggested by Paul Eggert.
17776 2007-03-08 Bruno Haible <bruno@clisp.org>
17778 * modules/fseterr-tests: New file.
17779 * tests/test-fseterr.c: New file.
17781 * modules/fseterr: New file.
17782 * lib/fseterr.h: New file.
17783 * lib/fseterr.c: New file.
17785 2007-03-08 Bruno Haible <bruno@clisp.org>
17787 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
17788 * lib/getopt_.h: Likewise.
17789 * lib/mbswidth.h: Likewise.
17790 * lib/setenv.h: Likewise.
17791 * lib/vasnprintf.h: Likewise.
17792 * lib/vasprintf.h: Likewise.
17793 * lib/verror.h: Likewise.
17794 * lib/xsetenv.h: Likewise.
17795 * lib/xvasprintf.h: Likewise.
17797 2007-03-08 Jim Meyering <jim@meyering.net>
17799 * users.txt: Add parted.
17801 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
17803 2007-03-07 Bruno Haible <bruno@clisp.org>
17805 * m4/printf.m4: Make the shell script snippets copy&pastable.
17807 2007-03-02 Bruno Haible <bruno@clisp.org>
17809 * lib/netinet_in_.h: New file.
17810 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
17811 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
17812 * modules/netinet_in (Files): Add lib/netinet_in_.h.
17813 (Depends-on): Add absolute-header.
17814 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
17817 2007-03-03 Bruno Haible <bruno@clisp.org>
17819 * lib/sys_select_.h: New file.
17820 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
17821 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
17822 * modules/sys_select (Files): Add lib/sys_select_.h.
17823 (Depends-on): Add absolute-header.
17824 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
17827 2007-03-02 Bruno Haible <bruno@clisp.org>
17829 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
17830 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
17832 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
17833 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
17834 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
17835 * modules/sys_socket (Depends-on): Add absolute-header.
17836 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
17837 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
17838 (Include): Remove requirement of inclusion of <sys/types.h>.
17840 2007-03-02 Bruno Haible <bruno@clisp.org>
17842 * lib/byteswap_.h (bswap_32): Fix formula.
17844 2007-03-06 Bruno Haible <bruno@clisp.org>
17846 * modules/sprintf-posix-tests: New file.
17847 * tests/test-sprintf-posix.c: New file.
17849 * modules/sprintf-posix: New file.
17850 * lib/sprintf.c: New file.
17851 * m4/sprintf-posix.m4: New file.
17852 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
17854 * lib/stdio_.h (sprintf): New declaration.
17855 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
17858 2007-03-06 Bruno Haible <bruno@clisp.org>
17860 * modules/vsprintf-posix-tests: New file.
17861 * tests/test-vsprintf-posix.c: New file.
17862 * tests/test-sprintf-posix.h: New file.
17864 * modules/vsprintf-posix: New file.
17865 * lib/vsprintf.c: New file.
17866 * m4/vsprintf-posix.m4: New file.
17867 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
17869 * lib/stdio_.h (vsprintf): New declaration.
17870 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
17873 2007-03-06 Bruno Haible <bruno@clisp.org>
17875 * modules/vsnprintf (Depend-on): Remove minmax.
17877 2007-03-06 Bruno Haible <bruno@clisp.org>
17879 * modules/snprintf-posix-tests: New file.
17880 * tests/test-snprintf-posix.c: New file.
17882 * modules/snprintf-posix: New file.
17883 * m4/snprintf-posix.m4: New file.
17884 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
17886 (gl_FUNC_SNPRINTF): Invoke it.
17887 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
17888 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
17890 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
17892 2007-03-06 Bruno Haible <bruno@clisp.org>
17894 * modules/vsnprintf-posix-tests: New file.
17895 * tests/test-vsnprintf-posix.c: New file.
17896 * tests/test-snprintf-posix.h: New file.
17898 * modules/vsnprintf-posix: New file.
17899 * m4/vsnprintf-posix.m4: New file.
17900 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
17902 (gl_FUNC_VSNPRINTF): Invoke it.
17903 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
17904 * lib/stdio_.h (vsnprintf): Define as a replacement if
17905 REPLACE_VSNPRINTF is set.
17906 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
17908 2007-03-06 Bruno Haible <bruno@clisp.org>
17910 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
17911 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
17913 2007-03-06 Bruno Haible <bruno@clisp.org>
17915 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
17916 (asinl): Declare also if HAVE_DECL_ASINL is set.
17917 (atanl): Declare also if HAVE_DECL_ATANL is set.
17918 (ceill): Declare also if HAVE_DECL_CEILL is set.
17919 (cosl): Declare also if HAVE_DECL_COSL is set.
17920 (expl): Declare also if HAVE_DECL_EXPL is set.
17921 (floorl): Declare also if HAVE_DECL_FLOORL is set.
17922 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
17923 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
17924 (logl): Declare also if HAVE_DECL_LOGL is set.
17925 (sinl): Declare also if HAVE_DECL_SINL is set.
17926 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
17927 (tanl): Declare also if HAVE_DECL_TANL is set.
17928 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
17929 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
17930 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
17931 declaration of frexpl, ldexpl.
17932 * modules/printf-frexpl (Depends-on): Add math.
17933 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
17935 2007-03-05 Bruno Haible <bruno@clisp.org>
17937 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
17938 frexpl and ldexpl are declared.
17939 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
17941 2007-03-05 Bruno Haible <bruno@clisp.org>
17943 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
17944 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
17946 2007-03-05 Bruno Haible <bruno@clisp.org>
17948 * lib/stdio_.h: Include <stddef.h>.
17950 2007-03-05 Bruno Haible <bruno@clisp.org>
17952 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
17954 2007-03-05 Bruno Haible <bruno@clisp.org>
17956 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
17957 NetBSD 4, from Ralf Wildenhues.
17959 2007-03-04 Bruno Haible <bruno@clisp.org>
17961 * lib/vasprintf.h: Update #if logic for the case when the functions
17962 exist but are overridden.
17964 2007-03-04 Bruno Haible <bruno@clisp.org>
17966 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
17967 implementations: glibc-2.4 and MacOS X 10.3.
17968 * tests/test-vasnprintf-posix.c (test_function): Test also the case
17969 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
17970 * tests/test-vasprintf-posix.c (test_function): Likewise.
17972 2007-03-04 Bruno Haible <bruno@clisp.org>
17974 * modules/vasprintf-posix-tests: New file.
17975 * tests/test-vasprintf-posix.c: New file.
17977 * modules/vasprintf-posix: New file.
17978 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
17980 * m4/vasprintf-posix.m4: New file.
17981 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
17983 (gl_FUNC_VASPRINTF): Invoke it.
17984 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
17986 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
17988 2007-03-04 Bruno Haible <bruno@clisp.org>
17990 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
17991 REPLACE_GETTIMEOFDAY.
17992 * modules/sys_time (Makefile.am): Likewise.
17993 * m4/sys_time_h.m4: Likewise.
17994 * m4/gettimeofday.m4: Likewise.
17996 2007-03-04 Bruno Haible <bruno@clisp.org>
17998 * modules/vasnprintf-posix-tests: New file.
17999 * tests/test-vasnprintf-posix.c: New file.
18001 * modules/vasnprintf-posix: New file.
18002 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
18004 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
18005 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
18006 REPLACE_VASNPRINTF is defined.
18007 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
18008 gl_FUNC_VASNPRINTF.
18009 (gl_FUNC_VASNPRINTF): Invoke it.
18010 * m4/vasnprintf-posix.m4: New file.
18011 * m4/printf.m4: New file.
18013 2007-03-04 Bruno Haible <bruno@clisp.org>
18015 Compile progreloc.c only if --enable-relocatable is specified.
18016 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
18017 if --enable-relocatable was specified.
18018 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
18021 2007-03-04 Jim Meyering <jim@meyering.net>
18023 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
18024 Use it consistently, rather than enumerating errno constants.
18026 2007-03-04 Bruno Haible <bruno@clisp.org>
18028 * modules/xvasprintf-tests: New file.
18029 * tests/test-xvasprintf.c: New file.
18031 * modules/vasprintf-tests: New file.
18032 * tests/test-vasprintf.c: New file.
18034 * modules/vasnprintf-tests: New file.
18035 * tests/test-vasnprintf.c: New file.
18037 * modules/vsnprintf-tests: New file.
18038 * tests/test-vsnprintf.c: New file.
18040 * modules/snprintf-tests: New file.
18041 * tests/test-snprintf.c: New file.
18043 2007-03-04 Bruno Haible <bruno@clisp.org>
18045 Compile relocatable.c only if --enable-relocatable is specified.
18046 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
18047 gl_RELOCATABLE_LIBRARY.
18048 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
18049 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
18050 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
18051 gl_RELOCATABLE_LIBRARY.
18052 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
18053 (Makefile.am): Remove lib_SOURCES.
18054 * modules/relocatable-lib-lgpl (configure.ac): Invoke
18055 gl_RELOCATABLE_LIBRARY.
18056 (Makefile.am): Remove lib_SOURCES.
18057 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
18059 * modules/relocatable-prog-wrapper (configure.ac): Invoke
18060 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
18062 2007-03-04 Bruno Haible <bruno@clisp.org>
18064 * modules/argmatch-tests: New file.
18065 * tests/test-argmatch.c: New file.
18067 * tests/test-allocsa.c (main): Halve the number of loop runs.
18069 * modules/alloca-opt-tests: New file.
18070 * tests/test-alloca-opt.c: New file.
18072 2007-03-04 Jim Meyering <jim@meyering.net>
18074 Work around difference between Linux ACLs and Solaris 10 ZFS.
18075 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
18078 2007-03-03 Bruno Haible <bruno@clisp.org>
18080 * modules/relocatable-prog (Depends-on): Add back progreloc's
18081 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
18083 2007-03-03 Bruno Haible <bruno@clisp.org>
18085 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
18086 * modules/relocatable-lib: New file.
18088 2007-03-03 Bruno Haible <bruno@clisp.org>
18090 * modules/relocatable-prog: Renamed from modules/relocatable.
18091 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
18093 2007-03-03 Bruno Haible <bruno@clisp.org>
18095 * modules/relocatable-script (Files): Add doc/relocatable.texi,
18096 m4/relocatable-lib.m4.
18097 (Depends-on): Remove 'relocatable'.
18098 (configure.ac): Add gl_RELOCATABLE_NOP.
18100 2007-03-03 Bruno Haible <bruno@clisp.org>
18102 * modules/relocatable-prog-wrapper: New file.
18103 * modules/relocatable (Depends-on): Add it. Remove all other
18104 dependencies except progname.
18105 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
18107 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
18108 (gl_FUNC_STRERROR): Nop.
18109 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
18111 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
18112 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
18114 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
18115 (gl_FUNC_READLINK): Update.
18117 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
18119 2007-03-03 Bruno Haible <bruno@clisp.org>
18121 * lib/xreadlink.c: Include <unistd.h> unconditionally.
18122 * modules/xreadlink (Depends-on): Add unistd.
18123 * modules/xreadlink-with-size (Depends-on): Likewise.
18125 2007-03-03 Bruno Haible <bruno@clisp.org>
18127 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
18128 extracted from gt_FUNC_SETENV.
18129 (gt_FUNC_SETENV): Remove macro.
18130 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
18131 remove gt_FUNC_SETENV.
18133 2007-03-03 Bruno Haible <bruno@clisp.org>
18135 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
18136 ENABLE_RELOCATABLE here.
18137 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
18139 2007-03-03 Bruno Haible <bruno@clisp.org>
18141 * modules/rbtreehash-list-tests (Depends-on): Add progname.
18142 * tests/test-rbtreehash_list.c: Include progname.h.
18143 (main): Call set_program_name.
18145 * modules/rbtree-oset-tests (Depends-on): Add progname.
18146 * tests/test-rbtree_oset.c: Include progname.h.
18147 (main): Call set_program_name.
18149 * modules/rbtree-list-tests (Depends-on): Add progname.
18150 * tests/test-rbtree_list.c: Include progname.h.
18151 (main): Call set_program_name.
18153 * modules/linked-list-tests (Depends-on): Add progname.
18154 * tests/test-linked_list.c: Include progname.h.
18155 (main): Call set_program_name.
18157 2007-03-03 Bruno Haible <bruno@clisp.org>
18159 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
18160 All uses of __restrict changed to _Restrict_.
18161 * lib/glob_.h (__restrict): Remove macro.
18163 2007-03-02 Bruno Haible <bruno@clisp.org>
18165 * modules/gettext (configure.ac): Require gettext infrastructure
18166 from version 0.16.1.
18168 2007-03-02 Bruno Haible <bruno@clisp.org>
18170 * modules/linkedhash-list-tests (Depends-on): Add progname.
18171 * tests/test-linkedhash_list.c: Include progname.h.
18172 (main): Call set_program_name.
18174 * modules/carray-list-tests (Depends-on): Add progname.
18175 * tests/test-carray_list.c: Include progname.h.
18176 (main): Call set_program_name.
18178 * modules/avltreehash-list-tests (Depends-on): Add progname.
18179 * tests/test-avltreehash_list.c: Include progname.h.
18180 (main): Call set_program_name.
18182 * modules/avltree-oset-tests (Depends-on): Add progname.
18183 * tests/test-avltree_oset.c: Include progname.h.
18184 (main): Call set_program_name.
18186 * modules/avltree-list-tests (Depends-on): Add progname.
18187 * tests/test-avltree_list.c: Include progname.h.
18188 (main): Call set_program_name.
18190 * modules/array-oset-tests (Depends-on): Add progname.
18191 * tests/test-array_oset.c: Include progname.h.
18192 (main): Call set_program_name.
18194 * modules/array-list-tests (Depends-on): Add progname.
18195 * tests/test-array_list.c: Include progname.h.
18196 (main): Call set_program_name.
18198 * modules/argp-tests (Depends-on): Add progname.
18199 * tests/test-argp.c: Include argp.h first. Include progname.h.
18200 (main): Call set_program_name.
18202 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
18204 * doc/gnulib-tool.texi (Initial import): Reword description of
18205 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
18206 limited effect even if defined after the first system include.
18208 2007-03-01 Bruno Haible <bruno@clisp.org>
18210 * build-aux/config.libpath: Update to libtool-1.5.22.
18211 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18213 2007-03-01 Bruno Haible <bruno@clisp.org>
18215 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
18217 Reported by Ralf Wildenhues.
18219 2007-03-01 Bruno Haible <bruno@clisp.org>
18221 * build-aux/install-reloc: Remove object files left over by some
18223 Reported by Ralf Wildenhues.
18225 2007-03-01 Bruno Haible <bruno@clisp.org>
18227 * build-aux/install-reloc: Break long lines.
18229 2007-03-01 Bruno Haible <bruno@clisp.org>
18231 * doc/relocatable.texi: Document that it may not work on OpenBSD.
18232 Reported by Ralf Wildenhues.
18234 2007-03-01 Bruno Haible <bruno@clisp.org>
18236 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
18237 include ordering constraints.
18239 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
18241 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
18242 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
18243 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
18244 as another example.
18245 * lib/time_.h: Fix misspelling.
18246 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18247 Require gl_HEADER_TIME_H_DEFAULTS.
18248 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
18249 * m4/time_r.m4 (gl_TIME_R): Likewise.
18250 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
18252 2007-03-01 Bruno Haible <bruno@clisp.org>
18254 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
18255 * m4/utimens.m4 (gl_UTIMENS): Likewise.
18257 2007-03-01 Jim Meyering <jim@meyering.net>
18259 * modules/xreadlink (Maintainer): Add my name.
18260 * modules/xreadlink-with-size (Depends-on): Alphabetize.
18262 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
18263 Bruno Haible <bruno@clisp.org>
18265 * build-aux/install-reloc: Compile also c-ctype.c.
18266 * build-aux/relocatable.sh.in: New file.
18267 * doc/relocatable.texi: New file.
18268 * doc/relocatable-maint.texi: New file.
18269 * doc/gnulib.texi: Include relocatable-maint.texi.
18270 * lib/progreloc.c: Include unistd.h unconditionally.
18271 * lib/relocwrapper.c: Include unistd.h unconditionally.
18273 (add_dotbin): Use c_tolower.
18274 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
18275 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
18276 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
18277 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
18278 to m4/relocatable-lib.m4.
18279 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
18280 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
18281 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
18282 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
18283 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
18284 * modules/relocatable: New file.
18285 * modules/relocatable-lib: New file.
18286 * modules/relocatable-script: New file.
18288 2007-02-28 Bruno Haible <bruno@clisp.org>
18290 Import --enable-relocatable infrastructure.
18291 * build-aux/config.libpath: New file, from GNU gettext.
18292 * build-aux/install-reloc: New file, from GNU gettext.
18293 * build-aux/reloc-ldflags: New file, from GNU gettext.
18294 * lib/relocatable.h: New file, from GNU gettext.
18295 * lib/relocatable.c: New file, from GNU gettext.
18296 * lib/relocwrapper.c: New file, from GNU gettext.
18297 * m4/relocatable.m4: New file, from GNU gettext.
18299 2007-02-28 Bruno Haible <bruno@clisp.org>
18301 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
18303 * modules/xreadlink: New file, from GNU gettext with modifications.
18304 * lib/xreadlink.c: New file, from GNU gettext.
18305 * lib/xreadlink.h: Add comments.
18306 (xreadlink): New declaration.
18308 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
18309 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
18310 lib/xreadlink-with-size.c.
18311 (configure.ac): Remove gl_XREADLINK invocation.
18312 (Makefile.am): Augment lib_SOURCES.
18313 * m4/xreadlink.m4: Remove file.
18314 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
18315 (xreadlink_with_size): Renamed from xreadink.
18316 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
18317 * modules/canonicalize (Depends-on): Replace xreadlink with
18318 xreadlink-with-size.
18319 * lib/canonicalize.c (canonicalize_filename_mode): Update.
18321 2007-02-25 Jim Meyering <jim@meyering.net>
18323 * build-aux/announce-gen: When complaining about excess arguments,
18326 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
18328 * README: Document signed integer overflow situation more
18331 2007-02-25 Bruno Haible <bruno@clisp.org>
18333 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
18334 'a' or 'A' conversion.
18336 2007-02-25 Bruno Haible <bruno@clisp.org>
18338 * modules/filename: Renamed from modules/pathname.
18339 (Files): Replace lib/pathname.h with lib/filename.h. Replace
18340 lib/concatpath.c with lib/concat-filename.c.
18341 (Makefile.am): Update.
18342 (Include): Replace pathname.h with filename.h.
18343 * lib/filename.h: Renamed from lib/pathname.h.
18344 (concatenated_filename): Renamed from concatenated_pathname.
18345 * lib/concat-filename.c: Renamed from lib/concatpath.c.
18346 (concatenated_filename): Renamed from concatenated_pathname.
18347 * lib/findprog.c: Include filename.h instead of pathname.h.
18348 (find_in_path): Update.
18349 * lib/javacomp.c: Include filename.h instead of pathname.h.
18350 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
18351 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
18352 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
18353 is_oldgcj_14_13_usable, is_javac_usable): Update.
18354 * lib/javaexec.c: Include filename.h instead of pathname.h.
18355 (execute_java_class): Update.
18356 * modules/findprog: Update.
18357 * modules/javacomp: Update.
18358 * modules/javaexec: Update.
18359 * MODULES.html.sh (File system functions): Add 'filename', remove
18362 2007-02-25 Bruno Haible <bruno@clisp.org>
18364 * modules/printf-frexpl-tests: New file.
18365 * tests/test-printf-frexpl.c: New file.
18367 * modules/printf-frexpl: New file.
18368 * lib/printf-frexpl.h: New file.
18369 * lib/printf-frexpl.c: New file.
18370 * m4/printf-frexpl.m4: New file.
18372 2007-02-25 Bruno Haible <bruno@clisp.org>
18374 * modules/printf-frexp-tests: New file.
18375 * tests/test-printf-frexp.c: New file.
18377 * modules/printf-frexp: New file.
18378 * lib/printf-frexp.h: New file.
18379 * lib/printf-frexp.c: New file.
18380 * m4/printf-frexp.m4: New file.
18382 2007-02-25 Bruno Haible <bruno@clisp.org>
18384 Assume automake >= 1.10 for the tests.
18385 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
18386 * modules/arctwo-tests: Likewise.
18387 * modules/argp-tests: Likewise.
18388 * modules/avltree-list-tests: Likewise.
18389 * modules/avltree-oset-tests: Likewise.
18390 * modules/avltreehash-list-tests: Likewise.
18391 * modules/carray-list-tests: Likewise.
18392 * modules/crc-tests: Likewise.
18393 * modules/des-tests: Likewise.
18394 * modules/gc-arcfour-tests: Likewise.
18395 * modules/gc-arctwo-tests: Likewise.
18396 * modules/gc-des-tests: Likewise.
18397 * modules/gc-hmac-md5-tests: Likewise.
18398 * modules/gc-hmac-sha1-tests: Likewise.
18399 * modules/gc-md2-tests: Likewise.
18400 * modules/gc-md4-tests: Likewise.
18401 * modules/gc-md5-tests: Likewise.
18402 * modules/gc-pbkdf2-sha1-tests: Likewise.
18403 * modules/gc-rijndael-tests: Likewise.
18404 * modules/gc-sha1-tests: Likewise.
18405 * modules/gc-tests: Likewise.
18406 * modules/getaddrinfo-tests: Likewise.
18407 * modules/hmac-md5-tests: Likewise.
18408 * modules/hmac-sha1-tests: Likewise.
18409 * modules/linked-list-tests: Likewise.
18410 * modules/linkedhash-list-tests: Likewise.
18411 * modules/lock-tests: Likewise.
18412 * modules/md2-tests: Likewise.
18413 * modules/md4-tests: Likewise.
18414 * modules/md5-tests: Likewise.
18415 * modules/rbtree-list-tests: Likewise.
18416 * modules/rbtree-oset-tests: Likewise.
18417 * modules/rbtreehash-list-tests: Likewise.
18418 * modules/read-file-tests: Likewise.
18419 * modules/rijndael-tests: Likewise.
18420 * modules/stdint-tests: Likewise.
18421 * modules/tls-tests: Likewise.
18423 2007-02-24 Bruno Haible <bruno@clisp.org>
18425 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
18426 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
18427 function; instead check whether isnan with a double argument links.
18428 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
18429 function; instead check whether isnan with a 'long double' argument
18431 Reported by Eric Blake <ebb9@byu.net>.
18433 2007-02-24 Bruno Haible <bruno@clisp.org>
18435 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
18437 * lib/isnanl.c: Remove all code. Just include isnan.c.
18438 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
18440 2007-02-25 Jim Meyering <jim@meyering.net>
18442 Avoid conflicting types for 'unsetenv' on FreeBSD.
18443 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
18444 conflicting with FreeBSD's (5.0 and 6.1) function declaration
18447 2007-02-24 Bruno Haible <bruno@clisp.org>
18449 * modules/isnanl-nolibm-tests: New file.
18450 * tests/test-isnanl.c: New file.
18452 * modules/isnanl-nolibm: New file.
18453 * lib/isnanl.h: New file.
18454 * lib/isnanl.c: New file.
18455 * m4/isnanl.m4: New file.
18457 2007-02-24 Bruno Haible <bruno@clisp.org>
18459 * modules/isnan-nolibm-tests: New file.
18460 * tests/test-isnan.c: New file.
18462 * modules/isnan-nolibm: New file.
18463 * lib/isnan.h: New file.
18464 * lib/isnan.c: New file.
18465 * m4/isnan.m4: New file.
18467 2007-02-24 Bruno Haible <bruno@clisp.org>
18469 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
18470 assume that an exponent fits in 20 bits.
18472 2007-02-24 Jim Meyering <jim@meyering.net>
18474 * m4/regex.m4: Update the description of the configure-time option,
18475 --without-included-regex, to state accurately what the defaults are,
18476 and perhaps to give people an idea why using this option is risky.
18478 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
18480 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
18481 loops on small arguments. This attempts to avoid the problem
18482 Bruno Haible reported for AIX 4.3.2 in
18483 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
18485 2007-02-23 Bruno Haible <bruno@clisp.org>
18487 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
18488 Needed for help2man.
18490 2007-02-23 Karl Berry <karl@gnu.org>
18492 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
18493 exists, foo.h should be cvs-ignored, not committed.
18495 2007-02-23 Eric Blake <ebb9@byu.net>
18497 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
18498 * lib/stat-time.h (includes): Likewise.
18499 * lib/utimecmp.c (includes): Likewise.
18500 * lib/utimens.h (includes): Likewise.
18501 * lib/getdate.y (includes): Also include "timespec.h" for use
18502 internal to the module.
18503 * modules/utimens (Depends-on): Revert yesterday's patch.
18504 * modules/nanosleep (Depends-on): Add missing dependency.
18506 2007-02-22 Bruno Haible <bruno@clisp.org>
18508 * lib/glob.c: Don't include getlogin_r.h.
18510 2007-02-22 Jim Meyering <jim@meyering.net>
18512 * modules/utimens (Depends-on): Add timespec, required for
18513 utimens.h's inclusion of timespec.h.
18515 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
18517 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
18518 long unreadable paths in GNU/Linux. Problem reported by Andreas
18520 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
18521 I'll try to think of a better way to fix the Solaris problem.
18523 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
18524 like glibc; on Solaris 10, it fails with errno == EINVAL.
18525 POSIX says the behavior is unspecified if the first argument is NULL,
18526 so play it safe and never pass NULL to the system getcwd.
18528 2007-02-21 Jim Meyering <jim@meyering.net>
18530 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
18531 of gettimeofday. It would conflict with the one now always
18532 provided via sys_time_.h. Reported by Matthew Woehlke, as
18533 an IRIX 6.5 build failure.
18535 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
18537 Minor fixups to port to Solaris 10 with Sun C 5.8.
18538 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
18539 * modules/getcwd (Depends-on): Add dirfd.
18540 * lib/putenv.c (putenv): #undef it.
18541 (rpl_putenv): New decl.
18542 (malloc, free): Include <stdlib.h> rather than prototyping separately.
18544 2007-02-20 Bruno Haible <bruno@clisp.org>
18546 * modules/stdio-tests: New file.
18547 * tests/test-stdio.c: New file.
18549 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
18550 (Depends-on): Add stdio.
18551 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18552 (Include): Use <stdio.h> instead of vsnprintf.h.
18553 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18554 HAVE_DECL_VSNPRINTF.
18555 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
18557 * modules/snprintf (Files): Remove lib/snprintf.h.
18558 (Depends-on): Add stdio.
18559 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18560 (Include): Use <stdio.h> instead of snprintf.h.
18561 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18562 HAVE_DECL_SNPRINTF.
18563 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
18564 * lib/getaddrinfo.c: Likewise.
18566 * modules/stdio: New file.
18567 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
18568 * lib/snprintf.h: Remove file.
18569 * lib/vsnprintf.h: Remove file.
18570 * lib/.cppi-disable: Remove snprintf.h.
18571 * m4/stdio_h.m4: New file.
18572 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
18574 2007-02-20 Jim Meyering <jim@meyering.net>
18576 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
18577 used by e.g., mingw. From Bruno Haible.
18579 2007-02-19 Bruno Haible <bruno@clisp.org>
18581 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
18583 Reported by Ben Pfaff <blp@cs.stanford.edu>.
18585 2007-02-19 Bruno Haible <bruno@clisp.org>
18587 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
18590 2007-02-19 Bruno Haible <bruno@clisp.org>
18592 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
18594 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
18596 2007-02-19 Jim Meyering <jim@meyering.net>
18598 Don't use FD after a successful "fdopendir (fd)".
18599 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
18600 Reset it by calling dirfd on the just-obtained DIR*.
18602 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
18603 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
18605 2007-02-18 Bruno Haible <bruno@clisp.org>
18607 * lib/readlink.c: Include <unistd.h>.
18608 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
18610 * modules/readlink (Depends-on): Add unistd.
18611 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18612 (Include): Add <unistd.h>.
18614 * lib/getlogin_r.h: Remove file.
18615 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
18616 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
18617 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
18618 HAVE_DECL_GETLOGIN_R.
18619 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
18620 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18621 (Include): Use <unistd.h> instead of getlogin_r.h.
18623 * lib/getcwd.h: Remove file.
18624 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
18625 * lib/xgetcwd.c: Likewise.
18626 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
18627 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
18628 * modules/getcwd (Files): Remove lib/getcwd.h.
18629 (Depends-on): Add unistd.
18630 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18631 (Include): Use <unistd.h> instad of getcwd.h.
18633 * lib/ftruncate.c: Include <unistd.h> first.
18634 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
18635 Set HAVE_FTRUNCATE.
18636 * modules/ftruncate (Depends-on): Add unistd.
18637 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18639 * lib/fchdir.c: Include <unistd.h> first.
18640 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
18641 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
18642 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
18643 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18644 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
18646 * lib/dup2.c: Include <unistd.h> first.
18647 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
18649 * modules/dup2 (Depends-on): Add unistd.
18650 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18652 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
18653 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
18654 REPLACE_CHOWN. Don't define chown as a macro here.
18655 * modules/chown (Depends-on): Add unistd.
18656 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18658 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
18659 Add definition for GL_LINK_WARNING.
18660 (chown, dup2): New declarations.
18661 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
18663 (ftruncate): New declaration.
18664 (getcwd): New declaration, taken from old getcwd.h.
18665 (getlogin_r): New declaration, taken from old getlogin_r.h.
18666 (readlink): New declaration.
18667 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
18668 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
18669 (gl_PREREQ_UNISTD): Remove macro.
18670 (gl_UNISTD_MODULE_INDICATOR): New macro.
18671 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
18672 many new variables. Don't set UNISTD_H.
18673 * modules/unistd (Description): Change.
18674 (Depends-on): Add link-warning.
18675 (configure.ac): Update.
18676 (Makefile.am): Create unistd.h always. Substitute many new variables
18679 2007-02-18 Bruno Haible <bruno@clisp.org>
18681 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
18682 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
18684 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
18685 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
18686 * lib/getsubopt.h: Remove file.
18687 * modules/getsubopt (Files): Remove lib/getsubopt.h.
18688 (Depends-on): Add stdlib.
18689 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18690 (Includes): Use <stdlib.h> instead of getsubopt.h.
18691 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
18692 Set HAVE_GETSUBOPT.
18693 * lib/getsubopt.c: Don't include getsubopt.h.
18695 2007-02-18 Bruno Haible <bruno@clisp.org>
18697 * modules/fchdir (Depends-on): Add dup2.
18699 2007-02-18 Bruno Haible <bruno@clisp.org>
18701 * lib/stdlib_.h: Handle glibc's special invocation convention
18704 2007-02-18 Bruno Haible <bruno@clisp.org>
18706 * modules/stdlib-tests: New file.
18707 * tests/test-stdlib.c: New file.
18709 * modules/mkstemp (Files): Remove lib/mkstemp.h.
18710 (Depends-on): Add stdlib.
18711 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18712 (Includes): Use <stdlib.h> instead of mkstemp.h.
18713 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18714 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
18715 * lib/mkstemp.c: Don't include mkstemp.h.
18716 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
18717 * lib/stdlib--.h: Don't include mkstemp.h.
18719 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
18720 (Depends-on): Add stdlib.
18721 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18722 (Includes): Use <stdlib.h> instead of mkdtemp.h.
18723 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18725 * lib/mkdtemp.c: Don't include mkdtemp.h.
18726 * lib/clean-temp.c: Don't include mkdtemp.h.
18728 * modules/exit (Files): Remove lib/exit.h.
18729 (Depends-on): Add stdlib.
18730 (Makefile.am): Remove lib_SOURCES.
18731 (Include): Use <stdlib.h> instead of exit.h.
18732 * lib/argmatch.c: Don't include exit.h.
18733 * lib/execute.c: Likewise.
18734 * lib/pagealign_alloc.c: Likewise.
18735 * lib/pipe.c: Likewise.
18736 * lib/wait-process.c: Likewise.
18737 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
18738 * lib/exitfail.c: Likewise.
18739 * lib/savewd.c: Likewise.
18740 * lib/xsetenv.c: Likewise.
18742 * modules/stdlib: New file.
18743 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
18744 and extra comments about mkstemp().
18745 * lib/exit.h: Remove file.
18746 * lib/mkdtemp.h: Remove file.
18747 * lib/mkstemp.h: Remove file.
18748 * m4/stdlib_h.m4: New file.
18749 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
18751 2007-02-18 Bruno Haible <bruno@clisp.org>
18753 * modules/math-tests: New file.
18754 * tests/test-math.c: New file.
18756 * modules/math: New file.
18757 * modules/mathl (Files): Remove lib/mathl.h.
18758 (Depends-on): Add math.
18759 (Makefile.am): Don't mention mathl.h.
18760 (Include): Use <math.h> instead of mathl.h.
18761 * lib/math_.h: New file.
18762 * lib/mathl.h: Remove file.
18763 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
18765 * lib/asinl.c: Likewise.
18766 * lib/atanl.c: Likewise.
18767 * lib/ceill.c: Likewise.
18768 * lib/cosl.c: Likewise.
18769 * lib/expl.c: Likewise.
18770 * lib/floorl.c: Likewise.
18771 * lib/frexpl.c: Likewise.
18772 * lib/ldexpl.c: Likewise.
18773 * lib/logl.c: Likewise.
18774 * lib/sincosl.c: Likewise.
18775 * lib/sinl.c: Likewise.
18776 * lib/sqrtl.c: Likewise.
18777 * lib/tanl.c: Likewise.
18778 * lib/trigl.c: Likewise.
18779 * m4/math_h.m4: New file.
18780 * MODULES.html.sh (Mathematics): Add math.
18782 2007-02-17 Bruno Haible <bruno@clisp.org>
18784 * modules/wctype-tests: New file.
18785 * tests/test-wctype.c: New file.
18787 * modules/wchar-tests: New file.
18788 * tests/test-wchar.c: New file.
18790 * modules/unistd-tests: New file.
18791 * tests/test-unistd.c: New file.
18793 * modules/time-tests: New file.
18794 * tests/test-time.c: New file.
18796 * modules/sysexits-tests: New file.
18797 * tests/test-sysexits.c: New file.
18799 * modules/sys_time-tests: New file.
18800 * tests/test-sys_time.c: New file.
18802 * modules/sys_stat-tests: New file.
18803 * tests/test-sys_stat.c: New file.
18805 * modules/sys_socket-tests: New file.
18806 * tests/test-sys_socket.c: New file.
18808 * modules/sys_select-tests: New file.
18809 * tests/test-sys_select.c: New file.
18811 * modules/string-tests: New file.
18812 * tests/test-string.c: New file.
18814 * modules/stdbool-tests: New file.
18815 * tests/test-stdbool.c: New file.
18817 * modules/netinet_in-tests: New file.
18818 * tests/test-netinet_in.c: New file.
18820 * modules/inttypes-tests: New file.
18821 * tests/test-inttypes.c: New file.
18823 * modules/fcntl-tests: New file.
18824 * tests/test-fcntl.c: New file.
18826 * modules/byteswap-tests: New file.
18827 * tests/test-byteswap.c: New file.
18829 * modules/arpa_inet-tests: New file.
18830 * tests/test-arpa_inet.c: New file.
18832 2007-02-17 Bruno Haible <bruno@clisp.org>
18834 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
18835 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
18836 if the corresponding module is not enabled. Emit link warnings if
18837 the function is used nevertheless.
18838 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
18839 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
18840 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
18841 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
18842 * modules/inttypes (Depends-on): Add link-warning.
18843 (Makefile.am): Copy the contents of build-aux/link-warning.h into
18844 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
18845 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
18846 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
18847 * modules/imaxdiv (configure.ac): Likewise.
18848 * modules/strtoimax (configure.ac): Likewise.
18849 * modules/strtoumax (configure.ac): Likewise.
18851 2007-02-17 Bruno Haible <bruno@clisp.org>
18853 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
18854 gl_STRING_MODULE_INDICATOR_DEFAULTS.
18855 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
18856 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
18858 2007-02-17 Bruno Haible <bruno@clisp.org>
18860 * modules/link-warning: New file.
18861 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
18862 * lib/string_.h (GL_LINK_WARNING): Remove definition.
18863 * modules/string (Depends-on): Add link-warning.
18864 (Makefile.am): Copy the contents of build-aux/link-warning.h into
18866 * MODULES.html.sh (Support for building libraries and executables): Add
18869 2007-02-17 Bruno Haible <bruno@clisp.org>
18871 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
18872 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
18873 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
18876 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
18877 Bruno Haible <bruno@clisp.org>
18879 * modules/tmpfile: New file.
18880 * lib/tmpfile.c: New file.
18881 * m4/tmpfile.m4: New file.
18882 * MODULES.html.sh (func_all_modules): New section "Input/output".
18884 2007-02-15 Bruno Haible <bruno@clisp.org>
18886 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
18887 (supports_delete_on_close): New function.
18888 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
18890 2007-02-14 Bruno Haible <bruno@clisp.org>
18892 * modules/mbspcasecmp-tests: New file.
18893 * tests/test-mbspcasecmp.sh: New file.
18894 * tests/test-mbspcasecmp.c: New file.
18896 New module mbspcasecmp.
18897 * modules/mbspcasecmp: New file.
18898 * lib/mbspcasecmp.c: New file.
18899 * lib/string_.h (strncasecmp): Change warning message.
18900 (mbspcasecmp): New declaration.
18901 * m4/mbspcasecmp.m4: New file.
18902 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18903 GNULIB_MBSPCASECMP.
18904 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
18905 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
18907 2007-02-14 Bruno Haible <bruno@clisp.org>
18909 * modules/mbsncasecmp-tests: New file.
18910 * tests/test-mbsncasecmp.sh: New file.
18911 * tests/test-mbsncasecmp.c: New file.
18913 New module mbsncasecmp.
18914 * modules/mbsncasecmp: New file.
18915 * lib/mbsncasecmp.c: New file.
18916 * lib/string_.h (mbsncasecmp): New declaration.
18917 * m4/mbsncasecmp.m4: New file.
18918 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
18919 GNULIB_MBSNCASECMP.
18920 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
18921 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
18923 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
18925 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
18926 Verify that it doesn't overlap with our flags.
18927 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
18928 do not have the desired effect in multibyte locales; instead, use
18930 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
18931 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
18932 we don't require GNU fnmatch ourselves (if our users require it, they
18933 should do so explicitly).
18935 Fix regex code so it doesn't rely on strcasecmp.
18936 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
18937 Otherwise, include gnulib's langinfo.h.
18938 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
18939 undesirable behavior in non-C locales. Instead, rely on localecharset.
18940 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
18941 * modules/regex (FILES): Remove m4/codeset.m4.
18942 (Depends-on): Add localcharset. Remove strcase.
18944 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18946 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
18947 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
18949 2007-02-13 Bruno Haible <bruno@clisp.org>
18951 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
18952 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18954 2007-02-12 Bruno Haible <bruno@clisp.org>
18956 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
18957 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
18958 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
18959 time warning rather than a link error.
18961 2007-02-12 Bruno Haible <bruno@clisp.org>
18963 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
18964 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18965 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18967 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
18969 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
18972 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
18974 New module 'time', so that apps can include <time.h> as per
18975 POSIX and GNU instead of separate include files like time_r.h
18976 and timegm.h. This implementation tries out a simpler approach
18977 for replacing decls in standard include files (as compared to
18978 the string module), somewhat as an experiment.
18980 * config/srclist.txt: Comment out mktime.c for now.
18981 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
18982 since it doesn't apply any more. Use generic wording instead.
18983 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
18985 * lib/time_.h, m4/time_h.m4, modules/time: New files.
18986 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
18987 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
18988 Don't include <sys/types.h>; no longer needed since we assume C89.
18989 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
18990 * lib/strftime.c: Likewise.
18991 * lib/time_r.c: Likewise.
18992 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
18993 * lib/nanosleep.c: Include <time.h> first, to check interface.
18994 * lib/strptime.c: Likewise.
18995 * lib/time_r.c: Likewise.
18996 * lib/timegm.c: Likewise.
18997 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
18999 * lib/timegm.c: Don't include timegm.h; no longer needed.
19000 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
19001 time.h now handles any problems in that area.
19002 (struct timespec, nanosleep): Remove; time.h now arranges for these.
19003 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
19004 that time.h defines struct timespec.
19005 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
19006 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
19008 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
19009 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
19010 needed. Set REPLACE_LOCALTIME.
19011 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
19012 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
19013 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
19014 nanosleep; time_h.m4 now does that. Don't require
19015 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
19016 module handles this now.
19017 * modules/getdate (Depends-on): Remove timespec. Add time.
19018 * modules/nanosleep (Depends-on): Likewise.
19019 * modules/stat-time (Depends-on): Likewise.
19020 * modules/nanosleep (Include): Include time.h, not timespec.h.
19021 * modules/strptime (Files): Remove lib/strptime.h.
19022 (Depends-on): Add extensions, time.
19023 (Include): Include time.h, not strptime.h.
19024 * modules/time_r (Files): Remove lib/time_r.h.
19025 (Depends-on): Add time.
19026 (Include): Include time.h, not time_r.h.
19027 * modules/timegm: Likewise.
19028 * modules/timespec (Description): Now does timespec-related decls
19029 of our own, instead of struct timespec itself.
19030 (Depends-on): Add time; remove extensions.
19031 (Maintainer): Add self.
19032 * modules/utimecmp (Depends-on): Add time; remove timespec.
19033 * modules/utimens (Depends-on): Likewise.
19034 * modules/xnanosleep (Depends-on): Likewise.
19036 2007-02-11 Bruno Haible <bruno@clisp.org>
19038 * lib/c-strstr.c: Include allocsa.h.
19039 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19040 * lib/c-strcasestr.c: Include allocsa.h.
19041 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19042 * lib/strcasestr.c: Include allocsa.h.
19043 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19044 * lib/mbsstr.c: Include allocsa.h.
19045 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
19046 allocsa/freesa instead of malloc/free.
19047 * lib/mbscasestr.c: Include allocsa.h.
19048 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
19049 allocsa/freesa instead of malloc/free.
19050 * modules/c-strstr (Depends-on): Add allocsa.
19051 * modules/c-strcasestr (Depends-on): Likewise.
19052 * modules/strcasestr (Depends-on): Likewise.
19053 * modules/mbsstr (Depends-on): Likewise.
19054 * modules/mbscasestr (Depends-on): Likewise.
19056 2007-02-11 Bruno Haible <bruno@clisp.org>
19058 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
19060 * modules/mbsspn-tests: New file.
19061 * tests/test-mbsspn.sh: New file.
19062 * tests/test-mbsspn.c: New file.
19064 2007-02-11 Bruno Haible <bruno@clisp.org>
19066 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
19068 * modules/mbspbrk-tests: New file.
19069 * tests/test-mbspbrk.sh: New file.
19070 * tests/test-mbspbrk.c: New file.
19072 2007-02-11 Bruno Haible <bruno@clisp.org>
19074 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
19077 * modules/mbscspn-tests: New file.
19078 * tests/test-mbscspn.sh: New file.
19079 * tests/test-mbscspn.c: New file.
19081 2007-02-11 Bruno Haible <bruno@clisp.org>
19083 * modules/mbscasecmp-tests: New file.
19084 * tests/test-mbscasecmp.sh: New file.
19085 * tests/test-mbscasecmp.c: New file.
19087 2007-02-11 Bruno Haible <bruno@clisp.org>
19089 Ensure O(n) worst-case complexity of mbscasestr.
19090 * lib/mbscasestr.c: Include stdbool.h.
19091 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
19093 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
19094 the bookkeeping indicates that it's worth it.
19095 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
19097 * modules/mbscasestr-tests: New file.
19098 * tests/test-mbscasestr1.c: New file.
19099 * tests/test-mbscasestr2.sh: New file.
19100 * tests/test-mbscasestr2.c: New file.
19101 * tests/test-mbscasestr3.sh: New file.
19102 * tests/test-mbscasestr3.c: New file.
19103 * tests/test-mbscasestr4.sh: New file.
19104 * tests/test-mbscasestr4.c: New file.
19105 * m4/locale-tr.m4: New file.
19107 2007-02-11 Bruno Haible <bruno@clisp.org>
19109 Ensure O(n) worst-case complexity of mbsstr.
19110 * lib/mbsstr.c: Include stdbool.h.
19111 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
19113 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
19114 bookkeeping indicates that it's worth it.
19115 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
19117 * modules/mbsstr-tests: New file.
19118 * tests/test-mbsstr1.c: New file.
19119 * tests/test-mbsstr2.sh: New file.
19120 * tests/test-mbsstr2.c: New file.
19121 * tests/test-mbsstr3.sh: New file.
19122 * tests/test-mbsstr3.c: New file.
19123 * m4/locale-fr.m4: New file.
19125 2007-02-11 Bruno Haible <bruno@clisp.org>
19127 * lib/mbsrchr.c (mbsrchr): Fix bug.
19129 * modules/mbsrchr-tests: New file.
19130 * tests/test-mbsrchr.sh: New file.
19131 * tests/test-mbsrchr.c: New file.
19133 2007-02-11 Bruno Haible <bruno@clisp.org>
19135 * lib/mbschr.c (mbschr): Fix bug.
19137 * modules/mbschr-tests: New file.
19138 * tests/test-mbschr.sh: New file.
19139 * tests/test-mbschr.c: New file.
19140 * m4/locale-zh.m4: New file.
19142 2007-02-11 Bruno Haible <bruno@clisp.org>
19144 Support for copying multibyte string iterators.
19145 * lib/mbiter.h: Include <string.h>.
19146 (mbiter_multi_copy): New function.
19147 (mbi_copy): New macro.
19148 * lib/mbuiter.h: Include <string.h>.
19149 (mbuiter_multi_copy): New function.
19150 (mbui_copy): New macro.
19152 2007-02-11 Bruno Haible <bruno@clisp.org>
19155 * modules/mbslen: New file.
19156 * lib/mbslen.c: New file.
19157 * lib/string_.h (mbslen): New declaration.
19158 * m4/mbslen.m4: New file.
19159 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19161 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
19162 * MODULES.html.sh (Internationalization functions): Add mbslen.
19164 2007-02-11 Bruno Haible <bruno@clisp.org>
19166 Ensure O(n) worst-case complexity of strcasestr substitute.
19167 * lib/strcasestr.c: Include stdbool.h.
19168 (knuth_morris_pratt): New function.
19169 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
19170 bookkeeping indicates that it's worth it.
19171 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
19173 * modules/strcasestr-tests: New file.
19174 * tests/test-strcasestr.c: New file.
19176 2007-02-11 Bruno Haible <bruno@clisp.org>
19178 Ensure O(n) worst-case complexity of c_strcasestr.
19179 * lib/c-strcasestr.c: Include stdbool.h, string.h.
19180 (knuth_morris_pratt): New function.
19181 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
19182 the bookkeeping indicates that it's worth it.
19183 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
19185 * modules/c-strcasestr-tests: New file.
19186 * tests/test-c-strcasestr.c: New file.
19188 2007-02-11 Bruno Haible <bruno@clisp.org>
19190 Ensure O(n) worst-case complexity of c_strstr.
19191 * lib/c-strstr.c: Include stdbool.h, string.h.
19192 (knuth_morris_pratt): New function.
19193 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
19194 bookkeeping indicates that it's worth it.
19195 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
19197 * lib/c-strstr.c: Complete rewrite for maintainability.
19199 * modules/c-strstr-tests: New file.
19200 * tests/test-c-strstr.c: New file.
19202 2007-02-11 Bruno Haible <bruno@clisp.org>
19204 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
19205 5.2.1 and earlier, whereby \055 was treated just like the range
19207 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19209 2007-02-08 Bruno Haible <bruno@clisp.org>
19211 * modules/regex (Depends-on): Add stdbool.
19212 Reported by Dalibor Topic <robilad@kaffe.org>.
19214 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
19216 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
19217 Prefer returning from main to exiting from it.
19218 Remove unnecessary parens after sizeof.
19220 2007-02-05 Bruno Haible <bruno@clisp.org>
19223 * modules/mbssep: New file.
19224 * lib/mbssep.c: New file.
19225 * lib/string_.h (strsep): Add a conditional link warning.
19226 (mbssep): New declaration.
19227 * m4/mbssep.m4: New file.
19228 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19230 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
19231 * MODULES.html.sh (Internationalization functions): Add mbssep.
19233 2007-02-05 Bruno Haible <bruno@clisp.org>
19235 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
19236 Optimize search in case of 1 delimiter.
19238 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
19240 * lib/acl.h: Include sys/types.h before sys/acl.h.
19242 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
19244 Merge upstream fix for glibc bugzilla #3957:
19246 2007-02-05 Jakub Jelinek <jakub@redhat.com>
19248 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
19249 bit for RE_HAT_LISTS_NOT_NEWLINE.
19250 (build_charclass_op): Remove bogus comment.
19252 2007-02-05 Simon Josefsson <simon@josefsson.org>
19254 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
19256 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
19258 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
19259 * lib/memmem.c [!defined _LIBC]: Include config.h.
19261 2007-02-04 Bruno Haible <bruno@clisp.org>
19263 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
19266 2007-02-04 Bruno Haible <bruno@clisp.org>
19268 New module mbstok_r.
19269 * modules/mbstok_r: New file.
19270 * lib/mbstok_r.c: New file.
19271 * lib/string_.h (strtok_r): Change argument names to match the
19272 comments. Add a conditional link warning.
19273 (mbstok_r): New declaration.
19274 * m4/mbstok_r.m4: New file.
19275 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19277 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
19278 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
19280 2007-02-04 Bruno Haible <bruno@clisp.org>
19283 * modules/mbsspn: New file.
19284 * lib/mbsspn.c: New file.
19285 * lib/string_.h (strspn): Add a conditional link warning.
19286 (mbsspn): New declaration.
19287 * m4/mbsspn.m4: New file.
19288 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19290 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
19291 * MODULES.html.sh (Internationalization functions): Add mbsspn.
19293 2007-02-04 Bruno Haible <bruno@clisp.org>
19295 New module mbspbrk.
19296 * modules/mbspbrk: New file.
19297 * lib/mbspbrk.c: New file.
19298 * lib/string_.h (strpbrk): Add a conditional link warning.
19299 (mbspbrk): New declaration.
19300 * m4/mbspbrk.m4: New file.
19301 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19303 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
19304 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
19306 2007-02-04 Bruno Haible <bruno@clisp.org>
19308 New module mbscspn.
19309 * modules/mbscspn: New file.
19310 * lib/mbscspn.c: New file.
19311 * lib/string_.h (strcspn): Add a conditional link warning.
19312 (mbscspn): New declaration.
19313 * m4/mbscspn.m4: New file.
19314 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19316 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
19317 * MODULES.html.sh (Internationalization functions): Add mbscspn.
19319 2007-02-04 Bruno Haible <bruno@clisp.org>
19321 New module mbscasestr, reduced goal of strcasestr.
19322 * modules/mbscasestr: New file.
19323 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
19324 (mbscasestr): Renamed from strcasestr.
19325 * lib/strcasestr.c: Don't include mbuiter.h.
19326 (strcasestr): Remove support for multibyte locales.
19327 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
19328 Change the conditional link warning.
19329 (mbscasestr): New declaration.
19330 * m4/mbscasestr.m4: New file.
19331 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
19332 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
19333 REPLACE_STRCASESTR.
19334 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
19335 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19336 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
19337 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
19338 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
19339 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
19340 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
19341 (Depends-on): Remove mbuiter.
19342 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
19344 2007-02-04 Bruno Haible <bruno@clisp.org>
19346 Simplify handling of strncasecmp.
19347 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
19348 the conditional link warning.
19349 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19350 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
19351 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
19352 * modules/strcase (configure.ac): Don't invoke
19353 gl_STRING_MODULE_INDICATOR.
19354 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
19356 2007-02-04 Bruno Haible <bruno@clisp.org>
19358 New module mbscasecmp, reduced goal of strcasecmp.
19359 * modules/mbscasecmp: New file.
19360 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
19361 (mbscasecmp): Renamed from strcasecmp.
19362 * lib/strcasecmp.c: Don't include mbuiter.h.
19363 (strcasecmp): Remove support for multibyte locales.
19364 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
19365 Change the conditional link warning.
19366 (mbscasecmp): New declaration.
19367 * m4/mbscasecmp.m4: New file.
19368 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
19369 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
19370 REPLACE_STRCASECMP.
19371 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
19372 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19374 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
19375 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
19376 * modules/strcase (Files): Remove m4/mbrtowc.m4.
19377 (Depends-on): Remove mbuiter.
19378 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
19380 2007-02-04 Bruno Haible <bruno@clisp.org>
19382 New module mbsstr. Remove module strstr.
19383 * modules/mbsstr: New file.
19384 * modules/strstr: Remove file.
19385 * lib/mbsstr.c: Renamed from lib/strstr.c.
19386 (mbsstr): Renamed from strstr.
19387 * lib/string_.h (strstr): Remove declaration. Change the conditional
19389 (mbsstr): New declaration.
19390 * m4/mbsstr.m4: New file.
19391 * m4/strstr.m4: Remove file.
19392 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19394 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
19395 Don't initialize GNULIB_STRSTR.
19396 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
19397 substitute GNULIB_STRSTR and REPLACE_STRSTR.
19398 * MODULES.html.sh (Internationalization functions): Add mbsstr.
19399 (Support for systems lacking ANSI C 89): Remove strstr.
19401 2007-02-04 Bruno Haible <bruno@clisp.org>
19403 New module mbsrchr.
19404 * modules/mbsrchr: New file.
19405 * lib/mbsrchr.c: New file.
19406 * lib/string_.h (strrchr): Add a conditional link warning.
19407 (mbsrchr): New declaration.
19408 * m4/mbsrchr.m4: New file.
19409 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19411 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
19412 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
19414 2007-02-04 Bruno Haible <bruno@clisp.org>
19417 * modules/mbschr: New file.
19418 * lib/mbschr.c: New file.
19419 * lib/string_.h (strchr): Add a conditional link warning.
19420 (mbschr): New declaration.
19421 * m4/mbschr.m4: New file.
19422 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19424 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
19425 * MODULES.html.sh (Internationalization functions): Add mbschr.
19427 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
19429 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
19431 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
19433 2007-02-04 Bruno Haible <bruno@clisp.org>
19435 New module description section 'configure.ac-early'.
19436 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
19437 (func_get_autoconf_early_snippet): New function.
19438 (func_import, func_create_testdir): Use it. Remove special cases for
19439 modules 'extensions' and 'lock'.
19440 * modules/extensions (configure.ac-early): Require
19441 gl_USE_SYSTEM_EXTENSIONS.
19442 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
19444 2007-02-04 Bruno Haible <bruno@clisp.org>
19446 Make use of gcj-4.3's -fsource and -ftarget option.
19447 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
19448 and if so try the options -fsource and -ftarget.
19449 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
19450 source_version, ftarget_option, target_version arguments.
19451 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
19452 (is_envjavac_oldgcj_14_14_usable): Renamed from
19453 is_envjavac_gcj_14_14_usable.
19454 (is_envjavac_oldgcj_14_13_usable): Renamed from
19455 is_envjavac_gcj_14_13_usable.
19456 (is_gcj_present): Update.
19457 (is_gcj_43, is_gcj43_usable): New functions.
19458 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
19459 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
19460 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
19461 try the options -fsource and -ftarget.
19463 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
19465 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
19466 checking code. Set N = ceil (1.5 * N) rather than to a slightly
19469 2007-02-03 Jim Meyering <jim@meyering.net>
19471 Give tools a better chance to allocate space for very large buffers.
19472 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
19474 Make pwd and readlink work also when run with an unreadable parent dir
19475 on systems with openat support.
19476 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
19477 provided getcwd function, even when we have openat support.
19478 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
19480 2007-02-02 Bruno Haible <bruno@clisp.org>
19482 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
19483 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
19484 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
19485 portability problems if one of these functions is only used on specific
19487 Reported by Paul Eggert.
19489 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
19491 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
19492 is causing more trouble than it's curing.
19493 * lib/regex_internal.h (__mempcpy): Remove.
19494 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
19495 (and make the code a tad smaller to boot).
19496 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
19498 2007-02-02 Jim Meyering <jim@meyering.net>
19500 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
19501 section, not in the Makefile.am: one.
19503 2007-02-02 Eric Blake <ebb9@byu.net>
19505 * lib/strchrnul.c: Always include config.h first.
19507 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
19508 gnulib strstr is not necessary here.
19510 2007-02-02 Simon Josefsson <simon@josefsson.org>
19512 * m4/socklen.m4: Fix typo.
19514 2007-02-02 Eric Blake <ebb9@byu.net>
19516 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
19517 * modules/netinet_in (Makefile.am): Likewise.
19519 2007-02-01 Bruno Haible <bruno@clisp.org>
19521 * lib/string_.h (GL_LINK_WARNING): New macro.
19522 (strcasecmp, strstr, strcasestr): If provided by the system,
19523 conditionally define as a macro that leads to a warning instead of to
19525 (strncasecmp): Conditionally define as a macro that leads to a warning.
19527 2007-02-01 Karl Berry <karl@gnu.org>
19529 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
19531 2007-02-01 Bruno Haible <bruno@clisp.org>
19533 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
19536 2007-02-01 Eric Blake <ebb9@byu.net>
19538 * modules/regex (Depends-on): Revert dependence on mempcpy.
19539 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
19540 module's definition of mempcpy.
19541 Reported by Paul Eggert.
19543 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
19545 * lib/string_.h: If the gnulib module XYZ is not present, undefine
19546 the symbol XYZ before redefining it. This fixes a problem with
19547 programs that don't use XYZ, when compiled on systems that define
19548 XYZ to something else.
19550 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
19552 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
19553 occurs when "mkdir -m foo" creates a setgid directory that is (1)
19554 writeable to group or other and (2) is intended to have a special
19555 mode bit that is set or cleared. In such a case, the directory
19556 should be neither group- nor other-writeable until the special
19557 mode bits are right.
19559 2007-01-31 Eric Blake <ebb9@byu.net>
19561 * modules/mountlist (Depends-on): Add strstr.
19563 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
19565 * modules/string (Makefile.am): Remove redundant replacement.
19566 * modules/regex (Depends-on): Add mempcpy.
19568 2007-01-31 Bruno Haible <bruno@clisp.org>
19570 New module description field 'Link'.
19571 * gnulib-tool (func_usage): Document --extract-link-directive.
19572 (sed_extract_prog): Recognize 'Link' directive.
19573 (func_get_link_directive): New function.
19574 (func_import): Show summary of link directives.
19575 Handle --extract-link-directive option.
19576 * modules/acl (Link): New section.
19577 * modules/clock-time (Link): New section.
19578 * modules/euidaccess (Link): New section.
19579 * modules/gettext (Link): New section.
19580 * modules/iconv (Link): New section.
19581 * modules/lock (Link): New section.
19582 * modules/nanosleep (Link): New section.
19583 * modules/readline (Link): New section.
19585 2007-01-27 Bruno Haible <bruno@clisp.org>
19587 Enforce the use of gnulib modules for unportable <string.h> functions.
19588 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
19589 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
19590 (gl_HEADER_STRING_H_BODY): Require it.
19591 * lib/string_.h: If the gnulib module XYZ is not present, redefine
19592 the symbol XYZ to one that gives a link error.
19593 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
19594 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
19595 * modules/mempcpy (configure.ac): Likewise.
19596 * modules/memrchr (configure.ac): Likewise.
19597 * modules/stpcpy (configure.ac): Likewise.
19598 * modules/stpncpy (configure.ac): Likewise.
19599 * modules/strcase (configure.ac): Likewise.
19600 * modules/strcasestr (configure.ac): Likewise.
19601 * modules/strchrnul (configure.ac): Likewise.
19602 * modules/strdup (configure.ac): Likewise.
19603 * modules/strndup (configure.ac): Likewise.
19604 * modules/strnlen (configure.ac): Likewise.
19605 * modules/strpbrk (configure.ac): Likewise.
19606 * modules/strsep (configure.ac): Likewise.
19607 * modules/strstr (configure.ac): Likewise.
19608 * modules/strtok_r (configure.ac): Likewise.
19610 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
19612 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
19614 2007-01-30 Jim Meyering <jim@meyering.net>
19616 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
19618 2007-01-29 Bruno Haible <bruno@clisp.org>
19620 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
19621 * lib/execute.c: Likewise.
19622 * lib/pipe.c: Likewise.
19623 * lib/printf-args.h: Likewise.
19624 * lib/printf-args.c: Likewise.
19625 * lib/printf-parse.c: Likewise.
19626 * lib/vasnprintf.c: Likewise.
19628 2007-01-29 Eric Blake <ebb9@byu.net>
19630 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
19633 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
19635 * lib/strptime.h (strptime): Use 'restrict' for args where
19636 POSIX requires this.
19637 * lib/strptime.c (strptime): Likewise.
19638 Change license notice from LGPL to GPL, since gnulib-tool will
19639 change this as needed.
19640 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
19642 Include "strptime.h" first, to check interface.
19643 Do not #undef _LIBC and _NL_CURRENT.
19644 Do not include <stdlib.h>; no longer needed.
19645 Include "time_r.h" and declare ptime_locale_status
19646 only if _LIBC is not defined.
19647 (__P): Remove unused macro.
19648 (match_string): Bring back glibc version, but use it only if _LIBC
19650 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
19651 Remove unnecessary assertion and abort() call.
19652 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
19653 * m4/strptime.m4: Fix serial number comment.
19654 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
19655 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
19656 (Depends-on): Add time_r.
19658 2007-01-29 Bruno Haible <bruno@clisp.org>
19660 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19662 * modules/strptime (Depends-on): Add stdbool.
19663 * lib/strptime.h: Include <time.h> always. Add comments.
19665 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
19667 * modules/strptime: New file.
19668 * lib/strptime.h: New file.
19669 * lib/strptime.c: New file.
19670 * m4/strptime.m4: New file.
19672 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
19674 * MODULES.html.sh: New module mpsort.
19675 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
19677 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
19678 a circularity problem with HP-UX ia64 reported by Bob Proulx in
19679 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
19681 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
19683 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
19685 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
19686 the parameter matches the prototype.
19688 2007-01-28 Jim Meyering <jim@meyering.net>
19690 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
19691 sys/time.h here, reverting that part of the previous patch:
19692 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
19694 2007-01-28 Bruno Haible <bruno@clisp.org>
19696 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
19697 value of $(SYS_TIME_H).
19698 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
19699 remove it conditionally, too. [added by Jim Meyering]
19700 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
19701 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19702 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
19703 GETTIMEOFDAY_REPLACEMENT to 1.
19705 2007-01-28 Bruno Haible <bruno@clisp.org>
19707 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
19708 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
19709 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
19710 Set UNISTD_H instead of UNISTD_H2.
19711 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
19713 2007-01-28 Bruno Haible <bruno@clisp.org>
19715 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
19716 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
19718 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19720 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
19721 (func_create_testdir): Ensure C locale for `grep' and `tr'
19723 (func_create_megatestdir): Avoid one `grep'. Fix bug in
19724 ACLOCAL_AMFLAGS parsing state machine.
19726 2007-01-27 Bruno Haible <bruno@clisp.org>
19728 * modules/unistr/base: Update.
19730 2007-01-27 Bruno Haible <bruno@clisp.org>
19732 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
19733 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
19734 * modules/unistr/u32-mbtouc-unsafe: Renamed from
19735 modules/unistr/u32-mbtouc.
19736 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
19737 * lib/unistr.h: Update.
19738 * lib/linebreak.c: Update.
19739 * modules/unistr/u32-mbtouc: Renamed from
19740 modules/unistr/u32-mbtouc-safe.
19741 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
19742 * lib/unistr.h: Update.
19743 * lib/unistr/u32-to-u8.c: Update.
19744 * lib/unistr/u32-to-u16.c: Update.
19746 2007-01-27 Bruno Haible <bruno@clisp.org>
19748 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
19749 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
19750 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
19751 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
19752 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
19753 * modules/unistr/u16-mbtouc-unsafe: Renamed from
19754 modules/unistr/u16-mbtouc.
19755 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
19756 * lib/unistr.h: Update.
19757 * lib/linebreak.c: Update.
19758 * modules/linebreak: Update.
19759 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
19760 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
19761 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
19762 * modules/unistr/u16-mbtouc: Renamed from
19763 modules/unistr/u16-mbtouc-safe.
19764 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
19765 * lib/unistr.h: Update.
19766 * lib/unistr/u16-to-u8.c: Update.
19767 * modules/unistr/u16-to-u8: Update.
19768 * lib/unistr/u16-to-u32.c: Update.
19769 * modules/unistr/u16-to-u32: Update.
19771 2007-01-27 Bruno Haible <bruno@clisp.org>
19773 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
19774 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
19775 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
19776 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
19777 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
19778 * modules/unistr/u8-mbtouc-unsafe: Renamed from
19779 modules/unistr/u8-mbtouc.
19780 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
19781 * lib/unistr.h: Update.
19782 * lib/striconveh.c: Update.
19783 * modules/striconveh: Update.
19784 * lib/linebreak.c: Update.
19785 * modules/linebreak: Update.
19786 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
19787 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
19788 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
19789 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
19790 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
19791 * lib/unistr.h: Update.
19792 * lib/striconveh.c: Update.
19793 * modules/striconveh: Update.
19794 * lib/unistr/u8-to-u16.c: Update.
19795 * modules/unistr/u8-to-u16: Update.
19796 * lib/unistr/u8-to-u32.c: Update.
19797 * modules/unistr/u8-to-u32: Update.
19799 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19802 * lib/argz.c: Do not include strings.h nor memory.h, include
19803 string.h unconditionally. Patch by Simon Josefsson.
19805 2007-01-27 Bruno Haible <bruno@clisp.org>
19807 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
19808 from gl_HEADER_STRING_H_BODY.
19809 (gl_HEADER_STRING_H_BODY): Require it.
19810 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
19811 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
19812 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
19813 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
19814 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19815 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
19816 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19817 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
19818 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
19819 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19820 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
19821 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
19822 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
19823 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19824 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19826 2007-01-27 Bruno Haible <bruno@clisp.org>
19828 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
19829 check_PROGRAMS into noinst_PROGRAMS.
19830 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
19831 check_PROGRAMS in this case.
19832 (func_import): Set for_test to false.
19833 (func_create_testdir): Set for_test to true.
19835 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19836 Bruno Haible <bruno@clisp.org>
19838 * modules/strcasestr (Files): Remove lib/strcasestr.h.
19839 (Depends-on): Add string.
19840 (Includes): Use <string.h> instead of strcasestr.h.
19841 * modules/string (Makefile.am): Also substitute the value of
19842 REPLACE_STRCASESTR.
19843 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
19844 assume strcasestr is declared in <string.h> not <strings.h>. Also
19845 set REPLACE_STRCASESTR.
19846 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
19847 REPLACE_STRCASESTR.
19848 * lib/strcasestr.h: Remove file.
19849 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
19850 * lib/string_.h (strcasestr): New declaration.
19852 2007-01-27 Bruno Haible <bruno@clisp.org>
19854 * lib/string_.h: Use 'extern'.
19856 2007-01-27 Jim Meyering <jim@meyering.net>
19858 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
19859 of set-but-not-used local, "q".
19861 * lib/mempcpy.c: Include <config.h> before <string.h>.
19862 This fixes a compilation error on HP-UX, due to the system's
19863 "restrict"-using mempcpy prototype.
19865 2007-01-26 Bruno Haible <bruno@clisp.org>
19867 Small optimization.
19868 * lib/javacomp.c: Include c-strstr.h.
19869 (is_envjavac_gcj): Use c_strstr instead of strstr.
19870 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
19872 2007-01-26 Bruno Haible <bruno@clisp.org>
19874 * MODULES.html.sh (Unicode string functions): Add the new modules.
19876 * modules/uniconv/u32-strconv-to-locale: New file.
19877 * lib/uniconv/u32-strconv-to-locale.c: New file.
19879 * modules/uniconv/u16-strconv-to-locale: New file.
19880 * lib/uniconv/u16-strconv-to-locale.c: New file.
19882 * modules/uniconv/u8-strconv-to-locale: New file.
19883 * lib/uniconv/u8-strconv-to-locale.c: New file.
19885 * modules/uniconv/u32-strconv-from-locale: New file.
19886 * lib/uniconv/u32-strconv-from-locale.c: New file.
19888 * modules/uniconv/u16-strconv-from-locale: New file.
19889 * lib/uniconv/u16-strconv-from-locale.c: New file.
19891 * modules/uniconv/u8-strconv-from-locale: New file.
19892 * lib/uniconv/u8-strconv-from-locale.c: New file.
19894 * modules/uniconv/u32-strconv-to-enc: New file.
19895 * lib/uniconv/u32-strconv-to-enc.c: New file.
19896 * modules/uniconv/u32-strconv-to-enc-tests: New file.
19897 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
19899 * modules/uniconv/u16-strconv-to-enc: New file.
19900 * lib/uniconv/u16-strconv-to-enc.c: New file.
19901 * lib/uniconv/u-strconv-to-enc.h: New file.
19902 * modules/uniconv/u16-strconv-to-enc-tests: New file.
19903 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
19905 * modules/uniconv/u8-strconv-to-enc: New file.
19906 * lib/uniconv/u8-strconv-to-enc.c: New file.
19907 * modules/uniconv/u8-strconv-to-enc-tests: New file.
19908 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
19910 * modules/uniconv/u32-strconv-from-enc: New file.
19911 * lib/uniconv/u32-strconv-from-enc.c: New file.
19912 * modules/uniconv/u32-strconv-from-enc-tests: New file.
19913 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
19915 * modules/uniconv/u16-strconv-from-enc: New file.
19916 * lib/uniconv/u16-strconv-from-enc.c: New file.
19917 * modules/uniconv/u16-strconv-from-enc-tests: New file.
19918 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
19920 * modules/uniconv/u8-strconv-from-enc: New file.
19921 * lib/uniconv/u8-strconv-from-enc.c: New file.
19922 * lib/uniconv/u-strconv-from-enc.h: New file.
19923 * modules/uniconv/u8-strconv-from-enc-tests: New file.
19924 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
19926 * modules/uniconv/u32-conv-from-enc: New file.
19927 * lib/uniconv/u32-conv-from-enc.c: New file.
19928 * modules/uniconv/u32-conv-from-enc-tests: New file.
19929 * tests/uniconv/test-u32-conv-from-enc.c: New file.
19931 * modules/uniconv/u16-conv-from-enc: New file.
19932 * lib/uniconv/u16-conv-from-enc.c: New file.
19933 * lib/uniconv/u-conv-from-enc.h: New file.
19934 * modules/uniconv/u16-conv-from-enc-tests: New file.
19935 * tests/uniconv/test-u16-conv-from-enc.c: New file.
19937 * modules/uniconv/u8-conv-from-enc: New file.
19938 * lib/uniconv/u8-conv-from-enc.c: New file.
19939 * modules/uniconv/u8-conv-from-enc-tests: New file.
19940 * tests/uniconv/test-u8-conv-from-enc.c: New file.
19942 * modules/uniconv/base: New file.
19943 * lib/uniconv.h: New file.
19945 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
19947 * doc/gnulib-tool.texi (Initial import): Update to match current
19948 behavior with strdup module.
19949 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
19950 * lib/memmem.h: Remove; all uses removed. This is now done
19952 * lib/mempcpy.h: Likewise.
19953 * lib/memrchr.h: Likewise.
19954 * lib/stpcpy.h: Likewise.
19955 * lib/stpncpy.h: Likewise.
19956 * lib/strcase.h: Likewise.
19957 * lib/strchrnul.h: Likewise.
19958 * lib/strdup.h: Likewise.
19959 * lib/strndup.h: Likewise.
19960 * lib/strnlen.h: Likewise.
19961 * lib/strpbrk.h: Likewise.
19962 * lib/strsep.h: Likewise.
19963 * lib/strstr.h: Likewise.
19964 * lib/strtok_r.h: Likewise.
19965 * lib/string_.h: New file.
19966 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
19967 Rely on <string.h> instead.
19968 * lib/canon-host.c: Likewise.
19969 * lib/chdir-long.c: Likewise.
19970 * lib/concatpath.c: Likewise.
19971 * lib/exclude.c: Likewise.
19972 * lib/fchdir.c: Likewise.
19973 * lib/getaddrinfo.c: Likewise.
19974 * lib/getcwd.c: Likewise.
19975 * lib/getsubopt.c: Likewise.
19976 * lib/glob.c: Likewise.
19977 * lib/hard-locale.c: Likewise.
19978 * lib/iconvme.c: Likewise.
19979 * lib/javacomp.c: Likewise.
19980 * lib/mempcpy.c: Likewise.
19981 * lib/memrchr.c: Likewise.
19982 * lib/regex_internal.h: Likewise.
19983 * lib/stpncpy.c: Likewise.
19984 * lib/strcasecmp.c: Likewise.
19985 * lib/strchrnul.c: Likewise.
19986 * lib/strdup.c: Likewise.
19987 * lib/striconv.c: Likewise.
19988 * lib/striconveh.c: Likewise.
19989 * lib/striconveha.c: Likewise.
19990 * lib/strncasecmp.c: Likewise.
19991 * lib/strndup.c: Likewise.
19992 * lib/strnlen.c: Likewise.
19993 * lib/strsep.c: Likewise.
19994 * lib/strstr.c: Likewise.
19995 * lib/strtok_r.c: Likewise.
19996 * lib/userspec.c: Likewise.
19997 * lib/w32spawn.h: Likewise.
19998 * lib/xstrndup.c: Likewise.
19999 * lib/mountlist.c (strstr): Remove decl.
20000 * m4/string_h.m4: New file.
20001 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
20002 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
20003 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
20004 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
20005 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
20006 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
20007 Set REPLACE_STRCASECMP if necessary.
20008 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
20009 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
20010 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
20011 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
20012 HAVE_DECL_STRDUP if necessary.
20013 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
20014 since gl_FUNC_STRNDUP does that now.
20015 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
20016 Check for decl here...
20017 (gl_PREREQ_STRNLEN): ... not here.
20018 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
20019 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
20020 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
20021 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
20023 * modules/string: New file.
20024 * modules/memmem (Files): Remove special-purpose include file.
20025 (Depends-on): Add string.
20026 (Include): Include <string.h>, not the removed file.
20027 * modules/mempcpy: Likewise.
20028 * modules/memrchr: Likewise.
20029 * modules/stpcpy: Likewise.
20030 * modules/stpncpy: Likewise.
20031 * modules/strcase: Likewise.
20032 * modules/strchrnul: Likewise.
20033 * modules/strdup: Likewise.
20034 * modules/strndup: Likewise.
20035 * modules/strnlen: Likewise.
20036 * modules/strpbrk: Likewise.
20037 * modules/strsep: Likewise.
20038 * modules/strstr: Likewise.
20039 * modules/strtok_r: Likewise.
20040 * tests/test-dirname.c: Don't include "strdup.h", since
20041 <string.h> now suffices.
20042 * tests/test-memmem.c: Don't include "memmem.h", since
20043 <string.h> now suffices.
20045 2007-01-25 Bruno Haible <bruno@clisp.org>
20047 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
20050 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
20051 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
20052 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
20053 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
20055 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
20056 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
20057 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
20058 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
20059 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
20060 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
20062 2007-01-24 Bruno Haible <bruno@clisp.org>
20064 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
20065 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
20066 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
20067 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
20069 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
20070 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
20071 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
20072 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
20073 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
20074 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
20076 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
20078 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
20079 Reported by Ralf Wildenhues.
20081 2007-01-24 Bruno Haible <bruno@clisp.org>
20083 Drop AC_REQUIRE calls that are redundant with the module dependencies.
20084 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
20086 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
20087 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
20088 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
20090 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
20092 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
20093 Don't use 'exit'; just return from 'main'.
20094 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
20096 * lib/fnmatch_.h: Readjust white space and comments to match
20097 glibc, to avoid spurious diffs.
20099 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
20101 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
20102 2004-12-01 change by Jakub Jelinek, since this code won't compile
20103 if !LIBC. Problem reported by Bob Proulx.
20105 2007-01-23 Bruno Haible <bruno@clisp.org>
20107 * lib/striconveh.c: Include c-strcaseeq.h.
20108 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
20109 * modules/striconveh (Depends-on): Add c-strcaseeq.
20111 2007-01-23 Bruno Haible <bruno@clisp.org>
20113 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
20115 * modules/c-strcaseeq: New file.
20116 * lib/c-strcaseeq.h: New file.
20118 * modules/streq: New file.
20119 * lib/streq.h: New file.
20121 2007-01-23 Bruno Haible <bruno@clisp.org>
20123 * modules/striconveha-tests: New file.
20124 * tests/test-striconveha.c: New file.
20126 * lib/striconveha.h: Include <stdbool.h>.
20127 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
20128 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
20129 (mem_iconveha_notranslit): Renamed from mem_iconveha.
20130 (mem_iconveha): New function.
20131 (str_iconveha_notranslit): Renamed from str_iconveha.
20132 (str_iconveha): New function.
20133 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
20136 2007-01-23 Bruno Haible <bruno@clisp.org>
20138 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
20139 encodings without forgiving before trying any encoding with handler.
20140 (str_iconveha): Try all encodings without forgiving before trying any
20141 encoding with handler.
20143 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
20145 Import the following changes from libc.
20147 2005-10-14 Ulrich Drepper <drepper@redhat.com>
20149 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
20151 2004-12-01 Jakub Jelinek <jakub@redhat.com>
20153 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
20154 normal_bracket label.
20156 2004-09-01 Jakub Jelinek <jakub@redhat.com>
20159 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
20160 to normal_bracket after fetching the next character.
20162 2007-01-22 Bruno Haible <bruno@clisp.org>
20164 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
20166 * lib/striconveh.c (iconv_carefully_1): New function.
20167 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
20169 (str_cd_iconveh): Update.
20170 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
20171 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
20172 * tests/test-striconveh.c (MAGIC): New macro.
20173 (new_offsets): New function.
20174 (main): Test call with and without offsets.
20176 2007-01-22 Bruno Haible <bruno@clisp.org>
20178 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
20179 * modules/sys_select (Makefile.am): Likewise.
20180 * modules/sys_socket (Makefile.am): Likewise.
20181 * modules/sys_time (Makefile.am): Likewise.
20183 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
20185 * modules/gettimeofday (License): Change from GPL to LGPL, since
20186 gettimeofday is a library function.
20188 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20190 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
20192 2007-01-21 Bruno Haible <bruno@clisp.org>
20194 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
20196 2007-01-21 Bruno Haible <bruno@clisp.org>
20198 * modules/striconveha: New file.
20199 * lib/striconveha.h: New file.
20200 * lib/striconveha.c: New file.
20201 * MODULES.html.sh (Internationalization functions): Add striconveha.
20202 * lib/striconv.c (str_iconv): Optimize the case of an empty input
20204 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
20206 2007-01-21 Bruno Haible <bruno@clisp.org>
20208 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
20209 * lib/striconveh.c (str_iconveh): Likewise.
20211 2007-01-21 Bruno Haible <bruno@clisp.org>
20213 * lib/striconveh.h (mem_iconveh): New declaration.
20214 * lib/striconveh.c (mem_iconveh): New function.
20215 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
20217 2007-01-21 Bruno Haible <bruno@clisp.org>
20219 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
20221 * lib/striconveh.h (mem_cd_iconveh): Change specification.
20222 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
20223 original result buffer.
20224 (str_cd_iconveh): Update.
20225 * tests/test-striconveh.c (main): Update.
20227 * lib/striconv.h (mem_cd_iconv): Change specification.
20228 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
20230 (str_cd_iconv): Update.
20231 * tests/test-striconv.c (main): Update.
20233 2007-01-21 Bruno Haible <bruno@clisp.org>
20235 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
20237 2007-01-20 Jim Meyering <jim@meyering.net>
20239 * lib/userspec.c (parse_with_separator): If a user or group string
20240 starts with "+", skip the corresponding name-to-ID look-up, since
20241 such a look-up must fail: user and group names may not include "+".
20243 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
20245 * lib/poll.c: Include sys/time.h and time.h unconditionally,
20246 since we now assume the sys_time module.
20247 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
20248 check for sys/time.h; no longer needed.
20249 * modules/poll (Depends-on): Depend on sys_time.
20251 2007-01-18 Bruno Haible <bruno@clisp.org>
20253 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
20254 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
20256 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
20259 * tests/test-gettimeofday.c: Include <time.h>.
20260 (dummy): Remove variable.
20262 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
20263 gl_HEADER_SYS_TIME_H.
20264 (gl_HEADER_SYS_TIME_H): New macro.
20266 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
20267 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20268 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
20269 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
20270 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20271 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
20272 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
20273 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20274 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
20275 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
20276 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20278 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
20279 last change; it caused a compilation error when cross-compiling to
20282 2007-01-18 Jim Meyering <jim@meyering.net>
20284 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
20285 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
20286 than the race-prone "test -d sys || mkdir sys".
20287 (configure.ac): Use AC_PROG_MKDIR_P.
20288 * modules/sys_select: Likewise.
20289 * modules/sys_socket: Likewise.
20290 * modules/sys_time: Likewise.
20292 2007-01-18 Eric Blake <ebb9@byu.net>
20294 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
20295 replace gettimeofday.
20296 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
20297 name, to avoid infinite recursion.
20299 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
20301 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
20303 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
20304 assume timespec.h defines struct timeval.
20305 * lib/settime.c: Likewise.
20306 * lib/utimens.c: Likewise.
20307 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
20308 since we now assume the gettimeofday module.
20309 * lib/tempname.c (__gen_tempname): Likewise.
20310 * lib/gettimeofday.h: Remove.
20311 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
20312 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
20313 Include <time.h>, for 'time()'.
20314 (localtime_buffer_addr): Also use this workaround if
20315 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
20316 to simplify the uses. All uses changed.
20317 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
20318 that #undef is inside {}, and 'const' follows type name consistently.
20319 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
20320 (gettimeofday): Do not use the maximum possible value for
20321 tv->tv_usec, since that might break usages other than ls.c.
20322 Instead, we'll leave ls.c alone. This undoes today's patch
20323 by Bruno. Add a compile-time warning for 1s-clock resolution;
20324 we've never observed the problem but might as well keep the
20326 * lib/nanosleep.c: Include timespec.h first, for interface check.
20327 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
20328 now assume the sys_time module.
20329 * lib/tempname.c: Likewise.
20330 * lib/timespec.h: Likewise.
20331 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
20333 * lib/strftime.c: Likewise.
20334 * lib/timespec.h: Likewise.
20335 * lib/posixtm.c: Include posixtm.h first, for interface check.
20336 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
20337 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
20338 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
20339 * lib/sys_time_.h: New file.
20340 * lib/timespec.h (struct timespec): Use long int, not long.
20341 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
20342 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
20343 Remove obsolescent call to AC_HEADER_TIME.
20344 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20345 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20346 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
20347 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
20349 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
20350 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
20351 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
20352 into the sys_time module. Check for gettimeofday just once.
20353 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
20354 for gettimeofday signature to just check the signature. Merely
20355 compile it, since linking doesn't test signature. Improve test for
20356 whether gettimeofday.o is actually needed.
20357 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
20358 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
20359 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
20360 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20361 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
20362 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
20363 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
20364 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
20365 than worrying about sys/time.h.
20366 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20367 Don't bother worrying about TIME_WITH_SYS_TIME.
20368 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20369 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
20370 * m4/sys_time_h.m4: New file.
20371 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
20372 Don't include sys/time.h. Return from main rather than exiting.
20373 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
20375 * modules/gethrxtime (Depends-on): Add sys_time.
20376 * modules/gettime (Depends-on): Likewise.
20377 * modules/gettimeofday (Depends-on): Likewise.
20378 * modules/nanosleep (Depends-on): Likewise.
20379 * modules/settime (Depends-on): Likewise.
20380 * modules/tempname (Depends-on): Likewise.
20381 * modules/utimens (Depends-on): Likewise.
20382 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
20383 (Include:) Change back to <sys/time.h>.
20384 (Maintainer:) Add self.
20385 * modules/sys_time: New file.
20386 * modules/tempname (Depends-on): Add gettimeofday.
20387 * tests/test-gettimeofday.c: Include <sys/time.h>
20388 rather than gettimeofday.h.
20390 2007-01-17 Bruno Haible <bruno@clisp.org>
20392 * gnulib-tool (func_get_license): Revert last patch. Instead, let
20393 the license default to GPL.
20394 (func_create_testdir): Don't complain if a module is LGPL and its
20395 tests module depends on GPLed modules.
20397 2007-01-17 Bruno Haible <bruno@clisp.org>
20399 * lib/gettimeofday.c (gettimeofday): Add code for the case
20400 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
20401 maximum possible value for tv->tv_usec, rather than the minimum one.
20403 2005-10-08 Martin Lambers <marlam@marlam.de>
20404 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
20405 2007-01-16 Bruno Haible <bruno@clisp.org>
20407 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
20408 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
20409 gl_FUNC_GETTIMEOFDAY.
20410 (Include): Add gettimeofday.h.
20411 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
20412 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
20413 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
20414 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
20415 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
20416 * lib/gettimeofday.h: New file.
20417 * lib/gettimeofday.c: Include <sys/timeb.h>.
20418 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
20419 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20420 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
20421 fall back on time().
20423 * tests/test-gettimeofday.c: New file.
20424 * modules/gettimeofday-tests: New file.
20426 2007-01-16 Eric Blake <ebb9@byu.net>
20428 * modules/fnmatch (Depends-on): Depend on wchar.
20429 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
20430 * m4/fnmatch.m4: Likewise.
20431 * modules/mbchar (Makefile.am): Assume <wchar.h>.
20432 * m4/mbchar.m4: Likewise.
20433 * modules/mbswidth (Depends-on): Depend on wchar.
20434 * lib/mbswidth.c: Assume <wchar.h>.
20435 * m4/mbswidth.m4: Likewise.
20436 * modules/quotearg (Depends-on): Depend on wchar.
20437 * lib/quotearg.c: Assume <wchar.h>.
20438 * m4/quotearg.m4: Likewise.
20439 * modules/regex (Depends-on): Depend on wchar.
20440 * lib/regex_internal.h: Assume <wchar.h>.
20441 * m4/regex.m4: Likewise.
20442 * modules/stdint (Depends-on): Depend on wchar.
20443 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
20444 * m4/stdint.m4: Likewise.
20445 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
20446 * modules/strftime (Depends-on): Depend on wchar.
20447 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
20448 * modules/strtol (Depends-on): Depend on wchar.
20449 * lib/strtol.c: Assume <wchar.h>.
20450 * modules/wcwidth (Depends-on): Depend on wchar.
20451 * lib/wcwidth.h: Assume <wchar.h>.
20452 * m4/wcwidth.m4: Likewise.
20454 2007-01-16 Bruno Haible <bruno@clisp.org>
20456 * modules/csharpexec-script: New, created from...
20457 * modules/csharpexec: ... this.
20459 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
20461 * modules/javaexec-script: New, created from...
20462 * modules/javaexec: ... this.
20464 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20466 * modules/poll (Dependencies): Add sys_select.
20468 2007-01-15 Jim Meyering <jim@meyering.net>
20470 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
20471 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
20472 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
20473 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
20475 2007-01-15 Bruno Haible <bruno@clisp.org>
20477 * modules/striconveh: New file.
20478 * lib/striconveh.h: New file.
20479 * lib/striconveh.c: New file.
20480 * MODULES.html.sh (Internationalization functions): Add striconveh.
20482 * modules/striconveh-tests: New file.
20483 * tests/test-striconveh.c: New file.
20485 2007-01-15 Bruno Haible <bruno@clisp.org>
20487 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
20488 not from GNU libiconv or GNU libc.
20490 2007-01-15 Bruno Haible <bruno@clisp.org>
20492 * doc/gnulib-intro.texi (Copyright): Explain the different license
20493 terms for module descriptions, autoconf macros, tests, documentation.
20495 2007-01-14 Bruno Haible <bruno@clisp.org>
20497 * modules/striconv-tests: New file.
20498 * tests/test-striconv.c: New file.
20500 2007-01-14 Bruno Haible <bruno@clisp.org>
20502 * modules/iconv-tests: New file.
20503 * tests/test-iconv.c: New file.
20505 2007-01-14 Bruno Haible <bruno@clisp.org>
20507 * gnulib-tool (func_get_license): For test modules, use the license of
20510 2007-01-14 Bruno Haible <bruno@clisp.org>
20512 * modules/iconv (Include): Clarify that <iconv.h> can only be included
20513 if iconv is found to exist.
20515 2007-01-14 Bruno Haible <bruno@clisp.org>
20517 * modules/c-ctype-tests: New file.
20518 * tests/test-c-ctype.c: New file.
20520 2007-01-14 Bruno Haible <bruno@clisp.org>
20522 * modules/binary-io-tests: New file.
20523 * tests/test-binary-io.sh: New file.
20524 * tests/test-binary-io.c: New file.
20526 2007-01-14 Bruno Haible <bruno@clisp.org>
20528 * modules/array-oset-tests: New file.
20529 * tests/test-array_oset.c: New file.
20531 2007-01-14 Bruno Haible <bruno@clisp.org>
20533 * modules/array-list-tests: New file.
20534 * tests/test-array_list.c: New file.
20536 2007-01-14 Bruno Haible <bruno@clisp.org>
20538 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
20540 Reported by Simon Josefsson in
20541 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
20543 2007-01-14 Bruno Haible <bruno@clisp.org>
20545 * modules/allocsa-tests: New file.
20546 * tests/test-allocsa.c: New file.
20548 2007-01-14 Bruno Haible <bruno@clisp.org>
20550 * modules/fchdir (Depends-on): Add absolute-header.
20551 * modules/unistd (Depends-on): Likewise.
20553 2006-12-30 Bruno Haible <bruno@clisp.org>
20555 * modules/fchdir: New file.
20556 * modules/unistd (Files): Add lib/unistd_.h.
20557 (Makefile.am): Generate unistd.h from unistd_.h.
20558 * lib/fchdir.c: New file.
20559 * lib/dirent_.h: New file.
20560 * lib/unistd_.h: New file.
20561 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
20562 * m4/fchdir.m4: New file.
20563 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
20564 (gl_HEADER_UNISTD): Invoke it.
20565 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
20567 * lib/backupfile.c (opendir, closedir): Undefine.
20568 * lib/chown.c (open, close): Undefine.
20569 * lib/clean-temp.c (open, close): Undefine.
20570 * lib/copy-file.c (open, close): Undefine.
20571 * lib/execute.c (open, close): Undefine.
20572 * lib/fsusage.c (open, close): Undefine.
20573 * lib/gc-gnulib.c (open, close): Undefine.
20574 * lib/getcwd.c (opendir, closedir): Undefine.
20575 * lib/glob.c (opendir, closedir): Undefine.
20576 * lib/javacomp.c (open, close): Undefine.
20577 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
20578 * lib/openat-proc.c (open, close): Undefine.
20579 * lib/pagealign_alloc.c (open, close): Undefine.
20580 * lib/pipe.c (open, close): Undefine.
20581 * lib/progreloc.c (open, close): Undefine.
20582 * lib/savedir.c (opendir, closedir): Undefine.
20583 * lib/utime.c (open, close): Undefine.
20584 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
20586 2007-01-10 Bruno Haible <bruno@clisp.org>
20588 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
20590 2007-01-12 Eric Blake <ebb9@byu.net>
20592 Provide a robust <wchar.h>. Further simplifications are now
20593 possible in other modules, but not included here.
20594 * modules/wchar: New module.
20595 * m4/wchar.m4: New file.
20596 * lib/wchar_.h: Likewise.
20597 * modules/mbchar (Depends-on): Depend on wchar, as the first use
20599 * MODULES.html.sh (Extended multibyte and wide character utilities):
20602 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
20604 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
20605 to a reasonable default for memory allocation.
20606 (xreadlink): Don't allocate a huge buffer, to work around a buggy
20607 file system that reports garbage st_size values for symlinks.
20608 Problem reported by Liyang Hu.
20610 2007-01-11 Simon Josefsson <simon@josefsson.org>
20612 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
20613 Emacs .#* auto-save files).
20615 2007-01-11 Bruno Haible <bruno@clisp.org>
20617 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
20620 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
20622 Use @...@ consistently in lib/wctype_.h.
20623 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
20624 on it being set to 1 or 0.
20625 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
20626 go back to AC_SUBSTing it.
20627 * modules/wctype (Makefile.am): Undo previous change.
20629 2007-01-10 Eric Blake <ebb9@byu.net>
20631 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
20632 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
20633 * modules/wctype (Makefile.am): Likewise.
20634 Reported by Chris McGuire.
20636 2007-01-10 Jim Meyering <jim@meyering.net>
20638 fts.c: a small readability/maintainability improvement
20639 * lib/fts.c (fts_read): Make this code slightly more readable and
20640 maintainable by hoisting the "sp->fts_cur = p" assignments to
20641 immediately follow the statements that set P. Derived from
20642 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
20644 2007-01-10 Eric Blake <ebb9@byu.net>
20646 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
20647 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
20648 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20649 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20650 Reported by Chris McGuire.
20652 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20654 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
20657 2007-01-09 Bruno Haible <bruno@clisp.org>
20659 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
20660 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
20662 (func_module): Use them.
20664 2007-01-09 Bruno Haible <bruno@clisp.org>
20666 * modules/unistr/base: New file.
20667 * lib/unistr.h: New file.
20669 * modules/unistr/u8-to-u16: New file.
20670 * lib/unistr/u8-to-u16.c: New file.
20672 * modules/unistr/u8-to-u32: New file.
20673 * lib/unistr/u8-to-u32.c: New file.
20675 * modules/unistr/u16-to-u8: New file.
20676 * lib/unistr/u16-to-u8.c: New file.
20678 * modules/unistr/u16-to-u32: New file.
20679 * lib/unistr/u16-to-u32.c: New file.
20681 * modules/unistr/u32-to-u8: New file.
20682 * lib/unistr/u32-to-u8.c: New file.
20684 * modules/unistr/u32-to-u16: New file.
20685 * lib/unistr/u32-to-u16.c: New file.
20687 * modules/unistr/u8-check: New file.
20688 * modules/unistr/u16-check: New file.
20689 * modules/unistr/u32-check: New file.
20690 * lib/unistr/u8-check.c: New file.
20691 * lib/unistr/u16-check.c: New file.
20692 * lib/unistr/u32-check.c: New file.
20694 * modules/unistr/u8-chr: New file.
20695 * modules/unistr/u16-chr: New file.
20696 * modules/unistr/u32-chr: New file.
20697 * lib/unistr/u8-chr.c: New file.
20698 * lib/unistr/u16-chr.c: New file.
20699 * lib/unistr/u32-chr.c: New file.
20701 * modules/unistr/u8-cmp: New file.
20702 * modules/unistr/u16-cmp: New file.
20703 * modules/unistr/u32-cmp: New file.
20704 * lib/unistr/u8-cmp.c: New file.
20705 * lib/unistr/u16-cmp.c: New file.
20706 * lib/unistr/u32-cmp.c: New file.
20708 * modules/unistr/u8-cpy: New file.
20709 * modules/unistr/u16-cpy: New file.
20710 * modules/unistr/u32-cpy: New file.
20711 * lib/unistr/u8-cpy.c: New file.
20712 * lib/unistr/u16-cpy.c: New file.
20713 * lib/unistr/u32-cpy.c: New file.
20714 * lib/unistr/u-cpy.h: New file.
20716 * modules/unistr/u8-cpy-alloc: New file.
20717 * modules/unistr/u16-cpy-alloc: New file.
20718 * modules/unistr/u32-cpy-alloc: New file.
20719 * lib/unistr/u8-cpy-alloc.c: New file.
20720 * lib/unistr/u16-cpy-alloc.c: New file.
20721 * lib/unistr/u32-cpy-alloc.c: New file.
20722 * lib/unistr/u-cpy-alloc.h: New file.
20724 * modules/unistr/u8-endswith: New file.
20725 * modules/unistr/u16-endswith: New file.
20726 * modules/unistr/u32-endswith: New file.
20727 * lib/unistr/u8-endswith.c: New file.
20728 * lib/unistr/u16-endswith.c: New file.
20729 * lib/unistr/u32-endswith.c: New file.
20730 * lib/unistr/u-endswith.h: New file.
20732 * modules/unistr/u8-mblen: New file.
20733 * modules/unistr/u16-mblen: New file.
20734 * modules/unistr/u32-mblen: New file.
20735 * lib/unistr/u8-mblen.c: New file.
20736 * lib/unistr/u16-mblen.c: New file.
20737 * lib/unistr/u32-mblen.c: New file.
20739 * modules/unistr/u8-mbtouc: New file.
20740 * modules/unistr/u16-mbtouc: New file.
20741 * modules/unistr/u32-mbtouc: New file.
20742 * lib/unistr/u8-mbtouc.c: New file.
20743 * lib/unistr/u16-mbtouc.c: New file.
20744 * lib/unistr/u32-mbtouc.c: New file.
20746 * modules/unistr/u8-mbtouc-safe: New file.
20747 * modules/unistr/u16-mbtouc-safe: New file.
20748 * modules/unistr/u32-mbtouc-safe: New file.
20749 * lib/unistr/u8-mbtouc-safe.c: New file.
20750 * lib/unistr/u16-mbtouc-safe.c: New file.
20751 * lib/unistr/u32-mbtouc-safe.c: New file.
20753 * modules/unistr/u8-move: New file.
20754 * modules/unistr/u16-move: New file.
20755 * modules/unistr/u32-move: New file.
20756 * lib/unistr/u8-move.c: New file.
20757 * lib/unistr/u16-move.c: New file.
20758 * lib/unistr/u32-move.c: New file.
20759 * lib/unistr/u-move.h: New file.
20761 * modules/unistr/u8-next: New file.
20762 * modules/unistr/u16-next: New file.
20763 * modules/unistr/u32-next: New file.
20764 * lib/unistr/u8-next.c: New file.
20765 * lib/unistr/u16-next.c: New file.
20766 * lib/unistr/u32-next.c: New file.
20768 * modules/unistr/u8-prev: New file.
20769 * modules/unistr/u16-prev: New file.
20770 * modules/unistr/u32-prev: New file.
20771 * lib/unistr/u8-prev.c: New file.
20772 * lib/unistr/u16-prev.c: New file.
20773 * lib/unistr/u32-prev.c: New file.
20775 * modules/unistr/u8-set: New file.
20776 * modules/unistr/u16-set: New file.
20777 * modules/unistr/u32-set: New file.
20778 * lib/unistr/u8-set.c: New file.
20779 * lib/unistr/u16-set.c: New file.
20780 * lib/unistr/u32-set.c: New file.
20781 * lib/unistr/u-set.h: New file.
20783 * modules/unistr/u8-startswith: New file.
20784 * modules/unistr/u16-startswith: New file.
20785 * modules/unistr/u32-startswith: New file.
20786 * lib/unistr/u8-startswith.c: New file.
20787 * lib/unistr/u16-startswith.c: New file.
20788 * lib/unistr/u32-startswith.c: New file.
20789 * lib/unistr/u-startswith.h: New file.
20791 * modules/unistr/u8-stpcpy: New file.
20792 * modules/unistr/u16-stpcpy: New file.
20793 * modules/unistr/u32-stpcpy: New file.
20794 * lib/unistr/u8-stpcpy.c: New file.
20795 * lib/unistr/u16-stpcpy.c: New file.
20796 * lib/unistr/u32-stpcpy.c: New file.
20797 * lib/unistr/u-stpcpy.h: New file.
20799 * modules/unistr/u8-stpncpy: New file.
20800 * modules/unistr/u16-stpncpy: New file.
20801 * modules/unistr/u32-stpncpy: New file.
20802 * lib/unistr/u8-stpncpy.c: New file.
20803 * lib/unistr/u16-stpncpy.c: New file.
20804 * lib/unistr/u32-stpncpy.c: New file.
20805 * lib/unistr/u-stpncpy.h: New file.
20807 * modules/unistr/u8-strcat: New file.
20808 * modules/unistr/u16-strcat: New file.
20809 * modules/unistr/u32-strcat: New file.
20810 * lib/unistr/u8-strcat.c: New file.
20811 * lib/unistr/u16-strcat.c: New file.
20812 * lib/unistr/u32-strcat.c: New file.
20813 * lib/unistr/u-strcat.h: New file.
20815 * modules/unistr/u8-strchr: New file.
20816 * modules/unistr/u16-strchr: New file.
20817 * modules/unistr/u32-strchr: New file.
20818 * lib/unistr/u8-strchr.c: New file.
20819 * lib/unistr/u16-strchr.c: New file.
20820 * lib/unistr/u32-strchr.c: New file.
20822 * modules/unistr/u8-strcmp: New file.
20823 * modules/unistr/u16-strcmp: New file.
20824 * modules/unistr/u32-strcmp: New file.
20825 * lib/unistr/u8-strcmp.c: New file.
20826 * lib/unistr/u16-strcmp.c: New file.
20827 * lib/unistr/u32-strcmp.c: New file.
20829 * modules/unistr/u8-strcpy: New file.
20830 * modules/unistr/u16-strcpy: New file.
20831 * modules/unistr/u32-strcpy: New file.
20832 * lib/unistr/u8-strcpy.c: New file.
20833 * lib/unistr/u16-strcpy.c: New file.
20834 * lib/unistr/u32-strcpy.c: New file.
20835 * lib/unistr/u-strcpy.h: New file.
20837 * modules/unistr/u8-strcspn: New file.
20838 * modules/unistr/u16-strcspn: New file.
20839 * modules/unistr/u32-strcspn: New file.
20840 * lib/unistr/u8-strcspn.c: New file.
20841 * lib/unistr/u16-strcspn.c: New file.
20842 * lib/unistr/u32-strcspn.c: New file.
20843 * lib/unistr/u-strcspn.h: New file.
20845 * modules/unistr/u8-strdup: New file.
20846 * modules/unistr/u16-strdup: New file.
20847 * modules/unistr/u32-strdup: New file.
20848 * lib/unistr/u8-strdup.c: New file.
20849 * lib/unistr/u16-strdup.c: New file.
20850 * lib/unistr/u32-strdup.c: New file.
20851 * lib/unistr/u-strdup.h: New file.
20853 * modules/unistr/u8-strlen: New file.
20854 * modules/unistr/u16-strlen: New file.
20855 * modules/unistr/u32-strlen: New file.
20856 * lib/unistr/u8-strlen.c: New file.
20857 * lib/unistr/u16-strlen.c: New file.
20858 * lib/unistr/u32-strlen.c: New file.
20859 * lib/unistr/u-strlen.h: New file.
20861 * modules/unistr/u8-strmblen: New file.
20862 * modules/unistr/u16-strmblen: New file.
20863 * modules/unistr/u32-strmblen: New file.
20864 * lib/unistr/u8-strmblen.c: New file.
20865 * lib/unistr/u16-strmblen.c: New file.
20866 * lib/unistr/u32-strmblen.c: New file.
20868 * modules/unistr/u8-strmbtouc: New file.
20869 * modules/unistr/u16-strmbtouc: New file.
20870 * modules/unistr/u32-strmbtouc: New file.
20871 * lib/unistr/u8-strmbtouc.c: New file.
20872 * lib/unistr/u16-strmbtouc.c: New file.
20873 * lib/unistr/u32-strmbtouc.c: New file.
20875 * modules/unistr/u8-strncat: New file.
20876 * modules/unistr/u16-strncat: New file.
20877 * modules/unistr/u32-strncat: New file.
20878 * lib/unistr/u8-strncat.c: New file.
20879 * lib/unistr/u16-strncat.c: New file.
20880 * lib/unistr/u32-strncat.c: New file.
20881 * lib/unistr/u-strncat.h: New file.
20883 * modules/unistr/u8-strncmp: New file.
20884 * modules/unistr/u16-strncmp: New file.
20885 * modules/unistr/u32-strncmp: New file.
20886 * lib/unistr/u8-strncmp.c: New file.
20887 * lib/unistr/u16-strncmp.c: New file.
20888 * lib/unistr/u32-strncmp.c: New file.
20890 * modules/unistr/u8-strncpy: New file.
20891 * modules/unistr/u16-strncpy: New file.
20892 * modules/unistr/u32-strncpy: New file.
20893 * lib/unistr/u8-strncpy.c: New file.
20894 * lib/unistr/u16-strncpy.c: New file.
20895 * lib/unistr/u32-strncpy.c: New file.
20896 * lib/unistr/u-strncpy.h: New file.
20898 * modules/unistr/u8-strnlen: New file.
20899 * modules/unistr/u16-strnlen: New file.
20900 * modules/unistr/u32-strnlen: New file.
20901 * lib/unistr/u8-strnlen.c: New file.
20902 * lib/unistr/u16-strnlen.c: New file.
20903 * lib/unistr/u32-strnlen.c: New file.
20904 * lib/unistr/u-strnlen.h: New file.
20906 * modules/unistr/u8-strpbrk: New file.
20907 * modules/unistr/u16-strpbrk: New file.
20908 * modules/unistr/u32-strpbrk: New file.
20909 * lib/unistr/u8-strpbrk.c: New file.
20910 * lib/unistr/u16-strpbrk.c: New file.
20911 * lib/unistr/u32-strpbrk.c: New file.
20912 * lib/unistr/u-strpbrk.h: New file.
20914 * modules/unistr/u8-strrchr: New file.
20915 * modules/unistr/u16-strrchr: New file.
20916 * modules/unistr/u32-strrchr: New file.
20917 * lib/unistr/u8-strrchr.c: New file.
20918 * lib/unistr/u16-strrchr.c: New file.
20919 * lib/unistr/u32-strrchr.c: New file.
20921 * modules/unistr/u8-strspn: New file.
20922 * modules/unistr/u16-strspn: New file.
20923 * modules/unistr/u32-strspn: New file.
20924 * lib/unistr/u8-strspn.c: New file.
20925 * lib/unistr/u16-strspn.c: New file.
20926 * lib/unistr/u32-strspn.c: New file.
20927 * lib/unistr/u-strspn.h: New file.
20929 * modules/unistr/u8-strstr: New file.
20930 * modules/unistr/u16-strstr: New file.
20931 * modules/unistr/u32-strstr: New file.
20932 * lib/unistr/u8-strstr.c: New file.
20933 * lib/unistr/u16-strstr.c: New file.
20934 * lib/unistr/u32-strstr.c: New file.
20935 * lib/unistr/u-strstr.h: New file.
20937 * modules/unistr/u8-strtok: New file.
20938 * modules/unistr/u16-strtok: New file.
20939 * modules/unistr/u32-strtok: New file.
20940 * lib/unistr/u8-strtok.c: New file.
20941 * lib/unistr/u16-strtok.c: New file.
20942 * lib/unistr/u32-strtok.c: New file.
20943 * lib/unistr/u-strtok.h: New file.
20945 * modules/unistr/u8-uctomb: New file.
20946 * modules/unistr/u16-uctomb: New file.
20947 * modules/unistr/u32-uctomb: New file.
20948 * lib/unistr/u8-uctomb.c: New file.
20949 * lib/unistr/u16-uctomb.c: New file.
20950 * lib/unistr/u32-uctomb.c: New file.
20952 * MODULES.html.sh (Unicode string functions): Add the new modules.
20954 2007-01-08 Bruno Haible <bruno@clisp.org>
20956 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
20957 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
20960 2007-01-08 Karl Berry <karl@gnu.org>
20962 * doc/error.texi: mention that main() fns must set program_name
20963 when progname is used.
20965 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
20967 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
20968 WCTYPE_H is empty, for the benefit of builds from non-distclean
20969 directories. Problem reported by Eric Blake in
20970 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
20972 2007-01-08 Bruno Haible <bruno@clisp.org>
20974 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
20975 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
20976 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
20977 PROVIDE_CANONICALIZE_FILENAME_MODE.
20978 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
20980 2007-01-08 Bruno Haible <bruno@clisp.org>
20982 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
20983 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
20984 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
20985 * lib/fts.c: Likewise.
20986 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
20988 2006-12-25 Bruno Haible <bruno@clisp.org>
20990 * modules/utf8-ucs4-safe: New file.
20991 * lib/utf8-ucs4-safe.h: New file.
20992 * lib/unistr/utf8-ucs4-safe.c: New file.
20994 * modules/utf16-ucs4-safe: New file.
20995 * lib/utf16-ucs4-safe.h: New file.
20996 * lib/unistr/utf16-ucs4-safe.c: New file.
20998 * MODULES.html.sh (Unicode string functions): Add the new modules.
21000 2007-01-08 Bruno Haible <bruno@clisp.org>
21002 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
21003 (Depends-on): Add unitypes.
21004 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
21005 (u8_mbtouc_aux): Move out to separate file.
21006 (u8_mbtouc): Use ucs4_t, uint8_t types.
21007 * lib/unistr/utf8-ucs4.c: New file.
21009 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
21010 (Depends-on): Add unitypes.
21011 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
21012 (u16_mbtouc_aux): Move out to separate file.
21013 (u16_mbtouc): Use ucs4_t, uint16_t types.
21014 * lib/unistr/utf16-ucs4.c: New file.
21016 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
21017 (Depends-on): Add unitypes.
21018 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
21019 (u8_uctomb_aux): Move out to separate file.
21020 (u8_uctomb): Use ucs4_t, uint8_t types.
21021 * lib/unistr/ucs4-utf8.c: New file.
21023 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
21024 (Depends-on): Add unitypes.
21025 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
21026 (u16_uctomb_aux): Move out to separate file.
21027 (u16_uctomb): Use ucs4_t, uint16_t types.
21028 * lib/unistr/ucs4-utf16.c: New file.
21030 2006-12-25 Bruno Haible <bruno@clisp.org>
21032 * modules/unitypes: New file.
21033 * lib/unitypes.h: New file.
21034 * MODULES.html.sh (func_all_modules): New section "Unicode string
21035 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
21036 this section. Add unitypes.
21038 2007-01-08 Bruno Haible <bruno@clisp.org>
21040 Avoid variable names that conflict with those from libtool.
21041 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
21042 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
21043 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
21044 library_names_spec to acl_library_names_spec, hardcode_* to
21046 Reported by Ralf Wildenhues.
21048 2007-01-08 Bruno Haible <bruno@clisp.org>
21050 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
21052 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
21054 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
21055 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
21057 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
21059 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
21060 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
21061 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
21062 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
21064 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
21066 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
21067 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
21068 GC_USE_<algorithm>.
21069 * lib/gc-libgcrypt.c: Likewise.
21070 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
21071 * modules/gc-arctwo (configure.ac): Likewise.
21072 * modules/gc-des (configure.ac): Likewise.
21073 * modules/gc-hmac-md5 (configure.ac): Likewise.
21074 * modules/gc-hmac-sha1 (configure.ac): Likewise.
21075 * modules/gc-md2 (configure.ac): Likewise.
21076 * modules/gc-md4 (configure.ac): Likewise.
21077 * modules/gc-md5 (configure.ac): Likewise.
21078 * modules/gc-random (configure.ac): Likewise.
21079 * modules/gc-rijndael (configure.ac): Likewise.
21080 * modules/gc-sha1 (configure.ac): Likewise.
21082 2007-01-08 Bruno Haible <bruno@clisp.org>
21084 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
21086 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
21088 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
21090 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
21091 * modules/fcntl-safer (configure.ac): Likewise.
21092 * modules/fopen-safer (configure.ac): Likewise.
21093 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
21094 GNULIB_FWRITEERROR macro definition.
21096 2007-01-08 Bruno Haible <bruno@clisp.org>
21098 * m4/gnulib-common.m4: New file.
21099 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
21100 (func_get_filelist): Add m4/gnulib-common.m4.
21102 2007-01-08 Bruno Haible <bruno@clisp.org>
21104 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
21107 2007-01-08 Jim Meyering <jim@meyering.net>
21109 Use a more robust test for a "can't happen" condition.
21110 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
21111 narrowed the st_size value. Presuming the "can't happen" condition
21112 is true, that narrowing could conceivably convert an invalid st_size
21113 value into a valid one. Instead, use a change based on Matthew
21114 Woehlke's original patch.
21116 Slight readability improvement: use an assert-like macro
21117 in place of literal "abort ()" uses.
21118 * lib/fts.c (fts_assert): Define.
21119 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
21120 Use this macro instead of a bare 'abort'.
21122 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
21124 Don't worry about using IRIX 5.3's wctype.h broken definitions;
21125 simply work around them.
21126 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
21127 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
21128 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
21130 Don't bother to define as macros, since the standard doesn't require it.
21131 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
21132 longer worry about IRIX 5.3.
21133 (HAVE_WCTYPE_CTMP_BUG): Remove.
21135 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
21137 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
21138 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
21139 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21140 Problems reported by Georg Schwarz for IRIX 5.3.
21142 * gnulib-tool (autoconf_minversion): Take the maximum version number
21143 found, not the minimum. Problem reported by James Youngman.
21145 2007-01-03 Karl Berry <karl@gnu.org>
21147 * doc/error.texi: new file, explaining interaction with progname.
21148 * doc/gnulib.texi: include it. Update copyright.
21150 2007-01-03 Simon Josefsson <simon@josefsson.org>
21152 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
21153 AC_CANONICAL_HOST, to improve autobuild outputs.
21155 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
21156 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21158 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
21159 sockets, server sockets, and other file descriptors. Count errors
21160 to compute the return value. Reorder the code a bit to be easier
21161 to follow. Don't set event bits that were not requested (except
21162 POLLERR and POLLHUP).
21164 2007-01-01 Bruno Haible <bruno@clisp.org>
21166 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
21168 2007-01-03 Jim Meyering <jim@meyering.net>
21170 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
21172 2007-01-02 Bruno Haible <bruno@clisp.org>
21174 * modules/settime (Include): Require timespec.h.
21175 * modules/nanosleep (Include): Likewise.
21177 2007-01-01 Bruno Haible <bruno@clisp.org>
21179 * gnulib-tool (func_emit_copyright_notice): Bump year.
21180 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
21182 2007-01-01 Bruno Haible <bruno@clisp.org>
21184 Improve support for OpenBSD.
21185 * build-aux/config.rpath (libname_spec): Export.
21186 (library_names_spec): New variable. Export.
21187 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
21188 library_names_spec from the config.rpath output. Locate shared library
21189 through the name pattern in library_names_spec.
21191 2007-01-01 Eric Blake <ebb9@byu.net>
21193 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
21195 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
21197 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
21198 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
21199 assume the C locale, and avoid an "eval" that could cause trouble.
21200 Problem with SORT reported by Bob Proulx.
21202 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
21203 Define. Trivial patch from Henning Nielsen Lund, originally
21204 sent to bug-grep@gnu.org today.
21206 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
21208 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
21209 struct stat. Problem reported by Henning Nielsen Lund.
21210 * lib/acl.c: Include acl.h first, to check interface. Don't
21211 bother to include sys/types.h and sys/stat.h again.
21213 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
21215 Import the following change from libc; problem reported by
21218 2005-10-13 Ulrich Drepper <drepper@redhat.com>
21221 * lib/argp.h: Remove __NTH for __argp_usage inline function.
21223 2006-12-28 Jim Meyering <jim@meyering.net>
21225 * build-aux/announce-gen: Do not assume that the package
21226 builds any of tar.gz, tar.bz2, and .xdelta files.
21227 Suggestion from Simon Josefsson.
21229 2006-12-28 Simon Josefsson <simon@josefsson.org>
21231 * modules/announce-gen: New file.
21233 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
21235 * lib/mbchar.h: Just include <wctype.h>; the wctype module
21236 handles its gotchas now.
21237 * lib/mbswidth.c: Likewise.
21238 * lib/wcwidth.h: Likewise.
21239 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
21240 and iswcntrl; the wctype module does this stuff now.
21241 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21242 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21243 * modules/mbchar (Depends-on): Add wctype.
21244 * modules/mbswidth (Depends-on): Likewise.
21245 * modules/wcwidth (Depends-on): Likewise.
21247 2006-12-27 Eric Blake <ebb9@byu.net>
21249 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
21250 module uses more than what <wctype.h> is required to provide.
21252 2006-12-26 Eric Blake <ebb9@byu.net>
21254 * gnulib-tool (sed_extract_prog): Avoid space-tab.
21256 2006-12-26 Eric Blake <ebb9@byu.net>
21258 * modules/absolute-header: New module.
21259 * modules/fcntl (Depends-on): Depend on it.
21260 * modules/inttypes (Depends-on): Likewise.
21261 * modules/stdint (Depends-on): Likewise.
21262 * modules/sys_stat (Depends-on): Likewise.
21263 * modules/wctype (Depends-on): Likewise.
21264 * MODULES.html.sh (Support for building libraries and
21265 executables): Document it.
21267 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
21269 * gnulib-tool (SED): Remove, undoing previous change.
21270 The problem was that it broke coreutils on Solaris, because
21271 "sed --posix" leaked into a makefile.
21272 (sed): New alias, if 'alias' and GNU sed.
21274 2006-12-24 Jim Meyering <jim@meyering.net>
21276 Work around an fchownat bug in glibc-2.4:
21277 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
21278 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
21279 in spite of the -P option.
21280 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
21282 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
21283 * modules/openat (Files): Add lib/fchownat.c.
21284 * lib/openat.c (fchownat): Don't define here. Move to...
21285 * lib/fchownat.c: ...this new file.
21287 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
21289 Fix bug reported by Bruno Haible in
21290 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
21291 where quotearg.c didn't compile on Mac OS X 10.2 because it
21292 lacks <wchar.h> and wint_t.
21293 * lib/wctype_.h (__wctype_wint_t): New type.
21294 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
21295 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
21296 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
21297 Arg is now of type __wctype_wint_t, not wint_t.
21298 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
21299 substitute HAVE_WINT_T.
21300 * modules/wctype (Files): Add m4/wint_t.m4.
21301 (wctype.h): Substitute HAVE_WINT_T.
21303 2006-12-23 Bruno Haible <bruno@clisp.org>
21305 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
21307 2006-12-23 Bruno Haible <bruno@clisp.org>
21309 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
21311 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
21314 2006-12-22 Bruno Haible <bruno@clisp.org>
21316 * lib/copy-file.c: Include acl.h.
21317 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
21318 Close the file descriptors only after being done with copy_acl.
21319 * modules/copy-file (Depends-on): Add acl.
21321 2006-12-22 Bruno Haible <bruno@clisp.org>
21323 * gnulib-tool (SED): New variable.
21324 Use $SED instead of sed everywhere.
21326 2006-12-22 Bruno Haible <bruno@clisp.org>
21328 * modules/no-c++: New file.
21329 * m4/no-c++.m4: New file.
21330 * MODULES.html.sh (Support for building libraries and executables):
21333 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
21335 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21336 Include <limits.h>, and use its INT_MAX to rewrite the
21337 j loop so that it does not overflow 'int'. Problem reported by
21339 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
21340 Play it safe by shifting left by 1 rather than multiplying by 2,
21341 as GCC is less likely to optimize this away when the value
21342 is signed (when it assumes overflow leads to undefined behavior).
21343 Also, don't assume time_t uses two's complement.
21345 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
21347 * MODULES.html.sh: New module wctype.
21348 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
21349 * lib/fnmatch.c: Don't bother to include <wchar.h> before
21350 <wctype.h>, since the new wctype module should fix this.
21351 * lib/quotearg.c: Include <wctype.h> unconditionally, since
21352 the wctype module should arrange for it.
21353 * lib/regex_internal.h: Likewise.
21354 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
21355 since the wctype module should handle this now.
21356 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
21357 * modules/fnmatch (Depends-on): Add wctype.
21358 * modules/quotearg (Depends-on): Likewise.
21359 * modules/regex (Depends-on): Likewise.
21361 2006-12-19 Bruno Haible <bruno@clisp.org>
21363 * lib/strdup.h [C++]: Wrap definitions in extern "C".
21364 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
21366 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21368 * modules/savewd (Depends-on): Fix dependency on fcntl.
21370 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
21372 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
21373 conforms to C99, rather than relying on the user's environment
21374 setting of STDINT_H.
21376 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
21377 and Eric Blake <ebb9@byu.net>
21379 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
21380 This is more consistent with the other defines here.
21381 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
21382 Port to z/OS. Problem reported by Paul Gilmartin.
21383 Change local vars to use gl_ prefix rather than ac_.
21384 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
21385 with other defines.
21386 * modules/double-slash-root: New module.
21387 * modules/dirname (Files): Remove m4/double-slash-root.m4.
21388 (Depends-on): Add double-slash-root.
21389 * MODULES.html.sh (File system functions): Mention new module.
21391 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
21393 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
21394 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
21395 This is for the benefit of gzip, which doesn't do i18n.
21397 2006-12-12 Jim Meyering <jim@meyering.net>
21399 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
21400 Reported by Andreas Schwab <schwab@suse.de>.
21402 2006-12-12 Bruno Haible <bruno@clisp.org>
21404 Merge these changes.
21405 2006-09-05 Bruno Haible <bruno@clisp.org>
21406 * lib/iconvme.c (iconv_string): No need to save and restore errno when
21407 iconv_alloc succeeded.
21408 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
21409 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
21410 test for " && dest " at the end - dest is always != NULL there. Call
21411 iconv with 4xNULL arguments initially, to reset the state. Call iconv
21412 with 2xNULL arguments, also to flush the state storage. Handle the
21413 IRIX iconv behaviour. Realloc the final result, to throw away unused
21416 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
21418 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
21419 and fchmodat unconditionally, since glibc 2.4 has them.
21420 Problem reported by Arkadiusz Miskiewicz.
21422 2006-12-10 Bruno Haible <bruno@clisp.org>
21424 * gnulib-tool (func_import): Show the include files only for those
21425 modules that are copied and specified.
21426 Reported by Karl Berry.
21428 2006-12-08 Jim Meyering <jim@meyering.net>
21430 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
21431 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
21433 * build-aux/announce-gen: Add two new options, both optional:
21434 --bootstrap-tools=TOOL_LIST
21435 a comma-separated list of tools, e.g.,
21436 autoconf,automake,bison,gnulib
21437 --gnulib-snapshot-date=DATE
21438 if gnulib is in the bootstrap tool list,
21439 then report this as the snapshot date.
21440 If not specified, use the current date/time.
21441 If you specify a date here, be sure it's UTC.
21443 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21445 * tests/test-argp-2.sh: Fix test to match actual output.
21446 (func_compare): Fix sed script to be portable.
21448 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
21450 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
21451 workaround for this case. It is not autoconfigured now; offhand
21452 it's hard to see how to autoconfigure it.
21454 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
21456 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
21457 a directory that is about to be chowned. Such a directory's
21458 initial file permissions should permit the owner only and this
21459 should not be changed until after the chown, since the group and
21460 other bits would be incorrect if they granted permission before
21463 Fix porting problem for iswctype reported by Georg Schwarz in:
21464 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
21465 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
21466 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
21467 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
21468 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21470 2006-12-03 Jim Meyering <jim@meyering.net>
21472 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
21473 p->fts_statp may not yet be defined.
21474 (fts_read): Instead, set it in the caller, once p->fts_statp is
21475 sure to be defined, and corresponds to a top-level directory.
21476 This bug made du -x fail. Here's the coreutils test case:
21477 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
21478 Reported by Mike Frysinger.
21480 2006-12-01 Jim Meyering <jim@meyering.net>
21482 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
21483 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
21484 Reported by Simon Josefsson.
21486 2006-11-30 Jim Meyering <jim@meyering.net>
21488 * m4/warning.m4: Use the all-permissive copyright notice
21489 recommended by RMS (rather than LGPL).
21490 * m4/vararrays.m4: Likewise.
21491 * m4/flexmember.m4: Likewise.
21493 2006-11-29 Bruno Haible <bruno@clisp.org>
21495 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21496 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
21498 Reported by Simon Josefsson <simon@josefsson.org>.
21500 2006-11-28 James Youngman <jay@gnu.org>
21502 * README: Advise users that they might find the bug-gnulib@gnu.org
21503 and autotools-announce@gnu.org mailing lists useful.
21505 2006-11-28 Bruno Haible <bruno@clisp.org>
21507 * m4/ptrdiff_max.m4: Remove file.
21509 2006-11-21 Bruno Haible <bruno@clisp.org>
21511 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
21513 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21514 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
21516 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21517 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
21519 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21521 2006-11-28 Jim Meyering <jim@meyering.net>
21523 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
21524 warning from "gcc -Wshadow" about shadowing the builtin.
21526 2006-11-27 Bruno Haible <bruno@clisp.org>
21528 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
21530 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21532 2006-11-27 Bruno Haible <bruno@clisp.org>
21533 Paul Eggert <eggert@cs.ucla.edu>
21535 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
21537 2006-11-26 Bruno Haible <bruno@clisp.org>
21539 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21540 noinst_LTLIBRARIES.
21542 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
21543 Bruno Haible <bruno@clisp.org>
21545 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
21546 if compiling with "gcc -ansi".
21548 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
21550 Fix some incompatibilities with gcc -ansi -pedantic.
21551 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
21552 if compiling pedantically with GCC, unless it's C99 or later.
21553 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
21554 it mishandles gcc -ansi -pedantic as well.
21555 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
21557 * lib/regexec.c (check_node_accept_bytes): Don't use auto
21558 initializers for struct if -pedantic, unless it's C99 or later.
21560 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
21562 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
21563 Don't close an fd more than once. Identical atimes indicate
21564 success, not failure.
21566 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
21568 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
21570 2006-11-23 Jim Meyering <jim@meyering.net>
21572 * build-aux/announce-gen: New file. From coreutils.
21574 2006-11-22 Jim Meyering <jim@meyering.net>
21576 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
21577 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
21578 (fts_read): Use a temporary to narrow the overused st_size member
21579 before using it in a switch statement. Reported by Matthew Woehlke.
21581 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
21582 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21584 2006-11-20 Bruno Haible <bruno@clisp.org>
21586 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
21587 changequote instead of pairs of brackets.
21588 Reported by Andreas Schwab <schwab@suse.de>.
21590 2006-11-21 Jim Meyering <jim@meyering.net>
21592 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
21593 so as to remain compatible with older compilers.
21594 Patch from Michael Deutschmann.
21596 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
21598 * MODULES.html.sh (File system functions): Add openat.
21600 * lib/openat.h (rpl_fstatat): New macro, if
21601 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
21602 (fstatat): Define to rpl_fstatat under the same conditions,
21603 unless COMPILING_FSTATAT.
21604 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
21605 seems to have the bug.
21606 * lib/fstatat.c: New file.
21607 * modules/openat (Files): Add it.
21609 2006-11-20 Bruno Haible <bruno@clisp.org>
21611 * Makefile: New file.
21613 2006-11-20 Jim Meyering <jim@meyering.net>
21615 The beginnings of syntax-related checks for gnulib.
21616 * lib/Makefile: New file.
21617 * lib/t-idcache: New script. Ensure that the two halves of
21618 idcache.c stay in sync.
21620 * lib/idcache.c: Adjust comments in user- and group- portions to
21621 be more accurate, and to be consistent with one another.
21623 2006-11-20 Jim Meyering <jim@meyering.net>
21625 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
21626 continue using the flexible array member (thus, this module performs
21627 half as many malloc calls), with the addition that...
21628 (getgroup, getuser): Consistently record a non-match via an empty
21629 "name" string, and map an empty string match to a NULL return value.
21630 * modules/idcache (Depends-on): Re-add flexmember.
21632 * lib/idcache.c (getuser): Remove all uses of the register keyword.
21633 (getuidbyname, getgroup, getgidbyname): Likewise.
21635 Use cleaner syntax: NULL rather than 0.
21636 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
21638 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
21640 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
21641 It mishandled the case where the group was missing.
21642 Problem reported by Greg Schafer.
21643 * modules/idcache: Likewise.
21645 2006-11-18 Jim Meyering <jim@meyering.net>
21647 * check-module (%exempt_header): Add exception for some
21648 conditionally-included headers.
21650 * modules/i-ring (Depends-on): Add verify.
21651 (License): Change to LGPL.
21653 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
21655 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
21656 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
21657 and inttostr.h. Use snprintf rather than uinttostr, so that
21658 LGPLed code doesn't depend on GPLed.
21660 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
21662 * modules/inline (License): Change from GPL to LGPL.
21664 2006-11-17 Jim Meyering <jim@meyering.net>
21666 * modules/d-type (License): Switch to LGPL.
21668 2006-11-15 Bruno Haible <bruno@clisp.org>
21670 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
21672 2006-11-15 Eric Blake <ebb9@byu.net>
21674 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
21675 the module dependency.
21677 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21678 Bruno Haible <bruno@clisp.org>
21680 * gnulib-tool (func_create_testdir): Add license consistency check.
21682 2006-11-15 Eric Blake <ebb9@byu.net>
21684 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
21685 random "(cached)" in configure output.
21687 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21689 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
21690 test for conforming inttypes.h is both announced and cached.
21692 * MODULES.html.sh (seen_modules, seen_files): New variables.
21693 (func_module): Rewrite to use a few less gnulib-tool and sed
21694 invocations. Avoid a couple of quadratic algorithms for ...
21695 (missed_modules, missed_files): ... these, with ...
21696 (func_append, func_tmpdir): ... these new functions, from
21697 gnulib-tool. Analogously, install traps for cleanup.
21699 * tests/test-gc.c (main): Remove unused variables.
21700 * tests/test-read-file.c: Include stdlib.h, for 'free'.
21702 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
21704 * modules/inttostr (License): Change to LGPL.
21706 2006-11-14 Eric Blake <ebb9@byu.net>
21708 * modules/tempname (License): Change to LGPL.
21710 2006-11-14 Eric Blake <ebb9@byu.net>
21712 * doc/functions.texi (Function Portability): *printf functions on
21713 Cygwin now understand all POSIX size specifiers.
21715 2006-11-14 Bruno Haible <bruno@clisp.org>
21717 * modules/c-ctype (License): Change to LGPL.
21719 2006-11-12 Bruno Haible <bruno@clisp.org>
21721 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21722 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
21723 for GNOME libraries, for which the include files are installed in
21724 subdirectories of $prefix/include.
21726 2006-11-12 Bruno Haible <bruno@clisp.org>
21728 * m4/lib-link.m4: Require at least autoconf-2.54.
21729 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
21730 name to underscores for the --with option.
21732 2006-11-13 Bruno Haible <bruno@clisp.org>
21734 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
21735 the tests directory.
21736 Reported by Ralf Wildenhues.
21738 2006-11-13 Bruno Haible <bruno@clisp.org>
21740 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
21741 (func_emit_initmacro_end): Undo the override here.
21742 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
21743 Works around the famous automake error in coreutils.
21745 2006-11-13 Eric Blake <ebb9@byu.net>
21747 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
21748 element, not its node.
21750 2006-11-12 Bruno Haible <bruno@clisp.org>
21752 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
21753 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
21755 2006-11-12 Bruno Haible <bruno@clisp.org>
21757 * gnulib-tool: New option --local-symlink.
21758 (func_usage): Document it.
21759 (lsymbolic): New variable.
21760 (func_import, func_create_testdir): If --symlink was not specified,
21761 test whether --local-symlink was specified and the file comes from
21762 the local_gnulib_dir.
21764 2006-11-12 Bruno Haible <bruno@clisp.org>
21766 * gnulib-tool (func_ln): New function.
21767 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
21769 2006-11-12 Bruno Haible <bruno@clisp.org>
21771 Finish support for source files in subdirectories.
21772 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
21773 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
21775 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
21777 2006-11-12 Bruno Haible <bruno@clisp.org>
21779 * gnulib-tool (func_get_automake_snippet): Synthesize also an
21780 EXTRA_lib_SOURCES augmentation.
21781 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
21783 2006-11-12 Jim Meyering <jim@meyering.net>
21785 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
21786 file descriptors. This also averts a failure on systems with
21787 native openat support when a traversed directory lacks "x" access.
21788 * lib/fts_.h: Include "i-ring.h"
21789 (struct FTS) [fts_fd_ring]: New member.
21790 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
21791 (FCHDIR): Add parentheses.
21792 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
21793 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
21794 When descending, rather than simply closing the previous
21795 fts_cwd_fd value, push that file descriptor onto the ring.
21796 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
21797 (fts_open): Initialize the new fd_ring member.
21798 (fts_close): Clear the ring.
21799 (fts_safe_changedir): When possible, use our new fd_ring to skip
21800 the diropen and fstat and dev/ino comparison that would normally
21801 accompany a virtual `chdir ("..")'.
21803 * modules/fts (Depends-on): Add i-ring.
21804 * modules/i-ring: New module.
21805 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
21806 * m4/i-ring.m4: New file.
21808 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21810 * gnulib-tool (func_create_testdir): Fix replacement of
21811 `build-aux' in configure.ac. Run autotools in gltests
21813 (func_create_testdir, func_create_megatestdir, test): There is
21814 no need for '--force' in most autotool invocations in a new
21815 tree. Actually fail the whole test if any of the tools, or the
21816 configure or make stages fail.
21818 Sync from Automake.
21819 * build-aux/gnupload: Revert last change. Add pointer to upload
21820 instructions of the GNU Maintenance Instructions.
21821 Suggestion by Karl Berry.
21823 2006-11-10 Jim Meyering <jim@meyering.net>
21825 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
21827 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
21829 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
21830 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
21831 (bind_textdomain_codeset) [! ENABLE_NLS]:
21832 Evaluate all the arguments. That way, callers get compatible behavior
21833 if the arguments have side effects. Also, it avoids some GCC
21834 diagnostics in some cases; Joel E. Denny reported problems when Bison
21835 was configured with --enable-gcc-warnigs.
21837 2006-11-10 Jim Meyering <jim@meyering.net>
21839 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
21840 relevant options in CFLAGS (like -O, -fno-inline) are taken into
21843 2006-11-10 Jim Meyering <jim@meyering.net>
21845 * modules/inline: New file/module.
21846 * modules/xalloc (Files): Remove m4/inline.m4.
21847 (Depends-on): Add inline, instead.
21848 * modules/oset: Likewise.
21849 * modules/list: Likewise.
21851 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
21853 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
21854 Problem reported by Matthew Woehlke.
21856 2006-11-09 Bruno Haible <bruno@clisp.org>
21858 * lib/tempname.c (gen_tempname): Remove variant that invokes
21860 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
21863 2006-11-08 Bruno Haible <bruno@clisp.org>
21865 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
21866 to 'yes' instead of 'cross-compiling'.
21868 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
21870 * lib/quotearg.h (quotearg_free): New decl.
21871 * lib/quotearg.c (quotearg_free): New function.
21872 (slot0, nslots, slotvec0, slotvec):
21873 Now file-scope so that quotearg_free can get at them.
21875 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21877 Sync from Automake.
21878 * build-aux/gnupload: Add missing 'gnu' to example URL.
21879 Report by Karl Berry.
21881 2006-11-08 Bruno Haible <bruno@clisp.org>
21883 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
21884 Suggested by Paul Eggert.
21886 2006-11-08 Jim Meyering <jim@meyering.net>
21888 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
21889 It's already included if !_LIBC.
21890 (fts_safe_changedir): Add a comment.
21892 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
21894 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
21895 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
21898 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
21899 definitions up, to avoid colliding with change below.
21900 (static_inline) [HAVE_INLINE]: New macro.
21901 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
21902 Provide extern decls when !HAVE_INLINE. Do not define unless
21903 static_inline is defined, either by us or by xmalloc.c. Use
21904 static_inline rather than static inline.
21905 (XCALLOC): Optimize sizeof(T) = 1 case.
21906 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
21908 2006-11-07 Bruno Haible <bruno@clisp.org>
21910 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
21911 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
21913 * modules/xalloc (Files): Add m4/inline.m4.
21915 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21917 * README: Fix typo.
21918 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
21919 (Miscellanous Notes): ...from this.
21921 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
21923 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
21924 Mention that offsetof should be used instead of sizeof.
21927 2006-11-07 Bruno Haible <bruno@clisp.org>
21929 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
21931 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
21933 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
21934 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
21935 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21936 (gl_tree_add_before, gl_tree_add_after):
21937 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
21938 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
21939 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
21940 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
21941 (gl_linked_add_after, gl_linked_add_at): Likewise.
21942 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
21943 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
21944 (gl_tree_add_before, gl_tree_add_after): Likewise.
21945 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
21946 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
21947 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
21949 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21951 * lib/gl_oset.h: Use C comment style, not C++ comment style.
21953 2006-11-06 Bruno Haible <bruno@clisp.org>
21955 * m4/inline.m4: New file.
21956 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
21957 * modules/list (Files): Add m4/inline.m4.
21958 * modules/oset (Files): Likewise.
21960 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
21962 * lib/idcache.c: Include <stddef.h>, for offsetof.
21963 (struct userid.name): Change from char * to a flexible array member.
21965 * modules/idcache (Depends-on): Add flexmember.
21967 * MODULES.html.sh (Core language properties): New module flexmember.
21968 * modules/flexmember, m4/flexmember.m4: New files.
21970 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
21971 inline functions that are identical with the old xnmalloc_inline,
21972 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
21973 that we can avoid some unnecessary integer multiplications and
21974 divisions in the common case where the element size is known at
21976 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
21978 (xnboundedmalloc): Remove.
21979 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
21980 arguments, for consistency with rest of this header.
21981 (xcharalloc): Rewrite using XNMALLOC.
21982 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
21983 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
21984 versions have been moved to lib/xalloc.h and renamed to be the
21985 non-*_inline versions.
21986 (xmalloc, xrealloc): Implement without reference to the xnmalloc
21987 and xnrealloc functions, since those functions are now inline and
21989 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
21990 renaming described above.
21991 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
21992 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
21993 captures the dependency in AC_C_INLINE.
21995 New module canonicalize-lgpl, proposed by Charles Wilson in
21996 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
21997 with a few small changes afterwards.
21998 * MODULES.html.sh (File system functions): New module
22000 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
22001 and canonicalize_file_name.
22002 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
22003 * modules/canonicalize-lgpl: New files.
22005 2006-11-05 Bruno Haible <bruno@clisp.org>
22007 * gnulib-tool (func_import, func_create_testdir): Create directories
22008 also for files in subdirectories of lib/.
22010 2006-11-05 Bruno Haible <bruno@clisp.org>
22012 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
22015 2006-11-03 Bruno Haible <bruno@clisp.org>
22017 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
22018 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
22019 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
22020 (xnboundedmalloc): New inline function.
22021 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
22022 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
22024 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
22026 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
22027 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
22028 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
22030 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
22031 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
22033 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
22034 gl_tree_add_after): Use XMALLOC instead of xmalloc.
22035 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
22037 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
22038 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
22039 gl_tree_add_after): Use XMALLOC instead of xmalloc.
22040 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
22041 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
22042 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
22043 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
22045 2006-11-03 Bruno Haible <bruno@clisp.org>
22047 * lib/c-ctype.h [C++]: Define functions without name mangling.
22048 * lib/fwriteerror.h [C++]: Likewise.
22049 * lib/gcd.h [C++]: Likewise.
22050 * lib/linebreak.h [C++]: Likewise.
22052 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
22054 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
22055 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
22056 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
22057 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
22058 Check for functions and headers just once.
22059 Check for declaration of canonicalize_file_name.
22060 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
22062 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
22064 * gnulib-tool (func_import): Fix typo in actioncmd.
22066 2006-11-02 Bruno Haible <bruno@clisp.org>
22068 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
22069 newline sequence in the Makefile.am snippet as a space, like "make"
22071 Reported by Roger Persson <perrog@gmail.com>.
22073 2006-11-01 Bruno Haible <bruno@clisp.org>
22075 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
22076 already declared in <string.h>.
22077 * lib/strcase.h (strncasecmp): Don't declare it if yes.
22079 2006-11-01 Bruno Haible <bruno@clisp.org>
22081 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
22082 * lib/strcase.h: Include <string.h>.
22083 (strcasecmp): Define to rpl_strcasecmp here.
22085 2006-11-01 Bruno Haible <bruno@clisp.org>
22087 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
22089 2006-11-01 Eric Blake <ebb9@byu.net>
22091 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
22093 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
22095 2006-10-29 Bruno Haible <bruno@clisp.org>
22097 Make it compile in C++ mode.
22098 * lib/full-write.c (full_rw): Add a cast.
22100 2006-11-01 Bruno Haible <bruno@clisp.org>
22102 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
22103 be POSIX compliant.
22104 Reported by Roger Persson <perrog@gmail.com>.
22106 2006-11-01 Eric Blake <ebb9@byu.net>
22108 * lib/getopt_.h: Fix comments.
22110 2006-10-31 Eric Blake <ebb9@byu.net>
22112 * modules/tmpdir (Depends-on): Add sys_stat.
22113 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
22114 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
22115 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
22116 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
22119 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
22121 Avoid some C++ diagnostics reported by Bruno Haible.
22122 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
22124 (quotearg_alloc): Use xcharalloc rather than xmalloc.
22125 (struct slotvec): Move to top level.
22126 (quotearg_n_options): Rewrite to avoid xmalloc.
22127 * lib/xalloc.h (xcharalloc): New function.
22128 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
22129 [defined __cplusplus]: Add function template that provides result
22130 type propagation. This part of the change is from Bruno Haible.
22132 2006-10-29 Bruno Haible <bruno@clisp.org>
22134 Make it compile in C++ mode.
22135 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
22136 * lib/strnlen1.c (strnlen1): Cast memchr result.
22137 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
22138 * lib/clean-temp.c (string_equals, string_hash): Add casts.
22139 (create_temp_dir): Rename local variable 'template'.
22140 (compile_csharp_using_sscli): Add cast.
22141 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
22142 * lib/findprog.c (find_in_path): Likewise.
22143 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
22144 * lib/wait-process.c (register_slave_subprocess): Likewise.
22146 2006-10-22 Bruno Haible <bruno@clisp.org>
22148 * modules/tsearch: New file.
22149 * lib/tsearch.h: New file.
22150 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
22151 * m4/tsearch.m4: New file.
22152 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
22154 2006-10-29 Eric Blake <ebb9@byu.net>
22156 * lib/arcfour.c: Assume config.h.
22157 * lib/arctwo.c: Likewise.
22158 * lib/base64.c: Likewise.
22159 * lib/check-version.c: Likewise.
22160 * lib/crc.c: Likewise.
22161 * lib/des.c: Likewise.
22162 * lib/gc-gnulib.c: Likewise.
22163 * lib/gc-libgcrypt.c: Likewise.
22164 * lib/gc-pbkdf2-sha1.c: Likewise.
22165 * lib/getaddrinfo.c: Likewise.
22166 * lib/getdelim.c: Likewise.
22167 * lib/getline.c: Likewise.
22168 * lib/hmac-md5.c: Likewise.
22169 * lib/hmac-sha1.c: Likewise.
22170 * lib/iconvme.c: Likewise.
22171 * lib/md2.c: Likewise.
22172 * lib/md4.c: Likewise.
22173 * lib/memxor.c: Likewise.
22174 * lib/read-file.c: Likewise.
22175 * lib/readline.c: Likewise.
22176 * lib/rijndael-alg-fst.c: Likewise.
22177 * lib/rijndael-api-fst.c: Likewise.
22178 * lib/xgetdomainname.c: Likewise.
22180 2006-10-28 Eric Blake <ebb9@byu.net>
22182 * lib/xstrndup.c: Assume config.h.
22184 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
22186 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
22187 stat-macros.h is now for our own macros, whereas stat_h is for
22188 macros in the <sys/stat.h> name space.
22189 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
22190 (STAT_MACROS_H): Remove.
22191 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
22192 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
22193 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
22194 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
22195 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
22196 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
22197 Move these macros to ...
22198 * lib/stat_.h: here. Don't include stat-macros.h.
22199 * lib/canonicalize.c: Don't include stat-macros.h.
22200 * lib/chown.c: Likewise.
22201 * lib/euidaccess.c: Likewise.
22202 * lib/file-type.c: Likewise.
22203 * lib/filemode.c: Likewise.
22204 * lib/glob.c: Likewise.
22205 * lib/isapipe.c: Likewise.
22206 * lib/lchown.c: Likewise.
22207 * lib/lstat.c: Likewise.
22208 * lib/mkdir-p.c: Likewise.
22209 * lib/rmdir.c: Likewise.
22210 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
22211 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
22212 unless mkdir isn't declared, to speed up 'configure'.
22213 Always create sys/stat.h, since it's unlikely any real sys/stat.h
22214 would define all the S_* symbols.
22215 * modules/canonicalize (Depends-on):
22216 Depend on sys_stat, not stat-macros.
22217 * modules/chown: Likewise.
22218 * modules/euidaccess: Likewise.
22219 * modules/filemode: Likewise.
22220 * modules/file-type: Likewise.
22221 * modules/glob: Likewise.
22222 * modules/isapipe: Likewise.
22223 * modules/lchown: Likewise.
22224 * modules/lstat: Likewise.
22225 * modules/mkancesdirs: Likewise.
22226 * modules/rmdir: Likewise.
22227 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
22228 * modules/modechange: Likewise.
22229 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
22230 (configure.ac): Remove gl_STAT_MACROS.
22231 * modules/sys_stat (Depends-on): Remove stat-macros.
22233 2006-10-27 Bruno Haible <bruno@clisp.org>
22235 * m4/signed.m4: Remove file.
22236 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
22238 * modules/vasnprintf (Files): Remove m4/signed.m4.
22240 2006-10-27 Bruno Haible <bruno@clisp.org>
22242 Update to GNU gettext 0.16.
22243 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
22244 m4/inttypes-h.m4, m4/signed.m4.
22245 * m4/gettext.m4: Update to GNU gettext 0.16.
22246 * m4/intl.m4: New file, from GNU gettext.
22247 * m4/intldir.m4: New file, from GNU gettext.
22248 * config/srclist.txt: Update
22250 2006-10-27 Eric Blake <ebb9@byu.net>
22252 * MODULES.html.sh: Document tempname.
22253 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
22255 (Files): Move lib/tempname.c...
22256 * modules/tempname: ...to this new module.
22257 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
22258 (gl_PREREQ_TEMPNAME): Move...
22259 * m4/tempname.m4: ...to this new file.
22260 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
22261 * modules/sys_stat (Depends-on): Add stat-macros.
22262 * lib/stat_.h (includes): Pick up stat macros.
22263 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
22264 if stat macros are broken.
22265 * lib/tempname.c (includes): No need to include "stat-macros.h".
22266 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
22267 (direxists, __path_search) [!_LIBC]: Don't compile these in
22268 gnulib; the tmpdir module covers that.
22269 * lib/tempname.h: New file.
22271 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
22273 * COPYING: Explain how gnulib-tool converts licence headers.
22274 Almost all wording by Eric Blake.
22276 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
22278 * lib/mbchar.h (is_basic_table): Make read-only.
22279 * lib/mbchar.c (is_basic_table): Likewise.
22280 Reported by John Darrington.
22282 2006-10-25 Bruno Haible <bruno@clisp.org>
22284 * lib/progname.h (set_program_name): Undefine before defining.
22286 2006-10-25 Bruno Haible <bruno@clisp.org>
22288 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
22289 false for non-gcc C++ compilers.
22290 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22292 2006-10-24 Bruno Haible <bruno@clisp.org>
22294 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
22295 iconv implementations like Irix iconv.
22297 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
22299 * modules/vararrays: New file.
22300 * m4/vararrays.m4: New file, taken from diffutils.
22301 * MODULES.html.sh: New module vararrays.
22303 2006-10-24 Karl Berry <karl@gnu.org>
22305 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
22306 Don't call GNU Unix.
22308 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22310 * users.txt: Add Libtool.
22314 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
22316 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
22317 to gnulib's policy of including config.h unconditionally.
22319 2006-10-24 Bruno Haible <bruno@clisp.org>
22321 * modules/wcwidth (Files): Add m4/wint_t.m4.
22322 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
22323 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
22325 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
22327 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
22328 to pacify GCC with some -W flags enabled. Problem reported by
22331 2006-10-24 Jim Meyering <jim@meyering.net>
22333 * MODULES.html.sh: Remove uinttostr. It's not a module.
22334 Reported by Karl Berry.
22336 2006-10-23 Bruno Haible <bruno@clisp.org>
22338 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
22340 2006-10-24 Bruno Haible <bruno@clisp.org>
22342 * lib/gl_list.h: Use C comment style, not C++ comment style.
22344 2006-10-23 Eric Blake <ebb9@byu.net>
22346 * lib/getaddrinfo.c (includes): Add missing include.
22348 2006-10-23 Bruno Haible <bruno@clisp.org>
22349 Paul Eggert <eggert@cs.ucla.edu>
22351 Ability to rename obstack_free.
22352 * lib/obstack.h (__obstack_free): New macro. Declare instead of
22354 (obstack_free): Invoke the __obstack_free macro.
22355 * lib/obstack.c (obstack_free): Use __obstack_free macro.
22357 2006-10-23 Bruno Haible <bruno@clisp.org>
22358 Paul Eggert <eggert@cs.ucla.edu>
22360 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
22361 __argc, __argv from the declaration. (They are defined as macros on
22364 2006-10-22 Bruno Haible <bruno@clisp.org>
22366 * doc/gnulib-intro.texi: New file.
22367 * doc/gnulib.texi: Include it.
22369 2006-10-21 Bruno Haible <bruno@clisp.org>
22371 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
22372 "Introduction", "Miscellanous Notes", "Particular Modules".
22374 2006-10-21 Bruno Haible <bruno@clisp.org>
22376 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22377 Change mostlyclean-local rule to avoid sh syntax error from bash
22378 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
22380 2006-10-23 Jim Meyering <jim@meyering.net>
22382 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
22383 in place of snprintf.
22385 * modules/inttostr (Files): Add lib/uinttostr.c.
22386 * lib/uinttostr.c (inttostr): New file/function.
22387 * lib/inttostr.h (uinttostr): Declare.
22388 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
22389 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
22391 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
22393 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
22395 * lib/canonicalize.c (ELOOP): Define if not already defined.
22396 Problem reported by Bruno Haible in
22397 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
22399 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
22401 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
22402 Problem reported by Perry Smith and Ville Laurikari.
22404 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
22407 2006-10-19 Bruno Haible <bruno@clisp.org>
22409 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
22412 2006-10-19 Bruno Haible <bruno@clisp.org>
22414 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
22417 2006-10-19 Bruno Haible <bruno@clisp.org>
22419 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
22421 2006-10-19 Bruno Haible <bruno@clisp.org>
22423 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
22426 2006-10-19 Bruno Haible <bruno@clisp.org>
22428 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
22431 2006-10-19 Bruno Haible <bruno@clisp.org>
22433 * gnulib-tool (func_create_testdir): Don't include ftruncate and
22434 mountlist by default.
22436 2006-10-16 Bruno Haible <bruno@clisp.org>
22438 * lib/c-strstr.c: Include c-strstr.h.
22440 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
22442 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
22445 2006-10-18 Bruno Haible <bruno@clisp.org>
22447 * lib/lock.h [C++]: Wrap definitions in extern "C".
22449 2006-10-18 Bruno Haible <bruno@clisp.org>
22451 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
22454 2006-10-18 Bruno Haible <bruno@clisp.org>
22456 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
22458 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
22460 * lib/xstrtol.h: Include gettext.h.
22461 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
22462 Problem reported by Eric Blake.
22463 * modules/xstrtol (Depends-on): Add gettext-h.
22465 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
22467 * lib/strftime.c (advance): New macro.
22468 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
22469 incomplete type, so you can't add 0 to it. Problem and patch
22470 reported by Eelco Dolstra for dietlibc.
22472 2006-10-18 Jim Meyering <jim@meyering.net>
22474 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
22475 type for a local, and rename it: s/up/user_proc/.
22477 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
22479 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
22480 READ_UTMP_USER_PROCESS.
22481 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
22483 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
22485 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
22486 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
22488 2006-10-17 Eric Blake <ebb9@byu.net>
22490 * lib/sigprocmask.c (sigprocmask): Fix typo.
22492 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
22494 * modules/clean-temp (Makefile.am): Don't add to make output...
22495 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
22498 2006-10-17 Bruno Haible <bruno@clisp.org>
22500 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
22501 differently if DEFAULT_TEXT_DOMAIN is set.
22503 2006-10-16 Bruno Haible <bruno@clisp.org>
22505 * lib/clean-temp.c: Include fwriteerror.h.
22507 2006-10-16 Bruno Haible <bruno@clisp.org>
22509 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
22511 2006-10-16 Bruno Haible <bruno@clisp.org>
22513 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
22514 * lib/sigprocmask.h: Include <sys/types.h>.
22515 (sigset_t): Use the system's definition if present.
22517 2006-10-17 Eric Blake <ebb9@byu.net>
22519 * lib/xvasprintf.c (includes): Assume config.h.
22520 * lib/xasprintf.c (includes): Likewise.
22522 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
22524 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
22525 at least as wide as intmax_t.
22527 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
22529 (Imported from Automake.)
22530 * build-aux/gnupload: Update to version 1.1 of directive file.
22532 2006-10-16 Eric Blake <ebb9@byu.net>
22534 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
22535 match Automake 1.10a.
22537 2006-10-14 Bruno Haible <bruno@clisp.org>
22539 * modules/sigprocmask: New file.
22540 * lib/sigprocmask.h: New file.
22541 * lib/sigprocmask.c: New file.
22542 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
22543 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
22544 request sigprocmask.o.
22545 (gl_PREREQ_SIGPROCMASK): New macro.
22546 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
22547 (Depends-on): Add sigprocmask.
22548 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
22549 gt_SIGNALBLOCKING. Test for 'raise' only once.
22550 * lib/fatal-signal.c: Include sigprocmask.h.
22551 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
22552 unblock_fatal_signals): Define always.
22553 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22556 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
22558 Sync from Automake.
22559 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
22560 which incorrectly sets the mode of an existing destination
22561 directory. In some cases the unpatched install-sh could do the
22562 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
22563 system. We hope this is rare in practice, but it's clearly worth
22564 fixing. Problem reported by Alex Unleashed in
22565 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
22566 Also, don't bother to check for -m bugs unless we're using -m;
22567 suggested by Stepan Kasal.
22569 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22571 Sync from Automake.
22572 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
22573 `-c' flag, so they appear at the same position as in %FASTDEP%
22574 mode in depend2.am. Fixes build failure for FreeBSD's c89,
22575 which ignores unknown options only after the first non-option.
22576 Bug report against M4 by Nelson H. F. Beebe.
22578 2006-10-13 Jim Meyering <jim@meyering.net>
22580 Fix a bug in yesterday's change.
22581 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
22582 p->fts_statp->st_dev would be used uninitialized.
22583 Ensures that we always call fts_stat on the very first entry.
22584 Miklos Szeredi reported that find -xdev stopped working.
22586 2006-10-12 Bruno Haible <bruno@clisp.org>
22588 * gnulib-tool (func_get_automake_snippet): Append an automatically
22589 computed EXTRA_DIST augmentation.
22590 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
22591 * modules/alloca-opt (Makefile.am): Likewise.
22592 * modules/allocsa (Makefile.am): Likewise.
22593 * modules/arcfour (Makefile.am): Likewise.
22594 * modules/arctwo (Makefile.am): Likewise.
22595 * modules/argmatch (Makefile.am): Likewise.
22596 * modules/argz (Makefile.am): Likewise.
22597 * modules/atexit (Makefile.am): Likewise.
22598 * modules/backupfile (Makefile.am): Likewise.
22599 * modules/byteswap (Makefile.am): Likewise.
22600 * modules/c-strtod (Makefile.am): Likewise.
22601 * modules/c-strtold (Makefile.am): Likewise.
22602 * modules/calloc (Makefile.am): Likewise.
22603 * modules/canon-host (Makefile.am): Likewise.
22604 * modules/canonicalize (Makefile.am): Likewise.
22605 * modules/chdir-long (Makefile.am): Likewise.
22606 * modules/chdir-safer (Makefile.am): Likewise.
22607 * modules/check-version (Makefile.am): Likewise.
22608 * modules/chown (Makefile.am): Likewise.
22609 * modules/cloexec (Makefile.am): Likewise.
22610 * modules/close-stream (Makefile.am): Likewise.
22611 * modules/closeout (Makefile.am): Likewise.
22612 * modules/crc (Makefile.am): Likewise.
22613 * modules/csharpexec (Makefile.am): Likewise.
22614 * modules/cycle-check (Makefile.am): Likewise.
22615 * modules/des (Makefile.am): Likewise.
22616 * modules/dev-ino (Makefile.am): Likewise.
22617 * modules/dirfd (Makefile.am): Likewise.
22618 * modules/dirname (Makefile.am): Likewise.
22619 * modules/dup2 (Makefile.am): Likewise.
22620 * modules/eealloc (Makefile.am): Likewise.
22621 * modules/error (Makefile.am): Likewise.
22622 * modules/euidaccess (Makefile.am): Likewise.
22623 * modules/exclude (Makefile.am): Likewise.
22624 * modules/exitfail (Makefile.am): Likewise.
22625 * modules/fcntl-safer (Makefile.am): Likewise.
22626 * modules/fcntl (Makefile.am): Likewise.
22627 * modules/file-type (Makefile.am): Likewise.
22628 * modules/fileblocks (Makefile.am): Likewise.
22629 * modules/filemode (Makefile.am): Likewise.
22630 * modules/filenamecat (Makefile.am): Likewise.
22631 * modules/fnmatch (Makefile.am): Likewise.
22632 * modules/fopen-safer (Makefile.am): Likewise.
22633 * modules/fpending (Makefile.am): Likewise.
22634 * modules/fprintftime (Makefile.am): Likewise.
22635 * modules/free (Makefile.am): Likewise.
22636 * modules/fsusage (Makefile.am): Likewise.
22637 * modules/ftruncate (Makefile.am): Likewise.
22638 * modules/fts (Makefile.am): Likewise.
22639 * modules/gc-arcfour (Makefile.am): Likewise.
22640 * modules/gc-des (Makefile.am): Likewise.
22641 * modules/gc-hmac-md5 (Makefile.am): Likewise.
22642 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
22643 * modules/gc-md4 (Makefile.am): Likewise.
22644 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22645 * modules/gc-sha1 (Makefile.am): Likewise.
22646 * modules/gc (Makefile.am): Likewise.
22647 * modules/getaddrinfo (Makefile.am): Likewise.
22648 * modules/getcwd (Makefile.am): Likewise.
22649 * modules/getdelim (Makefile.am): Likewise.
22650 * modules/getdomainname (Makefile.am): Likewise.
22651 * modules/getgroups (Makefile.am): Likewise.
22652 * modules/gethostname (Makefile.am): Likewise.
22653 * modules/gethrxtime (Makefile.am): Likewise.
22654 * modules/getline (Makefile.am): Likewise.
22655 * modules/getloadavg (Makefile.am): Likewise.
22656 * modules/getlogin_r (Makefile.am): Likewise.
22657 * modules/getndelim2 (Makefile.am): Likewise.
22658 * modules/getopt (Makefile.am): Likewise.
22659 * modules/getpagesize (Makefile.am): Likewise.
22660 * modules/getpass-gnu (Makefile.am): Likewise.
22661 * modules/getpass (Makefile.am): Likewise.
22662 * modules/getsubopt (Makefile.am): Likewise.
22663 * modules/gettime (Makefile.am): Likewise.
22664 * modules/gettimeofday (Makefile.am): Likewise.
22665 * modules/getugroups (Makefile.am): Likewise.
22666 * modules/getusershell (Makefile.am): Likewise.
22667 * modules/glob (Makefile.am): Likewise.
22668 * modules/group-member (Makefile.am): Likewise.
22669 * modules/hard-locale (Makefile.am): Likewise.
22670 * modules/hash (Makefile.am): Likewise.
22671 * modules/hmac-md5 (Makefile.am): Likewise.
22672 * modules/hmac-sha1 (Makefile.am): Likewise.
22673 * modules/human (Makefile.am): Likewise.
22674 * modules/idcache (Makefile.am): Likewise.
22675 * modules/imaxabs (Makefile.am): Likewise.
22676 * modules/imaxdiv (Makefile.am): Likewise.
22677 * modules/inet_ntop (Makefile.am): Likewise.
22678 * modules/inet_pton (Makefile.am): Likewise.
22679 * modules/intprops (Makefile.am): Likewise.
22680 * modules/inttostr (Makefile.am): Likewise.
22681 * modules/inttypes (Makefile.am): Likewise.
22682 * modules/isapipe (Makefile.am): Likewise.
22683 * modules/javaversion (Makefile.am): Likewise.
22684 * modules/lchmod (Makefile.am): Likewise.
22685 * modules/lchown (Makefile.am): Likewise.
22686 * modules/localcharset (Makefile.am): Likewise.
22687 * modules/long-options (Makefile.am): Likewise.
22688 * modules/lstat (Makefile.am): Likewise.
22689 * modules/malloc (Makefile.am): Likewise.
22690 * modules/mathl (Makefile.am): Likewise.
22691 * modules/mbchar (Makefile.am): Likewise.
22692 * modules/md2 (Makefile.am): Likewise.
22693 * modules/md4 (Makefile.am): Likewise.
22694 * modules/md5 (Makefile.am): Likewise.
22695 * modules/memcasecmp (Makefile.am): Likewise.
22696 * modules/memchr (Makefile.am): Likewise.
22697 * modules/memcmp (Makefile.am): Likewise.
22698 * modules/memcoll (Makefile.am): Likewise.
22699 * modules/memcpy (Makefile.am): Likewise.
22700 * modules/memmem (Makefile.am): Likewise.
22701 * modules/memmove (Makefile.am): Likewise.
22702 * modules/mempcpy (Makefile.am): Likewise.
22703 * modules/memrchr (Makefile.am): Likewise.
22704 * modules/memset (Makefile.am): Likewise.
22705 * modules/memxor (Makefile.am): Likewise.
22706 * modules/mkancesdirs (Makefile.am): Likewise.
22707 * modules/mkdir-p (Makefile.am): Likewise.
22708 * modules/mkdir (Makefile.am): Likewise.
22709 * modules/mkdtemp (Makefile.am): Likewise.
22710 * modules/mkstemp (Makefile.am): Likewise.
22711 * modules/mktime (Makefile.am): Likewise.
22712 * modules/modechange (Makefile.am): Likewise.
22713 * modules/mountlist (Makefile.am): Likewise.
22714 * modules/nanosleep (Makefile.am): Likewise.
22715 * modules/obstack (Makefile.am): Likewise.
22716 * modules/openat (Makefile.am): Likewise.
22717 * modules/pagealign_alloc (Makefile.am): Likewise.
22718 * modules/pathmax (Makefile.am): Likewise.
22719 * modules/physmem (Makefile.am): Likewise.
22720 * modules/poll (Makefile.am): Likewise.
22721 * modules/posixtm (Makefile.am): Likewise.
22722 * modules/posixver (Makefile.am): Likewise.
22723 * modules/putenv (Makefile.am): Likewise.
22724 * modules/quote (Makefile.am): Likewise.
22725 * modules/quotearg (Makefile.am): Likewise.
22726 * modules/raise (Makefile.am): Likewise.
22727 * modules/read-file (Makefile.am): Likewise.
22728 * modules/readline (Makefile.am): Likewise.
22729 * modules/readlink (Makefile.am): Likewise.
22730 * modules/readtokens (Makefile.am): Likewise.
22731 * modules/readutmp (Makefile.am): Likewise.
22732 * modules/realloc (Makefile.am): Likewise.
22733 * modules/regex (Makefile.am): Likewise.
22734 * modules/rename-dest-slash (Makefile.am): Likewise.
22735 * modules/rename (Makefile.am): Likewise.
22736 * modules/rijndael (Makefile.am): Likewise.
22737 * modules/rmdir (Makefile.am): Likewise.
22738 * modules/rpmatch (Makefile.am): Likewise.
22739 * modules/safe-read (Makefile.am): Likewise.
22740 * modules/safe-write (Makefile.am): Likewise.
22741 * modules/same-inode (Makefile.am): Likewise.
22742 * modules/same (Makefile.am): Likewise.
22743 * modules/save-cwd (Makefile.am): Likewise.
22744 * modules/savedir (Makefile.am): Likewise.
22745 * modules/setenv (Makefile.am): Likewise.
22746 * modules/settime (Makefile.am): Likewise.
22747 * modules/sha1 (Makefile.am): Likewise.
22748 * modules/sig2str (Makefile.am): Likewise.
22749 * modules/snprintf (Makefile.am): Likewise.
22750 * modules/stat-macros (Makefile.am): Likewise.
22751 * modules/stat-time (Makefile.am): Likewise.
22752 * modules/stdbool (Makefile.am): Likewise.
22753 * modules/stdint (Makefile.am): Likewise.
22754 * modules/stdlib-safer (Makefile.am): Likewise.
22755 * modules/stpcpy (Makefile.am): Likewise.
22756 * modules/stpncpy (Makefile.am): Likewise.
22757 * modules/strcase (Makefile.am): Likewise.
22758 * modules/strcasestr (Makefile.am): Likewise.
22759 * modules/strchrnul (Makefile.am): Likewise.
22760 * modules/strcspn (Makefile.am): Likewise.
22761 * modules/strdup (Makefile.am): Likewise.
22762 * modules/strerror (Makefile.am): Likewise.
22763 * modules/strftime (Makefile.am): Likewise.
22764 * modules/strndup (Makefile.am): Likewise.
22765 * modules/strnlen (Makefile.am): Likewise.
22766 * modules/strpbrk (Makefile.am): Likewise.
22767 * modules/strsep (Makefile.am): Likewise.
22768 * modules/strstr (Makefile.am): Likewise.
22769 * modules/strtod (Makefile.am): Likewise.
22770 * modules/strtoimax (Makefile.am): Likewise.
22771 * modules/strtok_r (Makefile.am): Likewise.
22772 * modules/strtol (Makefile.am): Likewise.
22773 * modules/strtoll (Makefile.am): Likewise.
22774 * modules/strtoul (Makefile.am): Likewise.
22775 * modules/strtoull (Makefile.am): Likewise.
22776 * modules/strtoumax (Makefile.am): Likewise.
22777 * modules/strverscmp (Makefile.am): Likewise.
22778 * modules/sys_socket (Makefile.am): Likewise.
22779 * modules/sys_stat (Makefile.am): Likewise.
22780 * modules/sysexits (Makefile.am): Likewise.
22781 * modules/time_r (Makefile.am): Likewise.
22782 * modules/timegm (Makefile.am): Likewise.
22783 * modules/timespec (Makefile.am): Likewise.
22784 * modules/tmpfile-safer (Makefile.am): Likewise.
22785 * modules/trim (Makefile.am): Likewise.
22786 * modules/unistd-safer (Makefile.am): Likewise.
22787 * modules/unlinkdir (Makefile.am): Likewise.
22788 * modules/unlocked-io (Makefile.am): Likewise.
22789 * modules/userspec (Makefile.am): Likewise.
22790 * modules/utime (Makefile.am): Likewise.
22791 * modules/utimecmp (Makefile.am): Likewise.
22792 * modules/utimens (Makefile.am): Likewise.
22793 * modules/vasnprintf (Makefile.am): Likewise.
22794 * modules/vasprintf (Makefile.am): Likewise.
22795 * modules/vsnprintf (Makefile.am): Likewise.
22796 * modules/xalloc (Makefile.am): Likewise.
22797 * modules/xgetcwd (Makefile.am): Likewise.
22798 * modules/xnanosleep (Makefile.am): Likewise.
22799 * modules/xreadlink (Makefile.am): Likewise.
22800 * modules/xstrtod (Makefile.am): Likewise.
22801 * modules/xstrtol (Makefile.am): Likewise.
22802 * modules/xstrtold (Makefile.am): Likewise.
22803 * modules/yesno (Makefile.am): Likewise.
22804 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
22806 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
22808 * modules/error (Makefile.am): Distribute files through
22809 EXTRA_DIST, not lib_SOURCES.
22811 2006-10-12 Eric Blake <ebb9@byu.net>
22813 * modules/error (Makefile.am): Distribute files in /lib.
22814 * modules/obstack (Makefile.am): Likewise.
22816 2006-10-12 Bruno Haible <bruno@clisp.org>
22818 * modules/acl (Makefile.am): Distribute all files in lib/ through
22820 * modules/arcfour (Makefile.am): Likewise.
22821 * modules/arctwo (Makefile.am): Likewise.
22822 * modules/argmatch (Makefile.am): Likewise.
22823 * modules/argz (Makefile.am): Likewise.
22824 * modules/atexit (Makefile.am): Likewise.
22825 * modules/backupfile (Makefile.am): Likewise.
22826 * modules/c-strtod (Makefile.am): Likewise.
22827 * modules/c-strtold (Makefile.am): Likewise.
22828 * modules/calloc (Makefile.am): Likewise.
22829 * modules/canon-host (Makefile.am): Likewise.
22830 * modules/canonicalize (Makefile.am): Likewise.
22831 * modules/chdir-long (Makefile.am): Likewise.
22832 * modules/chdir-safer (Makefile.am): Likewise.
22833 * modules/check-version (Makefile.am): Likewise.
22834 * modules/chown (Makefile.am): Likewise.
22835 * modules/cloexec (Makefile.am): Likewise.
22836 * modules/close-stream (Makefile.am): Likewise.
22837 * modules/closeout (Makefile.am): Likewise.
22838 * modules/crc (Makefile.am): Likewise.
22839 * modules/cycle-check (Makefile.am): Likewise.
22840 * modules/des (Makefile.am): Likewise.
22841 * modules/dirfd (Makefile.am): Likewise.
22842 * modules/dirname (Makefile.am): Likewise.
22843 * modules/dup2 (Makefile.am): Likewise.
22844 * modules/euidaccess (Makefile.am): Likewise.
22845 * modules/exclude (Makefile.am): Likewise.
22846 * modules/exitfail (Makefile.am): Likewise.
22847 * modules/fcntl-safer (Makefile.am): Likewise.
22848 * modules/file-type (Makefile.am): Likewise.
22849 * modules/fileblocks (Makefile.am): Likewise.
22850 * modules/filemode (Makefile.am): Likewise.
22851 * modules/filenamecat (Makefile.am): Likewise.
22852 * modules/fnmatch (Makefile.am): Likewise.
22853 * modules/fopen-safer (Makefile.am): Likewise.
22854 * modules/fpending (Makefile.am): Likewise.
22855 * modules/fprintftime (Makefile.am): Likewise.
22856 * modules/free (Makefile.am): Likewise.
22857 * modules/fsusage (Makefile.am): Likewise.
22858 * modules/ftruncate (Makefile.am): Likewise.
22859 * modules/fts (Makefile.am): Likewise.
22860 * modules/gc (Makefile.am): Likewise.
22861 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22862 * modules/getaddrinfo (Makefile.am): Likewise.
22863 * modules/getcwd (Makefile.am): Likewise.
22864 * modules/getdelim (Makefile.am): Likewise.
22865 * modules/getdomainname (Makefile.am): Likewise.
22866 * modules/getgroups (Makefile.am): Likewise.
22867 * modules/gethostname (Makefile.am): Likewise.
22868 * modules/gethrxtime (Makefile.am): Likewise.
22869 * modules/getline (Makefile.am): Likewise.
22870 * modules/getloadavg (Makefile.am): Likewise.
22871 * modules/getlogin_r (Makefile.am): Likewise.
22872 * modules/getopt (Makefile.am): Likewise.
22873 * modules/getpass (Makefile.am): Likewise.
22874 * modules/getpass-gnu (Makefile.am): Likewise.
22875 * modules/getsubopt (Makefile.am): Likewise.
22876 * modules/gettime (Makefile.am): Likewise.
22877 * modules/gettimeofday (Makefile.am): Likewise.
22878 * modules/getugroups (Makefile.am): Likewise.
22879 * modules/getusershell (Makefile.am): Likewise.
22880 * modules/glob (Makefile.am): Likewise.
22881 * modules/group-member (Makefile.am): Likewise.
22882 * modules/hard-locale (Makefile.am): Likewise.
22883 * modules/hash (Makefile.am): Likewise.
22884 * modules/hmac-md5 (Makefile.am): Likewise.
22885 * modules/hmac-sha1 (Makefile.am): Likewise.
22886 * modules/human (Makefile.am): Likewise.
22887 * modules/idcache (Makefile.am): Likewise.
22888 * modules/imaxabs (Makefile.am): Likewise.
22889 * modules/imaxdiv (Makefile.am): Likewise.
22890 * modules/inet_ntop (Makefile.am): Likewise.
22891 * modules/inet_pton (Makefile.am): Likewise.
22892 * modules/inttostr (Makefile.am): Likewise.
22893 * modules/isapipe (Makefile.am): Likewise.
22894 * modules/lchown (Makefile.am): Likewise.
22895 * modules/long-options (Makefile.am): Likewise.
22896 * modules/lstat (Makefile.am): Likewise.
22897 * modules/malloc (Makefile.am): Likewise.
22898 * modules/mathl (Makefile.am): Likewise.
22899 * modules/mbchar (Makefile.am): Likewise.
22900 * modules/md2 (Makefile.am): Likewise.
22901 * modules/md4 (Makefile.am): Likewise.
22902 * modules/md5 (Makefile.am): Likewise.
22903 * modules/memcasecmp (Makefile.am): Likewise.
22904 * modules/memchr (Makefile.am): Likewise.
22905 * modules/memcmp (Makefile.am): Likewise.
22906 * modules/memcoll (Makefile.am): Likewise.
22907 * modules/memcpy (Makefile.am): Likewise.
22908 * modules/memmem (Makefile.am): Likewise.
22909 * modules/memmove (Makefile.am): Likewise.
22910 * modules/mempcpy (Makefile.am): Likewise.
22911 * modules/memrchr (Makefile.am): Likewise.
22912 * modules/memset (Makefile.am): Likewise.
22913 * modules/memxor (Makefile.am): Likewise.
22914 * modules/mkancesdirs (Makefile.am): Likewise.
22915 * modules/mkdir (Makefile.am): Likewise.
22916 * modules/mkdir-p (Makefile.am): Likewise.
22917 * modules/mkdtemp (Makefile.am): Likewise.
22918 * modules/mkstemp (Makefile.am): Likewise.
22919 * modules/mktime (Makefile.am): Likewise.
22920 * modules/modechange (Makefile.am): Likewise.
22921 * modules/mountlist (Makefile.am): Likewise.
22922 * modules/nanosleep (Makefile.am): Likewise.
22923 * modules/openat (Makefile.am): Likewise.
22924 * modules/pagealign_alloc (Makefile.am): Likewise.
22925 * modules/physmem (Makefile.am): Likewise.
22926 * modules/poll (Makefile.am): Likewise.
22927 * modules/posixtm (Makefile.am): Likewise.
22928 * modules/posixver (Makefile.am): Likewise.
22929 * modules/putenv (Makefile.am): Likewise.
22930 * modules/quote (Makefile.am): Likewise.
22931 * modules/quotearg (Makefile.am): Likewise.
22932 * modules/raise (Makefile.am): Likewise.
22933 * modules/read-file (Makefile.am): Likewise.
22934 * modules/readline (Makefile.am): Likewise.
22935 * modules/readlink (Makefile.am): Likewise.
22936 * modules/readtokens (Makefile.am): Likewise.
22937 * modules/readutmp (Makefile.am): Likewise.
22938 * modules/realloc (Makefile.am): Likewise.
22939 * modules/regex (Makefile.am): Likewise.
22940 * modules/rename (Makefile.am): Likewise.
22941 * modules/rename-dest-slash (Makefile.am): Likewise.
22942 * modules/rijndael (Makefile.am): Likewise.
22943 * modules/rmdir (Makefile.am): Likewise.
22944 * modules/rpmatch (Makefile.am): Likewise.
22945 * modules/safe-read (Makefile.am): Likewise.
22946 * modules/safe-write (Makefile.am): Likewise.
22947 * modules/same (Makefile.am): Likewise.
22948 * modules/save-cwd (Makefile.am): Likewise.
22949 * modules/savedir (Makefile.am): Likewise.
22950 * modules/setenv (Makefile.am): Likewise.
22951 * modules/settime (Makefile.am): Likewise.
22952 * modules/sha1 (Makefile.am): Likewise.
22953 * modules/sig2str (Makefile.am): Likewise.
22954 * modules/snprintf (Makefile.am): Likewise.
22955 * modules/stdlib-safer (Makefile.am): Likewise.
22956 * modules/stpcpy (Makefile.am): Likewise.
22957 * modules/stpncpy (Makefile.am): Likewise.
22958 * modules/strcase (Makefile.am): Likewise.
22959 * modules/strcasestr (Makefile.am): Likewise.
22960 * modules/strchrnul (Makefile.am): Likewise.
22961 * modules/strcspn (Makefile.am): Likewise.
22962 * modules/strdup (Makefile.am): Likewise.
22963 * modules/strerror (Makefile.am): Likewise.
22964 * modules/strftime (Makefile.am): Likewise.
22965 * modules/strndup (Makefile.am): Likewise.
22966 * modules/strnlen (Makefile.am): Likewise.
22967 * modules/strpbrk (Makefile.am): Likewise.
22968 * modules/strsep (Makefile.am): Likewise.
22969 * modules/strstr (Makefile.am): Likewise.
22970 * modules/strtod (Makefile.am): Likewise.
22971 * modules/strtoimax (Makefile.am): Likewise.
22972 * modules/strtok_r (Makefile.am): Likewise.
22973 * modules/strtol (Makefile.am): Likewise.
22974 * modules/strtoll (Makefile.am): Likewise.
22975 * modules/strtoul (Makefile.am): Likewise.
22976 * modules/strtoull (Makefile.am): Likewise.
22977 * modules/strtoumax (Makefile.am): Likewise.
22978 * modules/strverscmp (Makefile.am): Likewise.
22979 * modules/time_r (Makefile.am): Likewise.
22980 * modules/timegm (Makefile.am): Likewise.
22981 * modules/tmpfile-safer (Makefile.am): Likewise.
22982 * modules/unistd-safer (Makefile.am): Likewise.
22983 * modules/unlinkdir (Makefile.am): Likewise.
22984 * modules/userspec (Makefile.am): Likewise.
22985 * modules/utime (Makefile.am): Likewise.
22986 * modules/utimecmp (Makefile.am): Likewise.
22987 * modules/utimens (Makefile.am): Likewise.
22988 * modules/vasnprintf (Makefile.am): Likewise.
22989 * modules/vasprintf (Makefile.am): Likewise.
22990 * modules/vsnprintf (Makefile.am): Likewise.
22991 * modules/xalloc (Makefile.am): Likewise.
22992 * modules/xgetcwd (Makefile.am): Likewise.
22993 * modules/xnanosleep (Makefile.am): Likewise.
22994 * modules/xreadlink (Makefile.am): Likewise.
22995 * modules/xstrtod (Makefile.am): Likewise.
22996 * modules/xstrtol (Makefile.am): Likewise.
22997 * modules/xstrtold (Makefile.am): Likewise.
22998 * modules/yesno (Makefile.am): Likewise.
23000 2006-10-12 Jim Meyering <jim@meyering.net>
23002 * m4/getloadavg.m4: Revert the change below.
23004 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
23005 lib/getloadavg.c using "ls -L", not "test -f". The latter would
23006 fail with a symlink, which is what coreutils' ./bootstrap now
23007 creates by default.
23009 2006-10-12 Bruno Haible <bruno@clisp.org>
23011 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
23013 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
23014 MSVC and mingw explicitly.
23016 2006-10-11 Simon Josefsson <jas@extundo.com>
23017 Bruno Haible <bruno@clisp.org>
23019 Add support for multiple gnulib-tool invocations in the scope of a
23020 single configure.ac file.
23021 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
23022 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
23023 with the same contents as the _LIBADD variable.
23024 (func_emit_initmacro_start, func_emit_initmacro_end,
23025 func_emit_initmacro_done): New functions.
23026 (func_import, func_create_testdir): Invoke them. Allow the identifiers
23027 gl_LIBOBJS and gl_LTLIBOBJS.
23029 2006-10-11 Bruno Haible <bruno@clisp.org>
23031 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
23032 (func_create_testdir): Don't create po/Makefile.am, don't invoke
23033 autoreconf. Instead, invoke autopoint explicitly but move back the
23034 *.m4 files from gnulib.
23036 2006-10-11 Bruno Haible <bruno@clisp.org>
23038 * gnulib-tool (func_usage): Make module names after --create-testdir
23040 (func_create_testdir): If no module was specified, use nearly all
23043 2006-10-12 Jim Meyering <jim@meyering.net>
23045 Big performance improvement for fts-based tools that use FTS_NOSTAT.
23046 Avoid spurious inode-mismatch problems on non-POSIX file systems.
23047 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
23048 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
23049 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
23050 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
23051 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
23052 (fts_set_stat_required): New function.
23053 (fts_open): Defer the calls to fts_stat, if possible or requested.
23054 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
23055 into fts_stat itself.
23056 (fts_read): Perform any required (deferred) fts_stat call.
23057 (fts_build): Likewise, for the directory we're about to open and read.
23058 In the readdir loop, carefully decide whether each entry will require
23059 an eventual call to fts_stat, using dirent.d_type info if available.
23060 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
23061 a command line argument into this function. Update all callers.
23062 Map a return value of FTS_DOT to FTS_D for a command line argument.
23063 * modules/fts (Depends-on): Add d-type. Alphabetize.
23064 Thanks to Miklos Szeredi for his tenacity and for the initial
23065 bug report about "find" failing on a FUSE-based file system.
23067 * lib/fts.c (fts_open): Use consistent indentation.
23069 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
23071 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
23072 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
23073 reported by Jim Meyering. All uses of cache variables renamed
23074 to match Autoconf's.
23075 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
23078 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
23079 Fix misspelling in diagnostic.
23081 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
23083 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
23084 defined. Problem reported by Matthew Woehlke.
23086 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
23087 Add support for Tandem NonStop R series.
23088 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
23091 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
23092 (has_trailing_slash): Omit size arg; all callers changed.
23093 Omit 'inline', since it doesn't help performance and we'd
23094 need to configure it.
23095 Don't count //, ///, etc. as having a trailing slash.
23096 As a side effect, this removes a C99ism reported by Matthew Woehlke.
23097 (rpl_rename_dest_slash): On failure, use rename's errno rather
23098 than (in some cases) an incorrect or junk errno.
23099 Simplify code by removing need to compute length; this does
23100 cause it to make two passes instead of one over the file name,
23103 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
23104 change, since Autoconf's version may no longer be appropriate now
23105 that we are using CVS Autoconf's version. Add support for Tandem.
23107 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
23108 Bruno Haible <bruno@clisp.org>
23110 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
23111 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
23112 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
23113 gl_AC_TYPE_LONG_LONG.
23115 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
23116 instead of HAVE_LONG_LONG.
23117 * lib/printf-args.c (printf_fetchargs): Likewise.
23118 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23119 * lib/vasnprintf.c (VASNPRINTF): Likewise.
23120 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
23121 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
23122 gl_AC_TYPE_LONG_LONG.
23124 2006-10-11 Bruno Haible <bruno@clisp.org>
23126 * m4/longlong.m4: Add comments.
23127 * m4/ulonglong.m4: Likewise.
23129 2006-10-10 Bruno Haible <bruno@clisp.org>
23131 Make it possible to #define stpcpy, strdup to aliases.
23132 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
23133 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
23135 2006-10-10 Bruno Haible <bruno@clisp.org>
23137 Make it possible to #define gcd to an alias.
23138 * lib/gcd.c: Include config.h.
23140 2006-10-10 Bruno Haible <bruno@clisp.org>
23142 Make it possible to #define c_isascii to an alias.
23143 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
23144 defined. Undefine the macros before defining them, to avoid gcc
23146 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
23147 define NO_C_CTYPE_MACROS early.
23149 2006-10-10 Bruno Haible <bruno@clisp.org>
23151 Make it possible to #define set_program_name to an alias.
23152 * lib/progname.c: Don't undefine set_program_name; instead, undefine
23153 ENABLE_RELOCATABLE early.
23155 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
23157 Port to Tandem NSK OSS, which has 64-bit signed int but at most
23158 32-bit unsigned int. Problem reported by Matthew Woehlke in:
23159 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
23160 More generally, don't assume that 64-bit signed int is available
23161 if unsigned int is, and vice versa.
23162 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
23163 unsigned symbols, not on their signed counterparts.
23164 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
23165 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
23166 (UINT64_C, UINTMAX_C):
23168 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
23169 unsigned counterparts.
23170 (Have_long_long, Unsigned): New macros.
23171 (Int): Renamed from INT.
23172 (strtoimax): Use the new macros.
23173 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
23174 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
23175 * modules/inttypes (inttypes.h): Substitute
23176 HAVE_UNSIGNED_LONG_LONG_INT.
23177 * modules/stdint (stdint.h): Likewise.
23178 (Files): Add m4/ulonglong.m4.
23180 2006-10-10 Bruno Haible <bruno@clisp.org>
23182 Fix a gcc -Wshadow warning.
23183 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
23185 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
23186 gl_linked_indexof_from_to): Likewise.
23187 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
23189 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
23191 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
23192 Reported by Eric Blake.
23194 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
23196 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
23197 for NetBSD. Problem reported by Bruno Haible.
23199 2006-10-09 Jim Meyering <jim@meyering.net>
23201 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
23202 Patch from Bruno Haible.
23204 2006-10-09 Jim Meyering <jim@meyering.net>
23206 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
23207 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
23208 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
23210 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
23212 Don't include <config.h> twice; this doesn't work in some cases,
23213 e.g., when config.h has "#define intmax_t long long int" and
23214 we include <config.h>, <inttypes.h>, <config.h> in that order.
23215 Problem reported by Matthew Woehlke in:
23216 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
23217 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
23218 * lib/fts-cycle.c: Don't include config.h.
23219 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
23220 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
23221 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
23222 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
23224 * lib/xstrtoumax.c: Likewise.
23225 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
23226 __strtol and the like, so that this module is more like its siblings.
23227 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
23228 Remove; no longer needed now that we assume gnulib inttypes.h.
23230 2006-10-08 Bruno Haible <bruno@clisp.org>
23232 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
23235 2006-10-07 Jim Meyering <jim@meyering.net>
23237 * modules/inttypes (inttypes.h): Revert what seems to have been
23238 an inadvertent part of today's change: use "|", not "/" in the
23239 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
23241 2006-10-07 Bruno Haible <bruno@clisp.org>
23243 * modules/sublist: New file.
23245 2006-10-07 Bruno Haible <bruno@clisp.org>
23247 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
23248 * modules/argz (argz.h): Likewise.
23249 * modules/arpa_inet (arpa/inet.h): Likewise.
23250 * modules/byteswap (byteswap.h): Likewise.
23251 * modules/configmake (configmake.h): Likewise.
23252 * modules/fcntl (fcntl.h): Likewise.
23253 * modules/fnmatch (fnmatch.h): Likewise.
23254 * modules/getopt (getopt.h): Likewise.
23255 * modules/glob (glob.h): Likewise.
23256 * modules/inttypes (inttypes.h): Likewise.
23257 * modules/netinet_in (netinet/in.h): Likewise.
23258 * modules/poll (poll.h): Likewise.
23259 * modules/stdbool (stdbool.h): Likewise.
23260 * modules/stdint (stdint.h): Likewise.
23261 * modules/sys_select (sys/select.h): Likewise.
23262 * modules/sys_socket (sys/socket.h): Likewise.
23263 * modules/sys_stat (sys/stat.h): Likewise.
23264 * modules/sysexits (sysexits.h): Likewise.
23265 * modules/unistd (unistd.h): Likewise.
23266 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23267 Add a "DO NOT EDIT" comment to the generated file.
23268 (func_import): Likewise for gnulib-comp.m4.
23270 2006-10-07 Bruno Haible <bruno@clisp.org>
23272 * lib/gl_sublist.h: New file.
23273 * lib/gl_sublist.c: New file.
23275 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
23277 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
23278 name (relative to the original working directory) and the file
23279 name component (relative to the temporary working directory). All
23281 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
23282 * lib/mkdir-p.c (make_dir_parents): Likewise.
23283 * lib/mkdir-p.h (make_dir_parents): Likewise.
23285 2006-10-06 Eric Blake <ebb9@byu.net>
23287 Define several macros for use by the clean-temp module.
23288 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
23289 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
23290 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
23292 * lib/clean-temp.h (close_stream_temp): New declaration.
23293 * lib/clean-temp.c (includes): Pull in headers according to what
23294 other modules are in use.
23295 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
23297 2006-10-06 Bruno Haible <bruno@clisp.org>
23299 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
23300 instead of fopen, fwriteerror.
23302 2006-10-06 Bruno Haible <bruno@clisp.org>
23304 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
23305 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
23307 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
23308 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
23309 Return an error indicator.
23310 Suggested by Eric Blake.
23312 2006-10-06 Bruno Haible <bruno@clisp.org>
23314 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
23315 Reported by Eric Blake.
23317 2006-10-06 Bruno Haible <bruno@clisp.org>
23319 * modules/closeout (Description): Mention stderr too.
23321 2006-10-06 Bruno Haible <bruno@clisp.org>
23322 and Paul Eggert <eggert@cs.ucla.edu>
23324 * lib/closeout.c (close_stdout): Also close stderr.
23325 * lib/closeout.h: Update comment.
23327 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
23329 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
23330 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
23331 * lib/dirchownmod.c: Include lchown.h.
23332 * lib/lchown.c: Don't include files that lchown.h now includes.
23333 Don't declare chown, since lchown.h now does that.
23334 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
23335 (lchown): Define to rpl_chown if lchown is declared but
23336 does not exist. Declare using a prototype if lchown is not
23337 declared. Add a copyright notice.
23338 * lib/mkstemp.h: Include <unistd.h>.
23339 * lib/openat.c: Include lchown.h.
23341 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
23342 we now test for that separately.
23343 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
23344 rather than O_NOFOLLOW, when testing whether it's possible to
23345 avoid a race condition reliably.
23346 * lib/savewd.c (savewd_chdir): Likewise.
23348 Remove macros that are no longer needed now that stdint.h is
23350 * lib/fsusage.c (UINTMAX_MAX): Remove.
23351 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
23352 * lib/utimecmp.c (SIZE_MAX): Remove.
23354 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
23356 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
23357 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
23360 2006-10-05 Bruno Haible <bruno@clisp.org>
23362 * lib/gl_list.h (gl_sortedlist_search_from_to,
23363 gl_sortedlist_indexof_from_to): New declarations.
23364 (gl_list_implementation): New fields sortedlist_search_from_to,
23365 sortedlist_indexof_from_to.
23366 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
23368 * lib/gl_list.c (gl_sortedlist_search_from_to,
23369 gl_sortedlist_indexof_from_to): New functions.
23370 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
23372 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
23373 (gl_array_sortedlist_search_from_to): New function.
23374 (gl_array_list_implementation): Update.
23375 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
23377 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
23378 (gl_carray_sortedlist_search_from_to): New function.
23379 (gl_carray_list_implementation): Update.
23380 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
23381 gl_linked_sortedlist_indexof_from_to): New functions.
23382 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23383 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23384 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
23385 gl_tree_sortedlist_indexof_from_to): New functions.
23386 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23387 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23389 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23390 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
23393 2006-10-05 Bruno Haible <bruno@clisp.org>
23395 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
23396 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
23397 (struct gl_list_implementation): Add fields search_from_to,
23398 indexof_from_to. Remove fields search, indexof.
23399 (gl_list_search): Use the search_from_to method.
23400 (gl_list_search_from, gl_list_search_from_to): New functions.
23401 (gl_list_indexof): Use the indexof_from_to method.
23402 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23403 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
23404 (gl_list_search_from, gl_list_search_from_to): New functions.
23405 (gl_list_indexof): Use the indexof_from_to method.
23406 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23407 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
23408 gl_array_indexof. Add start_index, end_index arguments.
23409 (gl_array_search_from_to): Renamed from gl_array_search. Add
23410 start_index, end_index arguments.
23411 (gl_array_remove, gl_array_list_implementation): Update.
23412 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
23413 gl_carray_indexof. Add start_index, end_index arguments.
23414 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
23415 start_index, end_index arguments.
23416 (gl_carray_remove, gl_carray_list_implementation): Update.
23417 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
23418 gl_linked_search. Add start_index, end_index arguments.
23419 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
23420 start_index, end_index arguments.
23421 (gl_linked_remove): Update.
23422 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23423 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23424 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
23426 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
23427 gl_tree_search. Add start_index, end_index arguments.
23428 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23429 start_index, end_index arguments.
23430 (gl_tree_remove): Update.
23431 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23432 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23433 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
23435 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
23436 gl_tree_search. Add start_index, end_index arguments.
23437 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23438 start_index, end_index arguments.
23439 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23441 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23443 2006-10-05 Bruno Haible <bruno@clisp.org>
23445 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
23447 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
23448 fwriteerror_temp): New declarations.
23449 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
23450 (descriptors): New variable.
23451 (cleanup): First, close the descriptors.
23452 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
23453 fclose_temp, fwriteerror_temp): New functions.
23455 2006-10-04 Jim Meyering <jim@meyering.net>
23457 * lib/fts.c (fts_open): Tiny comment change.
23459 2006-10-04 Bruno Haible <bruno@clisp.org>
23461 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
23462 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
23464 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
23465 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
23466 gl_LOCK_EARLY_BODY.
23467 (gl_LOCK): Require gl_LOCK_BODY.
23469 2006-10-04 Bruno Haible <bruno@clisp.org>
23471 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
23472 (gl_oset_search_atleast): New declaration.
23473 (struct gl_oset_implementation): Add field 'search_atleast'.
23474 (gl_oset_search_atleast): New inline function.
23475 * lib/gl_oset.c (gl_oset_search_atleast): New function.
23476 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
23477 (gl_array_oset_implementation): Update.
23478 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
23479 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
23480 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
23482 2006-10-04 Bruno Haible <bruno@clisp.org>
23484 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
23486 2006-10-03 Bruno Haible <bruno@clisp.org>
23488 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
23489 from gl_avltreehash_list_implementation.
23491 2006-10-03 Bruno Haible <bruno@clisp.org>
23493 * lib/gl_oset.c (gl_oset_add): Fix return type.
23495 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
23497 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
23499 2006-10-02 Eric Blake <ebb9@byu.net>
23501 * modules/strnlen (Depends-on): Add extensions.
23503 2006-10-02 Eric Blake <ebb9@byu.net>
23505 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
23506 definition in 2.60+.
23508 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
23510 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
23513 2006-10-02 Bruno Haible <bruno@clisp.org>
23515 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
23516 to the AUTOMAKE_OPTIONS.
23517 Reported by Jim Meyering.
23519 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
23521 Work around bug in Solaris 10 /proc file system:
23522 /proc/self/fd/NNN/.. isn't the parent directory of
23523 the directory whose file descriptor is NNN. This needs to
23524 be worked around at run time, not compile time, since a
23525 program might be built on Solaris 8, where things work, and
23527 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
23528 to use the following interface instead:
23529 (OPENAT_BUFFER_SIZE): New macro.
23530 (openat_proc_name): New function.
23531 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
23532 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
23534 * lib/openat-proc.c: New file.
23535 * modules/openat (Files): Add lib/openat-proc.c.
23536 (Depends-on): Add same-inode, stdbool.
23537 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
23539 2006-09-29 Bruno Haible <bruno@clisp.org>
23541 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
23542 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
23543 argument. Set stdout_closed before testing for ferror, not after.
23544 (fwriteerror, fwriteerror_no_ebadf): New functions.
23546 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23548 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
23550 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
23552 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
23553 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
23555 2006-09-28 Jim Meyering <jim@meyering.net>
23557 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
23558 Include <unistd.h>.
23560 2006-09-28 Bruno Haible <bruno@clisp.org>
23562 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
23563 * modules/linkedhash-list (Depends-on): Likewise.
23564 * modules/rbtreehash-list (Depends-on): Likewise.
23566 2006-09-28 Bruno Haible <bruno@clisp.org>
23568 * lib/strndup.h: Simplify the redefinition of strndup.
23569 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
23570 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
23572 2006-09-28 Bruno Haible <bruno@clisp.org>
23574 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
23575 * lib/gl_linkedhash_list.c: Likewise.
23576 * lib/gl_rbtreehash_list.c: Likewise.
23578 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
23580 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
23583 * lib/__fpending.h: Don't include <stdio_ext.h> unless
23584 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
23585 it causes <stdio_ext.h> to cause a compile-time error.
23586 Problem reported by Nelson H. F. Beebe.
23587 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
23588 of HAVE_DECL___PENDING.
23590 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
23591 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
23594 2006-09-27 Jim Meyering <jim@meyering.net>
23596 This file could end up with a definition for a function
23597 named __strndup, rather than rpl_strndup on a system with
23598 incomplete weak_alias support.
23599 * lib/strndup.c (strndup): Rename from __strndup.
23600 Remove #defines that used to map __strndup to strndup.
23601 Don't use K&R prototypes.
23602 Remove LIBC-related code, since this file is not sync'd with glibc.
23603 * lib/strndup.h: Revamp, accordingly.
23604 * m4/strndup.m4: Modernize.
23606 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
23608 * modules/savewd (Depends-on): Add 'raise'.
23609 * lib/savewd.c: Include <signal.h>, for 'raise'.
23611 2006-09-26 Jim Meyering <jim@meyering.net>
23613 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
23614 when we detect Darwin 8.7.0's acl_get_file bug.
23615 Rearrange to perform the new (below) run-test while $LIBS
23616 contains any acl-related library. Set USE_ACL at the end.
23617 (gl_ACL_GET_FILE): New function.
23619 2006-09-26 Eric Blake <ebb9@byu.net>
23621 * lib/verror.c: Include <config.h> unconditionally.
23623 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
23625 * modules/clock-time (Maintainer): Add self.
23626 * modules/getlogin_r (Depends-on): Add extensions.
23628 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23630 * modules/clock-time: New module.
23631 * modules/nanosleep (Depends-on): Add clock-time.
23632 * modules/gethrxtime (Depends-on): Likewise.
23633 * modules/gettime (Depends-on): Likewise.
23634 * modules/settime (Depends-on): Likewise.
23636 * modules/fts-lgpl: Depend on openat.
23637 * modules/mkancesdirs: Depend on savewd.
23638 * modules/mkdir-p: Likewise.
23640 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23642 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
23644 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
23645 `gl_have_arbitrary_file_name_length_limit' to
23646 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
23647 actually works between configure runs.
23649 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23650 Bruno Haible <bruno@clisp.org>
23652 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
23654 2006-09-25 Jim Meyering <jim@meyering.net>
23656 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
23657 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
23659 2006-09-25 Eric Blake <ebb9@byu.net>
23661 * gnulib-tool (func_import, func_create_testdir): Fix typos in
23662 exec's in 2006-09-18 patch when shuffling fds.
23664 2006-09-25 Bruno Haible <bruno@clisp.org>
23666 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
23667 Reported by Jim Meyering.
23669 2006-09-24 Jim Meyering <jim@meyering.net>
23671 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
23672 compare a pointer against a literal "0". That caused failures with
23673 at least HP-UX's hpcc.
23675 2006-09-22 Simon Josefsson <jas@extundo.com>
23679 * modules/gc-hmac-sha1:
23680 * modules/gc-hmac-md5:
23682 * modules/gc-arcfour: Distribute more files.
23684 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23686 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
23687 (gl_linked_iterator_from_to): Initialize struct completely.
23688 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
23689 (gl_tree_iterator_from_to): Likewise
23690 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
23691 * lib/gl_array_list.c [lint] (gl_array_iterator)
23692 (gl_array_iterator_from_to): Likewise.
23693 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
23694 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
23695 (gl_carray_iterator_from_to): Likewise.
23697 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
23698 * lib/md4.c (md4_process_block): Remove unused variable.
23699 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
23700 parentheses for clarity.
23702 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23704 * modules/bison-i18n (Depends-on): Add gettext.
23706 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23708 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
23709 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23710 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
23711 also add missing comma that caused broken test.
23712 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
23713 stdlib.h, for `abort'.
23714 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
23716 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
23717 include unistd.h if present, for `rmdir'.
23718 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
23720 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
23721 in the process include standard headers for prototypes.
23722 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
23723 gets declared on GNU/Linux.
23724 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
23725 unistd.h, for `rmdir'.
23726 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
23728 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
23730 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
23732 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
23734 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23736 * gnulib-tool (func_version): Create output all at once. This
23737 may help avoid triggering unnecessary SIGPIPEs, and at any
23738 rate it doesn't hurt.
23740 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23741 Bruno Haible <bruno@clisp.org>
23743 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
23744 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23745 * m4/signed.m4 (bh_C_SIGNED): Likewise.
23747 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
23748 (gl_FUNC_VASPRINTF): Invoke it.
23750 2006-09-22 Bruno Haible <bruno@clisp.org>
23752 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
23753 getloadavg.c as first argument.
23755 2006-09-22 Bruno Haible <bruno@clisp.org>
23757 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
23758 at the beginning of the gl_INIT macro.
23759 * modules/getloadavg (configure.ac): Pass $gl_source_base to
23762 2006-09-22 Bruno Haible <bruno@clisp.org>
23764 * gnulib-tool (func_create_megatestdir): Don't include the config-h
23766 Suggested by Ralf Wildenhues.
23768 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
23770 Import this patch from libc:
23772 2006-09-06 Jakub Jelinek <jakub@redhat.com>
23774 * lib/regex_internal.c (re_string_reconstruct): Handle
23775 offset < pstr->valid_raw_len && pstr->offsets_needed case.
23776 Ensure no bytes read before raw_mbs array. Pass a saved copy of
23777 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
23778 re_string_context_at.
23780 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
23782 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
23783 gl_REGEX now does it for us.
23784 (gl_REGEX): Add test taken from
23785 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
23787 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
23788 Check that large offsets work. Modernize Autoconf usages.
23789 Prefer "yes" to mean a good thing rather than a bad.
23790 Don't put "#define mkstemp" in config.h, as this might interfere
23791 with standard system headers that "#define mkstemp mkstemp64".
23793 * modules/mkstemp (Depends-on): Add extensions, so that
23794 mkstemp is visible on some platforms.
23795 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
23796 (Include): Change to "mkstemp.h" from <stdlib.h>.
23797 (Files): Add mkstemp.h.
23799 * lib/mkstemp.h: New file, since some standard headers
23801 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
23802 Include "mkstemp.h".
23803 Make the _LIBC code resemble glibc original more,
23804 e.g., use K&R style.
23805 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
23806 (mkstemp): Remove, since mkstemp.h does this for us.
23807 * lib/stdlib--.h: Include mkstemp.h.
23809 Import this patch from libc:
23811 2006-04-07 Ulrich Drepper <drepper@redhat.com>
23813 * lib/tempname.c (__gen_tempname): Change attempts_min
23814 into a macro. Use preprocessor to decide how to initialize
23815 attempts [Coverity CID 67].
23817 2006-09-20 Bruno Haible <bruno@clisp.org>
23819 * lib/mkdtemp.c: Import from libc.
23820 2006-04-07 Ulrich Drepper <drepper@redhat.com>
23821 * sysdeps/posix/tempname.c (__gen_tempname): Change
23822 attempts_min into a macro. Use preprocessor to decide how to
23823 initialize attempts [Coverity CID 67].
23824 2001-11-27 Paul Eggert <eggert@twinsun.com>
23825 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
23826 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
23828 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23830 * gnulib-tool (func_exit): New function, to allow to pass the
23831 exit status portably through the trap. Use everywhere.
23832 (--help, --version): Signal a write error.
23833 (trap): catch SIGPIPE, for write errors.
23834 Exit at the end of the trap, with the correct exit status.
23836 2006-09-19 Karl Berry <karl@gnu.org>
23838 * doc/gnulib.texi: note about the license texinfo files.
23840 2006-09-19 Eric Blake <ebb9@byu.net>
23842 * gnulib-tool: Avoid space-tab.
23844 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
23846 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
23847 that prevented coreutils 6.1 from building. Problem reported
23848 by Petter Reinholdtsen.
23850 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
23852 * gnulib-tool (avoidlist): Fix typo that broke options like
23853 --avoid=lock that are used by coreutils bootstrap.
23855 2006-09-18 Mark D. Baushke <mdb@gnu.org>
23857 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
23858 more systematically.
23860 2006-09-18 Jim Meyering <jim@meyering.net>
23862 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
23864 2006-09-18 Bruno Haible <bruno@clisp.org>
23866 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
23868 2006-09-18 Bruno Haible <bruno@clisp.org>
23870 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
23871 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
23872 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
23873 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
23874 * m4/gettext.m4: Require autoconf >= 2.52.
23875 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
23876 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
23877 of gl_cv_header_inttypes_h.
23879 2006-09-18 Bruno Haible <bruno@clisp.org>
23881 * lib/javaversion.c: Include configmake.h.
23883 2006-09-18 Bruno Haible <bruno@clisp.org>
23885 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
23886 avoid that the while loops be executed in a subshell.
23888 2006-09-18 Bruno Haible <bruno@clisp.org>
23890 * MODULES.html.sh (func_module): Break long lines.
23891 Suggested by Bruce Korb <bkorb@gnu.org>.
23893 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23895 Speed up by a factor of 1.12.
23896 * gnulib-tool (nl): New variable.
23897 (func_import): Rewrite include directive extraction to only read each
23900 2006-09-17 Bruno Haible <bruno@clisp.org>
23902 * modules/javaversion (Makefile.am): Remove DEFS setting.
23903 (Depends-on): Add configmake, for PKGDATADIR definition.
23905 2006-09-17 Bruno Haible <bruno@clisp.org>
23907 * gnulib-tool (func_create_testdir): Rewrite all files at once.
23909 2006-09-17 Bruno Haible <bruno@clisp.org>
23911 * gnulib-tool (func_append): New function, stolen from libtool.m4.
23912 (func_modules_transitive_closure, func_modules_add_dummy,
23913 func_modules_to_filelist, func_import, func_create_testdir,
23914 func_create_megatestdir, ...): Use it wherever possible.
23915 Suggested by Ralf Wildenhues.
23917 2006-09-16 Karl Berry <karl@gnu.org>
23919 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
23920 to avoid sectioning errors.
23921 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
23922 [ifinfo]: blank line after @center-ed titles.
23923 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
23924 Spell FSF address consistently with others.
23925 (These changes approved by rms.)
23927 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23929 Speed up by a factor of 1.61.
23930 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
23931 already checked module names again.
23933 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23935 Speed up by a factor of 1.13.
23936 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
23937 for new_files, and the input to func_add_or_update.
23939 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23941 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
23942 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
23944 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
23946 * modules/mkancesdirs (Depends-on): Add fcntl.
23947 * modules/savewd: New file.
23948 * MODULES.html.sh (File system functions): Add savewd.
23950 * modules/configmake (Makefile.am): Add support for the
23951 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
23953 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
23955 * m4/savewd.m4: New file.
23957 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
23959 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
23960 (dirchownmod): New arg FD. All callers changed.
23961 Use FD rather than opening the directory ourself, as opening is
23962 now the caller's responsibility.
23963 * lib/dirchownmod.h: Likewise.
23964 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
23965 hosts that require <sys/types.h> before <sys/stat.h>. Include
23966 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
23967 (test_dir): Remove.
23968 (mkancesdirs): Return length of prefix of FILE that has already
23969 been made, or -2 if there is a child doing the work. Redo
23970 algorithm so that it is O(N) rather than O(N**2). Optimize away
23971 ".", and treat ".." specially since it might stray back into
23972 already-created areas. Use a subprocess if necessary. New arg
23973 WD; all users changed. MAKE_DIR function should now return 1
23974 if it creates a directory that is not readable. Return -2 if
23975 a child process is spun off.
23976 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
23977 Adjust signature to match code.
23978 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
23979 (make_dir_parents): Use a subprocess if necessary. New arg WD;
23981 * lib/savewd.c, lib/savewd.h: New files.
23983 2006-09-15 Jim Meyering <jim@meyering.net>
23985 * modules/rename-dest-slash: New module.
23986 * MODULES.html.sh (posix_compat): Add it here.
23988 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
23990 2006-09-15 Jim Meyering <jim@meyering.net>
23992 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
23995 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
23997 2006-09-15 Jim Meyering <jim@meyering.net>
23999 * lib/rename-dest-slash.c (has_trailing_slash): Use
24000 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
24001 (rpl_rename_dest_slash): Perform the cheaper trailing slash
24002 test before testing whether SRC is a directory.
24003 Suggestions from Bruno Haible.
24005 Avoid a warning about an unused variable.
24006 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
24007 into the #ifdef block where it's used.
24009 * lib/rename-dest-slash.c: New file.
24011 2006-09-14 Bruno Haible <bruno@clisp.org>
24013 * lib/allocsa.c: Include <config.h> unconditionally.
24014 * lib/asnprintf.c: Likewise.
24015 * lib/asprintf.c: Likewise.
24016 * lib/c-strcasecmp.c: Likewise.
24017 * lib/c-strcasestr.c: Likewise.
24018 * lib/c-strncasecmp.c: Likewise.
24019 * lib/c-strstr.c: Likewise.
24020 * lib/classpath.c: Likewise.
24021 * lib/clean-temp.c: Likewise.
24022 * lib/concatpath.c: Likewise.
24023 * lib/copy-file.c: Likewise.
24024 * lib/csharpcomp.c: Likewise.
24025 * lib/csharpexec.c: Likewise.
24026 * lib/execute.c: Likewise.
24027 * lib/fatal-signal.c: Likewise.
24028 * lib/findprog.c: Likewise.
24029 * lib/fwriteerror.c: Likewise.
24030 * lib/gl_array_list.c: Likewise.
24031 * lib/gl_array_oset.c: Likewise.
24032 * lib/gl_avltree_list.c: Likewise.
24033 * lib/gl_avltree_oset.c: Likewise.
24034 * lib/gl_avltreehash_list.c: Likewise.
24035 * lib/gl_carray_list.c: Likewise.
24036 * lib/gl_linked_list.c: Likewise.
24037 * lib/gl_linkedhash_list.c: Likewise.
24038 * lib/gl_list.c: Likewise.
24039 * lib/gl_oset.c: Likewise.
24040 * lib/gl_rbtree_list.c: Likewise.
24041 * lib/gl_rbtree_oset.c: Likewise.
24042 * lib/gl_rbtreehash_list.c: Likewise.
24043 * lib/imaxabs.c: Likewise.
24044 * lib/imaxdiv.c: Likewise.
24045 * lib/javacomp.c: Likewise.
24046 * lib/javaexec.c: Likewise.
24047 * lib/javaversion.c: Likewise.
24048 * lib/linebreak.c: Likewise.
24049 * lib/localcharset.c: Likewise.
24050 * lib/lock.c: Likewise.
24051 * lib/mbchar.c: Likewise.
24052 * lib/mbswidth.c: Likewise.
24053 * lib/mkdtemp.c: Likewise.
24054 * lib/pipe.c: Likewise.
24055 * lib/printf-args.c: Likewise.
24056 * lib/printf-parse.c: Likewise.
24057 * lib/progname.c: Likewise.
24058 * lib/progreloc.c: Likewise.
24059 * lib/readlink.c: Likewise.
24060 * lib/sh-quote.c: Likewise.
24061 * lib/stpcpy.c: Likewise.
24062 * lib/stpncpy.c: Likewise.
24063 * lib/strcasecmp.c: Likewise.
24064 * lib/strcasestr.c: Likewise.
24065 * lib/strcspn.c: Likewise.
24066 * lib/striconv.c: Likewise.
24067 * lib/strncasecmp.c: Likewise.
24068 * lib/strnlen1.c: Likewise.
24069 * lib/strstr.c: Likewise.
24070 * lib/strtok_r.c: Likewise.
24071 * lib/tls.c: Likewise.
24072 * lib/tmpdir.c: Likewise.
24073 * lib/unicodeio.c: Likewise.
24074 * lib/unsetenv.c: Likewise.
24075 * lib/vasnprintf.c: Likewise.
24076 * lib/vasprintf.c: Likewise.
24077 * lib/wait-process.c: Likewise.
24078 * lib/xallocsa.c: Likewise.
24079 * lib/xsetenv.c: Likewise.
24080 * lib/xstriconv.c: Likewise.
24082 2006-09-13 Simon Josefsson <jas@extundo.com>
24084 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
24085 that internally, suggested by Ralf Wildenhues
24086 <Ralf.Wildenhues@gmx.de>.
24088 2006-09-13 Simon Josefsson <jas@extundo.com>
24090 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
24092 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24094 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
24096 * lib/_fpending.c: Include <config.h> unconditionally, since we no
24097 longer worry about uses that don't define HAVE_CONFIG_H.
24098 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
24099 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
24100 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
24101 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
24102 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
24103 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
24104 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
24105 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
24106 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
24107 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
24108 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
24109 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
24110 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
24111 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
24112 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
24113 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
24114 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
24115 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
24116 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
24117 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
24118 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
24119 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
24120 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
24121 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
24122 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
24123 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
24124 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
24125 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
24126 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
24127 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
24128 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
24129 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
24130 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
24131 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
24132 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
24133 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
24134 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
24135 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
24136 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
24137 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
24138 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
24141 2006-09-13 Eric Blake <ebb9@byu.net>
24143 * lib/getopt.c: Fix typo in last commit.
24145 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
24147 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
24150 2006-09-12 Jim Meyering <jim@meyering.net>
24152 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
24153 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
24154 Reported by Nelson H. F. Beebe.
24156 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
24158 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
24159 program_invocation_name and program_invocation_short_name are
24161 * lib/argp-namefrob.h: Move declarations of program_invocation_name
24162 and program_invocation_short_name to argp.h, so they are visible
24164 * lib/argp.h: Likewise
24166 2006-09-10 Bruno Haible <bruno@clisp.org>
24168 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24169 m4/inttypes_h.m4, m4/uintmax_t.m4.
24171 2006-09-10 Bruno Haible <bruno@clisp.org>
24173 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
24174 gl_AC_TYPE_UINTMAX_T.
24176 2006-09-10 Bruno Haible <bruno@clisp.org>
24178 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
24180 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
24182 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
24183 convention. Text proposed by Bruno Haible.
24184 (struct argp_option): Document the use of N_() wrappers.
24186 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
24187 '\v', and translate the two parts separately, instead of feeding
24188 the whole string to gettext. This allows to exclude
24189 '\v' from the strings visible to the translator by writing doc
24190 strings as N_("..") "\v" N_("..").
24192 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
24194 * config/srclist.txt: Undo latest change; the bug was fixed.
24196 2006-09-09 Bruno Haible <bruno@clisp.org>
24198 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
24199 assignments if building a library without libtool.
24200 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
24201 in func_emit_lib_Makefile_am.
24202 (func_import): When building a static library libfoo.a, arrange to
24203 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
24204 (func_create_testdir): Likewise.
24205 * modules/gc (configure.ac, Makefile.am): If building statically,
24206 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
24207 * modules/iconvme (configure.ac, Makefile.am): Likewise.
24208 * modules/striconv (configure.ac, Makefile.am): Likewise.
24209 Based on a suggestion by Ralf Wildenhues.
24211 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
24213 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
24214 Check for unistd.h too, since Autoconf doesn't assume POSIX.
24217 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
24218 Add year_2050_test to catch glibc bug 2821
24219 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
24221 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
24222 Prefer #ifdef to #if.
24224 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
24225 Return from 'main' instead of calling 'exit'.
24227 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
24229 * lib/mktime.c (guess_time_tm): Fix bug where mktime
24230 returned the maximum time_t value rather than (time_t) -1.
24231 Problem originally reported by William Bardwell
24232 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
24234 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
24236 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
24239 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
24241 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
24244 2006-09-08 Jim Meyering <jim@meyering.net>
24246 Don't make generated files read-only. That would bother too many
24247 people. However, do retain the ability to work when targets are
24248 read-only: remove the destination and temporary files before writing
24249 them (when generated via sed or echo), or by using the -f option for
24250 both cp and mv commands. Suggestion to use -f from Paul Eggert.
24251 * modules/alloca-opt, modules/argz, modules/arpa_inet:
24252 * modules/byteswap, modules/configmake, modules/fcntl:
24253 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
24254 * modules/localcharset, modules/netinet_in, modules/poll:
24255 * modules/stdbool, modules/stdint, modules/sys_select:
24256 * modules/sys_socket, modules/sys_stat, modules/sysexits:
24258 2006-09-08 Jim Meyering <jim@meyering.net>
24260 Avoid new build failure on FreeBSD 6.0.
24261 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
24262 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
24263 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
24265 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24267 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
24269 2006-09-07 Jim Meyering <jim@meyering.net>
24271 Fix global typo in last change: use chmod u-w, not chmod u-x.
24272 Spotted by Paul Eggert and Bruce Korb.
24273 * modules/alloca-opt, modules/argz, modules/arpa_inet:
24274 * modules/byteswap, modules/configmake, modules/fcntl:
24275 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
24276 * modules/localcharset, modules/netinet_in, modules/poll:
24277 * modules/stdbool, modules/stdint, modules/sys_select:
24278 * modules/sys_socket, modules/sys_stat, modules/sysexits:
24280 2006-09-06 Jim Meyering <jim@meyering.net>
24282 Make generated files be read-only.
24283 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
24284 Ensure that each generated file is now read-only.
24285 * modules/argz: Likewise.
24286 * modules/arpa_inet: Likewise.
24287 * modules/byteswap: Likewise.
24288 * modules/configmake: Likewise.
24289 * modules/fcntl: Likewise.
24290 * modules/fnmatch: Likewise.
24291 * modules/getopt: Likewise.
24292 * modules/glob: Likewise.
24293 * modules/inttypes: Likewise.
24294 * modules/netinet_in: Likewise.
24295 * modules/poll: Likewise.
24296 * modules/stdbool: Likewise.
24297 * modules/stdint: Likewise.
24298 * modules/sys_select: Likewise.
24299 * modules/sys_socket: Likewise.
24300 * modules/sys_stat: Likewise.
24301 * modules/sysexits: Likewise.
24302 * modules/localcharset: Same as above, but continue using temporary
24303 file named "t-$@" (why different?) rather than the "$@-t" used
24306 * modules/sysexits (Makefile.am): Replace literal occurrences
24307 of "sysexit.h" more readable, and more consistent, "$@".
24309 2006-09-06 Bruno Haible <bruno@clisp.org>
24311 * modules/striconv: New file.
24312 * modules/xstriconv: New file.
24313 * MODULES.html.sh (Internationalization functions): Add striconv,
24316 2006-09-06 Bruno Haible <bruno@clisp.org>
24318 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
24319 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
24320 not using libtool correctly.
24322 2006-09-06 Bruno Haible <bruno@clisp.org>
24324 * lib/striconv.h: New file.
24325 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
24327 * lib/xstriconv.h: New file.
24328 * lib/xstriconv.c: New file.
24330 2006-09-06 Bruno Haible <bruno@clisp.org>
24332 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
24335 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24337 * lib/argz_.h: Sync from Libtool.
24339 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
24340 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24342 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
24344 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
24346 * modules/trim: New file.
24348 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
24350 * lib/trim.h: New file.
24351 * lib/trim.c: New file.
24353 2006-09-05 Bruno Haible <bruno@clisp.org>
24355 * MODULES.html.sh (String handling): Add trim.
24357 2006-09-04 Karl Berry <karl@gnu.org>
24359 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
24360 until next release.
24362 2006-09-03 Bruno Haible <bruno@clisp.org>
24364 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
24367 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
24369 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
24370 not gl_GETLOADAVG. Omit unneeded semicolons.
24371 Problems reported by Ralf Wildenhues in
24372 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24373 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
24374 at the end, which is the usual gnulib style.
24376 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
24377 of doing all the work ourselves.
24378 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
24379 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
24381 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
24383 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
24384 Problem reported by Ralf Wildenhues in
24385 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24387 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
24388 HAVE_STRUCT_STATFS_F_FSTYPENAME.
24390 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
24392 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
24393 yesterday's patch by changing test -n to test -z.
24395 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
24397 * modules/getloadavg (Files): Add m4/getloadavg.m4.
24398 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
24399 the former is now obsolescent.
24401 * modules/chdir-long (Depends-on): Add fcntl.
24403 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
24405 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
24406 obsolescent, and programs should use gnulib instead.
24407 * m4/getloadavg.m4: New file, with contents taken from Autoconf
24408 but with prefixes changed.
24410 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
24412 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
24413 or stdbool.h, because they might not exist while configuring.
24415 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
24416 Don't include unistd.h or limits.h; not needed, since chdir-long.h
24418 (O_DIRECTORY): Remove.
24420 2006-08-31 Eric Blake <ebb9@byu.net>
24422 * gnulib-tool: Don't let emacs change spaces to TAB.
24424 2006-08-31 Bruno Haible <bruno@clisp.org>
24426 * gnulib-tool: When calling func_import more than once, do it in a
24428 Reported by Eric Blake <ebb9@byu.net>.
24430 2006-08-31 Bruno Haible <bruno@clisp.org>
24432 * gnulib-tool (nl): Remove variable.
24433 (sed_transform_lib_file): Use more robust test for config-h module.
24434 (func_import): Fix typo in 2006-08-25 patch.
24436 2006-08-31 Bruno Haible <bruno@clisp.org>
24438 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
24439 specified, augment Makefile.am variables instead of assigning them.
24441 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
24443 Work around a bug in both the Linux and SunOS 64-bit kernels:
24444 nanosleep mishandles sleeps for longer than 2**31 seconds.
24445 Problem reported by Frank v Waveren in
24446 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24447 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
24448 Check for nanosleep bug.
24449 (LIB_NANOSLEEP): Append clock_gettime library if needed.
24451 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
24453 Work around a bug in both the Linux and SunOS 64-bit kernels:
24454 nanosleep mishandles sleeps for longer than 2**31 seconds.
24455 Problem reported by Frank v Waveren in
24456 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24457 * lib/nanosleep.c (BILLION): New constant.
24458 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
24459 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
24462 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
24464 * modules/nanosleep (Depends-on): Add gettime.
24466 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
24467 and Simon Josefsson <jas@extundo.com>
24468 and Oskar Liljeblad <oskar@osk.mine.nu>
24470 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
24471 * gnulib-tool (func_import): New license type 'unmodifiable license
24473 * modules/fdl: Use it. Longer description.
24474 * module/gpl, module/lgpl: New files.
24476 2006-08-30 Jim Meyering <jim@meyering.net>
24478 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
24479 shadowing the parameter.
24481 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24485 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24487 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
24488 sharing with gnulib. Report by Eric Blake.
24490 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
24492 * modules/isapipe: New file.
24493 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
24495 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
24497 * modules/configmake (Makefile.am): Add a comment, and omit
24498 the CONFIGMAKE_ prefix from generated macro names. Suggested
24501 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
24503 * m4/isapipe.m4: New file.
24505 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
24507 * lib/isapipe.c, lib/isapipe.h: New files.
24509 2006-08-29 Jim Meyering <jim@meyering.net>
24511 * modules/configmake (Makefile.am): Make configmake.h depend on
24512 Makefile. Otherwise, a stale configmake.h could hang around.
24514 2006-08-29 Eric Blake <ebb9@byu.net>
24516 * lib/error.c (error_at_line, print_errno_message): Match libc, after
24517 resolution of upstream bug 3044.
24519 2006-08-29 Bruno Haible <bruno@clisp.org>
24521 * modules/localcharset (Depends-on): Add configmake.
24522 (Makefile.am): Remove setting of LIBDIR through DEFS.
24524 2006-08-29 Bruno Haible <bruno@clisp.org>
24526 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
24529 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
24531 * modules/fcntl: New file.
24532 * modules/chdir-safer (Depends-on): Add fcntl.
24533 * modules/fts: Likewise.
24534 * modules/mkdir-p: Likewise.
24536 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
24537 This undoes the most recent change, since we're now addressing the
24538 problem in a different way.
24540 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
24541 into output, since the output might be called Makefile.am even
24542 if $makefile_name is something different.
24543 (func_import): Use $makefile_am rather than
24544 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
24547 * modules/inttypes (Files): Add m4/inttypes-h.m4.
24549 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
24551 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
24552 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
24553 recent change to stdint.m4, since we're now addressing the problem in a
24556 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
24558 * m4/fcntl_h.m4: New file.
24560 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
24562 * lib/fcntl_.h: New file.
24563 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
24565 * lib/dirchownmod.c: Likewise.
24566 * lib/fts.c: Likewise.
24568 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
24569 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
24570 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
24571 just before including <inttypes.h>, to avoid circular inclusion.
24573 2006-08-28 Jim Meyering <jim@meyering.net>
24575 * doc/visibility.texi: Actually read and correct the grammar of the
24576 sentence affected by yesterday's change.
24578 2006-08-28 Eric Blake <ebb9@byu.net>
24580 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
24583 2006-08-28 Eric Blake <ebb9@byu.net>
24585 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
24587 2006-08-28 Eric Blake <ebb9@byu.net>
24589 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
24591 2006-08-28 Bruno Haible <bruno@clisp.org>
24593 * modules/c-strstr: New file, from GNU gettext.
24594 * MODULES.html.sh (String handling): Add c-strstr.
24596 2006-08-28 Bruno Haible <bruno@clisp.org>
24598 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
24600 Reported by Eric Blake.
24602 2006-08-28 Bruno Haible <bruno@clisp.org>
24604 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
24605 (VASNPRINTF): Return a string of length > INT_MAX without failing.
24606 * lib/vasprintf.c: Include errno.h, limits.h.
24607 (EOVERFLOW): New fallback definition.
24608 (vasprintf): Test here whether the string length is > INT_MAX.
24609 * lib/vsnprintf.c: Include errno.h, limits.h.
24610 (EOVERFLOW): New fallback definition.
24611 (vsnprintf): Fix bug when generated string was too long for the buffer.
24612 Test here whether the string length is > INT_MAX.
24614 2006-08-28 Bruno Haible <bruno@clisp.org>
24616 * lib/inttypes_.h (SCNX*): Remove definitions.
24617 Reported by Eric Blake.
24619 2006-08-28 Bruno Haible <bruno@clisp.org>
24621 * lib/c-strstr.h: New file, from GNU gettext.
24622 * lib/c-strstr.c: New file, from GNU gettext.
24624 2006-08-28 Bruno Haible <bruno@clisp.org>
24626 * gnulib-tool: Reorder some statements.
24628 2006-08-28 Bruno Haible <bruno@clisp.org>
24630 * gnulib-tool: New option --makefile-name.
24631 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
24633 (func_import): Write $makefile_name to the cache file, and read it from
24634 there unless explicitly specified. Use $makefile_name as file name
24635 instead of Makefile.am. Adjust the recommendations accordingly.
24637 2006-08-28 Bruno Haible <bruno@clisp.org>
24639 * gnulib-tool (func_verify_module): Check against misapplying patch.
24641 2006-08-28 Bruno Haible <bruno@clisp.org>
24643 * gnulib-tool (func_relativize, func_relconcat): New functions.
24644 Give an error if --local-dir is given with --update.
24645 Remove trailing slashes from $local_gnulib_dir.
24646 (func_import): Store the relativized $local_gnulib_dir in
24647 gnulib-cache.m4, and read it from there if not specified explicitly.
24649 2006-08-28 Bruno Haible <bruno@clisp.org>
24651 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
24652 is the current directory. Respect also $local_gnulib_dir.
24654 2006-08-28 Bruno Haible <bruno@clisp.org>
24655 Simon Josefsson <jas@extundo.com>
24658 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
24660 2006-08-27 Jim Meyering <jim@meyering.net>
24662 * doc/visibility.texi: Remove duplicate word: "pointer".
24664 2006-08-26 Bruno Haible <bruno@clisp.org>
24666 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
24667 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
24668 (Makefile.am): Create inttypes.h from inttypes_.h.
24669 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
24671 * modules/imaxabs: New file.
24673 * modules/imaxdiv: New file.
24675 2006-08-26 Bruno Haible <bruno@clisp.org>
24677 * m4/inttypes.m4: New file.
24678 * m4/_inttypes_h.m4: Remove file.
24679 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
24681 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
24683 * m4/imaxabs.m4: New file.
24685 * m4/imaxdiv.m4: New file.
24687 2006-08-26 Bruno Haible <bruno@clisp.org>
24689 * lib/inttypes_.h: New file.
24690 * lib/inttypes.h: Remove file.
24691 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
24693 * lib/imaxabs.c: New file.
24695 * lib/imaxdiv.c: New file.
24697 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
24699 New config-h module, so that "make" output needn't be cluttered
24700 by -DHAVE_CONFIG_H.
24701 * MODULES.html.sh (Support for building libraries and executables):
24703 * modules/config-h: New file.
24704 * gnulib-tool (nl, sed_transform_lib_file): New vars.
24705 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
24706 the config-h module is used.
24708 New configmake module, so that "make" output needn't be cluttered
24709 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
24710 * MODULES.html.sh (Support for building libraries and executables):
24712 * modules/configmake: New file.
24714 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
24716 * m4/config-h.m4: New file.
24718 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
24720 * config/srclist.txt: Add elisp-comp.
24722 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
24724 * MODULES.html.sh (Support for building libraries and executables):
24726 * build-aux/elisp-comp: New file.
24727 * modules/elisp-comp: New file.
24729 2006-08-24 Bruno Haible <bruno@clisp.org>
24731 * gnulib-tool (func_create_testdir): Use non-default values of
24732 sourcebase and m4base.
24734 2006-08-24 Bruno Haible <bruno@clisp.org>
24736 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
24739 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
24741 * modules/openat (Depends-on): Add lchown.
24743 2006-08-23 Bruno Haible <bruno@clisp.org>
24745 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
24746 of gl_LOCK_EARLY instead of gl_LOCK.
24748 2006-08-23 Bruno Haible <bruno@clisp.org>
24750 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
24752 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
24754 2006-08-23 Bruno Haible <bruno@clisp.org>
24756 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
24759 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
24760 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
24761 (gl_LOCK): New macro.
24763 2006-08-22 Simon Josefsson <jas@extundo.com>
24765 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
24768 2006-08-22 Simon Josefsson <jas@extundo.com>
24770 * MODULES.html.sh: Add "Support for maintaining and release
24773 * build-aux/gnupload: New file, from coreutils.
24775 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
24777 Avoid the need for AC_LIBSOURCES in m4 macros.
24778 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
24779 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
24780 * modules/check-version (EXTRA_DIST): Add check-version.h.
24781 * modules/crc (EXTRA_DIST): Add crc.h.
24782 * modules/des (EXTRA_DIST): Add des.h.
24783 * modules/gc (EXTRA_DIST): Add gc.h.
24784 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
24785 * modules/getline (EXTRA_DIST): Add getline.h.
24786 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
24787 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
24788 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
24789 * modules/md2 (EXTRA_DIST): Add md2.h.
24790 * modules/md4 (EXTRA_DIST): Add md4.h.
24791 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
24792 * modules/read-file (EXTRA_DIST): Add read-file.h.
24793 * modules/readline (EXTRA_DIST): Add readline.h.
24794 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
24795 rijndael-api-fst.h.
24797 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
24799 * m4/rijndael.m4 (gl_ARCFOUR):
24800 * m4/arctwo.m4 (gl_ARCTWO):
24801 * m4/check-version.m4 (gl_CHECK_VERSION):
24802 * m4/crc.m4 (gl_CRC):
24803 * m4/des.m4 (gl_DES):
24804 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
24805 * m4/gc.m4 (gl_GC):
24806 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24807 * m4/getline.m4 (gl_FUNC_GETLINE):
24808 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
24809 * m4/hmac-md5.m4 (gl_HMAC_MD5):
24810 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
24811 * m4/md2.m4 (gl_MD2):
24812 * m4/md4.m4 (gl_MD4):
24813 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
24814 * m4/read-file.m4 (gl_FUNC_READ_FILE):
24815 * m4/readline.m4 (gl_FUNC_READLINE):
24816 * m4/rijndael.m4 (gl_RIJNDAEL):
24817 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24818 to get the necessary .h files and whatnot.
24820 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
24822 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
24823 gnulib rather than the other way around.
24824 * config/srclistvars.sh (COREUTILS): Remove.
24826 2006-08-22 Jim Meyering <jim@meyering.net>
24828 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
24830 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
24832 2006-08-22 Eric Blake <ebb9@byu.net>
24834 * modules/regexprops-generic: New file.
24835 * MODULES.html.sh (Support for building documentation): List it.
24837 2006-08-22 Eric Blake <ebb9@byu.net>
24839 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
24840 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24841 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
24842 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
24844 2006-08-22 Bruno Haible <bruno@clisp.org>
24846 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
24847 and lib_LTLIBRARIES like the other lib_* variables.
24849 2006-08-22 Bruno Haible <bruno@clisp.org>
24851 * build-aux/x-to-1.in: New file, from GNU gettext.
24853 2006-08-22 Bruno Haible <bruno@clisp.org>
24855 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
24858 2006-08-22 Bruno Haible <bruno@clisp.org>
24860 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
24863 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
24866 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
24868 Problem reported by Bruno Haible.
24870 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
24872 Avoid the need for AC_LIBSOURCES in m4 macros.
24873 * modules/acl (EXTRA_DIST): Add acl.h.
24874 * modules/argmatch (Files): Add m4/argmatch.m4.
24875 (configure.ac): Add gl_ARGMATCH.
24876 (EXTRA_DIST): Renamed from lib_SOURCES, for
24877 consistency with the other modules. Remove argmatch.c.
24878 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
24879 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
24880 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
24881 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
24882 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
24883 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
24884 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
24885 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
24886 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
24887 * modules/closeout (EXTRA_DIST): Add closeout.h.
24888 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
24889 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
24890 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
24891 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
24892 dirname.h; remove basename.c and stripslash.c.
24893 * modules/exclude (EXTRA_DIST): Add exclude.h.
24894 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
24895 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
24896 * modules/file-type (EXTRA_DIST): Add file-type.h.
24897 * modules/filemode (EXTRA_DIST): Add filemode.h.
24898 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
24899 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24900 * modules/fpending (EXTRA_DIST): Add __fpending.h.
24901 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
24902 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
24903 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
24904 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
24905 * modules/getdate (EXTRA_DIST): Add getdate.c.
24906 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
24907 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
24908 * modules/getpass (EXTRA_DIST): Add getpass.h.
24909 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
24910 * modules/group-member (EXTRA_DIST): Add group-member.h.
24911 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
24912 * modules/hash (EXTRA_DIST): Add hash.h.
24913 * modules/human (EXTRA_DIST): Add human.h.
24914 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
24915 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
24916 * modules/lchown (EXTRA_DIST): Add lchown.h.
24917 * modules/long-options (EXTRA_DIST): Add long-options.h.
24918 * modules/lstat (EXTRA_DIST): Add lstat.h.
24919 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
24920 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
24921 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
24922 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
24923 * modules/memxor (EXTRA_DIST): Add memxor.h.
24924 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
24925 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
24926 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
24927 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
24928 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
24929 * modules/physmem (EXTRA_DIST): Add physmem.h.
24930 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
24931 * modules/posixver (EXTRA_DIST): Add posixver.h.
24932 * modules/quote (EXTRA_DIST): Add quote.h.
24933 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
24934 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
24935 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
24936 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
24937 regex_internal.h regexec.c.
24938 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
24939 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
24940 * modules/same (EXTRA_DIST): Add same.h.
24941 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
24942 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
24943 * modules/savedir (EXTRA_DIST): Add savedir.h.
24944 * modules/sha1 (EXTRA_DIST): Add sha1.h.
24945 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
24946 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
24947 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
24948 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
24949 * modules/strdup (EXTRA_DIST): Add strdup.h.
24950 * modules/strftime (EXTRA_DIST): Add strftime.h.
24951 * modules/strndup (EXTRA_DIST): Add strndup.h.
24952 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
24953 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
24954 * modules/time_r (EXTRA_DIST): Add time_r.h.
24955 * modules/timespec (EXTRA_DIST): Add timespec.h.
24956 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
24957 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
24958 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
24959 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
24960 * modules/userspec (EXTRA_DIST): Add userspec.h.
24961 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
24962 * modules/utimens (EXTRA_DIST): Add utimens.h.
24963 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
24964 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
24965 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
24966 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
24967 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
24968 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
24969 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
24970 * modules/yesno (EXTRA_DIST): Add yesno.h.
24972 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
24974 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
24976 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
24977 * m4/dev-ino.m4, same-inode.m4: Remove.
24979 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
24980 * m4/acl.m4 (AC_FUNC_ACL):
24981 * m4/backupfile.m4 (gl_BACKUPFILE):
24982 * m4/c-strtod.m4 (gl_C99_STRTOLD):
24983 * m4/canon-host.m4 (gl_CANON_HOST):
24984 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
24985 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
24986 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
24987 * m4/cloexec.m4 (gl_CLOEXEC):
24988 * m4/close-stream.m4 (gl_CLOSE_STREAM):
24989 * m4/closeout.m4 (gl_CLOSEOUT):
24990 * m4/dirfd.m4 (gl_FUNC_DIRFD):
24991 * m4/dirname.m4 (gl_DIRNAME):
24992 * m4/exclude.m4 (gl_EXCLUDE):
24993 * m4/exitfail.m4 (gl_EXITFAIL):
24994 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
24995 * m4/file-type.m4 (gl_FILE_TYPE):
24996 * m4/filemode.m4 (gl_FILEMODE):
24997 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
24998 * m4/fpending.m4 (gl_FUNC_FPENDING):
24999 * m4/fprintftime.m4 (gl_FPRINTFTIME):
25000 * m4/fts.m4 (gl_FUNC_FTS):
25001 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
25002 * m4/getdate.m4 (gl_GETDATE):
25003 * m4/gethrxtime.m4 (gl_GETHRXTIME):
25004 * m4/getpagesize.m4 (gl_GETPAGESIZE):
25005 * m4/getpass.m4 (gl_FUNC_GETPASS):
25006 * m4/gettime.m4 (gl_GETTIME):
25007 * m4/getugroups.m4 (gl_GETUGROUPS):
25008 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
25009 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
25010 * m4/hard-locale.m4 (gl_HARD_LOCALE):
25011 * m4/hash.m4 (gl_HASH):
25012 * m4/idcache.m4 (gl_IDCACHE):
25013 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
25014 * m4/lchown.m4 (gl_FUNC_LCHOWN):
25015 * m4/long-options.m4 (gl_LONG_OPTIONS):
25016 * m4/lstat.m4 (gl_FUNC_LSTAT):
25017 * m4/md5.m4 (gl_MD5):
25018 * m4/memcasecmp.m4 (gl_MEMCASECMP):
25019 * m4/memcoll.m4 (gl_MEMCOLL):
25020 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
25021 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
25022 * m4/memxor.m4 (gl_MEMXOR):
25023 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
25024 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
25025 * m4/modechange.m4 (gl_MODECHANGE):
25026 * m4/mountlist.m4 (gl_MOUNTLIST):
25027 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25028 * m4/openat.m4 (gl_FUNC_OPENAT):
25029 * m4/pathmax.m4 (gl_PATHMAX):
25030 * m4/physmem.m4 (gl_PHYSMEM):
25031 * m4/posixtm.m4 (gl_POSIXTM):
25032 * m4/posixver.m4 (gl_POSIXVER):
25033 * m4/quote.m4 (gl_QUOTE):
25034 * m4/quotearg.m4 (gl_QUOTEARG):
25035 * m4/readtokens.m4 (gl_READTOKENS):
25036 * m4/readutmp.m4 (gl_READUTMP):
25037 * m4/regex.m4 (gl_REGEX):
25038 * m4/safe-read.m4 (gl_SAFE_READ):
25039 * m4/safe-write.m4 (gl_SAFE_WRITE):
25040 * m4/same.m4 (gl_SAME):
25041 * m4/save-cwd.m4 (gl_SAVE_CWD):
25042 * m4/savedir.m4 (gl_SAVEDIR):
25043 * m4/settime.m4 (gl_SETTIME):
25044 * m4/sha1.m4 (gl_SHA1):
25045 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
25046 * m4/stat-macros.m4 (gl_STAT_MACROS):
25047 * m4/stat-time.m4 (gl_STAT_TIME):
25048 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
25049 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
25050 * m4/strdup.m4 (gl_FUNC_STRDUP):
25051 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
25052 * m4/strndup.m4 (gl_FUNC_STRNDUP):
25053 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
25054 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
25055 * m4/time_r.m4 (gl_TIME_R):
25056 * m4/timespec.m4 (gl_TIMESPEC):
25057 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
25058 * m4/unlinkdir.m4 (gl_UNLINKDIR):
25059 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
25060 * m4/userspec.m4 (gl_USERSPEC):
25061 * m4/utimecmp.m4 (gl_UTIMECMP):
25062 * m4/utimens.m4 (gl_UTIMENS):
25063 * m4/xalloc.m4 (gl_XALLOC):
25064 * m4/xgetcwd.m4 (gl_XGETCWD):
25065 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
25066 * m4/xreadlink.m4 (gl_XREADLINK):
25067 * m4/xstrtod.m4 (gl_XSTRTOD):
25068 * m4/yesno.m4 (gl_YESNO):
25069 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
25070 to get the necessary .h files and whatnot.
25072 2006-08-21 Mark D. Baushke <mdb@gnu.org>
25073 Bruno Haible <bruno@clisp.org>
25075 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
25076 /bin/sh understanding of '!' conditional negation.
25078 2006-08-21 Jim Meyering <jim@meyering.net>
25080 * modules/openat (Depends-on): Really alphabetize.
25082 * modules/acl (Depends-on): Add error and quote.
25084 * check-module (find_included_lib_files): Add at-func.c to the
25085 ok-to-include-more-than-once white list.
25087 * modules/openat (Depends-on): Add lstat. Alphabetize.
25089 2006-08-21 Bruno Haible <bruno@clisp.org>
25091 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25092 Emit a pkgdata_DATA variable only if some snippets add contents to it.
25093 Reported by Martin Lambers <marlam@marlam.de>.
25095 2006-08-21 Bruno Haible <bruno@clisp.org>
25097 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
25098 specify an installation location, don't emit a noinst_LIBRARIES or
25099 noinst_LTLIBRARIES assignment.
25101 2006-08-21 Bruno Haible <bruno@clisp.org>
25104 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
25105 BeOS has mbrtowc() but no <wctype.h>.
25107 2006-08-21 Bruno Haible <bruno@clisp.org>
25110 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
25113 2006-08-21 Bruno Haible <bruno@clisp.org>
25116 * lib/mbchar.h: Include <wctype.h> only if it exists.
25118 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
25120 Remove files that are no longer needed by their respective modules.
25121 * m4/obstack.m4: Remove.
25122 * m4/strerror_r.m4: Remove.
25123 * m4/uint32_t.m4: Remove.
25124 * m4/uintptr_t.m4: Remove.
25125 * m4/ullong_max.m4: Remove.
25126 * m4/xstrtoimax.m4: Remove.
25127 * m4/xstrtoumax.m4: Remove.
25129 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
25130 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
25131 dependencies now capture this.
25133 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
25134 Do not use AC_LIBSOURCES, since gnulib modules now do this.
25135 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
25136 * m4/human.m4 (gl_HUMAN): Likewise.
25137 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
25138 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
25140 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
25142 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
25143 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
25145 * m4/human.m4 (gl_HUMAN): Likewise.
25146 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
25147 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
25148 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
25149 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
25150 * m4/xstrtol (gl_XSTRTOL): Likewise.
25152 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
25153 AC_TYPE_LONG_LONG_INT.
25154 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
25155 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
25156 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
25157 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
25159 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
25162 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
25163 (gl_PREREQ_XSTRTOUL): Remove.
25165 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
25167 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
25170 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
25172 Add and change modules to make it easier for coreutils to use
25174 * modules/backupfile (Files): Remove m4/d-ino.m4.
25175 (Depends-on): Add d-ino.
25176 * modules/cycle-check (Depends-on): Add stdint.
25177 (lib_SOURCES): Add cycle-check.h.
25178 * modules/d-ino: New module.
25179 * modules/d-type: New module.
25180 * modules/error (Files): Remove m4/strerror_r.m4.
25181 * modules/filemode (Files): Add m4/st_dm_mode.m4.
25182 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
25183 m4/inttypes_h.m4, m4/uintmax_t.m4.
25184 (Depends-on): Add stdint.
25185 (lib_SOURCES): Add fsusage.h.
25186 * modules/getcwd (Files): Remove d-ino.m4.
25187 (Depends-on): Add d-ino.
25188 * modules/getndelim2 (Depends-on): Add stdint.
25189 * modules/glob (Files): Remove m4/d-type.m4.
25190 (Depends-on): Add d-type.
25191 * modules/host-os: New module.
25192 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
25193 m4/inttypes_h.m4, m4/uintmax_t.m4.
25194 * Depends-on: Add stdint.
25195 (lib_SOURCES): Add human.h.
25196 * modules/inttostr (Files): Remove m4/intmax_t.m4,
25197 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
25198 m4/uintmax_t.m4, m4/ulonglong.m4.
25199 (Depends-on): Add stdint.
25200 (EXTRA_DIST): Add inttostr.h.
25201 * modules/lchmod: New module.
25202 * modules/link-follow: New module.
25203 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
25204 (Depends-on): Add lchmod.
25205 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
25206 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
25207 (Depends-on): Add stdint.
25208 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
25209 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
25210 (Depends-on): Add stdint.
25211 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
25212 * modules/perl: New module.
25213 * modules/regex (Depends-on): Add stdint.
25214 * modules/rmdir-errno: New module.
25215 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
25217 (Depends-on): Add stdint.
25218 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
25220 (Depends-on): Add stdint.
25221 * modules/unlink-busy: New module.
25222 * modules/utimecmp (Depends-on): Add stdint.
25223 * modules/uptime: New module.
25224 * modules/winsz-ioctl: New module.
25225 * modules/winsz-termios: New module.
25226 * modules/xnanosleep (Depends-on): Add nanosleep.
25227 * modules/ullong_max: Remove.
25228 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
25229 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
25230 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
25231 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
25232 (Depends-on): Add inttypes.
25233 (lib_SOURCES): Add xstrtol.h.
25234 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
25235 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
25236 * MODULES.html.sh: Move 'assert' into the assert section.
25237 Move 'dummy' into the linking section.
25239 Add section for compatibility checks for POSIX:2001 functions,
25240 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
25241 winsz-ioctl, and winsz-termios into it.
25243 Add top-level Misc section and put host-os, perl, and uptime
25246 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
25248 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
25249 now assume the stdint module. Do not include inttypes.h.
25250 * lib/fsusage.h: Likewise.
25251 * lib/getndelim2.c: Likewise.
25252 * lib/human.h: Likewise.
25253 * lib/inttostr.h: Likewise.
25254 * lib/obstack.c: Likewise.
25255 * lib/regex_internal.h: Likewise.
25256 * lib/tempname.c: Likewise.
25257 * lib/utimecmp.c: Likewise.
25258 * lib/xstrtol.h: Likewise.
25260 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
25262 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
25263 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
25264 * lib/xtime.h: Likewise.
25266 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
25268 * modules/openat (Files): Add lib/fchmodat.c.
25269 Fixes problem reported by Jay Youngman.
25271 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
25273 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
25274 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
25276 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
25277 Bruno Haible <bruno@clisp.org>
25279 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
25280 and is a script that invokes bison. Tighten the code. Add comments.
25282 2006-08-18 Jim Meyering <jim@meyering.net>
25284 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
25285 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
25286 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
25287 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
25289 2006-08-18 Bruno Haible <bruno@clisp.org>
25291 * modules/bison-i18n: New file.
25292 * MODULES.html.sh (Internationalization functions): Add it.
25294 2006-08-18 Bruno Haible <bruno@clisp.org>
25296 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
25297 sys/statvfs.h. When getmntinfo was found, check its declaration and
25298 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
25300 2006-08-18 Bruno Haible <bruno@clisp.org>
25302 * m4/bison-i18n.m4: New file, from bison.
25304 2006-08-18 Bruno Haible <bruno@clisp.org>
25306 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
25307 (ME_DUMMY): Treat "kernfs" as a dummy.
25308 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
25310 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
25312 Update from coreutils.
25314 2006-08-15 Jim Meyering <jim@meyering.net>
25316 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
25318 2006-01-17 Jim Meyering <jim@meyering.net>
25320 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
25322 2006-01-11 Jim Meyering <jim@meyering.net>
25324 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
25325 Check for the lchmod function.
25327 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
25329 Update from coreutils.
25331 * lib/__fpending.h: Add copyright notice.
25332 * lib/fprintftime.h: Likewise.
25333 * lib/savedir.c: Use (C) in copyright notice.
25334 * lib/savedir.h: Likewise.
25336 2006-08-15 Jim Meyering <jim@meyering.net>
25338 * lib/at-func.c: New file, with the logic of all emulated at-functions.
25339 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
25340 in support of the EXPECTED_ERRNO macro.
25341 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
25342 definitions. Instead, define the appropriate symbols and include
25344 * lib/mkdirat.c (mkdirat): Likewise.
25345 * lib/fchmodat.c (fchmodat): Likewise.
25346 (ENOSYS): Remove definition.
25347 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
25348 it. Don't include "unistd--.h" -- it wasn't ever used.
25350 2006-01-17 Jim Meyering <jim@meyering.net>
25352 Rewrite fts.c not to change the current working directory,
25353 by using openat, fstatat, fdopendir, etc..
25355 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
25356 (HAVE_OPENAT_SUPPORT): Define.
25357 [_LIBC] (fchdir): Don't undef or define; no longer used.
25358 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
25359 Now, this `function' always succeeds, and consumes its file descriptor
25360 parameter -- so callers must not close such FDs. Update callers.
25361 (diropen_fd, opendirat, cwd_advance_fd): New functions.
25362 (diropen): Add parameter, SP. Adjust all callers.
25363 Implement using diropen_fd, rather than open.
25364 (fts_open): Initialize new member, fts_cwd_fd.
25365 Remove fts_rft-setting code.
25366 (fts_close): Close fts_cwd_fd, if necessary.
25367 (__opendir2): Define in terms of opendir or opendirat,
25368 depending on whether the FST_NOCHDIR flag is set.
25369 (fts_build): Since fts_safe_changedir consumes its FD, and since
25370 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
25371 and close the dup'd file descriptor upon failure.
25372 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
25373 (fts_safe_changedir): Tweak semantics to reflect that this function
25374 now calls cwd_advance_fd and hence consumes its FD argument.
25375 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
25376 [struct FTS] (fts_rft): Remove now-unused member.
25377 [struct FTS] (fts_cycle.state): Improve comment.
25379 * lib/openat.c (openat_needs_fchdir): New function.
25380 * lib/openat.h (openat_needs_fchdir): Declare it.
25382 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
25384 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
25385 Problem and fix reported by Pádraig Brady in
25386 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
25388 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
25390 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
25392 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
25394 * lib/memcoll.c (memcoll): Optimize for the common case where the
25395 arguments are bytewise equal.
25397 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
25399 * doc/regexprops-generic.texi: Add a copyright notice.
25401 2006-08-15 Bruno Haible <bruno@clisp.org>
25403 * modules/tmpdir (License): Change to LGPL.
25405 2006-08-15 Bruno Haible <bruno@clisp.org>
25407 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
25410 2006-08-14 Simon Josefsson <jas@extundo.com>
25412 * config/srclist.txt: Add gnupload.
25414 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
25416 Change copyright notice from LGPL 2 to GPL 2, since that's the
25417 standard form used in the gnulib repository.
25418 * tests/test-lock.c: Likewise.
25419 * tests/test-stdint.c: Likewise.
25420 * tests/test-tls.c: Likewise.
25422 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
25423 prelude-manager. User shorter URLs for GNU projects, without '?'.
25424 Add copyright notice.
25426 * check-module: Add copyright notice. Output a copyright
25427 notice if "--version" is specified.
25428 * modules/COPYING: New file.
25429 * tests/test-getaddrinfo.c: Add copyright notice.
25430 * tests/test-verify.c: Likewise.
25432 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
25434 Change copyright notice from LGPL 2 to GPL 2, since that's the
25435 standard form used in the gnulib repository.
25436 * lib/lock.c: LGPL -> GPL.
25437 * lib/lock.h: Likewise.
25438 * lib/strnlen1.c: Likewise.
25439 * lib/strnlen1.h: Likewise.
25440 * lib/tls.c: Likewise.
25441 * lib/tls.h: Likewise.
25442 * lib/tmpdir.c: Likewise.
25444 * lib/TODO: Remove; this belongs only in coreutils.
25446 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
25448 Add copyright notices to long-enough files that lack them, since
25449 otherwise the files aren't clearly free. Use the same notice that
25450 getdate.texi already uses.
25451 * doc/alloca-opt.texi: Add copyright notice.
25452 * doc/alloca.texi: Likewise.
25453 * doc/ctime.texi: Likewise.
25454 * doc/functions.texi: Likewise.
25455 * doc/gcd.texi: Likewise.
25456 * doc/gnulib-tool.texi: Likewise.
25457 * doc/inet_ntoa.texi: Likewise.
25458 * doc/visibility.texi: Likewise.
25460 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
25461 * doc/quote.texi: Add copyright notice.
25463 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
25464 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
25465 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
25466 Mention SunOS 5.11. Mention that everything before SunOS 5.7
25467 is now obsolete, and give a pointer to the Sun list.
25468 Add copyright notice.
25470 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
25472 * config/srclistvars.sh: Add copyright notice.
25474 2006-08-14 Eric Blake <ebb9@byu.net>
25476 Import the following change from libc:
25478 2006-08-12 Ulrich Drepper <drepper@redhat.com>
25481 * lib/misc/error.c: Add space between program name and message if file
25484 2006-08-12 Karl Berry <karl@gnu.org>
25486 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
25487 remove, these originate in gnulib now.
25489 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25491 * doc/Makefile (standards.info standards.html standards.dvi):
25492 Also depend on make-stds.texi.
25494 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
25496 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
25497 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
25499 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
25500 in wchar_t. Problem reported by Eric Blake.
25502 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
25503 LEN is smaller than SIZE. Suggested by Bruno Haible.
25504 Also, help the compiler to keep LEN in a register.
25506 2006-08-11 Eric Blake <ebb9@byu.net>
25508 * users.txt: Sort. Add tar.
25510 2006-08-11 Bruno Haible <bruno@clisp.org>
25512 * users.txt: New file.
25514 2006-08-11 Bruno Haible <bruno@clisp.org>
25516 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
25517 before <wchar.h>. Needed for OSF/1 and BSD/OS.
25519 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
25521 * modules/snprintf (Depends-on): Remove minmax.
25522 (Maintainer): Add self and Bruno.
25524 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
25526 * lib/.cppi-disable: Add snprintf.h, socket_.h.
25527 * lib/snprintf.c: Include <errno.h> and <limits.h>.
25528 (EOVERFLOW): Define if the system does not.
25529 Do not include "minmax.h"; it wasn't used.
25530 (snprintf): Don't assume size_t promotes to an unsigned type.
25531 Fix bug when generated string was too long for the buffer: the
25532 buffer's contents are supposed to be the initial prefix of the
25533 output. Don't assume vasnprintf returns EOVERFLOW if the size
25534 exceeds INT_MAX; do the check ourselves.
25536 Import the following changes from libc:
25538 2006-06-02 Jakub Jelinek <jakub@redhat.com>
25540 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
25541 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
25542 set wc to the byte which couldn't be converted.
25543 (re_string_reconstruct): Don't clear valid_raw_len before calling
25544 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
25545 tip_context using re_string_context_at.
25547 2006-05-02 Ulrich Drepper <drepper@redhat.com>
25549 * lib/posix/regex.h: g++ still cannot handled [restrict].
25551 2006-04-21 Ulrich Drepper <drepper@redhat.com>
25553 * lib/posix/regex.h: Remove special handling for VMS.
25555 2006-08-10 Jim Meyering <jim@meyering.net>
25557 * modules/same-inode: New module.
25558 * modules/dev-ino: New module.
25559 * modules/cycle-check: Depend on these modules, rather than simply
25560 including their .h files.
25561 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
25562 required via m4/cycle-check.m4.
25563 * modules/same: Depend on new same-inode module, rather than
25564 including same-inode.h.
25565 * modules/chdir-safer: New file.
25567 * modules/chown (Depends-on): Add stat-macros.
25569 2006-08-10 Jim Meyering <jim@meyering.net>
25571 * m4/cycle-check.m4: New file.
25572 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
25573 * m4/dev-ino.m4, m4/same-inode.m4: New files.
25575 2006-08-10 Eric Blake <ebb9@byu.net>
25577 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
25578 in from original proposal.
25580 2006-08-10 Eric Blake <ebb9@byu.net>
25581 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25583 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
25586 2006-08-10 Bruno Haible <bruno@clisp.org>
25588 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
25591 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
25593 Sync from coreutils.
25595 2006-07-19 Mike Frysinger <vapier@gentoo.org>
25597 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
25598 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
25600 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
25602 * modules/restrict: Remove; no longer needed now that we assume
25603 Autoconf 2.59 or later.
25604 * MODULES.html.sh: Remove 'restrict'.
25605 * modules/argp (Depends-on): Remove 'restrict'.
25606 * modules/base64 (Depends-on): Likewise.
25607 * modules/gc (Depends-on): Likewise.
25608 * modules/getaddrinfo (Depends-on): Likewise.
25609 * modules/glob (Depends-on): Likewise.
25610 * modules/inet_ntop (Depends-on): Likewise.
25611 * modules/inet_pton (Depends-on): Likewise.
25612 * modules/memxor (Depends-on): Likewise.
25613 * modules/regex (Depends-on): Likewise.
25614 * modules/strtok_r (Depends-on): Likewise.
25615 * modules/time_r (Depends-on): Likewise.
25617 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
25619 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
25620 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
25621 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25622 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
25623 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25624 * m4/memxor.m4 (gl_MEMXOR): Likewise.
25625 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
25626 gl_C_RESTRICT replaced by AC_C_RESTRICT.
25628 Merge from coreutils.
25629 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
25630 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
25631 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25632 * m4/time_r.m4 (gl_TIME_R): Likewise.
25634 2006-08-09 Karl Berry <karl@gnu.org>
25636 * config/srclist.txt: no more gettext-tools, per Bruno.
25638 2006-08-08 Eric Blake <ebb9@byu.net>
25640 * modules/verror: New module.
25641 * MODULES.html.sh: Document it.
25643 2006-08-08 Eric Blake <ebb9@byu.net>
25645 * lib/verror.h, lib/verror.c: New files.
25647 2006-08-08 Eric Blake <ebb9@byu.net>
25649 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
25650 verror_at_line output complies with GNU Coding Standards even when
25653 2006-08-07 Bruno Haible <bruno@clisp.org>
25655 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
25657 Reported by Ralf Wildenhues.
25659 2006-08-07 Bruno Haible <bruno@clisp.org>
25661 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
25662 in an AC_DEFUN. Needed so that the autoconf snippets can use
25665 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25667 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25668 Initialize pkgdata_DATA.
25669 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
25672 2006-08-06 Eric Blake <ebb9@byu.net>
25674 * lib/error.h: Fold in some upstream changes from glibc.
25675 * lib/error.c: Likewise.
25677 2006-08-04 Bruno Haible <bruno@clisp.org>
25679 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25680 Make the mostlyclean-local rule depend on mostlyclean-generic.
25681 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
25683 2006-07-31 Bruno Haible <bruno@clisp.org>
25685 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
25686 <stdlib.h>, <string.h>.
25688 2006-07-30 Bruno Haible <bruno@clisp.org>
25690 * modules/readlink (License): Change to LGPL.
25692 2006-07-30 Bruno Haible <bruno@clisp.org>
25694 * modules/javaversion (Makefile.am): Distribute javaversion.java and
25695 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
25696 set PKGDATADIR to point to it.
25698 2006-07-30 Bruno Haible <bruno@clisp.org>
25700 * modules/csharpexec (configure.ac): Comment out macro invocation.
25701 * modules/javaexec (configure.ac): Likewise.
25702 * modules/javacomp-script (configure.ac): Likewise.
25704 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
25706 2006-07-30 Bruno Haible <bruno@clisp.org>
25708 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
25711 2006-07-30 Bruno Haible <bruno@clisp.org>
25713 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
25715 2006-07-30 Bruno Haible <bruno@clisp.org>
25717 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25718 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
25721 2006-07-29 Bruno Haible <bruno@clisp.org>
25723 Make it possible for gnulib-tool to work with locally modified or
25724 augmented gnulib repositories.
25725 * gnulib-tool (func_usage): Document --local-dir option.
25726 (local_gnulib_dir): New variable.
25727 Handle --local-dir option.
25728 (func_lookup_file): New function.
25729 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
25730 (func_get_description, func_get_filelist, func_get_description,
25731 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
25732 func_get_automake_snippet, func_get_include_directive,
25733 func_get_license, func_get_maintainer): Use func_lookup_file.
25734 (func_import, func_create_testdir): Use func_lookup_file.
25736 2006-07-29 Bruno Haible <bruno@clisp.org>
25738 * modules/setenv (Depends-on): Add unistd.
25740 2006-07-29 Bruno Haible <bruno@clisp.org>
25742 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
25744 2006-07-29 Bruno Haible <bruno@clisp.org>
25746 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
25748 2006-07-29 Bruno Haible <bruno@clisp.org>
25750 * gnulib-tool (import, update): If there is no Makefile.am, look at
25751 aclocal.m4, instead of bailing out.
25753 2006-07-29 Bruno Haible <bruno@clisp.org>
25755 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
25756 Categorize the options by when they are useful.
25758 2006-07-29 Bruno Haible <bruno@clisp.org>
25760 * gnulib-tool (func_usage): Document option --no-libtool.
25761 Handle option --no-libtool.
25762 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
25763 for changed semantics of $libtool variable.
25764 (func_import): Likewise. If libtool is not used, show this through
25765 an option --no-libtool.
25766 (func_create_testdir): Update.
25768 2006-07-29 Bruno Haible <bruno@clisp.org>
25770 * gnulib-tool (func_import): Extend error message about missing
25773 2006-07-29 Bruno Haible <bruno@clisp.org>
25775 * gnulib-tool (func_import): Don't create the $docbase directory if
25776 there is no file to store there.
25778 2006-07-29 Bruno Haible <bruno@clisp.org>
25780 * gnulib-tool (autoconf_minversion): If a --dir option is given and
25781 relevant, look for configure.ac there, not in the current directory.
25782 Also use a simple search for AC_PREREQ, not "autoconf --trace".
25784 2006-07-29 Bruno Haible <bruno@clisp.org>
25786 * gnulib-tool (SORT): New variable.
25787 (func_usage): Undocument --assume-autoconf option.
25788 Remove --assume-autoconf option handling.
25789 (autoconf_minversion): Determine from the contents of configure.ac.
25790 (func_import): Remove autoconf_minversion handling.
25791 Suggested by Eric Blake.
25793 2006-07-29 Bruno Haible <bruno@clisp.org>
25795 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
25797 2006-07-29 Bruno Haible <bruno@clisp.org>
25799 * config/srclist.txt (*setenv.[ch]): Remove rules.
25801 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25803 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
25805 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25807 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
25810 2006-07-28 Simon Josefsson <jas@extundo.com>
25812 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
25813 * modules/inet_pton (Depends-on): Likewise.
25815 2006-07-28 Simon Josefsson <jas@extundo.com>
25817 * m4/netinet_in_h.m4: New file.
25819 2006-07-28 Simon Josefsson <jas@extundo.com>
25821 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
25824 2006-07-28 Simon Josefsson <jas@extundo.com>
25826 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
25829 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
25831 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
25832 setgid on directories only if they set these bits.
25833 * lib/modechange.h: Remove obsolete comment about masks.
25835 2006-07-28 Eric Blake <ebb9@byu.net>
25837 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
25840 2006-07-28 Bruno Haible <bruno@clisp.org>
25842 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
25844 2006-07-28 Bruno Haible <bruno@clisp.org>
25846 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
25848 2006-07-28 Bruno Haible <bruno@clisp.org>
25850 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25851 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25853 Avoids link error on FreeBSD 4.x.
25854 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25856 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
25858 * lib/mbswidth.c (iswcntrl): Likewise.
25860 2006-07-27 Bruno Haible <bruno@clisp.org>
25862 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
25865 2006-07-27 Bruno Haible <bruno@clisp.org>
25867 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
25868 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
25871 2006-07-26 Eric Blake <ebb9@byu.net>
25873 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
25875 2006-07-26 Eric Blake <ebb9@byu.net>
25877 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
25878 like mingw that lack mkstemp.
25879 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
25880 avoid compilation warning on mingw.
25882 2006-07-26 Bruno Haible <bruno@clisp.org>
25884 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
25885 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
25886 INT_FAST*_MIN, INTPTR_MIN.
25888 2006-07-25 Bruno Haible <bruno@clisp.org>
25890 * modules/version-etc (Depends-on): Add stdarg.
25892 2006-07-25 Bruno Haible <bruno@clisp.org>
25894 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
25897 2006-07-25 Bruno Haible <bruno@clisp.org>
25899 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
25900 defined in <stdarg.h> or config.h.
25902 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
25904 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
25905 (gl_STDIO_SAFER): Remove.
25907 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
25909 * MODULES.html.sh (File stream based Input/Output):
25910 Add fopen-safer, tmpfile-safer; remove stdio-safer.
25911 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
25912 * modules/fopen-safer, modules/tmpfile-safer: New files.
25913 * modules/stdio-safer: Remove.
25915 2006-07-24 Bruno Haible <bruno@clisp.org>
25917 * modules/tmpdir: New file.
25918 * MODULES.html.sh (File system functions): Add it.
25920 2006-07-24 Bruno Haible <bruno@clisp.org>
25922 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
25923 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
25925 2006-07-24 Bruno Haible <bruno@clisp.org>
25927 * modules/clean-temp: New file.
25929 2006-07-24 Bruno Haible <bruno@clisp.org>
25931 * m4/tmpdir.m4: New file, from GNU gettext.
25933 2006-07-24 Bruno Haible <bruno@clisp.org>
25935 * lib/tmpdir.h: New file, from GNU gettext.
25936 * lib/tmpdir.c: New file, from GNU gettext.
25938 2006-07-24 Bruno Haible <bruno@clisp.org>
25940 * lib/clean-temp.h: New file, from GNU gettext.
25941 * lib/clean-temp.c: New file, from GNU gettext.
25943 2006-07-23 Eric Blake <ebb9@byu.net>
25945 * modules/stdio-safer (Files): Add tmpfile-safer.c.
25946 (Depends-on): Add binary-io.
25948 2006-07-23 Eric Blake <ebb9@byu.net>
25950 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
25952 2006-07-23 Eric Blake <ebb9@byu.net>
25954 * lib/tmpfile-safer.c: New file.
25955 * lib/stdio-safer.h (fopen_safer): Add prototype.
25956 * lib/stdio--.h (tmpfile): Make safer.
25958 2006-07-23 Bruno Haible <bruno@clisp.org>
25960 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
25961 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
25962 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
25963 gl_linked_remove_at): Use it.
25965 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
25966 and Simon Josefsson <jas@extundo.com>
25968 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
25970 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
25972 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
25974 * modules/close-stream: New file.
25975 * modules/closeout (Description): Make it clear that it exits
25976 with a diagnostic on error.
25977 (Depends-on): Add close-stream. Remove fpending, stdbool.
25978 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
25980 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
25982 * m4/close-stream.m4: New file.
25984 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
25986 * lib/close-stream.c, lib/close-stream.h: New files.
25988 2006-07-22 Bruno Haible <bruno@clisp.org>
25990 Merge from GNU gettext 0.15.
25992 2006-05-01 Bruno Haible <bruno@clisp.org>
25994 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
25996 2006-07-22 Bruno Haible <bruno@clisp.org>
25998 * modules/javaversion: New file.
25999 * MODULES.html.sh (Java): Add javaversion.
26001 2006-03-12 Bruno Haible <bruno@clisp.org>
26003 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
26005 2005-12-04 Bruno Haible <bruno@clisp.org>
26007 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
26010 2006-06-21 Bruno Haible <bruno@clisp.org>
26012 Avoid warnings from recent versions of mcs.
26013 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
26014 -o, -L, -r any more. Use options documented since mcs-1.0
26015 instead. Similarly for -g.
26017 2005-12-04 Bruno Haible <bruno@clisp.org>
26019 * build-aux/csharpcomp.sh.in: Suffix for resources is
26020 .resources, not .resource.
26022 2005-07-09 Bruno Haible <bruno@clisp.org>
26024 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
26026 Reported by Mark Junker <mjscod@gmx.de>.
26028 2006-07-22 Bruno Haible <bruno@clisp.org>
26030 * modules/gettext: Upgrade to gettext-0.15.
26031 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
26033 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
26035 2006-07-22 Bruno Haible <bruno@clisp.org>
26037 Merge from GNU gettext 0.15.
26039 2006-03-25 Bruno Haible <bruno@clisp.org>
26041 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
26043 2006-07-21 Bruno Haible <bruno@clisp.org>
26045 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
26048 2006-05-09 Bruno Haible <bruno@clisp.org>
26050 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
26051 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
26052 for the conftestver execution.
26054 2006-05-01 Bruno Haible <bruno@clisp.org>
26056 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
26057 optional target-version argument. Verify that the compiler
26058 groks source of the specified source-version, or add -source
26059 option as necessary. Verify that the compiler produces
26060 bytecode in the specified target-version, or add -target and
26061 -source options as necessary. Make the result of the test
26062 available as variable CONF_JAVAC. Also log error output in
26065 2006-03-11 Bruno Haible <bruno@clisp.org>
26067 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
26069 2006-05-09 Bruno Haible <bruno@clisp.org>
26071 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
26072 CLASSPATH_SEPARATOR to a semicolon.
26074 2006-03-12 Bruno Haible <bruno@clisp.org>
26076 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
26077 available as variable CONF_JAVA, for subsequent autoconf
26078 tests. Also log error output in config.log.
26080 2006-07-19 Bruno Haible <bruno@clisp.org>
26082 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
26083 that getline works on glibc2 systems. Needed to avoid trouble
26085 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
26087 2005-12-04 Bruno Haible <bruno@clisp.org>
26089 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
26090 launcher (untested).
26092 2005-12-04 Bruno Haible <bruno@clisp.org>
26094 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
26096 2006-07-22 Bruno Haible <bruno@clisp.org>
26098 * gettext.m4: Update from GNU gettext-0.15.
26099 * nls.m4: Likewise.
26101 * inttypes-pri.m4: Likewise.
26102 * inttypes-h.m4: Renamed from inttypes.m4.
26103 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
26105 2006-07-22 Bruno Haible <bruno@clisp.org>
26107 Merge from GNU gettext 0.15.
26109 2005-07-05 Bruno Haible <bruno@clisp.org>
26111 * printf-args.c (printf_fetchargs): Work around broken
26112 definition of wint_t on mingw.
26114 2005-02-12 Bruno Haible <bruno@clisp.org>
26116 * xallocsa.h: Add extern "C" for C++.
26118 2006-05-17 Bruno Haible <bruno@clisp.org>
26120 Cygwin portability.
26121 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
26123 2006-04-30 Bruno Haible <bruno@clisp.org>
26125 * progreloc.c: Include <mach-o/dyld.h> if available.
26126 (find_executable): Use _NSGetExecutablePath when possible.
26128 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
26130 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
26133 2005-12-29 Bruno Haible <bruno@clisp.org>
26135 * progreloc.c (set_program_name_and_installdir): Fix
26138 2005-12-04 Bruno Haible <bruno@clisp.org>
26140 Cygwin portability.
26141 * progreloc.c: Include <windows.h> also on Cygwin.
26142 (find_executable): Add support for Cygwin.
26143 (set_program_name_and_installdir): Handle also platforms with
26146 2006-07-11 Bruno Haible <bruno@clisp.org>
26148 * javacomp.c: Fix a comment.
26149 Reported by Jim Meyering.
26151 2006-04-30 Bruno Haible <bruno@clisp.org>
26153 * javacomp.h (compile_java_class): Add source_version,
26154 target_version arguments.
26155 * javacomp.c: Rewritten to choose only a compiler that
26156 respects the specified source_version and target_version.
26158 2006-06-27 Bruno Haible <bruno@clisp.org>
26160 Assume correct S_ISDIR macro.
26161 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
26163 2006-07-22 Bruno Haible <bruno@clisp.org>
26165 * javaversion.h: New file, from GNU gettext.
26166 * javaversion.c: New file, from GNU gettext.
26167 * javaversion.java: New file, from GNU gettext.
26168 * javaversion.class: New file, from GNU gettext.
26170 2006-05-17 Bruno Haible <bruno@clisp.org>
26172 Cygwin portability.
26173 * javaexec.c (execute_java_class): Test for jview program
26176 2006-04-09 Bruno Haible <bruno@clisp.org>
26178 * fatal-signal.c: Don't include string.h.
26179 (at_fatal_signal): Use a copying loop instead of memcpy.
26181 2005-12-04 Bruno Haible <bruno@clisp.org>
26183 * csharpexec.c: Add support for 'clix' launcher (untested).
26184 (execute_csharp_using_sscli): New function.
26185 (execute_csharp_program): Call it.
26187 2006-06-21 Bruno Haible <bruno@clisp.org>
26189 Avoid warnings from recent versions of mcs.
26190 * csharpcomp.c (compile_csharp_using_mono): Don't use options
26191 -o, -L, -r any more. Use options documented since mcs-1.0
26192 instead. Similarly for -g.
26194 2005-07-09 Bruno Haible <bruno@clisp.org>
26196 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
26198 Reported by Mark Junker <mjscod@gmx.de>.
26200 2006-06-17 Bruno Haible <bruno@clisp.org>
26202 * config.charset: Update for NetBSD 3.0.
26204 2006-05-17 Bruno Haible <bruno@clisp.org>
26206 Cygwin portability.
26207 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
26209 2006-05-16 Bruno Haible <bruno@clisp.org>
26211 * localcharset.c [CYGWIN]: Include <windows.h>.
26212 (get_charset_aliases): For Cygwin, return the same CPxxx
26213 aliases list as under WIN32.
26214 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
26215 the environment variables. Fall back to GetACP().
26217 2006-04-05 Bruno Haible <bruno@clisp.org>
26219 * config.charset: Update Juan Manuel Guerrero's address.
26221 2005-02-12 Bruno Haible <bruno@clisp.org>
26223 * allocsa.h: Add extern "C" for C++.
26225 2005-02-10 Bruno Haible <bruno@clisp.org>
26227 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
26228 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
26230 2006-07-22 Bruno Haible <bruno@clisp.org>
26232 * gettext.h: Update to GNU gettext-0.15.
26234 2006-07-22 Bruno Haible <bruno@clisp.org>
26236 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
26237 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
26238 lib-prefix.m4, longdouble.m4, ssize_t.m4.
26240 2006-07-21 Eric Blake <ebb9@byu.net>
26242 * modules/stdlib-safer: New file.
26243 * MODULES.html.sh (File stream based Input/Output): Add
26246 2006-07-21 Eric Blake <ebb9@byu.net>
26248 * lib/stdlib-safer.h: New file from coreutils, required by
26251 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
26253 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
26255 2006-07-20 Bruno Haible <bruno@clisp.org>
26257 * gnulib-tool: Recognize new option --assume-autoconf.
26258 (autoconf_minversion): New variable.
26259 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
26261 2006-07-20 Bruno Haible <bruno@clisp.org>
26263 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
26265 2006-07-19 Derek R. Price <derek@ximbiot.com>
26267 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
26268 Reindent and repaginate.
26270 2006-07-19 Derek Price <derek@ximbiot.com>
26272 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
26275 2006-07-17 Bruno Haible <bruno@clisp.org>
26277 * modules/list: New file.
26278 * modules/array-list: New file.
26279 * modules/carray-list, modules/carray-list-tests: New files.
26280 * modules/linked-list, modules/linked-list-tests: New files.
26281 * modules/avltree-list, modules/avltree-list-tests: New files.
26282 * modules/rbtree-list, modules/rbtree-list-tests: New files.
26283 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
26284 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
26285 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
26286 * modules/oset: New file.
26287 * modules/array-oset: New file.
26288 * modules/avltree-oset, modules/avltree-oset-tests: New files.
26289 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
26290 * tests/test-carray_list.c: New file.
26291 * tests/test-linked_list.c: New file.
26292 * tests/test-avltree_list.c: New file.
26293 * tests/test-rbtree_list.c: New file.
26294 * tests/test-linkedhash_list.c: New file.
26295 * tests/test-avltreehash_list.c: New file.
26296 * tests/test-rbtreehash_list.c: New file.
26297 * tests/test-avltree_oset.c: New file.
26298 * tests/test-rbtree_oset.c: New file.
26299 * MODULES.html.sh (Container data structures): New section.
26301 2006-07-17 Bruno Haible <bruno@clisp.org>
26303 * m4/gl_list.m4: New file.
26305 2006-07-17 Bruno Haible <bruno@clisp.org>
26307 * lib/gl_list.h: New file.
26308 * lib/gl_list.c: New file.
26309 * lib/gl_array_list.h: New file.
26310 * lib/gl_array_list.c: New file.
26311 * lib/gl_carray_list.h: New file.
26312 * lib/gl_carray_list.c: New file.
26313 * lib/gl_linked_list.h: New file.
26314 * lib/gl_linked_list.c: New file.
26315 * lib/gl_anylinked_list1.h: New file.
26316 * lib/gl_anylinked_list2.h: New file.
26317 * lib/gl_avltree_list.h: New file.
26318 * lib/gl_avltree_list.c: New file.
26319 * lib/gl_anyavltree_list1.h: New file.
26320 * lib/gl_anyavltree_list2.h: New file.
26321 * lib/gl_rbtree_list.h: New file.
26322 * lib/gl_rbtree_list.c: New file.
26323 * lib/gl_anyrbtree_list1.h: New file.
26324 * lib/gl_anyrbtree_list2.h: New file.
26325 * lib/gl_anytree_list1.h: New file.
26326 * lib/gl_anytree_list2.h: New file.
26327 * lib/gl_linkedhash_list.h: New file.
26328 * lib/gl_linkedhash_list.c: New file.
26329 * lib/gl_anyhash_list1.h: New file.
26330 * lib/gl_anyhash_list2.h: New file.
26331 * lib/gl_avltreehash_list.h: New file.
26332 * lib/gl_avltreehash_list.c: New file.
26333 * lib/gl_rbtreehash_list.h: New file.
26334 * lib/gl_rbtreehash_list.c: New file.
26335 * lib/gl_anytreehash_list1.h: New file.
26336 * lib/gl_anytreehash_list2.h: New file.
26338 * lib/gl_oset.h: New file.
26339 * lib/gl_oset.c: New file.
26340 * lib/gl_array_oset.h: New file.
26341 * lib/gl_array_oset.c: New file.
26342 * lib/gl_avltree_oset.h: New file.
26343 * lib/gl_avltree_oset.c: New file.
26344 * lib/gl_rbtree_oset.h: New file.
26345 * lib/gl_rbtree_oset.c: New file.
26346 * lib/gl_anytree_oset.h: New file.
26348 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
26350 * m4/mkancesdirs.m4: New file.
26351 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
26352 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
26353 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
26356 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
26358 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
26359 * lib/mkancesdirs.h: New files.
26360 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
26361 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
26362 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
26363 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
26364 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
26365 callers changed. Revamp internals significantly, by not
26366 attempting to create directories that are temporarily more
26367 permissive than the final results. Do not attempt to use
26368 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
26369 This removes some race conditions, fixes some bugs, and simplifies
26370 things. Use new dirchownmod function to do owner and mode changes.
26371 * lib/mkdir-p.h: Likewise.
26372 * lib/modechange.c (octal_to_mode): New function.
26373 (struct mode_change): New member mentioned.
26374 (make_node_op_equals): New arg mentioned. All callers changed.
26375 (mode_compile): Keep track of which mode bits the user has explicitly
26377 (mode_adjust): New arg DIR, so that we implement the X op correctly.
26378 New arg PMODE_BITS, to keep track of which mode bits the user
26379 mentioned; it treats S_ISUID and S_ISGID speciall.
26380 All callers changed.
26381 * lib/modechange.h: Likewise.
26383 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
26385 * MODULES.html.sh: Add mkancestors.
26386 * modules/mkancesdirs: New module.
26387 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
26388 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
26389 The chdir-safer and afs files are now orphans; I'll remove them
26390 unless someone speaks up.
26391 Add lib/dirchownmod.c, lib/dirchownmod.h.
26392 (Depends-on): Remove alloca, chown, save-cwd, dirname.
26393 Add lchown, mkancesdirs.
26394 (Maintainer): Add self.
26396 2006-07-15 Karl Berry <karl@gnu.org>
26398 * gnulib-tool: help message wording/arrangement.
26400 2006-07-14 Simon Josefsson <jas@extundo.com>
26402 * doc/gnulib.texi (Libtool and Windows): New section.
26404 2006-07-12 Simon Josefsson <jas@extundo.com>
26406 * modules/gendocs (License): Fix license, approved by Karl.
26408 2006-07-12 Eric Blake <ebb9@byu.net>
26410 * MODULES.html.sh: Add gendocs.
26412 2006-07-11 Eric Blake <ebb9@byu.net>
26414 * modules/fdl: New module, to install doc/fdl.texi.
26415 * MODULES.html.sh: Add new section for documentation modules.
26416 * gnulib-tool: Avoid space-tab.
26417 (--doc-base): New option, to manage files from doc.
26419 2006-07-11 Eric Blake <ebb9@byu.net>
26421 * m4/absolute-header.m4: Fix comments to match recent change.
26423 2006-07-11 Eric Blake <ebb9@byu.net>
26425 * gnulib-tool: List --doc-base before --tests-base.
26427 2006-07-11 Derek R. Price <derek@ximbiot.com>
26429 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
26431 2006-07-11 Bruno Haible <bruno@clisp.org>
26433 * README: Mention where to put documentation.
26435 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26437 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
26439 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
26441 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
26444 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
26446 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
26447 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
26448 "no/such/file/stdint.h" when there is no such file, so that
26449 the resulting C code can be parsed by dodgy compilers.
26450 Problems reported by Bob Proulx.
26452 2006-07-10 Derek R. Price <derek@ximbiot.com>
26454 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
26455 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
26456 macros into the GNU _D_EXACT_NAMLEN.
26457 * lib/savedir.c: Likewise.
26458 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
26460 2006-07-10 Derek R. Price <derek@ximbiot.com>
26461 and Paul Eggert <eggert@cs.ucla.edu>
26463 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
26465 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
26466 macros into the GNU _D_EXACT_NAMLEN.
26468 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
26470 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
26471 around the absolute name, to work around a problem with the HP-UX
26472 11.23 native C compiler, reported by Bob Proulx.
26474 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
26476 * doc/maintain.texi, make-stds.texi: Sync from
26477 <http://savannah.gnu.org/projects/gnustandards>.
26479 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
26481 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
26483 2006-07-09 Jim Meyering <jim@meyering.net>
26485 * m4/glob.m4: Remove a doubled word in a comment.
26487 2006-07-09 Jim Meyering <jim@meyering.net>
26489 * lib/argp-pv.c: Remove a doubled word in a comment.
26490 * lib/check-version.c (check_version): Likewise.
26491 * lib/javacomp.c (compile_java_class): Likewise.
26493 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
26495 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
26496 for the benefit of people using Autoconf 2.60. If you want to
26497 support older Autoconf versions you can copy m4/onceonly_2_57.m4
26498 (or m4/onceonly.m4, if pre-2.57) manually.
26500 2006-07-08 Jim Meyering <jim@meyering.net>
26502 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
26504 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
26505 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
26508 2006-07-08 Jim Meyering <jim@meyering.net>
26510 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
26512 2006-07-07 Simon Josefsson <jas@extundo.com>
26514 * tests/test-crc.c: Change expected crc value, the test vector
26515 were probably computed using the old broken crc.c?
26517 2006-07-06 Simon Josefsson <jas@extundo.com>
26519 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
26520 now the canonical place for the M4 file).
26522 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
26523 from the sys_socket dependency now.
26525 * modules/inet_pton (Files): Ditto.
26527 * modules/inet_ntop (Files): Ditto.
26529 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
26531 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
26532 not gl_PREREQ_GETUSERSHELL.
26534 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26536 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
26537 with only one argument, for Autoconf 2.60.
26538 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
26539 expand to nothing, so add a shell command to avoid syntax error.
26540 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26542 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26544 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
26546 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
26548 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
26549 no longer needed. Check for isblank decl.
26550 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
26551 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
26554 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
26556 * lib/getloadavg.c: Use __VMS, not VMS.
26557 * lib/getopt.c: Likewise.
26558 * lib/getpagesize.h: Likewise.
26559 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
26560 and probably does not work.
26562 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
26564 * lib/.cppi-disable: Add wcwidth.
26565 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
26566 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
26567 (ISGRAPH): Remove. All uses changed to isgraph.
26568 (FOLD) [!defined _LIBC]: Remove special case.
26569 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
26570 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
26572 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
26575 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
26577 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
26578 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
26579 brackets. Other minor changes to suppress some compiler
26582 2006-07-06 Derek R. Price <derek@ximbiot.com>
26583 and Paul Eggert <eggert@cs.ucla.edu>
26585 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
26586 of invoking obsolescent AC_HEADER_DIRENT macro.
26587 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26588 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
26589 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26590 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26591 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
26592 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
26593 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
26594 * m4/readdir.m4: Remove; no longer needed.
26596 2006-07-06 Derek R. Price <derek@ximbiot.com>
26597 and Paul Eggert <eggert@cs.ucla.edu>
26599 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
26600 Don't worry about this obsolete case any more.
26601 (HAVE_DIR): Remove. All uses removed; we now assume you can read
26603 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
26604 worry about this obsolete case any more.
26605 * lib/fts.c: Likewise.
26606 * lib/getcwd.c: Likewise.
26607 * lib/glob.h: Likewise.
26608 * lib/savedir.c: Likewise.
26610 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
26612 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
26613 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
26614 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
26617 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26618 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26619 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
26621 * m4/getdate.m4 (gl_GETDATE): Likewise.
26622 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26623 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26624 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26625 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26626 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26627 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26628 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
26631 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
26633 * lib/memcasecmp.c: Include <limits.h>.
26634 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
26635 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
26636 Don't assume isdigit succeeds only on '0' through '9'.
26638 2006-07-05 Eric Blake <ebb9@byu.net>
26640 * modules/getaddrinfo (Depends-on): Add snprintf.
26642 2006-07-05 Eric Blake <ebb9@byu.net>
26644 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
26645 to avoid 'header present but could not be compiled' on cygwin.
26647 2006-07-05 Eric Blake <ebb9@byu.net>
26649 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
26650 missing from netdb.h.
26651 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
26653 2006-07-05 Derek R. Price <derek@ximbiot.com>
26655 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
26657 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
26658 * m4/getdate.m4 (gl_GETDATE): Likewise.
26659 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26660 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26661 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26662 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26663 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26665 2006-07-05 Derek R. Price <derek@ximbiot.com>
26667 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
26668 All uses of is_space replaced by isspace.
26669 * lib/exit.h: Don't talk about STDC_HEADERS.
26670 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
26671 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
26672 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
26673 replaced by isprint etc.
26674 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
26675 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26676 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
26677 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
26678 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
26679 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26681 2006-07-05 Bruno Haible <bruno@clisp.org>
26683 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
26684 the function exists, before testing against AIX.
26685 Reported by Martin Lambers <marlam@marlam.de>.
26687 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
26689 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
26690 From Mark D. Baushke.
26692 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
26694 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
26695 to the absolute name, not just one, to bypass Sun C 5.8's
26696 "warning: #include of /usr/include/... may be non-portable".
26698 2006-07-04 Eric Blake <ebb9@byu.net>
26700 * modules/dirname-tests: New test module.
26701 * tests/test-dirname.c: New file, replacing dirname.c
26702 TEST_DIRNAME section that was recently deleted.
26704 2006-07-04 Bruno Haible <bruno@clisp.org>
26706 Assume ANSI C header files and <ctype.h> functions.
26707 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
26708 (mbsnwidth): Use isprint, iscntrl instead.
26710 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
26712 Merge from coreutils.
26713 * MODULES.html.sh: Add xstrtold.
26714 * modules/xstrtold: New file.
26715 * modules/cycle-check (Files): Add lib/same-inode.h.
26716 * modules/dirname (Files): Add m4/double-slash-root.m4.
26717 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
26718 * modules/mkdir-p (Files): Add lib/same-inode.h.
26719 * modules/same (Files): Add lib/same-inode.h.
26721 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
26723 * m4/absolute-header.m4: Renamed from full-header-path.m4.
26724 This is to keep the terminology clean; POSIX talks about
26725 "absolute pathnames", not "full pathnames", but the GNU
26726 Coding Standards say to use "path" for something else;
26727 so use "absolute" to keep both sides happy.
26728 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
26729 Set gl_absolute_header, not gl_full_header_path.
26730 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
26731 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
26734 Merge from coreutils.
26736 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
26738 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
26739 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
26740 want to require the building of c-strtod.o.
26741 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
26742 needs -lm directly.
26743 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
26745 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
26747 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
26748 --as-needed option if available. Problem reported by Albert Chin in
26749 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
26750 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
26751 cc merely issues a bunch of annoying warnings for --as-needed
26752 (this problem was reported by Bob Proulx). Also, try linking with
26753 -lm to detect a bug in binutils 2.16 (this problem was reported
26754 by Ralf Wildenhues).
26756 2006-06-18 Jim Meyering <jim@meyering.net>
26758 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
26759 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
26761 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
26762 also check for glibc-2.4's abort-inducing bug.
26764 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
26765 Low-probability clean-up should be to use rmdir to get rid of
26766 the just-created directory, not unlink.
26768 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
26769 configure fail, and request a bug report to inform us about it.
26770 Add a comment that, barring reports to the contrary, in 2007 we'll
26771 assume ftruncate is universally available.
26773 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
26775 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
26777 2006-03-12 Jim Meyering <jim@meyering.net>
26779 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
26780 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
26781 * m4/same.m4 (gl_SAME): Likewise.
26782 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
26784 2006-03-11 Eric Blake <ebb9@byu.net>
26786 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
26787 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
26788 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
26789 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
26791 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
26793 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
26794 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
26795 reported by Mark D. Baushke, one in
26796 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
26798 Merge from coreutils.
26800 * lib/.cppi-disable: Add stdint_.h.
26801 * lib/.cvsignore: Add stdint.h.
26803 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
26805 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
26806 both double and long double versions.
26807 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
26808 * lib/xstrtold.c: New file.
26809 * lib/xstrtod.h (xstrtold): New decl.
26811 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
26813 * lib/filemode.c (setst): Remove.
26814 (strmode): Rewrite to avoid setst. This makes the code shorter,
26815 (arguably) clearer, and the generated code is a bit smaller on my
26816 Debian GNU/Linux stable x86 host.
26818 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
26820 * lib/filemode.c: Include "filemode.h" first, to test the interface.
26821 Assume that filemode.h includes sys/types.h and sys/stat.h.
26822 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
26823 (ftypelet): Reorder to put common cases first, for efficiency.
26824 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
26826 (strmode): Renamed from mode_string, and now stores 12 bytes instead
26827 of 10, for compatibility with FreeBSD. All callers changed.
26828 (filemodestring): Now stores 12 bytes instead of 10, and sets file
26829 types that can't be deduced solely from st_mode. First arg is now a
26831 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
26832 (strmode): Renamed from mode_string.
26833 (filemodestring): New decl.
26834 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
26835 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
26837 (S_ISPORT, S_ISWHT): New macros, if not already defined.
26839 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
26841 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
26842 fsusage.h now does that. Include fsusage.h first, to test interface.
26843 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
26844 at most one method (the old code could have generated decls that
26845 didn't conform to C89, not that this was ever exercised).
26846 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
26848 2006-03-19 Jim Meyering <jim@meyering.net>
26850 Work even in a chroot where d_ino values for entries in "/"
26851 don't match the stat.st_ino values for the same names.
26852 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
26853 number, iterate through all entries again, using lstat instead.
26854 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
26855 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
26857 * lib/getcwd.c (__getcwd): Clarify a comment.
26858 Use memcpy in place of a call to strcpy.
26860 2006-03-12 Jim Meyering <jim@meyering.net>
26862 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
26863 matches that of the current directory (which we're about to chdir ".."
26864 out of), then save the dev-ino of the parent, instead.
26866 * lib/same-inode.h (SAME_INODE): New file/macro.
26867 * lib/chdir-safer.c (SAME_INODE): Remove definition.
26868 Include "same-inode.h", instead.
26869 * lib/same.c: Likewise.
26870 * lib/cycle-check.h: Include "same-inode.h".
26871 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
26872 * lib/cycle-check.c (SAME_INODE): Remove definition.
26873 * lib/root-dev-ino.h: Include "same-inode.h".
26875 2006-03-11 Eric Blake <ebb9@byu.net>
26877 * lib/same.c (same_name): s/base_name/last_component/
26878 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
26879 * lib/filenamecat.c (file_name_concat): Likewise.
26881 2006-03-11 Eric Blake <ebb9@byu.net>,
26882 Paul Eggert <eggert@cs.ucla.edu>
26884 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
26885 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
26887 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
26888 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
26889 (last_component): New method.
26890 * lib/dirname.c (dir_len): Determine when drive letters need a
26891 subsequent slash. Preserve // when it is special.
26892 (dir_name): Don't append dot when drive letter is absolute.
26893 [TEST_DIRNAME]: Move into a full-blown gnulib test.
26894 * lib/basename.c (base_name): New semantics - malloc the result.
26895 Preserve // when it is special. Preserve relative files that look
26896 like drive letters.
26897 (base_len): Preserve // when it is special.
26898 (last_component): New method, similar to old base_name semantics.
26899 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
26900 base_name. Strip redundant slashes from ///.
26902 2006-07-03 Jim Meyering <jim@meyering.net>
26904 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
26905 macro is used before the first cycle_check call.
26907 2006-07-03 Eric Blake <ebb9@byu.net>
26909 * modules/dirname (Depends-on): Add xstrndup.
26911 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
26913 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
26914 test cases, so that config.log is a bit easier to follow.
26916 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
26918 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
26919 both are 64 bits, since this seems to be the tradition, and this
26920 prevents gcc -Wformat from warning about usages with PRIuMAX. If
26921 we ever run into a host that prefers long long to long in this
26922 case, we'll need another configure-time test. Problem reported by
26925 2006-07-02 Eric Blake <ebb9@byu.net>
26927 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
26929 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
26931 * modules/inttypes (Depends-on): No longer depends on stdint.
26932 * modules/stdint (Description): Say more about assumptions.
26933 Say that the fast types might differ. Say macros are used.
26934 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
26935 (Makefile.am): Revise list of substituted symbols to match
26937 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
26938 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
26939 * tests/test-stdint.c (verify_same_types)
26940 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
26941 the code conforms to C99/C89.
26942 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
26943 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
26945 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
26947 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
26948 but fix a bug, by requiring at least 64 bits.
26949 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
26950 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
26951 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
26952 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
26954 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
26955 changes. Make 2.59 a prerequisite. Check and substitute for
26956 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
26957 inttypes.h. Do not use special include files; just use the
26958 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
26959 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
26960 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
26961 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
26962 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
26963 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
26964 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
26965 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
26966 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
26967 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
26968 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
26969 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
26970 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
26971 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
26972 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
26973 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
26974 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
26975 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
26976 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
26977 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
26978 WINT_MAX. Check for C99 conformance more strictly, by detecting
26979 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
26980 not check for things that C99 does not require, e.g., int8_t. If
26981 a test isn't needed unless <stdint.h> isn't working, and is
26982 unlikely to be needed for any other reason, then don't do it
26983 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
26984 size_t, since we assume C89 freestanding at least. Do not check
26985 for sig_atomic_t, wchar_t, or wint_t, since the code now does
26986 the right thing even if the types are not defined. Instead use:
26987 (gl_STDINT_TYPE_PROPERTIES): New macro.
26988 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
26989 testing whether <sys/types.h> clashes, as Autoconf does this for
26990 us now. All uses removed.
26991 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
26992 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
26993 (gl_CHECK_TYPE_SAME):
26994 Remove; no longer needed.
26995 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
26996 exists, since we'll return 0 anyway in that case.
26997 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
26999 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
27001 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
27002 possible collision with system files.
27003 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
27004 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
27005 WCHAR_MIN and WCHAR_MAX in this case.
27006 (<stddef.h>): Do not include; no longer needed.
27007 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
27008 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
27009 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
27010 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
27011 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
27012 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
27013 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
27014 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
27015 !defined(__c99))]: Include in this case too, since it's harmless
27017 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
27018 dangerous to do so.
27019 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
27020 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
27021 (_STDINT_MIN, _STDINT_MAX): New macros.
27022 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
27023 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
27024 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
27025 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
27026 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
27027 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
27028 macros, not typedefs; this simplifies things quite a bit.
27029 Use long int for all types narrower than int64_t.
27030 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
27031 Define in terms of long long int or int64_t or long int,
27032 not int64_t or int32_t. This saves some compile-time testing.
27033 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
27034 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
27035 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
27036 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
27037 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
27038 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
27039 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
27040 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
27041 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
27042 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
27043 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
27044 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
27045 undef any previous version and define our own version, for
27046 simplicity and consistency with the new macros for types.
27047 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
27048 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
27049 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
27050 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
27051 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
27052 @WINT_T_SUFFIX@ to keep things simple here.
27053 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
27054 Simplify by assuming typical 8/16/32/64 host, since we're
27055 already doing that elsewhere anyway.
27056 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
27057 and assume long long int is 64 bits if available. This
27058 speeds up 'configure'.
27060 2006-07-01 Eric Blake <ebb9@byu.net>
27062 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
27063 Reported by Andreas Buening.
27065 2006-07-01 Eric Blake <ebb9@byu.net>
27067 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
27069 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
27071 * lib/getaddrinfo.c: fixed typo
27073 2006-06-29 Jim Meyering <jim@meyering.net>
27075 * modules/strftime (Maintainer): Add my name, since with the
27076 FPRINTFTIME changes strftime.c has forked from glibc.
27078 2006-06-29 Eric Blake <ebb9@byu.net>
27080 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
27082 2006-06-29 Eric Blake <ebb9@byu.net>
27084 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
27086 2006-06-29 Eric Blake <ebb9@byu.net>
27088 * lib/stat_.h: New file.
27090 2006-06-29 Eric Blake <ebb9@byu.net>
27092 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
27093 unused static function.
27095 2006-06-29 Eric Blake <ebb9@byu.net>
27097 * doc/functions.texi (Function Portability): Document missing lstat
27100 2006-06-29 Eric Blake <ebb9@byu.net>
27102 * MODULES.html.sh: Add sys_stat.
27103 * modules/sys_stat: New module.
27104 * modules/mkstemp (Depends-on): Add sys_stat.
27106 2006-06-29 Derek R. Price <derek@ximbiot.com>
27108 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
27110 2006-06-29 Derek R. Price <derek@ximbiot.com>
27112 * m4/c-bs-a.m4: Removed.
27114 2006-06-29 Derek R. Price <derek@ximbiot.com>
27116 * lib/strftime.c: Assume strftime() exists.
27118 2006-06-29 Derek Price <derek@ximbiot.com>
27120 * modules/c-bs-a: Removed - \a is C89.
27121 * MODULES.html.sh: Remove c-bs-a.
27123 2006-06-29 Bruno Haible <bruno@clisp.org>
27125 * modules/wcwidth (License): Change to LGPL.
27127 2006-06-28 Simon Josefsson <jas@extundo.com>
27129 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
27132 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
27135 2006-06-28 Simon Josefsson <jas@extundo.com>
27137 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
27139 2006-06-28 Simon Josefsson <jas@extundo.com>
27141 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
27142 functions there. It will succeed on Windows XP, but on Windows
27143 2000 and (presumably) earlier, it will fail, and use the internal
27145 (use_win32_p): New function.
27146 (getaddrinfo): Use strtoul on servname, to support numeric ports.
27147 Support AI_NUMERICSERV to disable getservbyname.
27148 (getnameinfo): New function, only supports
27149 NI_NUMERICHOST|NI_NUMERICSERV for now.
27151 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
27152 only have some of them. Add AI_NUMERICSERV. Add prototype for
27155 2006-06-28 Eric Blake <ebb9@byu.net>
27157 * modules/wcwidth: New file.
27158 * modules/mbchar (Depends-on): Add wcwidth.
27159 * modules/mbswidth (Depends-on): Add wcwidth.
27160 * MODULES.html.sh: Add wcwidth.
27162 2006-06-28 Eric Blake <ebb9@byu.net>
27164 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
27165 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
27167 2006-06-28 Eric Blake <ebb9@byu.net>
27169 * lib/xvasprintf.h: Fix comments.
27171 2006-06-28 Eric Blake <ebb9@byu.net>
27173 * lib/mbchar.h (wcwidth): Include wcwidth.h.
27174 * lib/mbswidth.c (wcwidth): Move from here...
27175 * lib/wcwidth.h: ...to this new file.
27177 2006-06-28 Derek R. Price <derek@ximbiot.com>
27179 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
27181 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
27183 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
27185 2006-06-28 Derek R. Price <derek@ximbiot.com>
27187 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
27188 Autoconf 2.60 says this stuff was obsolete.
27190 2006-06-28 Bruno Haible <bruno@clisp.org>
27192 * modules/wcwidth (Files): Add m4/wchar_t.m4.
27194 2006-06-28 Bruno Haible <bruno@clisp.org>
27196 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
27199 2006-06-28 Bruno Haible <bruno@clisp.org>
27201 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
27202 declaration for wcwidth.
27203 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
27205 2006-06-28 Bruno Haible <bruno@clisp.org>
27207 * lib/mkdtemp.c [MINGW]: Include <io.h>.
27208 (mkdir): Define using _mkdir.
27210 2006-06-28 Bruno Haible <bruno@clisp.org>
27212 * lib/getaddrinfo.h: Fix POSIX URL.
27213 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
27215 (use_win32_p): Make static.
27216 (getaddrinfo): Reject service name if it is empty or does not consist
27217 solely of decimal digits, or if its value is > 65535.
27218 (getnameinfo): Remove useless casts.
27220 2006-06-27 Simon Josefsson <jas@extundo.com>
27222 * modules/sys_select: New file, suggested by Bruno Haible, Paul
27223 Eggert and Martin Lambers.
27225 2006-06-27 Simon Josefsson <jas@extundo.com>
27227 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
27228 Eggert and Martin Lambers.
27230 2006-06-27 Bruno Haible <bruno@clisp.org>
27232 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
27233 result to 0, not to empty.
27234 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
27236 2006-06-27 Bruno Haible <bruno@clisp.org>
27238 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
27240 2006-06-26 Simon Josefsson <jas@extundo.com>
27242 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
27245 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
27247 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
27248 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
27249 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
27251 2006-06-26 Mark D. Baushke <mdb@gnu.org>
27253 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
27255 2006-06-26 Bruno Haible <bruno@clisp.org>
27257 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
27259 2006-06-26 Bruno Haible <bruno@clisp.org>
27261 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
27263 2006-06-26 Bruno Haible <bruno@clisp.org>
27265 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
27266 SGI C compiler in pre-C99 mode.
27267 Suggested by Mark D. Baushke and Larry Jones.
27269 2006-06-26 Bruno Haible <bruno@clisp.org>
27271 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
27273 Reported by Mark D. Baushke and Larry Jones.
27275 2006-06-26 Bruno Haible <bruno@clisp.org>
27277 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
27279 Suggested by Mark D. Baushke and Larry Jones.
27281 2006-06-23 Simon Josefsson <jas@extundo.com>
27282 Bruno Haible <bruno@clisp.org>
27284 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
27285 Emit mostlyclean-local rule.
27286 (func_emit_tests_Makefile_am): Likewise.
27287 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
27289 2006-06-23 Mark D. Baushke <mdb@gnu.org>
27291 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
27293 2006-06-23 Bruno Haible <bruno@clisp.org>
27295 * tests/test-stdint.c: Update to match ISO C 99 Technical
27298 2006-06-23 Bruno Haible <bruno@clisp.org>
27300 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
27302 2006-06-23 Bruno Haible <bruno@clisp.org>
27304 * lib/stdint_.h: Treat IRIX like OpenBSD.
27306 2006-06-23 Bruno Haible <bruno@clisp.org>
27308 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
27309 ISO C 99 Technical Corrigendum 1.
27311 2006-06-22 Simon Josefsson <jas@extundo.com>
27313 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
27316 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
27318 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
27319 needed. Some compiler complained about some of them. Problem reported
27321 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
27323 2006-06-21 Simon Josefsson <jas@extundo.com>
27325 * tests/test-getaddrinfo.c: New file.
27327 * modules/getaddrinfo-tests: New file.
27329 * MODULES.html.sh: Add inet_pton.
27331 * modules/inet_pton: New file.
27333 2006-06-21 Simon Josefsson <jas@extundo.com>
27335 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
27336 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
27337 of using the (limited) gnulib implementation on Windows XP.
27339 * m4/inet_pton.m4: New file.
27341 2006-06-21 Simon Josefsson <jas@extundo.com>
27343 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
27346 * lib/socket_.h: Don't define WINVER.
27348 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
27349 slightly modified to work in gnulib.
27351 2006-06-21 Simon Josefsson <jas@extundo.com>
27353 * doc/gnulib.texi (Windows sockets): Add.
27355 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
27357 * lib/read-file.c (fread_file): Start with buffer allocation of
27358 0 bytes rather than 1 byte; this simplifies the code.
27359 Don't invoke feof; it's not needed. Refactor to avoid duplicate
27360 code to free buffer and save/restore errno.
27361 (internal_read_file): Remove unused local.
27363 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
27365 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
27366 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
27367 Problem reported by Denis Excoffier in
27368 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
27370 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
27372 * modules/sys_socket, modules/socklen: Include sys/types since
27373 FreeBSD 4.x's sys/socket.h needs it.
27375 2006-06-19 Simon Josefsson <jas@extundo.com>
27377 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
27379 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
27381 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
27383 2006-06-19 Bruno Haible <bruno@clisp.org>
27385 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
27386 and FULL_PATH_INTTYPES_H in angle brackets.
27387 Reported by Mark D. Baushke <mdb@gnu.org>.
27389 2006-06-17 Eric Blake <ebb9@byu.net>
27391 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
27394 2006-06-17 Bruno Haible <bruno@clisp.org>
27396 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
27399 2006-06-17 Bruno Haible <bruno@clisp.org>
27401 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
27402 whether errno is declared. Assume <errno.h> declares errno.
27404 2006-06-17 Bruno Haible <bruno@clisp.org>
27406 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
27408 2006-06-17 Bruno Haible <bruno@clisp.org>
27410 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
27411 problem on Solaris 2.5.1.
27413 2006-06-16 Eric Blake <ebb9@byu.net>
27415 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
27416 * lib/unicodeio.c [!defined errno]: Likewise.
27417 * lib/strtol.c [!defined errno]: Likewise.
27418 * lib/strtod.c [!defined errno]: Likewise.
27420 2006-06-15 Eric Blake <ebb9@byu.net>
27422 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
27424 2006-06-15 Eric Blake <ebb9@byu.net>
27426 * config/srclist.txt (ssize_t.m4): Lose sync.
27428 2006-06-15 Bruno Haible <bruno@clisp.org>
27430 * modules/stdint (Files): Include m4/full-header-path.m4,
27431 m4/size_max.m4, m4/wchar_t.m4.
27432 (Makefile.am): Many more substitutions.
27433 * modules/stdint-tests: New file.
27434 * tests/test-stdint.c: New file.
27436 2006-06-15 Bruno Haible <bruno@clisp.org>
27438 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
27439 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
27440 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
27441 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
27442 gl_CHECK_TYPE_SAME): New macros.
27444 2006-06-15 Bruno Haible <bruno@clisp.org>
27446 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
27448 2006-06-15 Bruno Haible <bruno@clisp.org>
27450 * lib/stdint_.h: Rewritten to be fully auto-configured.
27451 Fixes bug on HP-UX/IA64.
27453 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
27455 * lib/getdate.y (__attribute__): Don't define if already defined.
27456 Problem reported by Larry Jones.
27457 * lib/utimens.c (__attribute__): Likewise.
27459 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
27461 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
27462 reported by Andreas Schwab.
27464 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27465 Bruno Haible <bruno@clisp.org>
27467 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
27468 check for the declaration of strnlen and a run test that exposes the
27469 AIX 5.1 strnlen bug. In the failure case, #define strndup to
27472 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27473 Bruno Haible <bruno@clisp.org>
27475 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
27477 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27479 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
27480 compile test, for Tru64 4.0D.
27482 2006-05-28 Karl Berry <karl@gnu.org>
27484 * config/srclist.txt (printf-args.c): lose sync.
27486 2006-05-26 Martin Lambers <marlam@marlam.de>
27488 * lib/getpass.c: Updates the test for the native W32 API, and adds
27489 missing includes, thus fixing compilation warnings.
27491 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
27493 * lib/exclude.c (exclude_fnmatch): New function.
27494 (excluded_file_name): Call exclude_fnmatch.
27495 * lib/exclude.h (excluded_file_name): New prototype
27497 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
27499 * lib/tempname.c (small_open, large_open): New macros.
27500 (__open, __open64) [!_LIBC]: Remove.
27501 (__gen_tempname): Use small_open and large_open instead of __open
27502 and __open64. This fixes a portability bug on HP-UX 11.11i
27503 reported by Simon Wing-Tang in
27504 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
27506 2006-05-24 Bruno Haible <bruno@clisp.org>
27508 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
27509 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
27510 Reported by Thorsten Maerz <torte@netztorte.de> via
27511 Aaron Stone <aaron@serendipity.cx>.
27513 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
27515 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
27516 gl_ rather than jm_. Link, don't run, so that cross-compiles are
27517 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
27518 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
27519 not really conditional on the cache.
27520 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
27522 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
27524 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
27525 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
27526 (my_usleep): Don't mishandle maximum value.
27528 2006-05-19 Jim Meyering <jim@meyering.net>
27530 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
27532 2006-05-17 Bruno Haible <bruno@clisp.org>
27534 Cygwin portability.
27535 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
27537 2006-05-17 Bruno Haible <bruno@clisp.org>
27539 * lib/stdint_.h: Fix recognition of Cygwin.
27541 2006-05-15 Bruno Haible <bruno@clisp.org>
27543 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
27544 on libtool patch by Ralf Wildenhues.
27546 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
27548 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
27549 test for C99 conformance; (bool) 0.5 is an integer constant
27550 expression, but (bool) -0.5 is not. Problem reported by Fedor
27551 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
27553 2006-05-11 Simon Josefsson <jas@extundo.com>
27555 * m4/xvasprintf.m4: Fix obvious typo.
27557 2006-05-11 Jim Meyering <jim@meyering.net>
27559 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
27562 2006-05-10 Simon Josefsson <jas@extundo.com>
27564 * lib/md4.c: Typo fix, update copyright years.
27565 (K1, K2): Don't use L because it turn computations into 64-bit on
27568 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
27570 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
27571 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
27572 unwanted sign propagation, e.g., on hosts with 64-bit int.
27573 There still are some problems with reeelly weird theoretical hosts
27574 (e.g., 33-bit int) but it's not worth worrying about now.
27575 * lib/sha1.c (rol): Likewise.
27576 (K1, K2, K3, K4): Remove unnecessary L suffix.
27578 2006-05-10 Bruno Haible <bruno@clisp.org>
27580 * lib/des.c: Cast to avoid warnings.
27582 2006-05-09 Bruno Haible <bruno@clisp.org>
27584 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
27585 (Depends-on): Depend also on xsize, stdarg.
27586 (configure.ac): Add gl_XVASPRINTF.
27588 2006-05-09 Bruno Haible <bruno@clisp.org>
27590 * m4/xvasprintf.m4: New file.
27592 2006-05-09 Bruno Haible <bruno@clisp.org>
27594 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
27595 (EOVERFLOW): Define fallback value.
27596 (xstrcat): New function.
27597 (xvasprintf): Recognize the special case of a string concatenation.
27599 2006-05-08 Eric Blake <ebb9@byu.net>
27601 * gnulib-tool (func_version): Base copyright year on CVS date.
27602 (func_emit_copyright_notice): New function.
27603 (func_emit_lib_Makefile_am): Use it.
27604 (func_emit_tests_Makefile_am): Likewise.
27605 (func_import): Likewise.
27607 2006-05-08 Bruno Haible <bruno@clisp.org>
27609 * modules/stdarg: New file.
27610 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
27612 2006-05-08 Bruno Haible <bruno@clisp.org>
27614 * m4/stdarg.m4: New file, from GNU gettext.
27616 2006-05-08 Bruno Haible <bruno@clisp.org>
27618 * config/srclist.txt (build-aux/config.rpath): different from latest
27621 2006-05-08 Bruno Haible <bruno@clisp.org>
27623 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
27625 2006-05-05 Jim Meyering <jim@meyering.net>
27627 * m4/warning.m4: New file, derived from bison's file by the same name.
27629 2006-05-03 Bruno Haible <bruno@clisp.org>
27631 * lib/stdint_.h: Shorter URL.
27632 * lib/inttypes.h: Likewise.
27634 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
27636 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
27638 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
27640 * lib/verify.h: Document the internals better. Most of this change
27641 was written by Bruno Haible.
27643 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
27645 * doc/verify.texi: New file, partly based on a proposal by
27648 2006-05-02 Bruno Haible <bruno@clisp.org>
27650 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
27652 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
27654 2006-04-29 Bruno Haible <bruno@clisp.org>
27656 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
27657 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
27659 2006-04-29 Bruno Haible <bruno@clisp.org>
27661 * gnulib-tool: Make --update option actually work.
27663 2006-04-29 Bruno Haible <bruno@clisp.org>
27665 * doc/gcd.texi: New file.
27666 * doc/gnulib.texi: Include it.
27668 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
27670 * lib/getdate.y (get_date): When adding relative date, start with the
27671 initial time, not with the result of the first mktime call.
27673 2006-04-25 Bruno Haible <bruno@clisp.org>
27675 * gnulib-tool (func_import): Output the include directives in three
27676 blocks, sorted separately.
27677 Reported by Ben Pfaff <blp@cs.stanford.edu>.
27679 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
27681 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
27682 to define main with arguments, for C++. Reported by Eric Blake.
27683 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
27684 Prefer 'int main ()' to 'int main (void)', for C++.
27685 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27686 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
27687 for 'main', for C99 and C++.
27689 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
27691 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
27692 Don't assume that exit status -1 is valid.
27693 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27694 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27695 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27696 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
27697 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
27698 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
27699 not AC_TRY_RUN. Use return, not exit. Don't assume that
27700 functions can be used without declaring them, or that you can
27701 exit with status -1.
27702 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27704 2006-04-24 Karl Berry <karl@gnu.org>
27706 * config/srclist.txt (longdouble.m4): sync lost.
27708 2006-04-24 Eric Blake <ebb9@byu.net>
27710 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
27712 2006-04-24 Bruno Haible <bruno@clisp.org>
27714 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
27715 poll() implementation in AIX.
27716 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27718 2006-04-24 Bruno Haible <bruno@clisp.org>
27720 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
27721 assigned exactly once.
27723 2006-04-23 Claudio Fontana <claudio@gnu.org>
27724 Bruno Haible <bruno@clisp.org>
27726 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
27727 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
27730 2006-04-23 Bruno Haible <bruno@clisp.org>
27732 * modules/copy-file: Depend on unistd.
27733 * modules/execute: Likewise.
27734 * modules/fatal-signal: Likewise.
27735 * modules/findprog: Likewise.
27736 * modules/mkdtemp : Likewise.
27737 * modules/pipe: Likewise.
27738 * modules/wait-process: Likewise.
27740 2006-04-23 Bruno Haible <bruno@clisp.org>
27742 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
27743 condition was already detected.
27744 Reported by Ben Pfaff <blp@cs.stanford.edu>.
27746 2006-04-23 Bruno Haible <bruno@clisp.org>
27748 * lib/copy-file.c: Include <unistd.h> unconditionally.
27749 * lib/execute.c: Likewise.
27750 * lib/fatal-signal.c: Likewise.
27751 * lib/findprog.c: Likewise.
27752 * lib/mkdtemp.c: Likewise.
27753 * lib/pipe.h: Likewise.
27754 * lib/pipe.c: Likewise.
27755 * lib/wait-process.h: Likewise.
27757 2006-04-23 Bruno Haible <bruno@clisp.org>
27759 * gnulib-tool (func_usage): Fix --import description. Document
27761 (func_import): Create temporary file in a temporary directory, if
27762 --dry-run is specified. Silence errors from 'grep' when there are no
27763 m4 files in $m4dir.
27764 (func_create_testdir): Silence errors from 'grep' when there are no
27765 m4 files in $m4dir.
27766 Reported by Karl Berry <karl@freefriends.org>.
27768 2006-04-20 Bruno Haible <bruno@clisp.org>
27770 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
27771 one argument, so that the code will be portable to Autoconf 2.60.
27772 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
27773 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
27774 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
27776 2006-04-19 Derek Price <derek@ximbiot.com>
27777 Eric Blake <ebb9@byu.net>
27779 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
27780 rather than "/full/path.h". Update comment to match. Shorten &
27781 generalize m4_translit call via AS_TR_CPP.
27783 2006-04-19 Derek Price <derek@ximbiot.com>
27784 Eric Blake <ebb9@byu.net>
27786 * lib/inttypes.h: Correct grammar in comment.
27788 2006-04-18 Derek Price <derek@ximbiot.com>
27789 Paul Eggert <eggert@cs.ucla.edu>
27791 * modules/inttypes: New file.
27792 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
27794 2006-04-18 Derek Price <derek@ximbiot.com>
27795 Paul Eggert <eggert@cs.ucla.edu>
27797 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
27800 2006-04-18 Derek Price <derek@ximbiot.com>
27801 Paul Eggert <eggert@cs.ucla.edu>
27803 * lib/inttypes.h: New file.
27804 * lib/strtoimax.c: Assume <inttypes.h>.
27806 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
27808 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
27809 isn't mounted. Problem reported by Kir Kolyshkin.
27811 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
27813 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
27814 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
27816 * lib/regex.h (RE_DUP_MAX): Update comment to match current
27819 2006-04-12 Eric Blake <ebb9@byu.net>
27821 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
27822 is now done automatically by the corresponding Autoconf macro.
27824 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
27826 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
27829 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
27831 Merge regex changes from libc, removing some of our
27832 POSIX-conformance changes that were rejected and redoing them in a
27833 less-intrusive way.
27835 * lib/regcomp.c (re_compile_internal, init_dfa):
27836 Length arg is now size_t, not Idx. All uses changed.
27837 (peek_token): Forward decl now says internal_function.
27838 (__re_error_msgid, __re_error_msgid_idx):
27839 Now static rather than extern with attribute_hidden.
27840 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
27841 For some reason libc prefers K&R style defns for external functions.
27842 (regerror) [!defined _LIBC]: Likewise.
27843 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
27844 (seek_collating_symbol_entry, lookup_collation_sequence_value):
27845 (build_range_exp, build_collating_symbol):
27846 Use K&R-style defn.
27847 (re_compile_fastmap): Use '\0' to memset, not 0.
27848 (utf8_sb_map): Make the calculations more obvious.
27849 (init_dfa, parse_bracket_exp, build_charclass_op):
27850 Call calloc and cast result, as glibc does.
27851 (init_word_char, fetch_token, peek_token, peek_token_bracket):
27852 (build_range_exp, build_collating_symbol):
27853 Now internal functions.
27855 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
27857 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
27858 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
27859 Don't depend on VMS; depend on __VMS instead, for POSIX
27860 namespace cleanness.
27861 (regoff_t): Define to ssize_t, not long int.
27863 Remove the REG_ macros named below. Instead, make the old names
27864 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
27866 (REG_BACKSLASH_ESCAPE_IN_LISTS):
27867 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
27868 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
27869 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
27870 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
27871 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
27872 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
27873 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
27874 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
27875 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
27876 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
27877 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
27878 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
27879 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
27880 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
27881 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
27882 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
27884 Remove. All uses replaced by the old RE_* names.
27885 (RE_BACKSLASH_ESCAPE_IN_LISTS):
27886 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
27887 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
27888 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
27889 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
27890 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
27891 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
27892 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
27893 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
27894 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
27895 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
27896 Don't bother having these macros be independent of each others'
27897 values, since they no longer exist in the POSIX name space.
27899 Rename the following member names back to their old names,
27900 unless !__USE_GNU_REGEX. All uses changed back.
27901 (buffer): Renamed from re_buffer.
27902 (allocated): Renamed from re_allocated.
27903 (used): Renamed from re_used.
27904 (syntax): Renamed from re_syntax.
27905 (fastmap): Renamed from re_fastmap.
27906 (translate): Renamed from re_translate.
27907 (can_be_null): Renamed from re_can_be_null.
27908 (regs_allocated): Renamed from re_regs_allocated.
27909 (fastmap_accurate): Renamed from re_fastmap_accurate.
27910 (no_sub): Renamed from re_no_sub.
27911 (not_bol): Renamed from re_not_bol.
27912 (not_eol): Renamed from re_not_eol.
27913 (newline_anchor): Renamed from re_newline_anchor.
27914 (num_regs): Renamed from rm_num_regs.
27915 (start): Renamed from rm_start.
27916 (end): Renamed from rm_end.
27918 (free_state): Move up a bit.
27920 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
27921 #define to be empty.
27922 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
27923 when that is what is intended.
27924 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
27925 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
27927 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
27928 All uses changed back to re_malloc, etc. It's now the caller's
27929 responsibility to check for overflow; all callers changed.
27930 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
27931 (re_x2nrealloc): Remove.
27932 (free_state): Remove decl.
27934 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
27935 (re_set_registers, re_exec):
27936 Use K&R-style defn.
27938 2006-01-31 Roland McGrath <roland@redhat.com>
27940 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
27941 Reported by Mike Frysinger <vapier@gentoo.org>.
27943 2006-01-15 Andreas Jaeger <aj@suse.de>
27946 * lib/regex_internal.c (re_string_reconstruct): Adjust for
27947 build_wcs_upper_buffer change.
27948 (build_wcs_upper_buffer): Change return type.
27950 2005-12-10 Ulrich Drepper <drepper@redhat.com>
27952 * lib/regex_internal.h: Include <stdint.h> if available.
27954 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
27956 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
27958 2005-10-14 Ulrich Drepper <drepper@redhat.com>
27960 * lib/regcomp.c: Adjust for changed secondary hash function.
27962 2005-09-30 Ulrich Drepper <drepper@redhat.com>
27964 * lib/regex.h: Pretty printing.
27965 Clean up namespace a bit.
27967 2005-09-30 Jakub Jelinek <jakub@redhat.com>
27969 * lib/regexec.c (update_cur_sifted_state, check_arrival,
27970 check_arrival_add_next_nodes): Avoid using uninitialized variable.
27972 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
27973 Ulrich Drepper <drepper@redhat.com>
27976 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
27978 (bitset_word_t): Renamed from bitset_word. All uses changed.
27980 2005-09-22 Ulrich Drepper <drepper@redhat.com>
27983 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
27984 * lib/regcomp.c: Remove unnecessary uses of
27985 unsigned RE_TRANSLATE_TYPE.
27986 * lib/regex_internal.h: Likewise.
27987 * lib/regex_internal.c: Likewise.
27988 * lib/regexec.c: Likewise.
27989 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
27991 2005-09-07 Ulrich Drepper <drepper@redhat.com>
27993 * lib/regexec.c (find_recover_state): Remove unnecessary
27995 (transit_state_bkref): Make DFA a const pointer.
27996 (get_subexp): Likewise.
27997 (check_arrival): Likewise.
27998 (update_cur_sifted_state): Likewise.
27999 (re_search_internal): Likewise.
28000 (prune_impossible_nodes): Likewise.
28001 (acquire_init_state_context): Likewise.
28002 (proceed_next_node): Likewise.
28003 (set_regs): Likewise.
28004 (free_fail_stack_return): Likewise.
28005 (check_arrival_expand_ecl): Mark DFA parameter as const.
28006 (check_arrival_expand_ecl_sub): Likewise.
28007 (check_subexp_limits): Likewise.
28008 (sub_epsilon_src_nodes): Likewise.
28009 (add_epsilon_src_nodes): Likewise.
28010 (merge_state_array): Likewise.
28011 (update_regs): Likewise.
28012 (build_trtable): Likewise.
28013 (sift_states_backward): Mark MCTX parameter as const.
28014 (build_sifted_states): Likewise.
28015 (update_cur_sifted_state): Likewise.
28016 (sift_states_mkref): Likewise.
28017 (check_arrival_expand_ecl): Mark eclosure as const.
28018 (check_dst_limits_calc_pos_1): Likewise.
28019 * lib/regex_internal.h (re_match_context_t): Make dfa a const
28022 2005-09-06 Ulrich Drepper <drepper@redhat.com>
28024 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
28025 (transit_state_sb): Likewise.
28026 (transit_state_mb): Likewise.
28027 (sift_states_iter_mb): Likewise.
28028 (check_arrival_add_next_nodes): Likewise.
28029 (check_node_accept_bytes): Change first parameter to pointer-to-const.
28030 [_LIBC] (re_search_2_stub): Use mempcpy.
28032 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
28033 mbrtowc for very simple UTF-8 case.
28035 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
28036 a pointer-to-const.
28037 (re_acquire_state_context): Likewise.
28038 * lib/regex_internal.h: Adjust prototypes.
28040 * lib/regex.c: Prevent using C++ compilers.
28042 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
28043 (re_acquire_state_context): Likewise.
28045 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
28047 * modules/regex (Depends-on): Add ssize_t.
28049 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
28051 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
28054 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
28056 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
28058 2006-03-29 Mark D. Baushke <mdb@gnu.org>
28059 Bruno Haible <bruno@clisp.org>
28061 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
28062 <sys/types.h> and <inttypes.h>.
28064 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28066 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
28067 `__error_t_defined', so argp.h will not typedef the former.
28069 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
28071 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
28072 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
28073 glibc names. Even if glibc is changed to conform to POSIX, the
28074 traditional names will be available anyway, since regex depends on
28075 the extensions module. Also, fix a longstanding typo in the
28076 implementation of Spencer ERE test #75 from grep 2.3. Problems
28077 reported by Emanuele Giaquinta. Also, change sense of cached
28078 variable, so that the message makes sense.
28080 2006-03-24 Simon Josefsson <jas@extundo.com>
28082 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
28083 including some doc fixes.
28084 (base64_encode_alloc): Fix +1 bug on allocation failures.
28086 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28088 * lib/base64.c (base64_encode): Do not read past end of array with
28089 unsanitized input on systems with CHAR_BIT > 8.
28091 2006-03-24 Eric Blake <ebb9@byu.net>
28093 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
28095 2006-03-22 Karl Berry <karl@gnu.org>
28097 * config/srclist.txt (*setenv.[ch]): get from coreutils.
28098 * config/srclistvars.sh (COREUTILS): new var.
28100 2006-03-17 Jim Meyering <jim@meyering.net>
28102 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
28103 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
28105 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
28107 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
28108 no longer needs it. Instead, check that regoff_t is as least
28109 as wide as ptrdiff_t.
28111 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
28112 so that our regex.h stays compatible with the installed regex.
28113 This is helpful for installers who configure --without-included-regex.
28114 Problem reported by Emanuele Giaquinta.
28116 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
28118 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
28119 Typedef to long int, not to off_, as POSIX will likely change
28122 2006-03-15 Eric Blake <ebb9@byu.net>
28124 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
28126 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
28128 * lib/argp-help.c (validate_uparams): Fix typo
28129 * lib/argp-parse.c (argp_default_options): Consistently begin help
28130 messages with a lowercase letter.
28132 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
28134 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
28135 overrun buffers and shouldn't be used (much as gets shouldn't be
28137 * lib/time_r.c (asctime_r, ctime_r): Likewise.
28139 2006-03-08 Simon Josefsson <jas@extundo.com>
28141 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
28142 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28144 2006-03-08 Simon Josefsson <jas@extundo.com>
28146 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
28147 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28149 2006-03-08 Simon Josefsson <jas@extundo.com>
28151 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
28152 signal that configure disabled the device.
28154 2006-03-08 Simon Josefsson <jas@extundo.com>
28156 * build-aux/maint.mk: Fix refresh-po, to handle no translated
28159 2006-03-07 Simon Josefsson <jas@extundo.com>
28161 * modules/getopt (Depends-on): Add unistd.
28163 * modules/unistd: New file.
28165 2006-03-07 Simon Josefsson <jas@extundo.com>
28167 * modules/gc-random: New file.
28169 2006-03-07 Simon Josefsson <jas@extundo.com>
28171 * m4/unistd_h.m4: New file.
28173 2006-03-07 Simon Josefsson <jas@extundo.com>
28175 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
28176 test to be side-effect free by storing the result in the cache
28177 variable gl_cv_lib_readline, and moving the assignment of
28178 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
28179 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28181 2006-03-07 Simon Josefsson <jas@extundo.com>
28183 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
28184 error on missing devices (the functions will return an error).
28186 * m4/gc.m4: Move random stuff to gc-random.m4
28188 2006-03-07 Simon Josefsson <jas@extundo.com>
28190 * lib/unistd_.h: New file.
28192 2006-03-07 Simon Josefsson <jas@extundo.com>
28194 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
28196 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
28198 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
28199 Problem reported by Juan Manuel Guerrero.
28201 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
28203 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
28205 * lib/getlogin_r.c: Likewise.
28206 * lib/getlogin_r.h: Likewise.
28207 * lib/glob.c: Likewise.
28208 * lib/pagealign_alloc.c: Likewise.
28209 * lib/unistd_.h: Remove; no longer needed.
28211 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
28213 * MODULES.html.sh (Support for systems lacking POSIX:2001):
28215 * modules/c-stack (Depends-on): Add unistd.
28216 * modules/getlogin_r: Likewise.
28217 * modules/glob: Likewise.
28218 * modules/pagealign_alloc: Likewise.
28219 * modules/unistd (Files): Remove lib/unistd_.h.
28220 (EXTRA_DIST): Remove.
28221 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
28223 (MOSTLYCLEANFILES): Remove unistd.h-t.
28225 2006-03-03 Simon Josefsson <jas@extundo.com>
28227 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
28229 2006-03-03 Simon Josefsson <jas@extundo.com>
28231 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
28234 2006-03-03 Simon Josefsson <jas@extundo.com>
28236 * build-aux/maint.mk: Add indent target.
28238 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
28240 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
28241 our replacement poll.h in any case, to avoid a differing
28242 declaration from a system header. Seen on AIX.
28244 2006-03-01 Simon Josefsson <jas@extundo.com>
28246 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
28249 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
28251 * modules/gettime (Depends-on): Add extensions module.
28252 * modules/nanosleep (Depends-on): Likewise.
28253 * modules/settime (Depends-on): Likewise.
28255 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
28257 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
28258 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
28260 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28261 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
28263 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
28264 not "==". Reported by Ralf Wildenhues.
28266 2006-03-01 Karl Berry <karl@gnu.org>
28268 * doc/Copyright/request-*: new files, synced from gnuorg.
28270 2006-03-01 Karl Berry <karl@gnu.org>
28272 * config/srclist.txt (Copyright/*): new entries.
28274 2006-02-28 Simon Josefsson <jas@extundo.com>
28276 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
28278 2006-02-27 Simon Josefsson <jas@extundo.com>
28280 * lib/base64.h: Indent #define's. From Jim Meyering
28281 <jim@meyering.net>.
28283 2006-02-27 Jim Meyering <jim@meyering.net>
28285 Revert the change of 2006-02-24, so these files can continue
28286 to be sync'd from gettext.
28287 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
28290 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
28292 * modules/intprops: New file.
28293 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
28295 * modules/getloadavg (Files): Remove lib/intprops.h.
28296 (Depends-on): Add intprops.
28297 * modules/human: Likewise.
28298 * modules/inttostr: Likewise.
28299 * modules/openat: Likewise.
28300 * modules/sig2str: Likewise.
28301 * modules/userspec: Likewise.
28302 * modules/utimecmp: Likewise.
28303 * modules/xnanosleep: Likewise.
28304 * modules/xstrtol: Likewise.
28306 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
28308 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
28309 * modules/lock-tests (TESTS): Use $(EXEEXT).
28310 * modules/tls-tests: Likewise.
28311 * modules/argp-tests: Likewise.
28312 (check_PROGRAMS): New var, replacing...
28313 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
28315 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28317 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
28320 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
28322 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
28324 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28326 Sync from coreutils.
28327 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
28330 2006-02-22 Jim Meyering <jim@meyering.net>
28332 Sync from coreutils.
28333 * m4/chdir-safer.m4: New file.
28335 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
28337 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
28338 AT_FDCWD exceeds INT_MAX.
28339 * lib/openat.h (AT_FDCWD): Likewise.
28341 2006-02-17 Eric Blake <address@hidden>
28343 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
28345 2006-02-16 Simon Josefsson <jas@extundo.com>
28347 * modules/getaddrinfo (Depends-on): Add sys_socket.
28349 2006-02-15 Simon Josefsson <jas@extundo.com>
28351 * build-aux/maint.mk: Add dsyntax-check rule.
28353 2006-02-15 Eric Blake <ebb9@byu.net>
28355 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
28356 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
28357 'present but cannot compile' warnings on cygwin.
28358 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
28359 use ws2tcpip.h if sys/socket.h works.
28360 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
28361 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
28363 2006-02-14 Simon Josefsson <jas@extundo.com>
28365 * modules/maintainer-makefile (Files): Rename.
28367 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
28368 and (the local) Makefile.cfg to maint-cfg.mk.
28370 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
28373 * modules/maintainer-makefile: New module.
28375 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
28376 severaly stripped to make it possible to build it up from scratch
28377 with reliable tests.
28379 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
28380 fixes to permit overriding the default actions when configure and
28381 makefile are not available.
28383 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
28385 Sync from coreutils.
28386 * modules/lstat (Depends-on): Don't depend on xalloc.
28387 (License): Change from GPL to LGPL, since this is now simply a
28388 replacement for a libc function.
28390 2006-02-14 Jim Meyering <jim@meyering.net>
28392 Sync from coreutils.
28394 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
28395 failure on deficient systems, and simplify gnulib lgpl dependencies.
28396 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
28397 xmalloc/lstat combination. Based on a patch from Bruno Haible.
28399 * lib/xalloc-die.c: Remove unused definition of N_.
28401 2006-02-14 Jim Meyering <jim@meyering.net>
28403 Sync from coreutils.
28404 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
28405 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
28406 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
28407 double-quote uses of that variable, to accommodate the rare case in
28408 which getmntent is available in none of the libraries checked. This
28409 happens at least on FreeBSD 5.0.
28411 2006-02-13 Simon Josefsson <jas@extundo.com>
28413 * gnulib-tool (Usage): Fix --import, from
28414 karl@freefriends.org (Karl Berry).
28416 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
28418 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
28420 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
28422 * lib/argp-namefrob.h: Restore changes accidentally lost during the
28423 "autoupdate" on 2005-12-12.
28425 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
28427 * modules/closeout (Depends-on): Remove atexit.
28429 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
28431 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
28432 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
28434 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
28436 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
28437 __EXTENSIONS__ if this causes compilation to fail. Problem
28438 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
28439 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
28441 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
28443 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
28444 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
28445 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
28448 2006-01-26 Simon Josefsson <jas@extundo.com>
28450 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
28451 prototype is visible on mingw32.
28453 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
28456 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
28459 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
28461 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
28462 attempt to open for write; this always fails, at least on POSIX
28463 hosts. This reinstates the 2006-01-09 change, which was
28464 inadvertently removed.
28466 2006-01-26 Bruno Haible <bruno@clisp.org>
28468 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
28469 Reported by Paul Eggert.
28471 2006-01-26 Bruno Haible <bruno@clisp.org>
28472 Paul Eggert <eggert@cs.ucla.edu>
28474 * lib/stdbool_.h (_Bool)
28475 [(! (defined __cplusplus || defined __BEOS__)
28476 && !defined __GNUC__
28477 && !(defined __HP_cc || defined __xlc__
28478 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
28479 || defined __sgi))]:
28480 #define to signed char in these cases too; this simplifies
28481 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
28482 etc., separately) and makes it more conservative.
28484 2006-01-25 Simon Josefsson <jas@extundo.com>
28486 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
28487 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
28488 ws2tcpip.h with WINVER=0x0501. All for mingw32.
28490 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
28492 * lib/argp-namefrob.h: Bugfix. Remove stray #
28494 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
28496 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
28497 so that we test the test.
28498 Check for yet another HP-UX cc bug involving *bool |= bool.
28500 2006-01-25 Karl Berry <karl@gnu.org>
28502 * config/srclist.txt (vasnprintf.c): sync lost.
28504 2006-01-25 Jim Meyering <jim@meyering.net>
28506 Sync from the stable (b5) branch of coreutils:
28508 * lib/fts.c (fts_children): Don't let close() clobber errno from
28511 * lib/fts.c (fts_stat): When following a symlink-to-directory,
28512 don't necessarily interpret stat-fails+lstat-succeeds as indicating
28513 a dangling symlink. That can also happen at least for ELOOP.
28514 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
28515 FYI, this bug predates the inclusion of fts.c in coreutils.
28517 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
28518 in their own block, so pre-c99 compilers don't object.
28520 Avoid the double-free (first in fts_read, second in fts_close) that
28521 would occur when an `active' directory is made inaccessible (e.g.,
28522 via chmod a-x) during a traversal.
28523 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28524 before returning. Reproduce this failure by
28525 mkdir -p a/b; cd a; chmod a-x . b
28526 Reported by Stavros Passas.
28528 2006-01-25 Jim Meyering <jim@meyering.net>
28530 * lib/fileblocks.c: Remove more useless parentheses.
28531 * lib/readutmp.h: Likewise.
28533 2006-01-25 Bruno Haible <bruno@clisp.org>
28535 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
28537 Reported by Paul Eggert.
28539 2006-01-25 Bruno Haible <bruno@clisp.org>
28541 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
28542 rid of a trap command. For Solaris sh.
28543 Reported by Mark D. Baushke <mdb@gnu.org>.
28545 2006-01-24 Simon Josefsson <jas@extundo.com>
28547 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
28550 2006-01-24 Karl Berry <karl@gnu.org>
28552 * config/srclist.txt (argp-namefrob.h): sync lost.
28554 2006-01-24 Jim Meyering <jim@meyering.net>
28556 * modules/openat (Files): Add lib/intprops.h.
28557 From Mark D. Baushke.
28559 2006-01-24 Jim Meyering <jim@meyering.net>
28561 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
28562 Reported by Mark D. Baushke.
28564 2006-01-24 Jim Meyering <jim@meyering.net>
28566 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
28568 2006-01-24 Bruno Haible <bruno@clisp.org>
28570 * modules/strnlen (Maintainer): Change from glibc to all.
28572 2006-01-24 Bruno Haible <bruno@clisp.org>
28574 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
28575 Patch by Paul Eggert.
28577 2006-01-24 Bruno Haible <bruno@clisp.org>
28579 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
28581 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
28584 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
28585 'signed char' to avoid problems with the built-in _Bool type.
28586 Reported by Paul Eggert on 2005-11-26.
28588 2006-01-24 Bruno Haible <bruno@clisp.org>
28590 * gnulib-tool (func_import): Avoid constructing complicated sed
28591 expressions inside backquote.
28592 Report and solution by Mark D. Baushke <mdb@gnu.org>.
28594 2006-01-23 Ulrich Drepper <drepper@redhat.com>
28596 These changes imported from libc.
28597 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
28598 test and two separate function calls.
28599 * lib/strndup.c (__strndup): Add libc_hidden_def.
28601 2006-01-23 Simon Josefsson <jas@extundo.com>
28603 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
28604 Remove the test_*_SOURCES variable: automake infers it by default.
28605 * modules/tls-tests: Likewise.
28607 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
28609 Work around porting bugs reported by Dieter in
28610 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
28611 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
28612 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
28613 Include "getopt.h" first, to check interface.
28614 (getenv): Declare only if defined HAVE_DECL_GETENV &&
28616 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
28617 (__strndup): Revert to K&R-style function dfns, the glibc style.
28618 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
28619 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
28620 Include strnlen.h first, to get prototype properly.
28621 (strnlen): Renamed from __strnlen.
28624 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
28626 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
28628 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
28630 * config/srclist.txt: Adjust to reflect glibc reorganization.
28631 This affects only comments.
28633 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
28635 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
28636 Reported by Bruce Korb <bkorb@gnu.org>.
28638 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
28640 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
28641 to pacify gcc -Wswitch-default.
28643 2006-01-22 Bruno Haible <bruno@clisp.org>
28645 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
28646 temporary buffer for sprintf, take into account the precision also
28647 for 'd', 'i', 'u', 'o', 'x', 'X'.
28649 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
28651 * modules/argp-tests: New module
28652 * tests/test-argp.c: New file
28653 * tests/test-argp-2.sh: New file
28655 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
28657 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
28658 (__argp_base_name): Removed
28659 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
28661 (__argp_base_name): Provide macro definition or extern declaration
28662 depending on the configuration
28664 2006-01-20 Simon Josefsson <jas@extundo.com>
28666 * modules/inet_ntop (Depends-on): Depend on sys_socket.
28668 2006-01-20 Simon Josefsson <jas@extundo.com>
28670 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
28672 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
28674 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
28675 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
28676 Suggested by Bruno Haible.
28678 2006-01-20 Karl Berry <karl@gnu.org>
28680 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
28681 until changes propagate, I guess.
28683 2006-01-19 Simon Josefsson <jas@extundo.com>
28685 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
28687 2006-01-19 Simon Josefsson <jas@extundo.com>
28689 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
28691 2006-01-19 Simon Josefsson <jas@extundo.com>
28693 * gnulib-tool: Set check_PROGRAMS.
28695 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28696 modules/des-tests, modules/gc-arcfour-tests,
28697 modules/gc-arctwo-tests, modules/gc-des-tests,
28698 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28699 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28700 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28701 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28702 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28703 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
28704 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
28707 2006-01-18 Simon Josefsson <jas@extundo.com>
28709 * modules/socklen (Depends-on): Depend on sys_socket.
28711 2006-01-18 Simon Josefsson <jas@extundo.com>
28713 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28714 modules/des-tests, modules/gc-arcfour-tests,
28715 modules/gc-arctwo-tests, modules/gc-des-tests,
28716 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28717 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28718 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28719 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28720 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28721 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
28722 $(EXEEXT) to automake TESTS variable, for mingw32.
28724 2006-01-17 Simon Josefsson <jas@extundo.com>
28726 * modules/socklen (Include): Need sys/socket.h.
28728 2006-01-17 Bruno Haible <bruno@clisp.org>
28730 * modules/ssize_t (Include): Add <sys/types.h>.
28732 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
28734 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
28735 it's not portable and it doesn't work with cross-compiles.
28736 Problem reported by Bruno Haible. Fix missing-$ typo in
28737 'test "gl_cv_ignore_unused_libraries" ...' that prevented
28738 -zignore from being used with Sun's C compiler.
28740 2006-01-12 Simon Josefsson <jas@extundo.com>
28742 * lib/base64.c: Fix warning, reported by Bruno Haible
28743 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
28745 2006-01-12 Bruno Haible <bruno@clisp.org>
28747 * modules/ldd: New file.
28748 * build-aux/ldd.sh.in: New file.
28749 * MODULES.html.sh (Support for building libraries and executables): Add
28752 2006-01-12 Bruno Haible <bruno@clisp.org>
28754 * m4/ldd.m4: New file.
28756 2006-01-12 Bruno Haible <bruno@clisp.org>
28758 * gnulib-tool (func_import, func_create_testdir): Don't go into an
28759 endless loop while replacing $auxdir with build-aux.
28761 2006-01-11 Simon Josefsson <jas@extundo.com>
28763 * lib/stdint_.h (SIZE_MAX): Add missing (.
28765 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
28767 Sync from coreutils.
28768 * lib/md5.c: Fix commentary typos.
28769 (alignof, UNALIGNED_P): No need for a GCC-specific version.
28770 * lib/md5.h (__attribute__): Remove; unused.
28771 * lib/sha1.c: Fix commentary to match md5 better.
28772 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
28773 so that we don't need to worry about alignment. All uses changed.
28774 This merges the 2005-10-28 md5 change into sha1.
28776 2006-01-11 Jim Meyering <jim@meyering.net>
28778 Sync from coreutils.
28779 * lib/md5.c (OP): Fix spacing.
28781 2006-01-11 Bruno Haible <bruno@clisp.org>
28783 Ensure automatic ordering between gl_LOCK and gl_ARGP.
28784 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
28785 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
28787 2006-01-11 Bruno Haible <bruno@clisp.org>
28789 Ensure automatic ordering between gl_LOCK and gl_ARGP.
28790 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
28791 the "early" section as well.
28793 2006-01-11 Bruno Haible <bruno@clisp.org>
28795 Avoid "ar: no archive members specified" error on MacOS X.
28796 * gnulib-tool (func_modules_add_dummy): New function.
28797 (func_import, func_create_testdir): Invoke it.
28799 2006-01-11 Bruno Haible <bruno@clisp.org>
28801 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
28802 with $auxdir in AC_CONFIG_FILES statements.
28804 2006-01-11 Bruno Haible <bruno@clisp.org>
28806 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28807 Initialize also noinst_HEADERS to empty.
28809 2006-01-11 Bruno Haible <bruno@clisp.org>
28811 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
28813 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
28816 2006-01-11 Bruno Haible <bruno@clisp.org>
28818 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
28819 overridable by the user.
28820 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28822 2006-01-10 Simon Josefsson <jas@extundo.com>
28824 * modules/sys_socket: New file.
28826 2006-01-10 Simon Josefsson <jas@extundo.com>
28828 * m4/sys_socket_h.m4: New file.
28830 2006-01-10 Simon Josefsson <jas@extundo.com>
28832 * lib/socket_.h: New file.
28834 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
28836 * modules/readutmp (Maintainer): Add myself.
28838 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
28840 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
28841 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
28842 People who are still concerned with buggy memcmp implementations
28843 can invoke gl_FUNC_MEMCMP themselves.
28845 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
28847 * lib/regex_internal.h (BITSET_WORD_BITS):
28848 Work around a bug in 64-bit PGC (before version 6.1-2), where the
28849 preprocessor mishandles large unsigned values as if they were signed.
28850 Problem reported by Claudio Fontana in
28851 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
28853 2006-01-10 Jim Meyering <jim@meyering.net>
28855 Avoid the double-free (first in fts_read, second in fts_close) that
28856 would occur when an `active' directory is made inaccessible (e.g.,
28857 via chmod a-x) during a traversal.
28858 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28859 before returning. Reproduce this failure by
28860 mkdir -p a/b; cd a; chmod a-x . b
28861 Reported by Stavros Passas.
28863 Sync from coreutils.
28864 * lib/sha1.c: Tweak grammar in a comment.
28866 2006-01-10 Jim Meyering <jim@meyering.net>
28868 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
28869 Patch by Joerg Sonnenberger.
28871 2006-01-10 Bruno Haible <bruno@clisp.org>
28873 * modules/readutmp: Depend on module free.
28874 * modules/strtok_r: Depend on module restrict.
28876 2006-01-10 Bruno Haible <bruno@clisp.org>
28878 * modules/gettext (configure.ac): Add an invocation of
28879 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
28881 2006-01-10 Bruno Haible <bruno@clisp.org>
28883 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
28884 Reported by Werner Lemberg <wl@gnu.org>.
28886 2006-01-10 Bruno Haible <bruno@clisp.org>
28888 * lib/localcharset.c: Update from GNU gettext.
28890 2006-01-10 Bruno Haible <bruno@clisp.org>
28892 * lib/argp.h (__const): Remove macro. Use const instead.
28893 * lib/argp-fmtstream.h (__const): Likewise.
28894 * lib/glob_.h (__const): Remove macro.
28895 * lib/glob-libc.h: Use const instead of __const.
28897 2006-01-10 Bruno Haible <bruno@clisp.org>
28899 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
28901 Needed to avoid an automake error regarding the 'gettext' module.
28903 2006-01-09 Simon Josefsson <jas@extundo.com>
28905 * modules/inet_ntop (Depends-on): Add restrict.
28907 2006-01-09 Simon Josefsson <jas@extundo.com>
28909 * modules/gc-rijndael-tests (License): Put under LGPL.
28911 * modules/gc-des-tests (License): Likewise.
28913 * modules/gc-arcfour-tests (License): Likewise.
28915 * modules/gc-arctwo-tests (License): Likewise.
28917 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
28919 * modules/gc-hmac-sha1-tests (Files): Likewise.
28921 * modules/gc-hmac-md5-tests (License): Likewise.
28923 * modules/gc-sha1-tests (License): Likewise.
28925 * modules/gc-md5-tests (License): Likewise.
28927 * modules/gc-md4-tests (License): Likewise.
28929 * modules/gc-md2-tests (License): Likewise.
28931 * modules/gc-tests (License): Likewise.
28933 * modules/des-tests (License): Likewise.
28935 * modules/md4-tests (License): Likewise.
28937 * modules/md2-tests (License): Likewise.
28939 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
28941 Sync from coreutils:
28943 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
28944 * modules/lib-ignore: New file.
28945 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
28946 chdir-safer.m4, lchmod.m4.
28947 * modules/openat: Add mkdirat.c, openat-priv.h.
28949 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
28951 Sync from coreutils.
28952 * m4/lib-ignore.m4: New file.
28953 * m4/lchmod.m4: New file.
28955 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
28957 Sync from coreutils.
28958 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
28959 for write access: POSIX says that must fail.
28960 * lib/fts.c (diropen): Likewise.
28961 * lib/save-cwd.c (save_cwd): Likewise.
28962 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
28963 well, for minor improvements on hosts that lack O_DIRECTORY.
28964 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
28965 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
28966 Fall back on chown if open failed with EACCES.
28968 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
28969 Report an error at compile-time if only a 1-second nominal clock
28970 resolution is found.
28972 * lib/lchmod.h: New file.
28973 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
28974 (make_dir_parents): Use lchown rather than chown, and
28975 lchmod rather than chmod.
28977 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
28978 dummies too. Problem with "none" reported by Bob Proulx. Problem with
28979 "proc" reported by n0dalus.
28981 * lib/mountlist.c: Include <limits.h>.
28982 (dev_from_mount_options)
28983 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
28984 New function. It no longer assumes "dev=" has the System V meaning
28985 on Linux (since it doesn't). It also parses "dev=" more carefully.
28986 (read_file_system_list)
28987 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
28988 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
28991 * lib/posixtm.h (PDS_PRE_2000): New macro.
28992 * lib/posixtm.c (year): Arg is now syntax_bits rather than
28993 allow_century. All usages changed. Reject dates outside the range
28994 1969-1999 if PDS_PRE_2000 is used.
28996 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
28998 Sync from coreutils.
28999 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
29000 (Time of day items): Mention the possibility of leap seconds.
29001 Problem reported by Dr. David Alan Gilbert.
29003 2006-01-09 Jim Meyering <jim@meyering.net>
29005 Sync from coreutils.
29007 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
29009 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
29011 * lib/modechange.c (mode_compile): Reject an invalid mode string
29012 that starts with an octal digit. From Andreas Gruenbacher.
29014 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
29015 and dup to open_safer and dup_safer, respectively.
29016 (openat_permissive): Fix typo in comment.
29018 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
29019 "gettext.h"; either no longer needed or are guaranteed by openat.h.
29020 (_): Remove; no longer needed.
29021 (openat): Renamed from rpl_openat; no need for rpl_openat
29022 since openat.h renames openat for us.
29023 Replace most of the body with a call to openat_permissive,
29024 to avoid duplicate code.
29025 Port to (probably hypothetical) environments were mode_t is
29027 (openat_permissive): Require mode arg, so that we can check
29028 types better. Put it just after flags. Change cwd failure
29029 indicator from pointer-to-bool to pointer-to-errno-value.
29030 All callers changed.
29031 Invoke openat_save_fail and/or openat_restore_fail if
29032 cwd_errno is null, so that openat can call us.
29033 (openat_permissive, fdopendir, fstatat, unlinkat):
29034 Simplify errno handling to avoid some duplicate code,
29035 as it's OK to set errno on success.
29036 * lib/openat.h: Revamp code so that function macros depend on
29037 __OPENAT_PREFIX only, not also on AT_FDCWD.
29038 (openat_ro): Remove. Caller changed to use openat_permissive.
29039 (openat_permissive): Now a macro, if not a function.
29040 (openat_restore_fail, openat_save_fail): Now always functions,
29041 since mkdirat needs them even if __OPENAT_PREFIX is defined.
29043 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
29045 * lib/mkdirat.c: Include openat-priv.h.
29046 Remove definitions of macros defined therein.
29047 * lib/openat.c: Likewise.
29049 * lib/mkdirat.c (mkdirat): New file and function.
29050 * lib/openat.h (mkdirat): Declare.
29052 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
29054 * lib/openat.h (openat_permissive): Declare.
29055 (openat_ro): Define.
29057 * lib/openat.c (EXPECTED_ERRNO): New macro.
29058 (openat_permissive): New function -- used in remove.c rewrite.
29059 (all functions): Set errno just before returning, only if there
29060 was an actual failure.
29061 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
29063 Emulate openat-family functions using Linux's procfs, if possible.
29064 Idea and some code based on Ulrich Drepper's glibc changes.
29066 * lib/openat.c: (BUILD_PROC_NAME): New macro.
29067 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
29068 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
29069 before falling back on save_cwd and restore_cwd.
29070 (fdopendir, fstatat, unlinkat): Likewise.
29072 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
29073 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
29075 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
29076 as second argument to va_arg. Otherwise, some versions of gcc
29077 warn that `if this code is reached, the program will abort'.
29079 2006-01-09 Jim Meyering <jim@meyering.net>
29081 Sync from coreutils.
29082 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
29083 Require openat-priv.h.
29085 2006-01-09 Bruno Haible <bruno@clisp.org>
29087 * modules/strnlen (Include): Use strnlen.h.
29089 2006-01-09 Bruno Haible <bruno@clisp.org>
29091 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
29093 2006-01-09 Bruno Haible <bruno@clisp.org>
29095 * lib/sysexit_.h (EX_OK): New macro.
29096 Suggested by Martin Lambers <marlam@marlam.de>.
29098 2006-01-09 Bruno Haible <bruno@clisp.org>
29100 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
29101 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
29103 2006-01-09 Bruno Haible <bruno@clisp.org>
29105 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
29108 2006-01-09 Bruno Haible <bruno@clisp.org>
29110 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
29111 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
29112 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
29113 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
29115 2006-01-09 Bruno Haible <bruno@clisp.org>
29117 * build-aux/javacomp.sh.in: New file, moved from lib/.
29118 * modules/javacomp-script (Files): Update.
29119 (configure.ac): Add AC_CONFIG_FILES invocation.
29120 (EXTRA_DIST): Remove variable.
29122 * build-aux/javaexec.sh.in: New file, moved from lib/.
29123 * modules/javaexec (Files): Update.
29124 (configure.ac): Add AC_CONFIG_FILES invocation.
29125 (EXTRA_DIST): Remove javaexec.sh.in.
29127 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
29128 * modules/csharpcomp-script (Files): Update.
29129 (configure.ac): Add AC_CONFIG_FILES invocation.
29130 (EXTRA_DIST): Remove variable.
29132 * build-aux/csharpexec.sh.in: New file, moved from lib/.
29133 * modules/csharpexec (Files): Update.
29134 (configure.ac): Add AC_CONFIG_FILES invocation.
29135 (EXTRA_DIST): Remove csharpexec.sh.in.
29137 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
29139 Sync from coreutils.
29141 Add POSIX ACL support
29142 * lib/acl.h (copy_acl, set_acl): Add declarations.
29143 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
29144 systems other than Linux.
29145 (chmod_or_fchmod): New function: use fchmod when possible,
29146 and chmod otherwise.
29147 (file_has_acl): Add a POSIX ACL implementation, with a
29148 Linux-specific subcase.
29149 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
29150 S_ISVTX from one file to another. Fall back to fchmod/chmod when
29151 acls are unsupported.
29152 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
29153 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
29156 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
29158 Sync from coreutils.
29159 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
29161 2006-01-07 Bruno Haible <bruno@clisp.org>
29163 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
29166 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
29168 * lib/strftime.c (tzname): Don't declare if it is already #defined.
29169 Problem reported for Mingw by Mark Junker.
29171 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
29173 * README: Gnulib normally doesn't generate a tarball.
29175 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
29177 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
29178 long int, not int, for nanosecond counts, so that people who are
29179 used to POSIX struct timespec won't be surprised. Reported by Jim
29182 2005-12-28 Bruno Haible <bruno@clisp.org>
29184 * build-aux/config.rpath: Update from GNU gettext.
29186 2005-12-16 Jim Meyering <jim@meyering.net>
29188 * modules/fprintftime: New module.
29189 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
29191 2005-12-16 Jim Meyering <jim@meyering.net>
29193 * m4/fprintftime.m4: New file.
29195 2005-12-16 Jim Meyering <jim@meyering.net>
29197 * lib/fprintftime.c, lib/fprintftime.h: New files.
29199 2005-12-15 Simon Josefsson <jas@extundo.com>
29201 * modules/socklen (configure.ac): Fix M4 macro name, to align with
29204 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
29206 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
29207 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
29209 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
29211 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
29212 * lib/argp-help.c (fill_in_uparams): Check if the constructed
29213 struct uparams is valid. Fall back to the default values if it is
29216 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
29218 * modules/argp (Files): Add argp-pin.c
29219 (Depends-on): dirname
29220 (lib_SOURCES): Add argp-pin.c
29222 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
29224 * m4/argp.m4: Check if program_invocation_name and
29225 program_invocation_short_name are declared and define appropriate
29226 macros if they are not.
29228 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
29230 * lib/argp-help.c (__argp_base_name): New function
29231 (__argp_short_program_name): Rewrite using __argp_base_name
29232 * lib/argp-namefrob.h: Define program_invocation_name and
29233 program_invocation_short_name if requested
29234 (__argp_base_name): Add prototype
29235 * lib/argp-parse.c (argp_def): Use gettext wrappers
29236 (argp_default_parser): Use __argp_base_name
29237 * lib/argp-pin.c: New file. Defines program_invocation_name and
29238 program_invocation_short_name on systems that lack them.
29240 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
29242 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
29243 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
29244 porting problem reported by Georg Schwarz in
29245 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
29247 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
29249 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
29250 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
29251 porting problem reported by Georg Schwarz in
29252 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
29254 2005-12-05 Bruno Haible <bruno@clisp.org>
29256 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
29257 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
29258 Reported by Mark Junker <mjscod@gmx.de>.
29260 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
29262 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
29263 Use implementation from Albert Chin, with some
29264 comments/corrections by Stepan Kasal and myself.
29266 2005-12-02 Bruno Haible <bruno@clisp.org>
29268 * gnulib-tool (func_import): Accept GPLed build tool modules when
29270 * modules/csharpcomp-script: New file.
29271 * modules/csharpcomp: Depend on it.
29272 * modules/javacomp-script: New file.
29273 * modules/javacomp: Depend on it.
29274 Suggested by Simon Josefsson.
29276 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
29278 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
29279 statement, to work around an HP-UX 10.20 compiler bug reported by
29282 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
29284 * modules/savedir (Depends-on): Add openat.
29286 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
29288 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
29289 (uintmax_t) [defined uintmax_t]: Do not declare.
29290 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
29291 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
29292 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
29293 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
29294 sake of portability to weird hosts that C allows (though we don't
29295 know of any practical examples).
29297 * lib/savedir.h (fdsavedir): New decl.
29298 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
29299 contains most of the former guts of savedir.
29300 (savedir): Use savedirstream.
29301 Include "openat.h".
29303 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
29305 * modules/obstack (Files): Add m4/ulonglong.m4.
29306 Problem reported by Davide Angelocola.
29308 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
29310 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
29311 coreutils no longer futzes with rounding modes.
29313 2005-11-14 Jim Meyering <jim@meyering.net>
29315 * lib/mkstemp-safer.c: Include <config.h>, required for possible
29316 replacement of mkstemp.
29318 2005-11-10 Simon Josefsson <jas@extundo.com>
29320 * lib/readline.c: Remove EOL.
29322 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
29324 * modules/gethrxtime (Depends-on): Add gettime.
29326 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
29328 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
29329 or gettimeofday; no longer needed.
29331 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
29333 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
29335 (gethrxtime) [! (HAVE_NANOUPTIME
29336 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
29337 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
29338 our own approximation.
29340 2005-11-08 Eric Blake <ebb9@byu.net>
29342 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
29344 2005-11-08 Eric Blake <ebb9@byu.net>
29346 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
29348 2005-11-04 Bruno Haible <bruno@clisp.org>
29350 * gnulib-tool: Implement --update mode.
29352 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
29354 Fix porting problem reported by Theodoros V. Kalamatianos.
29355 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
29356 Don't assume that futimes failing means we must fail.
29358 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
29360 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
29361 variables to suggest the intended function of the PATH_MAX check.
29363 2005-10-30 Kean Johnston <jkj@sco.com>
29365 Trivial changes to support SCO systems.
29366 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
29368 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
29369 where __ptr is null when no I/O is pending.
29371 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
29373 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
29374 leave errno alone. Problem reported by Dmitry V. Levin.
29376 2005-10-28 Simon Josefsson <jas@extundo.com>
29378 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
29381 * tests/test-gc-md2.c, tests/test-md2.c: New files.
29383 * modules/md2, modules/md2-tests: New files.
29385 2005-10-28 Simon Josefsson <jas@extundo.com>
29387 * m4/inet_ntop.m4: More tests.
29389 * m4/gc-md2.m4, md2.m4: New file.
29391 2005-10-28 Simon Josefsson <jas@extundo.com>
29393 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
29394 "restrict" keywords, as per POSIX. Protect the function
29395 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
29396 Don't use K&R prototypes. Check the sprintf return values.
29397 Re-define EAFNOSUPPORT if not present. Indent.
29399 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
29400 suggested by Bruno Haible <bruno@clisp.org>.
29402 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
29404 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
29406 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
29409 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
29411 * lib/md2.h, lib/md2.c: New files.
29413 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
29415 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
29416 errno alone. Problem reported by Frederic Jolliton.
29418 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
29420 * modules/verify (License): Change from GPL to LGPL. This is a
29421 tiny module and there are apparently near-equivalents that are
29422 under the BSD license.
29424 2005-10-24 Simon Josefsson <jas@extundo.com>
29426 * modules/sha1: Relicense to LGPL.
29428 2005-10-24 Simon Josefsson <jas@extundo.com>
29430 * lib/md4.h: Shrink buffer size, now that we changed the type.
29432 2005-10-23 Simon Josefsson <jas@extundo.com>
29434 * gnulib-tool (func_import): Fix --tests-base.
29436 2005-10-22 Simon Josefsson <jas@extundo.com>
29438 * modules/arcfour (Depends-on): Need stdint.
29440 2005-10-22 Simon Josefsson <jas@extundo.com>
29442 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
29443 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
29445 2005-10-22 Simon Josefsson <jas@extundo.com>
29447 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
29448 suggested by Bruno Haible <bruno@clisp.org>.
29450 2005-10-22 Simon Josefsson <jas@extundo.com>
29452 * lib/crc.h: Include stddef.h, for size_t.
29454 2005-10-22 Simon Josefsson <jas@extundo.com>
29456 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
29457 arcfour_context struct (simplify test vector testing in GNU
29460 2005-10-21 Simon Josefsson <jas@extundo.com>
29462 * modules/des, modules/des-tests: New files.
29464 * modules/gc-des, modules/gc-des-tests: New files.
29466 * tests/test-des.c, tests/test-gc-des.c: New file.
29468 2005-10-21 Simon Josefsson <jas@extundo.com>
29470 * modules/arctwo, modules/arctwo-tests: New files.
29472 * tests/test-arctwo.c: New file.
29474 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
29476 * tests/test-gc-arctwo.c: New file.
29478 2005-10-21 Simon Josefsson <jas@extundo.com>
29480 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
29481 Bruno Haible <bruno@clisp.org>.
29483 * m4/gc-des.m4: New file.
29485 2005-10-21 Simon Josefsson <jas@extundo.com>
29487 * m4/arctwo.m4: New file.
29489 * m4/gc-arctwo.m4: New file.
29491 2005-10-21 Simon Josefsson <jas@extundo.com>
29493 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
29496 2005-10-21 Simon Josefsson <jas@extundo.com>
29498 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
29501 * lib/hmac-sha1.c (hmac_sha1): Likewise.
29503 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
29504 Bruno Haible <bruno@clisp.org>.
29506 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
29509 2005-10-21 Simon Josefsson <jas@extundo.com>
29511 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
29513 2005-10-21 Simon Josefsson <jas@extundo.com>
29515 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
29517 2005-10-21 Simon Josefsson <jas@extundo.com>
29519 * lib/des.h, lib/des.c: New files.
29521 * lib/gc-gnulib.c: Support DES.c
29523 2005-10-21 Simon Josefsson <jas@extundo.com>
29525 * lib/arctwo.h, lib/arctwo.c: New files.
29527 * lib/gc-gnulib.c: Support ARCTWO.
29529 2005-10-21 Simon Josefsson <jas@extundo.com>
29531 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
29532 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29534 2005-10-21 Simon Josefsson <jas@extundo.com>
29536 * gnulib-tool (func_import, func_create_testdir): Define automake
29537 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
29538 Makefile.am snippet),
29539 suggested by Bruno Haible <bruno@clisp.org>.
29541 * modules/gc (Makefile.am): Use it.
29543 2005-10-21 Bruno Haible <bruno@clisp.org>
29545 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
29548 2005-10-19 Simon Josefsson <jas@extundo.com>
29550 * tests/test-gc-rijndael.c: New file.
29552 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
29554 2005-10-19 Simon Josefsson <jas@extundo.com>
29556 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
29559 2005-10-19 Simon Josefsson <jas@extundo.com>
29561 * tests/test-gc-arcfour.c: New file.
29563 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
29565 2005-10-19 Simon Josefsson <jas@extundo.com>
29567 * modules/gc-md4, modules/gc-md4-tests: New file.
29569 * tests/test-gc-md4.c: New file.
29571 2005-10-19 Simon Josefsson <jas@extundo.com>
29573 * m4/gc-md4.m4: New file.
29575 2005-10-19 Simon Josefsson <jas@extundo.com>
29577 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
29578 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
29581 2005-10-19 Simon Josefsson <jas@extundo.com>
29583 * m4/gc-arcfour.m4: New file.
29585 * m4/gc-rijndael.m4: New file.
29587 2005-10-19 Simon Josefsson <jas@extundo.com>
29589 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
29591 2005-10-19 Simon Josefsson <jas@extundo.com>
29593 * lib/gc-gnulib.c: Support ARCFOUR.
29595 2005-10-19 Simon Josefsson <jas@extundo.com>
29597 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
29600 * lib/gc.h: Add ECB enum type.
29602 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
29604 2005-10-18 Simon Josefsson <jas@extundo.com>
29606 * tests/test-md5.c: New file.
29608 * modules/md5-tests: New file.
29610 2005-10-18 Simon Josefsson <jas@extundo.com>
29612 * tests/test-md4.c: New file.
29614 * modules/md4, modules/md4-tests: New files.
29616 2005-10-18 Simon Josefsson <jas@extundo.com>
29618 * m4/md4.m4: New file.
29620 2005-10-18 Simon Josefsson <jas@extundo.com>
29622 * lib/md4.h, lib/md4.c: New files, based on md5.?.
29624 2005-10-17 Stepan Kasal <kasal@ucw.cz>
29626 * gnulib-tool (func_create_testdir): Omit the second check whether
29627 BUILT_SOURCES in nonempty.
29629 2005-10-17 Simon Josefsson <jas@extundo.com>
29631 * tests/test-rijndael.c: New file.
29633 2005-10-17 Simon Josefsson <jas@extundo.com>
29635 * modules/sha1: Depend on stdint instead of md5.
29637 * modules/md5: Depend on stdint, remove uint32_t.
29639 2005-10-17 Simon Josefsson <jas@extundo.com>
29641 * modules/gc-sha1-tests: New file.
29643 * tests/test-gc-sha1.c: New file.
29645 2005-10-17 Simon Josefsson <jas@extundo.com>
29647 * m4/md5.m4: Remove call to uint32_t.m4.
29649 2005-10-17 Simon Josefsson <jas@extundo.com>
29651 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
29653 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
29656 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
29658 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
29660 2005-10-17 Simon Josefsson <jas@extundo.com>
29662 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
29664 2005-10-17 Simon Josefsson <jas@extundo.com>
29666 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
29668 2005-10-17 Simon Josefsson <jas@extundo.com>
29670 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
29672 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
29674 2005-10-17 Bruno Haible <bruno@clisp.org>
29676 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
29677 that it can also be used in a test.
29679 2005-10-16 Bruno Haible <bruno@clisp.org>
29681 * gnulib-tool (func_emit_tests_Makefile_am): Also define
29682 TESTS_ENVIRONMENT, so that individual tests can augment it.
29684 * gnulib-tool (func_create_testdir): Use an intermediate target for
29685 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
29686 macros, like $(ALLOCA_H), which cannot be passed through the command
29689 2005-10-15 Simon Josefsson <jas@extundo.com>
29691 * modules/rijndael-tests: New file.
29693 * modules/rijndael: New file.
29695 2005-10-15 Simon Josefsson <jas@extundo.com>
29697 * m4/rijndael.m4: New file.
29699 2005-10-15 Simon Josefsson <jas@extundo.com>
29701 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
29703 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
29705 2005-10-14 Simon Josefsson <jas@extundo.com>
29707 * tests/test-arcfour.c: New file.
29709 * modules/arcfour, modules/arcfour-tests: New files.
29711 2005-10-14 Simon Josefsson <jas@extundo.com>
29713 * m4/arcfour.m4: New file.
29715 2005-10-14 Simon Josefsson <jas@extundo.com>
29717 * lib/arcfour.h, lib/arcfour.c: New files.
29719 2005-10-14 Roland McGrath <roland@redhat.com>
29721 Import from libc. [BZ #1331]
29722 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
29724 Reported by Matej Vela <vela@debian.org>.
29726 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
29728 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
29729 include <wchar.h>; no longer needed.
29731 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
29733 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
29735 2005-10-14 Jakub Jelinek <jakub@redhat.com>
29736 and Ulrich Drepper <drepper@redhat.com>
29739 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
29740 instead of inline stream orientation test and two separate
29741 function calls. Pay no attention to USE_IN_LIBIO.
29743 2005-10-13 Simon Josefsson <jas@extundo.com>
29745 * modules/gc-hmac-md5-tests: New file.
29747 * tests/test-gc-hmac-sha1.c: New file.
29749 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
29751 * modules/gc-hmac-md5-tests: New file.
29753 * tests/test-gc-md5.c: New file.
29755 * modules/gc-md5-tests: New file.
29757 2005-10-13 Simon Josefsson <jas@extundo.com>
29759 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
29760 Move memory allocation outside of loop.
29762 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
29764 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
29765 intermediate directory is in a read-only file system. Problem
29766 reported by Eric Blake.
29768 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
29770 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
29772 2005-10-12 Simon Josefsson <jas@extundo.com>
29774 * tests/test-hmac-sha1.c: New file.
29776 * modules/hmac-sha1-tests: New file.
29778 * modules/hmac-sha1: New file.
29780 2005-10-12 Simon Josefsson <jas@extundo.com>
29782 * modules/gc-sha1: New file.
29784 2005-10-12 Simon Josefsson <jas@extundo.com>
29786 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
29788 * tests/test-gc-pbkdf2-sha1.c: New file.
29790 2005-10-12 Simon Josefsson <jas@extundo.com>
29792 * modules/gc-md5, modules/gc-hmac-md5: New files.
29794 * modules/gc (Files): Remove md5, memxor and hmac files.
29796 2005-10-12 Simon Josefsson <jas@extundo.com>
29798 * m4/gc-pbkdf2-sha1.m4: New file.
29800 * m4/gc-hmac-sha1.m4: New file.
29802 * m4/gc-sha1: New file.
29804 * m4/hmac-sha1.m4: New file.
29806 2005-10-12 Simon Josefsson <jas@extundo.com>
29808 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
29810 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
29812 2005-10-12 Simon Josefsson <jas@extundo.com>
29814 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
29815 suggested by Bruno Haible <bruno@clisp.org>.
29817 2005-10-12 Simon Josefsson <jas@extundo.com>
29819 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
29821 2005-10-12 Simon Josefsson <jas@extundo.com>
29823 * lib/gc-pbkdf2-sha1.c: New file.
29825 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
29827 2005-10-12 Simon Josefsson <jas@extundo.com>
29829 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
29831 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
29833 2005-10-12 Simon Josefsson <jas@extundo.com>
29835 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
29836 GC_USE_HMAC_MD5, respectively.
29838 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
29839 (gc_md5): Fix typo.
29841 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
29843 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
29845 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
29847 2005-10-12 Bruno Haible <bruno@clisp.org>
29849 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
29850 Reported by Stepan Kasal <kasal@ucw.cz>.
29852 2005-10-11 Simon Josefsson <jas@extundo.com>
29854 * tests/test-crc.c: New file.
29856 * modules/crc, modules/crc-tests: New files.
29858 2005-10-11 Simon Josefsson <jas@extundo.com>
29860 * m4/crc.m4: New file.
29862 2005-10-11 Simon Josefsson <jas@extundo.com>
29864 * lib/gc.h: Add gc_hash and gc_hash_buffer.
29866 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
29868 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
29870 2005-10-11 Simon Josefsson <jas@extundo.com>
29872 * lib/crc.h, lib/crc.c: New files.
29874 * lib/gc.h (gc_hash_buffer): Add doc.
29876 2005-10-11 Bruno Haible <bruno@clisp.org>
29878 * modules/c-strcasestr: New file.
29879 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
29881 2005-10-11 Bruno Haible <bruno@clisp.org>
29883 * modules/c-strcase: New file.
29884 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
29886 2005-10-11 Bruno Haible <bruno@clisp.org>
29888 * lib/strcasecmp.c: Include limits.h.
29889 (strcasecmp): Avoid integer overflow on exotic platforms.
29890 * lib/strncasecmp.c: Include limits.h.
29891 (strncasecmp): Avoid integer overflow on exotic platforms.
29892 Reported by Paul Eggert.
29894 2005-10-11 Bruno Haible <bruno@clisp.org>
29896 * lib/c-strcasestr.h: New file, from GNU gettext.
29897 * lib/c-strcasestr.c: New file, from GNU gettext.
29899 2005-10-11 Bruno Haible <bruno@clisp.org>
29901 * lib/c-strcase.h: New file, from GNU gettext.
29902 * lib/c-strcasecmp.c: New file, from GNU gettext.
29903 * lib/c-strncasecmp.c: New file, from GNU gettext.
29905 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
29907 * modules/mempcpy (License): GPL -> LGPL.
29908 * modules/strchrnul (License): Likewise.
29909 * modules/sysexits (License): Likewise.
29911 2005-10-08 Simon Josefsson <jas@extundo.com>
29913 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
29915 2005-10-07 Simon Josefsson <jas@extundo.com>
29917 * m4/memxor.m4: Remove gl_C_RESTRICT call.
29919 2005-10-06 Simon Josefsson <jas@extundo.com>
29921 * tests/test-hmac-md5.c: New file.
29923 * modules/hmac-md5-tests: New file.
29925 * modules/hmac-md5: New file.
29927 2005-10-06 Simon Josefsson <jas@extundo.com>
29929 * m4/hmac-md5.m4: New file.
29931 * m4/memxor.m4: Require gl_C_RESTRICT.
29933 2005-10-06 Simon Josefsson <jas@extundo.com>
29935 * lib/memxor.c (memxor): Avoid casts and warnings.
29937 2005-10-06 Simon Josefsson <jas@extundo.com>
29939 * lib/hmac-md5.c: New file.
29941 * lib/hmac.h: New file.
29943 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
29945 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
29946 promotes to int, not unsigned int, to catch the AIX 5.3
29949 2005-10-05 Simon Josefsson <jas@extundo.com>
29951 * modules/memxor: New file.
29953 * modules/iconv (Files): Move config.rpath to havelib, it is used
29956 * modules/havelib (Files): Add config.rpath.
29958 2005-10-05 Simon Josefsson <jas@extundo.com>
29960 * m4/memxor.m4: New file.
29962 2005-10-05 Simon Josefsson <jas@extundo.com>
29964 * lib/memxor.c (memxor): Fix compiler error.
29966 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
29967 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
29969 * lib/memxor.h, lib/memxor.c: New files.
29971 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
29972 we assume all systems have it, suggested by Jim Meyering
29973 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
29974 any systems lack sys/socket.h; mingw32 is known to lack it, but we
29975 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
29978 2005-10-05 Simon Josefsson <jas@extundo.com>
29980 * config/srclist.txt: Add glibc bug 1423 for md5.h.
29982 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
29984 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
29985 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
29986 needed, since the source code now assumes these .h files.
29988 2005-10-05 Derek Price <derek@ximbiot.com>
29990 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
29992 2005-10-05 Bruno Haible <bruno@clisp.org>
29994 * modules/stdint (License): Change to LGPL.
29996 2005-10-04 Simon Josefsson <jas@extundo.com>
29998 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
29999 D. Baushke" <mdb@gnu.org>.
30001 2005-10-04 Bruno Haible <bruno@clisp.org>
30003 * lib/verify.h (verify_true): Provide alternative definition for C++.
30005 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
30007 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
30008 (SSIZE_MAX): New macro, if not already defined.
30009 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
30012 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
30014 Sync from coreutils.
30015 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
30016 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
30017 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
30018 ULLONG_MAX doesn't work with 2.7.2.1.
30020 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
30022 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
30025 * modules/exclude (Depends-on): Depend on verify.
30026 * modules/strtoimax (Depends-on): Likewise.
30027 * modules/utimecmp (Depends-on): Likewise.
30029 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
30031 * lib/exclude.c: Include verify.h.
30032 (verify): Remove. All callers changed to use verify.h's version.
30033 * lib/strtoimax.c: Likewise.
30034 * lib/utimecmp.c: Likewis.e
30036 Sync from coreutils.
30037 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
30038 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
30039 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
30040 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
30041 bother returning ENOSYS if settimeofday or stime fails; just let
30042 them return whatever errno they want to return.
30043 * lib/utimens.c: Include unistd.h, for dup2.
30044 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
30045 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
30047 2005-10-02 Jim Meyering <jim@meyering.net>
30049 Sync from coreutils.
30050 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
30051 from glibc-2.2.5 that fails for read-only files.
30053 2005-10-02 Jim Meyering <jim@meyering.net>
30055 Sync from coreutils.
30056 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
30057 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
30058 `#if HAVE_CONFIG_H'.
30059 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
30060 Remove AT_FDCWD test.
30061 Do not consume the fd unless successful.
30062 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
30063 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
30064 block, so that we don't even try to compile it if settimeofday is
30065 available. This works around a compilation failure on OSF1 V5.1,
30066 due to stime requiring a `long int*' while tv_sec is `int'.
30068 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
30070 Sync from coreutils.
30071 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
30072 against `yes', rather than just testing for nonempty.
30074 2005-10-01 Simon Josefsson <jas@extundo.com>
30076 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
30079 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
30080 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
30081 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
30082 freeaddrinfo and gai_strerror are declared by the POSIX headers.
30083 Check if struct addrinfo is declared.
30085 2005-10-01 Simon Josefsson <jas@extundo.com>
30087 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
30088 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
30089 AI_* and EAI_* definitions. Protect function declarations.
30091 2005-10-01 Jim Meyering <jim@meyering.net>
30093 Sync from coreutils.
30095 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
30096 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
30097 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
30098 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
30099 in the inet and nsl libraries. Required on Solaris 5.7.
30101 2005-10-01 Jim Meyering <jim@meyering.net>
30103 Sync from coreutils.
30104 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
30105 in the inet and nsl libraries. Required on Solaris 5.7.
30107 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
30109 * lib/getdelim.c (getdelim): Remove unused variables.
30111 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
30113 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
30114 so that the code works even with ancient cpp. Portability problem
30115 with GCC 2.7.2.1 reported by Thomas M.Ott.
30117 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
30119 * modules/regex (Depends-on): Add strcase.
30121 * modules/gethostname (Licence): Change from GPL to LGPL, since
30122 gethostname.c is a trivial implementation of a standard library
30124 * modules/poll (License): Change from GPL to LGPL, since it's
30125 derived from LGPL code.
30127 2005-09-27 Jim Meyering <jim@meyering.net>
30129 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
30132 * lib/intprops.h (signed_type_or_expr__): Define.
30133 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
30134 for unsigned types.
30136 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
30138 * lib/verify.h (verify_expr): Remove, replacing with:
30139 (verify_true): New macro that returns true instead of void.
30140 (verify_type__): Remove.
30141 (verify): Use verify_true rather than verify_type__.
30143 2005-09-26 Bruno Haible <bruno@clisp.org>
30145 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
30147 (lib_SOURCES): Remove mbchar.c.
30148 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
30149 (Files): Add m4/mbrtowc.m4.
30150 * modules/mbiter: Likewise.
30151 * modules/mbuiter: Likewise.
30153 2005-09-26 Bruno Haible <bruno@clisp.org>
30155 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
30156 compile mbchar.c if they are not both present.
30157 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
30158 * m4/mbiter.m4 (gl_MBITER): Likewise.
30159 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
30160 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
30161 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
30163 2005-09-25 Jim Meyering <jim@meyering.net>
30165 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
30166 also uses socklen_t.
30168 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
30170 * lib/utimens.c (ENOSYS): Define if not already defined.
30171 (futimens): Support having a null PATH if the file descriptor
30174 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
30176 (__attribute): Define to empty unless GCC 3.1 or later.
30177 This works around a core dump on OpenBSD 3.4, which has GCC
30178 2.95.3, which dumps core when given __attribute__(()). It also
30179 simplifies other tests, since we really don't want to bother with
30180 worrying about which ancient version of GCC supported what.
30181 Original problem reported by Yoann Vandoorselaere, with part of
30182 the fix suggested by Derek Price.
30184 2005-09-24 Jim Meyering <jim@meyering.net>
30186 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
30187 so we can once again use a positive bitfield width of 1 -- now we
30188 don't have to explain why we were using a bitfield width of 2.
30190 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
30192 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
30193 and similarly for the other external symbols. Problem reported
30196 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
30197 bug reported by Jim Meyering.
30199 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
30200 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
30201 not needed, since socklen is a prerequisite module.
30203 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
30205 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
30206 Problem reported by Eric Blake.
30207 (getaddrinfo): Initialize se so that it's not garbage.
30208 Redo internal storage allocation so that it doesn't make unportable
30209 assumptions about alignment.
30212 * lib/utimens.c (futimens): Use futimesat if available.
30213 Prefer it to futimes since it doesn't have the futimes bug.
30215 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
30216 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
30217 Instead, declare a function that returns a pointer to an array,
30218 and use verify_type__ to declare the size of the array.
30219 Problem and germ of a solution reported by Bruno Haible.
30220 (verify_type__): Use 2, not 1, for bitfield size, to avoid
30221 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
30223 2005-09-23 Jim Meyering <jim@meyering.net>
30225 Sync from coreutils.
30226 Correct build failure (socklen_t not defined) on at least
30227 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
30228 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
30230 2005-09-23 Jim Meyering <jim@meyering.net>
30232 * modules/getaddrinfo (Depends-on): Add socklen.
30234 2005-09-23 Bruno Haible <bruno@clisp.org>
30236 * tests/test-verify.c: New file.
30238 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
30240 Sync from coreutils.
30242 * modules/argmatch (Depends-on): Add verify.
30243 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
30245 * modules/save-cwd (Depends-on): Likewise.
30247 * modules/openat (Files): Add lib/openat-die.c.
30248 (Depends-on): Remove error, exitfail.
30251 * modules/verify: New file.
30252 * MODULES.html.sh (Diagnostics <assert.h>): New section,
30253 with "verify" module.
30255 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
30257 Sync from coreutils.
30259 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
30260 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
30261 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
30262 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
30263 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
30264 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
30265 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
30266 Don't bother checking for string.h, stdlib.h, unistd.h.
30267 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
30268 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
30270 * m4/jm-macros.m4 (gl_MACROS): Likewise.
30271 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
30273 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
30274 (gl_GETDATE): Use it.
30276 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
30278 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
30280 Sync from coreutils.
30282 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
30284 * lib/argmatch.h: Include verify.h
30285 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
30286 (ARGMATCH_ASSERT): Remove; unused.
30287 * lib/canonicalize.c: Assume STDC_HEADERS.
30288 * lib/exclude.c: Include "strcase.h".
30289 * lib/regex_internal.h [!defined _LIBC]: Likewise.
30290 * lib/getusershell.c: Include stdio--.h rather than stdio.h
30292 (getusershell): Call fopen, not fopen_safer.
30293 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
30294 Do not include unistd-safer.h.
30295 (save_cwd): Don't call fd_safer; no longer needed
30296 now that we include fcntl--.h.
30298 * lib/getdate.y (relative_time): New type.
30299 (RELATIVE_TIME_0): New constant.
30300 (parser_control): Use relative_time instead of doing it ourselves.
30301 (%union): Add new relative_time rel member.
30302 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
30304 (relunit, relunit_snumber): Now of type rel.
30305 (zone, rel, relunit, get_date): Adjust to above changes.
30307 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
30308 Do not include unistd-safer.h.
30309 (getloadavg): Don't call fd_safer; no longer needed
30310 now that we include fcntl--.h.
30312 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
30313 (make_dir_parents): Treat ENOSYS like EEXIST.
30315 Improve quality of diagnostics on restore_cwd failure.
30316 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
30317 (make_dir_parents): Last arg is now int * (for errno), not bool *.
30318 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
30319 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
30320 each time through the loop. Do not diagnose restore_cwd failure;
30321 that is the caller's job (and perhaps the caller does not care).
30323 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
30324 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
30325 If the file already exists but is not a directory, don't bother
30326 to try to make its parents.
30327 Close potential file descriptor leak if we can't chdir("/") (!).
30328 Don't always return true if chdir($PWD) fails; return true only
30329 if the requested action was done successfully (except for the
30331 Don't log final directory unless we actually made it.
30332 Refactor to avoid duplicate code to fix up permissions.
30333 Don't attempt to fix up parent permissions if chdir($PWD) fails.
30335 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
30336 to make it a bit faster and (I hope) clearer.
30337 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
30338 Fix bug in formats like %2N.
30340 * lib/verify.h: New file.
30342 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
30344 Sync from coreutils.
30345 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
30347 2005-09-22 Jim Meyering <jim@meyering.net>
30349 Sync from coreutils.
30351 * m4/lstat.m4 (gl_FUNC_LSTAT):
30352 Use AC_LIBSOURCES to require lstat.c and lstat.h.
30353 Remove obsolete comment.
30354 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
30355 * m4/xstrtod.m4: Likewise.
30357 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
30359 2005-09-22 Jim Meyering <jim@meyering.net>
30361 Sync from coreutils.
30363 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
30365 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
30366 the .tm_year member, since otherwise gcc-4.0 would now warn about
30367 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
30369 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
30370 order to avoid an unsuppressible warning from gcc on 64-bit systems.
30372 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
30373 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
30374 when run in a time zone for which daylight savings time is in effect
30375 for the starting date.
30377 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
30378 stop us from restricting permissions of just-created absolute-named
30380 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
30381 to restore initial working directory.
30382 * lib/mkdir-p.c (make_dir_parents): New parameter:
30383 different_working_dir, to tell caller if/when we change the working
30384 directory and are unable to return to the initial one.
30385 * lib/mkdir-p.h (make_dir_parents): Update prototype.
30386 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
30387 `return false'. This fixes a bug introduced on 2004-07-30.
30389 * lib/openat.c (fdopendir): Be sure to close the supplied
30390 file descriptor before returning. This makes our replacement
30391 implementation a little closer to Solaris's, where fdopendir
30392 ties the file descriptor to the returned DIR* pointer.
30393 * lib/openat.c (unlinkat): New function.
30394 * lib/openat.h (unlinkat): Add prototype.
30395 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
30396 (openat_restore_fail): Rename from openat_restore_die.
30397 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
30399 Provide an alternative to exiting immediately upon save_cwd or
30400 restore_cwd failure. Now, an application can arrange e.g.,
30401 to perform a longjump in that case.
30402 * lib/openat.c: Include dirname.h.
30403 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
30404 (rpl_openat, fdopendir, fstatat): Call openat_save_die
30405 and openat_restore_die rather than calling error directly.
30406 Don't include "error.h" or "exitfail.h"; they're no longer needed.
30408 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
30409 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
30412 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
30413 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
30414 int utc, int nanoseconds);
30416 date should not have to allocate a megabyte of virtual memory to
30417 handle a format argument like +%1048575T. When implemented with
30418 strftime, it must allocate such a buffer, use strftime to fill it
30419 in, print it, then free it.
30420 With fprintftime, it simply prints everything and exits.
30421 With no need for memory allocation, that's one fewer way to fail.
30422 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
30423 optional field width, not before, so we accept %9:z, not %:9z.
30424 (my_strftime): Be sure to use L_('x') for literals.
30426 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
30427 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
30428 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
30429 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
30430 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
30431 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
30432 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
30433 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
30434 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
30435 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
30436 * lib/xgethostname.c, lib/xreadlink.c:
30437 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
30439 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
30440 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
30441 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
30442 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
30443 and don't include <sys/file.h>).
30445 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
30447 Sync from coreutils.
30449 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
30450 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
30451 [!LDAV_DONE]: Avoid unused variable warning.
30453 2005-09-21 Bruno Haible <bruno@clisp.org>
30455 * lib/unicodeio.h (unicode_to_mb): New declaration.
30457 2005-09-20 Derek Price <derek@ximbiot.com>
30459 * lib/getaddrinfo.c: Don't include <netdb.h> included from
30462 2005-09-20 Bruno Haible <bruno@clisp.org>
30464 * gnulib-tool: Remove trailing slashes from the values specified for
30465 --source-base, --m4-base, --tests-base, --aux-dir.
30466 Suggested by Simon Josefsson <jas@extundo.com>.
30468 2005-09-20 Bruno Haible <bruno@clisp.org>
30470 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
30471 func_modules_to_filelist, func_import, func_create_testdir): Make all
30472 sorting results locale-independent, so that gnulib-cache.m4 doesn't
30473 change when gnulib-tool is invoked in a different locale.
30475 2005-09-19 Simon Josefsson <jas@extundo.com>
30477 * m4/socklen.m4: Fix typo.
30479 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30481 Use a consistent style for including <config.h>.
30482 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
30483 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
30484 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
30485 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
30486 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
30487 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
30488 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
30489 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
30490 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
30491 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
30492 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
30493 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
30494 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
30495 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
30496 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
30497 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
30498 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
30499 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
30500 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
30501 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
30502 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
30503 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
30504 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
30505 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
30506 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
30507 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
30508 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
30509 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
30510 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
30511 lib/xstrtoumax.c, lib/yesno.c:
30512 Standardize inclusion of config.h.
30513 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
30514 lib/inttostr.h: Removed inclusion of config.h from header files.
30515 * lib/inttostr.c: Adjusted in-tree users.
30516 * lib/timespec.h: Remove superfluous warning to include config.h.
30517 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
30518 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
30519 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
30520 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
30521 config.h with HAVE_CONFIG_H.
30523 2005-09-19 Jim Meyering <jim@meyering.net>
30525 * modules/pathmax (License): Change to LGPL.
30527 2005-09-19 Derek Price <derek@ximbiot.com>
30529 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
30531 2005-09-19 Bruno Haible <bruno@clisp.org>
30533 * gnulib-tool (import): Provide default for --tests-base.
30535 2005-09-19 Bruno Haible <bruno@clisp.org>
30537 * doc/quote.texi: New file, extracted from gnulib.texi.
30538 * doc/ctime.texi: New file, extracted from gnulib.texi.
30539 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
30540 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
30541 * doc/gnulib.texi: Include them.
30543 2005-09-18 Bruno Haible <bruno@clisp.org>
30546 * gnulib-tool (func_readlink): New function.
30547 (func_ln_if_changed): Use it.
30549 2005-09-18 Bruno Haible <bruno@clisp.org>
30551 * gnulib-tool: Support --with-tests also with --import.
30552 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
30553 (func_import): Use variables $testsbase and $inctests. Emit a
30554 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
30555 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
30556 SUBDIRS += $testsdir.
30557 (func_create_testdir): Update.
30559 2005-09-18 Bruno Haible <bruno@clisp.org>
30561 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
30562 instead of $dry_run.
30563 (func_cp_if_changed, func_mv_if_changed): Remove functions.
30564 (func_ln_if_changed): Don't handle dry-run here.
30565 (func_import): In dry-run mode, detect more precisely which actions
30566 would be performed, and don't use "...ing" verbs.
30568 2005-09-18 Bruno Haible <bruno@clisp.org>
30570 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
30571 (func_import): Use join on two temporary files instead of three nested
30572 loops, in order to determine which files are new or old.
30574 2005-09-18 Bruno Haible <bruno@clisp.org>
30576 * gnulib-tool (func_import): Comment out code that spits out the
30577 new files with --dry-run.
30579 2005-09-18 Bruno Haible <bruno@clisp.org>
30581 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
30583 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
30585 * lib/stat-time.h: New file.
30586 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
30587 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
30588 in a different way.
30589 (timespec_cmp): New function.
30590 * lib/utimecmp.c: Include stat-time.h.
30591 (SYSCALL_RESOLUTION): Depend on whether various struct stat
30592 members exist, not on the obsolescent ST_MTIM_NSEC.
30593 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
30595 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
30597 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
30599 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
30601 * MODULES.html.sh (File system functions): Add stat-time.
30602 * modules/stat-time: New file.
30603 * modules/timespec (Files): Remove m4/st_mtim.m4; this
30604 is now done in a different way, by the stat-time module.
30605 * modules/utimecmp (Depends-on): Add stat-time.
30607 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
30609 * m4/st_mtim.m4: Remove. Superseded by...
30610 * m4/stat-time.m4: New file.
30611 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
30612 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
30614 2005-09-15 Derek Price <derek@ximbiot.com>
30616 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
30618 2005-09-15 Derek Price <derek@ximbiot.com>
30620 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
30621 * lib/regex_internal.c: Ditto, using this...
30622 (__GNUC_PREREQ): ...new macro.
30623 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
30625 (__GNUC_PREREQ): ...this new macro.
30627 * lib/strstr.h: Include string.h. Define strstr as a macro here.
30629 2005-09-15 Derek Price <derek@ximbiot.com>
30630 Paul Eggert <eggert@cs.ucla.edu>
30632 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
30633 changes, consolidating in...
30634 * lib/regex_internal.h: ...this file.
30636 2005-09-13 Jim Meyering <jim@meyering.net>
30638 * lib/canon-host.c: Filter through gnu indent and reword comments
30640 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
30642 2005-09-13 Derek Price <derek@ximbiot.com>
30644 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
30646 Reported by Jim Meyering <jim@meyering.net>.
30648 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
30650 * lib/base64.c: Typo.
30651 (base64_encode): Put b64str in initialized data section.
30653 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
30655 Merge glibc and coreutils changes into gnulib, plus a few
30657 * lib/md5.c: Use #error rather than a string.
30658 (CYCLIC): New macro, from glibc source. Use it instead of rol.
30659 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
30660 (__attribute__): Define to empty for non recent-GCC.
30661 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
30662 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
30663 Renamed from their non-__ counterparts, with new macros replacing
30664 them if not _LIBC. Add __THROW attribute.
30666 (struct md5_ctx): Align buffer if using GCC.
30667 * lib/sha1.h (struct sha1_ctx): Likewise.
30668 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
30669 The old name was backwards.
30670 (NOTSWAP): Remove; not used.
30671 (rol): New macro, moved here from md5.h.
30672 (sha1_process_block): Remove a FIXME that doesn't make sense.
30674 2005-09-12 Derek Price <derek@ximbiot.com>
30676 Return usable errors from canon-host.
30677 * lib/canon-host.h: New file.
30678 * lib/canon-host.c (canon_host): Wrap...
30679 (canon_host_r): ...this new function, which now relies exclusively on
30681 (ch_strerror): New function.
30682 (last_cherror): New global.
30683 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
30685 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
30687 (freeaddrinfo): Free ai->ai_canonname when set.
30689 2005-09-12 Derek Price <derek@ximbiot.com>
30691 Make canon-host require getaddrinfo.
30692 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
30693 AC_LIBSOURCE canon-host.h. Call...
30694 (gl_PREREQ_CANON_HOST): ...this new function, which requires
30696 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
30698 2005-09-12 Derek Price <derek@ximbiot.com>
30700 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
30702 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
30704 2005-09-12 Derek Price <derek@ximbiot.com>
30706 * lib/gai_strerror.c: Include config.h when available. Include
30707 getaddrinfo.h before other headers to test interface.
30708 Reported by Larry Jones <lawrence.jones@ugs.com>.
30710 2005-09-12 Derek Price <derek@ximbiot.com>
30711 Paul Eggert <eggert@cs.ucla.edu>
30713 * modules/glob (Files): Add glob-libc.h.
30715 2005-09-12 Derek Price <derek@ximbiot.com>
30716 Paul Eggert <eggert@cs.ucla.edu>
30718 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
30719 glob_.h, glob-libc.h.
30720 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
30722 2005-09-12 Derek Price <derek@ximbiot.com>
30723 Paul Eggert <eggert@cs.ucla.edu>
30725 * lib/glob-libc.h: Renamed from glob_.h. The new version is
30726 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
30727 protecting things that should be done only in gnulib contexts.
30728 * lib/glob_.h: New file, containing only the glob things needed for
30730 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
30731 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
30732 (glob, globfree, glob_pattern_p): Now defined simply in terms of
30733 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
30734 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
30735 and to respect the namespace rules better.
30737 2005-09-08 Simon Josefsson <jas@extundo.com>
30739 * modules/socklen: New file.
30741 2005-09-08 Simon Josefsson <jas@extundo.com>
30743 * m4/socklen.m4: New file.
30745 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
30747 * modules/utimens (Files): Add m4/utimbuf.m4, since
30748 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
30749 Reported by Sergey Poznyakoff.
30751 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
30753 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
30754 definitions, since that's the preferred style in glibc.
30755 Fix a minor spacing issue, and update copyright notice to match
30758 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
30760 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
30762 2005-09-06 Simon Josefsson <jas@extundo.com>
30764 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
30765 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
30767 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
30769 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
30772 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
30774 * config/srclist.txt: Add glibc bug 1302.
30776 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
30778 Change bitset word type from unsigned int to unsigned long int,
30779 as this has better performance on typical 64-bit hosts.
30780 Port bitset code to hosts with unusual word sizes.
30781 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
30782 (build_collating_symbol):
30783 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
30784 argument is a bitset. This is merely a style issue, but it makes
30785 it clearer that an entire array is expected.
30786 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
30787 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
30788 Port to the case where bitset_word is not the same as unsigned int.
30789 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
30790 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
30792 * lib/regexec.c (check_dst_limits_calc_pos_1,
30793 check_subexp_matching_top):
30794 (build_trtable, group_nodes_into_DFAstates):
30796 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
30797 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
30798 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
30799 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
30800 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
30801 * lib/regcomp.c (optimize_subexps, lower_subexp):
30802 Work even if bitset_word has holes in its bitwise representation.
30803 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
30804 * lib/regexec.c (check_dst_limits_calc_pos_1,
30805 check_subexp_matching_top):
30807 * lib/regex_internal.c (re_string_reconstruct):
30808 Don't assume UCHAR_MAX == 255.
30809 * lib/regex_internal.h (bitset_set_all): Likewise.
30810 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
30812 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
30813 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
30815 (BITSET_WORD_MAX): New macro.
30816 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
30817 (bitset_set_all, bitset_copy): Now inline functions, not macros.
30818 (bitset_empty, bitset_copy):
30819 Prefer sizeof (bitset) to multiplying it out ourselves.
30820 (bitset_not_merge): Remove; unused.
30821 (bitset_contain): Return bool, not unsigned int with one bit on.
30822 All callers changed.
30823 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
30824 alignment than re_node_set; do this by defining a new internal
30825 type struct dests_alloc and using it to allocate memory.
30827 2005-09-05 Bruno Haible <bruno@clisp.org>
30829 * gnulib-tool (func_import): Fix comparison in handling of symbolic
30832 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
30834 * modules/size_max (Makefile.am): Add size_max.h
30836 2005-09-04 Derek Price <derek@ximbiot.com>
30838 * gnulib-tool (func_import): Fix reversed $symbolic logic.
30840 2005-09-03 Simon Josefsson <jas@extundo.com>
30842 * gnulib-tool: Fix typo.
30844 2005-09-03 Simon Josefsson <jas@extundo.com>
30846 * config/srclist.txt: Add glibc bug 1293.
30848 2005-09-03 Derek Price <derek@ximbiot.com>
30850 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
30851 From Larry Jones <lawrence.jones@ugs.com>.
30853 2005-09-02 Simon Josefsson <jas@extundo.com>
30855 * modules/socklen: New file.
30857 2005-09-02 Simon Josefsson <jas@extundo.com>
30859 * modules/havelib: New module.
30861 * modules/gettext, modules/iconv, modules/lock, modules/readline:
30864 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
30866 Check for arithmetic overflow when calculating sizes, to prevent
30867 some buffer-overflow issues. These patches are conservative, in the
30868 sense that when I couldn't determine whether an overflow was possible,
30869 I inserted a run-time check.
30870 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
30872 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
30873 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
30874 (re_xnrealloc, re_x2nrealloc): New inline functions.
30875 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
30876 parse_bracket_exp):
30877 (build_equiv_class, build_charclass): Check for arithmetic overflow
30878 in size expression calculations.
30879 * lib/regex_internal.c (re_string_realloc_buffers):
30880 (build_wcs_upper_buffer, re_node_set_add_intersect):
30881 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
30882 (re_dfa_add_node, register_state): Likewise.
30883 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
30884 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
30885 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
30886 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
30888 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
30890 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
30891 m4/ulonglong.m4. Problem reported by Martin Lambers.
30893 2005-09-02 Bruno Haible <bruno@clisp.org>
30895 Support for lib vs. lib64 distinction on biarch platforms.
30896 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
30897 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
30898 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
30900 2005-09-02 Bruno Haible <bruno@clisp.org>
30902 * gnulib-tool (import): In the other first-use case, provide defaults
30905 2005-09-02 Bruno Haible <bruno@clisp.org>
30907 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
30908 patches not yet found in the latest gettext release.
30910 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
30912 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
30913 to avoid a collision with bits/local_lim.h in glibc.
30914 All uses changed. Problem reported by Dmitry V. Levin in
30915 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
30917 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
30918 bugs in int versus size_t comparisons.
30919 (re_string_context_at): Fix bug where the code assumed that
30922 Use bool where appropriate.
30923 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
30924 All callers changed.
30925 (calc_eclosure_iter): Likewise, for ROOT arg.
30926 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
30927 (build_charclass_op): Likewise, for NON_MATCH arg.
30928 * lib/regex_internal.c (re_string_allocate, re_string_construct):
30929 (re_string_construct_common): Likewise, for ICASE arg.
30930 * lib/regexec.c (re_search_2_stub, re_search_stub):
30931 Likewise, for RET_LEN arg.
30932 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
30933 (set_regs): Likewise, for FL_BACKTRACK arg.
30934 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
30935 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
30936 (calc_eclosure_iter, parse_bracket_exp):
30937 Use bool for internal variables that are booleans.
30938 * lib/regexec.c (re_search_internal, check_matching,
30939 proceed_next_node):
30940 (set_regs, build_sifted_states, sift_states_bkref):
30941 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
30942 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
30943 (find_collation_sequence_value):
30945 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
30946 (re_node_set_compare):
30947 Return bool, not int. All callers changed.
30948 * lib/regexec.c (check_halt_node_context, check_dst_limits):
30949 (build_trtable, check_node_accept): Likewise.
30950 * lib/regex_internal.h: Include stdbool.h.
30952 Fix bugs uncovered when converting to bool.
30953 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
30954 failure instead of charging ahead blindly.
30955 * lib/regex_internal.c (register_state): Likewise.
30956 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
30957 for freeing internal storage.
30958 (group_nodes_into_DFA_states): Use unsigned int, not int, for
30959 bitset pieces used as boolean, to avoid undefined behavior
30960 on hosts that do int overflow checking.
30962 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
30964 * config/srclist.txt: Add glibc bugs 1285-1287.
30966 2005-09-01 Jim Meyering <jim@meyering.net>
30968 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
30969 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
30970 Require gl_STAT_MACROS, too.
30972 2005-09-01 Bruno Haible <bruno@clisp.org>
30974 * gnulib-tool (import): In the first-use case, provide defaults.
30976 2005-09-01 Bruno Haible <bruno@clisp.org>
30978 * gnulib-tool (func_import): Remove the .tmp files.
30980 2005-09-01 Bruno Haible <bruno@clisp.org>
30982 * gnulib-tool (func_import): Fix handling of symbolic links.
30984 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
30986 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
30987 old glibc regex code mishandles strings longer than 2**31 bytes.
30988 This patch fixes this when the regex code is used in gnulib
30989 (i.e., outside glibc).
30991 This patch should not affect the use of the regex code inside
30992 glibc. No doubt this problem also needs to be handled for glibc
30993 as well, but the result will be an incompatible change to the
30994 glibc ABI, and the old ABI will have to be supported too. That
30995 can be the the subject for another patch.
30997 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
30998 governing whether the rest of this patch is active. By default,
30999 the macro is disabled and the patch has no effect.
31000 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
31001 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
31002 (struct re_pattern_buffer, re_search, re_search_2, re_match):
31003 (re_match_2, re_set_registers): Use the new types.
31004 * lib/regex_internal.h (Idx, re_hashval_t): New types.
31005 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
31007 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
31008 (re_string_context_at, bin_tree_t, re_dfastate_t):
31009 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
31010 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
31011 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
31012 (re_string_char_size_at, re_string_wchar_at):
31013 (re_string_elem_size_at):
31014 Use the new types and macros to port to 64-bit hosts.
31015 Use unsigned types for internal values, so that the code
31016 mostly works even for arrays larger than SSIZE_MAX.
31017 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
31018 (search_duplicated_node, calc_eclosure_iter, fetch_number):
31019 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
31020 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
31021 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
31022 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
31023 (calc_inveclosure, parse_dup_op, build_range_exp):
31024 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
31025 (fetch_number, create_token_tree, mark_opt_subexp):
31027 * lib/regex_internal.c (re_string_construct_common,
31028 create_ci_newstate):
31029 (create_cd_newstate, re_string_allocate, re_string_construct):
31030 (re_string_realloc_buffers, build_wcs_upper_buffer):
31031 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
31032 (re_string_reconstruct, re_string_peek_byte_case):
31033 (re_string_fetch_byte_case, re_string_context_at):
31034 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
31035 (re_node_set_init_copy, re_node_set_add_intersect):
31036 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31037 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31038 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
31039 (re_acquire_state, re_acquire_state_context, register_state):
31041 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
31042 search_cur_bkref_entry):
31043 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
31044 (re_search_internal, re_search_2_stub, re_search_stub)
31045 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
31046 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
31047 (update_cur_sifted_state, check_dst_limits):
31048 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
31049 (check_subexp_limits, sift_states_bkref, merge_state_array):
31050 (check_subexp_matching_top, get_subexp, get_subexp_sub):
31051 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
31052 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
31053 (expand_bkref_cache, check_node_accept_bytes):
31054 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
31055 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
31056 (acquire_init_state_context, check_halt_node_context):
31057 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
31058 (sift_states_backward, clean_state_log_if_needed):
31059 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
31060 (find_recover_state, transit_state_sb, transit_state_mb):
31061 (transit_state_bkref, build_trtable, match_ctx_clean):
31063 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
31064 to work around an assumption that REG_MISSING is negative.
31066 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
31067 (seek_collating_symbol_entry) [defined _LIBC]:
31068 (lookup_collation_sequence_value) [defined _LIBC]:
31069 (build_range_exp, build_collating_symbol) [defined _LIBC]:
31070 Use prototypes rather than old-style function definitions.
31071 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
31072 (transit_state_sb) [0]:
31073 (find_collation_sequence_value) [defined _LIBC]: Likewise.
31075 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
31078 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
31079 (optimize_subexps, lower_subexp):
31080 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
31081 since the signed shift might overflow. Use 1u<<31 instead.
31082 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
31084 * lib/regexec.c (check_dst_limits_calc_pos_1,
31085 check_subexp_matching_top): Likewise.
31087 * lib/regcomp.c (optimize_subexps, lower_subexp):
31088 Use CHAR_BIT rather than 8, for clarity.
31089 * lib/regexec.c (check_dst_limits_calc_pos_1):
31090 (check_subexp_matching_top): Likewise.
31091 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
31092 have to worry about portability issues when shifting it left.
31093 Remove no-longer-needed test for table_size > 0.
31094 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
31095 in a word, as the resulting behavior is undefined.
31096 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
31097 in one case, a <= should have been an <, and in another case the
31098 whole test was missing.
31099 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
31100 the standard name CHAR_BIT.
31101 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
31102 this is not true on one's complement and signed-magnitude hosts.
31104 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
31106 (struct re_dfa_t): Remove unused member states_alloc.
31107 * lib/regcomp.c (init_dfa): Don't initialize unused members.
31109 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
31111 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
31112 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
31113 and large-file glibc and in 32-bit large-file Solaris.
31115 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
31117 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
31118 lengths fit in regoff_t; this isn't true if regoff_t is the same
31120 * lib/regex.c (re_search_internal): 5th arg is LAST_START
31121 (= START + RANGE) instead of RANGE. This avoids overflow
31122 problems when regoff_t is the same width as size_t.
31123 All callers changed.
31124 (re_search_2_stub): Check for overflow when adding the
31125 sizes of the two strings.
31126 (re_search_stub): Check for overflow when adding START
31127 to RANGE; if it occurs, substitute the extreme value.
31129 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
31131 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
31133 2005-08-31 Jim Meyering <jim@meyering.net>
31135 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
31136 a pointer-to-const.
31137 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
31138 (register_state): Likewise.
31139 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
31140 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
31141 (group_nodes_into_DFAstates): Likewise.
31143 2005-08-31 Jim Meyering <jim@meyering.net>
31145 * check-module: Add a FIXME comment.
31147 2005-08-31 Eric Blake <ebb9@byu.net>
31149 * modules/unistd-safer (Files): Add unistd--.h.
31150 * modules/stdio-safer (Files): Add stdio--.h.
31152 2005-08-31 Derek Price <derek@ximbiot.com>
31154 * lib/getdelim.c (getdelim): Return EOF on EOF.
31155 Reported by Larry Jones <lawrence.jones@ugs.com>.
31157 2005-08-31 Bruno Haible <bruno@clisp.org>
31159 Avoid unnecessary diffs in the generated lib/Makefile.am.
31160 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
31161 the generated files.
31162 (func_import): Don't set cmd.
31164 2005-08-31 Bruno Haible <bruno@clisp.org>
31166 * lib/strstr.c: Include <stddef.h>, for NULL.
31167 * lib/strcasestr.c: Likewise.
31168 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31170 2005-08-31 Bruno Haible <bruno@clisp.org>
31172 * gnulib-tool: New option --macro-prefix.
31173 (func_import): Use macro_prefix.
31174 (import): Handle option --macro-prefix.
31176 2005-08-31 Bruno Haible <bruno@clisp.org>
31178 * gnulib-tool (import): Rename most ac_* variables to cached_*.
31179 Also use new variables cached_lgpl, cached_libtool.
31181 2005-08-31 Bruno Haible <bruno@clisp.org>
31183 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
31184 always instantiating them.
31186 2005-08-31 Bruno Haible <bruno@clisp.org>
31188 * gnulib-tool (func_import): Read the previous cached settings
31189 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
31190 earlier added by gnulib but are now dropped. Warn when a gnulib file
31191 overwrites a non-gnulib file.
31193 2005-08-31 Bruno Haible <bruno@clisp.org>
31195 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
31196 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
31197 projects that don't keep autogenerated files in CVS. Put into
31198 actioncmd only the specified modules, not the transitive closure.
31200 2005-08-31 Bruno Haible <bruno@clisp.org>
31202 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
31203 Create directories that shall be filled.
31204 (import): Don't look for gl_* macros in configure.ac. Recurse across
31205 all directories containing a gnulib-cache.m4 files, if meaningful.
31207 2005-08-31 Bruno Haible <bruno@clisp.org>
31209 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
31210 (import): Set seen_libtool when we see gl_LIBTOOL.
31212 2005-08-31 Bruno Haible <bruno@clisp.org>
31214 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
31215 declaration macro definitions from generated gnulib.m4.
31217 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
31219 * lib/iconvme.h: Add prototype for iconv_alloc.
31221 2005-08-29 Simon Josefsson <jas@extundo.com>
31223 * lib/iconvme.c: Fix errno.
31225 2005-08-29 Bruno Haible <bruno@clisp.org>
31227 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
31228 that it works when the directory contains spaces.
31230 2005-08-29 Bruno Haible <bruno@clisp.org>
31232 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
31234 2005-08-29 Bruno Haible <bruno@clisp.org>
31236 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
31239 2005-08-29 Bruno Haible <bruno@clisp.org>
31240 and Stepan Kasal <kasal@ucw.cz>
31242 * check-module: If more parameters are given, check each of them
31243 separately; add more exceptions, as noted by Jim Meyering.
31244 (check_module): New procedure.
31245 (%exempt_header): Now contains all exceptions.
31247 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
31249 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
31251 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
31253 * lib/iconvme.c: Split iconv_string into iconv_alloc.
31255 2005-08-28 Bruno Haible <bruno@clisp.org>
31257 * m4/gnulib-tool.m4: New file.
31259 2005-08-27 Jim Meyering <jim@meyering.net>
31261 * modules/unistd-safer (Files): Add pipe-safer.c.
31262 * modules/fcntl-safer (Files): Add creat-safer.c.
31264 2005-08-27 Jim Meyering <jim@meyering.net>
31266 * m4/stdlib-safer.m4: New file. From coreutils.
31267 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
31268 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
31269 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
31270 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
31271 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
31273 2005-08-27 Jim Meyering <jim@meyering.net>
31275 * lib/fopen-safer.c: Merge minor changes from coreutils.
31276 * lib/dup-safer.c: Likewise.
31277 * lib/fd-safer.c: Likewise.
31279 Merge from coreutils.
31280 * lib/stdio--.h: New file.
31281 * lib/stdlib--.h: New file.
31282 * lib/mkstemp-safer.c: New file.
31284 GNU tar needs these.
31285 * lib/pipe-safer.c: New file.
31286 * lib/creat-safer.c: New file.
31287 * lib/fcntl--.h (creat): Define to creat_safer.
31288 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
31289 * lib/unistd--.h (pipe): Define to pipe_safer.
31290 * lib/unistd-safer.h: Declare pipe_safer.
31292 2005-08-26 Simon Josefsson <jas@extundo.com>
31294 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
31295 Haible <bruno@clisp.org>.
31297 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
31299 * lib/regex_internal.h: Remove all references to
31300 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
31302 (bitset_not, bitset_merge, bitset_not_merge):
31303 (bitset_mask, re_string_allocate, re_string_construct):
31304 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
31305 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
31306 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
31307 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
31308 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31309 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31310 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
31311 (re_acquire_state_context):
31312 Remove unnecessary forward decls.
31313 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
31314 Put __attribute at function definition,
31315 now that the function decl has been removed.
31316 * lib/regex_internal.c (re_string_peek_byte_case):
31317 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
31320 2005-08-25 Stepan Kasal <kasal@ucw.cz>
31322 * m4/regex.m4: Add AC_PREREQ(2.50).
31323 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
31325 2005-08-25 Simon Josefsson <jas@extundo.com>
31327 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
31330 2005-08-25 Simon Josefsson <jas@extundo.com>
31332 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
31333 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
31334 GLIBC specific code.
31336 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
31338 Make regex safe for g++. This fixes one real bug (an "err"
31339 that should have been "*err"). g++ problem reported by
31341 * lib/regex_internal.h (re_calloc): New macro, consistent with
31342 re_malloc etc. All callers of calloc changed to use re_calloc.
31343 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
31344 not int. All callers changed.
31345 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
31346 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
31347 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
31348 (find_recover_state): Change "err" to "*err"; this fixes what
31349 appears to be a real bug.
31350 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
31353 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
31355 * modules/regex (Depends-on): Add malloc, since the code
31356 assumes that !malloc(0) means failure.
31358 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
31360 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
31362 alloca modernization/simplification for regex.
31363 * lib/regex.c: Remove portability cruft for alloca. This no longer
31364 needs to be at the start of the file, and can be moved into
31365 regex_internal.h and simplified.
31366 * lib/regex_internal.h: Include <alloca.h>.
31367 (__libc_use_alloca) [!defined _LIBC]: New macro.
31368 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
31369 now works outside glibc.
31371 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
31373 * config/srclist.txt: Add glibc bugs 1241, 1245.
31375 2005-08-25 Jim Meyering <jim@meyering.net>
31377 * lib/open-safer.c: Include <config.h>.
31378 Otherwise, we'd lose LARGEFILE support in any file using
31381 2005-08-25 Bruno Haible <bruno@clisp.org>
31383 * m4/minmax.m4: Require autoconf 2.52.
31384 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
31385 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
31386 alternatives of translit over the alphabet.
31387 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
31389 2005-08-24 Simon Josefsson <jas@extundo.com>
31391 * tests/test-getpass.c: New file.
31393 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
31395 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
31396 for GNU regex features.
31398 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
31400 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
31401 * lib/regex.h (regerror): Likewise.
31403 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
31404 requires this. (The code never needed it.)
31406 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
31407 All uses of recently-renamed identifiers changed to use the new,
31408 POSIX-compliant names. The code will build and run just fine
31409 without these changes, but it's better to eat our own dog food
31410 and use the standard-conforming names.
31412 * lib/regex.h: Fix a multitude of POSIX name space violations.
31413 These changes have an effect only for programs that define
31414 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
31415 do not change anything for programs compiled in the normal way.
31416 Also, there is no effect on the ABI.
31418 (_REGEX_SOURCE): New macro.
31419 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
31420 defined and _GNU_SOURCE is not; this fixes a name space violation.
31422 Rename the following macros to obey POSIX requirements.
31423 The old names are still visible as macros if _REGEX_SOURCE is defined.
31424 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
31425 RE_BACKSLASH_ESCAPE_IN_LISTS.
31426 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
31427 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
31428 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
31429 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
31430 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
31431 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
31432 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
31433 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
31434 (REG_INTERVALS): renamed from RE_INTERVALS.
31435 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
31436 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
31437 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
31438 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
31439 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
31440 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
31441 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
31442 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
31443 RE_UNMATCHED_RIGHT_PAREN_ORD.
31444 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
31445 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
31446 (REG_DEBUG): renamed from RE_DEBUG.
31447 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
31448 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
31449 unusual, since we can't clash with the POSIX REG_ICASE.
31450 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
31451 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
31452 (REG_NO_SUB): renamed from RE_NO_SUB.
31453 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
31454 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
31455 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
31456 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
31457 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
31458 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
31459 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
31460 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
31461 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
31462 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
31463 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
31464 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
31465 RE_SYNTAX_POSIX_MINIMAL_BASIC.
31466 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
31467 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
31468 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
31469 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
31470 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
31471 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
31472 (REG_FIXED): Renamed from REGS_FIXED.
31473 (REG_NREGS): Renamed from RE_NREGS.
31475 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
31476 of other REG_* macros, since POSIX says the user is allowed to
31477 #undef these macros selectively.
31479 (reg_errcode_t): Update comment stating what other tables need
31482 Rename the following enum values to obey POSIX requirements.
31483 The old names are still visible as macros.
31484 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
31485 is not defined, since GNU is supposed to be a superset of POSIX as
31486 much as possible, and since we want reg_errcode_t to be a signed
31487 type for implementation consistency.
31488 (_REG_NOERROR): Renamed from REG_NOERROR.
31489 (_REG_NOMATCH): Renamed from REG_NOMATCH.
31490 (_REG_BADPAT): Renamed from REG_BADPAT.
31491 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
31492 (_REG_ECTYPE): Renamed from REG_ECTYPE.
31493 (_REG_EESCAPE): Renamed from REG_EESCAPE.
31494 (_REG_ESUBREG): Renamed from REG_ESUBREG.
31495 (_REG_EBRACK): Renamed from REG_EBRACK.
31496 (_REG_EPAREN): Renamed from REG_EPAREN.
31497 (_REG_EBRACE): Renamed from REG_EBRACE.
31498 (_REG_BADBR): Renamed from REG_BADBR.
31499 (_REG_ERANGE): Renamed from REG_ERANGE.
31500 (_REG_ESPACE): Renamed from REG_ESPACE.
31501 (_REG_BADRPT): Renamed from REG_BADRPT.
31502 (_REG_EEND): Renamed from REG_EEND.
31503 (_REG_ESIZE): Renamed from REG_ESIZE.
31504 (_REG_ERPAREN): Renamed from REG_ERPAREN.
31505 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
31506 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
31507 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
31508 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
31510 (_REG_RE_NAME, _REG_RM_NAME): New macros.
31511 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
31512 changed. But support the old name if the new one is not defined
31513 and if _REGEX_SOURCE.
31515 Change the following member names in struct re_pattern_buffer.
31516 The old names are still supported if !_REGEX_SOURCE.
31517 The new names are always supported, regardless of _REGEX_SOURCE.
31518 (re_buffer): Renamed from buffer.
31519 (re_allocated): Renamed from allocated.
31520 (re_used): Renamed from used.
31521 (re_syntax): Renamed from syntax.
31522 (re_fastmap): Renamed from fastmap.
31523 (re_translate): Renamed from translate.
31524 (re_can_be_null): Renamed from can_be_null.
31525 (re_regs_allocated): Renamed from regs_allocated.
31526 (re_fastmap_accurate): Renamed from fastmap_accurate.
31527 (re_no_sub): Renamed from no_sub.
31528 (re_not_bol): Renamed from not_bol.
31529 (re_not_eol): Renamed from not_eol.
31530 (re_newline_anchor): Renamed from newline_anchor.
31532 Change the following member names in struct re_registers.
31533 The old names are still supported if !_REGEX_SOURCE.
31534 The new names are always supported, regardless of _REGEX_SOURCE.
31535 (rm_num_regs): Renamed from num_regs.
31536 (rm_start): Renamed from start.
31537 (rm_end): Renamed from end.
31539 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
31540 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
31541 Prepend __ to parameter names.
31543 Undo yesterday's changes.
31545 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
31547 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
31548 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
31551 2005-08-24 Jim Meyering <jim@meyering.net>
31553 Sync from coreutils.
31554 * m4/fcntl-safer.m4: New file.
31556 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
31557 and object files for this module.
31559 2005-08-24 Jim Meyering <jim@meyering.net>
31561 Sync from coreutils.
31562 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
31564 2005-08-24 Jim Meyering <jim@meyering.net>
31566 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
31567 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
31569 2005-08-24 Jim Meyering <jim@meyering.net>
31571 * modules/fcntl-safer: New module.
31572 * modules/fts (Depends-on): Add fcntl-safer.
31573 * MODULES.html.sh (File descriptor based Input/Output):
31576 2005-08-24 Bruno Haible <bruno@clisp.org>
31578 Support for unit test modules.
31579 * modules/README: Mention tests modules.
31580 * modules/TEMPLATE-TESTS: New file.
31581 * gnulib-tool: New options --extract-tests-module, --with-tests and
31582 --tests-base (unused for the moment).
31583 (testsbase, inctests): New variables.
31584 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
31585 (func_verify_module): Exclude TEMPLATE-TESTS.
31586 (func_verify_nontests_module, func_verify_tests_module): New functions.
31587 (func_get_dependencies): Add implicit dependency for tests modules.
31588 (func_get_tests_module): New function.
31589 (func_modules_transitive_closure): When --with-tests was specified,
31590 include the unit tests as well, unless explicitly avoided.
31591 (func_emit_lib_Makefile_am): Ignore the tests modules here.
31592 (func_emit_tests_Makefile_am): New function.
31593 (func_create_testdir): When --with-tests was specified, emit a
31595 * MODULES.html.sh (Future developments): Update.
31597 2005-08-24 Bruno Haible <bruno@clisp.org>
31599 * modules/tls-tests: New file.
31600 * tests/test-tls.c: New file, from GNU gettext.
31602 2005-08-24 Bruno Haible <bruno@clisp.org>
31604 * modules/lock-tests: New file.
31605 * tests/test-lock.c: New file, from GNU gettext.
31607 2005-08-24 Bruno Haible <bruno@clisp.org>
31609 * lib/lock.h: Add multiple inclusion guard.
31610 * lib/tls.h: Add multiple inclusion guard.
31612 2005-08-24 Bruno Haible <bruno@clisp.org>
31614 * gnulib-tool: Add support for the --aux-dir option to
31615 --create-testdir, --create-megatestdir, --test, --megatest.
31616 (func_create_testdir, func_create_megatestdir): Optionally emit a
31617 AC_CONFIG_AUX_DIR directive.
31618 (create-testdir, create-megatestdir, test, megatest): Provide a
31619 default value for $auxdir.
31621 2005-08-24 Bruno Haible <bruno@clisp.org>
31623 * gnulib-tool (import): Use compound statement instead of subshell
31626 2005-08-24 Bruno Haible <bruno@clisp.org>
31628 * gnulib-tool (import): Change --aux-dir default to "build-aux".
31630 2005-08-24 Bruno Haible <bruno@clisp.org>
31632 * gnulib-tool (func_version): Update.
31634 2005-08-24 Bruno Haible <bruno@clisp.org>
31636 * gnulib-tool (func_import, func_create_testdir,
31637 func_create_megatestdir): Quote all autoconf macro arguments.
31639 2005-08-24 Bruno Haible <bruno@clisp.org>
31641 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
31642 option --force, because --force causes the aclocal.m4 of each
31643 subdirectory to be newer than the corresponding config.h.in.
31645 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
31647 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
31648 All contents moved to gl_REGEX.
31649 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
31650 assume that it does.
31652 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
31654 * lib/regex.h (REG_NOSYS)
31655 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
31656 Define, since POSIX requires it as of 2001.
31658 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
31659 New private symbol, used to keep the enum signed in all cases.
31660 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
31662 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
31664 * lib/regex_internal.c (re_string_skip_chars, register_state):
31666 Remove forward decls; no longer needed now that we use prototypes.
31667 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
31668 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
31669 (clean_state_log_if_needed): Likewise.
31671 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
31673 * config/srclist.txt: Add glibc bugs 1231-1233.
31675 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
31677 Fix problems reported by Sam Steingold in
31678 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
31679 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
31680 assumed that reg_errcode_t is a signed type, which is not
31681 necessarily true if _XOPEN_SOURCE is not defined.
31682 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
31683 since some compilers warn about it otherwise.
31685 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
31687 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
31688 (init_word_char, create_initial_state, duplicate_node_closure):
31689 (fetch_token, peek_token_bracket, build_range_exp):
31690 (build_collating_symbol): Remove forward decls; no longer needed
31691 now that we use prototypes.
31694 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
31695 (re_compile_fastmap_iter, regcomp, regerror, regfree):
31696 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
31697 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
31698 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
31699 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
31700 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
31701 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
31702 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
31703 (build_range_exp, build_collating_symbol, parse_bracket_exp):
31704 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
31705 (build_charclass, build_charclass_op, fetch_number, create_tree):
31706 (create_token_tree, mark_opt_subexp, duplicate_tree):
31707 Use prototypes rather than old-style definitions.
31709 * lib/regex_internal.c:
31710 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
31711 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
31712 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
31713 (re_string_reconstruct, re_string_peek_byte_case):
31714 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
31715 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
31716 (re_node_set_init_copy, re_node_set_add_intersect):
31717 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31718 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31719 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
31720 (re_acquire_state, re_acquire_state_context, register_state):
31721 (create_ci_newstate, create_cd_newstate, free_state):
31723 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
31725 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
31726 (re_search_internal, prune_impossible_nodes):
31727 (acquire_init_state_context, check_matching, static):
31728 (check_halt_node_context, check_halt_state_context, proceed_next_node):
31729 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
31730 (update_regs, sift_states_backward, build_sifted_states):
31731 (clean_state_log_if_needed, merge_state_array):
31732 (update_cur_sifted_state, add_epsilon_src_nodes):
31733 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
31734 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
31735 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
31736 (find_recover_state, check_subexp_matching_top, transit_state_mb):
31737 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
31738 (check_arrival, check_arrival_add_next_nodes):
31739 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
31740 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
31741 (check_node_accept_bytes, check_node_accept, extend_buffers):
31742 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
31743 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
31747 * lib/regex_internal.h:
31748 (re_string_allocate, re_string_construct, re_string_reconstruct):
31749 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
31750 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
31751 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
31752 (re_string_context_at, re_string_peek_byte_case):
31753 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
31754 is defined, since we now use prototypes always.
31756 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
31757 C89 or better. All uses removed.
31759 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
31761 * config/srclist.txt: Add glibc bugs 1220-1227.
31763 2005-08-20 Jim Meyering <jim@meyering.net>
31765 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
31766 of unused local, dfa.
31768 2005-08-20 Bruno Haible <bruno@clisp.org>
31770 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
31772 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
31774 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
31775 (re_node_set_insert_last, re_dfa_add_node):
31776 Rename local variables to avoid GCC shadowing warnings.
31778 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
31780 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
31781 [defined lint]: Suppress bogus uninitialized-variable warnings.
31783 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
31784 and let the caller return REG_ESPACE if out of space. This
31785 removes an uninitialied-variable warning with GCC 4.0.1, and also
31786 avoids taking the address of a local variable. All callers
31789 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
31791 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
31792 $LIBCSRC/posix/regexec.c.
31793 Add glibc bug 1217 for regcomp.c.
31795 2005-08-19 Jim Meyering <jim@meyering.net>
31797 * lib/regexec.c (proceed_next_node): Redo local variables to
31798 avoid GCC shadowing warnings.
31800 2005-08-18 Bruno Haible <bruno@clisp.org>
31802 * lib/strstr.c (strstr): Fix return value in multibyte case.
31803 * lib/strcasestr.c (strcasestr): Likewise.
31805 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
31807 * lib/regex.h: Remove useless space-before-tab. From coreutils.
31809 2005-08-17 Jim Meyering <jim@meyering.net>
31811 Make the %s format (seconds since the epoch) work for a negative
31812 number and when used with a zero-padded field width, e.g. %015s.
31814 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
31815 label so that it precedes the code to set `digits'. Otherwise,
31816 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
31817 print `00-22'. Now, it prints `-0022', as it should.
31819 2005-08-17 Bruno Haible <bruno@clisp.org>
31821 * modules/strstr (Files): Add m4/mbrtowc.m4.
31822 (Depends-on): Add mbuiter.
31824 2005-08-17 Bruno Haible <bruno@clisp.org>
31826 * modules/strcasestr: New file.
31827 * MODULES.html.sh (String handling, based on ANSI C 89): Add
31830 2005-08-17 Bruno Haible <bruno@clisp.org>
31832 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
31834 2005-08-17 Bruno Haible <bruno@clisp.org>
31836 * modules/mbuiter: New file.
31837 * MODULES.html.sh (Extended multibyte and wide character utilities):
31840 2005-08-17 Bruno Haible <bruno@clisp.org>
31842 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
31843 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
31845 2005-08-17 Bruno Haible <bruno@clisp.org>
31847 * m4/strcasestr.m4: New file.
31849 2005-08-17 Bruno Haible <bruno@clisp.org>
31851 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
31852 * lib/strstr.c: Completely rewritten, with multibyte locale support.
31854 2005-08-17 Bruno Haible <bruno@clisp.org>
31856 * lib/strcasestr.h: New file.
31857 * lib/strcasestr.c: New file.
31859 2005-08-17 Bruno Haible <bruno@clisp.org>
31861 * lib/strcasecmp.c: Use mbuiter.h.
31863 2005-08-17 Bruno Haible <bruno@clisp.org>
31865 * lib/mbuiter.h: New file.
31867 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
31869 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
31870 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
31871 and gl_GETOPT are both invoked via different paths (as happens
31872 with GNU tar CVS because it uses both argp and getopt), the former
31875 2005-08-16 Bruno Haible <bruno@clisp.org>
31877 * modules/tls: New file.
31878 * MODULES.html.sh (Multithreading): Add tls.
31880 2005-08-16 Bruno Haible <bruno@clisp.org>
31882 * modules/strnlen1: New file.
31883 * MODULES.html.sh (String handling): Add strnlen1.
31885 2005-08-16 Bruno Haible <bruno@clisp.org>
31887 * modules/strcase (Files): Add m4/mbrtowc.m4.
31888 (Depends-on): Add strnlen1, mbchar.
31890 2005-08-16 Bruno Haible <bruno@clisp.org>
31892 * modules/mbiter: New file.
31893 * MODULES.html.sh (Extended multibyte and wide character utilities):
31896 2005-08-16 Bruno Haible <bruno@clisp.org>
31898 * modules/mbfile: New file.
31899 * MODULES.html.sh (Extended multibyte and wide character utilities):
31902 2005-08-16 Bruno Haible <bruno@clisp.org>
31904 * modules/mbchar: New file.
31905 * MODULES.html.sh (Extended multibyte and wide character utilities):
31908 2005-08-16 Bruno Haible <bruno@clisp.org>
31910 * m4/tls.m4: New file, from GNU gettext.
31912 2005-08-16 Bruno Haible <bruno@clisp.org>
31914 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
31916 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
31918 2005-08-16 Bruno Haible <bruno@clisp.org>
31920 * m4/mbiter.m4: New file.
31922 2005-08-16 Bruno Haible <bruno@clisp.org>
31924 * m4/mbfile.m4: New file.
31926 2005-08-16 Bruno Haible <bruno@clisp.org>
31928 * m4/mbchar.m4: New file.
31930 2005-08-16 Bruno Haible <bruno@clisp.org>
31932 * lib/tls.h: New file, from GNU gettext.
31933 * lib/tls.c: New file, from GNU gettext.
31935 2005-08-16 Bruno Haible <bruno@clisp.org>
31937 * lib/strnlen1.h: New file.
31938 * lib/strnlen1.c: New file.
31940 2005-08-16 Bruno Haible <bruno@clisp.org>
31942 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
31943 (mbi_init): Update.
31944 (mbi_avail, mbi_advance): Let the iteration end before the terminating
31945 NUL byte, not after it.
31947 2005-08-16 Bruno Haible <bruno@clisp.org>
31949 * lib/strcase.h (strcasecmp): Add note in comments.
31950 * lib/strncasecmp.c: Use code from strcasecmp.c.
31951 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
31952 (strcasecmp): Work correctly in multibyte locales.
31954 2005-08-16 Bruno Haible <bruno@clisp.org>
31956 * lib/mbiter.h: New file.
31958 2005-08-16 Bruno Haible <bruno@clisp.org>
31960 * lib/mbfile.h: New file.
31962 2005-08-16 Bruno Haible <bruno@clisp.org>
31964 * lib/mbchar.h: New file.
31965 * lib/mbchar.c: New file.
31967 2005-08-16 Bruno Haible <bruno@clisp.org>
31969 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
31970 the valid ones. Makes the comparison operations transitive:
31971 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
31972 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
31974 2005-08-15 Simon Josefsson <jas@extundo.com>
31976 * modules/ssize_t (License): Change to 'unlimited'.
31978 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
31980 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
31982 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
31983 Add comments for each pending glibc patch.
31985 2005-08-15 Bruno Haible <bruno@clisp.org>
31987 * lib/regex.h (__restrict_arr): Don't define to __restrict if
31988 __cplusplus is defined.
31990 2005-08-14 Jim Meyering <jim@meyering.net>
31992 Sync from coreutils.
31994 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
31995 Use the hash-table-based cycle-detection code not just when
31996 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
31997 Reported by James Youngman in
31998 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
31999 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
32000 FTS_TIGHT_CYCLE_CHECK.
32001 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
32002 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
32004 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
32005 * lib/fts.c (fd_safer): Remove decl.
32006 Include fcntl--.h rather than unistd-safer.h
32007 (fts_safe_changedir): Don't call fd_safer; no longer needed
32008 now that we include fcntl--.h.
32010 2005-08-12 Simon Josefsson <jas@extundo.com>
32012 * modules/getndelim2: Use ssize_t module.
32013 * modules/getnline: Likewise.
32014 * modules/safe-read: Likewise.
32015 * modules/xreadlink: Likewise.
32017 * modules/ssize_t: New file.
32019 2005-08-12 Simon Josefsson <jas@extundo.com>
32021 * m4/readline.m4: Look for termcap, curses or ncurses if required.
32023 2005-08-12 Simon Josefsson <jas@extundo.com>
32025 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32028 2005-08-12 Simon Josefsson <jas@extundo.com>
32030 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
32031 readline, getdelim and check_version.
32032 (Support for systems lacking ISO C 99: Sizes of integer types):
32035 2005-08-12 Bruno Haible <bruno@clisp.org>
32037 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
32039 2005-08-11 Simon Josefsson <jas@extundo.com>
32041 * modules/readline: New file.
32043 * modules/strnlen (Files): Add strnlen.h.
32045 2005-08-11 Simon Josefsson <jas@extundo.com>
32047 * m4/readline.m4: New file.
32049 2005-08-11 Simon Josefsson <jas@extundo.com>
32051 * lib/readline.h, readline.c: New file.
32053 2005-08-11 Simon Josefsson <jas@extundo.com>
32055 * doc/gnulib.texi (Initial import, Finishing touches): Mention
32058 2005-08-11 Bruno Haible <bruno@clisp.org>
32060 * lib/strnlen.h (strnlen): Change parameter name to match comment.
32062 2005-08-10 Stepan Kasal <kasal@ucw.cz>
32064 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
32066 2005-08-10 Simon Josefsson <jas@extundo.com>
32068 * tests/test-iconvme.c: New file.
32070 2005-08-10 Simon Josefsson <jas@extundo.com>
32072 * m4/strnlen.m4: New file.
32074 * m4/strndup.m4: Don't check for strnlen declaration, done in
32077 2005-08-10 Simon Josefsson <jas@extundo.com>
32079 * lib/strndup.c: Use strnlen.h.
32081 * lib/strnlen.h: New file.
32083 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
32087 2005-08-02 Simon Josefsson <jas@extundo.com>
32089 * modules/readline: New file.
32091 2005-08-02 Simon Josefsson <jas@extundo.com>
32093 * modules/getdelim: New file.
32095 * modules/getline: Rewrite, don't use getndelim2.
32097 2005-08-02 Simon Josefsson <jas@extundo.com>
32099 * m4/getline.m4: Separate out getdelim stuff into separate module.
32101 * m4/getdelim.m4: New file.
32103 2005-08-02 Simon Josefsson <jas@extundo.com>
32105 * lib/getline.h, getline.c: Rewrite.
32107 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
32109 2005-07-31 Bruno Haible <bruno@clisp.org>
32111 * lib/lock.h (gl_lock_initializer): New macro.
32112 (gl_lock_define_initialized): Use it.
32113 (gl_rwlock_initializer): New macro.
32114 (gl_rwlock_define_initialized): Use it.
32115 (gl_recursive_lock_initializer): New macro.
32116 (gl_recursive_lock_define_initialized): Use it.
32118 2005-07-30 Karl Berry <karl@gnu.org>
32120 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
32121 Report from Ben Pfaff, regarding getopt.
32123 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
32125 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
32127 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
32128 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
32129 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
32130 (gl_GETOPT): Use the new macros. Most of the implementation
32131 is moved to the new macros. This is for programs like Emacs
32132 that don't want all the functionality of gl_GETOPT.
32134 2005-07-26 Bruno Haible <bruno@clisp.org>
32136 * m4/lock.m4: Update from GNU gettext.
32138 2005-07-26 Bruno Haible <bruno@clisp.org>
32140 * lib/lock.h: Update from GNU gettext.
32141 * lib/lock.c: Update from GNU gettext.
32143 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
32145 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
32146 obsolescent AC_TRY_RUN. Include the default includes files, for
32149 2005-07-24 Bruno Haible <bruno@clisp.org>
32151 * modules/visibility: New file.
32152 * MODULES.html.sh (Misc): Add visibility.
32154 2005-07-24 Bruno Haible <bruno@clisp.org>
32156 * m4/visibility.m4: New file.
32158 2005-07-24 Bruno Haible <bruno@clisp.org>
32160 * doc/visibility.texi: New file.
32162 2005-07-22 Bruno Haible <bruno@clisp.org>
32164 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
32165 $(ALLOCA_H), redundant through BUILT_SOURCES.
32166 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
32167 redundant through BUILT_SOURCES.
32168 * modules/byteswap (Makefile.am): Remove explicit dependency on
32169 $(BYTESWAP_H), redundant through BUILT_SOURCES.
32170 * modules/fnmatch (Makefile.am): Remove explicit dependency on
32171 $(FNMATCH_H), redundant through BUILT_SOURCES.
32172 * modules/getopt (Makefile.am): Remove explicit dependency on
32173 $(GETOPT_H), redundant through BUILT_SOURCES.
32174 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
32175 redundant through BUILT_SOURCES.
32176 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
32177 redundant through BUILT_SOURCES.
32178 * modules/stdbool (Makefile.am): Remove explicit dependency on
32179 $(STDBOOL_H), redundant through BUILT_SOURCES.
32180 * modules/stdint (Makefile.am): Remove explicit dependency on
32181 $(STDINT_H), redundant through BUILT_SOURCES.
32182 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
32183 Remove explicit dependency on $(SYSEXITS_H).
32184 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
32186 2005-07-18 Simon Josefsson <jas@extundo.com>
32188 * lib/check-version.c (check_version): Accept identical versions too.
32190 2005-07-18 Bruno Haible <bruno@clisp.org>
32192 * modules/lock: New file.
32193 * MODULES.html.sh (Multithreading): New section.
32195 2005-07-18 Bruno Haible <bruno@clisp.org>
32197 * m4/lock.m4: New file, from GNU gettext.
32199 2005-07-18 Bruno Haible <bruno@clisp.org>
32201 * lib/lock.h: New file, from GNU gettext.
32202 * lib/lock.c: New file, from GNU gettext.
32204 2005-07-18 Bruno Haible <bruno@clisp.org>
32206 * lib/lock.h (gl_once_t): New type.
32207 (gl_once_define, gl_once): New macros.
32208 * lib/lock.c (fresh_once): New variable.
32209 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
32212 2005-07-16 Simon Josefsson <jas@extundo.com>
32214 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
32215 workaround, suggested by Bruno.
32217 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
32219 * modules/xalloc (Depends-on): Add xalloc-die.
32220 * modules/xvasprintf (Depends-on): Add xalloc-die.
32222 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
32224 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
32225 with a minor change.
32227 2005-07-15 Bruno Haible <bruno@clisp.org>
32229 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
32230 When using lib/poll.c, define poll as rpl_poll.
32232 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
32234 * modules/argp (Depends-on): Remove unlocked-io.
32236 2005-07-14 Derek Price <derek@ximbiot.com>
32238 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
32239 for glob symlink bug.
32241 2005-07-14 Bruno Haible <bruno@clisp.org>
32243 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
32244 Instead, test for *_unlocked function declarations directly.
32246 2005-07-11 Simon Josefsson <jas@extundo.com>
32248 * modules/size_max: New file.
32250 * modules/xsize: Depend on size_max module for size_max.m4.
32252 2005-07-11 Simon Josefsson <jas@extundo.com>
32254 * lib/size_max.h: New file.
32256 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
32258 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
32259 copyright symbol and the year.
32260 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
32261 (version_etc_va): Use parameterized copyright notice.
32262 Reword to conform to the current GNU coding standards.
32264 2005-07-11 Karl Berry <karl@gnu.org>
32266 * doc/gnulib.texi (Quoting): new node.
32267 (Initial import): more info, from Patrice.
32269 2005-07-11 Bruno Haible <bruno@clisp.org>
32271 * gnulib-tool (func_usage): Document option --avoid.
32272 (Command line options): Handle --avoid.
32273 (func_acceptable): New function.
32274 (func_modules_transitive_closure): Use it.
32276 2005-07-11 Bruno Haible <bruno@clisp.org>
32278 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
32279 Reported by Jim Meyering.
32281 2005-07-10 Bruno Haible <bruno@clisp.org>
32283 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
32284 Needed when size_t is smaller than 'unsigned int'.
32285 Reported by Paul Eggert.
32287 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
32289 * modules/argp (Depends-on): Add unlocked-io
32291 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
32293 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
32296 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
32298 * config/srclist.txt: Comment out regcomp.c, since we have a porting
32301 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
32302 and Paul Eggert <eggert@cs.ucla.edu>
32304 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
32305 in wint_t, not wchar_t. Remove now-unnecessary cast.
32307 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
32309 * modules/regex (Files): Add lib/regex_internal.c,
32310 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
32311 (Depends-on): Add extensions.
32312 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
32314 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
32316 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
32318 * m4/same.m4 (gl_SAME): Likewise.
32319 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
32321 * m4/regex.m4: Adjust to new libc regex implementation.
32322 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
32323 all the .c and .h parts of (the new) regex.
32324 Quote the m4 stuff better.
32325 Check for RE_ICASE bug of old gnulib.
32326 Check for REG_STARTEND of recent libc.
32327 Rename local variables from jm_* to gl_*.
32328 Quote operand of "test -f".
32329 Say "recent enough" version of libc, not "version 2".
32330 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
32331 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
32332 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
32333 Remove check for btowc, isascii.
32334 Require AM_LANGINFO_CODESET.
32336 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
32338 * lib/regex.c, regex.h: Sync from libc.
32339 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
32341 New files, synced from libc, except that regex_internal.h
32342 currently has a small porting fix.
32344 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
32346 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
32347 regex_internal.c, regexec.c.
32348 Add regex_internal.h too, but as a comment, since the libc version
32349 is currently broken in gnulib mode.
32351 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
32353 Support programs like Emacs that use gnulib but not gettext.
32354 * MODULES.html.sh (Internationalization functions): Add gettext-h.
32355 * modules/gettext-h: New file.
32356 * modules/gettext (Files): Remove lib/gettext.h.
32357 (Depends-on): Add gettext-h.
32358 (Makefile.am): Remove lib_SOURCES.
32359 * modules/argmatch, modules/c-stack, modules/closeout:
32360 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
32361 * modules/execute, modules/file-type, modules/getaddrinfo:
32362 * modules/getopt, modules/human, modules/javacomp:
32363 * modules/javaexec, modules/mkdir-p, modules/obstack:
32364 * modules/openat, modules/pagealign_alloc, modules/pipe:
32365 * modules/quotearg, modules/regex, modules/rpmatch:
32366 * modules/unicodeio, modules/userspec, modules/version-etc:
32367 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
32369 Depend on gettext-h, not gettext.
32371 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
32373 * gnulib-tool (func_import): Add support for 'public domain' license.
32374 * modules/alloca, modules/atexit, modules/memmove:
32375 Now public domain, not GPL.
32376 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
32377 * modules/realloc, modules/strerror, modules/strtod:
32380 2005-07-05 Bruno Haible <bruno@clisp.org>
32382 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
32383 autoconf CVS. Needed for mingw.
32385 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
32387 Remove the dependency of the strftime module on the tzset module.
32388 * modules/strftime (Depends-on): Remove dependency on tzset.
32390 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
32392 Remove the dependency of the strftime module on the tzset module.
32393 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
32394 gl_FUNC_TZSET_CLOBBER.
32396 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
32398 Remove the dependency of the strftime module on the tzset module.
32399 * lib/strftime.c (my_strftime)
32400 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
32401 Copy the input structure, to work around some of the bug with
32402 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
32403 Solaris releases, you should also use the tzset module, but we won't
32404 require it as a dependency any more since we don't want LGPLed code
32405 to depend on GPLed code.
32407 2005-07-02 Jim Meyering <jim@meyering.net>
32409 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
32410 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
32411 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
32412 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
32414 2005-07-02 Jim Meyering <jim@meyering.net>
32416 * lib/backupfile.c (backup_args): Change a `0' to NULL.
32418 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
32420 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
32421 declares only 'struct timespec;' (!).
32423 2005-07-01 Jim Meyering <jim@meyering.net>
32425 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
32426 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
32427 * lib/save-cwd.c, tempname.c:
32428 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
32429 and don't include <sys/file.h>).
32431 2005-06-29 Jim Meyering <jim@meyering.net>
32433 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
32434 type name. Use the variable name instead.
32435 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
32438 2005-06-28 Simon Josefsson <jas@extundo.com>
32440 * modules/check-version (Files): Add check-version.m4.
32442 2005-06-28 Simon Josefsson <jas@extundo.com>
32444 * m4/check-version.m4: New file, suggested by Jim Meyering
32445 <jim@meyering.net>.
32447 2005-06-28 Simon Josefsson <jas@extundo.com>
32449 * lib/check-version.h, lib/check-version.c: New files.
32451 2005-06-28 Simon Josefsson <jas@extundo.com>
32453 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
32454 collision with global variable. Better indentation. Don't
32455 increment buffer pointer beyond buffer end. Based on comments
32456 from Paul Eggert <eggert@cs.ucla.edu>.
32458 * lib/base64.h: Indent.
32460 2005-06-28 Simon Josefsson <jas@extundo.com>
32462 * doc/gnulib.texi (Library version handling): New section.
32464 2005-06-28 Jim Meyering <jim@meyering.net>
32466 * check-module (find_included_lib_files): Hard-code another
32467 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
32468 but modules/fts-lgpl (correctly) does not list those files.
32470 * modules/canonicalize (Files): Add lib/pathmax.h.
32472 2005-06-25 Simon Josefsson <jas@extundo.com>
32474 * modules/check-version: New file.
32476 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
32478 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
32479 initializer of struct addrinfo, as an indication that we don't
32480 care how many members the structure has.
32482 2005-06-24 Derek Price <derek@ximbiot.com>
32483 and Bruno Haible <bruno@clisp.org>
32485 Remove stat module & update lstat.
32486 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
32487 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32488 * m4/stat.m4: Remove this file.
32490 2005-06-24 Derek Price <derek@ximbiot.com>
32491 and Bruno Haible <bruno@clisp.org>
32493 Remove stat module & update lstat.
32494 * lib/stat.c: Remove this file...
32495 (slash_aware_lstat): ...moving this content and its support...
32496 * lib/lstat.c (rpl_lstat): ...into here.
32497 * lib/lstat.h: New file.
32499 2005-06-24 Derek Price <derek@ximbiot.com>
32500 and Bruno Haible <bruno@clisp.org>
32502 Remove stat module & update lstat.
32503 * config/srclist.txt (libc sources): Remove stat.
32505 2005-06-24 Derek Price <derek@ximbiot.com>
32506 and Bruno Haible <bruno@clisp.org>
32508 Remove stat module & update lstat.
32509 * MODULES.html.sh (stat): Remove.
32510 * MODULES.html: Regenerated.
32511 * modules/lstat (Description): Correct function name.
32512 (Files): Add "lstat.h".
32513 (Depends-on): Remove stat, add xalloc, stat-macros.
32514 * modules/stat: Remove this file.
32515 (Include): Add "lstat.h", remove <sys/stat.h>.
32517 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
32519 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
32520 (ranged_convert): Don't save conversion in a temporary struct.
32521 This causes a warning with GCC 4.0.0, and anyway in the typical
32522 case it's not worth the extra 100 bytes or so of code.
32523 (ranged_convert, __mktime_internal): When calling a function via a
32524 pointer P, use P () rather than (*P) (), as we now assume C89 or
32527 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
32529 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
32530 "who -r" failed to give output. Problem reported by Tim Waugh.
32532 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
32533 (xcalloc): Use it to avoid needless tests.
32534 Problem reported by Jim Meyering.
32536 2005-06-20 Derek Price <derek@ximbiot.com>
32538 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
32539 unnecessary for Autoconfs > 2.59c.
32541 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
32543 * lib/argp.h (__option_is_short): Check upper limit of
32544 __key. Isprint() requires its argument to have the value
32545 of an unsigned char or EOF.
32547 2005-06-16 Jim Meyering <jim@meyering.net>
32549 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
32550 when either N or S is zero.
32552 2005-06-16 Derek Price <derek@ximbiot.com>
32554 * m4/bison.m4: Declare YACC & YFLAGS precious.
32556 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
32558 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
32559 multibyte string or pattern, fall back on unibyte matching.
32560 Problem reported by James Youngman.
32562 2005-06-08 Bruno Haible <bruno@clisp.org>
32564 * modules/csharpcomp: New file.
32565 * MODULES.html.sh (C#): Add csharpcomp.
32567 2005-06-08 Bruno Haible <bruno@clisp.org>
32569 * m4/csharpcomp.m4: New file, from GNU gettext.
32571 2005-06-08 Bruno Haible <bruno@clisp.org>
32573 * lib/csharpcomp.h: New file, from GNU gettext.
32574 * lib/csharpcomp.c: New file, from GNU gettext.
32575 * lib/csharpcomp.sh.in: New file, from GNU gettext.
32577 2005-06-08 Bruno Haible <bruno@clisp.org>
32579 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
32582 2005-06-07 Derek Price <derek@ximbiot.com>
32585 * lib/glob_.h: Indent nested #ifdef.
32587 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
32589 Sync from coreutils.
32590 Use "file name" when talking about file names, instead of "filename"
32591 or "path", as per the GNU coding standards.
32592 * lib/mkdir-p.c: Renamed from makepath.c.
32593 (make_dir_parents): Renamed from make_path. All callers changed.
32594 * lib/mkdir-p.h: Likewise. All includers changed.
32595 * lib/filenamecat.c: Renamed from path-concat.c.
32596 (file_name_concat): Renamed from path_concat. All callers changed.
32597 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
32598 * lib/filenamecat.h: Likewise. All includers changed.
32599 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
32600 in comments or local variable names.
32601 * lib/basename.c: Likewise.
32602 * lib/canonicalize.c, canonicalize.h: Likewise.
32603 * lib/dirname.c, dirname.h: Likewise.
32604 * lib/euidaccess.c: Likewise.
32605 * lib/exclude.c: Likewise
32606 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
32607 * lib/fsusage.c, fsuage.h: Likewise.
32608 * lib/fts.c, fts_.h: Likewise.
32609 * lib/getcwd.c: Likewise.
32610 * lib/getloadavg.c: Likewise.
32611 * lib/mkstemp.c: Likewise.
32612 * lib/mountlist.c, mountlist.h: Likewise.
32613 * lib/openat.c, openat.h: Likewise.
32614 * lib/readlink-stub.c: Likewise.
32615 * lib/readutmp.c, readutmp.h: Likewise.
32616 * lib/rename.c: Likewise.
32617 * lib/rmdir.c: Likewise.
32618 * lib/same.c: Likewise.
32619 * lib/savedir.c: Likewise.
32620 * lib/stripslash.c: Likewise.
32621 * lib/tempname.c: Likewise.
32622 * lib/xreadlink.c: Likewise.
32623 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
32625 * lib/exclude.h: Likewise.
32627 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
32628 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32629 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
32630 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32631 * lib/pathmax.h: Include <limits.h> unconditionally, since other
32632 files have been getting away with it for years (MORE/BSD 4.3
32634 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
32635 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32637 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
32638 Define to 256, not 255, as per modern POSIX.
32640 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
32642 Sync from coreutils.
32643 Use "file name" when talking about file names, instead of "filename"
32644 or "path", as per the GNU coding standards.
32645 * MODULES.html.sh: mkdir-p renamed from makepath.
32646 filenamecat renamed from path-concat.
32647 * modules/filenamecat: Renamed from modules/path-concat.
32648 (Files): filenamecat.h and filenamecat.c renamed from
32649 path-concat.h and path-concat.c.
32650 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
32651 (Include): filenamecat.h, not path-concat.h.
32652 * modules/mkdir-p: Renamed from modules/makepath.
32653 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
32655 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
32656 (Include): mkdir-p.h, not makepath.h.
32658 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
32660 Sync from coreutils.
32661 * m4/mkdir-p.m4: Renamed from makepath.m4.
32662 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
32663 Rename files from makepath.c to mkdir-p.c, and from
32664 makepath.h to mkdir-p.h.
32665 * m4/filenamecat.m4: Renamed from path-concat.m4.
32666 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
32667 Rename files from path-concat.c to filenamecat.c,
32668 and from path-concat.h to filenamecat.h.
32669 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
32670 "file name" in local variables or comments.
32671 * m4/rename.m4: Likewise.
32673 2005-06-01 Bruno Haible <bruno@clisp.org>
32675 * modules/csharpexec: New file.
32676 * MODULES.html.sh (C#): New section.
32678 2005-06-01 Bruno Haible <bruno@clisp.org>
32680 * m4/csharp.m4: New file, from GNU gettext.
32681 * m4/csharpexec.m4: New file, from GNU gettext.
32683 2005-06-01 Bruno Haible <bruno@clisp.org>
32685 * lib/csharpexec.h: New file, from GNU gettext.
32686 * lib/csharpexec.c: New file, from GNU gettext.
32687 * lib/csharpexec.sh.in: New file, from GNU gettext.
32689 2005-05-31 Derek Price <derek@ximbiot.com>
32690 Paul Eggert <eggert@cs.ucla.edu>
32693 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32695 2005-05-31 Derek Price <derek@ximbiot.com>
32696 Paul Eggert <eggert@cs.ucla.edu>
32699 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32701 2005-05-29 Derek Price <derek@ximbiot.com>
32703 * config/srclist.txt (glob_.h, glob.c): Add these files.
32705 2005-05-29 Derek Price <derek@ximbiot.com>
32707 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
32708 * modules/glob: New file.
32709 * modules/getlogin_r: Add link to POSIX spec in description.
32711 2005-05-29 Derek Price <derek@ximbiot.com>
32712 Paul Eggert <eggert@cs.ucla.edu>
32714 * m4/glob.m4: New file.
32716 2005-05-29 Derek Price <derek@ximbiot.com>
32717 Paul Eggert <eggert@cs.ucla.edu>
32719 * lib/glob_.h, lib/glob.c: New files.
32721 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
32723 * modules/fts (Files): Remove m4/inttypes-pri.m4.
32724 * modules/fts-lgpl (Depends-on): Remove gettext.
32726 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
32728 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
32729 and don't require gt_INTTYPES_PRI.
32731 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
32733 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
32735 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
32736 the configuration hassle isn't worth it.
32737 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
32738 (LONGEST_MODIFIER, PRIuMAX): Remove.
32740 2005-05-27 Bruno Haible <bruno@clisp.org>
32742 * lib/getlogin_r.h: Remove second include of <stddef.h>.
32744 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
32746 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
32747 _POSIX_PTHREAD_SEMANTICS for Solaris.
32749 2005-05-25 Derek Price <derek@ximbiot.com>
32751 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
32753 2005-05-25 Derek Price <derek@ximbiot.com>
32754 Paul Eggert <eggert@cs.ucla.edu>
32756 * modules/getlogin_r, m4/getlogin_r.m4: New files.
32757 * lib/getlogin_r.c, getlogin_r.h: New files.
32759 2005-05-25 Bruno Haible <bruno@clisp.org>
32760 Derek Price <derek@ximbiot.com>
32762 * lib/getlogin_r.h: Simplify API documentation.
32764 2005-05-23 Derek Price <derek@ximbiot.com>
32766 * modules/minmax (Files): Add m4/minmax.m4.
32767 (configure.ac): Add gl_MINMAX.
32769 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
32771 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
32772 so that unistd-safer.h (GPL'ed code) need not be included.
32774 2005-05-22 Bruno Haible <bruno@clisp.org>
32776 * m4/minmax.m4: New file.
32777 Based on a patch by Derek Price <derek@ximbiot.com>.
32779 2005-05-22 Bruno Haible <bruno@clisp.org>
32781 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
32782 (INT64_MIN): Fix definition.
32783 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
32785 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
32786 NEED_SIGNED_INT_TYPES.
32788 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
32789 HAVE_SYSTEM_INTTYPES.
32791 2005-05-22 Bruno Haible <bruno@clisp.org>
32793 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
32794 Also include <sys/param.h> if it defines MIN, MAX.
32795 Based on a patch by Derek Price <derek@ximbiot.com>.
32797 2005-05-21 Jim Meyering <jim@meyering.net>
32799 * modules/fts (Files): Add m4/inttypes-pri.m4.
32800 (Depends-on): Add lstat and remove gettext. Alphabetize.
32802 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
32805 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
32806 (setup_dir, free_dir): New functions.
32807 (enter_dir, leave_dir): Define trivial
32808 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
32809 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
32810 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
32811 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
32812 Move to fts-cycle.c.
32813 (fts_open): Use setup_dir.
32814 (fts_close): Use free_dir.
32815 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
32816 This adds a label and some gotos, but the alternatives were messier.
32817 Check for memory allocation failure when entering a dir.
32818 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
32819 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
32820 (FTS): New member fts_cycle, that is a union that contains the
32821 old active_dir_ht and cycle_state. All uses changed to mention
32822 fts_cycle.ht and fts_cycle.state.
32823 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
32824 fts.c, with the following changes:
32825 (setup_dir, free_dir): New functions.
32826 (enter_dir): Now returns bool. Return true if successful, false
32827 if memory exhausted. All callers changed.
32828 Do not bother partly cleaning up on
32829 memory allocation failure; that is free_dir's job.
32830 However, free ad if hash_insert fails, to avoid memory leak.
32831 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
32832 fts->fts_options to see which union member to use.
32834 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
32836 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
32837 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
32839 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
32841 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
32843 2005-05-20 Jim Meyering <jim@meyering.net>
32845 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
32846 Now a macro, to pacify GCC.
32848 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
32850 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
32853 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
32855 * lib/chown.c (rpl_chown): Return -1 on failure.
32857 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
32859 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
32860 Don't check for stddef.h.
32861 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
32862 don't use its results.
32863 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
32864 since we include them unconditionally. Don't require
32865 AM_STDBOOL_H, since stdbool is a prerequisite.
32866 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
32867 since we assume C89 or better.
32868 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
32869 as we don't use their results.
32870 Don't check for fchdir, memmove, memset, strrchr, as we use
32871 them unconditionally.
32872 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
32873 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
32875 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
32877 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
32878 Include <stddef.h> unconditionally, since we assume C89 now.
32879 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
32880 * lib/fts.c: Include fts_.h first, to check interface.
32881 Do not include intprops.h; no longer needed.
32882 Include cycle-check.h and hash.h, since fts_.h no longer does.
32883 Remove unnecessary casts of closedir to void.
32884 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
32885 decide whether to decrement nlinks.
32886 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
32887 (FTS): Use struct hash_table * instead of Hash_table, so that
32888 we no longer need to include hash.h here.
32890 2005-05-18 Jim Meyering <jim@meyering.net>
32892 * modules/dirfd (License): Change to LGPL. Most of the code
32893 is already in the public domain.
32895 2005-05-18 Jim Meyering <jim@meyering.net>
32897 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
32898 Reported by Yoann Vandoorselaere.
32900 2005-05-17 Jim Meyering <jim@meyering.net>
32902 * m4/fts.m4: New file, from coreutils.
32904 2005-05-17 Jim Meyering <jim@meyering.net>
32906 * lib/fts.c, lib/fts_.h: New files, from coreutils.
32908 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
32910 Sync from coreutils.
32911 * m4/unlinkdir.m4: New file.
32913 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
32915 Sync from coreutils.
32916 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
32917 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
32918 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
32919 White space changes only.
32920 * lib/makepath.c (make_path): Port to hosts where leading "//" is
32922 * lib/yesno.c: Include getline.h, not ctype.h.
32923 (yesno): Don't remove leading white space; POSIX doesn't allow it.
32924 Use getline to remove arbitrary restriction on response length.
32926 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
32928 * config/srclist-update: Spell out "Street" in FSF postal
32929 mail address; this is the style the FSF seems to prefer.
32931 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
32932 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
32933 this updates FSF postal mail address.
32935 Sync from coreutils.
32936 * modules/unlinkdir: New file.
32937 * modules/yesno (Depends-on): Add getline.
32938 * MODULES.html.sh (File system functions): Add unlinkdir.
32940 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
32942 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
32944 Change the initial comment to refer to GPL, not LGPL.
32945 gnulib-tool will change it to LGPL as needed.
32947 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
32948 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
32949 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
32950 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
32951 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
32952 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
32953 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
32954 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
32955 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
32956 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
32957 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
32958 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
32959 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
32960 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
32961 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
32962 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
32963 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
32964 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
32965 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
32966 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
32967 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
32968 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
32969 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
32970 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
32971 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
32972 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
32973 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
32974 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
32975 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
32976 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
32977 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
32978 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
32979 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
32980 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
32981 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
32982 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
32983 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
32984 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
32985 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
32986 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
32987 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
32988 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
32989 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
32990 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
32991 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
32992 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
32993 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
32994 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
32995 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
32996 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
32997 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
32998 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
32999 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
33000 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
33001 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
33002 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
33003 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
33004 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
33005 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
33006 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
33007 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
33008 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
33009 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
33010 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
33011 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
33012 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
33013 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
33014 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
33015 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
33016 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
33017 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
33018 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
33019 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
33020 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
33021 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
33022 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
33023 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
33024 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
33025 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
33026 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
33027 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
33028 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
33029 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
33030 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
33031 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
33032 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
33033 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
33034 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
33035 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
33036 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
33037 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
33038 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
33039 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
33040 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
33041 lib/yesno.c, lib/yesno.h:
33042 Update FSF postal mail address.
33044 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
33046 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
33047 tests/test-memmem.c, tests/test-stpncpy.c:
33048 Update FSF postal mail address.
33050 2005-05-13 Bruno Haible <bruno@clisp.org>
33052 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
33053 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
33054 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
33055 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
33056 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
33057 Add support for 64-bit integers in the MSVC compiler.
33059 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33061 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
33063 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
33065 * gnulib-tool (func_import): Sort and uniquify recommended includes.
33067 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
33069 * doc/getdate.texi (General date syntax): Don't say that date
33070 date --iso-8601=ns generates acceptable dates; it doesn't yet.
33071 Problem reported by Nic Ferrier.
33073 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33075 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
33076 specified in ai_socktype. Fix invalid ai_protocol
33077 check. ai_protocol is usually set to 0 or depending on
33078 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
33079 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
33080 ai_socktype / ai_protocol in the returned addrinfo structure.
33082 2005-05-10 Simon Josefsson <jas@extundo.com>
33084 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
33085 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33087 2005-05-10 Karl Berry <karl@gnu.org>
33089 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
33090 (from http://www.gnu.org/licenses).
33091 * doc/COPYING.LIB: also rename to COPYING.LESSER.
33092 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
33095 2005-05-10 Karl Berry <karl@gnu.org>
33097 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
33098 (COPYING.DOC): remove.
33100 * config/srclist-update: new FSF address.
33102 2005-05-10 Derek Price <derek@ximbiot.com>
33104 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
33107 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33108 Bruno Haible <bruno@clisp.org>
33110 * modules/inet_ntop: New file.
33111 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33114 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33115 Bruno Haible <bruno@clisp.org>
33117 * m4/inet_ntop.m4: New file.
33119 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
33120 Bruno Haible <bruno@clisp.org>
33122 * lib/inet_ntop.h: New file.
33123 * lib/inet_ntop.c: New file, from glibc with modifications.
33125 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
33127 * modules/time_r (License): Change to LGPL.
33128 * modules/extensions (License): Change to LGPL. Actually,
33129 the license is more permissive than that, but currently gnulib-tool
33130 doesn't know how to handle more-permissive licenses.
33132 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
33133 Problem reported by Dave Love.
33135 2005-05-08 Jim Meyering <jim@meyering.net>
33137 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
33140 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
33142 * modules/argmatch (Depends-on): Add stdbool.
33143 * modules/backupfile (Depends-on): Likewise.
33144 * modules/chdir-long (Depends-on): Likewise.
33145 * modules/closeout (Depends-on): Likewise.
33146 * modules/cycle-check (Depends-on): Likewise.
33147 * modules/dirname (Depends-on): Likewise.
33148 * modules/fnmatch (Depends-on): Likewise.
33149 * modules/fsusage (Depends-on): Likewise.
33150 * modules/fwriteerror (Depends-on): Likewise.
33151 * modules/getcwd (Depends-on): Likewise.
33152 * modules/getloadavg (Depends-on): Likewise.
33153 * modules/hard-locale (Depends-on): Likewise.
33154 * modules/makepath (Depends-on): Likewise.
33155 * modules/mountlist (Depends-on): Likewise.
33156 * modules/nanosleep (Depends-on): Likewise.
33157 * modules/posixtm (Depends-on): Likewise.
33158 * modules/quotearg (Depends-on): Likewise.
33159 * modules/readtokens (Depends-on): Likewise.
33160 * modules/readtokens0 (Depends-on): Likewise.
33161 * modules/readutmp (Depends-on): Likewise.
33162 * modules/save-cwd (Depends-on): Likewise.
33163 * modules/strftime (Depends-on): Likewise.
33164 * modules/userspec (Depends-on): Likewise.
33165 * modules/utimecmp (Depends-on): Likewise.
33166 * modules/xgetcwd (Depends-on): Likewise.
33167 * modules/xnanosleep (Depends-on): Likewise.
33168 * modules/xstrtod (Depends-on): Likewise.
33169 * modules/yesno (Depends-on): Likewise.
33171 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
33173 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
33176 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
33178 Merge from coreutils. Among other things,
33179 add bulletproofing for cases where stdin, stdout, or stderr are closed.
33180 * lib/fd-safer.c: New file.
33181 * lib/fcntl-safer.h, open-safer.c: Remove.
33182 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
33183 * lib/dup-safer.c: Include unistd-safer.h first.
33184 Don't include errno.h.
33185 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
33186 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
33187 * lib/file-type.c: Rely on file-type.h change.
33188 * lib/getloadavg.c: Include unistd-safer.h.
33189 (getloadavg): Use safer open.
33190 * lib/getusershell.c: Include "stdio-safer.h".
33191 (getusershell): Use safer fopen.
33192 * lib/long-options.c (long_options): Use NULL rather than 0.
33193 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
33195 * lib/modechange.c: Likewise.
33196 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
33197 (MODE_DONE): New constant.
33198 (struct mode_change): Remove 'next' member.
33199 (make_node_op_equals): New function; like the old one of the
33200 same name, except it allocates an array.
33201 (mode_compile, mode_create_from_ref): Use it.
33202 (mode_compile): Allocate result as an array, not a linked list.
33203 Parse octal string ourself, so that we catch mistakes like "+0".
33204 (mode_adjust): Arg is an array, not a linked list.
33205 * lib/modechange.c: Include stat-macros.h, xalloc.h.
33206 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
33207 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
33208 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
33209 Remove. This is now stat-macros.h's job.
33210 (talloc): Remove. All callers replaced by xalloc, so that
33211 our invokers don't have to worry about reporting memory failures.
33212 (make_node_op_equals): Remove.
33213 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
33215 (struct mode_change): Moved here from modechange.h.
33216 (mode_append_entry): Remove.
33217 (mode_compile): Remove MASKED_OPS arg, since it encouraged
33218 apps to have incorrect behavior. Use simpler algorithm for head
33219 and tail. Don't futz with umask; that's now the job of mode_adjust.
33220 Detect more invalid usages rather than having somewhat-random behavior.
33221 Don't insert an "a=" action, as that leads to incorrect behavior.
33222 (mode_compile, mode_create_from_ref): Return NULL on error instead
33223 of an enum, since now there's only one way to have an error. All
33225 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
33226 at the correct time. Simplify calculation of "+u" and its ilk.
33227 Don't mishandle "+X".
33228 (mode_free): Remove "register" and localize decls.
33229 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
33230 (struct mode_change): Move to modechange.c; callers don't
33231 need to see this stuff.
33232 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
33233 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
33234 (mode_change, mode_adjust): Reflect the new signatures noted above.
33235 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
33236 that might redefine system include files.
33237 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
33238 (my_usleep): Use NULL rather than (void *) 0.
33239 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
33240 Use siginterrupt to specify that system calls should be interrupted.
33241 (rpl_nanosleep): Move initialization of suspended closer to call of
33243 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
33244 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
33245 (desirable_utmp_entry): New function.
33246 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
33247 using x2nrealloc, to simplify logic.
33248 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
33249 size calculation. Do not assume utmp file is a regular file.
33250 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
33251 (READ_UTMP_CHECK_PIDS): New constant.
33252 * lib/save-cwd.c: Include unistd-safer.h.
33253 (save_cwd): Use fd_safer.
33254 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
33255 [!_LIBC] Include "stat-macros.h" instead.
33256 * lib/unistd-safer.h (fd_safer): New decl.
33258 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
33260 * modules/getloadavg (Depends-on): Add unistd-safer.
33261 * modules/getusershell (Depends-on): Add stdio-safer.
33262 * modules/lstat (Depends-on): Remove xalloc.
33263 * modules/mkstemp (Depends-on): Add stat-macros.
33264 * modules/modechange (Depends-on): Remove xstrtol.
33265 Add stat-macros, xalloc.
33266 * modules/save-cwd (Depends-on): Add unistd-safer.
33267 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
33268 * modules/unistd-safer (Files): Add lib/fd-safer.c
33269 (Makefile.am): Remove lib_SOURCES.
33271 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
33272 Remove fcntl-safer; unistd-safer supersedes it.
33274 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
33276 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
33278 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
33279 (gl_PREREQ_CHOWN): Remove.
33280 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
33281 it. Don't require AC_HEADER_STAT.
33282 (gl_PREREQ_LSTAT): Remove.
33283 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
33284 Don't require AC_HEADER_STAT.
33285 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
33286 (gl_PREREQ_RMDIR): Remove.
33287 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
33288 mention stat-macros.h or AC_HEADER_STAT, since we'll make
33289 the stat-macros module a prerequisite.
33290 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
33291 * m4/filemode.m4 (gl_FILEMODE): Likewise.
33292 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
33293 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
33294 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
33296 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
33297 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
33299 * m4/fcntl-safer.m4: Remove.
33300 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
33301 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
33302 Invoke gl_PREREQ_FD_SAFER.
33303 (gl_PREREQ_FD_SAFER): New macro.
33304 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
33305 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
33306 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
33307 Remove duplicate call to AC_LIBOBJ(readutmp).
33308 (gl_PREREQ_READUTMP): Remove. All uses inlined.
33310 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
33311 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
33313 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
33315 * MODULES.html.sh (Misc): Add byteswap.
33317 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
33319 * modules/getcwd (Depends-on): Add extensions.
33320 * modules/openat (Depends-on): Likewise.
33322 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
33324 * modules/byteswap: New file.
33326 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
33328 * m4/byteswap.m4: New file.
33330 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
33332 * lib/byteswap_.h: New file.
33334 2005-04-25 Karl Berry <karl@gnu.org>
33336 * m4/gettext.m4: Update from GNU gettext 0.14.4.
33338 2005-04-25 Albert Chin <china@thewrittenword.com>
33340 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
33343 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
33345 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
33346 (func_ln_if_changed) Remove forcibly for no error message
33347 in case file does not exist.
33349 2005-04-19 Simon Josefsson <jas@extundo.com>
33351 * gnulib-tool (Options): Make --symlink mean --symbolic.
33353 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
33355 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
33357 2005-04-16 Simon Josefsson <jas@extundo.com>
33359 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
33361 2005-04-15 Simon Josefsson <jas@extundo.com>
33363 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
33365 2005-04-15 Simon Josefsson <jas@extundo.com>
33367 * gnulib-tool: Rename --symlink to --symbolic.
33369 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
33371 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
33372 symbolic links to files instead of copying/moving. Add --aux-dir,
33373 specifying directory relative --dir where auxiliary build tools
33376 2005-04-14 Bruno Haible <bruno@clisp.org>
33378 * modules/allocsa (License): Change to LGPL.
33379 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33381 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
33383 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
33384 that "UTC +1 second" continues to work. Problem reported
33385 by Dmitry V. Levin.
33386 (relunit_snumber): New rule.
33389 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
33391 * lib/getdate.y (universal_time_zone_table): New constant.
33392 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
33393 universal_time_zone_table.
33394 (lookup_zone): Prefer universal_time_zone_table to
33395 local_time_zone_table, so that "GMT" time stamps are allowed in
33396 London during the summer. Problem reported by Ian Abbott.
33398 2005-04-12 Jim Meyering <jim@meyering.net>
33400 * lib/human.c (humblock): Set *options even when returning due to
33401 xstrtoumax conversion failure. Thanks to a used-uninitialized
33402 warning from gcc-4.
33404 2005-04-09 Jim Meyering <jim@meyering.net>
33406 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
33407 -Wuninitialized: initialize tm0.tm_year.
33409 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
33411 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
33412 count, since there's no maximum. All uses changed.
33413 Add member dsts_seen.
33414 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
33416 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
33417 Use pc_rels_seen to decide whther a date is absolute.
33419 * lib/getdate.y (number): Don't overwrite year.
33420 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
33423 2005-04-02 Simon Josefsson <jas@extundo.com>
33425 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
33426 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
33428 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
33430 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
33431 where no absolute path name can be longer than PATH_MAX.
33433 2005-03-27 Jim Meyering <jim@meyering.net>
33435 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
33437 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
33439 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
33440 "one's complement" -> "ones' complement" in comment, as per Knuth.
33441 "value of type" -> "type or expression" in comment.
33442 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
33444 2005-03-26 Jim Meyering <jim@meyering.net>
33447 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
33448 Correct typos: s/or/of/.
33450 2005-03-26 Jim Meyering <jim@meyering.net>
33452 * modules/check-include-files: Move to ../ and rename to...
33453 * check-module: ...this.
33455 2005-03-25 Jim Meyering <jim@meyering.net>
33457 * modules/xvasprintf (Files): Add xalloc.h.
33459 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
33461 * modules/gettext (Files): config/config.rpath ->
33462 build-aux/config.rpath
33463 * modules/iconv (Files): Likewise.
33464 Problem reported by Oskar Liljeblad.
33466 2005-03-23 Jim Meyering <jim@meyering.net>
33468 * modules/check-include-files: New script to check for
33469 missing dependencies, multiple includes, etc.
33471 * modules/c-strtold (Depends-on): Add xalloc.
33472 * modules/c-strtod (Depends-on): Add xalloc.
33473 * modules/hash (Depends-on): Add xalloc.
33474 (Files): Remove lib/xalloc.h.
33476 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
33477 * modules/userspec (Files): Add lib/inttostr.h.
33479 2005-03-23 Jim Meyering <jim@meyering.net>
33481 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
33483 2005-03-22 Jim Meyering <jim@meyering.net>
33485 * modules/stat-macros: New module.
33486 * modules/canonicalize, modules/euidaccess, modules/file-type,
33487 * modules/filemode, modules/lchown, modules/makepath,
33488 * modules/rmdir, modules/stat: Depend on new stat-macros module
33489 rather than listing lib/stat-macros.h manually.
33490 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
33492 2005-03-22 Jim Meyering <jim@meyering.net>
33494 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
33496 2005-03-22 Bruno Haible <bruno@clisp.org>
33498 * config/srclist.txt: Replace target directory 'config' with
33500 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
33501 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
33504 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
33506 * modules/chdir-long (Depends-on): Add mempcpy.
33508 * modules/acl, modules/backupfile, modules/c-strtod,
33509 modules/c-strtold, modules/canon-host, modules/canonicalize,
33510 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
33511 modules/exclude, modules/exitfail, modules/file-type,
33512 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
33513 modules/getdate, modules/getline, modules/getpagesize,
33514 modules/getpass, modules/getugroups, modules/group-member,
33515 modules/hard-locale, modules/hash, modules/human, modules/idcache,
33516 modules/inttostr, modules/long-options, modules/makepath,
33517 modules/md5, modules/memcasecmp, modules/memcoll,
33518 modules/modechange, modules/mountlist, modules/path-concat,
33519 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
33520 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
33521 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
33522 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
33523 modules/strftime, modules/strndup, modules/strverscmp,
33524 modules/timespec, modules/unlocked-io, modules/userspec,
33525 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
33527 Remove lib_SOURCES line from Makefile.am section, as this is now
33528 done automatically by the corresponding Autoconf macro.
33530 2005-03-21 Jim Meyering <jim@meyering.net>
33532 Changes imported from coreutils.
33534 * lib/cycle-check.c: Don't include xalloc.h.
33536 * lib/path-concat.c: Don't include assert.h.
33537 (path_concat): Remove assertion that would have triggered
33538 for ABASE starting with more than one slash.
33539 Reported by Andreas Schwab.
33541 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
33542 properly when ABASE is an absolute file name.
33543 Correct the description of this function.
33544 Include <assert.h>.
33545 Add an assertion and a test driver.
33546 This fixes a bug introduced on 2004-07-02.
33547 Andreas Schwab reported the resulting failure of cp --parents:
33548 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
33550 2005-03-21 Jim Meyering <jim@meyering.net>
33552 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
33553 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
33555 2005-03-21 Jim Meyering <jim@meyering.net>
33556 and Paul Eggert <eggert@cs.ucla.edu>
33558 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
33559 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
33560 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
33561 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
33562 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
33563 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
33564 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
33565 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
33566 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
33567 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
33568 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
33569 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
33570 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
33571 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
33572 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
33573 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
33574 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
33577 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
33579 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
33580 (which shouldn't happen), generate nothing instead of returning 0
33581 immediately, so that nstrftime (NULL, ...) doesn't return 0.
33583 2005-03-16 Bruno Haible <bruno@clisp.org>
33585 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
33586 HAVE_LONGLONG_64BIT.
33588 2005-03-16 Bruno Haible <bruno@clisp.org>
33590 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
33591 HAVE_LONGLONG_64BIT.
33593 2005-03-16 Bruno Haible <bruno@clisp.org>
33595 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
33596 HAVE_LONGLONG_64BIT.
33598 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
33600 * lib/strftime.c (my_strftime): Prepend space to format so that we can
33601 reliably distinguish strftime failure from empty output on POSIX
33604 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
33606 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
33607 (iconv_string): Don't guess a size-zero buffer, as that might cause
33608 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
33609 result would be 'too large', where 'too large' is (heuristically)
33610 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
33611 overflow concerns. This will prevent some unwanted malloc failures
33612 when the inputs are very large.
33614 2005-03-15 Karl Berry <karl@gnu.org>
33616 * config/srclist.txt (config.rpath): from gettext.
33617 * config/config.rpath: update.
33619 2005-03-15 Bruno Haible <bruno@clisp.org>
33621 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
33624 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
33627 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
33630 2005-03-14 Simon Josefsson <jas@extundo.com>
33632 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
33635 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
33637 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
33638 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
33640 * lib/strtol.c: Likewise.
33642 2005-03-14 Jim Meyering <jim@meyering.net>
33644 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
33645 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
33646 to be nonzero so that we (and caller) can detect the difference
33647 between a valid zero-length expansion and an error return, even
33648 when the underlying strftime fails before writing anything into
33651 2005-03-14 Bruno Haible <bruno@clisp.org>
33653 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
33654 Update from GNU gettext 0.14.3.
33656 2005-03-10 Jim Meyering <jim@meyering.net>
33658 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
33660 2005-03-10 Jim Meyering <jim@meyering.net>
33662 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
33663 so that this module works on systems without fchdir.
33665 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
33667 Factor int-properties macros into a single file, except for
33668 glibc-related files.
33669 * lib/intprops.h: New file.
33670 * lib/getloadavg.c: Include it instead of limits.h.
33671 (INT_STRLEN_BOUND): Remove.
33672 * lib/human.c: Include intprops.h.
33673 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
33674 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
33676 * lib/inttostr.h: Include intprops.h instead of limits.h.
33677 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
33678 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
33679 for consistency with intprops.h.
33680 (time_t_is_integer, twos_complement_arithmetic): Use them.
33681 * lib/sig2str.h: Include <signal.h>, intprops.h.
33682 (INT_STRLEN_BOUND): Remove.
33683 * lib/strftime.c (TYPE_SIGNED): Remove.
33684 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
33685 * lib/strtol.c: Adjust comments to match intprops.h.
33686 * lib/userspec.c: Include intprops.h.
33687 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
33688 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
33689 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
33690 instead of rolling our own expressions.
33691 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
33693 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
33695 (my_strftime): Do not mishandle years close to INT_MAX, by doing
33696 the right thing even if adding 1900 would overflow. Similarly
33697 for tm_mon + 1 and tm_yday + 1.
33698 Make %Y always equivalent to %C%y, and similarly for %G and %g.
33699 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
33700 (DO_SIGNED_NUMBER): New macro.
33701 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
33703 2005-03-07 Bruno Haible <bruno@clisp.org>
33705 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
33707 2005-03-07 Bruno Haible <bruno@clisp.org>
33709 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
33711 2005-03-04 Derek R. Price <derek@ximbiot.com>
33713 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
33714 (func_import): Only replace files via --import when they have actually
33717 2005-03-03 Derek R. Price <derek@ximbiot.com>
33719 * m4/mmap-anon.m4: New file.
33720 * m4/pagealign_alloc.m4: New file.
33722 2005-03-03 Derek R. Price <derek@ximbiot.com>
33723 Bruno Haible <bruno@clisp.org>
33725 * modules/pagealign_alloc: New file.
33726 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
33728 2005-03-03 Derek R. Price <derek@ximbiot.com>
33729 Bruno Haible <bruno@clisp.org>
33731 * lib/pagealign_alloc.h: New file.
33732 * lib/pagealign_alloc.c: New file.
33734 2005-03-03 Bruno Haible <bruno@clisp.org>
33736 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
33737 Use an all-permissive copyright notice, recommended by RMS.
33739 2005-03-02 Bruno Haible <bruno@clisp.org>
33741 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
33742 of AIX, the replacement has to be done only after <string.h> is
33743 included, therefore not in config.h. stpncpy.h does the replacement,
33744 and stpncpy.c uses it.
33746 2005-03-02 Bruno Haible <bruno@clisp.org>
33748 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
33751 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
33753 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
33754 The workaround isn't strictly needed for POSIX conformance, and
33755 it's too much of a pain to configure and maintain. We'll ask
33756 people to fix their kernels instead.
33757 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
33758 (NANOSLEEP_BUG_WORKAROUND): Remove.
33759 (xnanosleep): Remove the workaround.
33761 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
33763 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
33764 Reported by Derek Price.
33765 (Include): Add "timespec.h".
33767 * modules/xnanosleep (Depends-on): Remove gethrxtime.
33769 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
33771 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
33772 to detect nanosleep bug.
33774 2005-03-01 Bruno Haible <bruno@clisp.org>
33776 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
33778 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
33780 * modules/gethrxtime: New file.
33781 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
33782 (Depends-on): Add gethrxtime.
33783 (configure.ac): Add gl_XNANOSLEEP.
33784 (Makefile.am): Remove lib_SOURCES line.
33786 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
33788 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
33789 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
33791 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
33793 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
33794 * lib/timespec.h (gettime): Return void, since it always
33795 succeeds now. All uses changed.
33796 * lib/gettime.c (gettime) Likewise.
33797 [HAVE_NANOTIME]: Prefer nanotime.
33798 Assume gettimeofday succeeds, as POSIX requires.
33799 Assime time () succeeds, since other code already does.
33800 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
33801 (timespec_subtract): Remove.
33802 (NANOSLEEP_BUG_WORKAROUND): New constant.
33803 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
33804 things considerably. Use it only on GNU/Linux hosts, since the
33805 workaround shouldn't be needed elsewhere.
33807 2005-02-24 Bruno Haible <bruno@clisp.org>
33809 * modules/gettext (Files): Add m4/glibc2.m4.
33811 2005-02-24 Bruno Haible <bruno@clisp.org>
33813 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
33814 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
33816 Update from GNU gettext 0.14.2.
33817 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
33819 2005-02-24 Bruno Haible <bruno@clisp.org>
33821 * lib/localcharset.c: Update from GNU gettext 0.14.2.
33822 * lib/config.charset: Update from GNU gettext 0.14.2.
33824 2005-02-24 Bruno Haible <bruno@clisp.org>
33826 * lib/gettext.h: Update from GNU gettext 0.14.2.
33828 2005-02-23 Simon Josefsson <jas@extundo.com>
33830 * m4/iconvme.m4: New file.
33832 2005-02-23 Jim Meyering <jim@meyering.net>
33834 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
33836 Thanks to Bruno Haible for catching it.
33838 2005-02-22 Simon Josefsson <jas@extundo.com>
33840 * modules/iconvme: New file.
33842 * MODULES.html.sh: Add iconvme.
33844 2005-02-22 Simon Josefsson <jas@extundo.com>
33846 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
33848 2005-02-22 Simon Josefsson <jas@extundo.com>
33850 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
33852 2005-02-22 Jim Meyering <jim@meyering.net>
33854 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
33857 2005-02-20 Neil Conway <neilc@samurai.com>
33859 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
33860 returned by OSX/Darwin if the specified buffer is not large
33861 enough for the hostname.
33863 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33865 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
33866 pass it to _help, otherwise the latter coredumps trying to
33867 dereference state.root_argp.
33869 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
33871 * modules/chdir-long (Depends-on): Add memrchr.
33872 * modules/memrchr (Files): Add lib/memrchr.h.
33873 (Include): "memrchr.h".
33875 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
33877 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
33879 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
33881 * lib/memrchr.h: New file.
33882 * lib/chdir-long.c: Include it.
33883 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
33884 Don't bother including stddef.h.
33886 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
33888 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
33890 Include <sys/types.h>, for dev_t.
33891 (ME_DUMMY, ME_REMOTE): Move from here....
33892 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
33893 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
33895 Include mountlist.h first, to test the interface.
33897 2005-01-29 Bruno Haible <bruno@clisp.org>
33899 * lib/progname.c (program_name): Initialize.
33900 Needed when linking statically on MacOS X.
33902 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
33904 Sync from coreutils.
33905 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
33906 (Depends-on): Add c-strtod.
33907 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
33909 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
33911 Sync from coreutils.
33912 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
33914 Remove files that are specific to coreutils.
33915 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
33917 2005-01-28 Bruno Haible <bruno@clisp.org>
33919 * modules/javacomp: New file.
33920 * MODULES.html.sh (Java): Add javacomp.
33922 2005-01-28 Bruno Haible <bruno@clisp.org>
33924 * m4/javacomp.m4: New file, from GNU gettext.
33926 2005-01-28 Bruno Haible <bruno@clisp.org>
33928 * lib/javacomp.sh.in: New file, from GNU gettext.
33929 * lib/javacomp.h: New file, from GNU gettext.
33930 * lib/javacomp.c: New file, from GNU gettext.
33932 2005-01-26 Simon Josefsson <jas@extundo.com>
33934 * lib/gai_strerror.c: Use GPL in header.
33936 2005-01-26 Bruno Haible <bruno@clisp.org>
33938 * modules/javaexec: New file.
33939 * MODULES.html.sh (Java): Add javaexec.
33941 2005-01-26 Bruno Haible <bruno@clisp.org>
33943 * m4/javaexec.m4: New file, from GNU gettext.
33945 2005-01-26 Bruno Haible <bruno@clisp.org>
33947 * lib/javaexec.sh.in: New file, from GNU gettext.
33948 * lib/javaexec.h: New file, from GNU gettext.
33949 * lib/javaexec.c: New file, from GNU gettext.
33951 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33953 * modules/lchown (Depends-on): Remove lchown.h
33955 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33957 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
33958 must be defined if the header file was not found, in order
33959 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
33961 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
33963 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
33964 initializers for struct pentry_state.
33965 (__argp_error): Check return value of __asprintf
33966 (__argp_failure): Translate error message
33968 * lib/argp-parse.c: Removed braces around the expansion of N_()
33970 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
33972 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
33973 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
33974 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
33975 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
33976 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
33977 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
33978 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
33979 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
33980 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
33981 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
33982 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
33983 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
33984 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
33985 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
33986 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
33987 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
33988 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
33989 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
33990 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
33991 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
33992 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
33993 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
33994 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
33995 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
33996 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
33997 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
33998 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
33999 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
34000 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
34001 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
34002 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
34003 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
34004 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
34005 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
34006 xstrtol.m4, xstrtoumax.m4, yesno.m4:
34007 Use an all-permissive copyright notice, recommended by RMS.
34009 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
34011 * modules/chdir-long (Depends-on): Remove mempcpy.
34013 2005-01-21 Jim Meyering <jim@meyering.net>
34015 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
34016 same value as for Solaris 9.
34018 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
34019 component length. This included changing the parameter to be
34020 of type `char *' rather than `char const *'.
34021 * lib/chdir-long.h (chdir_long): Update prototype.
34023 * lib/openat.c (fdopendir, fstatat): New functions.
34024 * lib/openat.h: Include headers required for use of DIR and struct
34026 [AT_SYMLINK_NOFOLLOW]: Define.
34027 (fdopendir, fstatat): Add prototypes.
34029 2005-01-21 Bruno Haible <bruno@clisp.org>
34031 * modules/classpath: New file.
34032 * MODULES.html.sh (Java): Add classpath.
34034 2005-01-21 Bruno Haible <bruno@clisp.org>
34036 * lib/classpath.h: New file, from GNU gettext.
34037 * lib/classpath.c: New file, from GNU gettext.
34039 2005-01-20 Simon Josefsson <jas@extundo.com>
34041 * modules/version-etc-fsf: New file.
34043 2005-01-20 Simon Josefsson <jas@extundo.com>
34045 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
34046 * lib/version-etc.c: Remove version_etc_copyright.
34047 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
34048 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
34050 2005-01-20 Simon Josefsson <jas@extundo.com>
34052 * lib/base64.h (isbase64): Add.
34054 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
34055 using a unsigned prototype, don't inline.
34056 (base64_decode): Use it.
34058 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
34060 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
34063 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
34065 * lib/save-cwd.c (save_cwd): Remove code to support the case
34066 where fchdir is missing or flaky.
34068 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
34070 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
34072 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
34074 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
34075 AC_LIBSOURCES now does this.
34076 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
34077 with new ullong_max module.
34079 2005-01-19 Bruno Haible <bruno@clisp.org>
34081 * modules/sh-quote: New file.
34082 * MODULES.html.sh (Executing programs): Add sh-quote.
34084 2005-01-19 Bruno Haible <bruno@clisp.org>
34086 * lib/sh-quote.h: New file, from GNU gettext.
34087 * lib/sh-quote.c: New file, from GNU gettext.
34089 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
34091 Merge from coreutils.
34092 * m4/ullong_max.m4: New file.
34093 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
34094 (gl_MACROS): Assume localeconv exists.
34096 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
34098 Merge changes from coreutils, as described below in several
34099 changelogs dated today.
34101 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
34102 (O_DIRECTORY): Remove; not needed here, since "." must be
34103 a directory. All uses removed.
34104 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
34105 universal on Suns, and we also need to test for IRIX.
34106 Revamp code to use 'if' rather than '#if'.
34107 Avoid unnecessary comparison of cwd->desc to 0.
34109 * lib/utimens.c (futimens): Robustify the previous patch, by checking
34110 for known valid error numbers rather than observed invalid ones.
34112 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
34114 * modules/ullong_max: New file.
34116 * modules/chdir-long, modules/openat: New files.
34117 * modules/save-cwd (Depends-on): Depend on chdir-long.
34118 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
34120 2005-01-18 Jim Meyering <jim@meyering.net>
34122 Merge from coreutils.
34123 * m4/chdir-long.m4, m4/openat.m4: New files.
34124 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
34125 save-cwd.h. Add AC_LIBOBJ for save-cwd.
34126 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
34127 is sane and DOES follow symlinks. Besides, testing 20 different
34128 systems found no broken chown implementations.
34129 Prompted by a change in rsync's copy of this macro.
34130 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
34132 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
34134 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
34135 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
34136 NULL-means-set-to-current-time semantics.
34137 Remove temporary file immediately, rather than waiting
34138 for configure's at-exit trap code to do it.
34140 2005-01-18 Jim Meyering <jim@meyering.net>
34142 * lib/version-etc.c (version_etc_copyright): Update copyright date.
34144 * lib/utimens.c (futimens): Account for the fact that futimes
34145 can also fail with errno == ENOSYS or errno == ENOENT.
34146 Patch from Dmitry V. Levin.
34148 Change the name of the robust chdir function from chdir to chdir_long.
34149 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
34150 (restore_cwd): Use chdir_long, not chdir.
34151 * lib/chdir-long.c: Renamed from chdir.c.
34152 * lib/chdir-long.h: Renamed from chdir.h.
34153 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
34156 2005-01-18 Bruno Haible <bruno@clisp.org>
34158 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
34159 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
34160 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
34161 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
34162 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
34163 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
34164 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
34165 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
34166 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
34167 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
34168 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
34169 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
34170 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
34171 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
34172 Use an all-permissive copyright notice, recommended by RMS.
34174 2005-01-18 Bob Proulx <bob@proulx.com>
34176 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
34177 simplify offsetof() macro construct to avoid compile failure with
34178 native HP-UX 11.0 ANSI C compiler.
34180 2005-01-17 Bruno Haible <bruno@clisp.org>
34182 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
34183 redundant because stpncpy.m4 takes care of it.
34185 2005-01-17 Bruno Haible <bruno@clisp.org>
34187 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
34189 2005-01-17 Bruno Haible <bruno@clisp.org>
34191 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
34194 2005-01-17 Bruno Haible <bruno@clisp.org>
34196 * lib/fwriteerror.h (fwriteerror): Change specification to include
34198 * lib/fwriteerror.c: Include <stdbool.h>.
34199 (fwriteerror): At the end, close the file stream. Record whether
34200 stdout was already closed.
34202 2005-01-17 Bruno Haible <bruno@clisp.org>
34204 * lib/execute.c (environ): Declare if needed.
34205 * lib/pipe.c (environ): Likewise.
34206 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
34208 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
34210 * modules/argp: Depend on vsnprintf
34212 2005-01-10 Jim Meyering <jim@meyering.net>
34214 * modules/closeout (Depends-on): Add atexit.
34216 2005-01-06 Bruno Haible <bruno@clisp.org>
34218 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
34220 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
34222 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
34223 definitions to be after all include files, to avoid collisions.
34224 Problem reported by Bob Proulx.
34226 2005-01-04 Jim Meyering <jim@meyering.net>
34228 Changes imported from coreutils.
34229 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
34230 as the mkstemp template, use a temporary directory and an
34231 8.3-friendly template to avoid trouble on systems like DJGPP.
34232 Reported by Juan M. Guerrero via Stepan Kasal.
34233 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
34234 close. Remove the temporary directory right away, rather than waiting
34235 for configure's at-exit trap code to do it.
34236 Suggestion from Stepan Kasal.
34238 2005-01-01 Simon Josefsson <jas@extundo.com>
34240 * gnulib-tool: Print #include directives when --import'ing.
34242 2004-12-28 Simon Josefsson <jas@extundo.com>
34244 * tests/test-base64.c: Include required header files. Remove
34247 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
34249 * modules/error (Depends-on): Remove gettext.
34251 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
34253 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
34254 not needed. This removes a dependency on the gettext module.
34255 [defined _LIBC]: Do not include <libintl.h>; not needed.
34257 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
34259 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
34260 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
34262 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
34264 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
34267 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
34269 * modules/getdate (Depends-on): Remove alloca-opt.
34271 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
34273 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
34275 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
34277 * lib/argp-parse.c: Include <stddef.h>.
34278 (alignof, alignto): New macros.
34279 (parser_init): Don't assume that void * is aligned sufficiently
34282 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
34283 need to extend the stack.
34284 (YYINITDEPTH): New macro, so that the initial stack isn't overly
34287 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
34289 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
34291 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
34293 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
34294 (2004-10-24) change. Apparently this was a false alarm.
34296 * modules/getdate: Depend on alloca-opt, not alloca.
34298 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
34300 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
34301 Remove now-obsolete comment about AIX.
34302 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
34303 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
34304 (YYMAXDEPTH): New macro.
34306 2004-12-18 Simon Josefsson <jas@extundo.com>
34308 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
34310 2004-12-18 Bruno Haible <bruno@clisp.org>
34312 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
34314 2004-12-18 Bruno Haible <bruno@clisp.org>
34316 * lib/fatal-signal.c (fatal_signals): Make non-const.
34317 (init_fatal_signals): New function.
34318 (uninstall_handlers, install_handlers): Ignore signals that were set to
34320 (at_fatal_signal): Call init_fatal_signals.
34321 (init_fatal_signal_set): Likewise. Ignore signals that were set to
34323 Reported by Paul Eggert.
34325 2004-12-18 Bruno Haible <bruno@clisp.org>
34327 * doc/alloca.texi: New file.
34328 * doc/alloca-opt.texi: New file.
34330 2004-12-17 Jim Meyering <jim@meyering.net>
34332 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
34333 Otherwise, install-sh could exit with improper exit status when
34334 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
34336 2004-12-16 Simon Josefsson <jas@extundo.com>
34338 * tests/test-base64.c: Add license.
34340 2004-12-15 Stepan Kasal <address@hidden>
34342 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
34344 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
34346 * modules/getcwd (Files): Add m4/d-ino.m4.
34347 Suggested by Mark D. Baushke.
34349 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
34351 * lib/getdate.y (textint): New member "negative".
34352 (time_zone_hhmm): New function.
34353 Expect 14 shift-reduce conflicts, not 13.
34354 (o_colon_minutes): New rule.
34355 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
34356 (yylex): Set the "negative" member of signed numbers.
34358 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
34360 * doc/getdate.texi (Time of day items, Time zone items):
34361 Describe new formats +00:00, UTC+00:00.
34363 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
34365 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
34366 spurious "-l"s. Problem reported by Stepan Kasal.
34368 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
34370 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
34371 in Autoconf 2.59. Problem reported by Mark D. Baushke.
34373 2004-12-04 Simon Josefsson <jas@extundo.com>
34375 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
34376 Vandoorselaere <yoann@prelude-ids.org>.
34378 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
34380 Changes imported from coreutils.
34381 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
34383 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
34385 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
34387 Changes imported from coreutils.
34388 * lib/hard-locale.c: Assume <locale.h> exists.
34389 Include "strdup.h".
34390 (GLIBC_VERSION): New macro.
34391 (hard_locale): Assume setlocale exists.
34392 Rewrite to avoid #ifdef.
34393 Use strdup rather than malloc + strcpy.
34394 * lib/human.c: Assume <locale.h> exists.
34395 (human_readable): Assume localeconv exists.
34397 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
34399 * modules/hard-locale (Depends-on): Add strdup.
34401 2004-12-01 Jakub Jelinek <jakub@redhat.com>
34403 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
34404 convert T2, not T. (Imported from libc.)
34406 2004-11-30 Simon Josefsson <jas@extundo.com>
34408 * modules/restrict (License): Change to LGPL.
34410 2004-11-30 Simon Josefsson <jas@extundo.com>
34412 * m4/restrict.m4: Add copyright and copying conditions.
34414 2004-11-30 Simon Josefsson <jas@extundo.com>
34416 * m4/base64.m4: New file.
34418 2004-11-30 Simon Josefsson <jas@extundo.com>
34420 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
34423 * tests/test-base64.c: New file.
34425 * modules/base64: New file.
34427 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
34429 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
34430 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
34432 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
34434 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
34436 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
34437 (__getcwd.c): Don't restore errno; glibc doesn't.
34438 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
34439 first, falling back to our code only if its results look suspicious.
34440 Ensure that the resulting buffer is only as large as necessary.
34442 * lib/readutmp.c: Include readutmp.h first.
34443 Include <errno.h>, since readutmp.h no longer does that.
34444 * lib/readutmp.h: Don't include <errno.h>,
34445 <sys/param.h>, <time.h>; not needed to establish interface.
34446 (errno): Remove decl.
34447 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
34448 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
34449 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
34451 2004-11-28 Simon Josefsson <jas@extundo.com>
34453 * lib/base64.h, base64.c: New file.
34455 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
34457 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
34459 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
34461 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
34462 (Depends-on): Remove pathmax, same. Add mempcpy.
34463 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
34464 (Makefile.am): Append getcwd.h to lib_SOURCES.
34465 (Include): Add getcwd.h.
34466 (Maintainer): Change from Jim Meyering to "all, glibc",
34467 since getdate now uses intended-for-glibc code.
34468 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
34469 (Depends-on): Depend on getcwd. Do not depend on pathmax.
34471 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
34473 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
34474 HP's ANSI C compiler.
34475 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
34476 Declaring int functions causes warnings on some modern systems and
34477 shouldn't be needed to compile on ancient ones.
34478 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
34481 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
34482 with the following changes.
34483 (__set_errno): Parenthesize properly.
34484 Include <stdbool.h>.
34485 (MIN, MAX, MATCHING_INO): New macros.
34486 (__getcwd): Define with prototype, not K&R form.
34487 Use heuristics to allocate default buffer on stack if possible.
34488 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
34489 behavior, and to avoid the PATH_MAX limit when computing
34491 Use MATCHING_INO to compare inode number to file.
34492 Check for arithmetic overflow in size calculations.
34493 Fix bug in reallocation of dot array that caused getcwd to fail
34494 on directories nested deeper than 75.
34495 Be more careful about saving errno on error.
34496 Do not use realloc; use only free+malloc, as this is a bit
34497 more flexible and avoids a needless copy operation.
34498 Do not inspect st_dev and st_ino for symbolic links; POSIX
34499 doesn't specify the latter.
34500 Check for closedir errors.
34501 Avoid needless casts.
34502 Use "#ifdef weak_alias" around weak_alias, to be like other
34504 The following changes to getcwd.c have effect only when used in
34505 gnulib; they have no effect inside glibc proper.
34506 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
34507 as alloca isn't used.
34508 (alloca, __alloca): Likewise.
34509 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
34510 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
34511 unconditionally, as gnulib assumes C89 or better.
34512 Do not include <sys/param.h>.
34513 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
34514 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
34516 (NULL) [!defined NULL]: Remove; we assume C89 or better.
34517 Include <dirent.h> in a way that is compatible with modern Autoconf.
34518 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
34519 New macros, if not already defined.
34520 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
34521 Use "_LIBC", not "defined _LIBC", for consistency.
34522 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
34524 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
34525 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
34526 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
34527 credit only to Jim Meyering and adjust the copyright dates.
34528 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
34529 <stdlib.h>, <unistd.h>, "pathmax.h".
34530 Instead, include "xgetcwd.h" (first) and "getcwd.h".
34531 (INITIAL_BUFFER_SIZE): Remove.
34532 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
34534 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
34536 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
34537 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
34538 Use the _ONCE methods, for efficiency.
34539 Check for fcntl.h. In test program, include <errno.h>
34540 and <fcntl.h> if available. Remove old K&R cruft from
34541 test program. Check for common errors in GNU/Linux,
34542 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
34543 don't do AC_LIBOBJ, as that's getcwd.m4's job.
34544 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
34545 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
34547 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
34548 accommodate new getcwd.c.
34549 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
34550 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
34551 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
34552 that's all we need now.
34554 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
34556 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
34557 argp-parse.c depends on getopt internals, that means we should
34558 always use our getopt, to be on the safe side.
34559 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
34560 order not to spoil the result of an eventual previous invocation
34561 of gl_GETOPT_SUBSTITUTE.
34563 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
34565 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
34566 redefinition warnings. To avoid them, include the defines
34567 in `#if !defined __need_getopt ... #endif'. The only place
34568 where __getopt_argv_const is used is in definitions
34569 of getopt_long and getopt_long_only below, which are as well
34570 protected by `#ifndef __need_getopt'.
34571 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
34572 __need_getopt after including <stdio.h> and <unistd.h> These
34573 headers might have defined it.
34575 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
34577 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
34579 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
34581 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
34582 (futimens): New function, which uses futimes if available.
34583 (futimens, utimens): Support timespec==NULL, with same semantics
34584 as utime and utimens.
34585 * lib/utimens.h (futimens): New decl.
34587 2004-11-23 Jim Meyering <jim@meyering.net>
34589 * lib/getopt_.h: Remove trailing blanks.
34591 2004-11-23 Jim Meyering <jim@meyering.net>
34593 * lib/__fpending.c: Add comment.
34595 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
34597 * modules/canonicalize (Depends-on): Add xreadlink.
34598 Problem reported by James Youngman.
34600 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
34602 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
34604 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
34605 optopt): Use them instead of invoking ## directly; otherwise, the
34606 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
34608 2004-11-19 Bruno Haible <bruno@clisp.org>
34610 * lib/strtok_r.c: Move comments from here...
34611 * lib/strtok_r.h: ... to here.
34613 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
34615 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
34616 implementations that mishandle size_t overflow.
34618 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
34620 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
34621 might fail. Problem reported by Yoann Vandoorselaere.
34622 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
34623 implementations that mishandle size_t overflow.
34625 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
34627 * modules/canon-host (Depends-on): Add strdup.
34629 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
34631 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
34633 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
34635 * lib/canon-host.c: Include "strdup.h".
34636 (canon_host): Use getaddrinfo if available, so that IPv6 works.
34637 Use strdup instead of malloc/strcpy to duplicate strings.
34639 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
34640 (human_space_before_unit): New constant.
34641 * lib/human.c (human_readable): Support it.
34643 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
34644 (xgetcwd): Set errno correctly when failing.
34645 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
34646 the failure is actually due to a PATH_MAX problem.
34648 Further getopt changes to make it more likely that glibc will
34649 buy the changes back.
34650 * lib/getopt.c (POSIXLY_CORRECT): New constant.
34651 (getopt): Use it, so to preserve glibc semantic
34652 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
34653 when compiling for libc.
34654 * lib/getopt_.h (__getopt_argv_const): Bring it back.
34655 (getopt_long, getopt_long_only): Use it.
34657 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34658 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
34659 (getopt): Argv is now char * const *, as per standard.
34660 (_getopt_internal_r, _getopt_internal): Argv is now char **,
34661 not char *__getopt_argv_const *.
34662 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34663 _getopt_long_only_r): Likewise.
34664 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
34665 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34666 _getopt_long_r, _getopt_long_only_r): Likewise.
34667 * lib/getopt_.h (__getopt_argv_const): Remove.
34668 (getopt): Argv is now char * const *, as per standard.
34670 * lib/getdate.y (tORDINAL): New token.
34671 (day, relunit): Allow it for relative times.
34672 (relative_time_table): Use tORDINAL for ordinals.
34674 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
34676 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
34677 Document that "second" isn't allowed as an ordinal number.
34679 2004-11-16 Jim Meyering <jim@meyering.net>
34681 * modules/closeout (Depends-on): Add fpending.
34683 2004-11-15 Jim Meyering <jim@meyering.net>
34685 * lib/closeout.c: Include "__fpending.h" once again.
34686 Include <stdbool.h>.
34687 (close_stdout): Don't fail just because stdout was closed initially,
34688 since some programs don't write to stdout in the normal course of
34689 operation (other than --version and --help), and we don't want this
34690 function to make e.g. `touch file >&-' fail.
34691 But do fail if it was closed and someone has tried to write to it.
34692 E.g., `printf foo >&-' must fail.
34694 2004-11-13 Jim Meyering <jim@meyering.net>
34696 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
34698 2004-11-12 Simon Josefsson <jas@extundo.com>
34700 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
34701 small doc fix is still pending.
34703 2004-11-11 Simon Josefsson <jas@extundo.com>
34705 * modules/strtok_r: New file.
34707 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34710 2004-11-11 Simon Josefsson <jas@extundo.com>
34712 * m4/strtok_r.m4: New file.
34714 * m4/getopt.m4: Replace opterr.
34716 2004-11-11 Simon Josefsson <jas@extundo.com>
34718 * lib/strtok_r.h, strtok_r.c: New file.
34720 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
34722 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
34723 of replacing opterr, getopt, etc. This should handle the
34724 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
34726 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
34728 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
34729 we can stop lying to compilers about the constness of argv when we
34730 are compiled outside glibc.
34731 (getopt, getopt_long, getopt_long_only): Use it.
34732 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34733 _getopt_internal, getopt): Likewise.
34734 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34735 _getopt_long_only_r): Likewise.
34736 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34737 _getopt_long_r, _getopt_long_only_r): Likewise.
34739 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
34740 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
34741 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
34742 the other external symbols.
34743 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
34744 declaration, since the above renaming now works around collisions.
34746 2004-11-11 Jim Meyering <jim@meyering.net>
34748 * lib/linebreak.c: Remove trailing blanks.
34749 * lib/alloca_.h: Likewise.
34750 * lib/acosl.c: Likewise.
34751 * lib/euidaccess.c: Likewise.
34752 * lib/allocsa.h: Likewise.
34754 2004-11-10 Simon Josefsson <jas@extundo.com>
34756 * m4/getaddrinfo.m4: New file.
34758 2004-11-10 Simon Josefsson <jas@extundo.com>
34760 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
34762 2004-11-10 Simon Josefsson <jas@extundo.com>
34764 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34767 * modules/getaddrinfo: New file.
34769 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
34771 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
34773 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
34775 * lib/mktime.c (SHR): New macro, which is a portable
34776 substitute for >> that should work even on Crays.
34777 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
34778 Problem reported by Mark D. Baushke in
34779 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
34780 * lib/getdate.y (SHR): Likewise.
34782 * lib/strftime.c (SHR): Likewise.
34784 * lib/quotearg.c (struct quoting_options): Use unsigned int for
34785 quote_these_too, so that right shifts are well defined. All uses
34788 2004-11-10 Jim Meyering <jim@meyering.net>
34790 Ensure that no close failure goes unreported.
34791 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
34792 return early when it seems there's nothing to flush.
34793 Don't include __fpending.h.
34795 2004-11-10 Jim Meyering <jim@meyering.net>
34797 * modules/closeout (Depends-on): Remove fpending.
34799 2004-11-10 Jim Meyering <jim@meyering.net>
34801 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
34803 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
34805 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
34807 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
34808 and AC_REQUIRE when possible, to avoid duplicate checks.
34809 Check for <wchar.h>.
34811 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
34813 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
34815 2004-11-09 Bruno Haible <bruno@clisp.org>
34817 * m4/sockpfaf.m4: New file.
34819 2004-11-05 Bruno Haible <bruno@clisp.org>
34821 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
34822 Reported by Mark D. Baushke <mdb@cvshome.org>.
34824 2004-11-04 Bruno Haible <bruno@clisp.org>
34826 2004-09-11 Bruno Haible <bruno@clisp.org>
34827 * allocsa.valgrind: New file.
34828 2004-02-06 Bruno Haible <bruno@clisp.org>
34829 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
34830 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
34831 Reported by Christopher Seip <chris.seip@hp.com>.
34833 2004-11-04 Bruno Haible <bruno@clisp.org>
34835 * modules/allocsa (Files): Add lib/allocsa.valgrind.
34836 (Makefile.am): Distribute it.
34838 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
34840 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
34841 with errno == ERANGE if the buffer is too small.
34842 Problem reported by Mark D. Baushke.
34844 2004-11-03 Albert Chin <china@thewrittenword.com>
34845 Paul Eggert <eggert@cs.ucla.edu>
34847 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
34848 equivalent, substitute $ac_type for equivalent type rather than
34849 blindly using uint32_t *always* which won't work if uint32_t is not
34850 available. Define _UINT32_T to work around typedef of uint32_t if
34851 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
34854 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
34856 * m4/jm-macros.m4: Sync from coreutils.
34857 (gl_MACROS): Check for mbrlen, for pathchk.
34858 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
34860 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
34862 * lib/xreadlink.c (MAXSIZE): New macro.
34863 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
34864 size does not exceed MAXSIZE. Avoid cast.
34865 As suggested by Mark D. Baushke in
34866 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
34867 if readlink fails with buffer size just under MAXSIZE, try again
34870 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
34872 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
34874 2004-11-02 Derek R. Price <derek@ximbiot.com>
34875 and Paul Eggert <eggert@cs.ucla.edu>
34877 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
34878 (get_date): Overparenthesize to avoid GCC warning.
34880 2004-11-02 Bruno Haible <bruno@clisp.org>
34882 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
34885 2004-11-02 Bruno Haible <bruno@clisp.org>
34887 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
34888 function returns void.
34890 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
34892 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
34893 fflush_unlocked, flockfile, funlockfile, funlockfile,
34894 fputs_unlocked, putc_unlocked.
34896 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
34898 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
34899 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
34902 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
34904 * modules/getdate (Files): Add doc/getdate.texi.
34905 (Depends-on): Add setenv, xalloc.
34907 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
34909 * lib/getdate.y: Add support for TZ="foo" within a date string.
34910 Fix some bugs near time_t boundaries. Reject dates with
34911 out-of-range components, e.g., "Sept 31".
34912 Include <stdlib.h>, "setenv.h", "xalloc.h".
34913 (ISDIGIT_LOCALE): Remove; unused.
34914 Note that the TZ and time functions used here are not reentrant.
34915 (mktime_ok, get_tz): New functions.
34916 (TZBUFSIZE): New constant.
34917 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
34918 This requires that we sometimes generate our own TZ="XXX..." setting.
34920 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
34922 * doc/getdate.texi: New file, from coreutils with modifications for
34923 the new TZ parsing.
34925 2004-10-27 Derek R. Price <derek@ximbiot.com>
34927 * lib/mktime.c (not_equal_tm): Remove redundant check.
34929 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
34931 * modules/regex (lib_SOURCES): Add regex.c.
34932 Reported by James Youngman in
34933 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
34935 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
34937 * lib/getdate.y: Use Bison 1.875 features, and some minor
34938 code cleanups. This change does not affect semantics.
34939 Don't include <stdlib.h>; no longer needed.
34940 Don't include unlocked-io.h; only the "#if TEST" code uses
34941 stdio, and performance isn't crucial there.
34942 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
34943 Bison 1.875 features as described below.
34944 All uses of "PC." replaced by "pc->".
34945 (YYSTYPE): Add a forward declaration.
34946 (yylex, yyerror): Use full prototypes in forward decls.
34947 Use "%pure-parser" rather than obsolescent "%pure_parser".
34948 Use %parse-param and %lex-param instead of obsolescent
34949 YYPARSE_PARAM and YYLEX_PARAM.
34950 (meridian_table, month_and_day_table, time_units_table,
34951 relative_time_table, time_zone_table, military_table,
34952 lookup_zone, lookup_word, get_date):
34953 Use NULL instead of 0 where appropriate.
34954 (to_hour): Avoid abort (), to avoid a dependency on
34956 (yyerror, yylex): Now accepts parser_control * arg.
34957 (main) [TEST]: Use '\0' rather than 0 for char.
34959 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
34961 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
34963 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
34965 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
34966 It's now the caller's responsibility to handle the case where
34967 !HAVE_GETPAGESIZE && !defined getpagesize.
34969 * lib/mktime.c (leapyear): Arg is long int, not int.
34971 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
34973 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
34975 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
34977 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
34978 missing. Problem reported by James Youngman.
34980 2004-10-16 Simon Josefsson <jas@extundo.com>
34982 * gnulib-tool: Fix comments. Fix parse problem.
34983 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
34985 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
34987 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
34988 implementation of getopt_long. Problem reported by Alexander Taler in:
34989 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
34991 2004-10-15 Bruno Haible <bruno@clisp.org>
34993 * gnulib-tool: Untabify. Initialize supplied_libname.
34994 (func_usage): More homogenous output.
34995 (func_modules_transitive_closure, func_modules_to_filelist,
34996 func_emit_lib_Makefile_am): New functions.
34997 (func_import): New function, extracted from big case statement. Use
34998 func_get_license, func_modules_transitive_closure,
34999 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
35000 opt_lgpl. Don't use test -a, as it's not portable.
35001 (func_create_testdir): Use func_modules_transitive_closure,
35002 func_modules_to_filelist, func_emit_lib_Makefile_am.
35004 2004-10-15 Bruno Haible <bruno@clisp.org>
35006 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
35008 2004-10-15 Bruno Haible <bruno@clisp.org>
35010 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
35011 the portions belonging to each module.
35012 Suggested by Derek Robert Price <derek@ximbiot.com>.
35014 2004-10-12 Simon Josefsson <jas@extundo.com>
35016 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
35017 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
35020 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
35022 * modules/vsnprintf: New file.
35024 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
35026 * m4/vsnprintf.m4: New file.
35028 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
35030 * lib/vsnprintf.h: New file.
35031 * lib/vsnprintf.c: New file.
35033 2004-10-11 Bruno Haible <bruno@clisp.org>
35035 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
35038 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
35040 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
35042 2004-10-07 Bruno Haible <bruno@clisp.org>
35044 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
35045 fits into the provided buffer.
35047 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
35049 * lib/diacrit.c, diacrit.h: Add GPL notice.
35051 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
35053 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
35054 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
35055 This avoids a potential constant-folding bug.
35057 2004-10-05 Bruno Haible <bruno@clisp.org>
35059 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
35060 for the declaration of strsep.
35062 2004-10-05 Bruno Haible <bruno@clisp.org>
35064 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
35066 2004-10-04 Simon Josefsson <jas@extundo.com>
35068 * modules/memmem: New file.
35069 * tests/test-memmem.c: New file.
35070 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
35072 2004-10-04 Simon Josefsson <jas@extundo.com>
35074 * m4/memmem.m4: New file.
35076 2004-10-04 Simon Josefsson <jas@extundo.com>
35078 * lib/memmem.h: New file.
35079 * lib/memmem.c: New file, taken from glibc.
35081 2004-10-04 Simon Josefsson <jas@extundo.com>
35083 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
35084 '#ifdef USE_UNLOCKED_IO'.
35086 2004-10-04 Simon Josefsson <jas@extundo.com>
35088 * config/srclist.txt: Add memmem from glibc.
35090 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
35092 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
35094 * modules/argmatch, modules/argp, modules/closeout, modules/error,
35095 modules/exclude, modules/getdate, modules/getline,
35096 modules/getndelim2, modules/getpass, modules/getpass-gnu,
35097 modules/getusershell, modules/linebuffer, modules/md5,
35098 modules/mountlist, modules/posixtm, modules/readtokens,
35099 modules/readutmp, modules/regex, modules/sha1,
35100 modules/version-etc, modules/yesno:
35101 Remove dependency on unlocked-io.
35103 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
35105 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
35107 * m4/unlocked-io.m4: Add copyright notice.
35108 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
35110 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
35112 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
35113 * lib/xmalloc.c (xmemdup): Likewise.
35114 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
35115 XFREE): Remove these long-obsolescent macros.
35116 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
35117 * lib/xstrdup.c: Remove.
35119 * lib/regex.c (re_comp): Cast gettext return value to char *,
35120 Problem reported by Martin Neitzel via Mark D. Baushke.
35122 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
35124 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
35125 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
35126 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
35127 regex.c, sha1.c, version-etc.c, yesno.c:
35128 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
35129 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
35130 the includer's responsibility.
35132 Sync from coreutils.
35134 * lib/modechange.c (mode_compile): Don't decrement a pointer that
35135 points to the start of a string, as the C Standard says the
35136 resulting behavior is undefined.
35138 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
35139 simple -> simple_backups, numbered_existing ->
35140 numbered_existing_backups, numbered -> numbered_backups
35141 to avoid shadowing problems. All uses changed.
35142 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
35143 * lib/backupfile.c (check_extension, numbered_backup):
35144 Rename locals to avoid shadowing 'basename'.
35145 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
35148 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
35149 * lib/.cvsignore: Add getopt.h.
35151 2004-10-04 Bruno Haible <bruno@clisp.org>
35153 * modules/README: New file.
35154 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
35157 2004-10-02 Jim Meyering <jim@meyering.net>
35159 * lib/dirfd.h, getpagesize.h: Add copyright notice.
35161 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
35163 * modules/strsep: New file.
35165 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
35167 * m4/strsep.m4: New file.
35169 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
35171 * lib/strsep.h: New file.
35172 * lib/strsep.c: New file.
35174 2004-10-01 Simon Josefsson <jas@extundo.com>
35176 * lib/snprintf.c (snprintf): Handle size==0.
35178 2004-10-01 Simon Josefsson <jas@extundo.com>
35179 Bruno Haible <bruno@clisp.org>
35181 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
35182 (snprintf): Declare 'args'.
35184 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
35186 * lib/snprintf.c: Remove comments as to why each header is needed.
35188 2004-10-01 Bruno Haible <bruno@clisp.org>
35190 * MODULES.html.sh: Add strsep.
35192 2004-09-30 Simon Josefsson <jas@extundo.com>
35194 * modules/snprintf: New file.
35196 2004-09-30 Simon Josefsson <jas@extundo.com>
35198 * m4/snprintf.m4: New file.
35200 2004-09-30 Simon Josefsson <jas@extundo.com>
35202 * lib/snprintf.h, lib/snprintf.c: New files.
35204 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
35206 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
35207 (hol_entry_help): Never translate an empty string.
35208 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
35209 * lib/argp.h (OPTION_NO_TRANS): New option.
35211 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
35213 * modules/argp (Maintainer): Replace Simon Josefsson
35214 by Sergey Poznyakoff.
35216 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
35218 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
35219 changes merged back into glibc.
35221 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
35223 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
35225 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
35227 * lib/xvasprintf.c: Include xalloc.h.
35228 (xvasprintf): Use xalloc_die, not xmalloc_die.
35230 2004-09-29 Bruno Haible <bruno@clisp.org>
35232 * modules/alloca-opt: New file, derived from modules/alloca.
35233 * modules/allocsa: Depend on alloca-opt instead of alloca.
35234 * modules/setenv: Likewise.
35235 * modules/vasnprintf: Likewise.
35236 * MODULES.html.sh: Add alloca-opt.
35238 2004-09-28 Simon Josefsson <jas@extundo.com>
35240 * gnulib-tool: New parameter --lgpl, to asseert that modules are
35241 LGPL, and to replace license template from GPL to LGPL.
35243 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
35245 * modules/dummy: Change license to LGPL.
35247 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
35249 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
35251 2004-09-24 Simon Josefsson <jas@extundo.com>
35253 * modules/minmax (License): Change from GPL to LGPL.
35255 2004-09-23 Simon Josefsson <jas@extundo.com>
35257 * gnulib-tool (--import): Typo.
35259 2004-09-23 Simon Josefsson <jas@extundo.com>
35261 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
35263 2004-09-22 Bruno Haible <bruno@clisp.org>
35265 * modules/*: Add 'License' field.
35266 * gnulib-tool: Accept --extract-license option.
35267 (func_get_license): New function.
35269 2004-09-21 Bruno Haible <bruno@clisp.org>
35271 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
35272 Reported by Simon Josefsson.
35274 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
35276 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
35277 gl_AC_TYPE_LONG_LONG.
35279 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
35281 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
35283 2004-09-18 Simon Josefsson <jas@extundo.com>
35284 and Paul Eggert <eggert@cs.ucla.edu>
35286 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
35287 calls with autoreconf. Define GL_LIB.
35289 2004-09-14 Karl Berry <karl@gnu.org>
35291 * config/srclist.txt: unsync setenv.c, sigh.
35293 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
35295 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
35296 Problem reported by Bruno Haible in:
35297 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
35299 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
35301 * config/srclist.txt: Comment out argp-pvh.c.
35303 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
35305 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
35306 in case some system header has #define'd it. Problem reported by
35307 Soeren D. Schulze in
35308 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
35310 2004-09-09 Karl Berry <karl@gnu.org>
35312 * regex.[ch]: delete from the root. These were supposed to be
35313 synced with emacs cvs, but this has not happened for about
35314 a year, and anyway nothing else uses emacs regex.[ch].
35315 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
35316 lib/regex[.ch] is untouched.
35318 2004-09-09 Bruno Haible <bruno@clisp.org>
35320 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
35322 2004-09-09 Bruno Haible <bruno@clisp.org>
35324 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
35326 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
35328 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
35330 * modules/xvasprintf: New file.
35331 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
35333 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
35335 * lib/xvasprintf.h: New file.
35336 * lib/xvasprintf.c: New file.
35337 * lib/xasprintf.c: New file.
35339 2004-09-08 Bruno Haible <bruno@clisp.org>
35341 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
35343 2004-09-08 Bruno Haible <bruno@clisp.org>
35345 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
35346 length is > INT_MAX.
35347 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
35350 2004-09-08 Bruno Haible <bruno@clisp.org>
35352 * lib/stdint_.h: New file, taken from GNU clisp.
35354 2004-09-08 Bruno Haible <bruno@clisp.org>
35355 Oskar Liljeblad <oskar@osk.mine.nu>
35357 * modules/stdint: New file.
35358 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
35360 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
35362 Import from coreutils.
35363 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
35364 strings on unbounded length. alloca's performance benefits aren't
35365 that important here.
35366 (V_STRDUP): Remove.
35367 (parse_with_separator): New function, with most of the internals
35368 of the old parse_user_spec. Allow user to omit both user and group,
35369 for compatibility with FreeBSD.
35370 Clone only the user name, not the entire spec.
35371 Do not set *uid, *gid unless entirely successful.
35372 Avoid memory leak in some failing cases.
35373 Fix regression for USER.GROUP reported by Dmitry V. Levin in
35374 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
35375 (parse_user_spec): Rewrite to use parse_with_separator.
35377 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
35379 * modules/userspec: Don't depend on alloca.
35381 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
35383 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
35385 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
35387 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
35388 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
35389 utimecmp, utimens, xnanosleep. Rename sha to sha1.
35391 2004-08-16 Simon Josefsson <jas@extundo.com>
35393 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
35394 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
35395 Add --dry-run for --import.
35396 Let user provided command line parameters override configure.ac
35399 2004-08-12 Simon Josefsson <jas@extundo.com>
35401 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
35402 as discussed with Paul Eggert in threads rooted at
35403 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
35405 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
35406 Before, the test was empty, and relied on ELIDE_CODE in source
35408 (gl_PREREQ_GETOPT): New macro.
35409 (gl_GETOPT): Use them.
35411 2004-08-12 Simon Josefsson <jas@extundo.com>
35413 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
35414 * lib/getopt_.h: Renamed from getopt.h.
35416 2004-08-12 Simon Josefsson <jas@extundo.com>
35418 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
35419 Change default library name from libfoo to libgnu.
35420 Now, if you have a configure.ac that says:
35423 gl_MODULES(error getopt etcetera)
35425 you can import all you need by running:
35426 ../gnulib/gnulib-tool --import
35428 * modules/getopt (Files): Rename getopt.h to getopt_.h.
35429 (Makefile.am): Rewrite, use logic from argz.
35430 (Include): Use <getopt.h> instead of "getopt.h".
35432 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
35434 * modules/argp (Files): Add m4/unlocked-io.m4.
35435 (Depends-on): Add extensions.
35437 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
35439 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
35440 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
35441 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
35442 Check for program_invocation_name, program_invocation_short_name,
35443 flockfile, funlockfile, features.h, _getopt_long_only_r.
35445 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
35447 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
35448 its complicated substitute.
35449 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
35450 and program_invocation_name.
35451 (__argp_basename) [!_LIBC]: Remove; the only use was
35452 replaced by its body.
35453 (__argp_short_program_name): Change condition from
35454 !defined __argp_short_program_name to
35455 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
35456 to match argp-namefrob.h.
35457 (__argp_failure): Don't assume strerror_r returns char *.
35458 * lib/argp-parse.c (N_): Define unconditionally.
35459 (argp_default_options): Fill out initializers with 0 to avoid
35462 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
35464 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
35467 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
35469 Merge from coreutils.
35471 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
35473 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
35474 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
35476 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
35478 Merge from coreutils.
35480 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
35481 wmemchr or wmemcpy. Problem reported by Robert Dahlem
35482 for Reliant Unix 5.43.
35484 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
35485 (union fooround): Use uintmax_t, not long int.
35486 The rest is a merge from libc:
35487 [defined _LIBC]: Include <shlib-compat.h>.
35488 (_obstack) [defined _LIBC]: Remove after 2.3.4.
35490 * lib/settime.c (settime): Recode to avoid warning with
35493 * lib/strverscmp.c: Convert to UTF-8.
35495 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
35497 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
35500 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
35502 * modules/xalloc-die: New file.
35503 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
35505 * modules/md5 (Files): Add m4/uint32_t.m4.
35506 * modules/sha1: Renamed from modules/sha.
35508 Rename lib/sha.h to lib/sha1.h.
35509 Rename lib/sha.c to lib/sha1.c.
35510 Rename m4/sha.m4 to m4/sha1.m4.
35511 (lib_SOURCES): Likewise.
35512 (configure.ac): Rename gl_SHA to gl_SHA1.
35513 (Include): sha.h -> sha1.h.
35515 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
35517 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
35518 * m4/sha1.m4: Renamed from sha.m4.
35519 (gl_SHA1): Renamed from gl_SHA. All uses changed.
35521 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
35523 * lib/obstack.h (obstack_empty_p):
35524 Don't assume that chunk->contents is suitably aligned.
35525 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
35526 Likewise. Problem reported by Benno in
35527 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
35529 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
35530 readable. This could be improved further but it'd take some work.
35532 2004-08-08 Simon Josefsson <jas@extundo.com>
35534 * modules/xgethostname (Depends-on): Remove exit and error (not
35537 * modules/getpass-gnu: Add getpass.h.
35538 (Depends-on): Add stdbool.
35539 * modules/getpass: Add getpass.h.
35541 2004-08-08 Simon Josefsson <jas@extundo.com>
35543 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
35544 Check getpass declaration.
35546 2004-08-08 Simon Josefsson <jas@extundo.com>
35548 * lib/xgethostname.c: Don't include error.h (not used).
35550 * lib/getpass.h: Add.
35551 * lib/getpass.c: Include getpass.h first.
35553 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
35555 * lib/xalloc-die.c: New file.
35556 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
35558 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
35559 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
35561 (_, N_, xalloc_die): Move to xalloc-die.c.
35562 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
35563 so that we needn't mess with xalloc_msg_memory_exhausted.
35565 * lib/sha1.h: Renamed from sha.h.
35566 (SHA1_H): Renamed from _SHA_H.
35567 (sha1_ctx): Renamed from sha_ctx.
35568 (sha1_init_ctx): Renamed from sha_init_ctx.
35569 (sha1_process_block): Renamed from sha_process_block.
35570 (sha1_process_bytes): Renamed from sha_process_bytes.
35571 (sha1_finish_ctx): Renamed from sha_finish_ctx.
35572 (sha1_read_ctx): Renamed from sha_read_ctx.
35573 (sha1_stream): Renamed from sha_stream.
35574 (sha1_buffer): Renamed from sha_buffer.
35575 * lib/sha1.c: Likewise; renamed from sha.c.
35576 Do not include <sys/types.h>.
35577 Include <stddef.h> rather than <stdlib.h>.
35579 2004-08-08 Bruno Haible <bruno@clisp.org>
35581 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
35582 FILESYSTEM_PREFIX_LEN.
35583 * lib/progreloc.c: Likewise.
35584 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
35586 2004-08-06 Simon Josefsson <jas@extundo.com>
35588 * modules/progname (Depends-on): Don't depend on stdbool.
35590 2004-08-06 Simon Josefsson <jas@extundo.com>
35592 * modules/getsubopt: New file.
35593 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35596 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
35598 More merge from coreutils.
35600 * m4/utimens.m4, m4/utimecmp.m4: New files.
35601 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
35602 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
35603 prereq.m4, sha.m4: Import changes from coreutils.
35605 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
35607 More merge from coreutils.
35608 * modules/raise, modules/readtokens0, modules/utimens:
35609 * modules/utimecmp, module/xnanosleep: New files.
35610 * modules/strftime: Add lib/strftime.h.
35611 Change include from <time.h> to "strftime.h".
35612 * modules/yesno: Add lib/yesno.h.
35613 * modules/backupfile: Remove lib/addext.c.
35614 * modules/euidaccess: Add stat-macros.h.
35615 * modules/canonicalize, modules/euidaccess,
35616 modules/filemode, modules/lchown, modules/makepath,
35617 modules/rmdir, modules/stat: Likewise.
35619 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
35622 * lib/argp-help.c (make_hol, hol_append): Don't assume that
35623 SIZE_MAX is a valid preprocessor constant.
35624 (__argp_basename): Change from "#ifndef _LIBC"
35625 to "#ifndef __argp_short_program_name", so that
35626 we don't compile these functions for tar.
35628 More merges from coreutils.
35629 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
35630 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
35631 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
35632 * lib/addext.c: Remove; no longer needed.
35633 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
35634 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
35635 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
35636 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
35637 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
35638 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
35639 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
35640 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
35641 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
35642 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
35643 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
35644 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
35645 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
35646 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
35647 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
35648 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
35649 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
35650 Import changes from coreutils.
35652 2004-08-05 Simon Josefsson <jas@extundo.com>
35654 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
35656 2004-08-05 Simon Josefsson <jas@extundo.com>
35658 * m4/getsubopt.m4: New file.
35660 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
35662 Merge from coreutils.
35664 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
35665 * m4/getcwd-path-max.m4: New files.
35667 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
35668 FILESYSTEM_PREFIX_LEN ->
35669 FILE_SYSTEM_PREFIX_LEN.
35670 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
35671 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
35672 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
35673 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
35675 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
35676 prerequisite modules now handle the DOS stuff.
35677 Don't check for unistd.h.
35679 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
35681 Merge from coreutils.
35683 * lib/.gdb-history: Remove; this doesn't belong here.
35685 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
35686 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
35687 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
35688 * lib/getcwd.c: New files.
35690 * lib/dirname.h: Include <stdbool.h>.
35691 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
35692 for consistency with POSIX terminology. All uses changed.
35693 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
35694 (strip_trailing_slashes): Use bool for booleans.
35695 * lib/stripslash.c (strip_trailing_slashes): Likewise.
35697 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
35698 sometimes returns a positive errno value even when it succeeds.
35699 (print_errno_message) [!LIBC]: Fall back on strerror if
35700 __strerror_r fails.
35702 * lib/path-concat.c (mempcpy): Don't define if a system header defines
35703 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
35704 (longest_relative_suffix): New function.
35705 (path_concat): Use it. Assume first argument is not NULL.
35706 Port to DOS. Omit redundant separators.
35707 Report an error instead of returning NULL.
35708 Use mempcpy instead of memcpy.
35709 (xpath_concat): Remove: not declared or used.
35711 * lib/same.h: Include <stdbool.h>
35712 (same_name): Return bool, not int.
35713 * lib/same.c (same_name): Likewise.
35714 (errno): Don't declare; we assume C89 or better now.
35716 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
35717 if not already defined.
35719 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
35720 * lib/dup-safer.c (errno): Likewise.
35722 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
35724 Merge from coreutils.
35725 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
35726 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
35727 * modules/path-concat: Don't depend on strdup.
35729 2004-08-03 Simon Josefsson <jas@extundo.com>
35731 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
35732 * lib/progname.h: Don't include stdbool.h.
35734 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
35736 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
35737 * MODULES.html.sh (func_all_modules): Remove fatal.
35739 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
35741 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
35743 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
35745 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
35748 2004-08-02 Simon Josefsson <jas@extundo.com>
35750 * lib/getsubopt.h: New file, with comments from Bruno Haible.
35751 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
35752 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
35754 2004-08-01 Simon Josefsson <jas@extundo.com>
35756 * lib/xgetdomainname.c: Include stdlib.h, for free().
35758 2004-07-19 Bruno Haible <bruno@clisp.org>
35760 * MODULES.html.sh (func_all_modules): Add dummy.
35762 2004-07-16 Simon Josefsson <jas@extundo.com>
35764 * modules/dummy: New file.
35766 2004-07-16 Simon Josefsson <jas@extundo.com>
35768 * lib/dummy.c: New file.
35770 2004-07-16 Bruno Haible <bruno@clisp.org>
35772 * lib/backupfile.h: Add extern "C" for C++.
35773 * lib/closeout.h: Likewise.
35774 * lib/copy-file.h: Likewise.
35775 * lib/findprog.h: Likewise.
35776 * lib/full-write.h: Likewise.
35777 * lib/pathname.h: Likewise.
35778 * lib/progname.h: Likewise.
35779 * lib/stpcpy.h: Likewise.
35780 * lib/stpncpy.h: Likewise.
35781 * lib/strcase.h: Likewise.
35782 * lib/strstr.h: Likewise.
35783 * lib/xalloc.h: Likewise.
35785 * lib/mbswidth.h: Add extern "C" for C++.
35786 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
35788 2004-07-13 Robert Millan <robertmh@gnu.org>
35790 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
35792 2004-07-09 Simon Josefsson <jas@extundo.com>
35794 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
35795 failed without this.)
35797 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
35799 * modules/chown (Files): Add lib/fchown-stub.c, since
35800 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
35802 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
35804 * lib/fchown-stub.c: New file.
35806 2004-06-24 Jim Meyering <jim@meyering.net>
35808 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
35810 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
35812 * modules/argz: Omit "#include".
35814 * MODULES.html.sh (func_all_modules): Add calloc, to match
35815 2004-06-01 addition of calloc module.
35817 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
35819 * m4/argz.m4: New file, which is autoupdated from libtool.
35821 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
35823 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
35826 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
35828 * config/srclist-update: Don't insist on "USA." before the
35829 close-comment, as libtool omits the period and puts the */ on a
35831 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
35832 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
35834 2004-06-22 Gary V. Vaughan <gary@gnu.org>
35836 * modules/argz: New file.
35837 * MODULES.html.sh (func_all_modules): Add argz.
35839 2004-06-12 Jim Meyering <jim@meyering.net>
35840 and Paul Eggert <eggert@cs.ucla.edu>
35842 * modules/hash (Files): Add lib/xalloc.h.
35843 * modules/pipe (Depends-on): Add wait-process.
35844 * modules/stat (Depends-on): Add xalloc.
35845 * modules/userspec (Files): Add lib/userspec.h.
35848 Upgrade from gettext-0.13.
35849 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
35850 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
35851 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
35853 2004-06-10 Jim Meyering <jim@meyering.net>
35855 * lib/calloc.c: New file.
35857 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
35859 * lib/getdate.y (yylex): Allow space between sign and number.
35860 Problem reported by Dan Jacobson.
35862 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
35864 Merge from coreutils CVS.
35866 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
35867 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
35868 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
35869 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
35870 xstrtol.m4: Fix copyright date and/or serial number.
35872 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
35873 See if we need an fchown replacement.
35874 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
35875 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
35876 and use the replacement function if we detect either defect.
35878 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
35881 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
35882 and Jim Meyering <jim@meyering.net>
35884 Merge from coreutils CVS.
35886 * lib/stat-macros.h: New file, with contents from file-type.h
35887 and coreutils' system.h.
35888 * lib/file-type.c: Include "stat-macros.h".
35889 * lib/file-type.h (file_type): Move all macro definitions to new file,
35892 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
35893 Wrap old code with this conditional.
35894 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
35895 function that does not dereference symlinks.
35896 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
35898 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
35899 dependency problems.
35900 (xreadlink): Accept new arg SIZE, for efficiency.
35901 All decls and uses changed.
35902 * lib/xreadlink.h: Include <stddef.h>, for size_t.
35904 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
35905 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
35907 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
35910 2004-06-01 Jim Meyering <jim@meyering.net>
35912 * m4/calloc.m4: New file.
35914 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
35916 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
35917 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
35918 Also, fix a typo in a diagnostic.
35920 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
35922 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
35923 or AC_FUNC_REALLOC.
35925 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
35927 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
35928 macros to be defined.
35929 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
35930 the allocator returns NULL because the requested size is zero.
35932 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
35934 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
35935 var. Add comment explaining why libc still defines it. This
35936 merges the following patch from glibc:
35937 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
35939 2004-05-20 Andreas Schwab <schwab@suse.de>
35941 * m4/free.m4: Replace free if it not known to work, not the other
35944 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
35946 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
35947 present in glibc since revision 1.1 of this file.
35948 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
35949 obstack_alignment_mask, obstack_alloc, obstack_base,
35950 obstack_blank, obstack_blank_fast, obstack_chunk_size,
35951 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
35952 obstack_grow0, obstack_init, obstack_int_grow,
35953 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
35954 obstack_next_free, obstack_object_size, obstack_ptr_grow,
35955 obstack_ptr_grow_fast, obstack_room): Remove declarations of
35956 nonexistent functions.
35958 2004-05-18 Karl Berry <karl@gnu.org>
35960 * config/srclist.txt: break link for vasnprintf.c.
35962 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
35964 Port obstack to the AS/400, where pointers are 16 bytes wide and
35965 you cannot cast an integer to a valid pointer. This patch is
35966 currently waiting to be integrated into glibc; see
35967 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
35969 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
35970 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
35971 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
35972 (struct obstack): temp member is now a union of a pointer and
35973 an integer, instead of an integer. All integer uses changed.
35974 This does not affect the physical layout of struct obstack,
35975 except on hosts (like the AS/400) where the size or alignment of
35976 void * is greater than that of ptrdiff_t.
35977 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
35978 __STDC__)]: Store temporary in pointer member of union, not
35980 * lib/obstack.c: Include <stddef.h>, for offsetof.
35981 (struct fooalign): Remove; it doesn't need a name.
35982 (union fooround): Change double to long double, and add void *.
35983 (DEFAULT_ALIGNMENT): Use offsetof to compute.
35984 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
35985 not a macro. Hence the values are always int; so remove all
35986 casts-to-int in uses.
35988 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
35990 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
35991 we can get this patch merged into glibc.
35993 2004-05-17 Derek R. Price <derek@ximbiot.com>
35994 Paul Eggert <eggert@cs.ucla.edu>
35996 * m4/argp: Depend on alloca.
35998 2004-05-17 Derek R. Price <derek@ximbiot.com>
35999 Paul Eggert <eggert@cs.ucla.edu>
36001 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
36004 2004-05-17 Bruno Haible <bruno@clisp.org>
36006 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
36007 precision that consists of a '.' followed by an empty digit string.
36008 Patch by Tor Lillqvist <tml@iki.fi>.
36010 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
36012 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
36013 for backward compatibility with older code. We need our own
36014 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
36015 it under some other name, and our alloca.h will define it.
36017 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
36018 Derek Price <derek@ximbiot.com>
36020 * lib/alloca.c: Include <alloca.h>, to get our interface.
36021 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
36022 include <alloca.h> first. Use C89 prototype for alloca; this
36023 requires including <stddef.h> for size_t. Use extern "C" if C++.
36024 Use #elif for simplicity, since we can assume C89 now.
36025 Don't try to source the system alloca.h since it will not be found
36026 and to prevent recursively including its replacement.
36027 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
36028 * lib/regex.c: Likewise.
36030 2004-05-16 Derek Price <derek@ximbiot.com>
36031 Paul Eggert <eggert@cs.ucla.edu>
36033 getline cleanup. This changes the getndelim2 API: both order of
36034 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
36037 * lib/getline.c: Don't include stddef.h or stdio.h, since our
36038 interface does that.
36039 (getline): Always use getdelim, so that we don't have two
36040 copies of this code.
36041 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
36043 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
36044 (GETNDELIM2_MAXIMUM): New macro.
36045 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
36046 instead of the old practice of delim2==0. All callers changed.
36047 Return -1 on overflow, instead of returning junk.
36048 Do not set *linesize unless allocation succeeds.
36049 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
36050 that we include sys/types.h.
36051 * lib/getnline.h: Likewise.
36052 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
36053 (getndelim2): Reorder arguments.
36054 * lib/getnline.c (getnline, getndelim):
36055 Don't discard the NMAX argument.
36056 (getnline): Invoke getndelim, to avoid code duplication.
36057 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
36058 of (size_t) -1 by callers of the getnline family.
36060 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
36062 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
36063 Check for gettimeofday.
36064 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
36065 Check for settimeofday, stime.
36067 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
36069 * lib/nanosleep.c (suspended): Change its type from int to
36070 sig_atomic_t volatile.
36071 (first_call): Make it private to rpl_nanosleep, and have it
36072 be zero initially as that's a bit faster.
36073 (my_usleep): Round up fractional times instead of truncating them,
36074 as this is the usual meaning for 'sleep'.
36076 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
36078 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
36079 (ENOSYS): Define if not defined.
36080 (settime): Fall back on stime if it exists and settimeofday fails.
36081 But don't bother with fallbacks if a method fails with errno == EPERM.
36083 2004-05-11 Jim Meyering <jim@meyering.net>
36085 Prior to this change, the save_cwd caller required read access to the
36086 current directory on most systems (ones with the fchdir function).
36088 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
36089 fails, try write-only, and finally, resort to using xgetcwd.
36091 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
36093 * lib/obstack.c, obstack.h: Import changes from libc.
36095 2004-04-28 Bruno Haible <bruno@clisp.org>
36097 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
36098 also implicitly appends .exe to executables.
36099 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
36100 accepts Windows pathnames.
36101 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
36102 Treat Cygwin like Windows, since it now accepts Windows pathnames.
36103 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
36104 Treat Cygwin like Windows, since it now accepts Windows pathnames.
36105 Reported by Derek Robert Price <derek@ximbiot.com>.
36107 2004-04-21 Karl Berry <karl@gnu.org>
36109 * config/srclist.txt (localcharset.c): break sync.
36111 2004-04-20 Paul Eggert <eggert@twinsun.com>
36113 * m4/host-os.m4: Add a copyright notice.
36115 2004-04-20 Jim Meyering <jim@meyering.net>
36117 Change UTILS_ to gl_ in AC_DEFINE'd names.
36118 Change utils_- and jm_-prefixed variables, too.
36119 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
36120 UTILS_FUNC_MKDIR_TRAILING_SLASH.
36121 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
36123 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
36124 Don't emit trailing blanks.
36125 Also rename jm_-prefixed variables to have gl_ prefix.
36127 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
36128 Also rename jm_-prefixed variables to have gl_ prefix.
36130 * m4/jm-macros.m4: Reflect the renamings.
36131 * m4/prereq.m4: Likewise.
36133 2004-04-20 Jim Meyering <jim@meyering.net>
36135 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
36138 2004-04-20 Jim Meyering <jim@meyering.net>
36139 Bruno Haible <bruno@clisp.org>
36141 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
36142 memory when realloc fails.
36144 2004-04-19 Jim Meyering <jim@meyering.net>
36146 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
36147 now that readutmp.c may call `free (0)'.
36149 2004-04-19 Bruno Haible <bruno@clisp.org>
36151 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
36152 * m4/inttypes_h.m4: Likewise.
36153 * m4/stdint_h.m4: Likewise.
36154 * m4/intmax_t.m4: Likewise.
36155 * m4/uintmax_t.m4: Likewise.
36157 2004-04-18 Jim Meyering <jim@meyering.net>
36159 * m4/prereq.m4: Don't forbid jm_ prefix.
36161 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
36162 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
36163 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
36164 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
36165 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
36166 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
36167 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
36168 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
36169 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
36170 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
36171 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
36172 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
36173 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
36174 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
36175 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
36176 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
36177 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
36178 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
36179 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
36181 2004-04-18 Jim Meyering <jim@meyering.net>
36183 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
36184 failure, don't leak memory and do call END_UTMP_ENT.
36186 2004-04-16 Jim Meyering <jim@meyering.net>
36188 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
36189 coreutils' stat program.
36190 (gl_PREREQ): Don't require jm_PREREQ_STAT.
36192 2004-04-11 Paul Eggert <eggert@twinsun.com>
36194 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
36196 (CHAR_BIT): Remove, since we assume C89.
36197 Include <stdint.h> if available, as per current Autoconf CVS advice.
36199 2004-03-31 Jim Meyering <jim@meyering.net>
36201 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
36202 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
36203 * m4/xalloc.m4: Likewise.
36205 2004-03-30 Paul Eggert <eggert@twinsun.com>
36207 Merge from coreutils.
36209 * m4/inttostr.m4: New file.
36210 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
36211 Require AM_STDBOOL_H and gl_TIMESPEC instead.
36212 Require gl_CLOCK_TIME.
36213 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
36215 2004-03-30 Paul Eggert <eggert@twinsun.com>
36217 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
36218 not bool, to be more consistent with Unix conventions.
36219 Suggested by Bruno Haible.
36221 Merge from coreutils.
36223 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
36224 * lib/umaxtostr.c: New files.
36226 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
36227 the usual <time.h> dance.
36228 (get_date): Change signature to support fractional time stamps.
36229 All callers changed.
36230 * lib/getdate.y: Include "getdate.h" first, as we can now
36231 assume C89 and don't need to worry about 'const'.
36232 Similarly, include "unlocked-io.h" near start, not in middle.
36233 Include <limits.h>.
36234 (textint.value): Use long int rather than int.
36235 (textint.digits): Use size_t rather than int.
36236 (BILLION, LOG10_BILLION): New constants.
36237 (parser_control): New member rel_ns. Members day_ordinal,
36238 time_zone, month, day, hour, minutes, rel_year, rel_month,
36239 rel_day, rel_hour, rel_minutes, rel_seconds
36240 are now long int, not int. Member seconds is now struct timespec,
36241 not int. New member timespec_seen. Members dates_seen, days_seen,
36242 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
36244 (%union.intval): Now long int, not int.
36245 New member timespec.
36246 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
36247 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
36248 (spec): Now is a timespec or an item list.
36249 (timespec, items): New nonterminals.
36250 (time, rel, relunit, number, get_date):
36251 Add support for fractional seconds.
36252 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
36253 (gmtime, localtime, mktime): Remove decls; not needed with C89.
36254 (to_hour): First arg is now long int, not int.
36255 (to_year): Returns long int, not int.
36256 Don't treat year -70 like 70.
36257 (tm_diff): Returns long int, not int.
36258 (lookup_word): Use bool instead of int when appropriate.
36259 (yylex): Use size_t for count, not int.
36260 Detect overflow when parsing large integer constants.
36261 Add support for fractions.
36262 (get_date): Make pointers 'const' if possible.
36263 Use more-portable code to detect integer overflow.
36264 (main) [TEST]: Adjust to above changes. Test for localtime failure.
36265 Don't use ctime; it's not reliable if the year has >4 digits.
36267 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
36268 This is for compatibility with BSD.
36270 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
36271 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
36272 From coreutils' system.h.
36274 * lib/userspec.c: Don't include "posixver.h".
36275 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
36276 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
36277 compatible extension. Simplify code by removing a boolean int
36278 that was always nonzero if a string was nonnull.
36280 2004-03-30 Jim Meyering <jim@meyering.net>
36282 Merge from coreutils.
36284 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
36285 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
36286 on some systems one must include <grp.h> before it.
36287 Reported by Christian Krackowizer.
36289 2004-03-30 Jim Meyering <jim@meyering.net>
36291 Merge from coreutils.
36293 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
36295 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
36296 an empty input stream.
36298 * lib/readtokens.c: Include <stdbool.h>.
36299 (readtoken): Use `size_t' rather than int/long.
36300 All callers adjusted.
36301 Use `bool' rather than `int' where appropriate.
36302 Use memset rather than an explicit loop.
36303 Use x2nrealloc rather than xrealloc.
36304 Allow the use of `\0' as a delimiter.
36305 (readtokens): Likewise.
36306 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
36308 2004-03-30 Jim Meyering <jim@meyering.net>
36310 * m4/realloc.m4: Remove file, since now it does no more than
36311 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
36312 the `configure.ac' section of module/realloc.
36313 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
36315 2004-03-30 Bruno Haible <bruno@clisp.org>
36317 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
36320 2004-03-29 Paul Eggert <eggert@twinsun.com>
36322 Merge changes to getloadavg.c from coreutils and Emacs.
36324 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
36325 Define to an expression, not to the empty string.
36326 Include cloexec.h and xalloc.h.
36327 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
36328 Use set_cloexec_flag rather than rolling our own.
36329 * lib/cloexec.c, lib/cloexec.h: New files.
36331 2004-03-29 Paul Eggert <eggert@twinsun.com>
36333 * m4/cloexec.m4: New file.
36335 2004-03-18 Paul Eggert <eggert@twinsun.com>
36337 * lib/getopt.h: Sync with libc CVS.
36339 2004-03-18 Paul Eggert <eggert@twinsun.com>
36340 Bruno Haible <bruno@clisp.org>
36342 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
36345 2004-03-18 Paul Eggert <eggert@twinsun.com>
36346 Bruno Haible <bruno@clisp.org>
36348 * lib/mbswidth.h: Include <wchar.h> only if
36349 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
36351 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
36353 2004-03-09 Paul Eggert <eggert@twinsun.com>
36355 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
36356 Sync with libc CVS.
36357 * lib/getopt_int.h: New file, also synced from libc.
36359 2004-03-09 Paul Eggert <eggert@twinsun.com>
36361 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
36362 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
36363 Bring back getopt.c, getopt.h, getopt1.c.
36365 2004-03-07 Paul Eggert <eggert@twinsun.com>
36367 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
36368 All uses changed. Check for sa_sigaction member; this fixes
36369 a bug first reported by Jason Andrade in
36370 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36372 2004-03-07 Paul Eggert <eggert@twinsun.com>
36374 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
36375 '#if' expressions. Unlike the code it replaces, it does not
36376 depend on (defined _SC_PAGESIZE). However, it does depend on
36377 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
36378 first reported by Jason Andrade in
36379 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36381 2004-02-25 Simon Josefsson <jas@extundo.com>
36383 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
36385 2004-02-25 Simon Josefsson <jas@extundo.com>
36387 * lib/strdup.h: New file.
36388 * lib/strdup.c: Include it.
36389 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
36390 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
36392 2004-02-23 Karl Berry <karl@gnu.org>
36394 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
36395 (from fencepost.gnu.org:/gd/gnuorg).
36397 2004-02-23 Karl Berry <karl@gnu.org>
36399 * config/srclistvars.sh (GNUORG) [karl]: redefine.
36400 * config/srclist.txt: add maintain/standards documents.
36402 2004-02-18 Bruno Haible <bruno@clisp.org>
36404 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
36405 Reported by Derek Robert Price <derek@ximbiot.com>.
36407 2004-02-16 Karl Berry <karl@gnu.org>
36409 * config/mkinstalldirs, install-sh: update from automake.
36411 2004-02-06 Karl Berry <karl@gnu.org>
36413 * m4/po.m4: update from gettext 0.14.1.
36415 2004-02-06 Karl Berry <karl@gnu.org>
36417 * lib/config.charset: update from gettext 0.14.1.
36419 2004-02-05 Paul Eggert <eggert@twinsun.com>
36421 Add comments and code, prompted by suggestions from Bruno Haible
36423 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
36424 describing the enum quoting_style values.
36425 * lib/quotearg.c (quotearg_alloc): New function.
36426 (quotearg_buffer_restyled): Treat lone { and } as special.
36427 Treat = as special. Work around bug with older shells
36428 that "see" a '\' that is really the 2nd byte of a multibyte char.
36429 Quote empty string with shell_quoting_style.
36431 2004-02-03 Bruno Haible <bruno@clisp.org>
36433 * m4/pipe.m4: New file, from GNU gettext.
36435 2004-02-03 Bruno Haible <bruno@clisp.org>
36437 * lib/pipe.h: New file, from GNU gettext.
36438 * lib/pipe.c: New file, from GNU gettext.
36440 2004-01-27 Bruno Haible <bruno@clisp.org>
36442 * m4/execute.m4: New file, from GNU gettext.
36444 2004-01-27 Bruno Haible <bruno@clisp.org>
36446 * lib/execute.h: New file, from GNU gettext.
36447 * lib/execute.c: New file, from GNU gettext.
36448 * lib/w32spawn.h: New file, from GNU gettext.
36450 2004-01-24 Paul Eggert <eggert@twinsun.com>
36452 Merge from diffutils.
36454 * lib/file-type.c (file_type): Add typed memory objects.
36455 * lib/file-type.h (S_TYPEISTMO): New macro.
36457 * lib/c-stack.h (c_stack_action): Remove argv argument.
36458 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
36459 (die): Don't calculate message unless segv_action returns.
36460 (get_stack_location, min_address_from_argv, max_address_from_argv,
36461 volatile stack_base, volatile_stack_size): Remove.
36462 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
36463 that every segmentation violation is a stack overflow. (Ouch!)
36464 See Debian bug 136249 (still outstanding) for more info about why
36465 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
36467 2004-01-24 Paul Eggert <eggert@twinsun.com>
36469 Exit-status fix from coreutils.
36471 Use exit_failure consistently in place of EXIT_FAILURE,
36472 so that program exit statuses are consistent on failure.
36474 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
36475 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
36476 * lib/argmatch.h: Comment fix to match the above.
36477 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
36478 Now a macro referring to exit_failure, instead of a separate
36479 variable. Include "exitfail.h" to get it.
36480 * lib/xstrtol.h: Include "exitfail.h".
36481 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
36483 * lib/long-options.c (parse_long_options): Use prototype
36484 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
36487 2004-01-21 Jim Meyering <jim@meyering.net>
36489 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
36490 so as not to conflict with a different-sized __mktime_internal
36491 function in GNU libc.
36492 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
36493 Problem building statically-linked `ls' reported by Michael Brunnbauer.
36495 2004-01-20 Karl Berry <karl@gnu.org>
36497 * config/config.guess: update from config.
36499 * config/srclistvars.sh: GNUWWWLICENSES for karl.
36501 2004-01-20 Bruno Haible <bruno@clisp.org>
36503 Safer stack allocation.
36504 * lib/setenv.c: Include allocsa.h.
36505 (alloca): Remove fallback definition.
36506 (freea): Remove macro.
36507 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
36510 2004-01-20 Bruno Haible <bruno@clisp.org>
36512 * m4/eealloc.m4: New file, from GNU gettext.
36514 2004-01-20 Bruno Haible <bruno@clisp.org>
36516 * m4/allocsa.m4: New file, from GNU gettext.
36518 2004-01-20 Bruno Haible <bruno@clisp.org>
36520 * lib/xallocsa.h: New file, from GNU gettext.
36521 * lib/xallocsa.c: New file, from GNU gettext.
36523 2004-01-20 Bruno Haible <bruno@clisp.org>
36525 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
36527 2004-01-20 Bruno Haible <bruno@clisp.org>
36529 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
36530 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
36533 2004-01-20 Bruno Haible <bruno@clisp.org>
36535 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
36538 2004-01-20 Bruno Haible <bruno@clisp.org>
36540 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
36542 2004-01-20 Bruno Haible <bruno@clisp.org>
36544 * lib/eealloc.h: New file.
36546 2004-01-20 Bruno Haible <bruno@clisp.org>
36548 * lib/binary-io.h: Avoid warnings on Cygwin.
36550 2004-01-20 Bruno Haible <bruno@clisp.org>
36552 * lib/allocsa.h: New file, from GNU gettext.
36553 * lib/allocsa.c: New file, from GNU gettext.
36555 2004-01-18 Karl Berry <karl@gnu.org>
36557 * doc/gpl.texi, doc/lgpl.texi: new files.
36559 2004-01-18 Karl Berry <karl@gnu.org>
36561 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
36562 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
36564 2004-01-15 Paul Eggert <eggert@twinsun.com>
36566 Merge from coreutils.
36568 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
36569 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
36570 (gl_DEFAULT_POSIX2_VERSION): Move
36571 the documentation from 'configure' into 'config.hin',
36572 so that 'configure --help' isn't burdened by it and
36573 we don't have to worry about its formatting there.
36574 Reword the documentation so that it's more succinct
36575 and can be run together into a single paragraph.
36576 * m4/same.m4 (gl_SAME): Check for pathconf.
36578 2004-01-15 Paul Eggert <eggert@twinsun.com>
36580 Merge from coreutils.
36582 * lib/posixver.c: Include posixver.h.
36584 * lib/same.c: Include <stdbool.h>, <limits.h>.
36585 (_POSIX_NAME_MAX): Define if not defined.
36587 (same_name): If file names are silently truncated, report
36588 that the file names are the same if they are the same after
36589 the silent truncation.
36591 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
36592 conversion function.
36593 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
36594 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
36597 2004-01-15 Jim Meyering <jim@meyering.net>
36599 Merge from coreutils.
36601 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
36602 if no library is required.
36603 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
36604 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
36605 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
36606 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
36607 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
36608 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
36609 value, $ac_cv_search_crypt, if it's "none required".
36610 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
36611 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
36612 not gl_FUNC_GETLOADAVG.
36613 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
36614 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
36616 2004-01-15 Jim Meyering <jim@meyering.net>
36618 Merge from coreutils.
36620 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
36621 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
36622 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
36624 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
36625 optional configure-time default.
36627 * lib/version-etc.c (version_etc_copyright): Update copyright date.
36629 * lib/xreadlink.c (xreadlink): Correct outdated comment.
36631 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
36633 Merge from coreutils.
36635 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
36636 value, $ac_cv_search_nanosleep, if it's "none required".
36638 2004-01-14 Paul Eggert <eggert@twinsun.com>
36640 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
36641 with like-named macro in fnmatch.c.
36642 (EXT): Use an internal constant instead.
36644 Merge fnmatch patches from glibc.
36645 * lib/fnmatch.c (mbsinit): Remove define.
36646 Add libc_hidden_ver (__fnmatch, fnmatch).
36647 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
36648 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
36650 2004-01-14 Karl Berry <karl@gnu.org>
36652 * config/install-sh: update from automake.
36654 2004-01-13 Karl Berry <karl@gnu.org>
36656 * config/install-sh: update from automake.
36658 2004-01-09 Karl Berry <karl@gnu.org>
36660 * config/install-sh: update from automake.
36662 2004-01-05 Karl Berry <karl@gnu.org>
36664 * config/config.{sub,guess}: update from config.
36666 2003-12-31 Karl Berry <karl@gnu.org>
36668 * config/depcomp: update from automake.
36670 2003-12-14 Karl Berry <karl@gnu.org>
36672 * lib/config.charset: update from gettext-runtime.
36674 2003-12-03 Paul Eggert <eggert@twinsun.com>
36676 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
36677 Bug reported by Alfred M. Szmidt.
36679 2003-12-03 Bruno Haible <bruno@clisp.org>
36681 * m4/gettext.m4: Upgrade from gettext-0.13.
36682 * m4/po.m4: Upgrade from gettext-0.13.
36683 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
36684 * m4/intmax.m4: New file, from gettext-0.13.
36685 * m4/printf-posix.m4: New file, from gettext-0.13.
36687 2003-11-29 Karl Berry <karl@gnu.org>
36689 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
36691 2003-11-25 Paul Eggert <eggert@twinsun.com>
36692 Bruno Haible <bruno@clisp.org>
36694 * lib/printf-parse.h: Don't include sys/types.h.
36695 (ARG_NONE): New macro.
36696 (char_directive): Change type of *arg_index fields to size_t.
36697 * lib/printf-parse.c: Don't include sys/types.h.
36698 (SSIZE_MAX): Remove macro.
36699 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
36700 Remove unnecessary overflow check.
36701 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
36704 2003-11-25 Bruno Haible <bruno@clisp.org>
36706 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
36708 2003-11-25 Bruno Haible <bruno@clisp.org>
36710 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
36713 2003-11-24 Paul Eggert <eggert@twinsun.com>
36715 * modules/alloca: Remove dependency on xalloc.
36717 2003-11-24 Paul Eggert <eggert@twinsun.com>
36719 * lib/alloca.c: Remove dependency on xalloc module.
36720 (xalloc_die): Remove.
36721 (memory_full) [!defined emacs]: New macro.
36722 [!defined emacs]: Don't include xalloc.h.
36723 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
36724 address arithmetic overflows. Change datatypes a bit to avoid
36727 2003-11-22 Jim Meyering <jim@meyering.net>
36729 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
36732 2003-11-21 Karl Berry <karl@gnu.org>
36734 * config/config.{sub,guess}: update from config.
36736 2003-11-18 Karl Berry <karl@gnu.org>
36738 * config/config.{sub,guess}: update from config.
36740 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
36742 2003-11-17 Paul Eggert <eggert@twinsun.com>
36744 * README: Mention that S+T cannot overflow if S is the size of
36745 an existing object and T is sufficiently small.
36747 2003-11-17 Jim Meyering <jim@meyering.net>
36749 On systems without utime and without a utimes function capable of
36750 dealing with a NULL struct utimbuf* argument, this utime replacement
36751 could -- in unusual circumstances -- leak a file descriptor.
36752 * lib/utime.c: Include <unistd.h> and <errno.h>.
36753 (utime_null): Be sure to close `fd' and to preserve errno.
36754 Reported by Geoff Collyer via Arnold Robbins.
36756 2003-11-17 Bruno Haible <bruno@clisp.org>
36758 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
36759 (Depends-on): Add xsize.
36761 2003-11-17 Bruno Haible <bruno@clisp.org>
36763 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
36765 2003-11-17 Bruno Haible <bruno@clisp.org>
36767 * lib/vasnprintf.c (alloca): Remove fallback definition.
36768 (freea): Remove definition.
36769 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
36770 Reported by Paul Eggert.
36772 2003-11-16 Paul Eggert <eggert@twinsun.com>
36773 Bruno Haible <bruno@clisp.org>
36775 Protect against address arithmetic overflow.
36776 * lib/printf-args.h: Include stddef.h.
36777 (arguments): Change type of field 'count' to size_t.
36778 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
36779 'unsigned int' where appropriate.
36780 * lib/printf-parse.h: Include sys/types.h.
36781 (char_directive): Change type of *arg_index fields to ssize_t.
36782 (char_directives): Change type of fields 'count', max_*_length to
36784 * lib/printf-parse.c: Include sys/types.h and xsize.h.
36785 (SSIZE_MAX): Define fallback value.
36786 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
36787 instead of 'int' where appropriate. Check a_allocated, d_allocated
36788 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
36789 * lib/vasnprintf.c: Include xsize.h.
36790 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
36791 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
36792 overflow. Avoid wraparound when converting a width or precision from
36795 2003-11-16 Bruno Haible <bruno@clisp.org>
36797 Update from GNU gettext.
36798 * lib/printf-parse.c: Generalize to it can be compiled for wide
36800 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
36801 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
36802 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
36803 SNPRINTF): New macros.
36804 Don't include <alloca.h> if the file is used inside libintl.
36805 (local_wcslen): New function, for Solaris 2.5.1.
36806 (VASNPRINTF): Use it instead of wcslen.
36808 2003-11-16 Bruno Haible <bruno@clisp.org>
36810 * lib/xsize.h (xmax): New function.
36811 (xsum, xsum3, xsum4): Declare as "pure" functions.
36813 2003-11-12 Paul Eggert <eggert@twinsun.com>
36815 * modules/xalloc (Files): Undo latest change, since xalloc.h
36816 no longer needs SIZE_MAX or PTRDIFF_MAX.
36818 2003-11-12 Paul Eggert <eggert@twinsun.com>
36820 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
36823 2003-11-12 Paul Eggert <eggert@twinsun.com>
36825 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
36826 "return", to pacify some unknown compiler. Problem reported
36827 by Joerg Schilling.
36829 2003-11-12 Paul Eggert <eggert@twinsun.com>
36831 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
36832 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
36833 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
36834 heuristic is just as accurate as far as we know, and it removes a
36835 dependency on size_max.m4 and ptrdiff_max.m4.
36837 2003-11-11 Bruno Haible <bruno@clisp.org>
36839 * modules/xsize (Files): Add m4/size_max.m4.
36840 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
36842 2003-11-11 Bruno Haible <bruno@clisp.org>
36844 * m4/size_max.m4: New file.
36845 * m4/ptrdiff_max.m4: New file.
36846 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
36847 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
36848 (gl_XALLOC): Invoke it.
36850 2003-11-11 Bruno Haible <bruno@clisp.org>
36852 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
36853 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
36856 2003-11-10 Paul Eggert <eggert@twinsun.com>
36858 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
36859 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
36860 rejected some allocations of exactly SIZE_MAX - 2 bytes.
36862 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
36863 not (size_t) -1, since it's defined here.
36865 2003-11-09 Karl Berry <karl@gnu.org>
36867 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
36869 2003-11-06 Paul Eggert <eggert@twinsun.com>
36871 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
36872 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
36873 Reject sizes of exactly SIZE_MAX bytes.
36874 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
36875 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
36877 2003-11-05 Bruno Haible <bruno@clisp.org>
36879 * lib/xsize.h: Include limits.h, to avoid a possible collision with
36880 SIZE_MAX defined in <limits.h> on Solaris.
36882 2003-11-04 Jim Meyering <jim@meyering.net>
36884 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
36885 variable names, rather than @VAR@.
36886 * modules/poll: Likewise.
36888 2003-11-04 Bruno Haible <bruno@clisp.org>
36890 * modules/xsize: New file.
36891 * modules/linebreak: Depend on xsize.
36892 * MODULES.html.sh (func_all_modules): Add xsize.
36894 2003-11-04 Bruno Haible <bruno@clisp.org>
36896 * m4/xsize.m4: New file.
36898 2003-11-04 Bruno Haible <bruno@clisp.org>
36900 * lib/xsize.h: New file.
36901 * lib/linebreak.c: Include xsize.h.
36902 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
36903 argument for overflow.
36904 Suggested by Paul Eggert.
36906 2003-11-03 Karl Berry <karl@gnu.org>
36908 * config/config.{guess,sub}: update from config.
36910 2003-11-03 Jim Meyering <jim@meyering.net>
36912 * modules/userspec (lib_SOURCES): Add userspec.h.
36913 (Include): Add "userspec.h".
36914 Improve description.
36916 2003-11-03 Jim Meyering <jim@meyering.net>
36918 * lib/userspec.c: Include "userspec.h".
36919 * lib/userspec.h: New file.
36921 2003-11-03 Bruno Haible <bruno@clisp.org>
36923 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
36925 2003-11-03 Bruno Haible <bruno@clisp.org>
36927 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
36928 available, to avoid (extremely rare) race condition.
36929 Suggested by Paul Eggert.
36931 2003-11-02 Karl Berry <karl@gnu.org>
36933 * config/srclist.txt (vasprintf.c): sync broken, sigh.
36935 2003-10-31 Paul Eggert <eggert@twinsun.com>
36937 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
36938 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
36939 (read_filesystem_list): Set and use me_type_malloced.
36940 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
36941 whatever the type happens to be), for brevity and consistency.
36942 Check for size calculation overflow on Alphas running OSF/1.
36944 2003-10-31 Jim Meyering <jim@meyering.net>
36946 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
36948 * lib/linebuffer.c: Include <string.h> for declaration of memset.
36950 2003-10-30 Paul Eggert <eggert@twinsun.com>
36951 Bruno Haible <bruno@clisp.org>
36953 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
36954 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
36956 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
36958 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
36959 netbsd*-gnu*. Suggested by Robert Millan.
36961 2003-10-29 Paul Eggert <eggert@twinsun.com>
36963 * modules/group-member: Depend on stdbool.
36965 2003-10-29 Paul Eggert <eggert@twinsun.com>
36967 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
36969 2003-10-29 Paul Eggert <eggert@twinsun.com>
36971 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
36972 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
36973 after the 'gnu' in these cases. This fixes some bugs in the
36974 previous change, and is based on suggestions by Robert Millan.
36976 2003-10-29 Paul Eggert <eggert@twinsun.com>
36978 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
36979 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
36981 * lib/quotearg.c (quotearg_n_options): Use it.
36982 * lib/group-member.c: Include <stdbool.h>.
36983 (free_group_info): Arg is now const *; don't free arg.
36984 (get_group_info): Now returns bool and accepts struct group_info *,
36985 rather than returning a malloc'ed struct group_info *.
36986 All uses changed. Check for overflow in internal size calculation.
36988 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
36989 rather than xmalloc/xrealloc.
36990 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
36991 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
36992 conformance bug: the old code used a pointer after freeing the
36993 storage that it addressed.
36994 * lib/hash.c (hash_initialize): Simplify the code by using
36995 xalloc_oversized rather than doing it by hand.
36996 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
36997 the buffer preserved. Use free and xmalloc instead.
36998 * lib/quotearg.c (quotearg_n_options): Likewise.
36999 Use a simpler test for size overflow. Don't use xalloc_oversized
37000 because unsigned int might be wider than size_t (!); this suggests
37001 that we should switch from unsigned int to size_t for slot numbers.
37003 2003-10-28 Paul Eggert <eggert@twinsun.com>
37005 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
37006 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
37007 NetBSD kernels. Requested by Richard Stallman.
37009 2003-10-27 Paul Eggert <eggert@twinsun.com>
37011 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
37012 to allocate the returned structure. Do not allocate a subarray,
37013 as x2nrealloc will do that.
37014 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
37015 instead of xnrealloc.
37016 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
37018 2003-10-27 Bruno Haible <bruno@clisp.org>
37020 * lib/stdbool_.h: Better support for BeOS.
37022 2003-10-26 Paul Eggert <eggert@twinsun.com>
37024 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
37027 2003-10-26 Paul Eggert <eggert@twinsun.com>
37029 * lib/xalloc.h (xalloc_oversized): New static inline function, for
37030 callers that want to do their own size-overflow checking. Include
37031 <stdbool.h>, since xalloc_oversized returns bool.
37032 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
37033 to use xalloc_oversized.
37035 Add two functions x2realloc, x2nrealloc, for programs that grow
37036 arrays dynamically by doubling their sizes.
37037 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
37038 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
37041 Port to C99 semantics for 'inline' of external functions.
37042 Bug reported by Bruno Haible.
37043 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
37044 with the old contents of xnmalloc.
37045 (xnmalloc, xmalloc): Use it.
37046 (xnrealloc_inline): New static inline function,
37047 with the old contents of xnrealloc.
37048 (xnrealloc, xrealloc): Use it.
37050 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
37053 2003-10-26 Karl Berry <karl@gnu.org>
37055 * config/srclist.txt (COPYING.DOC): no longer available from
37056 /gd/gnuorg; don't know where the ultimate source is.
37058 2003-10-25 Paul Eggert <eggert@twinsun.com>
37060 Fix several address-calculation bugs in the hash modules,
37061 plus some minor code cleanup.
37063 * lib/hash.h: Include <stdbool.h>, for bool.
37064 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
37065 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
37066 hash_get_n_entries, hash_get_max_bucket_length,
37067 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
37068 hash_rehash): Use size_t rather than unsigned.
37069 * lib/hash.c (struct hash_table, hash_get_n_buckets,
37070 hash_get_n_buckets_used, hash_get_n_entries,
37071 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
37072 hash_get_entries, hash_do_for_each, hash_string, is_prime,
37073 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
37075 (SIZE_MAX): Define if not defined.
37076 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
37077 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
37079 Use const * when possible.
37080 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
37081 (check_tuning): Fix bug: if tuning parameters were very close to
37082 0 or 1, rounding errors could have caused subscript violations.
37083 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
37084 (hash_initialize): Add 'fail:' label
37085 to free table and return NULL, and use it to simplify code.
37086 Use calloc rather than clearing the storage ourself.
37087 (hash_initialize, hash_rehash): Check for arithmetic overflow in
37088 buffer size calculations.
37089 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
37090 Include <stddef.h>, for size_t.
37091 * lib/hash-pjw.c (hash_pjw): Likewise.
37092 Switch to method described by Bruno Haible.
37093 Include <limits.h>, for CHAR_BIT.
37094 (SIZE_BITS): New macro.
37096 2003-10-23 Paul Eggert <eggert@twinsun.com>
37098 * m4/getline.m4 (AM_FUNC_GETLINE):
37099 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
37100 hosts. Problem reported by Derek Robert Price in
37101 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
37102 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
37103 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
37105 2003-10-21 Paul Eggert <eggert@twinsun.com>
37107 * lib/getndelim2.c (getndelim2): When size calculation overflows,
37108 ceiling the allocation at NMAX bytes rather than silently
37109 discarding input bytes before NMAX is reached. This makes
37110 a difference only if NMAX exceeds SIZE_MAX / 2.
37112 * lib/obstack.c: Merge from glibc.
37113 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
37114 Add libc_hidden_def (_obstack_newchunk).
37115 (_obstack_free) [! defined _LIBC]: Remove.
37116 [defined _LIBC]: Make a strong alias from obstack_free, rather than
37117 a clone of the function body.
37118 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
37119 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
37121 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
37123 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
37126 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
37127 (obstack_ptr_grow_fast, obstack_int_grow_fast):
37128 Don't use lvalue casts, as GCC plans to remove support for them
37129 in GCC 3.5. Reported by Joseph S. Myers. This bug
37130 was also present in the non-GCC version, indicating that this
37131 code had always been buggy and had never been widely used.
37132 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
37133 Use the fast variant of each macro, rather than copying the
37134 definiens of the fast variant; that way, we'll be more likely to
37135 catch future bugs in the fast variants.
37137 2003-10-20 Bruno Haible <bruno@clisp.org>
37139 * modules/wait-process: New file.
37140 * MODULES.html.sh (func_all_modules): Add wait-process.
37142 2003-10-20 Bruno Haible <bruno@clisp.org>
37144 * m4/wait-process.m4: New file.
37146 2003-10-20 Bruno Haible <bruno@clisp.org>
37148 * lib/wait-process.h: New file, from GNU gettext.
37149 * lib/wait-process.c: New file, from GNU gettext.
37151 2003-10-19 Jim Meyering <jim@meyering.net>
37153 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
37156 2003-10-18 Karl Berry <karl@gnu.org>
37158 * config/config.guess: update from config.
37160 2003-10-16 Paul Eggert <eggert@twinsun.com>
37162 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
37163 (getgroups): First arg is int, not size_t.
37164 Don't let 'free' mangle errno.
37166 2003-10-16 Paul Eggert <eggert@twinsun.com>
37168 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
37170 2003-10-16 Karl Berry <karl@gnu.org>
37172 * config/config.{guess,sub}: update from config.
37174 2003-10-16 Jim Meyering <jim@meyering.net>
37176 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
37179 2003-10-15 Paul Eggert <eggert@twinsun.com>
37181 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
37182 (SIZE_MAX): Remove.
37183 (new_exclude, add_exclude_file): Initial size no longer needs to
37185 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
37186 our own address arithmetic overflow checking.
37188 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
37189 (fnmatch): Do not alloca more than 2000 wide characters;
37190 instead, use malloc for large buffers.
37191 Check for address arithmetic overflow, and return -1
37192 with errno set to ENOMEM in that case.
37193 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
37194 (NEW_PATTERN): Do not alloca more than 8000 bytes;
37195 instead, return -1. Check for address arithmetic overflow.
37197 2003-10-14 Paul Eggert <eggert@twinsun.com>
37199 Handle invalid suffixes and overflow independently, so that
37200 callers can treat them independently as needed. Fix some bugs in
37201 suffix handling, e.g., "100k@" was not diagnosed as an invalid
37202 suffix for a human-readable blocksize. The major caller-visible
37203 change is the addition of a new
37204 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
37205 that both overflow and suffix chars were found.
37207 * lib/human.c (humblock): Don't check separately for invalid suffix
37208 char; that is xstrtoumax's job (now that its bug is fixed).
37209 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
37210 INTMAX_MAX]: New macros.
37211 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
37212 TYPE_MAXIMUM): New macros.
37213 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
37214 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
37215 if overflow occurs, as it's what __strtol does and it's more useful
37217 (__xstrtol): If __strtol reports some error other than ERANGE,
37218 reflect it to the caller as LONGINT_INVALID. If it reports
37219 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
37220 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
37221 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
37223 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
37224 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
37225 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
37226 [defined UINTMAX_MAX]: New macros.
37228 2003-10-14 Bruno Haible <bruno@clisp.org>
37230 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
37232 2003-10-14 Bruno Haible <bruno@clisp.org>
37234 * m4/sig_atomic_t: New file, from GNU gettext.
37235 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
37237 2003-10-14 Bruno Haible <bruno@clisp.org>
37239 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
37240 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
37241 Also use volatile where needed.
37243 2003-10-12 Paul Eggert <eggert@twinsun.com>
37245 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
37246 Change maintainer from Bruno Haible to 'all'.
37248 2003-10-12 Paul Eggert <eggert@twinsun.com>
37250 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
37252 2003-10-12 Paul Eggert <eggert@twinsun.com>
37254 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
37255 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
37256 and define in terms of the other primitives.
37257 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
37258 (SIZE_MAX): Define if not already defined.
37259 (array_size_overflow): New function.
37260 (xalloc_die): Abort instead of exiting if 'error' returns.
37261 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
37262 (xmalloc, xrealloc): Use them.
37263 (xcalloc): Check for address arithmetic overflow.
37264 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
37265 a bit faster than strcpy.
37267 2003-10-10 Simon Josefsson <jas@extundo.com>
37269 * modules/argp (Depends-on): Add restrict and strcase.
37271 2003-10-10 Simon Josefsson <jas@extundo.com>
37273 * m4/argp.m4: Add AC_C_INLINE.
37275 2003-10-08 Paul Eggert <eggert@twinsun.com>
37277 Merge getpass from libc, plus a few fixes.
37279 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
37280 Include <stdbool.h>.
37281 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
37282 __fsetlocking to empty.
37283 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
37284 do include <bits/libc-lock.h>.
37285 Do not include <fcntl.h>; not needed.
37286 [_LIBC]: Include <wchar.h>.
37287 (NOTCANCEL_MODE): New macro.
37288 (flockfile, funlockfile) [_LIBC]: New macros.
37289 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
37290 [!_LIBC]: New macros.
37291 (call_fclose): New function.
37292 (getpass): Use it. Save tty stream separately; this simplifies the
37293 code and makes it more reliable if stdin happens to equal stdout.
37294 Invoke __fsetlocking on tty.
37295 Handle thread cancellation if needed.
37296 Namespace cleanup (use __tcgetattr, __getline).
37297 Use bool for Booleans.
37298 [USE_IN_LIBIO]: Handle wide streams.
37299 [!_LIBC]: Unconditionally do the fseek, since we don't know what
37300 stream might go where.
37302 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
37303 doesn't have to include <stdio.h> before us.
37304 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
37305 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
37306 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
37307 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
37308 if not declared, so that we can use getpass.c code from libc without
37310 (flockfile, ftrylockfile, funlockfile): New macros.
37312 2003-10-08 Paul Eggert <eggert@twinsun.com>
37314 * modules/getpass: Depend on stdbool.
37316 2003-10-08 Paul Eggert <eggert@twinsun.com>
37318 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
37320 2003-10-07 Karl Berry <karl@gnu.org>
37322 * config/config.{guess,sub}: update from config.
37324 2003-10-06 Jim Meyering <jim@meyering.net>
37325 Bruno Haible <bruno@clisp.org>
37327 This lets translators provide better translations for the
37328 "Written by ..." part of --version output.
37329 * lib/version-etc.h: Include stdarg.h.
37330 (version_etc_copyright): Declare as readonly.
37331 (version_etc): Make this function variadic with a NULL-terminated list
37332 of author name strings.
37333 (version_etc_va): New declaration.
37334 * lib/version-etc.c: Include stdarg.h, stdlib.h.
37335 (version_etc_copyright): Declare as readonly.
37336 (version_etc_va): New function. Provide a different translatable string
37337 for each possible number of authors < 10. Abbreviate when there are 10
37339 (version_etc): Make this function variadic. Call version_etc_va.
37340 Suggestion from Gary V. Vaughan.
37342 * lib/long-options.h (parse_long_options): Change prototype: the
37343 authors string is moved to the end and becomes variadic.
37344 * lib/long-options.c: Include stdarg.h.
37345 (parse_long_options): Make this function variadic, too.
37346 Call version_etc_va, not version_etc.
37348 2003-10-06 Bruno Haible <bruno@clisp.org>
37350 * modules/version-etc-2: Remove file.
37351 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
37353 2003-10-06 Bruno Haible <bruno@clisp.org>
37355 * modules/fatal-signal: New file.
37356 * MODULES.html.sh (func_all_modules): Add fatal-signal.
37358 2003-10-06 Bruno Haible <bruno@clisp.org>
37360 * m4/fatal-signal.m4: New file.
37361 * m4/signalblocking.m4: New file, from GNU gettext.
37363 2003-10-06 Bruno Haible <bruno@clisp.org>
37365 * lib/version-etc-2.h: Remove file.
37366 * lib/version-etc-2.c: Remove file.
37368 2003-10-06 Bruno Haible <bruno@clisp.org>
37370 * lib/fatal-signal.h: New file, from GNU gettext.
37371 * lib/fatal-signal.c: New file, from GNU gettext.
37373 2003-10-05 Paul Eggert <eggert@twinsun.com>
37375 * README: Rework advice for preventing empty .o files.
37376 Don't recommend ELIDE constructs. Recommend <stddef.h>,
37379 2003-10-04 Karl Berry <karl@gnu.org>
37381 * lib/argp*: update from libc.
37383 2003-10-04 Karl Berry <karl@gnu.org>
37385 * config/config.{guess,sub}: update from config.
37387 2003-10-02 Bruno Haible <bruno@clisp.org>
37389 * modules/lchown (Include): Add lchown.h.
37390 * modules/time_r (Include): Use "..." syntax.
37391 * modules/xgetdomainname (Include): Add xgetdomainname.h.
37393 2003-10-01 Simon Josefsson <jas@extundo.com>
37395 * MODULES.html.sh (func_all_modules): Move gethostname from section
37396 'based on' to section 'lacking' POSIX:2001.
37398 2003-10-01 Larry Jones <lawrence.jones@eds.com>
37400 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
37401 to output mode on the same stream.
37403 2003-09-29 Paul Eggert <eggert@twinsun.com>
37405 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
37406 Fix arg typo in previous patch.
37408 2003-09-28 Jim Meyering <jim@meyering.net>
37410 * lib/error.c: Correct cpp indentation.
37412 2003-09-27 Paul Eggert <eggert@twinsun.com>
37414 * modules/free: New file.
37416 2003-09-27 Paul Eggert <eggert@twinsun.com>
37418 * m4/free.m4: New file.
37420 2003-09-27 Paul Eggert <eggert@twinsun.com>
37422 * lib/minmax.h (MIN, MAX)
37423 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
37424 Omit the special code that used __typeof__, since we worry that
37425 it could be more trouble than it's worth. See:
37426 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
37427 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
37429 * lib/free.c: New file.
37431 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
37433 Trivial fixes to Makefile.am parts of module listings.
37434 * modules/strstr: Append strstr.h to lib_SOURCES.
37435 * modules/strcase: Likewise, for strcase.h.
37437 2003-09-27 Karl Berry <karl@gnu.org>
37439 * config/mkinstalldirs: update from automake.
37441 2003-09-26 Paul Eggert <eggert@twinsun.com>
37443 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
37444 (error_tail): Do not loop, reallocating temporary buffer, since
37445 the output cannot contain more wide characters than the input
37446 contains bytes, the size must be big enough already. This avoids
37447 one potential size overflow calculation. Check for size overflow
37448 when calculating temporary buffer size. Free temporary buffer
37449 when done, if it was allocated with malloc; this plugs a memory
37450 leak. Remove casts from void * to pointers, that are no longer
37451 needed now that we're assuming C89 or better.
37453 Merge error changes from glibc.
37455 * lib/error.c, error.h: Update copyright notice header to match glibc.
37456 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
37457 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
37458 Disable cancellation while printing error.
37459 * lib/error.h: Prepend __ to parameter names.
37461 2003-09-26 Jim Meyering <jim@meyering.net>
37463 * lib/error.c (error_tail): Move some declarations
37464 into inner scope where the local variables are used.
37466 2003-09-26 Bruno Haible <bruno@clisp.org>
37468 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
37470 Don't define stpncpy through config.h; it's now done through stpncpy.h.
37472 2003-09-26 Bruno Haible <bruno@clisp.org>
37474 * lib/stpncpy.h (gnu_stpncpy): New declaration.
37475 (stpncpy): Define as alias for gnu_stpncpy.
37476 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
37478 2003-09-25 Simon Josefsson <jas@extundo.com>
37480 * lib/xgetdomainname.h: New file.
37481 * lib/xgetdomainname.c: New file.
37483 2003-09-25 Simon Josefsson <jas@extundo.com>
37484 Bruno Haible <bruno@clisp.org>
37486 * modules/getdomainname: New file.
37487 * modules/xgetdomainname: New file.
37488 * MODULES.html.sh (func_all_modules): Add getdomainname,
37491 2003-09-25 Simon Josefsson <jas@extundo.com>
37492 Bruno Haible <bruno@clisp.org>
37494 * m4/getdomainname.m4: New file.
37496 2003-09-25 Simon Josefsson <jas@extundo.com>
37497 Bruno Haible <bruno@clisp.org>
37499 * lib/getdomainname.h: New file.
37500 * lib/getdomainname.c: New file.
37502 2003-09-25 Karl Berry <karl@gnu.org>
37504 * lib/argp-fmtstream.c, argp-help.c: update from libc.
37506 2003-09-25 Karl Berry <karl@gnu.org>
37508 * config/install-sh: update from automake.
37510 2003-09-25 Bruno Haible <bruno@clisp.org>
37512 * modules/version-etc-2: New file, from modules/version-etc with
37514 * MODULES.html.sh (func_all_modules): Add version-etc-2.
37516 2003-09-25 Bruno Haible <bruno@clisp.org>
37518 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
37519 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
37521 2003-09-24 Simon Josefsson <jas@extundo.com>
37523 * modules/xgethostname: Add xgethostname.h.
37525 2003-09-24 Paul Eggert <eggert@twinsun.com>
37527 * lib/linebuffer.c (freebuffer): Don't free the argument, just
37528 the buffer associated with the argument. Bug reported by
37531 2003-09-24 Paul Eggert <eggert@twinsun.com>
37533 * README: Document assumptions that 'int' is at least 32 bits
37534 wide, that integer arithmetic is 2's complement without overflow,
37535 that there are no holes in integer values, that adding sizes of
37536 two nonoverlapping objects can't overflow, and that all-bits-zero
37537 yields scalar zero. Fix spelling and capitalization typos.
37539 2003-09-19 Karl Berry <karl@gnu.org>
37541 * lib/argp.h: update from libc.
37543 2003-09-17 Paul Eggert <eggert@twinsun.com>
37545 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
37546 to avoid spurious warnings like "AC_RUN_IFELSE was called before
37547 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
37549 2003-09-17 Paul Eggert <eggert@twinsun.com>
37551 * gnulib-tool: Use "test -h", not "test -L", for portability
37552 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
37553 (tags_regexp): Remove, since \| doesn't conform to POSIX.
37554 (sed_extract_prog): Issue s commands one-by-one, rather than
37555 using \| in one s command.
37557 2003-09-16 Paul Eggert <eggert@twinsun.com>
37559 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
37560 input error, instead of returning NULL the next time we are called
37561 (and therefore losing track of errno).
37563 2003-09-16 Bruno Haible <bruno@clisp.org>
37565 * gnulib-tool (func_create_testdir): Warn about duplicated
37568 2003-09-15 Paul Eggert <eggert@twinsun.com>
37570 * modules/argmatch, modules/fatal, modules/obstack,
37571 modules/xalloc, modules/xgethostname: Sort dependencies by
37572 importance, not alphabetically.
37574 2003-09-15 Paul Eggert <eggert@twinsun.com>
37576 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
37577 fails, so that the caller gets the proper errno.
37579 * lib/readutmp.c (read_utmp): Likewise.
37580 Check for fstat error. Close stream and free storage
37583 2003-09-14 Karl Berry <karl@gnu.org>
37585 * config/srclist.txt (strdup.c): disable for c89 changes.
37587 2003-09-14 Jim Meyering <jim@meyering.net>
37589 * lib/getloadavg.c: Correct cpp indentation.
37590 * lib/strdup.c: Likewise.
37591 * lib/vasnprintf.c: Likewise.
37593 2003-09-14 Bruno Haible <bruno@clisp.org>
37595 * modules/fwriteerror: New file.
37596 * MODULES.html.sh (func_all_modules): Add fwriteerror.
37598 2003-09-14 Bruno Haible <bruno@clisp.org>
37600 * lib/fwriteerror.h: New file.
37601 * lib/fwriteerror.c: New file.
37603 2003-09-12 Paul Eggert <eggert@twinsun.com>
37605 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
37606 modules/xgethostname, modules/xalloc: Depend on exit.
37608 2003-09-12 Paul Eggert <eggert@twinsun.com>
37610 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
37612 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
37613 and AC_MINIX, too, so that their extensions are available.
37615 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
37616 This macro has been superseded by gl_BACKUPFILE.
37618 More patches to assume C89 or better.
37620 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
37622 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
37624 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
37625 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
37626 Include <string.h>, <stdlib.h> unconditionally.
37627 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
37628 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
37629 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
37630 headers or for string.h.
37631 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
37634 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
37636 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
37637 * m4/userspec.m4 (gl_USERSPEC): Likewise.
37638 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
37639 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
37640 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37641 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
37643 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
37644 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
37645 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
37647 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
37648 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
37649 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
37652 2003-09-12 Paul Eggert <eggert@twinsun.com>
37654 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
37655 * lib/obstack.c [!defined _LIBC]: Likewise.
37656 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
37657 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
37658 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
37660 More changes to assume C89 or better.
37662 * lib/error.c (error_tail): Assume vprintf.
37664 * lib/argmatch.c (getenv): Remove decl.
37665 * lib/progreloc.c (get_full_program_name): Define via prototype.
37666 * lib/setenv.c (clearenv): Likewise.
37667 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
37669 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
37670 (malloc, memcpy): Remove decls.
37671 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
37672 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
37673 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37674 (memcpy): Remove macro.
37675 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
37676 (__P): Remove. All uses removed.
37677 (PTR): Remove. All uses changed to void *.
37678 (CHAR_BIT, NULL): Remove.
37679 (spaces, zeros, memset_space, memset_zero)
37680 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
37682 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
37683 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
37684 Define with prototype.
37685 Remove now-unnecessary prototype decl.
37686 (extra_args_spec): Assume ANSI C. All uses changed.
37687 (extra_args_spec_iso): Remove.
37688 (my_strftime, emacs_strftimeu): Define via prototype.
37689 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
37691 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
37692 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
37693 (strtoul, strtol): Remove decls.
37694 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
37696 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37697 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
37698 (LOCALE_PARAM_PROTO): New macro.
37699 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
37700 (INTERNAL (strtol), strtol): Define with a prototype.
37701 (PARAMS): Remove. All uses removed.
37702 * lib/tempname.c: Include <string.h> unconditionally.
37703 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
37704 * lib/xgethostname.c (main): Define with a prototype.
37705 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
37706 Include <stdlib.h> unconditionally.
37707 (calloc, malloc, realloc, free): Remove decls.
37708 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
37709 Include <stdlib.h> unconditionally. Sort include file names.
37711 (xstrtod): Define with a prototype.
37712 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
37713 (strtol, strtoul): Remove decls.
37715 2003-09-11 Paul Eggert <eggert@twinsun.com>
37717 More patches to assume C89 or better.
37718 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
37719 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
37720 string.h, memchr, STDC_HEADERS.
37722 2003-09-11 Paul Eggert <eggert@twinsun.com>
37724 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
37725 Include <stdlib.h>, <string.h> unconditionally.
37726 Remove now-unnecessary cast to char *.
37727 * lib/strnlen.c: Include <string.h> unconditionally.
37728 * lib/yesno.c (yesno): Define with a prototype.
37730 2003-09-11 Bruno Haible <bruno@clisp.org>
37732 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
37734 2003-09-10 Jim Meyering <jim@meyering.net>
37736 * lib/error.c: Correct indentation of cpp directives.
37738 2003-09-10 Bruno Haible <bruno@clisp.org>
37740 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
37741 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
37742 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
37743 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
37744 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
37745 <stdlib.h> and <string.h> checks.
37746 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
37747 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
37749 2003-09-10 Bruno Haible <bruno@clisp.org>
37751 * lib/strcspn.c: Include <string.h> unconditionally.
37752 * lib/strpbrk.c: Include <string.h> unconditionally.
37753 * lib/strstr.c: Include <string.h> unconditionally.
37754 * lib/unicodeio.c: Include <string.h> unconditionally.
37755 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
37756 * lib/unsetenv.c: Likewise.
37757 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
37758 * lib/yesno.c: Include <stdlib.h> unconditionally.
37759 (rpmatch): Add prototype.
37761 2003-09-09 Paul Eggert <eggert@twinsun.com>
37763 More patches to assume C89 or better.
37764 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
37765 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
37766 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
37768 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
37770 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
37772 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
37774 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
37775 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
37776 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
37778 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
37779 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
37781 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
37783 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
37784 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
37785 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
37786 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
37787 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
37788 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
37790 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
37791 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
37792 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
37793 C headers, or for string.h.
37794 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
37795 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
37796 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
37797 headers, memory.h, stdlib.h, string.h, strings.h.
37798 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
37799 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
37800 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
37802 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
37803 headers, memory.h, string.h.
37804 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
37805 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
37807 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
37809 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
37810 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
37811 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
37812 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
37813 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
37815 2003-09-09 Paul Eggert <eggert@twinsun.com>
37819 * lib/acosl.c (main): Use a prototype.
37820 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
37823 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
37825 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
37826 (getopt, etopt_long, getopt_long_only, _getopt_internal)
37827 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
37829 * lib/getopt.c (const): Remove macro.
37830 Include <string.h> unconditionally.
37831 (my_index): Remove; all uses changed to strchr.
37832 (strlen): Remove decl.
37833 (exchange): Remove forward decl; no longer needed.
37834 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
37835 Define with prototype.
37836 * lib/getopt1.c (const): Remove macro.
37837 (getopt_long, getopt_long_only, main): Define with prototype.
37839 * lib/getugroups.c: Include <string.h> unconditionally.
37841 * lib/getusershell.c: Include <stdlib.h> unconditionally.
37842 (getusershell, setusershell, endusershell, readname, main):
37843 Define with prototypes.
37845 * lib/group-member.c: Include group-member.h first.
37846 Include <stdlib.h> unconditionally.
37848 * lib/hard-locale.c: Include hard-locale.h first.
37849 Include <stdlib.h>, <string.h> unconditionally.
37851 * lib/hash.c (free, malloc): Remove decls.
37852 Include <stdlib.h> unconditionally.
37854 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
37855 (getenv): Do not declare.
37857 * lib/idcache.c: Include <string.h> unconditionally.
37859 * lib/long-options.c: Include long-options.h first, to test interface.
37860 Include <stdlib.h> unconditionally.
37862 * lib/makepath.c: Include makepath.h first, to test interface.
37863 Include <stdlib.h> and <string.h> unconditionally.
37865 * lib/linebuffer.c: Include <stdlib.h>.
37866 (free): Remove decl.
37868 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
37869 stddef.h. rpl_malloc returns void *, not char *.
37870 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
37873 * lib/md5.h: Include <limits.h> unconditionally.
37874 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
37875 (__P): Remove; all uses removed.
37876 * lib/md5.c: Include "md5.h" first.
37877 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
37878 md5_buffer, md5_process_bytes, md5_process_block):
37879 Define with prototypes.
37880 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
37881 * lib/sha.c: Include "sha.h" first.
37882 Include <stdlib.h>, <string.h> unconditionally.
37884 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
37885 * lib/memcmp.c (__ptr_t): Likewise.
37886 * lib/memrchr.c (__ptr_t): Likewise.
37887 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
37888 Include <string.h> unconditionally.
37889 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
37890 * lib/memchr.c: Include <stdlib.h> unconditionally.
37891 * lib/memchr.c (LONG_MAX): Remove.
37892 * lib/memrchr.c (LONG_MAX): Likewise.
37893 * lib/memchr.c (__memchr): Define via a prototype.
37894 * lib/memrchr.c (__memrchr): Likewise.
37895 * lib/memcmp.c (__P): Remove, and remove all uses.
37896 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
37897 Remove forward decls; no longer needed.
37898 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
37899 Use types required by C89 in prototype.
37901 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
37902 * lib/savedir.c: Likewise.
37903 * lib/mkdir.c (free): Remove decl.
37904 * lib/rmdir.c (rmdir): Define with a prototype.
37905 * lib/savedir.c: Include savedir.h first, to test interface.
37907 * lib/mktime.c (STDC_HEADERS): Remove.
37908 Include <stdlib.h>, <string.h> unconditionally.
37910 * lib/modechange.c: Include <stdlib.h> unconditionally.
37911 (malloc): Remove decl.
37913 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
37914 (free): Remove decl.
37916 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
37917 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
37918 (This type really should be intptr_t, but that's a C99ism.)
37919 (_obstack_memcpy): Remove: all uses changed to memcpy.
37920 Include <string.h> unconditionally.
37921 (struct obstack): Assume __STDC__ for types of members
37922 chunkfun, freefun, extra_arg.
37923 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
37924 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
37925 obstack_begin, obstack_specify_allocation,
37926 obstack_specify_allocation_with_arg, obstack_chunkfun,
37927 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
37928 Remove unprototyped decls and the macros that use them.
37929 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
37930 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
37931 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
37932 (defined __STDC__ && __STDC__)]:
37933 Remove nonprototyped code.
37934 Include <stdlib.h> unconditionally.
37935 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
37936 _obstack_allocated_p, _obstack_free, obstack_free,
37937 _obstack_memory_used, print_and_abort):
37938 Define using prototypes.
37939 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
37940 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
37941 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
37942 obstack_next_free, obstack_object_size, obstack_room) [0]:
37943 Remove unused, unprototyped code.
37945 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
37947 * lib/physmem.c (physmem_total, physmem_available, main): Define
37950 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
37951 (main): Define with a prototype.
37953 * lib/posixver.c (getenv): Remove decl.
37955 * lib/putenv.c (malloc): Returns void *, not char *.
37956 Include <string.h> unconditionally.
37957 (strchr, memcpy, NULL): Do not define.
37959 * lib/readtokens.c: Include readtokens.h first, to test interface.
37960 Include <stdlib.h>, <string.h> unconditionally.
37961 (init_tokenbuffer): Define with a prototype.
37963 * lib/regex.c (PARAMS): Remove. All uses removed.
37964 All uses of _RE_ARGS removed, too.
37965 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
37967 (bzero): Assume memset exists.
37968 (memcmp, memcpy, NULL): Remove.
37969 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
37970 char, or assignments to local vars of type signed char.
37971 (init_syntax_once, PREFIX(extract_number_and_incr),
37972 PREFIX(print_partial_compiled_pattern),
37973 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
37974 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
37975 PREFIX(regex_grow_registers), PREFIX(regex_compile),
37976 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
37977 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
37978 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
37979 wcs_compile_range, byte_compile_range, truncate_wchar,
37980 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
37981 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
37982 count_mbs_length, wcs_re_match_2_internal,
37983 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
37984 PREFIX(alt_match_null_string_p),
37985 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
37986 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
37987 regfree, PREFIX(extract_number)): Define with prototype. Remove
37988 now-unnecessary declaration, if any.
37989 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
37991 Remove now-unnecessary casts among pointer types.
37992 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
37994 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
37995 (free): Remove decl.
37997 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
37999 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
38000 (free): Remove decl.
38002 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
38003 * lib/xgetcwd.c: Likewise.
38005 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
38006 (free): Remove decl.
38008 * lib/strchrnul.c (strchrnul): Define with a prototype.
38009 Fix bug: c_in was not converted to char before searching.
38011 The following changes are not K&R related:
38013 * lib/group-member.h: Include <sys/types.h>, so that this file is
38015 * lib/makepath.h: Likewise.
38017 * lib/getusershell.c (readname, default_index, line_size, readname):
38018 Use size_t, not int, for sizes.
38019 (readname): If the size overflows, report an error instead of
38022 2003-09-09 Paul Eggert <eggert@twinsun.com>
38024 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
38027 2003-09-09 Paul Eggert <eggert@twinsun.com>
38029 * README: New section: portability guidelines.
38031 2003-09-09 Derek Robert Price <derek@ximbiot.com>
38033 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
38036 2003-09-09 Derek Robert Price <derek@ximbiot.com>
38038 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
38040 2003-09-08 Paul Eggert <eggert@twinsun.com>
38042 Assume C89 or better; remove K&R cruft.
38043 A few of these changes were first proposed by Derek Robert Price
38044 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
38046 * lib/addext.c: Include <string.h> unconditionally.
38047 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
38048 Don't declare getenv or malloc.
38050 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
38051 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
38053 (find_stack_direction, alloca): Use prototypes.
38055 * lib/atexit.c (atexit): Define using a prototype.
38057 * lib/basename.c, dirname.c, stripslash.c:
38058 Include <string.h> unconditionally.
38060 * lib/bcopy.c: Include <stddef.h>.
38061 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
38063 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
38065 * lib/error.h (error, error_at_line, error_print_progname)
38066 [! (defined (__STDC__) && __STDC__)]: Remove decls.
38067 * lib/error.c: Include error.h first, to check interface.
38068 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
38069 (VA_START): Remove; all uses changeed to va_start.
38070 (exit, strerror): Remove decls.
38071 (error_print_progname): Prototype uncondionally.
38072 Don't include <errno.h>; no longer needed.
38073 (private_strerror): Remove.
38074 (error_tail): Always define.
38075 (error, error_at_line): Assume C89 or better; always use prototypes.
38076 * lib/fatal.c: Include "fatal.h" first, to test interface.
38077 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
38078 (VA_START): Remove; all uses changed to va_start.
38079 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
38081 (exit): Remove decl.
38082 (fatal): Prototype unconditionally. Assume va_start works.
38083 Abort at end, to pacify gcc.
38085 * lib/euidaccess.c (main): Define with a prototype.
38087 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
38089 * lib/exitfail.c: Include <stdlib.h> unconditionally.
38091 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
38093 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
38094 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
38095 (getenv): Remove decl.
38096 (fnmatch): Define using a prototype.
38097 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
38098 (FCT): Define using a prototype.
38100 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
38102 * lib/gethostname.c: Include <stddef.h>.
38103 (gethostname): Define with prototype. Length is size_t, not int.
38105 2003-09-08 Paul Eggert <eggert@twinsun.com>
38107 Assume C89 or better; remove K&R cruft.
38108 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
38109 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
38110 string.h, getenv, malloc.
38111 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
38113 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
38114 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
38115 do not check for strerror.
38116 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
38117 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
38118 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
38119 do not check for doprnt or vprintf.
38120 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
38121 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
38123 2003-09-08 Paul Eggert <eggert@twinsun.com>
38125 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
38126 getversion.c should have been removed then, but was accidentally
38129 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
38130 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
38132 2003-09-08 Karl Berry <karl@gnu.org>
38134 * config/config.sub, config.guess, srclistvars.sh: update from savannah
38135 config, forget about prep.
38137 * config/depcomp, missing: update from automake.
38139 2003-09-07 Paul Eggert <eggert@twinsun.com>
38141 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
38142 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
38144 2003-09-07 Paul Eggert <eggert@twinsun.com>
38146 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
38147 copy_tm_result. Bug reported by Simon Josefsson in
38148 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
38150 2003-09-06 Paul Eggert <eggert@twinsun.com>
38152 * m4/time_r.m4: New file.
38153 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
38154 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
38155 is. Check for timegm declaration.
38156 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
38157 Do not check for gmtime_r.
38158 Replace mktime if __mktime_internal does not exist and if mktime
38159 hasn't been replaced already.
38161 2003-09-06 Paul Eggert <eggert@twinsun.com>
38163 * lib/time_r.c, lib/time_r.h: New files.
38165 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
38167 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
38168 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
38170 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
38172 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
38173 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
38174 Include <time_r.h>.
38176 * lib/timegm.c: Switch to glibc implementation, with the following
38178 [defined HAVE_CONFIG_H]: Include <config.h>.
38179 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
38180 (__mktime_internal) [!defined _LIBC]: New decl.
38181 (__gmtime_r) [!defined _LIBC]: New macro and function.
38182 (timegm): Use a prototype, since gnulib assumes C89.
38183 Do not bother declaring tmp to be const, as it's not really usefu.
38184 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
38185 (timegm): Declare only if HAVE_DECL_TIMEGM.
38187 2003-09-06 Paul Eggert <eggert@twinsun.com>
38189 * MODULES.html.sh (func_all_modules): Add time_r.
38190 * modules/time_r: New file.
38191 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
38192 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
38194 2003-09-03 Paul Eggert <eggert@twinsun.com>
38196 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
38197 Bug reported by Lute Kamstra in
38198 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
38200 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
38201 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
38202 course with correspondingly smaller numbers for tomorrow and
38203 yesterday. From Tadayoshi Funaba. Originally installed into
38204 sh-utils on 1999-08-07, but the patch got lost (I guess during the
38207 2003-08-31 Simon Josefsson <jas@extundo.com>
38209 * modules/timegm: New file.
38210 * MODULES.html.sh (func_all_modules): Add timegm.
38212 2003-08-31 Simon Josefsson <jas@extundo.com>
38214 * m4/timegm.m4: New file.
38216 2003-08-31 Simon Josefsson <jas@extundo.com>
38218 * lib/timegm.h: New file.
38219 * lib/timegm.c: New file. Based on
38220 wget-1.8.2/src/http.c:mktime_from_utc.
38222 2003-08-31 Karl Berry <karl@gnu.org>
38224 * lib/argp.h: update from libc.
38226 2003-08-28 Bruno Haible <bruno@clisp.org>
38228 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
38229 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
38230 followed by '#define fnmatch fnmatch_posix' gives an error.
38232 2003-08-28 Bruno Haible <bruno@clisp.org>
38234 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
38235 warning on QNX, which defines O_BINARY to 000000.
38237 2003-08-27 Jim Meyering <jim@meyering.net>
38239 * m4/mkstemp.m4: Require that the system mkstemp be able to create
38240 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
38241 would fail after 32. Reported by Danny Levinson. Details here:
38242 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
38244 2003-08-24 Bruno Haible <bruno@clisp.org>
38246 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
38247 MSVC7 <stdio.h> is included later.
38249 2003-08-22 Simon Josefsson <jas@extundo.com>
38251 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
38253 2003-08-20 Karl Berry <karl@gnu.org>
38255 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
38257 2003-08-20 Bruno Haible <bruno@clisp.org>
38259 * modules/progname: New file.
38260 * MODULES.html.sh (func_all_modules): Add progname.
38262 2003-08-20 Bruno Haible <bruno@clisp.org>
38264 * lib/progname.h: New file, from GNU gettext.
38265 * lib/progname.c: New file, from GNU gettext.
38266 * lib/progreloc.c: New file, from GNU gettext.
38268 2003-08-19 Jim Meyering <jim@meyering.net>
38270 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
38271 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
38273 2003-08-19 Bruno Haible <bruno@clisp.org>
38275 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
38278 2003-08-19 Bruno Haible <bruno@clisp.org>
38280 * lib/xstrdup.c: Assume <string.h> exists.
38282 2003-08-18 Paul Eggert <eggert@twinsun.com>
38284 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
38287 2003-08-18 Jim Meyering <jim@meyering.net>
38289 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
38290 * m4/lib-ld.m4: Likewise.
38292 2003-08-18 Jim Meyering <jim@meyering.net>
38294 * lib/setenv.h: Indent nested cpp directive.
38295 * lib/vasnprintf.c: Remove trailing blanks.
38297 2003-08-17 Simon Josefsson <jas@extundo.com>
38299 * modules/xstrndup: New file.
38300 * MODULES.html.sh (func_all_modules): Add xstrndup.
38302 2003-08-17 Simon Josefsson <jas@extundo.com>
38304 * modules/argp: Fix autoconf macro name. Add more dependencies.
38306 2003-08-17 Simon Josefsson <jas@extundo.com>
38308 * m4/xstrndup.m4: New file.
38310 2003-08-17 Simon Josefsson <jas@extundo.com>
38312 * m4/argp.m4: New file.
38314 2003-08-17 Simon Josefsson <jas@extundo.com>
38315 Bruno Haible <bruno@clisp.org>
38317 * lib/xstrndup.h: New file.
38318 * lib/xstrndup.c: New file.
38320 2003-08-17 Bruno Haible <bruno@clisp.org>
38322 * modules/strndup (Files, Include): Add lib/strndup.h.
38324 2003-08-17 Bruno Haible <bruno@clisp.org>
38326 * modules/euidaccess (Files): Add lib/euidaccess.h.
38328 2003-08-17 Bruno Haible <bruno@clisp.org>
38330 * lib/strndup.h: New file.
38332 2003-08-17 Bruno Haible <bruno@clisp.org>
38334 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
38335 like AC_GNU_SOURCE.
38336 * modules/extensions (configure.ac): Comment out the invocation of
38337 gl_USE_SYSTEM_EXTENSIONS.
38339 2003-08-16 Paul Eggert <eggert@twinsun.com>
38341 Merges from coreutils, etc.
38342 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
38343 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
38344 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
38346 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
38347 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
38349 2003-08-16 Paul Eggert <eggert@twinsun.com>
38351 Document merge from coreutils.
38352 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
38353 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
38354 * modules/utime: Add m4/utimes-null.m4.
38356 2003-08-16 Paul Eggert <eggert@twinsun.com>
38358 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
38359 space, undoing this 2003-08-12 change:
38360 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38362 2003-08-16 Paul Eggert <eggert@twinsun.com>
38364 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
38365 strtoul.c from libc, undoing this 2003-08-12 change:
38366 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38368 2003-08-16 Jim Meyering <jim@meyering.net>
38370 Merges from coreutils.
38371 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
38372 prefix. Adjust cache variables similarly. Create 500 rather than
38373 just 300 files, to exercise bug on Darwin6.5, too.
38374 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
38376 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
38377 AM_SYS_POSIX_TERMIOS.
38378 Reported by mkc@mathdogs.com.
38379 Also change use of $am_cv_sys_posix_termios
38380 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
38381 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
38382 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
38383 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
38384 in /proc/mounts until it finds one with matching device number. This
38385 is unnecessary when the FILE argument *is* a mount point. No stat call
38386 is necessary in that case. So, disable the statvfs-testing code on
38387 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
38388 as RedHat bug# 84846.
38389 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38390 to 1MB, so as not to render systems with no stack size limit (e.g.,
38391 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
38392 Include <unistd.h>. On some systems,
38393 it is required for the definition of _SC_PAGESIZE.
38395 2003-08-16 Jim Meyering <jim@meyering.net>
38397 Merge from coreutils.
38398 * lib/xstrtoimax.c: #else #if -> #elif.
38399 * lib/xstrtoumax.c: Likewise.
38401 2003-08-16 Jim Meyering <jim@meyering.net>
38403 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
38404 * m4/utimes.m4: Removed.
38405 * m4/utimes-null.m4: Renamed from utimes.m4.
38407 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38408 to 1MB, so as not to render systems with no stack size limit (e.g.,
38409 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
38410 Include <unistd.h>. On some systems,
38411 it is required for the definition of _SC_PAGESIZE.
38413 2003-08-16 Jim Meyering <jim@meyering.net>
38414 and Paul Eggert <eggert@cs.ucla.edu>
38416 Merges from coreutils, etc.
38418 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
38419 using the latest version from cvs. This avoids problems with #line
38420 directives using a vendor (Sun) compiler.
38421 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
38422 Don't set GETGROUPS_LIB here; now it's
38423 done via getgroups.m4's wrapper function.
38424 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
38425 rather than just in sh-util/configure.in, so that the
38426 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
38428 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
38429 AC_FUNC_GETLOADAVG where to find getloadavg.c.
38430 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
38431 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
38432 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
38433 Remove code that is now done by the newly-required macros.
38434 Append $(EXEEXT) to DF_PROG.
38435 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
38436 Do not invoke or require the following here,
38437 since prereq.m4 or some gnulib .m4 now does this for us:
38438 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
38439 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
38440 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
38441 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
38442 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
38443 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
38444 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
38446 Do not replace the following functions, as this is now the job
38447 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
38448 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
38449 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
38450 atexit getpass, strdup, getpagesize.
38452 Do not check for the following functions, as this is now the job
38453 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
38454 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
38456 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
38457 Check for sys/sysctl.h.
38458 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
38459 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
38460 of checking for ssize_t ourselves.
38462 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
38463 Require every macro that gnulib/modules/* suggests for us.
38464 (jm_PREREQ_ADDEXT): New macro.
38465 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
38466 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
38468 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
38469 (gl_PHYSMEM): Use it.
38470 Also check for `table' function.
38471 Check for new headers and functions.
38472 Add check for sys/sysmp.h.
38473 With suggestions from Kaveh Ghazi.
38474 Ignore headers that are present but cannot be compiled. This
38475 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
38478 2003-08-15 Paul Eggert <eggert@twinsun.com>
38480 Document merge from coreutils.
38481 * modules/userspec: Depend on posixver.
38482 * modules/strftime: Depend on tzset.
38484 2003-08-15 Paul Eggert <eggert@twinsun.com>
38486 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
38487 rather than tab, after '#' in shell-script copyright notices.
38488 Suggested by Bruno Haible.
38490 2003-08-15 Paul Eggert <eggert@twinsun.com>
38492 * config/srclist-update: Use three spaces, rather than tab, after '#'
38493 in shell-script copyright notices. Suggested by Bruno Haible.
38494 Remove unnecessary parenthesization in regular expression.
38496 2003-08-15 Jim Meyering <jim@meyering.net>
38498 Merge from coreutils.
38499 * lib/xgethostname.c: Include <stdlib.h>.
38500 (xghostname): Don't exit for anything other than memory-related
38501 failure; just return NULL.
38502 * lib/userspec.c: Include "posixver.h".
38503 (parse_user_spec): Accept `.' as a separator only
38504 in pre-POSIX-200112 mode.
38505 * lib/strtoimax.c: Use #elif rather than #else #if.
38506 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
38507 Remove function, now that we can rely on a working tzset function.
38508 [!_LIBC]: Ensure that the required autoconf test has been run.
38509 [!defined _NL_CURRENT && HAVE_STRFTIME]:
38510 Use underlying_strftime for %r.
38511 * lib/sha.c: Merge in some clean-up and optimization changes from
38513 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
38514 Ensure that it is a multiple of 64.
38515 Rearrange loop exit tests so as to avoid performing an
38516 additional fread after encountering an error or EOF.
38517 * lib/realloc.c: Update copyright date.
38519 2003-08-15 Jim Meyering <jim@meyering.net>
38520 and Paul Eggert <eggert@twinsun.com>
38522 Merge from coreutils.
38523 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
38524 member but strut utmpx does not. Needed for AIX 4.3.3.
38525 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
38527 2003-08-15 Jim Meyering <jim@meyering.net>
38528 and Paul Eggert <eggert@cs.ucla.edu>
38530 Merges from coreutils, etc.
38531 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
38532 Require gl_FUNC_TZSET_CLOBBER.
38533 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
38534 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
38537 2003-08-14 Paul Eggert <eggert@twinsun.com>
38539 Help the merge from coreutils.
38540 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
38541 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
38542 * m4/tzset.m4: Use it too.
38544 2003-08-14 Paul Eggert <eggert@twinsun.com>
38546 * modules/tzset: New file.
38548 2003-08-14 Jim Meyering <jim@meyering.net>
38550 Merges from coreutils.
38551 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
38552 variable names, rather than @FNMATCH_H@.
38553 * modules/alloca: Likewise for $(ALLOCA_H).
38555 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
38556 the three copies of the literal target, `fnmatch.h'.
38557 * modules/alloca (alloca.h): Likewise.
38559 2003-08-14 Jim Meyering <jim@meyering.net>
38561 Merge from coreutils.
38562 * m4/tzset.m4: New file.
38563 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
38564 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
38565 otherwise, AIX 5.1 systems would end up using the latter.
38566 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
38567 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
38568 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
38569 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
38571 2003-08-14 Jim Meyering <jim@meyering.net>
38573 Merge from coreutils.
38574 * lib/obstack.h: Whitespace changes.
38575 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
38576 and xcalloc return values.
38577 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
38578 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
38579 hang on OSF/1 5.1 for DIR on both local and remote file systems.
38580 Reported by (and fix confirmed by) Nelson H. F. Beebe.
38581 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
38583 Use mntctl's return value to drive the entry-processing loop, since
38584 we can't rely on the value of the vmt_length member in the last
38585 entry. On some systems doing so could result in exhausting
38586 virtual memory. Based in part on a patch from Mike Jetzer.
38588 2003-08-14 Jim Meyering <jim@meyering.net>
38589 and Paul Eggert <eggert@twinsun.com>
38591 Merges from coreutils, plus other fixes.
38592 * lib/physmem.c: Merge in portability changes from gcc/libiberty
38593 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
38594 for credits and details. Thanks to Kaveh Ghazi for helping
38595 to keep these files in sync.
38596 (ARRAY_SIZE): Define it.
38597 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
38598 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
38599 (memcasecmp): Don't assume size_t fits in unsigned int.
38600 Remove casts and duplicate code.
38601 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
38602 (memcpy): Remove definition.
38603 Merge in some clean-up and optimization changes from glibc.
38604 [BLOCKSIZE]: Move definition to top of file.
38605 Ensure that it is a multiple of 64.
38606 Rearrange loop exit tests so as to avoid performing an
38607 additional fread after encountering an error or EOF.
38608 * lib/md5.h (md5_uintptr): Define.
38609 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
38610 return to the initial working directory. Preserve errno
38612 * lib/idcache.c: Include "xalloc.h".
38613 (xmalloc, xrealloc): Remove decls.
38614 (getuser): Remove casts no longer required in C89.
38615 * lib/human.c: Include stdio.h, for sprintf.
38616 * lib/group-member.c: Include "xalloc.h".
38617 (xmalloc, xrealloc): Remove decls.
38618 (get_group_info): Remove casts no longer required in C89.
38619 * lib/getusershell.c (readname): Remove casts no longer required in
38621 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
38622 * lib/getline.c: Whitespace fix, from coreutils.
38624 2003-08-13 Paul Eggert <eggert@twinsun.com>
38626 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
38629 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38630 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38631 Undo previous (whitespace-only) change.
38633 2003-08-13 Paul Eggert <eggert@twinsun.com>
38635 * lib/exclude.c: Include <ctype.h>
38636 (IN_CTYPE_DOMAIN): New macro.
38637 (is_space): New fn.
38638 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
38641 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38642 Undo previous (whitespace-only) change.
38644 2003-08-13 Paul Eggert <eggert@twinsun.com>
38646 * config/srclist-update: Change update back to the old behavior,
38647 leaving whitespace alone. Use one 'sed' command rather than a
38649 (fixlicense): Now a variable, not a function.
38650 (remove_trailing_blanks): Remove.
38651 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
38652 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38653 Undo previous (whitespace-only) change.
38655 2003-08-12 Paul Eggert <eggert@twinsun.com>
38657 Merge from coreutils.
38658 * modules/euidaccess: Add lib_SOURCES, include for new
38661 2003-08-12 Paul Eggert <eggert@twinsun.com>
38663 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38664 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38665 Normalize leading white space and remove trailing white space.
38667 Merge from coreutils
38668 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
38670 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
38671 0.12.1. These files are now being upgraded automatically by
38672 ../config/srclist-update.
38674 2003-08-12 Paul Eggert <eggert@twinsun.com>
38676 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38677 Normalize leading white space and remove trailing white space.
38678 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
38679 notice, as per ../config/srclist-update.
38681 Merge from coreutils.
38682 * lib/euidaccess.h: New file.
38683 * lib/euidaccess.c: Include it.
38684 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
38685 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
38686 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
38688 2003-08-12 Paul Eggert <eggert@twinsun.com>
38690 * config/srclist-update: Add copyright notice.
38691 (remove_id_lines, remove_trailing_blanks): New constants.
38692 (fixfile): Use them to normalize spacing a bit in copied files.
38693 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38694 Normalize leading white space and remove trailing white space.
38696 * config/texinfo.tex: Sync with texinfo.
38698 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
38699 strtoul.c from libc, to merge coreutils whitespace changes.
38701 * config/srclist.txt: Get the following m4 files from gettext:
38702 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
38703 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
38704 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
38707 2003-08-12 Karl Berry <karl@gnu.org>
38709 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
38712 2003-08-11 Paul Eggert <eggert@twinsun.com>
38714 * modules/gnu-source, m4/gnu-source.m4:
38715 Remove; we're assuming Autoconf 2.54 or later now.
38716 Suggested by Bruno Haible.
38717 * MODULES.html.sh (func_all_modules): Remove gnu-source.
38719 2003-08-11 Bruno Haible <bruno@clisp.org>
38721 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
38723 2003-08-11 Bruno Haible <bruno@clisp.org>
38725 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
38726 (vasnprintf): Use it instead of wcslen.
38728 2003-08-11 Bruno Haible <bruno@clisp.org>
38730 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
38731 value to ensure that _Bool promotes to int. Use #define for _Bool when
38732 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
38734 2003-08-10 Karl Berry <karl@gnu.org>
38736 * lib/regex.h: update from libc (whitespace fix).
38738 2003-08-09 Paul Eggert <eggert@twinsun.com>
38740 Merge some files from coreutils. These changes were
38741 originally made by Jim Meyering.
38742 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
38743 many older Unixes require this.
38744 * lib/alloca.c (alloca): Remove cast to argument of free;
38745 no longer needed in C89.
38746 * lib/alloca_.h, regex.h: Fix white space to match
38747 what GNU indent does.
38749 2003-08-09 Paul Eggert <eggert@twinsun.com>
38751 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
38752 apparently Emacs's Unicode mode got confused before my 2003-08-05
38755 2003-08-08 Paul Eggert <eggert@twinsun.com>
38757 * m4/extensions.m4: New file.
38758 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
38759 Require gl_USE_SYSTEM_EXTENSIONS.
38760 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
38761 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
38763 2003-08-08 Paul Eggert <eggert@twinsun.com>
38765 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
38766 * modules/extensions, modules/gnu-source: New files.
38767 * modules/timespec, modules/unlocked-io: Depend on extensions.
38769 2003-08-07 Paul Eggert <eggert@twinsun.com>
38771 * modules/restrict: New file.
38772 * MODULES.html.sh (func_all_modules): Add restrict.
38773 * modules/regex: Depend on restrict.
38775 2003-08-07 Paul Eggert <eggert@twinsun.com>
38777 * m4/restrict.m4: New file.
38778 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
38780 2003-08-07 Bruno Haible <bruno@clisp.org>
38782 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
38783 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
38785 2003-08-07 Bruno Haible <bruno@clisp.org>
38787 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
38788 makes the module 'getndelim2' compatible with the module 'getline'.
38790 2003-08-05 Paul Eggert <eggert@twinsun.com>
38792 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
38793 byte with "\201" to avoid glitches when editing that source file
38794 with multi-gnome-terminal.
38796 2003-08-05 Paul Eggert <eggert@twinsun.com>
38798 * lib/bumpalloc.h: Remove.
38800 2003-08-05 Paul Eggert <eggert@twinsun.com>
38802 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
38803 * modules/bumpalloc: Remove.
38805 2003-08-04 Paul Eggert <eggert@twinsun.com>
38807 * lib/getloadavg.c: Change copyright notice and spacing to conform to
38810 Merge from coreutils.
38811 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
38813 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
38814 from Karl Berry, implemented by Jim Meyering.
38815 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
38816 from Dmitry V. Levin.
38817 Remove anachronistic cast of xrealloc.
38818 * lib/fnmatch_.h (__const): Remove. Use 'const'.
38819 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
38820 type. Otherwise, it wouldn't compile with at least /bin/cc on
38821 ymp-cray-unicos9.0.2.X.
38822 Combine two mostly-identical uses of alloca into one.
38823 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
38825 2003-08-04 Dave Love <d.love@dl.ac.uk>
38829 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
38830 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
38831 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
38832 obsolete NLIST_NAME_UNION.
38833 [__GNU__]: Undef BSD and FSCALE.
38834 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
38836 2003-08-03 Paul Eggert <eggert@twinsun.com>
38838 * lib/stdbool_.h (_Bool): Make it signed char, instead of
38839 an enum type, so that it's guaranteed to promote to int. See:
38840 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
38842 2003-08-03 Karl Berry <karl@gnu.org>
38844 * config/depcomp: update from automake.
38846 2003-07-31 Paul Eggert <eggert@twinsun.com>
38848 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
38849 (strerror): Don't assume that a printable int fits in 14 bytes.
38851 2003-07-31 Bruno Haible <bruno@clisp.org>
38853 * modules/getpass-gnu: New file.
38854 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
38856 2003-07-31 Bruno Haible <bruno@clisp.org>
38858 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
38860 2003-07-24 Karl Berry <karl@gnu.org>
38862 * config/missing: update from automake.
38864 2003-07-24 Derek Robert Price <derek@ximbiot.com>
38865 Bruno Haible <bruno@clisp.org>
38867 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
38868 * lib/getline.c (getline, getdelim): Likewise.
38869 Remove _GNU_SOURCE define; now it's defined in config.h through
38872 2003-07-23 Karl Berry <karl@gnu.org>
38874 * config/config.sub: update from prep.
38876 2003-07-22 Paul Eggert <eggert@twinsun.com>
38878 * modules/xalloc (Depends-on): Add exitfail.
38879 * modules/xmemcoll: Likewise.
38881 2003-07-22 Paul Eggert <eggert@twinsun.com>
38883 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
38884 over-parenthesization in macros.
38886 Sync with coreutils.
38888 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
38891 Use `exit_failure' for xalloc and xmemcoll instead of their own
38892 private exit-failure variables.
38893 * lib/xalloc.h (xalloc_exit_failure): Remove.
38894 * lib/xmalloc.c: Likewise. Include exitfail.h.
38895 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
38896 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
38897 * lib/xmemcoll.c: Likewise. Include exitfail.h.
38898 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
38900 2003-07-20 Jim Meyering <jim@meyering.net>
38902 * modules/closeout (Depends-on): Add exitfail.
38903 Suggestion from Bruno Haible.
38905 2003-07-19 Karl Berry <karl@gnu.org>
38907 * config/config.sub: update from prep.
38909 2003-07-18 Paul Eggert <eggert@twinsun.com>
38911 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
38913 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
38914 to test that it can stand by itself. Include "exitfail.h".
38915 Clients should set exit_failure instead.
38916 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
38918 2003-07-18 Bruno Haible <bruno@clisp.org>
38920 * modules/getndelim2: New file.
38921 * modules/getline: Share files with module getndelim2.
38922 * modules/getnline: Depend on getndelim2 instead of sharing files with
38923 it. Add getnline.c to lib_SOURCES.
38924 * MODULES.html.sh (func_all_modules): Add getndelim2.
38926 2003-07-18 Bruno Haible <bruno@clisp.org>
38928 * m4/getndelim2.m4: New file.
38929 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
38930 invoke gl_PREREQ_GETNDELIM2.
38931 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
38932 gl_PREREQ_GETNDELIM2.
38933 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
38936 2003-07-18 Bruno Haible <bruno@clisp.org>
38938 * lib/getndelim2.h: New file.
38939 * lib/getndelim2.c: Make into a module of its own. Include config.h,
38941 (getndelim2): Make non-static. Change return type to ssize_t.
38942 * lib/getline.h: Change argument names.
38943 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
38944 * lib/getnline.c: Include getndelim2.h.
38946 2003-07-18 Andreas Schwab <schwab@suse.de>
38948 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
38950 2003-07-17 Karl Berry <karl@gnu.org>
38952 * config/config.sub: update from prep.
38954 2003-07-17 Bruno Haible <bruno@clisp.org>
38956 * modules/getnline: New file.
38957 * modules/getline: Add lib/getndelim2.c to source file list.
38958 * MODULES.html.sh (func_all_modules): Add getnline.
38960 2003-07-17 Bruno Haible <bruno@clisp.org>
38962 * m4/getnline.m4: New file.
38964 2003-07-17 Bruno Haible <bruno@clisp.org>
38966 * m4/Makefile.am.in: Remove file.
38967 * m4/Makefile.am: Remove file.
38968 * m4/Makefile.in: Remove file.
38970 2003-07-17 Bruno Haible <bruno@clisp.org>
38972 * lib/getnline.h: New file.
38973 * lib/getnline.c: New file.
38974 * lib/getndelim2.c: New file, extracted from getline.c.
38975 (getndelim2): Renamed from getdelim2, with added nmax argument.
38976 * lib/getline.c: Include getndelim2.c.
38977 (getdelim2): Moved out to getndelim2.c.
38978 (getline, getdelim): Update.
38980 2003-07-17 Bruno Haible <bruno@clisp.org>
38982 * lib/Makefile.am: Remove file.
38983 * lib/Makefile.in: Remove file.
38985 2003-07-17 Bruno Haible <bruno@clisp.org>
38987 * configure.in: Remove file.
38988 * Makefile.in: Remove file.
38990 2003-07-17 Bruno Haible <bruno@clisp.org>
38992 * MODULES.html.sh: Put the </BODY> right before </HTML>.
38994 2003-07-16 Karl Berry <karl@gnu.org>
38996 * config/srclist-update: was running fixlicense twice, which caused
38997 texinfo.tex to be nullified for some reason. Simplify,
38998 $gplsrc is no longer needed as far as I can see?
39000 2003-07-16 Jim Meyering <jim@meyering.net>
39002 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
39004 2003-07-15 Paul Eggert <eggert@twinsun.com>
39006 * config/srclist.txt: Get the following files from gettext-runtime/intl
39007 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
39008 ref-del.sin. From Bruno Haible.
39009 * config/srclist-update (fixfile): Change grep pattern again, since the
39010 previous fix didn't work (there was another trailing $). Use
39011 '[$]' to escape the $s.
39013 2003-07-15 Karl Berry <karl@gnu.org>
39015 * lib/vasnprintf.c: update from gettext.
39017 2003-07-15 Karl Berry <karl@gnu.org>
39019 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
39020 gets expanded when surrounded by '$'.
39022 2003-07-15 Jim Meyering <jim@meyering.net>
39024 * modules/save-cwd: Don't depend on error. From Derek Price.
39026 2003-07-15 Jim Meyering <jim@meyering.net>
39028 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
39030 2003-07-14 Simon Josefsson <jas@extundo.com>
39032 * modules/mempcpy: New file.
39033 * MODULES.html.sh (func_all_modules): Add mempcpy.
39035 2003-07-14 Simon Josefsson <jas@extundo.com>
39037 * m4/mempcpy.m4: New file.
39039 2003-07-14 Simon Josefsson <jas@extundo.com>
39041 * lib/mempcpy.h: New file.
39042 * lib/mempcpy.c: New file.
39044 2003-07-14 Paul Eggert <eggert@twinsun.com>
39046 * modules/getdate, modules/posixtm: Depend on mktime.
39048 2003-07-14 Paul Eggert <eggert@twinsun.com>
39050 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
39051 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
39052 unicodeio.c, unicodeio.h, unlocked-io.h:
39053 Switch from LGPL to GPL.
39055 2003-07-14 Paul Eggert <eggert@twinsun.com>
39057 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
39058 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
39059 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
39060 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
39061 vasprintf.c, vasprintf.h: Regenerate. These files are now being
39062 updated automatically by ../config/srclist-update. This changes
39063 their license from LPGL to GPL.
39065 2003-07-14 Paul Eggert <eggert@twinsun.com>
39067 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
39068 assumed to refer to the root of the most recent stable gettext version.
39069 * config/srclistvars.sh: Add defaults for eggert.
39070 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
39071 Match "This program" as well as "The program". This is needed
39074 2003-07-14 Jim Meyering <jim@meyering.net>
39076 Don't emit diagnostics. Let callers do that.
39077 * lib/save-cwd.c: Don't include "error.h".
39078 (save_cwd): Don't call error. Ensure that errno is valid
39079 when returning nonzero.
39081 * lib/save-cwd.h (restore_cwd): Update prototype.
39082 * lib/save-cwd.c (restore_cwd): Remove two parameters.
39083 Simplify. Don't call error upon failure. Let callers do that.
39084 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
39085 when auditing is enabled. But don't bother updating the #if.
39087 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
39089 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
39090 it breaks C++ compilation.
39091 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
39093 2003-07-10 Simon Josefsson <jas@extundo.com>
39095 * modules/strchrnul (Makefile.am): Add strchrnul.h.
39097 2003-07-10 Jim Meyering <jim@meyering.net>
39099 * m4/clock_time.m4: Remove trailing blank.
39100 * m4/intmax_t.m4: Likewise.
39102 2003-07-10 Jim Meyering <jim@meyering.net>
39104 * lib/vasnprintf.c: Remove trailing blanks.
39105 Make cpp indentation consistent.
39107 2003-07-09 Paul Eggert <eggert@twinsun.com>
39109 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
39110 posixver.c, strftime.c, strnlen.c, strverscmp.c:
39111 Switch from LGPL to GPL.
39113 2003-07-09 Paul Eggert <eggert@twinsun.com>
39115 * config/srclist.txt: Sort sublists. Add
39116 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
39117 that differ from gnulib for one reason or another; we'd like this list
39118 to be smaller but for now let's document what we have.
39120 2003-07-08 Paul Eggert <eggert@twinsun.com>
39122 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
39123 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
39124 and sweeter "eval x=$x".
39125 * config/srclist.txt: Get lib/argp* from glibc.
39127 2003-07-07 Paul Eggert <eggert@twinsun.com>
39129 * lib/mktime.c: Fix some boundary cases and remove need for floating
39132 Issue a compile-time diagnostic if time_t is floating point, or if
39133 two's complement arithmetic is not in effect, or if arithmetic
39134 right shift does not propagate the sign. These assumptions were
39135 all in the original code but they weren't checked.
39137 (TIME_T_MIDPOINT, verify): New macros.
39138 (__isleap): Remove; it has integer overflow problems.
39139 (leapyear): New function, without those problems.
39140 (ydhms_tm_diff): Remove; splitting into two parts.
39141 (ydhms_diff): New function, containing the arithmetic part of
39142 the old ydhms_tm_diff function. Issue a compile-time
39143 diagnostic if we are not using C99 integer division.
39144 Avoid casts when possible.
39145 (guess_time_tm): New function, containing the checking part of
39146 the old ydhms_tm_diff function. Return the new value, rather than
39147 the difference between it and the old. Accept a new argument T
39148 so that *T specifies the old value. Check for overflow in the result.
39150 (__mktime_internal): Use a time_t offset, not a long int offset.
39151 This undoes the 2003-06-04 change, which is no longer needed now
39152 that we have better overflow checking.
39153 (localtime_offset): Likewise.
39155 (__mktime_internal): Avoid harmful overflow on hosts where time_t
39156 and long are 64-bit but int is only 32-bit.
39157 (ydhms_diff): Use long int to store year1 and yday1.
39158 Issue a compile-time diagnostic if long int is not wide enough.
39160 (__mktime_internal): Use long int to store adjusted year and yday.
39161 Use plain C rather than preprocessor commands, if that doesn't
39163 Check for overflow (and try to repair) after each probe
39164 rather than checking only at the very end. This avoids some bugs
39165 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
39166 does not equal GMT offset at maximum time).
39167 Use integer to check for overflow rather than floating point; this
39168 is more portable to non-IEEE hosts, and is a tad faster.
39169 When we detect that we are oscillating between two values,
39170 don't check whether tm_isdst has the requested value, since
39171 we already know the answer. When tm_isdst has the wrong value,
39172 use a different heuristic to find the right one, based on the
39173 extreme values actually observed in practice in tz2003a,
39174 rather than the (overly optimistic) "previous 3 calendar quarters".
39176 (not_equal_tm, print_tm, check_result): Use "const T" rather than
39177 "T const" to accommodate glibc style.
39178 (check_result): Use less-confusing report format. "long" -> "long int.
39180 Don't loop if the iteration overflows time_t.
39181 Allow a negative step in the iteration.
39183 2003-07-06 Karl Berry <karl@gnu.org>
39185 * config/depcomp: update from automake.
39186 * config/config.sub: update from prep.
39188 2003-07-03 Karl Berry <karl@gnu.org>
39190 * config/config.guess: update from prep.
39192 2003-07-01 Paul Eggert <eggert@twinsun.com>
39194 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
39195 xreadlink.c now includes it unconditionally.
39197 2003-07-01 Paul Eggert <eggert@twinsun.com>
39199 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
39200 having it depend on HAVE_SYS_TYPES_H.
39202 2003-07-01 Bruno Haible <bruno@clisp.org>
39204 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
39205 <sys/types.h> should be sufficient.
39206 Reported by Paul Eggert.
39208 2003-06-26 Karl Berry <karl@gnu.org>
39210 * config/depcomp: update from automake.
39212 2003-06-26 Bruno Haible <bruno@clisp.org>
39214 * modules/human: Depend on module stdbool.
39216 2003-06-25 Bruno Haible <bruno@clisp.org>
39218 * modules/readlink: New file.
39219 * modules/xreadlink: Depend on it.
39220 * MODULES.html.sh (func_all_modules): Add readlink.
39222 2003-06-25 Bruno Haible <bruno@clisp.org>
39224 * m4/readlink.m4: New file.
39226 2003-06-25 Bruno Haible <bruno@clisp.org>
39228 * lib/readlink.c: New file.
39230 2003-06-22 Karl Berry <karl@gnu.org>
39232 * config/srclist.txt: update mkinstalldirs from automake.
39233 * config/mkinstalldirs: update.
39235 2003-06-22 Bruno Haible <bruno@clisp.org>
39237 Portability to mingw32.
39238 * m4/ssize_t.m4: New file, from GNU gettext.
39239 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
39240 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
39242 2003-06-22 Bruno Haible <bruno@clisp.org>
39244 * modules/safe-read: Add m4/ssize_t.m4.
39245 * modules/xreadlink: Add m4/ssize_t.m4.
39247 2003-06-20 Bruno Haible <bruno@clisp.org>
39249 Assume C89, so PARAMS isn't needed.
39250 * lib/unicodeio.h (PARAMS): Remove.
39251 * lib/unicodeio.c: Don't use PARAMS.
39253 2003-06-18 Karl Berry <karl@gnu.org>
39255 * config/config.{guess,sub}: update from prep.
39257 2003-06-18 Jim Meyering <jim@meyering.net>
39259 Merge changes from coreutils.
39260 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
39261 Remove explicit declarations of xmalloc and realloc.
39263 (read_utmp): Remove anachronistic cast of xmalloc.
39265 2003-06-17 Paul Eggert <eggert@twinsun.com>
39267 Assume C89, so PARAMS isn't needed.
39268 * lib/backupfile.h (PARAMS): Remove. All uses removed.
39269 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
39270 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
39271 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
39272 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
39273 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
39274 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
39275 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
39276 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
39277 lib/xstrtod.h, lib/xstrtol.h: Likewise.
39278 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
39279 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
39280 no longer needed. Anyway, config.h should always be included before any
39283 2003-06-11 Simon Josefsson <jas@extundo.com>
39285 * modules/sysexits: New file.
39286 * MODULES.html.sh (func_all_modules): Add sysexits.
39288 2003-06-11 Simon Josefsson <jas@extundo.com>
39290 * lib/sysexit_.h: New file.
39292 2003-06-11 Derek Price <derek@ximbiot.com>
39294 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
39297 2003-06-11 Bruno Haible <bruno@clisp.org>
39299 * m4/sysexits.m4: New file.
39301 2003-06-10 Simon Josefsson <jas@extundo.com>
39303 * lib/argp.h: New file, from glibc.
39304 * lib/argp-ba.c: New file, from glibc.
39305 * lib/argp-eexst.c: New file, from glibc.
39306 * lib/argp-fmtstream.c: New file, from glibc.
39307 * lib/argp-fmtstream.h: New file, from glibc.
39308 * lib/argp-fs-xinl.c: New file, from glibc.
39309 * lib/argp-help.c: New file, from glibc.
39310 * lib/argp-namefrob.h: New file, from glibc.
39311 * lib/argp-parse.c: New file, from glibc.
39312 * lib/argp-pv.c: New file, from glibc.
39313 * lib/argp-pvh.c: New file, from glibc.
39314 * lib/argp-xinl.c: New file, from glibc.
39316 2003-06-10 Simon Josefsson <jas@extundo.com>
39318 * modules/strchrnul: New file.
39320 2003-06-10 Simon Josefsson <jas@extundo.com>
39322 * modules/argp: New file.
39324 2003-06-10 Simon Josefsson <jas@extundo.com>
39326 * m4/strchrnul.m4: New file.
39328 2003-06-10 Simon Josefsson <jas@extundo.com>
39330 * lib/strchrnul.h: New file.
39331 * lib/strchrnul.c: New file.
39333 2003-06-10 Bruno Haible <bruno@clisp.org>
39335 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
39337 2003-06-07 Karl Berry <karl@gnu.org>
39339 * config/config.{guess,sub}: update from prep.
39341 2003-06-07 Jim Meyering <jim@meyering.net>
39343 * modules/strtod: Use $(...) notation, not @...@ for
39344 AC_REPLACE'd variables.
39345 * modules/localcharset: Likewise.
39347 2003-06-07 Jim Meyering <jim@meyering.net>
39349 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
39350 in place of my name in the copyright comment.
39351 Remove definition and uses of __P.
39354 * lib/stat.c: Don't declare xmalloc explicitly.
39355 Instead, include "xalloc.h".
39356 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
39357 xrealloc, and xcalloc return values.
39358 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
39360 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
39362 2003-06-07 Bruno Haible <bruno@clisp.org>
39364 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
39365 avoid AC_CONFIG_LINKS.
39366 * modules/fnmatch (Makefile.am): Use explicit creation rule for
39367 fnmatch.h, to avoid AC_CONFIG_LINKS.
39368 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
39370 2003-06-07 Bruno Haible <bruno@clisp.org>
39372 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
39373 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
39374 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39376 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
39377 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39380 2003-06-06 Jim Meyering <jim@meyering.net>
39382 Merge from coreutils.
39383 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
39384 Consolidate declarations and initializations of *_base* locals.
39386 Merge from coreutils.
39387 This avoids a core dump on systems without GNU putenv,
39388 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
39389 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
39390 (unsetenv): New static function, from GNU libc.
39391 (rpl_putenv): Use it.
39393 * lib/modechange.c: Remove trailing blanks.
39395 Merge from coreutils.
39396 * lib/fsusage.c: Remove declaration of statfs.
39397 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
39399 * lib/posixtm.c: Include <stdbool.h> unconditionally.
39401 2003-06-06 Jim Meyering <jim@meyering.net>
39403 * lib/stdbool_.h: Renamed from stdbool.h.in.
39405 2003-06-06 Jim Meyering <jim@meyering.net>
39406 Bruno Haible <bruno@clisp.org>
39408 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
39409 Adjust Makefile.am snippet not to redirect directly to target.
39410 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
39412 2003-06-05 Paul Eggert <eggert@twinsun.com>
39414 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
39415 mismatch, look in future quarters as well as past. This fixes a
39416 bug when processing fall-backwards gaps immediately after a long
39417 period of daylight-saving time.
39419 * lib/mktime.c: Assume freestanding C89 or better.
39420 (HAVE_LIMITS_H): Remove. Assume it's 1.
39421 (__P): Remove; not used.
39422 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
39423 (mktime, not_equal_tm, print_tm, check_result,
39424 main): Use prototypes. Use const * where appropriate.
39425 (main): Fix typo in testing code that uncovered by above changes.
39426 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
39428 2003-06-04 Paul Eggert <eggert@twinsun.com>
39430 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
39431 locale.h, localeconv. This merges changes from coreutils.
39433 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
39434 It can be removed after the next Autoconf is released.
39435 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
39438 2003-06-04 Paul Eggert <eggert@twinsun.com>
39440 * lib/mktime.c: Fix Debian bug 177940
39441 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
39442 (localtime_offset): Now long int, not time_t, because we want it
39443 to be guaranteed to be signed. All uses changed.
39444 (__mktime_internal): If overflow would occur when adding offset,
39447 Merge 'human' changes from coreutils. Rewrite to support
39448 locale-specific notations like thousands separators.
39449 * lib/human.c: Simplify authorship notice.
39450 Include human.h immediately after config.h.
39451 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
39452 <limits.h>: Do not include, since human.h does.
39453 (SIZE_MAX, UINTMAX_MAX): New macros.
39454 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
39455 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
39456 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
39457 (power_letter): Renamed from suffixes.
39458 (generate_suffix_backwards): Remove.
39459 (adjust_value): Now takes int style (because of human.h changes)
39460 and long double value (for greater precision on some platforms).
39461 (group_number): New function.
39462 (human_readable): Use it. Use integer options, not enum.
39463 Put the options before the sizes in the arg list.
39464 Support all the new options.
39465 The old human_readable function has been removed;
39466 use inttostr.h instead.
39467 (human_readable, default_block_size, humblock):
39468 Use uintmax_t, not int, for block sizes.
39469 (human_readable_inexact, block_size_types): Remove.
39470 (block_size_opts): New constant.
39471 (human_options): Renamed from human_block_size, with new signature
39472 that allows block sizes up to UINTMAX_MAX. All callers changed.
39473 * lib/human.h: Add copyright and authorship notice.
39474 Include <limits.h> and <stdbool.h> unconditionally.
39475 (PARAMS): Remove. All uses removed.
39476 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
39477 (enum human_inexact_style): Remove tag; now a nameless enum.
39478 (human_floor, human_ceiling, human_round_to_even): Now have
39479 values 2, 0, 1 rather than -1, 1, 0.
39480 (human_group_digits, human_suppress_point_zero, human_autoscale,
39481 human_base_1024, human_SI, human_B): New constants.
39482 (human_readable_inexact, human_block_size): Remove.
39483 (human_readable): Size args are now uintmax_t, not int.
39484 (human_options): New decl.
39486 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
39487 unnecessary now that we assume C89 or better. This change
39488 imported from coreutils.
39490 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39491 arbitrarily. This is the same patch as 2003-05-28, but it got lost
39492 in the 2003-05-30 sync from glibc.
39494 .h files should stand alone, but we shouldn't include <sys/types.h>
39495 if we can get away with just <stddef.h>.
39497 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
39498 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
39499 rather than <sys/types.h>, as we merely need size_t.
39500 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
39502 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
39503 Include <stdio.h>, to get FILE.
39504 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
39505 memcasecmp.h has included <stddef.h> and all we need is size_t.
39506 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
39507 our interface, instead of including <sys/types.h>
39509 2003-06-04 Paul Eggert <eggert@twinsun.com>
39511 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
39512 now, as glibc mktime is buggy on non-glibc systems.
39514 2003-06-03 Karl Berry <karl@gnu.org>
39516 * config/config.sub: update from prep.
39518 2003-06-02 Paul Eggert <eggert@twinsun.com>
39521 Fix some minor time-related bugs with POSIX time arguments.
39522 Some valid time stamps were being rejected (notably -1, and
39523 time stamps before 1900 on 64-bit hosts). And some invalid
39524 time stamps were being accepted, e.g. September 31.
39526 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
39527 that we can return (time_t) -1 successfully.
39528 * lib/posixtm.c: Likewise.
39529 [HAVE_STDBOOL_H]: Include <stdbool.h>.
39530 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
39531 (t): Remove static var.
39532 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
39533 of static var. All uses changed.
39534 (year): Do not reject years before 1900; they can occur with
39536 (posix_time_parse): Do not check for out-of-range components;
39537 that is now the caller's responsibility, since our checks were
39538 only approximations.
39539 (posixtime): Use mktime to check for out-of-range components,
39540 since it knows them exactly.
39541 If mktime returns (time_t) -1, check whether an error actually occurred
39542 by invoking localtime on -1.
39543 (main) [TEST_POSIXTIME]: Check for input data errors, and report
39544 posixtime failures better.
39545 Improve the test data (in comments only).
39547 2003-06-02 Karl Berry <karl@gnu.org>
39549 * config/mkinstalldirs (version): new variable.
39550 (--version): new option.
39551 (usage): improve message.
39553 2003-05-30 Karl Berry <karl@gnu.org>
39555 * lib/mktime.c: update from libc.
39557 2003-05-30 Bruno Haible <bruno@clisp.org>
39559 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
39560 * config/config.rpath: Upgrade to gettext-0.12.1.
39562 2003-05-30 Bruno Haible <bruno@clisp.org>
39564 * m4/gettext.m4: Upgrade to gettext-0.12.1.
39565 * m4/nls.m4: New file, from gettext-0.12.1.
39566 * m4/po.m4: New file, from gettext-0.12.1.
39567 * m4/progtest.m4: Upgrade to gettext-0.12.1.
39569 2003-05-30 Bruno Haible <bruno@clisp.org>
39571 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
39572 * lib/localcharset.h: Likewise.
39573 * lib/localcharset.c: Likewise.
39575 2003-05-29 Karl Berry <karl@gnu.org>
39577 * config/config.rpath: update from gettext.
39579 2003-05-28 Paul Eggert <eggert@twinsun.com>
39581 Assume the headers required for C89 freestanding compilers.
39582 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
39583 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
39584 * m4/human.m4 (gl_HUMAN): Likewise.
39585 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
39586 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
39587 * m4/userspec.m4 (gl_USERSPEC): Likewise.
39588 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
39589 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
39590 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
39592 2003-05-28 Paul Eggert <eggert@twinsun.com>
39594 Assume the headers required for C89 freestanding compilers.
39595 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
39596 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
39597 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
39598 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
39599 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
39600 define, since <limits.h> is guaranteed to do that.
39601 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
39602 * lib/exclude.c: Include <stdbool.h> unconditionally.
39603 * lib/tempname.c: Include <stddef.h> unconditionally.
39604 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
39605 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
39606 <stddef.h> does that.
39607 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
39608 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
39609 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
39611 * lib/xstrtol.c: Likewise.
39612 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
39613 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
39615 * lib/addext.c (addext): Use assignment rather than cast, to avoid
39616 warnings on some platforms.
39618 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39621 2003-05-26 Jim Meyering <jim@meyering.net>
39623 Merge in a change from coreutils:
39624 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
39625 that is guaranteed to be `no'. Use `no_such_member' to indicate
39626 that condition, rather than `-1' which is slightly misleading.
39627 Change the name of the cache variable to have the gl_ prefix.
39628 Prompted by a patch from Richard Dawe for DJGPP.
39630 2003-05-24 Karl Berry <karl@gnu.org>
39632 * config/config.guess: update from prep.
39634 2003-05-22 Karl Berry <karl@gnu.org>
39636 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
39638 2003-05-20 Karl Berry <karl@gnu.org>
39640 * config/config.guess: update from prep.
39642 2003-05-18 Karl Berry <karl@gnu.org>
39644 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
39645 might actually be set by the user.
39647 * config/depcomp, install-sh, mdate-sh: update from automake.
39649 2003-05-17 Bruno Haible <bruno@clisp.org>
39651 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
39652 invalid expansion for AC_EGREP_CPP.
39653 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
39654 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
39655 Suggested by Akim Demaille <akim@epita.fr> in
39656 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
39658 2003-05-12 Jim Meyering <jim@meyering.net>
39660 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
39661 the space-padded-by-default conversion specifiers, %e, %k, %l.
39663 2003-05-12 Bruno Haible <bruno@clisp.org>
39665 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
39666 the string is longer than 4 KB.
39668 2003-05-11 Karl Berry <karl@gnu.org>
39670 * config/config.{guess,sub}: update from prep.
39672 2003-05-09 Bruno Haible <bruno@clisp.org>
39674 * modules/error: Add m4/strerror_r.m4 to file list.
39676 2003-05-03 Bruno Haible <bruno@clisp.org>
39678 Upgrade to Unicode-4.0.
39679 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
39680 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
39681 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
39682 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
39683 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
39684 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
39685 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
39686 Change width of U+E0100..U+E01EF from 1 to 0.
39688 2003-04-25 Jim Meyering <jim@meyering.net>
39690 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
39691 of type size_t, not int.
39693 2003-04-25 Bruno Haible <bruno@clisp.org>
39695 * lib/copy-file.c: Include <stddef.h>, for size_t.
39697 2003-04-21 Paul Eggert <eggert@twinsun.com>
39699 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
39700 code which expansion is under static control. Patch imported from
39701 Akim Demaille's patch to Bison; see
39702 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
39704 2003-04-14 Bruno Haible <bruno@clisp.org>
39706 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
39708 2003-04-11 Jim Meyering <jim@meyering.net>
39710 Merge changes from Coreutils.
39712 2003-03-22 Jim Meyering <jim@meyering.net>
39714 * lib/strftime.c (widen): Cast alloca return value to proper type.
39716 2003-01-19 Ulrich Drepper <drepper@redhat.com>
39719 * lib/strftime.c (my_strftime): Handle very large width
39720 specifications for numeric values correctly. Improve checks for
39723 2003-01-19 Jim Meyering <jim@meyering.net>
39725 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
39727 (nl_get_alt_digit) [! defined my_strftime]: Define.
39728 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
39729 _nl_get_alt_digit and _nl_get_walt_digit.
39731 * lib/strftime.c (my_strftime): Merge in locale-related changes from
39732 libc. These changes have no effect outside of _LIBC.
39734 2003-04-10 Bruno Haible <bruno@clisp.org>
39736 * modules/findprog: New file.
39737 * MODULES.html.sh (func_all_modules): Add it.
39739 2003-04-10 Bruno Haible <bruno@clisp.org>
39741 * m4/findprog.m4: New file.
39742 * m4/eaccess.m4: New file.
39744 2003-04-10 Bruno Haible <bruno@clisp.org>
39746 * lib/findprog.h: New file, from GNU gettext.
39747 * lib/findprog.c: New file, from GNU gettext.
39749 2003-04-05 Jim Meyering <jim@meyering.net>
39751 Merge changes from Coreutils.
39753 * lib/exclude.h (PARAMS): Remove definition and uses.
39754 * lib/exclude.c: Remove uses of `PARAMS'.
39756 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
39757 Add test-cases for DOS filenames. Declare program_name.
39758 (main): Set up program_name. Patch by Rich Dawe.
39760 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
39762 Use mntctl's return value to drive the entry-processing loop, since
39763 we can't rely on the value of the vmt_length member in the last
39764 entry. On some systems doing so could result in exhausting
39765 virtual memory. Based in part on a patch from Mike Jetzer.
39767 2003-04-04 Bruno Haible <bruno@clisp.org>
39769 * modules/linebreak: New file.
39770 * MODULES.html.sh (func_all_modules): Add it.
39772 2003-04-04 Bruno Haible <bruno@clisp.org>
39774 * m4/linebreak.m4: New file.
39776 2003-04-04 Bruno Haible <bruno@clisp.org>
39778 * lib/linebreak.h: New file, from GNU gettext.
39779 * lib/linebreak.c: New file, from GNU gettext with slight
39781 * lib/lbrkprop.h: New file, from GNU gettext.
39783 2003-04-03 Bruno Haible <bruno@clisp.org>
39785 * modules/utf8-ucs4: New file.
39786 * modules/utf16-ucs4: New file.
39787 * modules/ucs4-utf8: New file.
39788 * modules/ucs4-utf16: New file.
39789 * MODULES.html.sh (func_all_modules): Add them.
39791 2003-04-03 Bruno Haible <bruno@clisp.org>
39793 * m4/utf-ucs4.m4: New file.
39794 * m4/ucs4-utf.m4: New file.
39796 2003-04-03 Bruno Haible <bruno@clisp.org>
39798 * lib/utf8-ucs4.h: New file, from GNU gettext.
39799 * lib/utf16-ucs4.h: New file, from GNU gettext.
39800 * lib/ucs4-utf8.h: New file, from GNU gettext.
39801 * lib/ucs4-utf16.h: New file, from GNU gettext.
39803 2003-04-02 Bruno Haible <bruno@clisp.org>
39805 * modules/binary-io: New file.
39806 * MODULES.html.sh (func_all_modules): Add it.
39808 2003-04-02 Bruno Haible <bruno@clisp.org>
39810 * lib/binary-io.h: New file, from GNU gettext.
39812 2003-04-01 Bruno Haible <bruno@clisp.org>
39814 * modules/pathname: New file.
39815 * MODULES.html.sh (func_all_modules): Add it.
39817 2003-04-01 Bruno Haible <bruno@clisp.org>
39819 * lib/pathname.h: New file, from GNU gettext.
39820 * lib/concatpath.c: New file, from GNU gettext.
39822 2003-03-30 Bruno Haible <bruno@clisp.org>
39824 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
39826 2003-03-30 Bruno Haible <bruno@clisp.org>
39828 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
39829 function chown() doesn't exist.
39831 2003-03-28 Bruno Haible <bruno@clisp.org>
39833 * modules/copy-file: New file.
39834 * MODULES.html.sh (func_all_modules): Add it.
39836 2003-03-28 Bruno Haible <bruno@clisp.org>
39838 * m4/copy-file.m4: New file.
39840 2003-03-28 Bruno Haible <bruno@clisp.org>
39842 * lib/copy-file.h: New file, from GNU gettext.
39843 * lib/copy-file.c: New file, from GNU gettext.
39845 2003-03-18 Jim Meyering <jim@meyering.net>
39847 * lib/quote.c (quote_n): Fix typo in comment.
39849 2003-03-18 Bruno Haible <bruno@clisp.org>
39851 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
39853 * m4/onceonly_2_57.m4: Likewise.
39855 2003-03-17 Bruno Haible <bruno@clisp.org>
39857 * m4/onceonly.m4: Require autoconf 2.54 or newer.
39858 (m4_quote): Remove macro.
39859 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
39861 2003-03-14 Jim Meyering <jim@meyering.net>
39863 Merge changes from Coreutils.
39864 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
39865 to be const, in order to avoid warnings.
39866 (obstack_room): Likewise.
39867 (obstack_empty_p): Likewise.
39869 2003-03-14 Bruno Haible <bruno@clisp.org>
39871 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
39872 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
39874 2003-03-13 Paul Eggert <eggert@twinsun.com>
39876 Merge changes from Bison.
39877 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
39878 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
39879 when compiling Bison 1.875's `bitset bset = obstack_alloc
39880 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
39881 * lib/hash.c: Include <stdbool.h> unconditionally.
39883 2003-03-13 Paul Eggert <eggert@twinsun.com>
39885 * m4/onceonly.m4 (m4_quote): New macro.
39886 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
39887 Quote AC_FOREACH variable-expansions properly.
39889 2003-03-13 Paul Eggert <eggert@twinsun.com>
39891 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
39893 2003-03-09 Paul Eggert <eggert@twinsun.com>
39895 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
39896 Reported by Bruce Becker; see:
39897 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
39899 2003-03-03 Paul Eggert <eggert@twinsun.com>
39900 Bruno Haible <bruno@clisp.org>
39902 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
39903 Reported by John Hughes, see
39904 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
39906 2003-02-20 Bruno Haible <bruno@clisp.org>
39908 * MODULES.html.sh (func_all_modules): Add poll.
39910 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
39912 * modules/poll: New file.
39914 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
39916 * lib/poll_.h: New file.
39917 * lib/poll.c: New file.
39919 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
39921 * m4/poll.m4: New file.
39923 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
39925 * modules/mathl: New file.
39927 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
39929 * lib/mathl.h: New file.
39930 * lib/acosl.c: New file.
39931 * lib/asinl.c: New file.
39932 * lib/atanl.c: New file.
39933 * lib/ceill.c: New file.
39934 * lib/cosl.c: New file.
39935 * lib/expl.c: New file.
39936 * lib/floorl.c: New file.
39937 * lib/frexpl.c: New file.
39938 * lib/ldexpl.c: New file.
39939 * lib/logl.c: New file.
39940 * lib/sincosl.c: New file.
39941 * lib/sinl.c: New file.
39942 * lib/sqrtl.c: New file.
39943 * lib/tanl.c: New file.
39944 * lib/trigl.c: New file.
39945 * lib/trigl.h: New file.
39947 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
39949 * m4/mathl.m4: New file.
39951 2003-02-18 Bruno Haible <bruno@clisp.org>
39953 * MODULES.html.sh (func_all_modules): Add mathl.
39955 2003-02-17 Bruno Haible <bruno@clisp.org>
39957 * modules/mkdtemp: New module.
39958 * MODULES.html.sh (func_all_modules): Add it.
39960 2003-02-17 Bruno Haible <bruno@clisp.org>
39962 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
39964 2003-02-17 Bruno Haible <bruno@clisp.org>
39966 * lib/mkdtemp.h: New file, from GNU gettext.
39967 * lib/mkdtemp.c: New file, from GNU gettext.
39969 2003-02-02 Jim Meyering <jim@meyering.net>
39971 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
39974 2003-01-31 Bruno Haible <bruno@clisp.org>
39976 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
39978 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
39980 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
39982 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
39985 2003-01-31 Bruno Haible <bruno@clisp.org>
39987 * lib/rename.c: #undef rename before defining rpl_rename.
39988 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
39990 2003-01-30 Bruno Haible <bruno@clisp.org>
39992 * modules/vasnprintf, modules/vasprintf: New modules.
39993 * MODULES.html.sh (func_all_modules): Add them.
39995 2003-01-30 Bruno Haible <bruno@clisp.org>
39997 * m4/signed.m4: New file, from GNU gettext.
39998 * m4/longdouble.m4: New file, from GNU gettext.
39999 * m4/wchar_t.m4: New file, from GNU gettext.
40000 * m4/wint_t.m4: New file, from GNU gettext.
40001 * m4/vasnprintf.m4: New file.
40002 * m4/vasprintf.m4: New file.
40004 2003-01-30 Bruno Haible <bruno@clisp.org>
40006 * lib/printf-args.h: New file, from GNU gettext.
40007 * lib/printf-args.c: New file, from GNU gettext.
40008 * lib/printf-parse.h: New file, from GNU gettext.
40009 * lib/printf-parse.c: New file, from GNU gettext.
40010 * lib/vasnprintf.h: New file, from GNU gettext.
40011 * lib/vasnprintf.c: New file, from GNU gettext.
40012 * lib/asnprintf.c: New file, from GNU gettext.
40013 * lib/vasprintf.h: New file, from GNU gettext with modifications.
40014 * lib/vasprintf.c: New file, from GNU gettext.
40015 * lib/asprintf.c: New file, from GNU gettext.
40017 2003-01-29 Bruno Haible <bruno@clisp.org>
40019 * modules/stpncpy: New module.
40020 * MODULES.html.sh (func_all_modules): Add it.
40022 2003-01-29 Bruno Haible <bruno@clisp.org>
40024 * m4/stpncpy.m4: New file.
40026 2003-01-29 Bruno Haible <bruno@clisp.org>
40028 * lib/stpncpy.h: New file, from GNU gettext with modifications.
40029 * lib/stpncpy.c: New file, from GNU gettext with modifications.
40031 2003-01-28 Bruno Haible <bruno@clisp.org>
40033 * modules/c-ctype: New module.
40034 * MODULES.html.sh (func_all_modules): Add it.
40036 2003-01-28 Bruno Haible <bruno@clisp.org>
40038 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
40040 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
40043 2003-01-27 Bruno Haible <bruno@clisp.org>
40045 * modules/xsetenv: New module.
40046 * MODULES.html.sh (func_all_modules): Add it.
40048 2003-01-27 Bruno Haible <bruno@clisp.org>
40050 * lib/xsetenv.h: New file, from GNU gettext.
40051 * lib/xsetenv.c: New file, from GNU gettext.
40053 2003-01-23 Jim Meyering <jim@meyering.net>
40055 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
40056 from working on systems without dirfd (at least Irix and OSF1/Tru64).
40058 2003-01-23 Bruno Haible <bruno@clisp.org>
40060 * modules/minmax: New module.
40061 * MODULES.html.sh (func_all_modules): Add it.
40063 2003-01-23 Bruno Haible <bruno@clisp.org>
40065 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
40068 2003-01-22 Bruno Haible <bruno@clisp.org>
40070 * modules/exit: New module.
40071 * MODULES.html.sh (func_all_modules): Add it.
40073 2003-01-22 Bruno Haible <bruno@clisp.org>
40075 * lib/exit.h: New file, from GNU gettext.
40077 2003-01-19 Bruno Haible <bruno@clisp.org>
40079 * gnulib-tool: Recognize option --extract-maintainer.
40080 (func_get_maintainer): New function.
40081 * modules/*: Add Maintainer entry.
40083 2003-01-16 Jim Meyering <jim@meyering.net>
40085 * m4/regex.m4: The `regex' struct is both input and output.
40086 Initialize it before each use. Patch by Tim Waugh.
40088 2003-01-16 Bruno Haible <bruno@clisp.org>
40090 * MODULES.html.sh: Add a table of contents. Add the module name as
40091 leftmost column. Add hyperlinks.
40093 2003-01-15 Bruno Haible <bruno@clisp.org>
40095 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
40097 2003-01-15 Bruno Haible <bruno@clisp.org>
40099 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
40100 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
40103 2003-01-15 Bruno Haible <bruno@clisp.org>
40105 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
40107 2003-01-15 Bruno Haible <bruno@clisp.org>
40109 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
40110 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
40112 2003-01-14 Jim Meyering <jim@meyering.net>
40114 * lib/same.c (same_name): Tweak a comment.
40116 2003-01-14 Bruno Haible <bruno@clisp.org>
40118 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
40119 when a string comparison is sufficient.
40121 2003-01-14 Bruno Haible <bruno@clisp.org>
40123 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
40126 2003-01-14 Bruno Haible <bruno@clisp.org>
40128 * lib/hash-pjw.c: Add comment about low quality of this function.
40130 2003-01-13 Bruno Haible <bruno@clisp.org>
40132 * modules/stpcpy: Distribute lib/stpcpy.h.
40133 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
40135 2003-01-13 Bruno Haible <bruno@clisp.org>
40137 * modules/*: Add a description.
40138 * modules/strpbrk: Fix Makefile.am snippet.
40139 * modules/strtoimax: Fix dependencies.
40140 * modules/strtoumax: Likewise.
40142 2003-01-13 Bruno Haible <bruno@clisp.org>
40144 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
40145 * modules/alloca (Makefile.am): All object files depend on alloca.h.
40146 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
40148 2003-01-13 Bruno Haible <bruno@clisp.org>
40150 * gnulib-tool (func_create_testdir): Store config/* files in the main
40152 * config.rpath: Move to ...
40153 * config/config.rpath: ... here.
40154 * modules/gettext: Contains config/config.rpath, not config.rpath.
40155 * modules/iconv: Likewise.
40157 2003-01-12 Paul Eggert <eggert@twinsun.com>
40159 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40160 to avoid collisions with libcurses and libreadline.
40162 * m4/getstr.m4: Remove.
40163 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
40165 2003-01-12 Paul Eggert <eggert@twinsun.com>
40167 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40168 to avoid collisions with libcurses and libreadline.
40170 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
40171 * lib/getstr.h, getstr.c: Remove.
40172 * lib/getline.c: Include "getline.h", to check interface.
40173 Move body of old getstr.c here: this defines MIN_CHUNK and
40174 declares getdelim2, which is renamed from getstr.
40175 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
40177 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
40179 * lib/linebuffer.h: Likewise.
40180 (readline): Remove backward-compatibility macro.
40182 2003-01-12 Paul Eggert <eggert@twinsun.com>
40184 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40185 to avoid collisions with libcurses and libreadline.
40187 * MODULES.html.sh: Remove getstr.
40188 * modules/getline: Depend on unlocked-io, not getstr.
40190 2003-01-12 Jim Meyering <jim@meyering.net>
40192 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
40194 2003-01-10 Bruno Haible <bruno@clisp.org>
40196 * modules/alloca: Change Makefile.am requirements. Simplify Include
40197 requirements. Add lib/alloca_.h to file list.
40199 2003-01-10 Bruno Haible <bruno@clisp.org>
40201 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
40203 2003-01-10 Bruno Haible <bruno@clisp.org>
40205 * lib/alloca_.h: New file.
40206 * lib/getdate.y: Unconditionally include alloca.h.
40207 * lib/makepath.c: Likewise.
40208 * lib/setenv.c: Likewise.
40209 * lib/userspec.c: Likewise.
40211 2003-01-09 Karl Berry <karl@gnu.org>
40213 * MODULES.html.sh: include `dirname $0` in PATH, to find
40216 2003-01-09 Bruno Haible <bruno@clisp.org>
40218 * modules/stdbool: Change configure.ac, Makefile.am requirements.
40219 Simplify Include requirements. Add lib/stdbool.h.in to file list.
40221 2003-01-09 Bruno Haible <bruno@clisp.org>
40223 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
40225 2003-01-09 Bruno Haible <bruno@clisp.org>
40227 * lib/stdbool.h.in: New file.
40229 2003-01-09 Bruno Haible <bruno@clisp.org>
40231 * gnulib-tool (func_all_modules): Ignore files ending in ~.
40232 * MODULES.html.sh: Likewise.
40234 2003-01-08 Jim Meyering <jim@meyering.net>
40236 * lib/full-write.c: Undefine and define-away `const' after inclusion
40237 of errno.h, not before. Suggestion from Bruno Haible.
40239 2003-01-08 Bruno Haible <bruno@clisp.org>
40241 * modules/full-read: Depend on full-write.
40243 2003-01-08 Bruno Haible <bruno@clisp.org>
40245 * lib/safe-read.c: Include specification header first, to ensure its
40247 * lib/full-write.c: Likewise.
40249 2003-01-07 Jim Meyering <jim@meyering.net>
40251 * lib/full-write.c: Rework so that it may serve to define full_read,
40253 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
40255 2003-01-07 Bruno Haible <bruno@clisp.org>
40257 * lib/strtoimax.c: Include <stdint.h> as an alternative to
40259 * lib/xstrtol.h: Likewise.
40260 * lib/xstrtoimax.c: Likewise.
40261 * lib/xstrtoumax.c: Likewise.
40262 * lib/human.h: Likewise.
40264 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
40265 on systems that have <inttypes.h> but not <stdint.h>.
40267 2003-01-07 Bruno Haible <bruno@clisp.org>
40269 * MODULES.html.sh: Add copyright notice.
40270 (missed_files): Omit CVS directory entries.
40271 (func_module): Make it work with sed-3.02.
40272 * MODULES.txt: Remove file.
40274 2003-01-06 Jim Meyering <jim@meyering.net>
40276 * lib/version-etc.c: Update year in translatable copyright string.
40278 2003-01-03 Karl Berry <karl@gnu.org>
40280 * config/config.{guess,sub}: update from prep.
40282 2003-01-02 Karl Berry <karl@gnu.org>
40284 * doc/COPYING.DOC: belatedly updated to 1.2.
40286 2003-01-01 Karl Berry <karl@gnu.org>
40288 * gnulib-tool (func_verify_module): report module name $module in
40289 error message, not $1.
40290 * gnulib-tool (create-testdir): don't complain if destdir couldn't
40291 be created, only if it doesn't exist.
40292 * gnulib-tool (last_checkin_date): don't expand the $Date here.
40294 2002-12-31 Paul Eggert <eggert@twinsun.com>
40296 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
40298 2002-12-31 Paul Eggert <eggert@twinsun.com>
40300 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
40301 memcmp if strcoll doesn't work.
40303 2002-12-31 Bruno Haible <bruno@clisp.org>
40305 * lib/utime.c (utime_null): No need to call ftruncate if the file was
40308 2002-12-31 Bruno Haible <bruno@clisp.org>
40310 * lib/memcoll.c (STRCOLL): New macro.
40313 2002-12-31 Bruno Haible <bruno@clisp.org>
40315 * lib/localcharset.h: New file.
40316 * lib/localcharset.c: Include it.
40317 * lib/unicodeio.c: Likewise.
40319 2002-12-31 Bruno Haible <bruno@clisp.org>
40321 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
40322 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
40324 2002-12-31 Bruno Haible <bruno@clisp.org>
40326 * lib/getline.h: Include <stddef.h>, for size_t.
40328 * lib/unicodeio.h: Include <stddef.h>, for size_t.
40329 * lib/unicodeio.c: Don't include <stddef.h>.
40331 2002-12-31 Bruno Haible <bruno@clisp.org>
40333 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
40336 2002-12-24 Karl Berry <karl@gnu.org>
40338 * config/config.guess: update from prep.
40340 2002-12-24 Bruno Haible <bruno@clisp.org>
40342 General infrasructure.
40343 * m4/README: Rewritten.
40344 * m4/onceonly.m4: New file.
40345 * m4/onceonly_2_57.m4: New file.
40348 * m4/atexit.m4: New file.
40351 * m4/strtod.m4: New file.
40354 * m4/strtol.m4: New file.
40357 * m4/strtoul.m4: New file.
40360 * m4/memchr.m4: New file.
40363 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
40364 (jm_FUNC_MEMCMP): Invoke it.
40367 * m4/memcpy.m4: New file.
40370 * m4/memmove.m4: New file.
40373 * m4/memset.m4: New file.
40376 * m4/strcspn.m4: New file.
40379 * m4/strpbrk.m4: New file.
40382 * m4/strstr.m4: New file.
40385 * m4/strerror.m4: New file.
40388 * m4/mktime.m4: Renamed from jm-mktime.m4.
40389 (gl_PREREQ_MKTIME): New macro.
40390 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
40393 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
40394 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
40395 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
40398 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
40399 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
40400 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
40403 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
40404 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
40405 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
40407 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
40410 * m4/xalloc.m4: New file.
40413 * m4/alloca.m4: New file.
40416 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
40417 (jm_FUNC_PUTENV): Invoke it.
40420 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
40421 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
40422 when invoked twice.
40423 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
40427 * m4/memrchr.m4: New file.
40430 * m4/stpcpy.m4: New file.
40433 * m4/strcase.m4: New file.
40436 * m4/strdup.m4: New file.
40439 * m4/strnlen.m4: New file.
40442 * m4/strndup.m4: New file.
40445 * m4/xstrtod.m4: New file.
40448 * m4/xstrtol.m4: New file.
40451 * m4/getdate.m4: New file.
40453 Module unlocked-io.
40454 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
40455 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
40456 * m4/jm-glibc-io.m4n: Remove file.
40458 Module long-options.
40459 * m4/long-options.m4: New file.
40462 * m4/md5.m4: New file.
40465 * m4/sha.m4: New file.
40468 * m4/getstr.m4: New file.
40471 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
40472 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
40473 <sys/types.h>, for size_t. Use the function name gnu_getline, not
40474 simply getline. Infoke gl_PREREQ_GETLINE.
40477 * m4/obstack.m4: New file.
40480 * m4/hash.m4: New file.
40483 * m4/readtokens.m4: New file.
40486 * m4/strverscmp.m4: New file.
40489 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
40493 * m4/strtoll.m4: New file.
40496 * m4/strtoull.m4: New file.
40499 * m4/strtoimax.m4: New file.
40502 * m4/strtoumax.m4: New file.
40505 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
40506 jm_AC_PREREQ_XSTRTOIMAX.
40507 Moved the strtol prerequisites to strtol.m4.
40508 Moved the strtoll prerequisites to strtoll.m4.
40509 Moved the strtoimax prerequisites to strtoimax.m4.
40512 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
40513 jm_AC_PREREQ_XSTRTOUMAX.
40514 Moved the strtoul prerequisites to strtoul.m4.
40515 Moved the strtoull prerequisites to strtoull.m4.
40516 Moved the strtoumax prerequisites to strtoumax.m4.
40519 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
40520 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
40523 * m4/dup2.m4: New file.
40526 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
40527 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
40530 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
40531 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
40533 Module gettimeofday.
40534 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
40535 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
40536 gl_PREREQ_GETTIMEOFDAY.
40539 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
40540 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
40543 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
40544 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
40545 jm_AC_TYPE_UINTMAX_T.
40546 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
40549 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
40550 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
40553 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
40554 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
40557 * m4/timespec.m4 (gl_TIMESPEC): New macro.
40558 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
40559 * m4/st_mtim.m4: Indentation.
40562 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
40563 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
40564 gl_PREREQ_NANOSLEEP.
40567 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
40568 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
40569 (gl_REGEX): New macro.
40572 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
40573 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
40576 * m4/rmdir.m4: New file.
40579 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
40580 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
40581 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
40584 * m4/dirname.m4: New file.
40587 * m4/getopt.m4: New file.
40589 Module unistd-safer.
40590 * m4/unistd-safer.m4: New file.
40593 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
40595 (gl_PREREQ_FNMATCH_EXTRA): New macro.
40596 (gl_FUNC_FNMATCH_POSIX): New macro.
40597 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
40598 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
40602 * m4/exclude.m4: New file.
40605 * m4/human.m4: New file.
40611 * m4/backupfile.m4: New file.
40612 * m4/d-ino.m4: Indentation.
40615 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
40616 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
40617 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
40620 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
40624 * m4/euidaccess.m4: New file.
40627 * m4/file-type.m4: New file.
40630 * m4/fileblocks.m4: New file.
40633 * m4/filemode.m4: New file.
40636 * m4/isdir.m4: New file.
40639 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
40640 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
40643 * m4/makepath.m4: New file.
40646 * m4/modechange.m4: New file.
40649 * m4/mountlist.m4: New file.
40650 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
40653 Module path-concat.
40654 * m4/path-concat.m4: New file.
40657 * m4/pathmax.m4: New file.
40660 * m4/same.m4: New file.
40663 * m4/save-cwd.m4: New file.
40666 * m4/savedir.m4: New file.
40669 * m4/xgetcwd.m4: New file.
40670 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
40673 * m4/xreadlink.m4: New file.
40676 * m4/safe-read.m4: New file.
40679 * m4/safe-write.m4: New file.
40682 * m4/closeout.m4: New file.
40684 Module stdio-safer.
40685 * m4/stdio-safer.m4: New file.
40688 * m4/getpass.m4: New file.
40691 * m4/getugroups.m4: New file.
40693 Module group-member.
40694 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
40695 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
40698 * m4/idcache.m4: New file.
40701 * m4/userspec.m4: New file.
40704 * m4/clock_time.m4: New file.
40705 * m4/gettime.m4: New file.
40708 * m4/settime.m4: New file.
40711 * m4/posixtm.m4: New file.
40713 Module gethostname.
40714 * m4/gethostname.m4: New file.
40717 * m4/canon-host.m4: New file.
40720 * m4/codeset.m4: New file, from gettext-0.11.5.
40721 * m4/gettext.m4: New file, from gettext-0.11.5.
40722 * m4/glibc21.m4: New file, from gettext-0.11.5.
40723 * m4/iconv.m4: New file, from gettext-0.11.5.
40724 * m4/intdiv0.m4: New file, from gettext-0.11.5.
40725 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
40726 * m4/inttypes.m4: New file, from gettext-0.11.5.
40727 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
40728 * m4/isc-posix.m4: New file, from gettext-0.11.5.
40729 * m4/lcmessage.m4: New file, from gettext-0.11.5.
40730 * m4/lib-ld.m4: New file, from gettext-0.11.5.
40731 * m4/lib-link.m4: New file, from gettext-0.11.5.
40732 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
40733 * m4/progtest.m4: New file, from gettext-0.11.5.
40734 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
40735 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
40736 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
40738 Module localcharset.
40739 * m4/localcharset.m4: New file.
40741 Module hard-locale.
40742 * m4/hard-locale.m4: New file.
40745 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
40747 * m4/mbrtowc.m4: Add comment.
40750 * m4/memcasecmp.m4: New file.
40753 * m4/memcoll.m4: New file.
40756 * m4/unicodeio.m4: New file.
40759 * m4/rpmatch.m4: New file.
40762 * m4/yesno.m4: New file.
40765 * m4/exitfail.m4: New file.
40768 * m4/c-stack.m4 (gl_C_STACK): New macro.
40769 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
40772 * m4/error.m4 (gl_ERROR): New macro.
40773 (jm_PREREQ_ERROR): Use onceonly macros.
40776 * m4/fatal.m4: New file.
40779 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
40780 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
40782 Module getpagesize.
40783 * m4/getpagesize.m4: New file.
40785 Module getusershell.
40786 * m4/getusershell.m4: New file.
40789 * m4/physmem.m4: New file.
40792 * m4/posixver.m4: New file.
40795 * m4/quotearg.m4: New file.
40798 * m4/quote.m4: New file.
40801 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
40804 * m4/sig2str.m4: New file.
40807 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
40809 * m4/intmax_t.m4: New file.
40810 * m4/d-type.m4: Indentation.
40811 * m4/jm-macros.m4: Update.
40812 * m4/prereq.m4 (jm_PREREQ): Update.
40813 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
40814 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
40815 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
40816 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
40817 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
40818 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
40819 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
40820 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
40821 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
40822 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
40823 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
40824 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
40825 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
40826 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
40827 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
40828 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
40829 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
40830 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
40831 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
40833 2002-12-24 Bruno Haible <bruno@clisp.org>
40835 * MODULES.txt: Update according to m4/ changes.
40838 * config.rpath: New file, from gettext-0.11.5.
40840 * modules/*: New module descriptions.
40841 * gnulib-tool: New file.
40842 * MODULES.html.sh: New file.
40844 2002-12-21 Karl Berry <karl@gnu.org>
40846 * doc/fdl.texi: update to version 1.2.
40848 2002-12-19 Karl Berry <karl@gnu.org>
40850 * config/config.guess: update from prep.
40852 2002-12-18 Bruno Haible <bruno@clisp.org>
40854 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
40855 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
40857 2002-12-17 Bruno Haible <bruno@clisp.org>
40859 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
40860 stdlib.h, string.h.
40862 2002-12-17 Bruno Haible <bruno@clisp.org>
40864 * lib/canon-host.c (strdup): Remove unused declaration.
40866 * lib/fsusage.c: Include full_read.h.
40867 (get_fs_usage): Use full_read instead of safe_read.
40869 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
40871 2002-12-12 Karl Berry <karl@gnu.org>
40873 * config/config.guess: update from prep.
40875 2002-12-11 Bruno Haible <bruno@clisp.org>
40877 * m4/setenv.m4: New file, from gettext-0.11.5.
40879 2002-12-11 Bruno Haible <bruno@clisp.org>
40881 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
40883 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
40886 2002-12-11 Bruno Haible <bruno@clisp.org>
40888 * setenv.c (alloca): Fall back to malloc.
40889 (freea): New macro.
40890 (setenv): Use freea() to free memory allocated with alloca().
40892 2002-11-13 Bruno Haible <bruno@clisp.org>
40894 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
40895 function declarations.
40896 * unsetenv.c (unsetenv): Likewise.
40898 2002-03-04 Bruno Haible <bruno@clisp.org>
40900 Portability to AIX 4.3.3.
40901 * unsetenv.c: New file, extracted from setenv.c.
40902 * setenv.c: Move the unsetenv() function to unsetenv.c.
40904 2001-12-20 Bruno Haible <bruno@clisp.org>
40906 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
40907 use malloc instead. For SunOS 4.
40909 2001-12-11 Bruno Haible <bruno@clisp.org>
40911 * setenv.c: Declare alloca.
40912 (compar_fn_t): New typedef.
40913 (KNOWN_VALUE, STORE_VALUE): Use it.
40915 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
40918 2002-12-10 Paul Eggert <eggert@twinsun.com>
40920 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
40921 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
40922 Choose values that are less likely to collide with system fnmatch
40924 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
40925 defined (e.g., a pure POSIX system).
40926 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
40927 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
40929 2002-12-06 Paul Eggert <eggert@twinsun.com>
40931 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
40932 a pain in practice to deal with generated m4 files. This change
40933 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
40935 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
40936 and jm-glibc-io.m4, as they are no longer a special case.
40937 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
40938 kludge and the auto-generation stuff. Check only whether the
40939 functions are declared, not whether they exist, since older hosts
40940 that don't declare the functions can't use the optimization anyway.
40942 2002-12-06 Jim Meyering <jim@meyering.net>
40944 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
40946 Merge in changes from libc's misc/error.c, in preparation
40947 for the merge of gnulib's changes back into libc.
40949 * lib/error.c (_): Define only if not already defined.
40950 Move definition to follow all #include directives.
40951 Include unlocked-io.h only if !_LIBC.
40952 [_LIBC]: Include <libio/libioP.h>.
40953 [USE_IN_LIBIO]: Include <libio/iolibio.h>
40954 (fflush): Tweak definition to use INTUSE.
40957 2002-12-05 Paul Eggert <eggert@twinsun.com>
40959 * lib/alloca.c [defined emacs]: Include "lisp.h".
40960 (xalloc_die) [defined emacs]: New macro.
40961 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
40962 [! defined emacs]: Include <xalloc.h>.
40963 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
40964 (pointer): Typedef to POINTER_TYPE *.
40965 (malloc): Remove decl; we now always use xmalloc.
40966 (alloca): Use old-style definition, since Emacs needs this.
40967 Check for arithmetic overflow when computing combined size.
40969 2002-12-04 Paul Eggert <eggert@twinsun.com>
40971 Do not generate unlocked-io.h automatically, since it's easier to
40972 maintain it by hand.
40974 * lib/unlocked-io.h: New file, from GNU diffutils,
40975 but with proper copyright notice and attribution.
40976 * lib/gen-uio: Remove.
40977 * lib/Makefile.am: Add copyright notice.
40978 (libfetish_a_SOURCES): Add unlocked-io.h.
40979 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
40980 (DISTCLEANFILES, io_functions): Remove macros.
40981 (EXTRA_DIST): Remove gen_uio.
40982 (unlocked-io.h): Remove rule.
40984 2002-12-04 Jim Meyering <jim@meyering.net>
40986 Reflect the fact that stat.c and lstat.c are no longer generated.
40987 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
40988 (DISTCLEANFILES): Likewise.
40989 (EXTRA_DIST): Likewise.
40990 (all_local): Don't depend on stat.c or lstat.c.
40991 (stat.c, lstat.c): Remove rules.
40992 (EXTRA_DIST): Remove xstat.in.
40994 * lib/xstat.in: Remove file. Contents moved into stat.c.
40995 * lib/stat.c: New file. Contents mostly from xstat.in.
40996 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
40997 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
40999 * lib/safe-read.c: Rework so that it may serve to define safe_write,
41001 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
41003 2002-12-03 Jim Meyering <jim@meyering.net>
41005 * lib/safe-read.c, safe-write.c: Change variable names and comments,
41006 but not semantics, to minimize the differences between these two files.
41007 (safe_read): Change comment to mention SAFE_READ_ERROR.
41009 * lib/safe-read.c (IS_EINTR): Define.
41010 (safe_read): Use IS_EINTR in place of in-function cpp directives.
41012 2002-12-02 Jim Meyering <jim@meyering.net>
41014 * lib/safe-read.c (EINTR): Define.
41015 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
41016 (INT_MAX): Provide fallback.
41017 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
41019 * lib/safe-read.h (SAFE_READ_ERROR): Define.
41021 2002-12-02 Bruno Haible <bruno@clisp.org>
41023 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
41024 Define, taken from safe-read.c.
41025 (INT_MAX): Provide fallback.
41026 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
41027 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
41029 * lib/safe-read.c (EINTR): Remove definition.
41030 (safe_read): Don't use EINTR if it is absent.
41032 2002-12-01 Jim Meyering <jim@meyering.net>
41034 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
41036 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
41038 2002-11-27 Paul Eggert <eggert@twinsun.com>
41040 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
41041 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
41042 with `if (! (value < limit)) abort ();', for readability.
41044 2002-11-26 Karl Berry <karl@gnu.org>
41046 * lib/strdup.c: copy from libc again, with jim's ok.
41047 * lib/.cppi-disable: re-add strdup.c
41049 2002-11-25 Karl Berry <karl@gnu.org>
41051 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
41052 instead of "strtol.c".
41054 2002-11-25 Karl Berry <karl@gnu.org>
41056 * config/install-sh: update from automake for variable quoting, $0 in
41059 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
41060 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
41063 2002-11-25 Jim Meyering <jim@meyering.net>
41065 * lib/mktime.c: Sync from libc, now that it has the latest fix.
41067 2002-11-24 Karl Berry <karl@gnu.org>
41069 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
41070 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
41072 2002-11-24 Jim Meyering <jim@meyering.net>
41074 Update from coreutils:
41076 * lib/mktime.c: Merge in changes from libc.
41078 Avoid a link-time failure on some Linux systems.
41079 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
41081 (__mon_yday): Declare with the STATIC attribute.
41082 (__mktime_internal): Likewise.
41083 Based on a report from Greg Schafer.
41085 2002-11-23 Jim Meyering <jim@meyering.net>
41087 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
41088 Use `unsigned', not `int', as type of index.
41090 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
41092 * lib/fsusage.c: Remove unneeded parentheses around operands of
41095 2002-11-22 Paul Eggert <eggert@twinsun.com>
41097 * lib/quotearg.h: Allow multiple inclusion by surrounding with
41098 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
41099 so that we can be included first.
41100 (PARAMS): Remove; we now assume C89 or later. All uses removed.
41101 * lib/quotearg.c: Include quotearg.h immediately after config.h.
41102 No need to include stddef.h or sys/types.h any more.
41103 Surround local include files with "", not "<>".
41104 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
41105 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
41106 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
41107 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
41108 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
41109 (ISPRINT): Remove; no longer needed now that we assume C89.
41111 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
41114 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
41115 quotearg_char): Use SIZE_MAX rather than
41116 (size_t) -1 when we are talking about "infinity".
41118 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
41120 2002-11-22 Paul Eggert <eggert@twinsun.com>
41122 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
41123 hint that one should use `if (! x) abort ();' rather than `assert
41124 (x);', and anyway it's one less thing to worry about configuring.
41125 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
41126 hash_rehash, hash_insert): Use abort rather than assert.
41128 2002-11-22 Bruno Haible <bruno@clisp.org>
41130 * lib/safe-read.h: Assume C89. Add comments.
41131 (safe_read): Change return type to size_t.
41132 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
41133 byte counts > SSIZE_MAX correctly.
41134 * lib/safe-write.h: New file.
41135 * lib/safe-write.c: New file.
41136 * lib/full-read.h: New file.
41137 * lib/full-read.c: New file.
41138 * lib/full-write.h: Assume C89. Add comments.
41139 * lib/full-write.c: Include safe-write.h.
41140 (full_write): Rewritten to use safe_write.
41141 Suggested by Jim Meyering and Paul Eggert.
41143 2002-11-21 Jim Meyering <jim@meyering.net>
41145 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
41147 Merge in changes from the coreutils.
41149 2002-09-25 Paul Eggert <eggert@twinsun.com>
41150 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
41152 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
41153 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
41154 int. Work more efficiently if X is the same width as uintmax_t.
41155 Do not compare X to -1, to avoid bogus compiler warning.
41156 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
41157 Don't assume that f_frsize and f_bsize are the same type.
41159 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
41160 warning on FreeBSD.
41162 * lib/makepath.c (make_path): Restore umask *before* creating the final
41164 (make_path): Minor reformatting.
41166 * lib/xmalloc.c: Adjust to work with new autoconf macros,
41167 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
41168 HAVE_MALLOC/HAVE_REALLOC.
41170 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
41171 dummy ones. At least on GNU/Linux systems, `auto' means something
41173 From Michael Stone.
41175 2002-11-21 Bruno Haible <bruno@clisp.org>
41177 Remove case insensitive option matching.
41178 * lib/argmatch.h (argcasematch): Remove declaration.
41179 (ARGCASEMATCH): Remove macro.
41180 (__xargmatch_internal): Remove case_sensitive argument.
41181 (XARGMATCH): Update.
41182 (XARGCASEMATCH): Remove macro.
41183 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
41184 case_sensitive argument.
41185 (argcasematch): Remove function.
41186 (__xargmatch_internal): Remove case_sensitive argument.
41187 (main): Use XARGMATCH instead of XARGCASEMATCH.
41189 * lib/xmalloc.c: Change compile-time error message. Add comment about
41190 required autoconf version.
41192 2002-11-20 Paul Eggert <eggert@twinsun.com>
41194 Merge argmatch cleanups from Bison. Assume C89.
41196 * lib/argmatch.c: Include config.h here, not in argmatch.h.
41197 Include stdlib.h, for EXIT_FAILURE.
41198 Always include <string.h>, since we assume C89.
41199 (EXIT_FAILURE): Remove pre-C89 bug workaround.
41200 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
41201 Include <stddef.h> instead, since it's all we need for size_t.
41202 (PARAMS): Remove. All uses removed.
41203 (ARRAY_CARDINALITY): Do not bother to #undef.
41204 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
41205 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
41206 Remove unnecessary parentheses.
41207 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
41208 Insert necessary parentheses.
41209 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
41210 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
41212 2002-11-19 Bruno Haible <bruno@clisp.org>
41214 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
41215 * lib/mbswidth.h: Include <stddef.h>, for size_t.
41217 * lib/mbswidth.h (PARAMS): Remove macro.
41218 (mbswidth, mbsnwidth): Use ANSI C function declarations.
41219 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
41221 * lib/gcd.h (PARAMS): Remove macro.
41222 (gcd): Use ANSI C function declarations.
41223 * lib/gcd.c (gcd): Likewise.
41225 2002-11-15 Bruno Haible <bruno@clisp.org>
41227 * lib/strcspn.c: Include <stddef.h>.
41228 (strcspn): Use ANSI C function declaration. Change return type to
41230 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
41231 (strpbrk): Use NULL.
41232 * lib/strpbrk.h (PARAMS): Remove macro.
41233 (strpbrk): Use ANSI C function declaration.
41234 * lib/strstr.c: Don't include <sys/types.h>.
41235 * lib/strstr.h (PARAMS): Remove macro.
41236 (strstr): Use ANSI C function declarations.
41238 2002-11-14 Karl Berry <karl@gnu.org>
41240 * config/mkinstalldirs: `do' on separate line, instead of
41243 2002-11-06 Bruno Haible <bruno@clisp.org>
41245 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
41246 * lib/gcd.c (gcd): Likewise.
41248 2002-11-05 Bruno Haible <bruno@clisp.org>
41250 * lib/gcd.h: New file, from gettext-0.11.5.
41251 * lib/gcd.c: New file, from gettext-0.11.5.
41253 2002-11-05 Bruno Haible <bruno@clisp.org>
41255 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41256 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41257 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41258 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41260 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
41262 * lib/makepath.c: Include gettext.h instead of <locale.h> and
41265 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
41266 * lib/human.c: Include gettext.h instead of <libintl.h>.
41267 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
41268 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
41269 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
41270 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
41271 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
41272 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
41273 (textdomain): Remove definition.
41274 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
41276 * lib/long-options.c: Remove include of <libintl.h> and definition of
41278 * lib/same.c: Remove include of <libintl.h> and definition of _.
41280 2002-11-04 Owen Taylor <otaylor@redhat.com>
41282 * lib/config.charset: A few additions for Solaris.
41284 2002-11-04 Bruno Haible <haible@clisp.cons.org>
41286 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
41287 * lib/localcharset.c (locale_charset): Declare as extern "C".
41289 2002-11-04 Bruno Haible <haible@clisp.cons.org>
41291 * lib/config.charset: msdos in uk_UA uses CP1125.
41293 2002-11-04 Bruno Haible <bruno@clisp.org>
41295 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
41296 * lib/strcase.h: New file, from GNU gettext-0.11.5.
41297 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
41298 * lib/strstr.h: New file, from GNU gettext-0.11.5.
41299 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
41301 2002-11-04 Bruno Haible <bruno@clisp.org>
41303 * lib/localcharset.c (locale_charset): Don't return an empty string.
41305 2002-11-04 Bruno Haible <bruno@clisp.org>
41307 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
41310 2002-11-04 Bruno Haible <bruno@clisp.org>
41312 * lib/config.charset: Update for newest glibc. Add canonical names
41313 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
41315 2002-11-04 Bruno Haible <bruno@clisp.org>
41317 * lib/config.charset: Add support for NetBSD.
41319 2002-11-04 Bruno Haible <bruno@clisp.org>
41321 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
41323 2002-11-01 Bruno Haible <bruno@clisp.org>
41325 * configure.in: Add AC_CONFIG_AUX_DIR call.
41326 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
41328 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
41330 2002-09-28 Karl Berry <karl@gnu.org>
41332 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
41333 installed automake until the next release, since changes have been
41336 2002-09-25 Karl Berry <karl@gnu.org>
41338 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
41339 * lib/getopt*: copy from libc/posix.
41340 * lib/gettext.h: copy from gettext.
41341 * lib/.cppi-disable: add strdup.c, gettext.h.
41343 2002-09-25 Karl Berry <karl@gnu.org>
41345 * config/srclist.txt: enable gettext.h check.
41346 * config/config.{guess,sub}: update from prep.
41347 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
41348 from automake 1.6.3.
41351 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
41353 * regex.c (PATFETCH): Remove the translating fetch.
41354 (PATFETCH_RAW): Rename to PATFETCH.
41355 (set_image_of_range): New fun.
41356 (SET_RANGE_TABLE_WORK_AREA): Use it.
41357 (regex_compile): Don't translate the pattern chars so eagerly.
41358 Only do it when inserting an `exactn' bytecode or when handling
41360 (mutually_exclusive_p): Avoid empty statement.
41362 2002-07-06 Jim Meyering <meyering@lucent.com>
41364 * m4/README: Don't mention Makefile.am.in.
41365 Outline how I've tested changes to .m4 files. Yep, it's a pain.
41367 2002-07-01 Jim Meyering <meyering@lucent.com>
41369 * lib/c-stack.c: Include sys/time.h.
41370 From Volker Borchert.
41372 2002-06-26 Paul Eggert <eggert@twinsun.com>
41374 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
41376 2002-06-26 Paul Eggert <eggert@twinsun.com>
41378 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
41379 New macro. Use it uniformly instead of
41380 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
41381 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
41382 reported by Vin Shelton.
41384 2002-06-22 Paul Eggert <eggert@twinsun.com>
41386 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
41387 Do not assume SA_SIGINFO behavior.
41388 Bug reported by Jim Meyering on NetBSD 1.5.2.
41390 2002-06-22 Jim Meyering <meyering@lucent.com>
41392 * m4/c-stack.m4: New file, from diffutils-2.8.2.
41393 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
41395 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
41396 now that configure.ac uses AC_GNU_SOURCE.
41397 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
41398 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
41400 Update to latest tools. Suggestions from Paul Eggert.
41401 * m4/stdbool.m4: New file, from diffutils-2.8.2.
41402 * m4/gnu-source.m4: Update from diffutils-2.8.2.
41403 * m4/fnmatch.m4: Likewise.
41404 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
41405 to AC_HEADER_STDBOOL
41407 2002-06-22 Jim Meyering <meyering@lucent.com>
41409 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
41410 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
41412 2002-06-22 Jim Meyering <meyering@lucent.com>
41414 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
41416 * lib/exitfail.c, exitfail.h: Likewise.
41417 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
41419 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
41421 (EXTRA_DIST): Add fnmatch_loop.c.
41422 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
41424 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
41425 * lib/fnmatch.c: Update from diffutils-2.8.2.
41426 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
41427 * lib/fnmatch.h: Remove file.
41429 2002-06-21 Jim Meyering <meyering@lucent.com>
41431 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
41432 * m4/mbrtowc.m4: Likewise.
41434 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
41435 * m4/mbswidth.m4: Reflect name change:
41436 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
41437 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41439 * m4/lib-link.m4: Update from gettext-0.11.2.
41440 * m4/gettext.m4: Likewise.
41442 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
41443 From Alfred M. Szmidt.
41445 2002-06-18 Paul Eggert <eggert@twinsun.com>
41447 * lib/file-type.h: Report an error if neither S_ISREG nor
41448 S_IFREG is defined, instead of using a test specific to glibc
41449 2.2. This should be safe, since POSIX requires S_ISREG and
41450 Unix Version 7 had S_IFREG. We don't need to check for
41451 <sys/types.h> since we don't use any symbols that it defines.
41453 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
41455 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
41456 $@-t, so that each temporary file name is unique and valid in the first
41457 8 characters, for operation under DOS.
41459 2002-06-15 Paul Eggert <eggert@twinsun.com>
41461 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
41463 2002-06-15 Jim Meyering <meyering@lucent.com>
41465 Work even with DJGPP 2.03, which lacks support for symlinks.
41467 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
41469 * lib/lchown.c (S_ISLNK): Likewise.
41471 2002-06-15 Jim Meyering <meyering@lucent.com>
41473 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
41474 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
41475 have been included before this file.
41477 2002-06-14 Jim Meyering <meyering@lucent.com>
41479 * lib/file-type.h: Use the version from diffutils-2.8.2.
41480 * lib/file-type.c: Likewise.
41482 2002-06-07 Jim Meyering <meyering@lucent.com>
41484 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
41485 They're needed at least for NetBSD 1.5.2.
41486 ($statxfs_includes): Include those same headers.
41487 ($statxfs_includes): Include sys/vfs.h if available.
41488 ($statxfs_includes): Likewise for sys/statvfs.h.
41489 Check for the following members in both structs statfs and statvfs:
41490 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
41492 2002-06-01 Jim Meyering <meyering@lucent.com>
41494 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
41495 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
41497 2002-05-28 Jim Meyering <meyering@lucent.com>
41499 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
41500 Reported by Volker Borchert.
41502 2002-05-27 Jim Meyering <meyering@lucent.com>
41504 Fix a problem seen only on nonconforming systems whereby ls.c's
41505 use of localtime, and then of gettimeofday would cause trouble:
41506 the localtime call used to initialize rpl_gettimeofday's save
41507 mechanism would clobber ls's current local time information so
41508 that in any long listing the first file would always be listed
41509 with date 1970-01-01. Analysis by Volker Borchert.
41511 * lib/gettimeofday.c (localtime): Undefine.
41512 (rpl_localtime): New function.
41514 2002-05-27 Jim Meyering <meyering@lucent.com>
41516 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
41519 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
41520 use the replacement function; it wouldn't resolve at link time.
41521 Reported by Volker Borchert.
41523 2002-05-22 Jim Meyering <meyering@lucent.com>
41525 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
41527 * lib/file-type.h: New file.
41528 * lib/file-type.c (file_type): New file/function. Extracted from
41531 2002-04-30 Jim Meyering <meyering@lucent.com>
41533 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
41535 2002-04-29 Paul Eggert <eggert@twinsun.com>
41537 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
41539 2002-04-29 Paul Eggert <eggert@twinsun.com>
41541 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
41542 Do not check for alloca.h (no longer used) or stdbool.h (was never
41543 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
41545 2002-04-29 Paul Eggert <eggert@twinsun.com>
41547 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
41549 2002-04-29 Jim Meyering <meyering@lucent.com>
41551 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
41552 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
41553 Use AC_FUNC_STRNLEN here instead.
41555 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
41556 With autoconf-2.53a, it's part of AC_PROG_CC.
41558 2002-04-28 Paul Eggert <eggert@twinsun.com>
41560 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
41561 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
41563 2002-04-28 Paul Eggert <eggert@twinsun.com>
41565 * lib/sig2str.h, lib/sig2str.c: New files.
41566 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
41568 2002-04-28 Paul Eggert <eggert@twinsun.com>
41570 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
41571 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
41572 of 127, since 64 is the largest conceivable number for ancient
41574 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
41576 2002-04-28 Jim Meyering <meyering@lucent.com>
41578 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
41580 2002-04-24 Jim Meyering <meyering@lucent.com>
41582 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
41583 (jm_PREREQ): Use it.
41585 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
41586 mach/mach.h fcntl.h.
41587 Check for this function: setlocale.
41589 2002-04-24 Jim Meyering <meyering@lucent.com>
41591 * lib/gettext.h: New file, from Gettext.
41592 * lib/Makefile.am (INCLUDES): Remove -I../intl.
41593 (libfetish_a_SOURCES): Add gettext.h.
41595 2002-04-16 Jim Meyering <meyering@lucent.com>
41597 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
41598 ut_pid, ut_id, ut_exit.
41600 2002-04-16 Jim Meyering <meyering@lucent.com>
41602 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
41603 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
41604 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
41606 2002-04-12 Jim Meyering <meyering@lucent.com>
41608 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
41609 now-bogus check for f_type in sys/mount.h. Instead, just test for the
41610 existence of the getmntinfo function. Needed for Darwin 5.3.
41612 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
41613 This is necessary at least on Darwin 5.3.
41615 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
41616 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
41617 strnlen.o in the library, and that makes some versions of ranlib
41620 2002-04-12 Jim Meyering <meyering@lucent.com>
41622 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
41624 2002-04-09 Jim Meyering <meyering@lucent.com>
41626 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
41627 to be more precise. Rather than saying we're checking whether the
41628 function `works', say what we're testing.
41629 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
41630 Reported by Bruno Haible.
41632 2002-03-10 Jim Meyering <meyering@lucent.com>
41634 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
41635 Suggestion from Santiago Vila.
41637 2002-03-08 Jim Meyering <meyering@lucent.com>
41639 * lib/rename.c: Mention that this wrapper is needed also on
41640 mips-dec-ultrix4.4 systems.
41642 2002-03-02 Jim Meyering <meyering@lucent.com>
41644 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
41645 not HAVE_CLOCK_SETTIME.
41647 2002-02-27 Paul Eggert <eggert@twinsun.com>
41649 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
41650 Check for clock_settime.
41652 2002-02-27 Paul Eggert <eggert@twinsun.com>
41654 * lib/nanosleep.h: Rename to....
41655 * lib/timespec.h: New name for nanosleep.h. All uses changed.
41657 * lib/gettime.c: New file.
41658 * lib/settime.c: New file.
41659 * lib/stime.c: Remove.
41661 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
41662 timespec.h. Remove nanosleep.h.
41664 2002-02-25 Paul Eggert <eggert@twinsun.com>
41666 * m4/acl.m4: New file.
41667 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
41668 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
41670 2002-02-25 Paul Eggert <eggert@twinsun.com>
41672 * lib/acl.c, lib/acl.h: New files.
41673 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
41675 2002-02-24 Jim Meyering <meyering@lucent.com>
41677 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
41678 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
41679 cause trouble. Reported by Nelson Beebe.
41681 2002-02-23 Paul Eggert <eggert@twinsun.com>
41683 * lib/path-concat.c (xpath_concat): Reorder code to pacify
41684 compilers that don't know that xalloc_die never returns.
41686 2002-02-20 Jim Meyering <meyering@lucent.com>
41688 * lib/getdate.c: Regenerate using bison-1.33.
41690 2002-02-17 Jim Meyering <meyering@lucent.com>
41692 * config/config.guess (main): Don't use `head -1'; it's no longer
41693 portable. Use `sed 1q' instead.
41695 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
41697 * m4/codeset.m4: Upgrade to gettext-0.11.
41698 * m4/gettext.m4: Upgrade to gettext-0.11.
41699 * m4/glibc21.m4: Upgrade to gettext-0.11.
41700 * m4/iconv.m4: Upgrade to gettext-0.11.
41701 * m4/isc-posix.m4: Upgrade to gettext-0.11.
41702 * m4/lcmessage.m4: Upgrade to gettext-0.11.
41703 * m4/lib-ld.m4: New file, from gettext-0.11.
41704 * m4/lib-link.m4: New file, from gettext-0.11.
41705 * m4/lib-prefix.m4: New file, from gettext-0.11.
41706 * m4/progtest.m4: Upgrade to gettext-0.11.
41708 2002-02-15 Paul Eggert <eggert@twinsun.com>
41710 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
41711 (jm_PREREQ): Use it.
41713 2002-02-15 Paul Eggert <eggert@twinsun.com>
41715 * lib/posixver.c, lib/posixver.h: New files.
41716 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41718 2002-02-02 Paul Eggert <eggert@twinsun.com>
41719 Bruno Haible <bruno@clisp.org>
41721 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
41722 (fwrite_success_callback): New declaration.
41723 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
41724 print_unicode_char. Call failure callback instead of error.
41725 (fwrite_success_callback): New function.
41726 (exit_failure_callback): New function.
41727 (fallback_failure_callback): New function.
41728 (print_unicode_char): Call unicode_to_mb.
41730 2002-01-26 Jim Meyering <meyering@lucent.com>
41732 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
41733 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
41735 2002-01-26 Jim Meyering <meyering@lucent.com>
41737 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
41739 2002-01-22 Paul Eggert <eggert@twinsun.com>
41741 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
41743 2002-01-22 Jim Meyering <meyering@lucent.com>
41745 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
41746 Otherwise, some versions of automake would omit the rule that makes
41747 Makefile from Makefile.in.
41749 2002-01-21 Paul Eggert <eggert@twinsun.com>
41751 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
41752 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41753 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
41754 (memcoll): Set errno to zero if there is no error.
41756 * lib/quotearg.c (quotearg_buffer_restyled):
41757 Fix bug with quoting buffers containing NUL when backslashing escapes.
41758 This bug was exposed by the other changes in this patch.
41759 (quotearg_n_options): New arg ARGSIZE.
41760 All callers changed.
41761 (quoting_options_from_style): New function.
41762 (quotearg_n_style): Use it.
41763 (quotearg_n_style_mem): New function.
41765 * lib/quotearg.h (quotearg_n_style_mem): New function.
41767 2002-01-19 Jim Meyering <meyering@lucent.com>
41769 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
41770 Remove useless quotes: DF_PROG="df".
41771 * m4/strnlen.m4: New file.
41773 2002-01-16 Paul Eggert <eggert@twinsun.com>
41775 * lib/backupfile.c (ISDIGIT): Comment fix.
41776 * lib/getdate.y (ISDIGIT): Likewise.
41777 * lib/posixtm.c (ISDIGIT, year): Likewise.
41778 * lib/strverscmp.c (ISDIGIT): Likewise.
41779 * lib/userspec.c (ISDIGIT): Likewise.
41781 2002-01-16 Jim Meyering <meyering@lucent.com>
41783 * lib/getdate.y: Add three semicolons, each just before a closing
41784 brace. Bison (as of version 1.31) no longer papers over that mistake.
41786 2002-01-05 Jim Meyering <meyering@lucent.com>
41788 * lib/version-etc.c (version_etc_copyright): Update copyright year.
41790 2001-12-19 Paul Eggert <eggert@twinsun.com>
41792 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
41793 not silently exit merely because the output buffer happens to
41794 have nothing pending.
41796 2001-12-18 Paul Eggert <eggert@twinsun.com>
41798 See the big note in ../ChangeLog.
41799 * lib/human.c (suffixes): Prefer K to k for 1024.
41800 (generate_suffix_backwards): New function.
41801 (human_readable_inexact): Use it.
41802 * lib/xstrtol.c (__xstrtol): If there is no number but there
41803 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
41804 Accept 'K' as well as 'k'.
41806 2001-12-15 Jim Meyering <meyering@lucent.com>
41808 * lib/regex.h (__restrict_arr): Update from libc.
41810 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
41811 as `remote' if the name starts with `//'. Suggested by Michael Stone.
41814 2001-12-14 Jim Meyering <meyering@lucent.com>
41816 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
41817 Suggestion from Bruno Haible.
41819 2001-12-10 Jim Meyering <meyering@lucent.com>
41821 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
41822 xrealloc, Instead, include "xalloc.h".
41823 (initbuffer): Don't cast xmalloc return value to char*.
41824 (readline): Reword comment.
41825 Don't cast xrealloc return value to char*
41826 Return NULL, not 0.
41828 2001-12-09 Jim Meyering <meyering@lucent.com>
41830 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
41831 about `signed and unsigned type in conditional expression'.
41832 * lib/posixtm.c (posix_time_parse): Likewise.
41834 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
41836 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
41837 to avoid a pedantic warning.
41839 * lib/getstr.c: Don't include assert.h.
41840 (getstr): Remove warning-evoking assertions.
41841 Return -1 if offset parameter is out of bounds.
41842 Change the type of a local from int to size_t.
41844 * lib/strftime.c (my_strftime_localtime_r): Include this function
41845 definition in the `#if ! HAVE_TM_GMTOFF' block.
41847 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
41848 Include xalloc.h instead.
41850 2001-12-02 Jim Meyering <meyering@lucent.com>
41852 * lib/tempname.c: Don't declare getenv, thus reverting the change of
41853 2001-11-18. It's no longer necessary, now that stdlib.h is always
41856 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
41857 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
41859 2001-11-30 Akim Demaille <akim@epita.fr>
41861 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
41862 before being defined.
41864 2001-11-27 Paul Eggert <eggert@twinsun.com>
41866 * lib/quotearg.h (quotearg_n, quotearg_n_style):
41867 First arg is int, not unsigned.
41868 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
41869 (SIZE_MAX, UINT_MAX): New macros.
41870 (quotearg_n_options): Abort if N is negative.
41871 Avoid overflow check on hosts where size_t is 64 bits and int
41872 is 32 bits, as overflow is impossible there.
41873 Fix off-by-one typo that caused unnecessary reallocation.
41875 2001-11-27 Jim Meyering <meyering@lucent.com>
41877 * lib/tempname.c: Merge with version from libc.
41878 * lib/regex.c: Likewise.
41880 * lib/tempname.c: Include stdlib.h unconditionally. On some old
41881 systems for which STDC_HEADERS is 0, it was not included, resulting in
41882 a warning about an integer-to-pointer conversion problem with getenv.
41883 Reported by Volker Borchert.
41885 2001-11-26 Jim Meyering <meyering@lucent.com>
41887 * lib/gtod.h: Remove file.
41888 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
41889 * lib/gettimeofday.c: Don't include gtod.h.
41890 (GTOD_init): Remove function.
41891 (rpl_gettimeofday): Do its job here instead, rather than aborting.
41892 Suggestion from Volker Borchert.
41894 2001-11-23 Jim Meyering <meyering@lucent.com>
41896 * lib/hash.h (struct hash_table): Don't define here. Merely declare
41898 * lib/hash.c (struct hash_table): Define it here instead.
41900 2001-11-22 Jim Meyering <meyering@lucent.com>
41902 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
41904 2001-11-20 Jim Meyering <meyering@lucent.com>
41906 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
41907 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
41909 2001-11-19 Jim Meyering <meyering@lucent.com>
41911 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
41912 directory. Use "conftestXXXXXX" as the template.
41913 Suggestion from Paul Eggert.
41915 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
41916 immediately, so the test doesn't mistakenly hit the max-open-files
41919 2001-11-18 Paul Eggert <eggert@twinsun.com>
41921 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
41922 (TEMPORARIES): New macro.
41923 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
41924 removes an artificial limitation (e.g. HP-UX 10.20, where
41927 2001-11-18 Jim Meyering <meyering@lucent.com>
41929 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
41931 2001-11-18 Jim Meyering <meyering@lucent.com>
41933 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
41936 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
41937 files will be created before anything else.
41939 2001-11-17 Paul Eggert <eggert@twinsun.com>
41941 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
41942 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
41944 2001-11-17 Jim Meyering <meyering@lucent.com>
41946 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
41947 Prompted by a report from Bob Proulx.
41949 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
41950 Instead, require UTILS_FUNC_MKSTEMP.
41952 2001-11-17 Jim Meyering <meyering@lucent.com>
41954 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
41955 Now, that's done as part of AC_FUNC_STRTOD.
41957 2001-11-17 Jim Meyering <meyering@lucent.com>
41959 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
41960 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
41961 rather than group writable. Patch by Juan F. Codagnone.
41963 * lib/readtokens.c: Remove explicit declarations of xmalloc and
41964 xrealloc, Instead, include "xalloc.h".
41966 * lib/mountlist.c: Include unlocked-io.h after all system headers.
41967 Remove explicit declarations of xmalloc, xrealloc,
41968 and xstrdup. Instead, include "xalloc.h".
41970 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
41972 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
41974 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
41976 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
41977 Reported by Padraig Brady.
41979 * lib/mkstemp.c: #undef mkstemp.
41981 (rpl_mkstemp): Rename from mkstemp.
41984 2001-11-16 Jim Meyering <meyering@lucent.com>
41986 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
41987 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
41988 determine the amount of total physical memory, use pstat_getstatic.
41989 HPUX-11 doesn't define _SC_PHYS_PAGES.
41990 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
41991 If sysconf couldn't be used to determine the amount of available
41992 physical memory, use both pstat_getstatic and pstat_getdynamic.
41993 Based on a patch from Bob Proulx.
41995 2001-11-10 Jim Meyering <meyering@lucent.com>
41997 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
41998 (jm_PREREQ): Use it.
42000 2001-11-09 Jim Meyering <meyering@lucent.com>
42002 * m4/jm-macros.m4: Require autoconf-2.52f.
42003 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
42004 Use these AC_-prefixed names, not the AM_-prefixed ones.
42006 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
42008 2001-11-05 Jim Meyering <meyering@lucent.com>
42010 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
42012 2001-11-04 Jim Meyering <meyering@lucent.com>
42014 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
42017 2001-11-03 Jim Meyering <meyering@lucent.com>
42019 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
42022 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
42023 know the name of the variable in the macro definition.
42025 2001-11-03 Jim Meyering <meyering@lucent.com>
42027 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
42028 in argmatch_to_argument call.
42030 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
42033 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
42034 e.g., a fault due to an attempt to free a NULL pointer.
42036 2001-11-01 Jim Meyering <meyering@lucent.com>
42038 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
42039 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
42041 2001-11-01 Jim Meyering <meyering@lucent.com>
42043 * lib/dirfd.c, lib/dirfd.h: New files.
42044 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
42046 * lib/hash.c (hash_print) [TESTING]: Clean up.
42048 2001-10-22 Paul Eggert <eggert@twinsun.com>
42050 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
42051 to avoid a warning if -Wall.
42053 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
42056 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
42057 (per RMS's instructions, this is now the canonical source)
42058 * lgpl/, gpl/: New directories.
42060 2001-10-21 Paul Eggert <eggert@twinsun.com>
42062 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
42064 2001-10-21 Jim Meyering <meyering@lucent.com>
42066 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
42067 this code would end up calling gettext even in packages built
42068 with --disable-nls.
42069 * lib/getopt.c (_): Likewise.
42070 * lib/regex.c (_): Likewise.
42072 2001-10-20 Paul Eggert <eggert@twinsun.com>
42074 * m4/error.m4 (jm_PREREQ_ERROR):
42075 Do not invoke AC_CHECK_FUNCS with strerror_r, as
42076 AC_FUNC_STRERROR_R does that.
42077 Check for strerror declaration.
42079 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
42080 are supposed to have them these days.
42081 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
42082 Merge changes from latest Autoconf CVS.
42083 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
42084 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
42085 POSIX decided to standardize on the int flavor of strerror_r.
42087 2001-10-20 Paul Eggert <eggert@twinsun.com>
42089 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
42090 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
42091 Use strerror_r that is only a macro, even if it is not a function.
42092 (strerror): Check for HAVE_DECL_STRERROR before declaring.
42093 (private_strerror): Use prototypes, not old-style function definition.
42094 (print_errno_message): New function.
42095 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
42096 char*-flavored one.
42097 (error_tail, error, error_at_line): Use it.
42099 2001-10-11 Jim Meyering <meyering@lucent.com>
42101 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
42102 and quote_n (1, ... to avoid clobbering a buffer.
42104 2001-10-05 Jim Meyering <meyering@lucent.com>
42106 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
42108 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
42109 * lib/hash-pjw.h: New file.
42111 2001-09-30 Jim Meyering <meyering@lucent.com>
42113 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
42114 `struct fsstat' has the `f_fstypename' member.
42115 Use that to define FS_TYPE, which is now used to make
42116 the getfsstat link test tighter.
42118 2001-09-30 Jim Meyering <meyering@lucent.com>
42120 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
42121 Include <sys/ucred.h>, for Apple Darwin.
42122 Include sys/mount.h and sys/fs_types.h only if available.
42124 (read_filesystem_list): Use FS_TYPE.
42126 2001-09-29 Paul Eggert <eggert@twinsun.com>
42128 * lib/exclude.c (excluded_filename): 0 -> false, since it's
42131 2001-09-29 Jim Meyering <meyering@lucent.com>
42133 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
42134 [one-argument getmntent function]): Include stdio.h before mntent.h.
42135 SunOS 4.1.x needs it for the declaration of `FILE'.
42136 Patch by Volker Borchert.
42138 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
42139 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
42140 sys/fs_types.h, and make the link-test for getfsstat guard #include
42141 directives with appropriate #if HAVE_*_H tests so that we can
42142 detect getfsstat on Apple Darwin1.3.7 systems.
42143 Reported by Nelson Beebe.
42144 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
42146 2001-09-28 Paul Eggert <eggert@twinsun.com>
42148 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
42149 #defines strtoimax. Also treat the other strto* functions
42152 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
42153 Check for strtoul and strtoumax,
42154 as those declarations are made even in the signed case.
42155 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
42156 Likewise, for strtol and strtoimax.
42158 2001-09-28 Paul Eggert <eggert@twinsun.com>
42160 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
42161 #defines strtoimax. Also treat the other strto* functions
42164 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
42165 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
42166 (strtoimax, strtoumax): Do not declare if already defined as a macro.
42168 2001-09-26 Jim Meyering <meyering@lucent.com>
42170 Most macros in unlocked-io.h had the wrong number of arguments.
42171 * lib/gen-uio: New script.
42172 (USE_UNLOCKED_IO): Define to 1 if not already defined.
42173 * lib/unlocked-io.hin: Remove file.
42174 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
42175 rather than trying to embed it here.
42176 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
42177 Reported by Padraig Brady.
42179 2001-09-25 Volker Borchert <bt@teknon.de>
42181 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
42184 2001-09-24 Jim Meyering <meyering@lucent.com>
42186 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
42188 2001-09-23 Jim Meyering <meyering@lucent.com>
42190 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
42191 instead of the mere test for existence of mntent.h. The latter
42192 would get a false-positive on AIX 3.4 systems.
42193 In the outer getmntent if-block, don't die if neither of the getmntent
42194 tests succeeds. Instead, just fall through and continue with the
42197 2001-09-23 Jim Meyering <meyering@lucent.com>
42199 * lib/mountlist.c: Remove useless parentheses in #if directives.
42200 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
42201 the deprecated MOUNTED symbol is no longer defined in mntent.h.
42203 2001-09-22 Jim Meyering <meyering@lucent.com>
42205 * m4/gettext.m4: New file. From gettext.
42206 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
42207 * m4/progtest.m4: Likewise
42208 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
42209 * m4/glibc21.m4: Likewise.
42211 * m4/libintl.m4: Remove. No longer used.
42213 2001-09-22 Jim Meyering <meyering@lucent.com>
42215 * lib/localcharset.c: Update from latest gettext.
42216 * lib/config.charset: Likewise.
42218 2001-09-20 Jim Meyering <meyering@lucent.com>
42220 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
42222 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
42225 2001-09-20 Jim Meyering <meyering@lucent.com>
42227 * lib/xstrtol.c (strtoimax): Guard declaration with
42228 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
42229 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
42230 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
42231 (strtoumax): Likewise, for completeness (it wasn't necessary).
42233 2001-09-17 Paul Eggert <eggert@twinsun.com>
42235 * lib/strtoimax.c (HAVE_LONG_LONG):
42236 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
42237 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
42238 to work around bug in IBM C compiler.
42240 2001-09-17 Jim Meyering <meyering@lucent.com>
42242 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
42243 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
42244 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
42245 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
42246 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
42247 whenever the right hand side need not be expanded by the shell.
42249 2001-09-16 Paul Eggert <eggert@twinsun.com>
42251 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
42252 library. It's not correct, as some older glibcs are buggy.
42253 fnmatch wasn't fixed until glibc 2.2.
42255 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
42256 special shell magic here.
42258 2001-09-16 Jim Meyering <meyering@lucent.com>
42260 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
42261 * m4/jm-macros.m4: Require it.
42263 2001-09-16 Jim Meyering <meyering@lucent.com>
42265 * lib/mkdir.c: New file.
42267 2001-09-15 Jim Meyering <meyering@lucent.com>
42269 * m4/jm-macros.m4: Check for help2man.
42271 2001-09-11 Jim Meyering <meyering@lucent.com>
42273 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
42274 The body, by Paul Eggert, was moved here from configure.in.
42275 * m4/jm-macros.m4: Require UTILS_HOST_OS.
42277 2001-09-04 Paul Eggert <eggert@twinsun.com>
42279 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
42280 (jm_PREREQ): Use it.
42282 2001-09-04 Paul Eggert <eggert@twinsun.com>
42284 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
42285 Use ssize_t, not int, to store result of readlink.
42286 Check for ssize_t overflow as well as size_t overflow,
42287 as POSIX says the result of readlink is implementation-defined
42288 when ssize_t overflows.
42289 Remove unnecessary cast to char*.
42290 Use free+malloc instead of realloc, as the storage doesn't need
42291 to be preserved and it's clearer and can be more efficient that way.
42292 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
42293 * lib/xreadlink.h (xreadlink): Update prototype.
42295 2001-09-04 Paul Eggert <eggert@twinsun.com>
42297 * lib/xgetcwd.c: Revert some of the previous change; intead,
42298 fix the HAVE_GETCWD_NULL code to behave more like the
42299 !HAVE_GETCWD_NULL code used to.
42301 Include "xalloc.h".
42302 (xgetcwd): Do not return NULL when memory is exhausted; instead,
42305 2001-09-03 Paul Eggert <eggert@twinsun.com>
42307 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
42308 sys/param.h, as pathmax.h includes them.
42310 2001-09-03 Paul Eggert <eggert@twinsun.com>
42312 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
42313 (jm_PREREQ_XGETCWD): New macro.
42315 * m4/getcwd.m4: New file.
42317 2001-09-03 Paul Eggert <eggert@twinsun.com>
42319 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
42320 like the HAVE_GETCWD_NULL code.
42321 Include pathmax.h if not HAVE_GETCWD.
42322 Do not include xalloc.h.
42323 (INITIAL_BUFFER_SIZE): New symbol.
42324 Do not use xmalloc / xrealloc, since the caller is responsible for
42325 handling errors. Preserve errno around `free' during failure.
42326 Do not overrun buffer when using getwd.
42328 2001-09-03 Paul Eggert <eggert@twinsun.com>
42330 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
42331 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
42334 2001-09-03 Paul Eggert <eggert@twinsun.com>
42336 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
42337 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
42338 spotted by Jim Meyering.
42340 2001-09-03 Jim Meyering <meyering@lucent.com>
42342 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
42345 2001-09-02 Jim Meyering <meyering@lucent.com>
42347 * lib/error.c: Update from GNU libc.
42349 2001-09-01 Jim Meyering <meyering@lucent.com>
42351 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
42354 2001-09-01 Jim Meyering <meyering@lucent.com>
42356 * lib/xreadlink.c: New file.
42357 * lib/xreadlink.h: New file.
42358 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
42361 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
42362 doesn't conflict with sparc Solaris 7's definition in
42363 /usr/include/sys/int_types.h.
42365 * lib/exclude.c: Use `""', not `<>' to #include non-system header
42367 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
42368 and strncasecmp as r-values. Unixware didn't have declarations.
42370 2001-08-31 Paul Eggert <eggert@twinsun.com>
42372 * lib/xstrtol.h: Add copyright notice.
42373 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
42374 LONGINT_INVALID_SUFFIX_CHAR.
42376 2001-08-31 Paul Eggert <eggert@twinsun.com>
42378 * lib/xstrtol.c (strtoimax): New decl.
42380 2001-08-31 Paul Eggert <eggert@twinsun.com>
42382 * lib/xgetcwd.c: Don't include pathmax.h.
42383 Include stdlib.h and unistd.h if available.
42385 (xmalloc, xstrdup, free): Remove decls.
42386 (xgetcwd): Don't assume sizes fit in unsigned.
42387 Check for overflow when computing sizes.
42388 Simplify reallocation code.
42390 2001-08-31 Paul Eggert <eggert@twinsun.com>
42392 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
42393 a directory's st_size can have an arbitrary value, so the old
42394 usage could waste an arbitrary amount of memory. All uses
42396 * lib/savedir.h: Update prototype.
42398 2001-08-31 Paul Eggert <eggert@twinsun.com>
42400 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
42402 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
42405 Also, make the following further changes to make this file's
42406 configuration more similar to that of strtol.c:
42407 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
42408 (strtoumax, uintmax_t, strtoull, strtol): Remove.
42409 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
42410 (strtoimax): Renamed from strtoumax. All uses of unsigned values
42411 changed to signed values.
42413 And make the following changes as well:
42414 Fix copyright notice, as 1999 was missing.
42415 (verify): New macro.
42416 (strtoimax): Check sizes at compile-time, not run-time.
42417 Prefer strtol to strtoll if both work.
42418 (main): Remove; it was not that useful and was a pain to maintain.
42420 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
42422 2001-08-31 Jim Meyering <meyering@lucent.com>
42424 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
42425 Use an initial, malloc'd, buffer of length 128 rather than
42426 a statically allocated one of length 1024.
42428 2001-08-30 Paul Eggert <eggert@twinsun.com>
42430 Simplify code, partly by assuming autoconf 2.52 semantics.
42432 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
42434 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
42435 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
42437 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
42438 Move AC_REQUIRE to next-to-top level, to avoid confusion.
42439 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
42440 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
42441 jm_AC_HEADER_INTTYPES_H.
42442 * m4/jm-macros.m4 (jm_MACROS): Likewise.
42444 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
42446 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
42447 Quote first arg of AC_DEFUN.
42448 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
42449 since they are needed to parse the include file even if we need
42450 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
42451 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
42452 but with opposite signedness.
42454 2001-08-30 Paul Eggert <eggert@twinsun.com>
42456 Merge 'exclude' changes from tar 1.13.22.
42457 This fixes one or two unlikely storage allocation overflow bugs,
42458 but doesn't change user-visible behavior otherwise.
42460 2001-08-30 Paul Eggert <eggert@twinsun.com>
42462 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
42463 (jm_PREREQ_EXCLUDE): New macro.
42465 2001-08-30 Paul Eggert <eggert@twinsun.com>
42467 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
42470 2001-08-30 Paul Eggert <eggert@twinsun.com>
42472 * lib/hash.c: Remove '2001' from copyright notice.
42474 2001-08-30 Paul Eggert <eggert@twinsun.com>
42476 * lib/full-write.h: New file.
42477 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
42478 * lib/full-write.c: Correct credits, as cccp.c no longer
42479 exists and anyway it was so heavily changed from the old cccp
42480 code as to be unrecognizable. Include full-write.h.
42481 (full_write) Return size_t, with short writes meaning failure.
42482 All callers changed. This fixes a bug with large buffers
42484 * lib/utime.c: Include full-write.h.
42486 2001-08-30 Paul Eggert <eggert@twinsun.com>
42488 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
42489 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
42490 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
42491 Include if available.
42492 (<xalloc.h>): Include
42493 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
42494 (verify): New macro. Use it to verify that EXCLUDE macros do not
42495 collide with FNM macros.
42496 (struct patopts): New struct.
42497 (struct exclude): Use it, as exclude patterns now come with options.
42498 (new_exclude): Support above changes.
42499 (new_exclude, add_exclude_file):
42500 Initial size must now be a power of two to simplify overflow checking.
42501 (free_exclude, fnmatch_no_wildcards): New function.
42502 (excluded_filename): No longer requires options arg, as the options
42503 are determined by add_exclude. Now returns bool, not int.
42504 (excluded_filename, add_exclude):
42505 Add support for the fancy new exclusion options.
42506 (add_exclude, add_exclude_file): Now takes int options arg.
42507 Check for arithmetic overflow when computing sizes.
42508 (add_exclude_file): xrealloc might modify errno, so don't
42509 realloc until after errno might be used.
42511 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
42513 (free_exclude): New decl.
42514 (add_exclude, add_exclude_file): Now takes int options arg.
42515 (excluded_filename): No longer requires options arg, as the options
42516 are determined by add_exclude. Now returns bool, not int.
42518 2001-08-30 Paul Eggert <eggert@twinsun.com>
42520 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
42522 2001-08-27 Jim Meyering <meyering@lucent.com>
42524 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
42526 * lib/version-etc.c (N_): Remove definition.
42527 Revert most of last change.
42528 Instead, simply don't mark the `Copyright...' string for translation.
42529 Based on advice from Paul Eggert.
42531 * lib/strtoxmax.c: Tweak comment.
42533 2001-08-26 Jim Meyering <meyering@lucent.com>
42535 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
42537 * m4/xstrtoimax.m4: New file.
42538 * m4/xstrtoumax.m4: Add comments explaining why we
42539 AC_REPLACE_FUNCS(strtol).
42541 2001-08-26 Jim Meyering <meyering@lucent.com>
42543 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
42544 of copyright with `%s' so translators don't get an untranslated
42546 (COPYRIGHT_YEAR): Define.
42547 (version_etc): Use fprintf rather than fputs.
42548 Suggestion from Ulrich Drepper.
42550 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
42552 * lib/strtoll.c: New file, from GNU libc.
42553 * lib/xstrtoimax.c: New file.
42555 * lib/xstrtol.h: Add xstrtoimax.
42556 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
42557 * lib/strtoimax.c: New file. Likewise, but first define
42560 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
42562 * lib/strtoxmax.c: ... then renamed to this.
42564 2001-08-18 Paul Eggert <eggert@twinsun.com>
42566 * m4/inttypes.m4: Add AC_PREREQ(2.13).
42567 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
42568 (jm_AC_TYPE_INTMAX_T): New macro.
42569 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
42571 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
42573 * m4/longlong.m4: Renamed from ulonglong.m4.
42574 * m4/inttypes.m4: Renamed from inttypes_h.m4.
42575 * m4/uintmax_t.m4: Removed.
42577 2001-08-13 Paul Eggert <eggert@twinsun.com>
42579 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
42580 Port to Solaris 8, where 'sed' requires a space after the 'r'
42581 command, and where sh dislikes "$/". Clean up the spacing a bit.
42582 Redirect output to $tmp just once.
42584 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
42586 * lib/addext.c (<errno.h>): Include.
42587 (errno): Declare if not defined.
42588 (addext): Work correctly when pathconf returns -1 and leaves
42589 errno alone because there is no limit. Also, work even if
42590 pathconf returns a value greater than SIZE_MAX.
42592 2001-08-12 Jim Meyering <meyering@lucent.com>
42594 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
42595 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
42596 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
42597 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
42598 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
42599 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
42600 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
42601 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
42602 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
42603 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
42604 utime.m4, utimes.m4, xstrtoumax.m4:
42605 Quote the first argument in each use of AC_DEFUN.
42607 2001-08-12 Jim Meyering <meyering@lucent.com>
42609 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
42610 Simply `return getcwd (NULL, 0);'.
42611 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
42612 Use 1300 as initial value for length, not PATH_MAX.
42614 * lib/pathmax.h: Clean up cpp syntax.
42616 2001-08-12 Jim Meyering <meyering@lucent.com>
42618 * lib/gettimeofday.c: New file.
42619 * lib/gtod.h: New file.
42620 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
42622 2001-08-05 Jim Meyering <meyering@lucent.com>
42624 * m4/jm-macros.m4: Require autoconf-2.52.
42626 2001-08-04 Jim Meyering <meyering@lucent.com>
42628 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
42629 stmt, to get in sync with glibc.
42631 2001-08-03 Paul Eggert <eggert@twinsun.com>
42633 The following changes are from gettext 0.10.39 as maintained by
42636 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
42637 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
42638 with inverted sense. All uses changed.
42640 * lib/mbswidth.c: Don't include <limits.h>.
42641 Include <stdlib.h> and <string.h> unconditionally.
42642 (iswcntrl, mbsinit, ISCNTRL): New macros.
42643 (mbsnwidth): Use K&R style function declarations.
42644 Don't bother checking for MB_LEN_MAX == 1, since the compiler
42645 can optimize it when MB_CUR_MAX == 1.
42646 The width of control characters is zero, not 1.
42648 2001-08-03 Paul Eggert <eggert@twinsun.com>
42650 The following changes are from gettext 0.10.39 as maintained by
42651 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
42653 * m4/codeset.m4: Upgrade to serial AM1.
42654 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
42655 all uses changed. Quote first arg of AC_DEFUN.
42656 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
42658 * m4/iconv.m4: Upgrade to serial AM2.
42659 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
42660 Add --with-libconv-prefix.
42661 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
42662 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
42663 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
42664 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
42665 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
42667 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
42668 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
42669 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
42670 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
42671 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
42672 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
42673 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42674 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
42675 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
42677 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
42680 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
42681 not the default value.
42683 2001-06-25 Bruno Haible <haible@clisp.cons.org>
42684 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
42685 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
42686 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
42687 Also check for iswcntrl, used for wcwidth fallback.
42688 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
42691 2001-08-03 Jim Meyering <meyering@lucent.com>
42693 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
42694 as it was in the original. Reported by Paul Eggert.
42696 2001-07-16 Jim Meyering <meyering@lucent.com>
42698 * m4/gettimeofday.m4: New file.
42699 Prompted by a report from Bernhard Baehr.
42701 2001-07-15 Jim Meyering <meyering@lucent.com>
42703 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
42704 stuff. Now it's in ../Makefile.cfg.
42706 2001-07-15 Jim Meyering <meyering@lucent.com>
42708 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
42709 (BUILT_SOURCES): Add unlocked-io.h.
42710 (io_functions): Define.
42711 (unlocked-io.h): New rule.
42712 (DISTCLEANFILES): Add unlocked-io.h.
42713 (all-local): Depend on unlocked-io.h, to ensure it is created.
42715 * lib/unlocked-io.hin: New file
42717 * lib/regex.c: Update from glibc.
42719 2001-07-05 Jim Meyering <meyering@lucent.com>
42721 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
42723 (libfetish_a_SOURCES): Put all .h files here instead.
42724 Remove a thus-exposed (better checks in automake) duplicate and
42725 two unnecessary .h files.
42727 2001-07-04 Jim Meyering <meyering@lucent.com>
42729 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
42730 that generates jm-glibc-io.m4 so that it doesn't trigger any make
42733 2001-07-02 Jim Meyering <meyering@lucent.com>
42735 The following changes were prompted by suggestions from Bruno Haible.
42737 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
42739 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
42740 definition of EXTRA_DIST.
42741 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
42742 ensure that the generated file is created/updated whenever the list
42743 of $(unlocked_functions) is changed.
42744 (jm-glibc-io.m4): New rule.
42745 (unlocked-io.h): New rule -- currently unused.
42747 2001-06-24 Jim Meyering <meyering@lucent.com>
42749 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
42750 unmatched right bracket, rather than kludging it with an extra,
42751 falsely-matching quote in a comment. Patch by Akim Demaille.
42753 2001-06-11 Jim Meyering <meyering@lucent.com>
42755 * lib/regex.c: Update from GNU libc.
42757 2001-05-27 Jim Meyering <meyering@lucent.com>
42759 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
42760 Check for ut_type in struct utmp.
42762 2001-05-27 Jim Meyering <meyering@lucent.com>
42764 * lib/readutmp.h (UT_TYPE): Define.
42766 2001-05-24 Jim Meyering <meyering@lucent.com>
42768 * lib/argmatch.c: Include "quote.h".
42769 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
42770 quote function. Reported by Göran Uddeborg.
42772 2001-05-22 Jim Meyering <meyering@lucent.com>
42774 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
42775 now that we use the package-supplied version unconditionally.
42776 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
42778 2001-05-21 Jim Meyering <meyering@lucent.com>
42780 * m4/regex.m4: Change a couple backticks to single quotes to avoid
42781 shell syntax errors.
42783 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
42785 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
42787 2001-05-20 Paul Eggert <eggert@twinsun.com>
42789 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
42790 Don't bother to check library strftime, since
42791 we'll be using our own my_strftime function anyway.
42792 Define my_strftime instead of strftime.
42794 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
42796 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
42797 which is not yet declared.
42799 2001-05-15 Jim Meyering <meyering@lucent.com>
42801 * m4/regex.m4: Use proper quoting so brackets appear in the test
42803 Reported by, and with help from, Bruno Haible.
42805 2001-05-13 Jim Meyering <meyering@lucent.com>
42807 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
42810 2001-05-11 Paul Eggert <eggert@twinsun.com>
42812 dirname code cleanup. base_name now behaves more compatibly
42813 with POSIX basename when given file names that have trailing
42814 slashes, and similarly for dir_name. Add new primitives
42815 base_len and dir_len. Put the directory-name-related decls
42818 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
42819 * lib/backupfile.c (base_name): Likewise.
42820 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
42821 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
42822 * lib/makepath.c (strip_trailing_slashes): Likewise.
42823 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
42824 ISSLASH): Likewise.
42825 * lib/rename.c (strip_trailing_slashes): Likewise.
42826 * lib/same.c (base_name): Likewise.
42827 * lib/stripslash.c (ISSLASH): Likewise.
42829 * lib/addext.c: Include <dirname.h> after size_t is defined.
42830 * lib/backupfile.c: Likewise.
42832 * lib/addext.c (addext): Use base_len to trim redundant
42833 trailing slashes instead of doing it ourselves.
42834 But do not trim the last slash if it is not redundant.
42836 * lib/backupfile.c (find_backup_file_name,
42837 max_backup_version): Use base_len instead of rolling it ourselves.
42838 Handle the case of "" and (on DOS) "C:" correctly.
42840 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
42841 needed. Include <string.h>, <dirname.h>.
42842 (base_name): Allow file names ending in slashes, other than names
42843 that are all slashes. In this case, return the basename followed
42844 by the slashes. This is more general, and can be used in places
42845 where the original base_name purposely had an assertion failure.
42846 (base_len): New function.
42848 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
42849 Do not include <assert.h>; no longer needed.
42851 (memrchr): Remove decl.
42852 (dir_name_r): Remove.
42853 (dir_len): Renamed from dirlen. All callers changed.
42854 Rewrite in terms of base_name, for simplicity and consistency.
42855 (dir_name): Never return NULL. All callers changed.
42856 Do not include <stdlib.h> in test program; no longer needed.
42857 return 0; is fine for test program.
42859 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
42861 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
42863 * lib/path-concat.c (path_concat): Use base_len to compute
42864 base length, not strlen; this means we cannot rely on memcpy
42867 * lib/same.c (STREQ): Remove.
42868 (same_name): Handle the case where the basename ends in trailing '/'.
42870 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
42871 a slash was stripped. Do not strip the last slash after a
42872 file system prefix.
42874 2001-05-11 Paul Eggert <eggert@twinsun.com>
42876 * lib/Makefile.am (libfetish_a_SOURCES):
42877 Add strftime.c, since we now compile it on all hosts.
42879 * lib/strftime.c (my_strftime):
42880 Define to nstrftime if emacs, but only if my_strftime is not defined.
42881 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
42882 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
42883 Add one more extra argument: a nanoseconds value.
42886 (my_strftime function): Add %N format.
42887 (emacs_strftimeu): Renamed from emacs_strftime,
42888 with extra ut argument.
42890 2001-05-09 Paul Eggert <eggert@twinsun.com>
42892 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
42894 2001-04-21 Jim Meyering <meyering@lucent.com>
42896 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
42899 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
42901 * m4/ftruncate.m4: Check for chsize.
42902 Link with ftruncate.o unconditionally if ftruncate is missing.
42903 This was required when cross-compiling to i586-mingw32msvc.
42905 2001-04-08 Jim Meyering <meyering@lucent.com>
42907 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
42908 recomputed; that's necessary when the offset spans a DST transition.
42909 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
42911 2001-04-02 Jim Meyering <meyering@lucent.com>
42913 * lib/regex.h, regex.c: Update from GNU libc.
42915 2001-03-24 Jim Meyering <meyering@lucent.com>
42917 * m4/jm-macros.m4: Require autoconf-2.49d.
42919 2001-03-20 Bruno Haible <haible@clisp.cons.org>
42921 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
42923 2001-03-19 Paul Eggert <eggert@twinsun.com>
42925 * lib/version-etc.c (version_etc_copyright): Update to 2001.
42927 2001-03-17 Jim Meyering <meyering@lucent.com>
42929 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
42930 now that the version in autoconf is equivalent.
42931 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
42933 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
42934 Suggestion from Akim Demaille.
42936 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
42937 (jm_PREREQ_TEMPNAME): New function.
42939 2001-03-16 Paul Eggert <eggert@twinsun.com>
42941 * lib/tempname.c (uint64_t): Define to uintmax_t if
42942 not defined, and if UINT64_MAX is not defined.
42943 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
42944 Reported by John David Anglin.
42946 2001-03-15 Bruno Haible <haible@clisp.cons.org>
42948 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
42949 resolve alias if codeset is empty.
42950 * lib/config.charset (BeOS): Use wildcard syntax.
42952 2001-03-13 Jim Meyering <meyering@lucent.com>
42954 * lib/path-concat.c (path_concat)
42955 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
42956 concatenating e.g., `C:' and `foo'.
42959 2001-03-06 Bruno Haible <haible@clisp.cons.org>
42961 * lib/localcharset.c (locale_charset): Don't use
42962 setlocale(LC_CTYPE,NULL). Don't return NULL.
42963 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
42965 2001-03-06 Bruno Haible <haible@clisp.cons.org>
42967 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
42968 support for DOS/DJGPP.
42970 2001-03-01 Paul Eggert <eggert@twinsun.com>
42972 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
42973 lacks mkstemp. Compile our own tempname.c if we compile our own
42974 mkstemp.c, as mkstemp relies on tempname.
42976 2001-03-01 Jim Meyering <meyering@lucent.com>
42978 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
42979 AH_VERBATIM really does output its argument verbatim.
42981 2001-02-28 Paul Eggert <eggert@twinsun.com>
42983 * lib/Makefile.am (libfetish_a_SOURCES):
42984 Add dup-safer.c, fopen-safer.c.
42985 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
42987 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
42988 * lib/unistd-safer.h: New files.
42990 2001-02-25 Paul Eggert <eggert@twinsun.com>
42992 The mkstemp replacement is taken from glibc 2.2.2, with some
42993 portability fixes for use outside glibc, as follows:
42995 * lib/tempname.c (struct_stat64): New macro.
42996 (direxists, __gen_tempname): Use it.
42997 This avoids a portability problem with Solaris 8.
42999 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
43000 (<stddef.h>, <stdint.h>, <string.h>):
43001 Include only if STDC_HEADERS || _LIBC.
43002 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
43003 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
43004 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
43005 (__set_errno): Define this macro if <errno.h> doesn't.
43006 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
43007 Define these macros if <stdio.h> doesn't.
43008 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
43009 Define these macros if <sys/stat.h>
43010 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
43011 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
43012 __xstat64): Define if not _LIBC.
43013 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
43014 (__gen_tempname): Invoke gettimeofday only if
43015 HAVE_GETTIMEOFDAY || _LIBC;
43016 otherwise, fall back on plain "time".
43017 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
43019 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
43021 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
43023 2001-02-18 Paul Eggert <eggert@twinsun.com>
43025 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
43027 2001-02-17 Paul Eggert <eggert@twinsun.com>
43029 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
43030 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
43031 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
43032 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
43034 2001-02-17 Paul Eggert <eggert@twinsun.com>
43036 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
43037 Remove workaround macros for hosts that have mbrtowc but not
43038 mbstate_t, as we now insist on proper declarations for both
43039 before using mbrtowc.
43041 2001-02-17 Jim Meyering <meyering@lucent.com>
43043 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
43044 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
43045 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
43048 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
43049 rather than AC_CACHE_VAL.
43051 2001-02-17 Jim Meyering <meyering@lucent.com>
43053 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
43054 around included file name.
43056 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
43058 * lib/strftime.c: Update from GNU libc (the only changes were to
43061 2001-02-17 Jim Meyering <meyering@lucent.com>
43063 * lib/regex.c: Update from libc.
43065 2001-02-17 Bruno Haible <haible@clisp.cons.org>
43067 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
43070 2001-02-16 Paul Eggert <eggert@twinsun.com>
43072 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
43073 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
43074 Reported by Mark Hounschell via Paul Eggert.
43076 2001-02-07 Jim Meyering <meyering@lucent.com>
43078 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
43080 2001-02-05 Jim Meyering <meyering@lucent.com>
43082 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
43083 it includes the patch required for `large file' support with at least
43084 HP-UX's 10.20 /bin/cc.
43086 2001-02-03 Jim Meyering <meyering@lucent.com>
43088 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
43089 AS_IF, now that it works once again (mysteriously).
43090 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
43092 2001-01-30 Jim Meyering <meyering@lucent.com>
43094 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
43095 * m4/chown.m4: Rename conftestchown to conftest.chown.
43096 * m4/rename.m4: s/conftestdir/conftest.d1/ and
43097 s/conftestdir2/conftest.d2/.
43098 * m4/utimes.m4: s/conftestdata/conftest.data/
43099 Inspired by Pavel Roskin's change in autoconf.
43101 2001-01-30 Bruno Haible <haible@clisp.cons.org>
43103 * lib/config.charset: Update for FreeBSD 4.2.
43105 2001-01-27 Jim Meyering <meyering@lucent.com>
43107 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
43109 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
43111 2001-01-26 Jim Meyering <meyering@lucent.com>
43113 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
43114 quotearg.c includes it.
43116 2001-01-26 Jim Meyering <meyering@lucent.com>
43118 * lib/quotearg.c: Include stddef.h.
43119 * lib/quote.c: Include stddef.h.
43120 Reported by Axel Kittenberger.
43122 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
43123 line in double quotes so that it evokes a better diagnostic.
43124 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
43125 Reported by Axel Kittenberger.
43127 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
43129 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
43130 as if it was a `charset'.
43132 2001-01-21 Bruno Haible <haible@clisp.cons.org>
43134 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
43137 2001-01-21 Bruno Haible <haible@clisp.cons.org>
43139 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
43140 to avoid a warning. Add back 'const' to inptr.
43142 2001-01-20 Jim Meyering <meyering@lucent.com>
43144 Be sure that headers are checked before used in code compiled
43145 for the type checks.
43146 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
43147 In place of that, invoke jm_CHECK_ALL_TYPES.
43148 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
43149 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
43150 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
43151 The check for ssize_t was mistakenly run before the test for unistd.h.
43153 The configure-time check for stdbool.h was missing.
43154 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
43155 (jm_PREREQ_HASH): New function.
43157 2001-01-17 Jim Meyering <meyering@lucent.com>
43159 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
43160 for autoconf-2.49c.
43161 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
43163 2001-01-16 Jim Meyering <meyering@lucent.com>
43165 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
43168 2001-01-14 Jim Meyering <meyering@lucent.com>
43170 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
43171 foo and bar. Create conftestdir/ in the script, not in the C code.
43172 Remove directories in the script, not in the C code.
43173 Remove conftestdir{,2} before trying to create the directory.
43174 Make the entire configure script fail if the mkdir fails.
43176 2001-01-14 Jim Meyering <meyering@lucent.com>
43178 * lib/rename.c: New file. From Volker Borchert.
43179 Include stdlib.h, string.h or strings.h, and xalloc.h.
43180 Use strip_trailing_slashes rather than open-coding it.
43182 2001-01-03 Paul Eggert <eggert@twinsun.com>
43184 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
43186 2001-01-03 Jim Meyering <meyering@lucent.com>
43188 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
43189 of local `inptr' to avoid warning with some system declarations of
43192 2001-01-02 Volker Borchert <bt@teknon.de>
43194 * m4/rename.m4: New file.
43195 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
43197 2001-01-01 Jim Meyering <meyering@lucent.com>
43199 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
43200 even on systems with utmpx.h. It's necessary for the declaration of
43201 utmp's ut_user member. Reported by Andreas Jaeger.
43203 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
43204 available. They are required for the declarations of getgrgid and
43206 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
43207 Reported by Andreas Jaeger.
43209 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
43211 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
43212 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
43213 so `make install' also works in VPATH builds.
43215 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
43217 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
43218 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
43219 can be used in subdirectories.
43221 2000-12-29 Paul Eggert <eggert@twinsun.com>
43223 * lib/modechange.c: Do not assume that mode_t uses the
43224 traditional octal encoding. E.g. "chmod 1 FOO" should set
43225 the other-execute bit of FOO even if S_IXOTH != 1.
43227 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
43228 WOTH, XOTH, ALLM): New macros.
43229 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
43230 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
43232 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
43233 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
43235 No need to use uintmax_t; unsigned long is long enough.
43236 Don't bother to get suffix since we don't use it.
43238 2000-12-26 Jim Meyering <meyering@lucent.com>
43240 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
43241 better with autoheader.
43243 2000-12-24 Jim Meyering <meyering@lucent.com>
43245 * lib/hash.c (is_prime): Return explicit boolean values.
43246 (hash_get_first): Return NULL to appease Irix5.6's 89.
43247 Reported by Nelson Beebe.
43249 2000-12-19 Bruno Haible <haible@clisp.cons.org>
43251 * lib/localcharset.c (locale_charset): Add support for Win32.
43253 2000-12-18 Paul Eggert <eggert@twinsun.com>
43255 * lib/physmem.h, lib/physmem.c: New files.
43257 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
43258 (noinst_HEADERS): Add physmem.h.
43260 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
43261 't' for compatibility with Solaris 8 sort.
43263 2000-12-18 Bruno Haible <haible@clisp.cons.org>
43265 * lib/config.charset: Add support for BeOS.
43267 2000-12-17 Jim Meyering <meyering@lucent.com>
43269 * m4/dos.m4 (jm_AC_DOS): New file and macro.
43270 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
43272 2000-12-16 Jim Meyering <meyering@lucent.com>
43274 This bug had a serious impact on chown: `chown N:M FILE' (for integer
43275 N and M) would have treated it like `chown N:N FILE'.
43277 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
43279 2000-12-16 Jim Meyering <meyering@lucent.com>
43281 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
43282 SHELLS_FILE to a file name that's useful on djgpp systems.
43284 (ADDITIONAL_DEFAULT_SHELLS): Define.
43285 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
43286 Based mostly on a patch from Prashant TR.
43288 2000-12-16 Bruno Haible <haible@clisp.cons.org>
43290 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
43291 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
43292 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
43294 2000-12-08 Andreas Schwab <schwab@suse.de>
43296 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
43297 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
43299 2000-12-07 Jim Meyering <meyering@lucent.com>
43301 * lib/stripslash.c (ISSLASH): Define.
43302 (strip_trailing_slashes): Use ISSLASH rather than comparing against
43306 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
43307 (dir_name_r): Declare this function as static.
43308 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
43309 manifest itself on a name containing a mix of slashes and
43311 Make this function work with names starting with a DOS-style
43312 drive letter and colon prefix.
43313 (dir_name): Append `.' if necessary.
43314 Based mostly on patches from Prashant TR and Eli Zaretskii.
43316 * lib/dirname.h (dir_name_r): Remove prototype.
43318 2000-12-06 Paul Eggert <eggert@twinsun.com>
43320 * m4/off_t-format.m4: Remove this file.
43321 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
43323 2000-12-06 Jim Meyering <meyering@lucent.com>
43325 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
43326 replacement strtoull, we may well need the replacement strtoul, too.
43327 Check for declarations of strtoul and strtoull.
43328 Check for strtol. Mainly as a cue to cause automake to include
43329 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
43330 Check for limits.h -- strtol.c needs it.
43332 2000-12-05 Jim Meyering <meyering@lucent.com>
43334 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
43336 2000-12-04 Jim Meyering <meyering@lucent.com>
43338 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
43339 Also include memory.h, stdlib.h, unistd.h if appropriate.
43340 Reported by Andreas Jaeger (conflicting declaration of malloc).
43342 2000-12-02 Jim Meyering <meyering@lucent.com>
43344 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
43345 * m4/jm-macros.m4 (jm_MACROS): require it.
43347 2000-12-02 Jim Meyering <meyering@lucent.com>
43349 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
43351 2000-12-01 Paul Eggert <eggert@twinsun.com>
43353 * lib/memrchr.c: Include <config.h> before any system include file.
43355 2000-11-30 Jim Meyering <meyering@lucent.com>
43357 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
43359 2000-11-30 Jim Meyering <meyering@lucent.com>
43361 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
43363 2000-11-29 Paul Eggert <eggert@twinsun.com>
43365 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
43367 2000-11-26 Jim Meyering <meyering@lucent.com>
43369 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
43371 2000-11-22 Paul Eggert <eggert@twinsun.com>
43373 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
43374 size of (size_t) -1; it's not portable.
43376 2000-11-17 Jim Meyering <meyering@lucent.com>
43378 * lib/strstr.c: Update from GNU libc.
43380 2000-11-17 Akim Demaille <akim@epita.fr>
43382 * lib/obstack.h: Formatting changes.
43383 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
43384 prevent type checking.
43385 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
43386 cast the value to (void *): assigning a `foo *' to a `void *'
43388 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
43390 2000-11-16 Jim Meyering <meyering@lucent.com>
43392 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
43394 2000-11-11 Jim Meyering <meyering@lucent.com>
43396 * lib/error.c: Add a couple #includes, merging from GNU libc version.
43398 2000-11-10 Jim Meyering <meyering@lucent.com>
43400 * lib/obstack.h: Update from GNU libc.
43401 * lib/obstack.c: Likewise.
43403 2000-11-08 Bruno Haible <haible@clisp.cons.org>
43405 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
43407 2000-11-06 Paul Eggert <eggert@twinsun.com>
43409 * lib/getusershell.c (setusershell): Use rewind rather than
43410 fseek/fseeko, to avoid configuration hassles with fseeko.
43411 Don't bother opening SHELLS_FILE if shellstream is NULL;
43412 it's not necessary.
43414 2000-11-05 Jim Meyering <meyering@lucent.com>
43416 * lib/makepath.h (make_dir): Declare.
43417 * lib/makepath.c (make_dir): Remove `static' attribute.
43420 2000-11-04 Jim Meyering <meyering@lucent.com>
43422 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
43424 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
43426 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
43427 last one in a bucket, advance to the next bucket.
43429 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
43431 * lib/fnmatch.c: Do not comment out all the code if we are using
43432 the GNU C library, because in some cases we are replacing buggy
43433 code in the GNU C library itself.
43435 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
43437 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
43438 (regex_compile): Catch bogus \(\1\).
43440 2000-10-30 Paul Eggert <eggert@twinsun.com>
43442 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
43443 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
43444 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
43446 2000-10-30 Paul Eggert <eggert@twinsun.com>
43448 * lib/error.h, getline.h, modechange.h:
43449 Remove "2000" from Copyright line, as the file hasn't been
43450 changed this year other than in the copyright notice.
43452 * lib/xalloc.h: Add "2000" to Copyright line, as this file
43453 was changed this year.
43455 2000-10-29 Jim Meyering <meyering@lucent.com>
43457 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
43459 * m4/ls-mntd-fs.m4: Likewise
43461 2000-10-29 Jim Meyering <meyering@lucent.com>
43463 * lib/xstat.in: Fix grammar in comment.
43465 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
43467 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
43468 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
43469 doesn't define __restrict_arr.
43471 2000-10-28 Jim Meyering <meyering@lucent.com>
43473 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
43474 (jm_PREREQ_MEMCHR): New function.
43476 2000-10-28 Jim Meyering <meyering@lucent.com>
43478 * lib/memchr.c: Update from libc.
43479 Adjust for portability:
43480 [HAVE_STDLIB_H]: Include stdlib.h.
43481 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
43482 Undef __memchr, too.
43483 [!weak_alias]: Define __memchr to memchr.
43485 * lib/regex.c: Update from libc.
43486 * lib/regex.h: Likewise.
43487 * lib/getopt1.c: Likewise.
43488 * lib/memcmp.c: Likewise.
43490 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
43491 Avoid using fseek, when possible -- it's broken by design.
43492 Patch by Ulrich Drepper.
43494 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
43496 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
43497 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
43498 Giving in to popular pressure to shut up the compiler with casts.
43500 2000-10-26 Jim Meyering <meyering@lucent.com>
43502 * lib/strftime.c: Update from libc.
43504 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
43506 * regex.c: More `unsigned char' -> `re_char' changes.
43507 Also change several `int' into `re_wchar_t'.
43508 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
43509 (PUSH_FAILURE_POINTER): Don't cast any more.
43510 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
43511 We want GCC to complain, since this piece of code makes
43512 re_match non-reentrant, which *should* be fixed.
43513 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
43514 (EXTEND_BUFFER): Use RETALLOC.
43515 (SET_LIST_BIT): Don't cast.
43516 (re_wchar_t): New type.
43517 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
43518 that those two functions will always properly return.
43519 (IMMEDIATE_QUIT_CHECK): Cast to void.
43520 (analyse_first): Use recursion rather than an explicit stack.
43521 (re_compile_fastmap): Can't fail anymore.
43522 (re_search_2): Don't check re_compile_fastmap for failure.
43523 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
43524 Now also sets the new value (passed in a new argument).
43525 (re_match_2_internal): Use it.
43526 Also, use a new var `reg' of type size_t when looping through regs
43527 rather than reuse the inappropriate `mcnt'.
43529 2000-10-25 Jim Meyering <meyering@lucent.com>
43531 * lib/obstack.c: Update from libc.
43533 2000-10-24 Kenichi Handa <handa@etl.go.jp>
43535 * regex.c (regex_compile): Change the way of handling a range from
43536 a char less than 256 to a char not less than 256.
43538 2000-10-24 Andrew Innes <andrewi@gnu.org>
43540 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
43542 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
43543 so that re_search functions only quit when callers expect them to.
43545 2000-10-23 Jim Meyering <meyering@lucent.com>
43547 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
43548 wrong. That set_locale call must not have any side effects.
43551 2000-10-22 Jim Meyering <meyering@lucent.com>
43553 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
43554 [CYCLIC]: Remove now-unused definition.
43556 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
43557 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
43558 Suggestion from Ulrich Drepper.
43560 2000-10-21 Jim Meyering <meyering@lucent.com>
43562 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
43563 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
43564 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
43566 2000-10-21 Jim Meyering <meyering@lucent.com>
43568 * lib/dirname.c (memrchr): Declare if necessary.
43569 (dir_name): Remove the restriction that there be no
43570 trailing slashes. Now, this code skips past them, effectively
43572 [TEST_DIRNAME] (main): New unit tests.
43574 * lib/memrchr.c: New file from GNU libc.
43575 Undef __memrchr, too.
43576 [!weak_alias]: Define __memrchr to memrchr.
43577 Guard weak_alias use with `#ifdef weak_alias'.
43579 2000-10-21 Jim Meyering <meyering@lucent.com>
43581 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
43582 (dir_name): Use dir_name_r.
43583 * lib/dirname.h (dir_name_r): Declare it.
43585 2000-10-17 Jim Meyering <meyering@lucent.com>
43587 * lib/quote.h (PARAMS): Define and use.
43588 Reported by Akim Demaille.
43590 * lib/getopt.c: Update from libc.
43592 2000-10-16 Jim Meyering <meyering@lucent.com>
43594 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
43598 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
43600 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
43602 2000-09-25 Jim Meyering <meyering@lucent.com>
43604 * lib/md5.h (rol): Define (from GnuPG).
43606 * lib/sha.c: Give credit (GnuPG) where due.
43607 (M): Use rol rather than open-coding it.
43608 Add a FIXME comment.
43610 2000-09-21 Jim Meyering <meyering@lucent.com>
43612 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
43613 Reported by Michael Stone.
43615 2000-09-20 Jim Meyering <meyering@lucent.com>
43617 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
43618 (noinst_HEADERS): Add sha.h.
43619 Based on code from Scott G. Miller and from GnuPG.
43621 2000-09-18 Jim Meyering <meyering@lucent.com>
43623 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
43624 LIBS. Otherwise, everyone ends up linking with -lelf for some
43626 Reported by Mike Stone.
43628 2000-09-15 Jim Meyering <meyering@lucent.com>
43630 * lib/regex.c: Update from libc.
43632 2000-09-10 Jim Meyering <meyering@lucent.com>
43634 * lib/getopt.c (_getopt_internal): Update from glibc.
43636 2000-09-09 Jim Meyering <meyering@lucent.com>
43638 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
43639 think it should be used as a general replacement for isascii.
43640 * lib/fnmatch.c: Likewise.
43641 * lib/mbswidth.c: Likewise
43642 * lib/regex.c: Likewise.
43645 * lib/userspec.c: Include sys/param.h and limits.h.
43647 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
43648 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
43649 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
43650 UID, GID. Check range.
43652 2000-09-06 Jim Meyering <meyering@lucent.com>
43654 * lib/getopt.c (_getopt_internal): Update from glibc.
43656 2000-08-30 Jim Meyering <meyering@lucent.com>
43658 * lib/strftime.c: Merge in changes from GNU libc.
43660 2000-08-26 Jim Meyering <meyering@lucent.com>
43662 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
43663 * m4/fpending.m4: New file.
43665 2000-08-26 Jim Meyering <meyering@lucent.com>
43667 * lib/closeout.c: Include "__fpending.h".
43668 (close_stdout_status): Return right away if there's nothing to flush.
43670 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
43671 * lib/__fpending.c: New file.
43672 * lib/__fpending.h: New file.
43674 2000-08-20 Jim Meyering <meyering@lucent.com>
43676 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
43677 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
43678 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
43680 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
43682 Improve fileutils installation on systems where running
43683 programs (like install) can't be unlinked.
43684 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
43685 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
43687 2000-08-07 Paul Eggert <eggert@twinsun.com>
43689 Standardize on "memory exhausted" instead of "Memory exhausted"
43690 or "virtual memory exhausted".
43691 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
43692 "virtual memory exhausted".
43693 * lib/same.c (same_name): Invoke xalloc_die instead of printing
43695 * lib/userspec.c (parse_user_spec): Likewise.
43696 * lib/bumpalloc.h: comment fix
43697 * lib/same.c, userspec.c: Include xalloc.h.
43699 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
43700 not char *const and pointing to a constant array.
43701 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
43702 (xrealloc): Comment fix.
43704 * lib/userspec.c (parse_user_spec):
43705 Don't translate a message until just before returning,
43706 to avoid unnecessary translation.
43708 2000-08-07 Jim Meyering <meyering@lucent.com>
43710 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
43711 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
43712 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
43713 getgroups.c, gethostname.c, getopt.h, group-member.c,
43714 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
43715 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
43716 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
43717 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
43718 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
43719 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
43720 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
43721 yesno.c: Back out Copyright date changes for each file with no change
43722 this year. This eases coordination with other programs using the same
43723 source code modules. From Paul Eggert.
43725 2000-08-06 Paul Eggert <eggert@twinsun.com>
43727 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
43728 not char, for compatibility with glibc 2.1.3 strftime.c.
43730 2000-08-03 Greg McGary <greg@mcgary.org>
43732 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
43733 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
43734 (EXTEND_BUFFER): Use them.
43736 2000-08-01 Jim Meyering <meyering@lucent.com>
43738 * lib/dirname.c (ISSLASH): Define.
43739 (BACKSLASH_IS_PATH_SEPARATOR): Define.
43740 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
43741 both `\' and `/' may be use as path separators.
43742 Based on a patch from Prashant TR.
43744 2000-07-31 Paul Eggert <eggert@twinsun.com>
43746 * lib/quotearg.c (quotearg_n_options): Don't make the initial
43747 slot vector a constant, since it might get modified.
43749 2000-07-31 Jim Meyering <meyering@lucent.com>
43751 * lib/xmalloc.c: Use `virtual memory exhausted', not
43752 `Memory exhausted'.
43753 * lib/obstack.c (print_and_abort): Likewise.
43755 2000-07-30 Paul Eggert <eggert@twinsun.com>
43757 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
43758 buffer, so that the caller can always quote one small
43759 component of a "memory exhausted" message in slot 0.
43760 From a suggestion by Jim Meyering.
43762 2000-07-30 Jim Meyering <meyering@lucent.com>
43764 * lib/makepath.c (make_path): Quote the other instance, too.
43766 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
43767 (STATIC_BUF_SIZE): Define.
43768 (quotearg_n_options): Use only statically allocated storage when
43769 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
43770 than STATIC_BUF_SIZE.
43772 2000-07-29 Jim Meyering <meyering@lucent.com>
43774 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
43775 * lib/dirname.c (dir_name): Likewise.
43777 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
43780 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
43781 (dir_name): Assert that there are no trailing slashes.
43783 2000-07-29 Bruno Haible <haible@clisp.cons.org>
43785 * lib/mbswidth.h (mbswidth): Add a flags argument.
43786 (mbswidth): New declaration.
43787 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
43788 * lib/mbswidth.c (mbswidth): Add a flags argument.
43789 (mbsnwidth): New function.
43791 2000-07-24 Jim Meyering <meyering@lucent.com>
43793 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
43795 2000-07-23 Paul Eggert <eggert@twinsun.com>
43797 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
43799 2000-07-23 Paul Eggert <eggert@twinsun.com>
43801 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
43802 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
43803 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
43804 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
43805 invoke multibyte primitives.
43807 2000-07-23 Paul Eggert <eggert@twinsun.com>
43810 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
43811 so that mbstate_t is always defined.
43813 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
43814 be 1 in at least one GCC installation, and this configuration
43815 error is likely to be common. Ignoring MB_LEN_MAX hurts
43816 performance on hosts that have mbrtowc but have only unibyte
43817 locales, but I assume these hosts are rare.
43819 2000-07-23 Paul Eggert <eggert@twinsun.com>
43821 * lib/mbswidth.c (_XOPEN_SOURCE):
43822 Don't define; this causes problems on Solaris 7.
43823 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
43825 2000-07-23 Jim Meyering <meyering@lucent.com>
43827 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
43828 too: getgrgid, getpwuid, getuid.
43830 2000-07-23 Jim Meyering <meyering@lucent.com>
43832 * lib/basename.c (base_name): Add an assertion.
43834 2000-07-23 Bruno Haible <haible@clisp.cons.org>
43836 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
43837 shadow its mbsinit function.
43839 2000-07-17 Bruno Haible <haible@clisp.cons.org>
43841 * lib/mbswidth.h: New file.
43842 * lib/mbswidth.c: New file.
43843 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
43844 (noinst_HEADERS): Add mbswidth.h.
43846 2000-07-17 Bruno Haible <haible@clisp.cons.org>
43848 * lib/config.charset: Add support for FreeBSD. Improve support for
43851 2000-07-16 Bruno Haible <haible@clisp.cons.org>
43853 * m4/mbswidth.m4: New file.
43854 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
43856 2000-07-15 Jim Meyering <meyering@lucent.com>
43858 * lib/makepath.c: Include quote.h.
43859 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
43860 corresponding argument in a `quote (...)' call.
43861 Give better diagnostics.
43863 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
43864 (noinst_HEADERS): Add quote.h.
43866 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
43867 from tar's src/misc.c.
43868 * lib/quote.h: New file. Prototypes for same.
43870 2000-07-14 Paul Eggert <eggert@twinsun.com>
43872 From a suggestion by Bruno Haible.
43873 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
43874 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
43875 to decide whether to define the BeOS workaround macro;
43876 this adjusts to the change to AC_MBSTATE_T.
43878 2000-07-14 Jim Meyering <meyering@lucent.com>
43880 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
43881 jm_AC_TYPE_UINTMAX_T.
43883 2000-07-13 Paul Eggert <eggert@twinsun.com>
43885 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
43887 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
43888 quotearg_buffer_restyled): Add support for
43889 clocale_quoting_style. Undo previous change to
43890 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
43891 and "{RIGHT QUOTATION MARK}" msgids.
43893 2000-07-10 Paul Eggert <eggert@twinsun.com>
43895 From a suggestion by Bruno Haible.
43896 * m4/mbstate_t.m4 (AC_MBSTATE_T):
43897 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
43898 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
43899 and mbstate_t, to a single-part test that simply defines mbstate_t.
43900 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
43901 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
43903 2000-07-10 Jim Meyering <meyering@lucent.com>
43905 * m4/strerror_r.m4: Mirror the correction made in autoconf.
43907 * m4/gnu-source.m4: Output to confdefs.h directly.
43908 Suggestion from Akim Demaille.
43910 2000-07-09 Paul Eggert <eggert@twinsun.com>
43912 The old behavior of quoting `like this' doesn't look good with
43913 newer, ISO-style fonts. See:
43914 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
43916 Instead, quote "like this" by default. Let the translator
43917 tailor the locale-specific quoting behavior by providing
43918 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
43920 * lib/quotearg.c (N_): New macro.
43921 (gettext_default): New function.
43922 (quotearg_buffer_restyled): Use
43923 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
43924 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
43926 2000-07-09 Jim Meyering <meyering@lucent.com>
43928 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
43929 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
43931 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
43932 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
43934 2000-07-09 Jim Meyering <meyering@lucent.com>
43936 * lib/Most files: Update copyright dates to include 2000.
43938 2000-07-08 Jim Meyering <meyering@lucent.com>
43940 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
43942 (xgethostname): Remove now-unnecessary #ifdef.
43943 Move declaration of `err' into loop where it's used.
43945 2000-07-05 Paul Eggert <eggert@twinsun.com>
43946 and Bruno Haible <haible@clisp.cons.org>
43948 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
43949 only if the test for an object-type mbstate_t fails. This
43950 prevents us from mistakenly reporting that mbstate_t is a
43951 system object type after we "#define mbstate_t int" to work
43954 2000-07-05 Paul Eggert <eggert@twinsun.com>
43955 and Bruno Haible <haible@clisp.cons.org>
43957 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
43959 2000-07-05 Bruno Haible <haible@clisp.cons.org>
43961 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
43963 Include <ctype.h> for use of isalpha.
43965 2000-07-05 Bruno Haible <haible@clisp.cons.org>
43967 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
43968 by allocating a larger buffer. Test the gethostname return value for
43969 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
43970 returns an error and ENAMETOOLONG isn't defined.
43972 2000-07-05 Bruno Haible <haible@clisp.cons.org>
43974 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
43977 2000-07-04 Jim Meyering <meyering@lucent.com>
43979 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
43980 of the deprecated AC_CHECKING.
43982 2000-07-04 Jim Meyering <meyering@lucent.com>
43984 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
43985 Reported by Bruno Haible.
43987 2000-07-04 Jim Meyering <meyering@lucent.com>
43989 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
43990 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
43993 2000-07-03 Paul Eggert <eggert@twinsun.com>
43995 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
43996 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
43998 2000-07-03 Paul Eggert <eggert@twinsun.com>
43999 and Bruno Haible <haible@clisp.cons.org>
44001 * lib/quotearg.c (mbrtowc):
44002 Assign to *pwc, and return 1 only if result is nonzero.
44003 (iswprint): Use ISPRINT when substituting our own mbrtowc.
44005 2000-07-03 Jim Meyering <meyering@lucent.com>
44007 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
44009 2000-07-03 Jim Meyering <meyering@lucent.com>
44011 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
44012 This is necessary to get a definition of e.g., UTMP_FILE on
44016 2000-07-02 Jim Meyering <meyering@lucent.com>
44018 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
44020 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
44021 AC_LIBOBJ(function_name).
44022 * m4/chown.m4: Likewise.
44023 * m4/fnmatch.m4: Likewise.
44024 * m4/ftruncate.m4: Likewise.
44025 * m4/getgroups.m4: Likewise.
44026 * m4/getline.m4: Likewise.
44027 * m4/group-member.m4: Likewise.
44028 * m4/jm-macros.m4: Likewise.
44029 * m4/lstat.m4: Likewise.
44030 * m4/malloc.m4: Likewise.
44031 * m4/memcmp.m4: Likewise.
44032 * m4/nanosleep.m4: Likewise.
44033 * m4/putenv.m4: Likewise.
44034 * m4/realloc.m4: Likewise.
44035 * m4/regex.m4: Likewise.
44036 * m4/stat.m4: Likewise.
44037 * m4/strftime.m4: Likewise.
44039 2000-07-02 Jim Meyering <meyering@lucent.com>
44041 * lib/quotearg.c (mbstate_t): Don't define here.
44043 2000-07-02 Jim Meyering <meyering@lucent.com>
44045 * lib/nanosleep.c (SIGCONT): Define if not already defined.
44047 2000-07-01 Jim Meyering <meyering@lucent.com>
44049 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
44051 2000-07-01 Jim Meyering <meyering@lucent.com>
44053 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
44056 2000-07-01 Bruno Haible <haible@clisp.cons.org>
44058 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
44059 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
44061 2000-07-01 Bruno Haible <haible@clisp.cons.org>
44063 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
44064 per change in ../m4/ls-mntd-fs.m4.
44065 (read_filesystem_list): Ignore symbolic links.
44067 2000-06-29 Jim Meyering <meyering@lucent.com>
44069 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
44070 for declaration of strcmp.
44072 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
44074 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
44075 Avoid warning by casting result to `char *' to remove `const'.
44077 2000-06-28 Jim Meyering <meyering@lucent.com>
44079 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
44080 included by quotearg.c, for which we perform this test. From
44083 2000-06-27 Bruno Haible <haible@clisp.cons.org>
44085 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
44086 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
44087 <utmpx.h> exists, put readutmp.o into LIBOBJS.
44089 2000-06-27 Bruno Haible <haible@clisp.cons.org>
44091 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
44093 2000-06-26 Paul Eggert <eggert@twinsun.com>
44095 savedir now sets errno on failure and invokes xmalloc to get memory.
44096 Fix a couple of other minor bugs while we're at it.
44098 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
44099 (NAMLEN): Remove macro.
44100 (malloc, realloc): Remove decls.
44101 (stpcpy): Likewise.
44102 ("xalloc.h"): Include.
44103 (NAME_SIZE_DEFAULT): New macro.
44104 (savedir): Use xmalloc / xrealloc to allocate memory.
44105 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
44106 Skip "" directory entries.
44107 Use strlen to calculate directory entry length, since the old method
44108 is rarely used these days and isn't worth supporting.
44109 Don't use a pointer after freeing it.
44110 Check for integer overflow when calculating allocation size.
44111 Use memcpy to copy entries, instead of stpcpy.
44112 Set errno properly when returning NULL.
44113 Check for readdir error.
44115 2000-06-26 Jim Meyering <meyering@lucent.com>
44117 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
44119 2000-06-25 Jim Meyering <meyering@lucent.com>
44121 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
44122 Linux header bug when _XOPEN_SOURCE is defined to 500.
44124 2000-06-25 Bruno Haible <haible@clisp.cons.org>
44126 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
44129 2000-06-25 Bruno Haible <haible@clisp.cons.org>
44131 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
44133 Don't include <stdlib.h>. Don't declare malloc, realloc.
44135 2000-06-24 Jim Meyering <meyering@lucent.com>
44137 * m4/strerror_r.m4: Revive this file -- to try out an experimental
44138 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
44139 for which strerror does return char*, but which lacks a conveniently
44140 accessible declaration of the function. If the compile-test says
44141 strerror_r doesn't work, then resort to a `run'-test that works on
44142 BeOS and segfaults on DEC Unix.
44144 2000-06-24 Jim Meyering <meyering@lucent.com>
44146 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
44148 2000-06-23 Paul Eggert <eggert@twinsun.com>
44150 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
44151 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
44153 2000-06-23 Paul Eggert <eggert@twinsun.com>
44155 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
44156 (mbrtowc, mbstate_t): Define substitutes if
44157 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
44158 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
44159 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
44161 2000-06-23 Jim Meyering <meyering@lucent.com>
44163 * m4/afs.m4: Add missing AC_MSG_RESULT.
44164 Reported by Bruno Haible.
44166 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
44167 Suggestion from Bruno Haible.
44169 2000-06-23 Jim Meyering <meyering@lucent.com>
44171 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
44173 2000-06-21 Jim Meyering <meyering@lucent.com>
44175 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
44177 2000-06-21 Jim Meyering <meyering@lucent.com>
44179 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
44180 (noinst_HEADERS): Add getstr.h.
44182 * lib/getline.c (getstr): Move into a separate file.
44183 * lib/getstr.c (getstr): New file, extracted from getline.c, with
44184 the following changes: new parameter, delim2; both delim[12]
44185 parameters have type `int', not `char'. The latter would lose
44186 with 8-bit delimiters.
44187 * lib/getstr.h: New file.
44189 2000-06-21 Bruno Haible <haible@clisp.cons.org>
44191 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
44192 than 1024, return a memory chunk of least possible size, instead
44193 of size PATH_MAX + 2. In the loop, increment the size proportionally.
44194 Use free/xmalloc instead of xrealloc to avoid copying for very long
44197 2000-06-21 Bruno Haible <haible@clisp.cons.org>
44199 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
44202 2000-06-21 Bruno Haible <haible@clisp.cons.org>
44204 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
44205 address, not strdup. Include <stdlib.h> and don't declare free().
44207 2000-06-19 Jim Meyering <meyering@lucent.com>
44209 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
44211 2000-06-18 Jim Meyering <meyering@lucent.com>
44213 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
44215 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
44216 `checking whether...' message to be consistent with that of the
44219 2000-06-18 Jim Meyering <meyering@lucent.com>
44221 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
44222 Besides, these days every porting target provides a mkdir function.
44224 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
44225 needed. (this snippet comes from src/system.h).
44227 2000-06-16 Bruno Haible <haible@clisp.cons.org>
44229 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
44231 2000-06-15 Paul Eggert <eggert@twinsun.com>
44233 * lib/human.c (adjust_value): New function.
44234 (human_readable_inexact): Apply rounding style even when
44235 printing approximate values.
44237 2000-06-14 Paul Eggert <eggert@twinsun.com>
44239 * lib/human.c (human_readable_inexact): Allow an input block
44240 size that is not a multiple of the output block size, and vice versa.
44241 Reported by Piergiorgio Sartor.
44243 2000-06-14 Paul Eggert <eggert@twinsun.com>
44245 * lib/getdate.y (get_date): Apply relative times after time
44246 zone indicator, not before. Reported by Todd A. Jacobs.
44248 2000-06-13 Jim Meyering <meyering@lucent.com>
44250 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
44252 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
44254 2000-06-12 Paul Eggert <eggert@twinsun.com>
44256 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
44258 2000-06-12 Jim Meyering <meyering@lucent.com>
44260 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
44261 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
44263 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
44264 the optional argument, `lib'.
44266 2000-06-08 Jim Meyering <meyering@lucent.com>
44268 * m4/largefile.m4: Remove file (now that it's part of autoconf).
44270 2000-06-04 Paul Eggert <eggert@twinsun.com>
44272 Rewrite largefile configuration so that we don't need to run
44273 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
44274 AC_CANONICAL_HOST in configure.in -- jmm]
44276 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
44277 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
44278 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
44279 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
44280 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
44282 Instead of inspecting the output of getconf, try to compile the
44283 test program without and with the macro definition.
44284 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
44285 for getconf. Instead, check for the needed flags by compiling
44288 2000-06-04 Paul Eggert <eggert@twinsun.com>
44290 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
44292 2000-06-04 Jim Meyering <meyering@lucent.com>
44294 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
44295 SunOS 4.1.4 for which gid_t is an unsigned type.
44297 2000-06-03 Jim Meyering <meyering@lucent.com>
44299 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
44300 now that autoconf requires that.
44302 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
44303 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
44304 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
44306 2000-06-03 Jim Meyering <meyering@lucent.com>
44308 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
44310 2000-06-03 Bruno Haible <haible@clisp.cons.org>
44312 * m4/glibc21.m4: New file.
44313 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
44315 2000-06-03 Bruno Haible <haible@clisp.cons.org>
44317 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
44318 newer, don't install charset.alias.
44319 * lib/config.charset: Change the Linux/glibc rules so they become empty
44320 on glibc-2.1 or newer.
44322 2000-06-02 Jim Meyering <meyering@lucent.com>
44324 * lib/mountlist.c: Back out last change. Instead, do this...
44325 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
44326 me_dummy member using the same `ignore'-testing code.
44327 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
44331 2000-05-29 Jim Meyering <meyering@lucent.com>
44333 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
44334 mounts with the `ignore' attribute. Based on a patch from
44337 2000-05-28 Jim Meyering <meyering@lucent.com>
44339 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
44340 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44341 * m4/stat.m4: Likewise.
44342 * m4/lstat.m4: Likewise.
44343 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
44345 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
44346 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
44348 2000-05-26 Jim Meyering <meyering@lucent.com>
44350 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
44352 2000-05-24 Jim Meyering <meyering@lucent.com>
44354 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
44355 autoconf requires that.
44356 * m4/lib-check.m4: Likewise.
44357 * m4/jm-macros.m4: Likewise.
44358 * m4/strftime.m4: Likewise.
44360 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
44361 AC_CHECK_DECLS, now that autoconf requires that.
44363 2000-05-22 Jim Meyering <meyering@lucent.com>
44365 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44366 * m4/lstat.m4: Likewise.
44368 2000-05-22 Jim Meyering <meyering@lucent.com>
44370 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
44372 2000-05-20 Jim Meyering <meyering@lucent.com>
44374 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
44375 (jm_PREREQ): Use it.
44377 2000-05-18 Jim Meyering <meyering@lucent.com>
44379 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
44380 back, too, since it may have been modified by allocate_entry.
44381 (hash_delete): Rewrite to use neither the assignment operator
44382 nor the comma operator in an if-expression.
44384 2000-05-15 Paul Eggert <eggert@twinsun.com>
44387 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
44388 Remove; no longer needed.
44389 "quotearg.h": Add include.
44390 (file_name): Do not bother to explicitly initialize to NULL; it's less
44391 efficient on some hosts.
44392 (close_stdout_status): Remove test as to whether stdout was already
44393 closed; it breaks for the case "echo x | sort >&-".
44394 Quote file name colons.
44395 Do not assume that _("write error") lacks format strings.
44397 2000-05-15 Jim Meyering <meyering@lucent.com>
44399 * lib/version-etc.c (version_etc_copyright): Update the copyright
44400 string used in all --version output.
44402 2000-05-14 Jim Meyering <meyering@lucent.com>
44404 * lib/closeout.c (close_stdout_set_file_name): New function.
44405 (close_stdout_status): Use new file-scoped global.
44406 Return right away if fstat says the stdout file descriptor is invalid.
44407 * lib/closeout.h (close_stdout_set_file_name): Declare.
44409 2000-05-10 Jim Meyering <meyering@lucent.com>
44411 * lib/closeout.c [default_exit_status]: New file-scoped variable.
44412 (close_stdout_set_status): New function.
44413 * lib/closeout.h (close_stdout_set_status): Declare.
44415 2000-05-09 Jim Meyering <meyering@lucent.com>
44417 * m4/gettext.m4: Rename this...
44418 * m4/libintl.m4: ...to this.
44420 2000-05-08 Jim Meyering <meyering@lucent.com>
44422 * lib/long-options.c: Don't include closeout.h.
44423 (parse_long_options): Don't call close_stdout for --version.
44425 2000-05-06 Paul Eggert <eggert@twinsun.com>
44427 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
44428 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
44429 2.1.3 bug. This avoids a clash when files like regex.c define
44432 2000-05-06 Jim Meyering <meyering@lucent.com>
44434 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
44435 (AC_REPLACE_FUNCS): Add strnlen.
44437 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
44438 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
44440 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
44441 AC_SEARCH_LIBS call for nanosleep.
44442 (LIB_NANOSLEEP): Set and AC_SUBST.
44444 2000-05-06 Jim Meyering <meyering@lucent.com>
44446 * lib/strnlen.c: Undefine __strnlen and strnlen.
44447 [!weak_alias]: Define __strnlen to strnlen.
44449 * lib/atexit.c: New file, from libiberty.
44451 2000-05-06 Jim Meyering <meyering@lucent.com>
44453 * lib/closeout.c (close_stdout_status): Also check for errors on the
44456 2000-05-05 Jim Meyering <meyering@lucent.com>
44458 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
44459 AC_SEARCH_LIBS call for clock_gettime.
44460 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
44462 * m4/search-libs.m4: Update from autoconf.
44464 su doesn't work on Solaris 2.6.
44465 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
44466 <shadow.h>. Reported by Dragos Harabor.
44468 2000-05-05 Bruno Haible <haible@clisp.cons.org>
44470 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
44471 memcpy instead of xmalloc, xrealloc, path_concat.
44472 (locale_charset): Treat empty environment variables as absent.
44473 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
44475 2000-05-04 Jim Meyering <meyering@lucent.com>
44477 * lib/getopt.c: Update from glibc.
44478 * lib/obstack.c: Likewise.
44479 * lib/obstack.h: Likewise.
44480 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
44483 * lib/regex.h: Likewise.
44484 * lib/strndup.c: Likewise.
44485 * lib/strnlen.c: New file, from glibc.
44487 2000-05-03 Jim Meyering <meyering@lucent.com>
44489 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
44491 2000-05-02 Paul Eggert <eggert@twinsun.com>
44493 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
44494 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
44495 compile-time test, rather than inspecting host and OS, to
44496 decide whether to define _LARGEFILE_SOURCE.
44498 2000-05-01 Jim Meyering <meyering@lucent.com>
44500 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
44502 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
44503 Based on a patch from Bruno Haible.
44505 2000-05-01 Jim Meyering <meyering@lucent.com>
44507 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
44509 2000-04-29 Jim Meyering <meyering@lucent.com>
44511 * lib/path-concat.c: Declare strdup only if it's not defined.
44512 * lib/canon-host.c: Likewise.
44514 2000-04-28 Jim Meyering <meyering@lucent.com>
44516 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
44517 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
44518 is included first, then limits.h is included by locale.h by libintl.h.
44519 From John David Anglin.
44521 2000-04-25 Jim Meyering <meyering@lucent.com>
44523 * lib/makepath.c (S_IRWXUGO): Define.
44524 (make_path): Always perform explicit chmod if MODE specifies any
44525 of the `special' permission bits. Prompted by a bug report against
44526 install from Mate Wierdl and Joost van Baal.
44528 2000-04-18 Jim Meyering <meyering@lucent.com>
44530 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
44531 (jm_PREREQ): Use it.
44533 2000-04-18 Jim Meyering <meyering@lucent.com>
44535 * lib/README: New file.
44537 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
44538 getpagesize. For BeOS. Based on a patch from Bruno Haible.
44540 2000-04-17 Jim Meyering <meyering@lucent.com>
44543 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
44544 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
44545 Suggestion from Akim Demaille.
44547 2000-04-17 Jim Meyering <meyering@lucent.com>
44549 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
44550 the definition of it to rpl_strftime also defined-away the system's
44553 2000-04-15 Jim Meyering <meyering@lucent.com>
44555 Use `C' to denote so-called `contiguous' files, the same way
44557 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
44558 (ftypelet): Use S_ISCTG.
44559 From Michael Deutschmann.
44561 2000-04-14 Jim Meyering <meyering@lucent.com>
44563 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
44564 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
44567 2000-04-14 Jim Meyering <meyering@lucent.com>
44569 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
44571 2000-04-13 Jim Meyering <meyering@lucent.com>
44573 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
44574 AH_VERBATIM to insert required #ifndef into config.h.in.
44575 Suggestion from Akim Demaille.
44577 2000-04-12 Jim Meyering <meyering@lucent.com>
44579 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
44580 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
44581 Christian Krackowizer.
44583 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
44584 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
44585 (AC_SYS_LARGEFILE): Require.
44586 (AM_C_PROTOTYPES): Require.
44588 2000-04-08 Jim Meyering <meyering@lucent.com>
44590 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
44591 names don't conflict. Reported by Eli Zaretskii.
44593 2000-04-07 Jim Meyering <meyering@lucent.com>
44595 * lib/putenv.c: Move inclusion of errno.h so it follows that of
44596 sys/types.h, to work around system header problems on AIX 3.2.5.
44599 2000-04-07 Bruno Haible <haible@clisp.cons.org>
44601 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
44602 bug. Deal with the different error behavior of Irix iconv.
44604 2000-04-05 Paul Eggert <eggert@twinsun.com>
44606 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
44607 IRIX if the installer said otherwise.
44609 2000-04-05 Jim Meyering <meyering@lucent.com>
44611 Portability tweaks required for ultrix4.3.
44612 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
44613 (jm_CHECK_DECLS): Add getutent to the list of functions.
44614 (_jm_DECL_HEADERS): Add utmpx.h.
44615 From John David Anglin.
44617 * m4/strftime.m4: Back out the 2000-04-02 change.
44618 Instead of that change, simply undefine putenv in the test program.
44620 2000-04-05 Jim Meyering <meyering@lucent.com>
44622 Portability tweaks required for ultrix4.3.
44623 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
44625 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
44626 * lib/canon-host.c: Declare strdup.
44627 * lib/path-concat.c: Likewise.
44628 From John David Anglin.
44630 2000-04-04 Jim Meyering <meyering@lucent.com>
44632 Be more DOS 8.3-friendly.
44633 * lib/ref-add.sin: Renamed from ref-add.sed.in.
44634 * lib/ref-del.sin: Renamed from ref-del.sed.in.
44635 * lib/Makefile.am: Reflect renaming.
44636 Reported by Eli Zaretskii.
44638 Use a temporary file name that won't clash with `charset.alias'
44639 in the DOS 8.3 name space.
44640 * lib/Makefile.am (charset_tmp): Define.
44641 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
44642 (uninstall-local): Likewise.
44643 Reported by Eli Zaretskii.
44645 2000-04-03 Jim Meyering <meyering@lucent.com>
44647 * m4/gettext.m4: Fix typo in comment.
44649 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
44650 textutils/configure.in). Suggestion from Paul Eggert.
44651 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
44653 2000-04-02 Paul Eggert <eggert@twinsun.com>
44655 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
44656 variable in the shell rather than using putenv, which isn't
44657 portable. This avoids the configure-time inter-test dependency
44658 on the potentially-renamed putenv function.
44660 2000-03-30 Paul Eggert <eggert@twinsun.com>
44662 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
44663 before checking struct stat.st_blksize, so that
44664 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
44666 2000-03-29 Paul Eggert <eggert@twinsun.com>
44668 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
44669 since strftime.c uses HAVE_STRFTIME to decide whether to use
44670 the underlying strftime.
44672 2000-03-29 Paul Eggert <eggert@twinsun.com>
44674 * lib/time/strftime.c (my_strftime): Make sure we call the system
44675 strftime, not ourselves, when invoking the underlying strftime.
44677 2000-03-24 Jim Meyering <meyering@lucent.com>
44679 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
44680 (charset_alias): Define.
44681 (install-exec-local): Factor out common code.
44682 (uninstall-local): Split lines longer than 80.
44683 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
44684 (SUFFIXES): Define.
44685 (.sed.in.sed): New rule. Don't redirect directly to $@.
44686 (CLEANFILES): Add ref-add.sed and ref-del.sed.
44688 2000-03-19 Bruno Haible <haible@clisp.cons.org>
44690 * lib/config.charset: Output a line containing "Packages using this
44692 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
44693 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
44694 ref-del.sed): New rules.
44696 2000-03-17 Jim Meyering <meyering@lucent.com>
44698 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
44699 Otherwise, include <strings.h>
44701 2000-03-17 Bruno Haible <haible@clisp.cons.org>
44703 * lib/unicodeio.c (utf8_wctomb): New function.
44704 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
44705 format instead of in UCS-4 with platform dependent endianness.
44707 2000-03-10 Jim Meyering <meyering@lucent.com>
44709 * m4/lib-check.m4: Look for getspnam in -lgen, too.
44710 From Marco Franzen.
44712 2000-03-07 Paul Eggert <eggert@twinsun.com>
44714 * lib/savedir.c (savedir): Work even if directory size is
44715 negative; this can happen with some screwy NFS configurations.
44717 2000-03-06 Jim Meyering <meyering@lucent.com>
44719 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
44720 if it's NULL (because we ran out of memory). From Bruno Haible.
44722 2000-03-05 Jim Meyering <meyering@lucent.com>
44724 * lib/localcharset.c ("path-concat.h"): Include.
44725 (get_charset_aliases): Use path_concat instead of ANSI string
44728 * lib/unicodeio.h (PARAMS): Define.
44729 Use it to guard prototype.
44731 2000-03-04 Jim Meyering <meyering@lucent.com>
44733 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
44734 for lib/localcharset.c.
44736 2000-03-04 Jim Meyering <meyering@lucent.com>
44738 * lib/Makefile.am (install-exec-local): Create $(libdir) before
44739 installing into it.
44740 (uninstall-local): Uncomment this rule so `make distcheck' works
44743 * lib/unicodeio.c (<errno.h>): Include it.
44744 (errno): Declare if not defined.
44746 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
44748 * lib/config.charset: New version, incorporating remarks from a linux
44749 i18n mailing list. From Bruno Haible.
44751 2000-03-04 Bruno Haible <haible@clisp.cons.org>
44753 * m4/codeset.m4: New file.
44754 * m4/iconv.m4: New file.
44755 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
44757 2000-03-03 Jim Meyering <meyering@lucent.com>
44759 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
44761 2000-03-02 Jim Meyering <meyering@lucent.com>
44763 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
44764 the messages come out on separate lines.
44766 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
44767 rather than jm_CHECK_DECLARATIONS.
44768 * m4/decl.m4: Remove now-unused file.
44770 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
44773 2000-03-02 Jim Meyering <meyering@lucent.com>
44775 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
44777 2000-03-01 Jim Meyering <meyering@lucent.com>
44779 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
44780 * lib/unicodeio.c: Likewise.
44782 2000-03-01 Bruno Haible <haible@clisp.cons.org>
44784 * lib/config.charset: New file.
44785 * lib/localcharset.c: New file.
44786 * lib/unicodeio.h, lib/unicodeio.c: New files.
44787 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
44788 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
44789 (noinst_HEADERS): Add unicodeio.h.
44790 (all-local, install-exec-local, charset.alias): New targets.
44792 2000-02-28 Paul Eggert <eggert@twinsun.com>
44794 * lib/quotearg.c (ALERT_CHAR): New macro.
44795 (quotearg_buffer_restyled): Use it.
44797 2000-02-27 Jim Meyering <meyering@lucent.com>
44799 * m4/check-decl.m4: Add getenv to the list.
44801 2000-02-27 Jim Meyering <meyering@lucent.com>
44803 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
44804 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
44806 * lib/backupfile.c: Guard inclusion of stdlib.h with
44807 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
44808 Declare malloc if needed.
44810 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
44811 `#ifndef HAVE_DECL..'
44812 now that autoconf always defines the HAVE_DECL_ symbols.
44813 * lib/human.c: Likewise.
44814 * lib/same.c: Likewise.
44815 * lib/strtoumax.c: Likewise.
44817 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
44818 declaration check was not run.
44819 * lib/hash.c: Likewise.
44820 * lib/human.c: Likewise.
44821 * lib/same.c: Likewise.
44822 * lib/strtoumax.c: Likewise.
44824 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
44825 `.', then first look up the entire `.'-containing string as a login
44828 2000-02-23 Jim Meyering <meyering@lucent.com>
44830 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
44831 in place of my hack.
44833 2000-02-18 Paul Eggert <eggert@twinsun.com>
44835 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
44836 (textint): New typedef.
44837 (parser_control): Member year changed from int to textint.
44839 (YYSTYPE): Removed; replaced by %union with int and textint members.
44840 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
44841 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
44842 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
44843 (tSNUMBER, tUNUMBER): Now of type <textintval>.
44844 (date, number, to_year): Use width of number in digits, not its value,
44845 to determine whether it's a 2-digit year, or a 2-digit time.
44846 (yylex): Store number of digits of numeric tokens.
44847 Reported by John Kendall.
44849 (parser_control): Changed from struct parser_control to typedef (for
44850 consistency). All uses changed.
44852 (tID): Removed; not used.
44853 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
44855 2000-02-14 Paul Eggert <eggert@twinsun.com>
44857 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
44858 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
44860 2000-02-12 Jim Meyering <meyering@lucent.com>
44862 * lib/userspec.c (ISDIGIT): Define it.
44863 (isdigit): Remove definition.
44864 (is_number): Use ISDIGIT, not isdigit.
44865 <libintl.h>: Include.
44866 (_ and N_): Define.
44867 (parse_user_spec): Mark translatable strings.
44869 2000-02-10 Jim Meyering <meyering@lucent.com>
44871 With these changes, nanosleep.[ch] are finally enough like the other
44872 lib/* replacement files to compile on a few more losing systems.
44874 * lib/nanosleep.h: Don't include config.h.
44875 Remove prototype from declaration of nanosleep.
44876 (PARAMS): Remove now-unneeded definition.
44877 * lib/nanosleep.c: #undef nanosleep.
44878 (rpl_nanosleep): Rename from nanosleep.
44880 2000-02-10 Jim Meyering <meyering@lucent.com>
44882 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
44883 gnu_nanosleep to rpl_nanosleep.
44885 2000-02-09 Jim Meyering <meyering@lucent.com>
44887 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
44888 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
44890 2000-02-08 Akim Demaille <akim@epita.fr>
44892 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
44893 `[' and `]' and remove uses of `changequote'.
44894 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
44895 (AC_SYS_LARGEFILE): Likewise.
44896 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44897 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
44899 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
44900 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
44901 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
44902 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
44904 2000-02-05 Jim Meyering <meyering@lucent.com>
44906 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
44907 Remove explicit use of AC_HEADER_TIME. It is required by
44908 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
44909 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
44910 in autoconf whereby the expansion of the latter ended up preceding
44911 the expansion of its prerequisite, AC_HEADER_TIME.
44912 Reported by Volker Borchert.
44914 2000-02-03 Jim Meyering <meyering@lucent.com>
44916 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
44918 2000-02-03 Jim Meyering <meyering@lucent.com>
44920 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
44921 rather than with `#if HAVE_UTMPNAME'.
44923 2000-02-02 Jim Meyering <meyering@lucent.com>
44925 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
44926 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
44927 Reported by Eli Zaretskii.
44929 2000-02-01 Jim Meyering <meyering@lucent.com>
44931 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
44933 2000-01-31 Jim Meyering <meyering@lucent.com>
44935 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
44936 functions. Add the time.h and sys/time.h headers along with the
44937 AC_REQUIRE'ment of AC_HEADER_TIME.
44939 2000-01-31 Jim Meyering <meyering@lucent.com>
44941 * lib/nanosleep.h (nanosleep): Guard declaration with
44942 `#if ! HAVE_DECL_NANOSLEEP'.
44943 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
44944 the declaration in that vendor's sys/timers.h.
44945 Reported by Christian Krackowizer.
44947 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
44948 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
44949 (ISPRINT): Likewise.
44950 Reported by Tom Tromey.
44952 2000-01-30 Jim Meyering <meyering@lucent.com>
44954 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
44956 * m4/prereq.m4 (utmp_includes): Define.
44957 Check for ut_user and ut_name members in both struct utmpx
44960 2000-01-30 Jim Meyering <meyering@lucent.com>
44962 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
44963 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
44964 header files where only utmpx.ut_user is declared.
44966 * lib/readutmp.h (UT_USER): Define.
44968 2000-01-29 Jim Meyering <meyering@lucent.com>
44970 * m4/lib-check.m4: New file containing library-related checks from
44971 fileutils and sh-utils (textutils had none).
44973 2000-01-28 Jim Meyering <meyering@lucent.com>
44975 * m4/perl.m4: Change format of warning message to look more like that
44976 from the missing script. Suggestion from François Pinard.
44978 2000-01-25 Jim Meyering <meyering@lucent.com>
44980 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
44981 well as time.h in the compile check.
44982 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
44983 Fix typo in cross-compiling case: s/yes/no/.
44985 2000-01-23 Jim Meyering <meyering@lucent.com>
44987 * m4/jm-macros.m4: Move df-related tests here from
44988 fileutils/configure.in
44990 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
44991 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
44993 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
44994 s/space/ac_fsusage_space/.
44995 (jm_FILE_SYSTEM_USAGE): Take two parameters.
44997 * m4/ftruncate.m4: New file (derived from part of
44998 fileutils/configure.in).
44999 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
45000 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
45002 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
45003 AC_SUBST these here, rather than just in sh-util/configure.in, so
45004 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
45006 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
45007 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
45008 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
45009 (AC_SUBST(POW_LIBM)): Likewise.
45010 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
45012 2000-01-23 Jim Meyering <meyering@lucent.com>
45014 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
45017 2000-01-22 Jim Meyering <meyering@lucent.com>
45019 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
45021 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
45023 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
45025 (AC_CHECK_HEADERS): Likewise for sh-utils.
45026 (AC_CHECK_HEADERS): Likewise for textutils.
45027 Merge the three lists of headers.
45029 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
45030 from fileutils' configure.in.
45032 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
45033 code. Moved tests into their own function (_jm_DECL_HEADERS) in
45036 * m4/check-decl.m4: Use #if rather than #ifdef.
45037 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
45038 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
45039 (_jm_DECL_HEADERS): Define new function.
45040 (jm_CHECK_DECLARATIONS): Require it.
45042 2000-01-22 Jim Meyering <meyering@lucent.com>
45044 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
45045 [! HAVE_DECL_STRTOULL]: Declare strtoull.
45046 Required for some AIX systems. Reported by Christian Krackowizer.
45047 [TESTING] (main): New function.
45049 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
45050 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
45053 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
45056 * lib/strverscmp.c (ISDIGIT): Define.
45057 (strverscmp): Use ISDIGIT, not isdigit.
45059 2000-01-19 Jim Meyering <meyering@lucent.com>
45061 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
45062 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
45063 defines `struct timespec' in <sys/time.h>
45065 * m4/c-bs-a.m4: Remove uses of changequote altogether.
45066 Thanks to Akim for explaining.
45068 2000-01-17 Paul Eggert <eggert@twinsun.com>
45070 * lib/nanosleep.c (nanosleep):
45071 Don't use SA_INTERRUPT to decide whether to call sigaction, as
45072 POSIX.1 doesn't require SA_INTERRUPT and some systems
45073 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
45074 it's been part of POSIX.1 since day 1 (in 1988).
45076 2000-01-17 Jim Meyering <meyering@lucent.com>
45078 * lib/interlock: Remove unused file. Reported by François Pinard.
45080 2000-01-16 Paul Eggert <eggert@twinsun.com>
45082 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
45083 alert, backslash, formfeed, and vertical tab unnecessarily in
45084 shell quoting style.
45086 2000-01-16 Jim Meyering <meyering@lucent.com>
45088 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
45089 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
45090 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
45091 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
45093 2000-01-16 Jim Meyering <meyering@lucent.com>
45095 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
45096 because the latter didn't work.
45098 2000-01-15 Jim Meyering <meyering@lucent.com>
45100 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
45101 (AC_REPLACE_FUNCS): Add memcpy and memset.
45102 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
45104 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
45106 2000-01-12 Jim Meyering <meyering@lucent.com>
45108 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
45109 (jm_PREREQ): Use it.
45110 (jm_PREREQ_READUTMP): New macro.
45111 (jm_PREREQ): Use it.
45113 2000-01-11 Paul Eggert <eggert@twinsun.com>
45115 Quote multibyte characters correctly.
45116 * m4/c-bs-a.m4: New file.
45117 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
45118 (jm_PREREQ): Use it.
45120 2000-01-11 Paul Eggert <eggert@twinsun.com>
45122 * m4/uintmax_t.m4: Port to autoconf 2.13.
45124 2000-01-08 Jim Meyering <meyering@ascend.com>
45126 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
45127 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
45129 2000-01-04 Jim Meyering <meyering@ascend.com>
45131 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
45132 jm_STRUCT_DIRENT_D_TYPE.
45133 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
45134 jm_STRUCT_DIRENT_D_INO.
45135 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
45137 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
45139 * m4/utime.m4: Likewise.
45141 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
45142 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
45144 2000-01-03 Paul Eggert <eggert@twinsun.com>
45146 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
45147 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
45149 2000-01-02 Jim Meyering <meyering@ascend.com>
45151 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
45152 remember if this is necessary.
45154 1999-12-26 Jim Meyering <meyering@ascend.com>
45156 * m4/jm-macros.m4: Use it here.
45157 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
45159 1999-12-23 Jim Meyering <meyering@ascend.com>
45161 * m4/jm-macros.m4: Check for clock_gettime (moved from
45162 fileutils/configure.in)
45163 Check for gettimeofday.
45165 1999-12-20 Jim Meyering <meyering@ascend.com>
45167 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
45168 autoconf-2.14a-1999-12-20.
45170 1999-12-19 Jim Meyering <meyering@ascend.com>
45172 * m4/lstat-slash.m4: New file.
45173 * m4/jm-macros.m4: Use the new macro:
45174 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45176 1999-12-07 Jim Meyering <meyering@ascend.com>
45178 * m4/perl.m4: Require that File::Compare be available, too.
45179 Too many systems seem to lack it.
45181 * m4/strftime.m4: Add checks for most of the cpp macros tested in
45182 GNU's strftime.c. Prompted by a patch from Paul Eggert.
45184 1999-11-18 Paul Eggert <eggert@twinsun.com>
45186 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
45187 problem with the QNX 4.25 shell, which doesn't propagate exit
45188 status of failed commands inside shell assignments.
45190 1999-11-17 Jim Meyering <meyering@ascend.com>
45192 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
45194 1999-11-07 Jim Meyering <meyering@ascend.com>
45196 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
45198 1999-11-06 Jim Meyering <meyering@ascend.com>
45200 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
45201 * m4/jm-macros.m4 (jm_MACROS): Use it here.
45203 1999-11-05 Jim Meyering <meyering@ascend.com>
45205 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
45206 configure.in of textutils, fileutils, and sh-utils into this one
45207 (shared between those packages) file.
45208 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
45209 AC_STRUCT_ST_BLKSIZE.
45211 1999-11-03 Jim Meyering <meyering@ascend.com>
45213 * m4/ssize_t.m4: Remove file. No longer needed since the new version
45214 of AC_CHECK_TYPE checks includes unistd.h.
45215 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
45216 Suggestion from Akim Demaille.
45218 1999-10-30 Jim Meyering <meyering@ascend.com>
45220 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
45222 * m4/ls-mntd-fs.m4: Likewise.
45223 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
45224 * m4/jm-winsz1.m4: Likewise.
45226 * m4/const.m4: Remove file, since the fix made it into the experimental
45227 version of autoconf.
45228 * m4/mktime.m4: Likewise.
45230 * m4/check-type.m4: Remove file, now that the latest version of
45231 AC_CHECK_TYPE takes a third arg to specify additional #includes.
45233 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
45234 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
45237 1999-10-04 Jim Meyering <meyering@ascend.com>
45239 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
45241 1999-09-22 Paul Eggert <eggert@twinsun.com>
45243 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
45244 2.95.1 bug with HP-UX 10.20.
45246 1999-09-17 Jim Meyering <meyering@ascend.com>
45248 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
45249 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
45250 due to missing strdup (against sh-utils-2.0).
45252 1999-08-29 Jim Meyering <meyering@ascend.com>
45254 * m4/jm-macros.m4: Require jm_BISON.
45255 * m4/bison.m4: New file.
45257 1999-08-17 Paul Eggert <eggert@twinsun.com>
45259 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
45260 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
45262 1999-08-05 Jim Meyering <meyering@ascend.com>
45264 * m4/getline.m4: Rename test file from conftestdata to conftest.data
45265 to avoid conflicts with `conftest' on 8+3 filesystems.
45266 Suggestion from Eli Zaretskii.
45268 1999-08-04 Jim Meyering <meyering@ascend.com>
45270 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
45271 fileutils and sh-utils (textutils's getline test was inadequate).
45272 (AM_FUNC_GETLINE): Run this test.
45273 (AC_CHECK_FUNCS): Check for getdelim.
45274 Reported by Bob Proulx.
45276 1999-08-02 Jim Meyering <meyering@ascend.com>
45278 * m4/jm-macros.m4: Add a comment.
45280 1999-08-01 Paul Eggert <eggert@twinsun.com>
45282 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
45283 <inttypes.h> defines strtoumax as a macro (and not as a
45286 1999-08-01 Paul Eggert <eggert@twinsun.com>
45288 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
45289 that we can shift, multiply and divide unsigned long long
45290 values; Ultrix cc can't do it.
45292 1999-08-01 Paul Eggert <eggert@twinsun.com>
45294 * m4/mktime.m4: New file, which is a preview of what should appear
45295 in the next public autoconf release.
45297 1999-08-01 Paul Eggert <eggert@twinsun.com>
45299 * m4/lfs.m4: Remove this file.
45300 * m4/largefile.m4: New file. It contains the old contents of
45301 lfs.m4, except that all names with prefix AC_LFS have been
45302 changed to use the prefix AC_SYS_LARGEFILE instead, to be
45303 compatible with future autoconf versions. Also, some minor m4
45304 quoting problems have been fixed.
45306 1999-08-01 Paul Eggert <eggert@twinsun.com>
45308 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
45309 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
45310 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
45311 and simplify the shell code.
45313 1999-08-01 Jim Meyering <meyering@ascend.com>
45315 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
45318 1999-07-20 Jim Meyering <meyering@ascend.com>
45320 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
45322 1999-07-15 Jim Meyering <meyering@ascend.com>
45324 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
45326 1999-05-22 Jim Meyering <meyering@ascend.com>
45328 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
45330 1999-05-20 Jim Meyering <meyering@ascend.com>
45332 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
45333 Add a colon after each `then' in case $4 is empty.
45335 1999-05-16 Jim Meyering <meyering@ascend.com>
45337 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
45339 1999-05-10 Jim Meyering <meyering@ascend.com>
45341 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
45343 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
45346 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
45348 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
45350 1999-05-04 Paul Eggert <eggert@twinsun.com>
45352 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
45353 not CPPFLAGS, so that linking works correctly in IRIX.
45355 1999-04-30 Paul Eggert <eggert@twinsun.com>
45357 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
45359 1999-04-20 Paul Eggert <eggert@twinsun.com>
45361 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
45362 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
45363 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
45364 jm_AC_TYPE_UNSIGNED_LONG_LONG.
45365 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
45367 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
45369 1999-04-20 Jim Meyering <meyering@ascend.com>
45371 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
45372 AC_REPLACE xstroull if necessary. From Paul Eggert.
45373 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
45375 1999-04-18 Jim Meyering <meyering@ascend.com>
45377 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
45378 * m4/jm-macros.m4: Use it.
45380 1999-04-06 Jim Meyering <meyering@ascend.com>
45382 * m4/strftime.m4: Remove test for %f.
45384 1999-03-29 Jim Meyering <meyering@ascend.com>
45386 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
45387 superset of the AC_TYPE_* checks in the textutils, fileutils,
45388 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
45391 1999-03-28 Jim Meyering <meyering@ascend.com>
45393 * m4/jm-macros.m4: Define GNU_PACKAGE here.
45394 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
45395 replaced e.g., in the *.sh files of the sh-utils.
45397 1999-03-20 Jim Meyering <meyering@ascend.com>
45399 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
45400 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
45401 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
45403 1999-03-19 Jim Meyering <meyering@ascend.com>
45405 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
45407 1999-03-12 Jim Meyering <meyering@ascend.com>
45409 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
45411 1999-03-07 Jim Meyering <meyering@ascend.com>
45413 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
45416 1999-02-17 Jim Meyering <meyering@ascend.com>
45418 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
45419 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
45421 1999-02-07 Jim Meyering <meyering@ascend.com>
45423 * m4/group-member.m4: New file -- extracted from sh-utils'
45426 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
45427 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
45429 1999-02-06 Jim Meyering <meyering@ascend.com>
45431 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
45432 * m4/fnmatch.m4: Likewise.
45433 * m4/getgroups.m4: Likewise.
45434 * m4/lstat.m4: Likewise.
45435 * m4/malloc.m4: Likewise.
45436 * m4/putenv.m4: Likewise.
45437 * m4/realloc.m4: Likewise.
45438 * m4/regex.m4: Likewise.
45439 * m4/stat.m4: Likewise.
45440 * m4/strftime.m4: Likewise.
45441 Suggestion from Alain Magloire.
45443 * m4/chown.m4: Use `.$ac_objext', not `.o'.
45444 * m4/fnmatch.m4: Likewise.
45445 * m4/getgroups.m4: Likewise.
45446 * m4/getline.m4: Likewise.
45447 * m4/lstat.m4: Likewise.
45448 * m4/malloc.m4: Likewise.
45449 * m4/memcmp.m4: Likewise.
45450 * m4/putenv.m4: Likewise.
45451 * m4/realloc.m4: Likewise.
45452 * m4/regex.m4: Likewise.
45453 * m4/stat.m4: Likewise.
45454 * m4/strftime.m4: Likewise.
45455 Suggestion from Alain Magloire.
45457 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
45460 * m4/regex.m4: Add a run-time Test for proper operation of
45461 re_compile_pattern.
45463 1999-01-31 Jim Meyering <meyering@ascend.com>
45465 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
45467 1999-01-30 Jim Meyering <meyering@ascend.com>
45469 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
45471 * m4/jm-mktime.m4: Make this a wrapper around the official
45472 AM_FUNC_MKTIME rather than my private copy, now that the official one
45474 * m4/mktime.m4: Remove file.
45476 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
45477 * m4/uptime.m4: Likewise.
45478 * m4/uintmax_t.m4: Likewise.
45480 1999-01-28 Jim Meyering <meyering@ascend.com>
45482 * m4/jm-macros.m4: Use jm_AFS.
45483 * m4/afs.m4: New file (from fileutils' configure.in).
45485 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
45486 * m4/chown.m4: Likewise.
45487 * m4/d-ino.m4: Likewise.
45488 * m4/d-type.m4: Likewise.
45489 * m4/fnmatch.m4: Likewise.
45490 * m4/getgroups.m4: Likewise.
45491 * m4/gettext.m4: Likewise.
45492 * m4/jm-mktime.m4: Likewise.
45493 * m4/jm-winsz2.m4: Likewise.
45494 * m4/lcmessage.m4: Likewise.
45495 * m4/ls-mntd-fs.m4: Likewise.
45496 * m4/malloc.m4: Likewise.
45497 * m4/memcmp.m4: Likewise.
45498 * m4/putenv.m4: Likewise.
45499 * m4/realloc.m4: Likewise.
45500 * m4/st_mtim.m4: Likewise.
45501 * m4/strftime.m4: Likewise.
45503 1999-01-16 Jim Meyering <meyering@ascend.com>
45505 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
45506 (ARGMATCH_DIE_DECL): Define.
45508 1999-01-12 Jim Meyering <meyering@ascend.com>
45510 * m4/Makefile.am.in: Rewrite to avoid using fmt.
45511 Reported by Lars Hecking.
45513 1999-01-10 Jim Meyering <meyering@ascend.com>
45515 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
45517 * m4/inttypes_h.m4: Likewise.
45518 * m4/lstat.m4: Likewise.
45519 * m4/malloc.m4: Likewise.
45520 * m4/readdir.m4: Likewise.
45521 * m4/realloc.m4: Likewise.
45522 * m4/st_dm_mode.m4: Likewise.
45523 * m4/stat.m4: Likewise.
45524 * m4/utimbuf.m4: Likewise.
45525 * m4/utimes.m4: Likewise.
45527 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
45528 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
45529 comments in config.h.in are meaningful.
45531 * m4/jm-macros.m4: Require autoconf-2.13 here.
45533 * m4/regex.m4: By default, don't use the included regex.c on systems
45534 with glibc 2. Suggestion from Uli Drepper.
45536 1999-01-02 Jim Meyering <meyering@ascend.com>
45538 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
45540 1998-12-18 Jim Meyering <meyering@ascend.com>
45542 * m4/Makefile.am.in (Makefile.am): Simplify rule.
45543 Based on a suggestion from Lars Hecking.
45545 1998-11-16 Paul Eggert <eggert@twinsun.com>
45547 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
45549 1998-11-16 Jim Meyering <meyering@ascend.com>
45551 * m4/lfs.m4: Double-quote the `uname...` expression.
45553 1998-11-14 Jim Meyering <meyering@ascend.com>
45555 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
45556 * m4/stat.m4: Likewise.
45558 1998-11-03 Jim Meyering <meyering@ascend.com>
45560 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
45561 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
45563 1998-10-18 Jim Meyering <meyering@ascend.com>
45565 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
45567 1998-10-17 Jim Meyering <meyering@ascend.com>
45569 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
45570 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
45571 calls for those previously hard-coded headers. Instead, take a new
45573 (jm_CHECK_DECLARATIONS): Reflect interface change.
45574 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
45575 (jm_CHECK_DECL_LOCALTIME_R): New macro.
45577 * m4/mktime.m4: Test for spring-forward gap before long-running test.
45579 1998-10-14 Jim Meyering <meyering@ascend.com>
45581 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
45582 instead of "TZ=America/Vancouver". From Paul Eggert.
45584 1998-10-11 Jim Meyering <meyering@ascend.com>
45586 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
45587 This adds a test for a recently added compatibility fix for mktime.c.
45588 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
45590 1998-09-27 Jim Meyering <meyering@ascend.com>
45592 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
45594 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
45595 ../configure.in, including a change from Gordon Matzigkeit to allow
45596 cross-compiling for the Hurd.
45598 * m4/glibc.m4: New file/macro to test for the GNU C Library
45599 versions 1 and 2. From Gordon Matzigkeit.
45602 1998-09-21 Jim Meyering <meyering@ascend.com>
45604 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
45606 1998-08-18 Paul Eggert <eggert@twinsun.com>
45608 Port nanosecond-resolution times to UnixWare 2.1.2 and
45609 pedantic Solaris 2.6.
45611 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
45613 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
45614 Generate name of ns member, instead of just 1 or undef.
45615 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
45617 1998-08-15 Jim Meyering <meyering@ascend.com>
45619 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
45620 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
45621 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
45622 instead of jm_TYPE_SSIZE_T.
45624 1998-08-12 Jim Meyering <meyering@ascend.com>
45626 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
45628 1998-08-02 Jim Meyering <meyering@ascend.com>
45630 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
45631 in acconfig.h manually.
45633 1998-07-31 Paul Eggert <eggert@twinsun.com>
45635 * m4/st_mtim.m4: New file.
45637 1998-07-28 Jim Meyering <meyering@ascend.com>
45639 * m4/utimes.m4: Undef stat.
45641 1998-07-25 Jim Meyering <meyering@ascend.com>
45643 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
45644 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
45646 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
45648 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
45649 uid and gid actually remain unchanged.
45651 1998-07-07 Jim Meyering <meyering@ascend.com>
45653 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
45655 1998-07-04 Jim Meyering <meyering@ascend.com>
45657 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
45658 to prove that this macro can be used in packages without regex.c.
45660 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
45662 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
45665 1998-07-03 Jim Meyering <meyering@ascend.com>
45667 * m4/gettext.m4: Add -lintl if it's found to be necessary.
45669 * m4/gettext.m4: New file -- from gettext-0.10.35.
45670 * m4/lcmessage.m4: Likewise.
45671 * m4/progtest.m4: Likewise.
45673 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
45674 * m4/jm-macros.m4: Require the new macro.
45676 1998-06-29 Jim Meyering <meyering@ascend.com>
45678 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
45679 for the definition of NGROUPS (used in a system header included
45682 1998-06-28 Jim Meyering <meyering@ascend.com>
45684 * m4/ls-mntd-fs.m4: New file.
45685 * m4/fstypename.m4: New file.
45687 * m4/jm-macros.m4: Require the new macro.
45688 * m4/jm-glibc-io.m4: New file.
45690 1998-05-19 Jim Meyering <meyering@ascend.com>
45692 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
45693 * m4/lchown.m4: New file.
45695 * m4/Makefile.am.in: New file.
45696 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
45698 1998-05-14 Jim Meyering <meyering@ascend.com>
45700 * m4/Makefile.am (EXTRA_DIST): Add them.
45701 * m4/jm-macros.m4: New file.
45702 * m4/utimbuf.m4: New file.
45704 1998-05-12 Jim Meyering <meyering@ascend.com>
45706 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
45708 1998-05-11 Jim Meyering <meyering@ascend.com>
45710 * m4/isc-posix.m4: New file.
45712 1998-05-10 Jim Meyering <meyering@ascend.com>
45714 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
45716 1998-05-09 Jim Meyering <meyering@ascend.com>
45718 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
45719 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
45722 * m4/ssize_t.m4: New file.
45723 * m4/mktime.m4: Remove file -- the new automake has this now.
45725 1998-04-26 Jim Meyering <meyering@ascend.com>
45727 * m4/assert.m4: New file.
45728 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
45730 1998-04-05 Jim Meyering <meyering@ascend.com>
45732 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
45733 (jm_PREREQ): Use it here.
45735 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
45737 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
45740 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
45742 * m4/prereq.m4: New file.
45743 * m4/error.m4: New file.
45744 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
45746 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
45748 * m4/getline.m4: Don't set am_cv_func_working_getline before the
45749 cache-check for the same variable -- that defeated the purpose of
45750 the test; the test program was never run. This was a problem only
45751 on systems with losing getline functions -- HP-UX 10.20 is one.
45752 Reported by Bjorn Helgaas.
45754 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
45756 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
45758 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
45760 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
45762 * m4/const.m4: New file. Use an initializer in this declaration
45763 typedef int charset[2]; const charset x;
45764 Reported by Bob Glickstein.
45766 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
45768 * m4/chown.m4: Fix reversed types on -1 args to chown.
45771 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
45773 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
45774 Add lseek and memchr.
45776 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
45777 T.E.Dickey <dickey@clark.net> said that some older preprocessors
45778 have a 20-character limit on names.
45780 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
45782 * m4/inttypes_h.m4: New file.
45783 * m4/uintmax_t.m4: New file.
45784 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
45793 Copyright (C) 1997-2008 Free Software Foundation, Inc.
45795 Copying and distribution of this file, with or without
45796 modification, are permitted provided the copyright notice
45797 and this notice are preserved.