1 2009-10-02 Eric Blake <ebb9@byu.net>
3 rename-tests: new test, exposes several platform bugs
4 * modules/rename-tests: New file.
5 * tests/test-rename.h: Likewise.
6 * tests/test-rename.c: Likewise.
7 * doc/posix-functions/rename.texi (rename): Improve documentation,
8 including bugs that will eventually be fixed in gnulib.
10 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
12 * lib/uname.c: Include <stdlib.h>
13 (uname): Assume version info is available.
15 2009-10-02 Jim Meyering <meyering@redhat.com>
17 gnu-web-doc-update: correct --help output
18 * build-aux/gnu-web-doc-update: Make --help output relevant.
20 gnu-web-doc-update: add standard options
21 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
23 gnu-web-doc-update: New module.
24 Use this script to automatically update the on-line web documentation
25 for your GNU project at http://www.gnu.org/software/$pkg/manual/
26 * modules/gnu-web-doc-update: New file, from coreutils.
27 * build-aux/gnu-web-doc-update: New script.
29 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
31 link: LoadLibrary is not needed.
32 * lib/link.c: Use GetModuleHandle.
34 2009-10-01 Eric Blake <ebb9@byu.net>
36 getopt: bump serial number
37 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
40 tests: tighten link, rmdir, and remove tests
41 * tests/test-link.h (includes): No need to use <config.h> here.
42 Clean up if directory hard link was created, otherwise test for
44 * tests/test-linkat.c (main): Simplify.
45 * tests/test-remove.c (main): Enhance test for trailing '.'.
46 * tests/test-rmdir.h (test_rmdir_func): Likewise.
48 2009-10-01 Jim Meyering <meyering@redhat.com>
50 maint.mk: requiring "make major" was annoying, for a "minor" release.
51 What is intended is "stable", to contrast with alpha and beta,
52 so require "make stable", not "make major".
53 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
54 (get_tool_versions): Likewise.
55 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
57 2009-09-30 Ben Pfaff <blp@gnu.org>
59 Fix broken build of replacement for Windows tmpfile().
60 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
61 flags argument added along with the 'mkostemp' module.
63 2009-09-28 Bruno Haible <bruno@clisp.org>
65 Avoid identifier clash with POSIX function 'remove' defined as a macro.
66 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
68 (gl_list_remove): Update.
69 * lib/gl_list.c (gl_list_remove): Update.
70 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
72 (gl_oset_remove): Update.
73 * lib/gl_list.c (gl_oset_remove): Update.
74 Reported by Eric Blake.
76 2009-09-28 Eric Blake <ebb9@byu.net>
78 doc: mention yet more cygwin 1.7 status
79 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
81 * doc/glibc-functions/execvpe.texi (execvpe): New file.
82 * doc/gnulib.texi (Glibc unistd.h): Mention it.
84 argp: fix test failure
85 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
86 that are not upper-case. Pass correct range to tolower.
88 2009-09-27 Jim Meyering <meyering@redhat.com>
90 test-yesno: work around sparc-dash here-document infelicity
91 Without this change, the literal \177 byte in a here document
92 would make dash 0.5.5.1-3 access uninitialized memory.
93 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
94 Instead, use a marker, "@", and filter through tr to create the desired
95 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
97 2009-09-27 Bruno Haible <bruno@clisp.org>
99 Disable untested support for new flavours of ACLs on AIX.
100 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
102 * lib/set-mode-acl.c (qset_acl): Likewise.
104 2008-12-07 Bruno Haible <bruno@clisp.org>
106 Add support for new flavours of ACLs on AIX. (Untested.)
107 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
108 (file_has_acl): Add support for newer AIX.
109 * lib/set-mode-acl.c (qset_acl): Likewise.
110 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
111 Rainer Tammer <tammer@tammer.net>.
113 2009-09-26 Eric Blake <ebb9@byu.net>
115 argp: fix compilation of getopt
116 * lib/getopt.in.h (includes): Use different guard than glibc.
117 Reported by Sergey Poznyakoff.
119 doc: mention more cygwin 1.7 status
120 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
122 * doc/posix-functions/execl.texi (execl): Likewise.
123 * doc/posix-functions/execle.texi (execle): Likewise.
124 * doc/posix-functions/execlp.texi (execlp): Likewise.
125 * doc/posix-functions/execv.texi (execv): Likewise.
126 * doc/posix-functions/execve.texi (execve): Likewise.
127 * doc/posix-functions/execvp.texi (execvp): Likewise.
128 * doc/glibc-functions/canonicalize_file_name.texi
129 (canonicalize_file_name): Cygwin 1.7 now provides this.
130 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
131 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
132 on AT_SYMLINK_NOFOLLOW.
134 2009-09-24 Eric Blake <ebb9@byu.net>
136 test-linkat: make test more robust
137 * tests/test-linkat.c (main): Avoid collision with EEXIST.
139 getopt: fix inclusion guards for cygwin
140 * modules/getopt-posix (Depends-on): Add include-next.
141 (Makefile.am): Substitute more items in replacement header.
142 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
144 * lib/getopt.in.h (includes): Use split inclusion guard, and
145 prefer <getopt.h> over include <unistd.h> when one is present.
146 (option): Also override name of 'struct option'.
148 same-inode: revert prior change; it is not yet ready
149 * NEWS: Undo mention of this change.
150 * lib/same-inode.h (same-inode.h): Undo tri-state change.
151 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
152 * lib/cycle-check.c (cycle_check): Likewise.
153 * lib/same.c (same_name): Likewise.
154 * lib/at-func2.c (at_func2): Likewise.
156 2009-09-23 Eric Blake <ebb9@byu.net>
159 * modules/linkat: New file.
160 * lib/at-func2.c (at_func2): Likewise.
161 * lib/linkat.c (linkat): Likewise.
162 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
163 * lib/openat-priv.h (at_func2): Add declaration.
164 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
165 * modules/unistd (Makefile.am): Substitute them.
166 * lib/unistd.in.h (linkat): Declare it.
167 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
168 * doc/posix-functions/linkat.texi (linkat): Likewise.
169 * doc/posix-functions/link.texi (link): Tweak wording.
170 * tests/test-link.c (main): Move guts...
171 * tests/test-link.h (test_link): ...into new file.
172 * modules/linkat-tests: New test.
173 * tests/test-linkat.c: Likewise.
174 * modules/link-tests (Files): Ship new file.
175 (Depends-on): Add stdbool.
177 dirname: add library-safe mdir_name
178 * lib/dirname.h (mdir_name): New prototype.
179 * lib/dirname.c (dir_name): Move guts...
180 (mdir_name): ...to new function that avoids xalloc_die.
182 fchdir: another mingw fix
183 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
184 * lib/fchdir.c (get_name): New helper method; skips canonicalize
185 on mingw (where it has not yet been ported), and make it optional
187 (_gl_register_fd): Use it.
189 same-inode: make SAME_INODE tri-state, to port to mingw
190 * NEWS: Mention this change.
191 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
192 st_ino always being 0.
193 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
194 * lib/cycle-check.c (cycle_check): Likewise.
195 * lib/same.c (same_name): Likewise.
197 lstat: avoid mingw compilation error
198 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
199 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
201 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
203 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
204 the checks for lstat.
205 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
207 link: fix test failure on Solaris 9
208 * lib/link.c (rpl_link): Don't assume link will catch bogus
209 trailing slash on source.
211 test-symlinkat: enhance test
212 * tests/test-readlink.c (main): Move guts...
213 * tests/test-readlink.h (test_readlink): ...into new file.
214 * tests/test-symlink.c (main): Move guts...
215 * tests/test-symlink.h (test_symlink): ...into new file.
216 * tests/test-symlinkat.c (main): Use new files for further
218 (do_symlink, do_readlink): New helper functions.
219 * modules/symlink-tests (Files): Ship new file.
220 (Depends-on): Add stdbool.
221 * modules/readlink-tests (Files): Ship new file.
222 (Depends-on): Add stdbool.
223 * modules/symlinkat-tests (Files): Use new files.
225 2009-09-23 Eric Blake <ebb9@byu.net>
227 readlink: document portability issue with symlink length
228 * doc/posix-functions/lstat.texi (lstat): Mention that some file
229 systems have bogus st_size on symlinks, and mention the
230 areadlink-with-size module.
231 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
232 * doc/posix-functions/readlink.texi (readlink): Mention the
233 areadlink module, and ERANGE failure.
234 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
235 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
237 readlink: fix Solaris 9 bug with trailing slash
238 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
239 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
240 * doc/posix-functions/readlink.texi (readlink): Document this.
241 * modules/readlink-tests: New test.
242 * tests/test-readlink.c: Likewise.
244 readlink: fix cygwin 1.5.x bug with return type
245 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
246 * lib/unistd.in.h (readlink): Use ssize_t.
247 * lib/readlink.c (readlink): Likewise.
248 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
249 * modules/unistd (Makefile.am): Substitute it.
250 * lib/unistd.in.h (readlink): Declare replacement.
251 * doc/posix-functions/readlink.texi (readlink): Document this.
253 symlink: use throughout gnulib
254 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
255 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
257 * modules/symlinkat (Depends-on): Add symlink.
258 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
259 * modules/canonicalize-tests (Depends-on): Likewise.
260 * modules/lstat-tests (Depends-on): Likewise.
261 * modules/openat-tests (Depends-on): Likewise.
262 * modules/remove-tests (Depends-on): Likewise.
263 * modules/rmdir-tests (Depends-on): Likewise.
264 * modules/unlink-tests (Depends-on): Likewise.
265 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
266 * tests/test-canonicalize.c (symlink): Likewise.
267 * tests/test-fstatat.c (symlink): Likewise.
268 * tests/test-lstat.c (symlink): Likewise.
269 * tests/test-remove.c (symlink): Likewise.
270 * tests/test-rmdir.c (symlink): Likewise.
271 * tests/test-unlink.c (symlink): Likewise.
272 * tests/test-unlinkat.c (symlink): Likewise.
274 symlink: new module, for Solaris 9 bug
275 * modules/symlink: New file.
276 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
277 * lib/symlink.c: Likewise.
278 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
279 * modules/unistd (Makefile.am): Substitute them.
280 * lib/unistd.in.h (symlink): Declare replacement.
281 * MODULES.html.sh (File system functions): Mention it.
282 * doc/posix-functions/symlink.texi (symlink): Likewise.
283 * modules/symlink-tests: New test.
284 * tests/test-symlink.c: Likewise.
286 2009-09-23 Bruno Haible <bruno@clisp.org>
288 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
290 Test case: gnulib-tool --import --with-tests atexit inttypes.
291 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
293 2009-09-23 Bruno Haible <bruno@clisp.org>
295 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
296 subcommand, not in a subshell.
298 2009-09-22 Eric Blake <ebb9@byu.net>
300 unistd: sort replacement declarations
301 * lib/unistd.in.h: Sort declarations.
303 open, openat: minor optimization
304 * lib/open.c (open): If open succeeded, len is non-zero.
305 * lib/openat.c (rpl_openat): Likewise.
307 link-follow: ensure correct result
308 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
309 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
310 distinguish between possible failures.
312 2009-09-21 Eric Blake <ebb9@byu.net>
314 fts: avoid compiler warning
315 * lib/fts.c (dirent_inode_sort_may_be_useful)
316 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
318 2009-09-19 Bruno Haible <bruno@clisp.org>
320 * lib/progreloc.c (canonicalize_file_name): New declaration.
322 2009-09-19 Eric Blake <ebb9@byu.net>
325 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
327 openat: fix openat bugs on Solaris 9
328 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
329 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
330 * modules/openat (Depends-on): Add open.
331 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
332 * modules/fcntl-h (Makefile.am): Substitute it.
333 * lib/fcntl.in.h (openat): Declare replacement.
334 * doc/posix-functions/openat.texi (openat): Document this.
336 openat: move fstatat and unlinkat into correct files
337 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
339 * lib/openat.c (fstatat, unlinkat): Move...
340 * lib/fstatat.c (fstatat): ...into correct files.
341 * lib/unlinkat.c (unlinkat): Likewise.
343 openat: fix unlinkat bugs on Solaris 9
344 * lib/unlinkat.c (unlinkat): New file.
345 * modules/openat (Depends-on): Add unlink.
346 (Files): Distribute it.
347 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
348 trailing slash behavior is broken.
349 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
350 * modules/unistd (Makefile.am): Substitute it.
351 * lib/unistd.in.h (unlinkat): Declare replacement.
352 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
354 openat: fix fstatat bugs on Solaris 9
355 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
357 * doc/posix-functions/fstatat.texi (fstatat): Document this.
359 test-unlinkat: enhance test, to expose Solaris 9 bug
360 * tests/test-unlink.c (main): Factor guts...
361 * tests/test-unlink.h (test_rmdir_func): ...into new file.
362 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
363 * tests/test-rmdir.c (main): Adjust caller.
364 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
365 (unlinker): New helper function.
366 (rmdirat): Enhance check.
367 * modules/rmdir-tests (Depends-on): Add stdbool.
368 * modules/unlink-tests (Depends-on): Likewise.
369 (Files): Add test-unlink.h.
370 * modules/openat-tests (Files): Likewise.
371 (Depends-on): Add unlinkdir.
373 test-fstatat: new test, to expose Solaris 9 bugs
374 * tests/test-stat.c (main): Factor guts...
375 * tests/test-stat.h (test_stat_func): ...into new file.
376 * tests/test-lstat.c (main): Factor guts...
377 * tests/test-lstat.h (test_lstat_func): ...into new file.
378 * tests/test-fstatat.c: New file.
379 * modules/stat-tests (Files): Add test-stat.h.
380 * modules/lstat-tests (Files): Add test-lstat.h.
381 (Depends-on): Add stdbool.
382 * modules/openat-tests (Depends-on): Add pathmax.
383 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
384 (Makefile.am): Run new test.
386 remove: new module, for mingw and Solaris 9 bugs
387 * modules/remove: New file.
388 * lib/remove.c: Likewise.
389 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
390 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
391 * modules/stdio (Makefile.am): Use them.
392 * lib/stdio.in.h (remove): Declare replacement.
393 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
394 * doc/posix-functions/remove.texi (remove): Likewise.
395 * modules/remove-tests: New test.
396 * tests/test-remove.c: Likewise.
398 unlink: new module, for Solaris 9 bug
399 * modules/unlink: New file.
400 * lib/unlink.c: Likewise.
401 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
402 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
403 * modules/unistd (Makefile.am): Use them.
404 * lib/unistd.in.h (stat): Declare replacement.
405 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
406 * doc/posix-functions/unlink.texi (unlink): Likewise.
407 * modules/unlink-tests: New test.
408 * tests/test-unlink.c: Likewise.
410 lstat: fix Solaris 9 bug
411 * lib/lstat.c (lstat): Also check for trailing slash on
412 non-symlink, non-directories. Use stat module to simplify logic.
413 * doc/posix-functions/lstat.texi (lstat): Document it.
414 * modules/lstat-tests (Depends-on): Add errno, same-inode.
415 (configure.ac): Check for symlink.
416 * tests/test-lstat.c (main): Add more tests.
418 stat: add as dependency to other modules
419 * modules/chown (Depends-on): Add stat.
420 * modules/euidaccess (Depends-on): Likewise.
421 * modules/fchdir (Depends-on): Likewise.
422 * modules/isdir (Depends-on): Likewise.
423 * modules/link (Depends-on): Likewise.
424 * modules/lstat (Depends-on): Likewise.
425 * modules/mkdir-p (Depends-on): Likewise.
426 * modules/modechange (Depends-on): Likewise.
427 * modules/open (Depends-on): Likewise.
428 * modules/readlink (Depends-on): Likewise.
429 * modules/same (Depends-on): Likewise.
431 stat: fix Solaris 9 bug
432 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
434 * lib/stat.c (rpl_stat): Work around it.
435 * doc/posix-functions/stat.texi (stat): Update documentation.
437 stat: new module, for mingw bug
438 * modules/stat: New file.
439 * lib/stat.c: Likewise.
440 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
441 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
442 * modules/sys_stat (Makefile.am): Use them.
443 * lib/sys_stat.in.h (stat): Declare replacement.
444 * lib/openat.c (fstatat): Deal with lstat and stat being function
446 * modules/openat (Depends-on): Add inline.
447 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
448 * doc/posix-functions/stat.texi (stat): Likewise.
449 * modules/stat-tests: New test.
450 * tests/test-stat.c: Likewise.
452 2009-09-19 Jim Meyering <meyering@redhat.com>
454 syntax-check: detect unnecessary inclusion of canonicalize.h
455 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
457 2009-09-19 Eric Blake <ebb9@byu.net>
459 canonicalize-lgpl: adjust clients to use correct header
460 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
461 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
462 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
463 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
464 * lib/progreloc.c (includes): Likewise.
466 2009-09-19 Jim Meyering <meyering@redhat.com>
468 test-posixtm.c: correct a comment
469 * tests/test-posixtm.c: Correct first-line comment.
470 Spotted by Eric Blake.
472 2009-09-16 Jim Meyering <meyering@redhat.com>
474 posixtm-tests: make T const-correct; add a test case
475 * tests/test-posixtm.c (T): Declare const.
476 Add a test for -(2^31+1).
477 Remove useless can-succeed-only-in-2002 test.
479 posixtm-tests: adjust the sole failing test
480 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
481 expected output matches what mktime now produces. Cross-checked via
482 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
484 posixtm: move #ifdef'd tests into a new module
485 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
486 * tests/test-posixtm.c: ... this new file.
487 * modules/posixtm-tests: New module.
489 2009-09-19 Eric Blake <ebb9@byu.net>
491 openat: simplify use of at-func.c
492 * lib/at-func.c (includes): Include prerequisites here, to
493 simplify requirements on client files.
494 * lib/openat-priv.h: Add double-inclusion guard.
495 * lib/faccessat.c (includes): Simplify.
496 * lib/fchmodat.c (includes): Likewise.
497 * lib/fchownat.c (includes): Likewise.
498 * lib/mkdirat.c (includes): Likewise.
499 * lib/mkfifoat.c (includes): Likewise.
500 * lib/symlinkat.c (includes): Likewise.
502 openat: allow return of fd 0
503 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
504 * modules/save-cwd (Depends-on): Replace fcntl-safer with
506 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
507 <fcntl.h>; this module does not leak fds.
508 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
509 must be allowed to return 0, leaving openat_safer to add the
511 (openat_permissive): Avoid writing to just-opened fd 2 if
512 restoring the current directory fails.
513 * lib/openat-die.c (openat_restore_fail): Add comment.
514 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
515 (save_cwd): Guarantee safe fd, but without use of open_safer.
516 * tests/test-openat.c: New test.
517 * modules/openat-tests (Files, Makefile.am): Distribute and build
520 relocatable-prog-wrapper: fix build
521 * modules/relocatable-prog-wrapper (Files): Update name of
522 canonicalize m4 file, broken on 2009-09-17.
523 Reported by emad hajjar <aleppos@hotmail.com>.
525 2009-09-19 Bruno Haible <bruno@clisp.org>
527 * lib/safe-alloc.h: Use the standard header with GPL copyright.
528 * lib/safe-alloc.c: Likewise.
529 Reported by Ian Beckwith <ianb@erislabs.net>.
531 2009-09-18 Bruno Haible <bruno@clisp.org>
533 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
534 Reported by <erobles@sensacd.com.mx>.
536 2009-09-17 Eric Blake <ebb9@byu.net>
538 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
539 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
540 slashes when checking if last component is missing.
541 * tests/test-canonicalize.c (main): Test this.
543 canonicalize, canonicalize-lgpl: honor // if distinct from /
544 * modules/canonicalize (Files): Add double-slash-root.m4.
545 * modules/canonicalize-lgpl (Files): Likewise.
546 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
547 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
548 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
550 (canonicalize_filename_mode): Use it to protect //.
551 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
552 (__realpath): Likewise.
553 * tests/test-canonicalize.c (main): Test this.
554 * tests/test-canonicalize-lgpl.c (main): Likewise.
555 * modules/canonicalize-tests (Depends-on): Add same-inode.
556 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
558 canonicalize-lgpl: fix glibc bug with trailing slash
559 * m4/canonicalize-lgpl.m4: Move contents...
560 * m4/canonicalize.m4: ...here.
561 (gl_CANONICALIZE_LGPL): Factor realpath check...
562 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
563 glibc 2.3.5 bug, fixed 2005-04-27.
564 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
565 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
566 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
567 * modules/canonicalize-lgpl (Files): Manage file rename.
568 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
569 * modules/stdlib (Makefile.am): Substitute witness.
570 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
572 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
573 replacement is required.
574 * lib/canonicalize.c (canonicalize_file_name): Likewise.
575 * doc/glibc-functions/canonicalize_file_name.texi
576 (canonicalize_file_name): Document this.
577 * doc/posix-functions/realpath.texi (realpath): Likewise.
579 canonicalize-lgpl: reject non-directory with trailing slash
580 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
581 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
582 catches failures in glibc 2.3.5.
583 * tests/test-canonicalize.c (main): Likewise.
585 canonicalize-lgpl: use native realpath if it works
586 * lib/canonicalize-lgpl.c (realpath): Guard with
588 * lib/stdlib.in.h (realpath): Make declaration optional based on
590 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
591 native realpath works.
592 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
593 * modules/stdlib (Makefile.am): Substitute witness.
595 canonicalize, canonicalize-lgpl: use <stdlib.h>
596 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
597 (Include): Mention <stdlib.h>.
598 (configure.ac): Mention functions we provide.
599 * modules/canonicalize (configure.ac): Likewise.
600 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
601 realpath if canonicalize_file_name is missing.
602 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
603 * modules/stdlib (Makefile.am): Substitute witnesses.
604 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
605 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
606 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
607 * NEWS: Document this.
608 * doc/glibc-functions/canonicalize_file_name.texi
609 (canonicalize_file_name): Likewise.
610 * doc/posix-functions/realpath.texi (realpath): Likewise.
611 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
613 test-canonicalize: consolidate into single C program
614 * tests/test-canonicalize.sh: Delete; move setup into...
615 * tests/test-canonicalize.c (main): ...the program, making it
616 easier to run in debugger. Add some tests.
617 * modules/canonicalize-tests (Files): Remove unused file.
618 (Depends-on): Add progname.
619 (configure.ac, Makefile.am): Simplify.
621 test-canonicalize-lgpl: consolidate into single C program
622 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
623 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
624 easier to run in debugger. Add some tests.
625 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
626 (configure.ac, Makefile.am): Simplify.
628 canonicalize: avoid resolvepath
629 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
631 * lib/canonicalize.c (includes): Simplify.
632 (canonicalize_file_name): Drop resolvepath implementation.
633 * modules/canonicalize (Depends-on): Drop filenamecat.
635 canonicalize: don't lose errno
636 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
639 canonicalize: simplify errno handling
640 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
643 canonicalize, canonicalize-lgpl: update module dependencies
644 * modules/canonicalize (Depends-on): Add extensions, lstat,
646 (Files): Drop pathmax.h.
647 (configure.ac): Adjust macro name.
648 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
649 lstat, stdlib, sys_stat.
650 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
651 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
653 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
654 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
655 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
656 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
657 declaration, if available.
658 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
659 we can rely on the readlink module.
660 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
661 (includes): Use <unistd.h> unconditionally.
663 2009-09-17 Eric Blake <ebb9@byu.net>
665 maint: make Include sections of modules consistent
666 * modules/alloca: Use only header name; no need to list #include.
667 * modules/alloca-opt: Likewise.
668 * modules/arpa_inet: Likewise.
669 * modules/canon-host: Likewise.
670 * modules/configmake: Likewise.
671 * modules/dirent: Likewise.
672 * modules/eealloc: Likewise.
673 * modules/environ: Likewise.
674 * modules/fchdir: Likewise.
675 * modules/fcntl: Likewise.
676 * modules/fcntl-h: Likewise.
677 * modules/gethrxtime: Likewise.
678 * modules/gettime: Likewise.
679 * modules/ignore-value: Likewise.
680 * modules/inet_ntop: Likewise.
681 * modules/inet_pton: Likewise.
682 * modules/inttypes: Likewise.
683 * modules/isnand-nolibm: Likewise.
684 * modules/isnanf-nolibm: Likewise.
685 * modules/mbchar: Likewise.
686 * modules/mbfile: Likewise.
687 * modules/mbiter: Likewise.
688 * modules/mbuiter: Likewise.
689 * modules/netdb: Likewise.
690 * modules/netinet_in: Likewise.
691 * modules/nproc: Likewise.
692 * modules/pagealign_alloc: Likewise.
693 * modules/poll: Likewise.
694 * modules/printf-frexp: Likewise.
695 * modules/pthread: Likewise.
696 * modules/putenv: Likewise.
697 * modules/random_r: Likewise.
698 * modules/relocatable-prog: Likewise.
699 * modules/search: Likewise.
700 * modules/select: Likewise.
701 * modules/selinux-h: Likewise.
702 * modules/settime: Likewise.
703 * modules/signal: Likewise.
704 * modules/size_max: Likewise.
705 * modules/socklen: Likewise.
706 * modules/ssize_t: Likewise.
707 * modules/stdarg: Likewise.
708 * modules/stdbool: Likewise.
709 * modules/stddef: Likewise.
710 * modules/stdint: Likewise.
711 * modules/stdio: Likewise.
712 * modules/stdlib: Likewise.
713 * modules/string: Likewise.
714 * modules/strings: Likewise.
715 * modules/sys_file: Likewise.
716 * modules/sys_ioctl: Likewise.
717 * modules/sys_select: Likewise.
718 * modules/sys_socket: Likewise.
719 * modules/sys_stat: Likewise.
720 * modules/sys_time: Likewise.
721 * modules/sys_times: Likewise.
722 * modules/sys_utsname: Likewise.
723 * modules/sys_wait: Likewise.
724 * modules/sysexits: Likewise.
725 * modules/time: Likewise.
726 * modules/times: Likewise.
727 * modules/tmpfile: Likewise.
728 * modules/trim: Likewise.
729 * modules/unistd: Likewise.
730 * modules/wchar: Likewise.
731 * modules/wctype: Likewise.
733 2009-09-17 Bruno Haible <bruno@clisp.org>
735 Make getdate.y compile on QNX and NetBSD 5 / i386.
736 * m4/getdate.m4 (gl_GETDATE): Conditionally define
737 TIME_T_FITS_IN_LONG_INT.
738 * lib/getdate.y (long_time_t): New type.
739 (relative_time): Change type of 'seconds' field to long_time_t.
740 (get_date): Update types of local variables. Check against overflow
741 during conversion from long_time_t to time_t.
742 Reported by Matt Kraai <kraai@ftbfs.org>
743 and Hasso Tepper <hasso@netbsd.org>.
745 2009-09-17 Bruno Haible <bruno@clisp.org>
747 * modules/COPYING: Update copyright years.
748 * modules/README: Likeiwse.
749 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
750 Reported by Ian Beckwith <ianb@erislabs.net>.
752 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
754 * users.txt: Update references for gnuit package.
756 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
758 * m4/getdelim.m4: Fix typo in copyright line.
760 2009-09-17 Bruno Haible <bruno@clisp.org>
762 * lib/atoll.c: Use the standard header with GPL copyright.
763 * lib/argz.in.h: Likewise.
764 * lib/glob.c: Likewise.
765 * lib/glob-libc.h: Likewise.
766 * lib/random_r.c: Likewise.
767 * lib/siglist.h: Likewise.
768 * lib/strsignal.c: Likewise.
769 Reported by Ian Beckwith <ianb@erislabs.net>.
771 2009-09-17 Eric Blake <ebb9@byu.net>
773 rmdir: ensure correct dependency order
774 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
776 2009-09-17 Bruno Haible <bruno@clisp.org>
778 Disable assertion that fails on NetBSD 5 / i386.
779 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
780 Reported by Sam Steingold <sds@gnu.org>
781 and Hasso Tepper <hasso@netbsd.org>.
783 2009-09-16 Eric Blake <ebb9@byu.net>
785 unlinkdir: port to mingw
786 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
787 on which no one can unlink a directory.
789 stdlib: sort witness names
790 * modules/stdlib (Makefile.am): Sort replacements.
791 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
792 * lib/stdlib.in.h: Likewise.
794 parse-duration-tests: avoid link failure
795 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
797 Reported by Tom G. Christensen.
799 openat-tests: ensure unlinkat behaves like rmdir
800 * tests/test-rmdir.c (main): Factor guts...
801 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
802 * modules/rmdir-tests (Files): Ship new file.
803 * modules/openat-tests: New test.
804 * tests/test-unlinkat.c: Likewise.
806 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
807 * modules/rmdir-errno (Status, Notice): Now obsolete.
809 rmdir: work around cygwin 1.5.x and mingw bugs
810 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
811 * lib/rmdir.c (rmdir): Work around it.
812 * modules/rmdir (Status, Notice): No longer obsolete.
814 (Depends-on): Add unistd.
815 (configure.ac): Set witnesses.
816 (License): Relax to LGPLv2+.
817 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
818 * modules/unistd (Makefile.am): Substitute witnesses.
819 * lib/unistd.in.h (rmdir): Declare replacement.
820 * doc/posix-functions/rmdir.texi (rmdir): Document this.
821 * modules/rmdir-tests: New tests.
822 * tests/test-rmdir.c: Likewise.
824 2009-09-15 Eric Blake <ebb9@byu.net>
826 fchdir: improve use of replacement functions
827 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
828 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
829 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
831 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
832 * modules/sys_stat (Makefile.am): Substitute correct witness.
833 * modules/dirent (Makefile.am): Likewise.
834 * modules/unistd (Makefile.am): Likewise.
835 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
836 * lib/unistd.in.h (dup): Likewise.
837 * lib/sys_stat.in.h (fstat): Likewise.
839 maint: ignore gnulib-tool temp files
840 * .gitignore: Ignore files created during gnulib-tool --test.
842 2009-09-13 Jim Meyering <meyering@redhat.com>
844 posixtm: don't reject a time that specify "60" as the number of seconds
845 * lib/posixtm.c (posixtime): The code to reject invalid dates
846 would also reject a time specified with the .60 suffix.
847 But POSIX allows that, in order to accommodate leap seconds.
849 (main): Adjust tests accordingly.
850 * modules/posixtm (Depends-on): Add stpcpy.
852 2009-09-11 Jim Meyering <meyering@redhat.com>
854 announce-gen: include [$release_type] in emitted Subject:
855 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
856 e.g., [stable] in the emitted Subject: line.
858 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
860 Remove obsolete macros from several modules.
861 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
862 obsolete Autoconf macros with their modern counterparts.
863 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
864 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
865 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
866 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
867 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
868 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
869 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
870 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
871 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
872 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
873 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
874 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
875 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
876 * m4/sockets.m4 (gl_SOCKETS): Likewise.
877 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
878 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
879 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
880 * m4/time_r.m4 (gl_TIME_R): Likewise.
881 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
882 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
883 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
885 Fix copyright header in build-aux scripts.
886 * build-aux/git-version-gen: Fix copyright header to match GPLv3
888 * build-aux/ncftpput-ftp: Likewise.
889 * build-aux/update-copyright: Likewise.
891 2009-09-09 Eric Blake <ebb9@byu.net>
893 test-link: allow Linux choice of errno
894 * tests/test-link.c (main): Relax test for alternate error.
896 strndup: fix improper m4 caching
897 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
898 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
899 (gl_PREREQ_STRNDUP): Delete.
900 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
901 * modules/string (Makefile.am): Substitute it.
902 * lib/string.in.h (strndup): Modernize prototype.
904 getcwd: port to mingw
905 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
906 different from the POSIX assumptions made throughout the getcwd
907 module; fortunately, the mingw getcwd does not need replacement.
908 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
909 * modules/getcwd-tests: New test.
910 * tests/test-getcwd.c: Likewise.
912 link: fix platform bugs
913 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
914 * lib/link.c (link): Work around them. Fix related mingw bug.
915 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
916 * modules/unistd (Makefile.am): Substitute it.
917 * lib/unistd.in.h (link): Declare replacement.
918 * doc/posix-functions/link.texi (link): Document this.
919 * modules/link (Depends-on): Add strdup-posix, sys_stat.
921 test-link: consolidate into single C program, test more cases
922 * tests/test-link.sh: Delete.
923 * tests/test-link.c: Test more error conditions. Exposes bugs on
924 at least Cygwin and Solaris.
925 * modules/link-tests (Files): Remove unused file.
926 (Depends-on): Add errno, sys_stat.
927 (Makefile.am): Simplify.
929 2009-09-08 Bruno Haible <bruno@clisp.org>
931 Work around towlower, towupper bug on mingw.
932 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
933 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
934 * doc/posix-functions/towlower.texi: Mention the mingw bug.
935 * doc/posix-functions/towupper.texi: Likewise.
936 Reported by Eric Blake.
938 2009-09-08 Jim Meyering <meyering@redhat.com>
940 build: don't try to run autoheader if we don't use it
941 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
942 is not used in configure.ac.
944 2009-09-08 Eric Blake <ebb9@byu.net>
946 euidaccess: fix compilation error
947 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
949 rawmemchr: relax license
950 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
952 Reported by Jim Meyering.
955 * modules/mkfifoat: New file.
956 * lib/mkfifoat.c: Likewise.
957 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
958 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
959 * modules/sys_stat (Makefile.am): Use them.
960 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
961 * MODULES.html.sh (File system functions): Mention module.
962 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
963 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
964 * modules/mkfifoat-tests: New test.
965 * tests/test-mkfifoat.c: Likewise.
967 strchrnul: relax license
968 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
970 Reported by Jim Meyering.
972 2009-09-08 Eric Blake <ebb9@byu.net>
974 fstatat: fix compilation on Solaris
975 * lib/fstatat.c (includes): Add fcntl.h.
976 Reported by Pádraig Brady.
978 2009-09-07 Eric Blake <ebb9@byu.net>
980 rename: modernize replacement
981 * modules/rename (Depends-on): Add stdio.
982 (configure.ac): Declare witness.
983 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
984 stdio take care of replacement.
985 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
986 * modules/stdio (Makefile.am): Substitute them.
987 * lib/stdio.in.h (rename): Declare replacement.
988 * lib/rename.c (includes): Allow cross-compilation to non-windows
990 * doc/posix-functions/rename.texi (rename): Improve
993 stdio: sort witness names
994 * modules/stdio (Makefile.am): Sort replacements.
995 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
996 * lib/stdio.in.h: Likewise.
998 getcwd: minor cleanups
999 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
1000 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
1002 openat: provide more convenience names
1003 * modules/faccessat (configure.ac): Add C witness.
1004 * lib/unistd.in.h (readlinkat): Fix typo.
1005 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
1006 convenience wrappers.
1007 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
1008 wrappers in syntax checks.
1010 2009-09-06 Eric Blake <ebb9@byu.net>
1012 doc: fix comments in recent patches
1013 * lib/faccessat.c: Mention correct function.
1014 * lib/fchmodat.c: Likewise.
1015 * lib/fchownat.c: Likewise.
1016 * lib/symlinkat.c: Likewise.
1017 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
1020 faccessat, symlinkat: continue cleanup of previous patch
1021 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
1022 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
1023 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
1024 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
1025 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
1026 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
1029 2009-09-06 Bruno Haible <bruno@clisp.org>
1031 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
1032 (fstatat): Declare if GNULIB_FSTATAT is set.
1033 (mkdirat): Declare if GNULIB_MKDIRAT is set.
1034 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
1035 (unlinkat): Declare if GNULIB_UNLINKAT is set.
1036 * modules/fcntl-h (Files): Remove m4/openat.m4.
1037 * modules/sys_stat (Files): Remove m4/openat.m4.
1038 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
1039 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
1040 * modules/unistd (Files): Remove m4/openat.m4.
1041 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
1043 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
1044 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
1045 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
1046 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
1047 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
1049 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
1050 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
1051 Don't require gl_OPENAT_DEFAULTS.
1052 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
1053 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
1054 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
1055 (gl_OPENAT_DEFAULTS): Remove macro.
1057 2009-09-06 Bruno Haible <bruno@clisp.org>
1059 * modules/openat (configure.ac): Remove unneeded witness.
1061 2009-09-06 Bruno Haible <bruno@clisp.org>
1063 Set errno to ENOSYS when a function is entirely unsupported.
1064 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
1066 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
1067 * modules/chown (Depends-on): Remove errno.
1069 2009-09-06 Bruno Haible <bruno@clisp.org>
1071 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
1073 2009-09-06 Bruno Haible <bruno@clisp.org>
1075 * lib/sys_stat.in.h: Fix preprocessor command indentation.
1077 2009-09-06 Ben Pfaff <blp@gnu.org>
1078 Bruno Haible <bruno@clisp.org>
1080 Work around a glibc bug in strtok_r.
1081 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
1082 Undefine if UNDEFINE_STRTOK_R is set.
1083 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
1084 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
1085 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
1086 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
1087 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
1089 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
1091 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
1094 * lib/exclude.c: Include wctype.h
1096 2009-09-06 Akim Demaille <demaille@gostai.com>
1098 bootstrap: improve error message
1099 * build-aux/bootstrap (find_tool): Upon failure, report the list
1101 Honor the initial value of the envvar.
1103 2009-09-05 Eric Blake <ebb9@byu.net>
1105 symlinkat: new module
1106 * modules/symlinkat: New file.
1107 * lib/symlinkat.c: Likewise.
1108 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
1109 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
1110 * modules/unistd (Makefile.am): Use them.
1111 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
1112 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
1113 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
1114 * MODULES.html.sh (File system functions): Mention module.
1115 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
1116 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1117 * modules/symlinkat-tests: New test.
1118 * tests/test-symlinkat.c: Likewise.
1120 test-openat-safer: add more checks
1121 * tests/test-openat-safer.c (main): Check more code paths.
1123 2009-09-05 Jim Meyering <meyering@redhat.com>
1125 syntax-check: detect unnecessary inclusion of openat.h
1126 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
1128 2009-09-05 Bruno Haible <bruno@clisp.org>
1130 Support towlower, towupper.
1131 * doc/posix-functions/towlower.texi: Mention module wctype.
1132 * doc/posix-functions/towupper.texi: Likewise.
1133 * lib/wctype.in.h (towlower, towupper): New functions.
1134 * tests/test-wctype.c: Include stdio.h, stdlib.h.
1135 (ASSERT): New macro.
1137 (main): Test also towlower, towupper. Test WEOF argument.
1138 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
1140 2009-09-05 Bruno Haible <bruno@clisp.org>
1142 Fix conversion behaviour when the input is invalid.
1143 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
1144 mark occurring in first pass of indirect conversion.
1145 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
1147 Found by clang's static analyzer.
1149 2009-09-05 Bruno Haible <bruno@clisp.org>
1151 * tests/test-striconveh.c (main): Test indirect conversion on platforms
1152 where direct conversion is possible.
1154 2009-09-04 Eric Blake <ebb9@byu.net>
1156 openat: fail with ENOENT on empty name
1157 * lib/openat-proc.c (openat_proc_name): Special-case the empty
1160 link-follow: fix logic bug in prior patch
1161 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
1162 reversed sense of yes and no in prior patch. Avoid confusing
1163 compilation failure with desired semantics.
1165 link-follow: accomodate mingw and cross-compilation
1166 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
1167 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
1168 cross-compilation results to -1, to make linkat easier to
1169 implement when cross-compiling. Trivially support mingw.
1170 * modules/link-follow (configure.ac): Call new name.
1171 * NEWS: Mention this.
1173 2009-09-03 Eric Blake <ebb9@byu.net>
1175 faccessat: compile replacement
1176 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
1179 fts: fix compilation error
1180 * lib/fts.c (includes): Re-add "openat.h", for
1181 openat_needs_fchdir.
1183 faccessat: new module
1184 * modules/faccessat: New file.
1185 * lib/faccessat.c: Likewise.
1186 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
1187 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1188 * modules/unistd (Makefile.am): Use it.
1189 * lib/unistd.in.h (faccessat): Declare it.
1190 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
1191 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
1192 * MODULES.html.sh (File system functions): Mention it.
1193 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
1194 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
1196 euidaccess: prefer POSIX over non-standard implementation
1197 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
1198 * lib/euidaccess.c (euidaccess): Use it if available.
1200 openat: make template easier to use
1201 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
1202 AT_FUNC_F2 to be undefined.
1203 (VALIDATE_FLAG): New macro; use it to reject bad flags.
1204 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
1205 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
1206 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
1207 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
1209 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
1210 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
1211 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
1214 openat: declare in POSIX headers
1215 * NEWS: Mention this.
1216 * modules/openat (configure.ac): Declare witnesses.
1217 (Depends-on): Add fcntl-h, sys_stat, unistd.
1218 (Include): Mention correct headers.
1219 * modules/fcntl-h (Depends-on): Add link-warning.
1220 (Files): Add openat.m4.
1221 (Makefile.am): Substitute witnesses.
1222 * modules/sys_stat (Files, Makefile.am): Likewise.
1223 * modules/unistd (Files, Makefile.am): Likewise.
1224 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
1225 (gl_OPENAT_DEFAULTS): New macro.
1226 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
1227 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
1228 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
1229 (SYS_STAT_H): Remove unused variable.
1230 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
1231 * lib/fcntl--.h (includes): Remove unneeded header.
1232 * lib/openat-safer.c (includes): Likewise.
1233 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
1234 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
1235 appropriate headers.
1236 (__OPENAT_PREFIX): Delete.
1237 * lib/fcntl.in.h (openat): Provide declaration.
1238 (AT_FDCWD): Fix Solaris bug.
1239 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
1240 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
1241 * lib/fchmodat.c (includes): Adjust to find declaration.
1242 * lib/fchownat.c (includes): Likewise.
1243 * lib/mkdirat.c (includes): Likewise.
1244 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
1247 2009-09-02 Eric Blake <ebb9@byu.net>
1249 errno: use consistently
1250 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
1251 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
1252 * lib/canonicalize.c (ELOOP): Likewise.
1253 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
1254 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
1255 * lib/lchown.c (EOPNOTSUPP): Likewise.
1256 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
1257 * lib/savewd.c (ESTALE): Likewise.
1258 * lib/settime.c (ENOSYS): Likewise.
1259 * lib/utimens.c (ENOSYS): Likewise.
1260 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
1261 * lib/chdir-safer.c (ELOOP): Likewise.
1262 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
1263 * modules/c-stack (Depends-on): Add errno.
1264 * modules/canonicalize (Depends-on): Likewise.
1265 * modules/chdir-safer (Depends-on): Likewise.
1266 * modules/fdopendir (Depends-on): Likewise.
1267 * modules/inet_ntop (Depends-on): Likewise.
1268 * modules/inet_pton (Depends-on): Likewise.
1269 * modules/lchown (Depends-on): Likewise.
1270 * modules/openat (Depends-on): Likewise.
1271 * modules/savewd (Depends-on): Likewise.
1272 * modules/settime (Depends-on): Likewise.
1273 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
1275 fts: avoid leaking fds
1276 * modules/fts (Depends-on): Add cloexec.
1277 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
1280 fts: make directory fds more robust
1281 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
1282 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
1284 backupfile, chdir-long, fts, savedir: make safer
1285 * lib/backupfile.c (includes): Use "dirent--.h", since
1286 numbered_backup can write to stderr during readdir.
1287 * lib/savedir.c (includes): Likewise.
1288 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
1289 emulation can write to stderr on failure.
1290 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
1291 * lib/getcwd.c: Document why opendir_safer is unused.
1292 * lib/glob.c: Likewise.
1293 * lib/scandir.c: Likewise.
1294 * lib/openat-proc.c: Likewise, for open_safer.
1295 * modules/backupfile (Depends-on): Add dirent-safer.
1296 * modules/savedir (Depends-on): Likewise.
1297 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
1298 * modules/chdir-long (Depends-on): Add openat-safer.
1300 openat-safer: new module
1301 * modules/openat-safer: New file.
1302 * lib/openat-safer.c: Likewise.
1303 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
1304 * lib/fcntl-safer.h (openat_safer): Declare.
1305 * lib/fcntl--.h (openat): Override.
1306 * MODULES.html.sh (File descriptor based I/O): Mention it.
1307 * lib/openat.h: Add double-inclusion guards.
1308 * lib/openat.c (includes): Only include "fcntl-safer.h", not
1309 "fcntl--.h", so we can implement openat.
1310 * modules/openat-safer-tests: New test.
1311 * tests/test-openat-safer.c: New file.
1313 dirent-safer: new module
1314 * modules/dirent-safer: New file.
1315 * lib/dirent--.h: Likewise.
1316 * lib/dirent-safer.h: Likewise.
1317 * lib/opendir-safer.c: Likewise.
1318 * m4/dirent-safer.m4: Likewise.
1319 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
1320 * modules/dirent-safer-tests: New test.
1321 * tests/test-dirent-safer.c: New file.
1322 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
1324 fdopendir: optimize on mingw
1325 * lib/unistd.in.h (_gl_directory_name): New prototype.
1326 * lib/fchdir.c (_gl_directory_name): Implement it.
1327 (fchdir): Use it to simplify implementation.
1328 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
1329 fchdir, when available, to avoid calling [f]chdir().
1331 fdopendir: split into its own module
1332 * lib/openat.c (fdopendir): Move...
1333 * lib/fdopendir.c: ...into new file.
1334 * modules/fdopendir: New module.
1335 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
1336 * modules/openat (Depends-on): Add fdopendir.
1337 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
1339 * modules/savedir (Depends-on): Only need fdopendir, not full
1341 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
1342 * lib/openat.h (fdopendir): Drop prototype.
1343 * lib/dirent.in.h (fdopendir): Provide prototype.
1344 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
1345 * modules/dirent (Makefile.am): Substitute them.
1346 * MODULES.html.sh (File system functions): Mention it.
1347 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
1348 * modules/fdopendir-tests: New file.
1349 * tests/test-fdopendir.c: Likewise.
1351 fchdir: use more consistent macro convention
1352 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
1353 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
1354 REPLACE_FCHDIR, rather than relying on config.h macros.
1355 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
1356 inside a single make-time REPLACE_FCHDIR block, rather than using
1357 the config.h FCHDIR_REPLACEMENT.
1358 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
1359 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
1360 Manage fstat replacement.
1361 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
1363 * modules/sys_stat (Files): Add m4/unistd_h.m4.
1364 (Makefile.am): Substitute REPLACE_FCHDIR.
1365 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
1367 * lib/dup-safer.c (dup_safer): Likewise.
1368 * lib/dup2.c (rpl_dup2): Likewise.
1369 * lib/dup3.c (rpl_dup3): Likewise.
1370 * lib/open.c (rpl_open): Likewise.
1372 fchdir: simplify error handling, and support dup3
1373 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
1374 stdbool, malloc-posix, realloc-posix.
1375 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
1376 (ensure_dirs_slot): Return false on allocation failure.
1378 (_gl_register_dup): New function.
1379 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
1380 (_gl_register_fd): Close fd on allocation failure.
1381 * lib/fcntl.in.h (_gl_register_fd): Update signature.
1382 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
1384 (rpl_dup2_fchdir): Delete prototype.
1385 * lib/open.c (open): Update caller.
1386 * lib/dup2.c (dup2): Track fchdir metadata.
1387 * lib/dup3.c (dup3): Likewise.
1388 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
1389 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
1391 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1393 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
1394 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
1395 don't pass arguments to AC_OUTPUT.
1397 2009-09-02 Bruno Haible <bruno@clisp.org>
1399 * modules/mkdtemp (License): Relicense under LGPLv2+.
1400 Reported by Paolo Bonzini.
1402 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1404 Replace uses of obsolete autoconf macros in Jim's modules.
1405 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
1406 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
1407 can evoke a warning from autoconf when run with -Wobsolete
1408 enabled. They were declared obsolete for good reasons (see
1409 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
1410 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
1411 should not continue using the deprecated macros.
1412 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
1413 obsolete Autoconf macros with modern counterparts.
1414 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
1415 * m4/dos.m4 (gl_AC_DOS): Likewise.
1416 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
1417 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
1418 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
1419 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
1420 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
1421 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
1422 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
1423 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
1424 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
1426 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
1427 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
1428 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
1429 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
1430 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
1431 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
1433 2009-09-01 Eric Blake <ebb9@byu.net>
1435 fchdir: fix off-by-one bug in previous patch
1436 * lib/fchdir.c (rpl_fstat): Use correct bounds.
1437 (_gl_unregister_fd): Delete useless if.
1439 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
1441 maint.mk: sort the list of syntax-check rules
1442 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
1443 easier to get a sense of progress when the rules are run sequentially
1444 and take a long time.
1446 2009-09-01 Simon Josefsson <simon@josefsson.org>
1448 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
1449 * modules/netinet_in: Likewise.
1450 * modules/sys_file: Likewise.
1451 * modules/sys_ioctl: Likewise.
1452 * modules/sys_select: Likewise.
1453 * modules/sys_socket: Likewise.
1454 * modules/sys_stat: Likewise.
1455 * modules/sys_time: Likewise.
1456 * modules/sys_times: Likewise.
1457 * modules/sys_utsname: Likewise.
1458 * modules/sys_wait: Likewise.
1460 2009-09-01 Jim Meyering <meyering@redhat.com>
1462 fts: help ensure that return values are not ignored
1463 * lib/fts_.h (__GNUC_PREREQ): Define.
1464 (__attribute_warn_unused_result__): Define.
1465 (fts_children, fts_close, fts_open, fts_read): Declare with
1466 __attribute_warn_unused_result__.
1468 fts: fts_close now fails also when closing a dir file descriptor fails
1469 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
1470 and propagate to caller, along with errno.
1472 announce-gen: correct formatting in --help output
1473 * build-aux/announce-gen (usage): Move the one-line description in
1474 --help output "up", to where it belongs, just after Usage:.
1476 2009-08-31 Eric Blake <ebb9@byu.net>
1478 fchdir: port to mingw
1479 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
1480 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
1481 opened, then use a substitute.
1482 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
1484 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
1485 (_gl_register_fd): No need to check stat if open already filters
1487 (fchdir): Fix error condition to match POSIX.
1488 * modules/fchdir (Depends-on): Add sys_stat.
1489 * doc/posix-functions/open.texi (open): Document the limitation.
1490 * modules/fchdir-tests: New file.
1491 * tests/test-fchdir.c: Likewise.
1493 canonicalize: allow cross-testing from cygwin to mingw
1494 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
1495 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
1496 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
1498 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
1499 target does not support symlinks.
1500 * tests/test-canonicalize-lgpl.sh: Likewise.
1502 chown: avoid compilation warning on mingw
1503 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
1504 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
1506 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
1507 * modules/chown (Depends-on): Add errno.
1509 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
1511 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
1514 2009-08-31 Jim Meyering <meyering@redhat.com>
1516 canonicalize: remove useless initialization
1517 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
1518 initialization of local, "end".
1520 2009-08-30 Bruno Haible <bruno@clisp.org>
1522 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
1523 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
1526 2009-08-30 Bruno Haible <bruno@clisp.org>
1528 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
1529 /usr/xpg4/bin/tr when it exists.
1530 * tests/test-pipe-filter-gi1.sh: Likewise.
1532 2009-08-30 Bruno Haible <bruno@clisp.org>
1534 Work around deficient /usr/bin/id program on Solaris.
1535 * tests/test-file-has-acl.sh (ID): New variable.
1536 * tests/test-set-mode-acl.sh (ID): Likewise.
1537 * tests/test-copy-acl.sh (ID): Likewise.
1538 * tests/test-copy-file.sh (ID): Likewise.
1540 2009-08-30 Bruno Haible <bruno@clisp.org>
1542 New module 'xstriconveh'.
1543 * lib/xstriconveh.h: New file.
1544 * lib/xstriconveh.c: New file.
1545 * modules/xstriconveh: New file.
1547 2009-08-30 Bruno Haible <bruno@clisp.org>
1549 Make it easier to use mem_cd_iconveh.
1550 * lib/striconveh.h (iconveh_t): New type.
1551 (iconveh_open, iconveh_close): New declarations.
1552 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
1553 with a single 'const iconveh_t *' argument.
1554 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
1555 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
1556 with a single 'const iconveh_t *' argument.
1557 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
1558 * tests/test-striconveh.c (main): Update.
1559 * NEWS: Mention the change.
1561 2009-08-30 Bruno Haible <bruno@clisp.org>
1563 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
1566 2009-08-30 Bruno Haible <bruno@clisp.org>
1568 Work around iconv_open problem on Solaris.
1569 * lib/iconv_open-solaris.gperf: New file.
1570 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
1571 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
1572 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
1573 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
1574 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
1575 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
1577 2009-08-29 Jim Meyering <meyering@redhat.com>
1579 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
1580 * top/maint.mk (cvs-check): Remove target; it was just an alias
1581 to the better-named vc-diff-check.
1582 (maintainer-distcheck): Remove rule. It was used only from
1583 the (alpha/beta/major) target, and all of its commands but one
1584 were coreutils-specific.
1585 (vc-dist): Remove rule.
1586 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
1587 Run vc-diff-check, not vc-dist.
1588 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
1590 2009-08-27 Bruno Haible <bruno@clisp.org>
1592 * tests/test-bitrotate.c (main): Remove test that uses a shift count
1595 2009-08-27 Bruno Haible <bruno@clisp.org>
1597 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
1599 * doc/func.texi: Document the SunPRO C bug.
1601 2009-08-27 Bruno Haible <bruno@clisp.org>
1603 Fix link error on Solaris.
1604 * tests/test-parse-duration.c (xstrdup): Remove function.
1606 2009-08-26 Pádraig Brady <P@draigbrady.com>
1608 ignore-value: handle pointer types, too
1609 * lib/ignore-value.h (__attribute__): Remove definition.
1610 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
1611 of a more concise and more-often effective "(void) i" statement.
1612 (ignore_ptr): New function to suppress warnings from functions that
1613 return pointers, and to make it explicit that one function doesn't
1616 2009-08-25 Bruno Haible <bruno@clisp.org>
1618 dup2: work around a Linux bug.
1619 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
1620 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
1621 * doc/posix-functions/dup2.texi: Mention the Linux bug.
1622 Reported by Simon Josefsson.
1624 2009-08-25 Jim Meyering <meyering@redhat.com>
1626 libguestfs uses gnulib
1627 * users.txt: Add libguestfs.
1629 2009-08-24 Eric Blake <ebb9@byu.net>
1631 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
1632 * lib/pipe2.c (includes): Add binary-io.h.
1633 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
1635 2009-08-24 Bruno Haible <bruno@clisp.org>
1637 Tolerate declared but missing accept4 syscall.
1638 * lib/accept4.c (accept4): Invoke original accept4 function first, if
1640 * lib/sys_socket.in.h (accept4): If the function is already present,
1642 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
1643 * modules/accept4 (Makefile.am): Compile accept4.c always.
1644 Reported by Paolo Bonzini and Eric Blake.
1646 2009-08-23 Bruno Haible <bruno@clisp.org>
1648 New module 'accept4'.
1649 * lib/sys_socket.in.h (accept4): New declaration.
1650 * lib/accept4.c: New file.
1651 * m4/accept4.m4: New file.
1652 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1653 GNULIB_ACCEPT4, HAVE_ACCEPT4.
1654 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
1656 * modules/accept4: New file.
1657 * doc/glibc-functions/accept4.texi: Mention the new module.
1659 2009-08-24 Jim Meyering <meyering@redhat.com>
1661 progname: also set global program_invocation_name, when possible
1662 Before this change, a libtool-enabled program that calls glibc's
1663 error function would report the program name as
1664 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
1665 * modules/progname (configure.ac): Check for a declaration of
1666 program_invocation_name.
1667 * lib/progname.c: Include <errno.h>.
1668 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
1669 Set program_invocation_name.
1671 2009-08-23 Bruno Haible <bruno@clisp.org>
1673 * lib/dup3.c: Include <string.h>.
1675 2009-08-23 Bruno Haible <bruno@clisp.org>
1677 * lib/dup3.c (dup3): Test only once whether the system actually exists.
1678 * lib/pipe2.c (pipe2): Likewise.
1679 Suggested by Eric Blake.
1681 2009-08-23 Bruno Haible <bruno@clisp.org>
1683 Tolerate declared but missing dup3 syscall.
1684 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
1685 * lib/unistd.in.h (dup3): If the function is already present,
1687 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
1688 * modules/dup3 (Makefile.am): Compile dup3.c always.
1689 Reported by Paolo Bonzini.
1691 2009-08-23 Bruno Haible <bruno@clisp.org>
1693 Tolerate declared but missing pipe2 syscall.
1694 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
1696 * lib/unistd.in.h (pipe2): If the function is already present,
1698 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
1699 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
1700 Reported by Paolo Bonzini.
1702 2009-08-23 Bruno Haible <bruno@clisp.org>
1704 * lib/pipe2.c (pipe2): Move #ifs inside function.
1706 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
1708 quotearg: document limitations of quote_these_too
1709 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
1710 those limitations are created.
1711 * lib/quotearg.h (set_char_quoting): Document that digits and
1712 letters that are special after backslash are not permitted.
1713 (quotearg_char): Cross-reference set_char_quoting documentation.
1715 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
1717 quotearg: implement custom_quoting_style
1718 * lib/quotearg.c: (struct quoting_options): Add left_quote and
1720 (set_custom_quoting): New public function.
1721 (quotearg_buffer_restyled): Add left_quote and right_quote
1722 arguments, handle them very much like locale quoting, and update
1724 (quotearg_n_custom): New public function.
1725 (quotearg_n_custom_mem): New public function.
1726 (quotearg_custom): New public function.
1727 (quotearg_custom_mem): New public function.
1728 * lib/quotearg.h: Prototype and document new public functions.
1729 (enum quoting_style): For escape_quoting_style and
1730 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
1731 ignored even though they're otherwise like c_quoting_style.
1732 Add custom_quoting_style member and document with comparison to
1733 clocale_quoting_style.
1734 * tests/test-quotearg.c (custom_quotes): New array.
1735 (custom_results): New array.
1736 (main): Extend to test custom quoting.
1738 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
1740 quotearg: fix right quote escaping when it's in quote_these_too
1741 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
1742 quote, be sure to prepend only one backslash.
1743 * tests/test-quotearg.c (use_quote_double_quotes): New function.
1746 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
1748 quotearg-tests: test escaping of embedded locale quotes
1749 * tests/test-quotearg.c (struct result_strings): Add member for
1751 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
1752 (inputs): Add new input.
1753 (results_g): Add expected results.
1754 (flag_results): Likewise.
1755 (locale_results): Likewise.
1756 (compare_strings): Check those.
1758 2009-08-23 Bruno Haible <bruno@clisp.org>
1760 Tests for module 'dup3'.
1761 * modules/dup3-tests: New file.
1762 * tests/test-dup3.c: New file.
1765 * lib/unistd.in.h (dup3): New declaration.
1766 * lib/dup3.c: New file.
1767 * m4/dup3.m4: New file.
1768 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
1770 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
1771 * modules/dup3: New file.
1772 * doc/glibc-functions/dup3.texi: Mention the new module.
1774 2009-08-23 Bruno Haible <bruno@clisp.org>
1776 Tweak the dup2 test.
1777 * tests/test-dup2.c (main): Create the test file empty. Verify that an
1778 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
1779 the test file is still empty. Fix argument order of lseek.
1781 2009-08-23 Bruno Haible <bruno@clisp.org>
1783 Avoid test link errors when the modules getopt-gnu, gettext are used.
1784 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
1785 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1787 2009-08-23 Bruno Haible <bruno@clisp.org>
1789 Fix getdtablesize() on mingw.
1790 * lib/getdtablesize.c (getdtablesize): Implement differently.
1791 * lib/unistd.in.h (getdtablesize): Improve comment.
1793 2009-08-23 Bruno Haible <bruno@clisp.org>
1795 New module 'mkostemp'.
1796 Based on Ulrich Drepper's 2007-08-10 change in glibc.
1797 * lib/stdlib.in.h (mksotemp): New declaration.
1798 * lib/mkostemp.c: New file, from glibc with modifications.
1799 * lib/tempname.h (GT_FILE): Remove outdated comment.
1800 (gen_tempname): Add flags argument.
1801 * lib/tempname.c (__GT_BIGFILE): Remove macro.
1802 (__GT_FILE): Map to 1.
1803 (small_open, large_open): Remove macros.
1804 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
1805 * lib/mkstemp.c (mkstemp): Update.
1806 * lib/mkdtemp.c (mkdtemp): Likewise.
1807 * m4/mkostemp.m4: New file.
1808 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
1810 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
1812 * modules/mkostemp: New file, based on modules/mkstemp.
1813 * doc/glibc-functions/mkostemp.texi: Mention the new module.
1814 * NEWS: Mention the change.
1816 2009-08-23 Bruno Haible <bruno@clisp.org>
1818 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
1819 Reported by Eric Blake.
1821 2009-08-23 Bruno Haible <bruno@clisp.org>
1823 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
1824 Reported by Eric Blake.
1826 2009-08-23 Bruno Haible <bruno@clisp.org>
1828 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
1829 * modules/pipe2 (Depends-on): Likewise.
1831 2009-08-23 Eric Blake <ebb9@byu.net>
1833 fcntl-h: add O_TTY_INIT support
1834 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
1835 * tests/test-fcntl-h.c (o): Test it.
1836 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
1838 fcntl-h: rename from fcntl, in preparation for fcntl(2)
1839 * modules/fcntl: Move <fcntl.h> header replacement...
1840 * modules/fcntl-h: ...to new name, so as not to collide with
1841 like-named function.
1842 * tests/test-fcntl.c: Rename...
1843 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
1844 * modules/fcntl-tests: Rename...
1845 * modules/fcntl-h-tests: ...to this. Update test file name.
1846 * modules/chdir-long (Depends-on): Update clients.
1847 * modules/chdir-safer (Depends-on): Likewise.
1848 * modules/fcntl-safer (Depends-on): Likewise.
1849 * modules/fts (Depends-on): Likewise.
1850 * modules/mkancesdirs (Depends-on): Likewise.
1851 * modules/mkdir-p (Depends-on): Likewise.
1852 * modules/open (Depends-on): Likewise.
1853 * modules/savewd (Depends-on): Likewise.
1854 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
1855 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
1857 2009-08-22 Bruno Haible <bruno@clisp.org>
1859 * modules/binary-io (License): Relicense under LGPL.
1860 * modules/pipe2 (License): Likewise.
1862 2009-08-22 Bruno Haible <bruno@clisp.org>
1864 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
1866 * lib/pipe-filter-gi.c (filter_init): Likewise.
1867 Reported by Eric Blake.
1869 2009-08-22 Bruno Haible <bruno@clisp.org>
1871 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
1872 * modules/pipe (Depends-on): Add pipe2.
1874 2009-08-22 Bruno Haible <bruno@clisp.org>
1876 Tests for module 'pipe2'.
1877 * modules/pipe2-tests: New file.
1878 * tests/test-pipe2.c: New file.
1881 * lib/unistd.in.h (pipe2): New declaration.
1882 * lib/pipe2.c: New file.
1883 * m4/pipe2.m4: New file.
1884 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
1886 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
1887 * modules/pipe2: New file.
1888 * doc/glibc-functions/pipe2.texi: Mention the new module.
1890 2009-08-22 Bruno Haible <bruno@clisp.org>
1892 Reference some new glibc functions.
1893 * doc/glibc-functions/accept4.texi: New file.
1894 * doc/glibc-functions/dup3.texi: New file.
1895 * doc/glibc-functions/mkostemp.texi: New file.
1896 * doc/glibc-functions/pipe2.texi: New file.
1897 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
1898 (Glibc sys/socket.h): Refer to accept4.
1899 (Glibc unistd.h): Refer to dup3, pipe2.
1900 Reported by Eric Blake.
1902 2009-08-22 Jim Meyering <meyering@redhat.com>
1903 Bruno Haible <bruno@clisp.org>
1905 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
1906 This makes it so packages using automake-1.11's silent-rules option
1907 can print e.g., a single "GEN configmake.h" line, rather than
1908 the 30+ statements that perform the job. If you want to see the
1909 actual commands, you can still run "make V=1".
1910 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
1911 so that make output is abbreviated when those variables are defined
1913 * modules/argz: Likewise.
1914 * modules/arpa_inet: Likewise.
1915 * modules/byteswap: Likewise.
1916 * modules/configmake: Likewise.
1917 * modules/dirent: Likewise.
1918 * modules/errno: Likewise.
1919 * modules/fcntl: Likewise.
1920 * modules/float: Likewise.
1921 * modules/fnmatch: Likewise.
1922 * modules/getopt-posix: Likewise.
1923 * modules/glob: Likewise.
1924 * modules/iconv_open: Likewise.
1925 * modules/inttypes: Likewise.
1926 * modules/localcharset: Likewise.
1927 * modules/locale: Likewise.
1928 * modules/math: Likewise.
1929 * modules/netdb: Likewise.
1930 * modules/netinet_in: Likewise.
1931 * modules/poll: Likewise.
1932 * modules/posix_spawnp-tests: Likewise.
1933 * modules/sched: Likewise.
1934 * modules/search: Likewise.
1935 * modules/selinux-h: Likewise.
1936 * modules/signal: Likewise.
1937 * modules/spawn: Likewise.
1938 * modules/stdarg: Likewise.
1939 * modules/stdbool: Likewise.
1940 * modules/stddef: Likewise.
1941 * modules/stdint: Likewise.
1942 * modules/stdio: Likewise.
1943 * modules/stdlib: Likewise.
1944 * modules/string: Likewise.
1945 * modules/strings: Likewise.
1946 * modules/sys_file: Likewise.
1947 * modules/sys_ioctl: Likewise.
1948 * modules/sys_select: Likewise.
1949 * modules/sys_socket: Likewise.
1950 * modules/sys_stat: Likewise.
1951 * modules/sys_time: Likewise.
1952 * modules/sys_times: Likewise.
1953 * modules/sys_utsname: Likewise.
1954 * modules/sys_wait: Likewise.
1955 * modules/sysexits: Likewise.
1956 * modules/time: Likewise.
1957 * modules/unistd: Likewise.
1958 * modules/wchar: Likewise.
1959 * modules/wctype: Likewise.
1961 2009-08-22 Jim Meyering <meyering@redhat.com>
1963 announce-gen: detect write failure
1964 * build-aux/announce-gen: Add Coda at end.
1965 Remove equivalent-but-more-verbose block at top.
1967 2009-08-19 Akim Demaille <demaille@gostai.com>
1969 bootstrap: --help to stdout.
1970 * bootstrap (usage): Don't send --help to stderr.
1971 Use a here doc instead of a long string.
1973 2009-08-21 Eric Blake <ebb9@byu.net>
1975 test-popen-safer: split from test-popen
1976 * tests/test-popen.c (main): Move...
1977 * tests/test-popen.h: ...into new file.
1978 * tests/test-popen-safer2.c: New file.
1979 * modules/popen-tests (Files): Add test-popen.h.
1980 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
1981 Suggested by Bruno Haible.
1983 test-fcntl-safer: split from test-open
1984 * tests/test-open.c (main): Move...
1985 * tests/test-open.h: ...into new file.
1986 * tests/test-fcntl-safer.c: New file.
1987 * modules/open-tests (Files): Add test-open.h.
1988 * modules/fcntl-safer-tests: New file.
1989 Suggested by Bruno Haible.
1991 test-fopen-safer: split from test-fopen
1992 * tests/test-fopen.c (main): Move...
1993 * tests/test-fopen.h: ...into new file.
1994 * tests/test-fopen-safer.c: New file.
1995 * modules/fopen-tests (Files): Add test-fopen.h.
1996 * modules/fopen-safer-tests: New file.
1997 Suggested by Bruno Haible.
1999 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
2001 popen-safer: test O_CLOEXEC at run-time.
2002 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
2004 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
2006 fcntl: move more flags to the header
2007 * lib/cloexec.c: Do not define FD_CLOEXEC here.
2008 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
2009 * lib/fcntl.in.h: Do both things here.
2011 2009-08-21 Jim Meyering <meyering@redhat.com>
2013 consistently remove $@-t before redirecting to it
2014 * modules/argz: Remove $@-t and $@ before redirecting to the former.
2015 * modules/alloca-opt: Likewise.
2016 * modules/byteswap: Likewise.
2017 * modules/fnmatch: Likewise.
2018 * modules/getopt-posix: Likewise.
2019 * modules/glob: Likewise.
2020 * modules/poll: Likewise.
2021 * modules/posix_spawnp-tests: Likewise.
2022 * modules/sys_socket: Likewise.
2023 * modules/sysexits: Likewise.
2025 2009-08-21 Eric Blake <ebb9@byu.net>
2027 popen: simplify access to original popen
2028 * lib/popen.c (rpl_popen): No need to worry about popen being a
2030 Reported by Bruno Haible.
2032 2009-08-20 Eric Blake <ebb9@byu.net>
2034 build: avoid some compiler warnings
2035 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
2036 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
2038 (new_exclude_segment, excluded_file_pattern_p)
2039 (excluded_file_name_p): Reduce scope.
2040 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
2041 old-style declaration.
2043 2009-08-20 Simon Josefsson <simon@josefsson.org>
2045 * tests/test-exclude1.sh: Handle Windows EOL.
2046 * tests/test-exclude2.sh: Likewise.
2047 * tests/test-exclude3.sh: Likewise.
2048 * tests/test-exclude4.sh: Likewise.
2049 * tests/test-exclude5.sh: Likewise.
2050 * tests/test-exclude6.sh: Likewise.
2051 * tests/test-exclude7.sh: Likewise.
2053 2009-08-19 Akim Demaille <demaille@gostai.com>
2055 bootstrap: find sha1sum when named gsha1sum.
2056 * bootstrap (find_tool): New.
2060 2009-08-20 Jim Meyering <meyering@redhat.com>
2062 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
2063 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
2064 expression that converts "." in a file name to "\." in the resulting
2065 regexp. Start with a dummy statement, so that prior shell variable
2066 definitions are expanded portably. Reported by Simon Josefsson.
2068 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
2070 Fix polling for writeability of a screen buffer.
2071 * lib/poll.c: Distinguish input and screen buffers for the
2072 Win32 implementation.
2073 * lib/select.c: Likewise.
2075 2009-08-19 Eric Blake <ebb9@byu.net>
2077 popen-safer: prevent popen from clobbering std descriptors
2078 * modules/popen-safer: New file.
2079 * lib/popen-safer.c: Likewise.
2080 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
2081 * lib/stdio--.h (popen): Provide override.
2082 * lib/stdio-safer.h (popen_safer): Provide declaration.
2083 * tests/test-popen.c (includes): Partially test this.
2084 * modules/popen-safer-tests: New file, for more tests.
2085 * tests/test-popen-safer.c: Likewise.
2086 * MODULES.html.sh (file stream based Input/Output): Mention it.
2088 tests: test some of the *-safer modules
2089 * modules/fopen-safer (Depends-on): Add fopen.
2090 * modules/fcntl-safer (Depends-on): Add fcntl.
2091 * modules/stdlib-safer (Depends-on): Add stdlib.
2092 (configure.ac): Set indicator.
2093 * modules/unistd-safer (configure.ac): Likewise.
2094 * modules/tmpfile-safer (configure.ac): Likewise.
2095 (Depends-on): Add tmpfile.
2096 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
2098 * tests/test-fopen.c (includes): Test safer versions when they are
2100 * tests/test-open.c (includes): Likewise.
2102 popen: fix cygwin 1.5 bug when stdin closed
2103 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
2104 * modules/popen: New file.
2105 * modules/popen-tests: Likewise.
2106 * tests/test-popen.c: Likewise.
2107 * m4/popen.m4: Likewise.
2108 * lib/popen.c: Likewise.
2109 * lib/stdio.in.h (popen): New declaration.
2110 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
2111 * modules/stdio (Makefile.am): Likewise.
2112 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
2114 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
2116 maint.mk: give full control over update-copyright exclusions
2117 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
2118 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
2119 (update-copyright): Don't force inclusion of top-level
2120 ChangeLog. Don't force exclusion of all COPYING files, but make
2121 them the default exclusion instead.
2123 2009-08-16 Bruno Haible <bruno@clisp.org>
2125 Fix test failures on Solaris 10.
2126 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
2127 tests when Solaris iconv() is used.
2128 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
2129 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
2130 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
2131 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
2132 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
2134 2009-08-16 Bruno Haible <bruno@clisp.org>
2136 Fix test failures on Solaris 10.
2137 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
2138 'tr' program and pass it as first argument.
2139 * tests/test-pipe-filter-gi1.sh: Likewise.
2140 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
2141 program as first argument.
2142 * tests/test-pipe-filter-gi1.c (main): Likewise.
2144 2009-08-16 Eric Blake <ebb9@byu.net>
2146 fpurge: fix previous commits
2147 * modules/fpurge (Makefile.am): Make replacement conditional,
2148 partially reverting 2007-04-29 change; missed in previous
2150 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
2153 2009-08-16 Bruno Haible <bruno@clisp.org>
2155 Clarify fpurge's effect on the file position.
2156 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
2157 * tests/test-fpurge.c (main): Make a second pass for checking the file
2160 2009-08-16 Bruno Haible <bruno@clisp.org>
2162 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
2163 declaration of fpurge is missing.
2164 * tests/test-fpurge.c (main): Check that the file has not more contents
2165 than expected. Close the file before removing it.
2167 2009-08-15 Eric Blake <ebb9@byu.net>
2169 fpurge: don't wrap working cygwin implementation
2170 * lib/fpurge.c (fpurge): Fix comment typo.
2171 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
2172 1.7 to avoid replacement.
2173 * tests/test-fpurge.c (main): Enhance test.
2175 2009-08-15 Eric Blake <ebb9@byu.net>
2176 and Jim Meyering <meyering@redhat.com>
2178 test-update-copyright: skip if perl is insufficient
2179 * tests/test-update-copyright.sh: Failure to run maintainer tool
2180 should not cause testsuite failure on cygwin 1.5.
2182 2009-08-14 Eric Blake <ebb9@byu.net>
2184 doc: mention more functions added in cygwin 1.7.0
2185 * doc/posix-headers/limits.texi (limits.h): Update for recent
2187 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
2188 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
2189 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
2190 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
2191 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
2193 2009-08-14 Eric Blake <ebb9@byu.net>
2195 maint.mk: simplify update-copyright rule
2196 * top/maint.mk (update-copyright-local): Delete, and document how
2197 to do it in cfg.mk instead.
2198 (update-copyright-exclude-regexp): Delete, and document how to do
2199 it in .x-update-copyright instead.
2200 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
2203 2009-08-14 Bruno Haible <bruno@clisp.org>
2205 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
2207 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
2209 maint.mk: support update-copyright-env
2210 * top/maint.mk (update-copyright-env): Define place-holder.
2211 (update-copyright): Expand $(update-copyright-env) before
2212 invoking update-copyright.
2214 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
2216 update-copyright: implement forced reformatting
2217 * build-aux/update-copyright: Implement and document
2218 UPDATE_COPYRIGHT_FORCE.
2219 * tests/test-update-copyright.sh: Test it.
2221 2009-08-14 Eric Blake <ebb9@byu.net>
2222 and Bruno Haible <bruno@clisp.org>
2224 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
2225 * tests/test-locale.c: Revert previous patch related to NULL.
2226 * tests/test-stdio.c: Likewise.
2227 * tests/test-stdlib.c: Likewise.
2228 * tests/test-string.c: Likewise.
2229 * tests/test-unistd.c: Likewise.
2230 * modules/time-tests (Depends-on): Add verify.
2231 * modules/wchar-tests (Depends-on): Likewise.
2232 * tests/test-time.c: Test for NULL compliance.
2233 * tests/test-wchar.c: Likewise.
2234 * modules/locale (Depends-on): Add stddef.
2235 * modules/stdio (Depends-on): Likewise.
2236 * modules/stdlib (Depends-on): Likewise.
2237 * modules/string (Depends-on): Likewise.
2238 * modules/time (Depends-on): Likewise.
2239 * modules/unistd (Depends-on): Likewise.
2240 * modules/wchar (Depends-on): Likewise.
2241 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
2242 * lib/stdlib.in.h (includes): Likewise.
2243 * lib/string.in.h (includes): Likewise.
2244 * lib/time.in.h (includes): Likewise.
2245 * lib/unistd.in.h (includes): Likewise.
2246 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
2248 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
2249 * m4/stddef_h.m4: New file.
2250 * modules/stddef: Likewise.
2251 * lib/stddef.in.h: Likewise.
2252 * modules/stddef-tests: Likewise.
2253 * tests/test-stddef.c: Likewise.
2254 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
2255 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
2256 * doc/posix-headers/locale.texi (locale.h): Likewise.
2257 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
2258 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
2259 * doc/posix-headers/string.texi (string.h): Likewise.
2260 * doc/posix-headers/time.texi (time.h): Likewise.
2261 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
2262 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
2264 2009-08-14 Eric Blake <ebb9@byu.net>
2266 doc: improve git diff of texinfo files
2267 * .gitattributes: Add rule for *.texi files, with hint on how to
2269 Copied from m4, and based on a report by Bruno Haible.
2271 2009-08-14 Bruno Haible <bruno@clisp.org>
2273 Disable multithread support by default on Cygwin 1.5.x for real.
2274 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
2276 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
2278 update-copyright: much ado about intervals
2279 * build-aux/update-copyright: Implement and document
2280 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
2281 of copyright year intervals.
2282 Also, document UPDATE_COPYRIGHT_YEAR.
2283 * tests/test-update-copyright.sh: Test it.
2285 update-copyright: convert 2-digit to 4-digit years
2286 * build-aux/update-copyright: Implement and document.
2287 * tests/test-update-copyright.sh: Update.
2289 2009-08-14 Jim Meyering <meyering@redhat.com>
2291 test-exclude: avoid coreutils "make check" failure
2292 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
2293 just as in test-argmatch.c.
2295 2009-08-13 Eric Blake <ebb9@byu.net>
2297 test-dup2: fix bad assumption
2298 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
2299 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
2301 test-version-etc: fix CRLF portability issue
2302 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
2304 * tests/test-argp-version-etc-1.sh: Likewise.
2306 getopt: update client modules
2307 * modules/argp (Depends-on): Use getopt-gnu.
2308 * modules/git-merge-changelog (Depends-on): Likewise.
2309 * modules/long-options (Depends-on): Likewise.
2310 * modules/xstrtol (Depends-on): Likewise.
2312 2009-08-13 Simon Josefsson <simon@josefsson.org>
2314 * tests/test-version-etc.sh: Don't fail on different
2315 project/version. Don't fail on CRLF differences. Rewrite to use
2316 multiple -e instead of multiple sed forks, suggested by Eric Blake
2318 * tests/test-argp-version-etc-1.sh: Likewise.
2320 2009-08-13 Simon Josefsson <simon@josefsson.org>
2322 * tests/test-version-etc.sh: Don't fail on different
2325 2009-08-12 Bruno Haible <bruno@clisp.org>
2327 Tests for modules 'getopt-posix', 'getopt-gnu'.
2328 * modules/getopt-posix-tests: New file.
2329 * tests/test-getopt.c: New file.
2330 * tests/test-getopt.h: New file.
2331 * tests/test-getopt_long.h: New file.
2333 New modules 'getopt-posix', 'getopt-gnu'.
2334 * modules/getopt-gnu: New file, renamed from modules/getopt.
2335 * modules/getopt-posix: New file.
2336 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
2337 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
2338 (gl_GETOPT): Remove macro.
2339 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
2340 Disable the test against BSD systems that declare optreset. Test
2341 against mingw bug. Test against lack of support of optional arguments
2343 * doc/glibc-headers/getopt.texi: Update module name and list of
2345 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
2346 'getopt-gnu' and more portability problems.
2347 * NEWS: Mention the changes.
2349 2009-08-12 Bruno Haible <bruno@clisp.org>
2351 Ensure that optarg etc. get declared by <unistd.h>.
2352 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
2353 AC_USE_SYSTEM_EXTENSIONS.
2354 * modules/getopt (Depends-on): Add 'extensions'.
2356 2009-08-12 Bruno Haible <bruno@clisp.org>
2358 Avoid test link errors.
2359 * modules/pipe-filter-ii-tests (Makefile.am): Define
2360 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
2361 * modules/pipe-filter-gi-tests (Makefile.am): Define
2362 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
2363 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2365 2009-08-12 Bruno Haible <bruno@clisp.org>
2367 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
2368 gl_GETOPT_SUBSTITUTE before.
2369 (gl_GETOPT): Use it.
2370 * m4/argp.m4 (gl_ARGP): Update.
2371 Reported by Sergey Poznyakoff.
2373 * m4/getopt.m4: Reorder macros.
2374 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
2375 (gl_GETOPT_SUBSTITUTE): Remove macro.
2377 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
2379 Minor improvement in gitlog-to-changelog
2381 * build-aux/gitlog-to-changelog: New option `--format' makes
2382 output format string configurable.
2384 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
2386 Optimize exclude: use hash tables for non-wildcard patterns.
2388 * lib/exclude.c: Include hash.h and mbuiter.h
2389 (struct exclude_pattern, exclude_segment): New data types.
2390 (struct exclude): Rewrite.
2391 (fnmatch_pattern_has_wildcards): New function.
2392 (new_exclude_segment, free_exclude_segment): New functions.
2393 (excluded_file_pattern_p, excluded_file_name_p): New functions.
2394 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
2395 * lib/exclude.h (is_fnmatch_pattern): New prototype.
2396 * modules/exclude: Depend on hash and mbuiter.
2398 * modules/exclude-tests: New file.
2399 * tests/test-exclude.c: New file.
2400 * tests/test-exclude1.sh: New file.
2401 * tests/test-exclude2.sh: New file.
2402 * tests/test-exclude3.sh: New file.
2403 * tests/test-exclude4.sh: New file.
2404 * tests/test-exclude5.sh: New file.
2405 * tests/test-exclude6.sh: New file.
2406 * tests/test-exclude7.sh: New file.
2408 2009-08-12 Bruno Haible <bruno@clisp.org>
2410 Ensure that getopt() gets declared by <unistd.h>.
2411 * lib/unistd.in.h: Conditionally include getopt.h.
2412 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
2413 Set GNULIB_UNISTD_H_GETOPT.
2414 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2415 GNULIB_UNISTD_H_GETOPT.
2416 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
2418 2009-08-12 Bruno Haible <bruno@clisp.org>
2421 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
2422 gl_replace_getopt instead of GETOPT_H.
2424 2009-08-12 Bruno Haible <bruno@clisp.org>
2426 * m4/getopt.m4: Add comments.
2428 2009-08-12 Bruno Haible <bruno@clisp.org>
2430 Disable multithread support by default on Cygwin 1.5.x.
2431 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
2432 set gl_use_threads=no if not specified otherwise.
2434 2009-08-11 Bruno Haible <bruno@clisp.org>
2436 Avoid compilation error on NetBSD 5.0.
2437 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
2438 * tests/test-stdio.c: Likewise.
2439 * tests/test-stdlib.c: Likewise.
2440 * tests/test-string.c: Likewise.
2441 * tests/test-unistd.c: Likewise.
2442 Reported by Greg Troxel <gdt@ir.bbn.com>
2443 at <https://savannah.gnu.org/support/?106973>.
2445 2009-08-11 Bruno Haible <bruno@clisp.org>
2447 * modules/dup2-tests (Depends-on): Remove close.
2449 Undo 2009-07-19 commit.
2450 * modules/acl-tests (Depends-on): Remove close.
2451 * modules/binary-io-tests (Depends-on): Likewise.
2452 * modules/closein-tests (Depends-on): Likewise.
2453 * modules/flock-tests (Depends-on): Likewise.
2454 * modules/fsync-tests (Depends-on): Likewise.
2455 * modules/lseek-tests (Depends-on): Likewise.
2456 * modules/pipe-tests (Depends-on): Likewise.
2457 * modules/posix_spawn-tests (Depends-on): Likewise.
2458 * modules/posix_spawnp-tests (Depends-on): Likewise.
2459 * modules/stat-time-tests (Depends-on): Likewise.
2460 * modules/yesno-tests (Depends-on): Likewise.
2462 2009-08-10 Bruno Haible <bruno@clisp.org>
2464 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
2466 2009-08-10 Bruno Haible <bruno@clisp.org>
2469 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
2471 2009-08-10 Bruno Haible <bruno@clisp.org>
2473 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
2474 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
2475 not only the first time.
2476 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
2477 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
2478 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
2479 is 1, not only the the first time.
2481 2009-08-10 Bruno Haible <bruno@clisp.org>
2483 Make it possible to use module 'gethostname' without module 'close'.
2484 * lib/unistd.in.h (close): Evoke a link error only if
2485 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
2486 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2487 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
2488 * modules/unistd (Makefile.am): Substitute
2489 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
2490 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
2491 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
2492 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
2493 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
2494 * modules/sys_ioctl (Makefile.am): Substitute
2495 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
2496 * modules/socket (configure.ac): On native Windows, set
2497 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
2498 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
2499 Reported by Sam Steingold <sds@gnu.org>.
2501 2009-08-10 Bruno Haible <bruno@clisp.org>
2503 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
2504 * modules/ioctl (configure.ac): Likewise.
2506 2009-08-10 Bruno Haible <bruno@clisp.org>
2508 Avoid collision between gnulib wrapper and libintl wrapper.
2509 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
2510 already defined in intl/printf.c.
2511 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
2512 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
2514 2009-08-09 Bruno Haible <bruno@clisp.org>
2516 Make <sys/select.h> really self-contained, also on Solaris 10.
2517 * lib/sys_select.in.h: Include <string.h>.
2518 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
2520 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
2521 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
2522 Reported by Jim Meyering.
2524 2009-08-09 Bruno Haible <bruno@clisp.org>
2526 Avoid warnings from 'aclocal' that are due to a use of macro name
2527 AM_XGETTEXT_OPTION that is not defined in automake.
2528 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
2530 * modules/error (configure.ac): Likewise.
2531 * modules/propername (configure.ac): Likewise.
2532 * modules/vasprintf (configure.ac): Likewise.
2533 * modules/verror (configure.ac): Likewise.
2534 * modules/xprintf (configure.ac): Likewise.
2535 * modules/xvasprintf (configure.ac): Likewise.
2537 2009-08-08 Bruno Haible <bruno@clisp.org>
2539 Avoid compilation error in C++ mode.
2540 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
2541 Reported by Sam Steingold <sds@gnu.org>.
2543 2009-08-08 Bruno Haible <bruno@clisp.org>
2545 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
2546 for the various Unix platforms.
2547 * doc/posix-headers/limits.texi: Update platforms list regarding
2549 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2551 2009-08-07 Jim Meyering <meyering@redhat.com>
2553 selinux-at: fix typo in a comment
2554 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
2555 Spotted by Paolo Bonzini.
2557 selinux-at: remove redundant m4 code, add documentation
2558 * modules/selinux-at (configure.ac): Remove redundant code.
2559 LIB_SELINUX is already set via the dependent module, selinux-h.
2560 (Include): Add quotes around selinux-at.h.
2561 * lib/selinux-at.h: Add documentation.
2562 Reported by Bruno Haible in
2563 http://marc.info/?l=gnulib-bug&m=124958988300749
2565 2009-08-07 Bruno Haible <bruno@clisp.org>
2567 Avoid link error on MacOS X 10.3 and 10.4.
2568 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
2570 * lib/argp-pv.c (argp_program_version): Likewise.
2571 Reported by Simon Josefsson.
2573 2009-08-07 Simon Josefsson <simon@josefsson.org>
2575 * tests/test-version-etc.sh: Use $EXEEXT.
2577 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
2579 update-copyright: update documentation to point to maint.mk
2580 * build-aux/update-copyright: Here.
2582 2009-08-06 Jim Meyering <meyering@redhat.com>
2584 maint.mk: support update-copyright-local
2585 * top/maint.mk (update-copyright-local): Define place-holder.
2586 (update-copyright): Depend on $(update-copyright-local).
2588 2009-08-06 Jim Meyering <meyering@redhat.com>
2590 selinux-at: new module
2591 Initially written for coreutils, this module will soon be
2592 used by findutils, too.
2593 * MODULES.html.sh [Misc]: Add selinux-at.
2594 * lib/selinux-at.h: New file, from coreutils.
2595 * lib/selinux-at.c: Likewise.
2596 * modules/selinux-at: Likewise.
2597 (License): Change from LGPL to GPL, since it depends
2598 on the GPL'd openat module.
2601 * README: Remove references to cogito.
2602 Remove cvs-repo-updating instructions from 2007.
2603 Don't imply that CVS is better if you have limited disk space.
2605 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
2607 update-copyright: support C-style comments
2608 * build-aux/update-copyright: Implement and document.
2609 * tests/test-update-copyright.sh: Test.
2611 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
2613 update-copyright: support omitted "(C)"
2614 * build-aux/update-copyright: Implement and document. Also,
2615 allow variable whitespace before "(C)".
2616 * tests/test-update-copyright.sh: Test.
2618 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
2620 update-copyright: don't trip on non-FSF copyright statements
2621 * build-aux/update-copyright: Fix so that the first correctly
2622 formatted FSF copyright statement is recognized no matter what
2623 appears before it. Update documentation.
2624 * tests/test-update-copyright.sh: Test that.
2626 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
2628 update-copyright: clean up code a little
2629 * build-aux/update-copyright: Append "_re" to the name of any
2630 variable holding a regular expression.
2631 Replace "old" and "new" with "stmt" in variable names.
2632 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
2634 Format code more consistently.
2636 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
2638 update-copyright-tests: improve portability
2639 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
2640 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
2642 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
2644 update-copyright: support @copyright{} and ©
2645 * build-aux/update-copyright: Implement and document.
2646 * tests/test-update-copyright.sh: Test.
2648 2009-08-04 Jim Meyering <meyering@redhat.com>
2650 update-copyright-tests: correctly test EOL=\r\n handling
2651 * tests/test-update-copyright.sh: Put \r at the end of some lines
2652 for the dos-eol tests. Based on a patch by Joel E. Denny.
2654 maint.mk: make update-copyright exclusion list more configurable
2655 * top/maint.mk (update-copyright): Default to excluding COPYING,
2656 but allow an override, in case someone does want to update that file.
2658 maint.mk: don't update copyright date in COPYING
2659 * top/maint.mk (update-copyright): Exclude COPYING.
2661 maint.mk: add a copyright-updating rule
2662 * top/maint.mk (update-copyright): New rule.
2663 Derived from coreutils/Makefile.am.
2665 update-copyright: rename some variables
2666 * build-aux/update-copyright: Rename a few variables for clarity.
2667 Tweak syntax. List Joel E. Denny as coauthor.
2669 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
2671 update-copyright: fix bug for 2-digit last year and add tests
2672 * build-aux/update-copyright: Fix bug.
2673 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
2675 * modules/update-copyright-tests: New
2676 * tests/test-update-copyright.sh: New.
2678 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
2680 update-copyright: handle leading tabs in line prefix
2681 * build-aux/update-copyright: Count leading tabs as 8 spaces
2682 when computing margin. This helps with the formatting of
2683 ChangeLogs, for example.
2684 Fix documentation a little.
2686 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
2688 update-copyright: support EOL=\r\n
2689 * build-aux/update-copyright: Implement that.
2691 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
2693 update-copyright: automatically format copyright statements
2694 * build-aux/update-copyright: Implement that.
2695 Also, be a little more predictable and safer by always failing
2696 when the full copyright format is not perfectly recognized as an
2697 unbroken whole. Discussed at
2698 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
2699 Rewrite documentation.
2701 2009-08-03 Bruno Haible <bruno@clisp.org>
2703 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
2705 2009-08-02 Bruno Haible <bruno@clisp.org>
2707 Tests for module 'uname'.
2708 * modules/uname-tests: New file.
2709 * tests/test-uname.c: New file.
2712 * lib/uname.c: New file.
2713 * m4/uname.m4: New file.
2714 * modules/uname: New file.
2715 * doc/posix-functions/uname.texi: Mention the new module.
2717 2009-08-02 Bruno Haible <bruno@clisp.org>
2719 Tests for module 'sys_utsname'.
2720 * modules/sys_utsname-tests: New file.
2721 * tests/test-sys_utsname.c: New file.
2723 New module 'sys_utsname'.
2724 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
2725 * m4/sys_utsname_h.m4: New file.
2726 * modules/sys_utsname: New file.
2727 * doc/posix-headers/sys_utsname.texi: Mention the new module.
2729 2009-08-02 Bruno Haible <bruno@clisp.org>
2731 Implicitly initialize the sockets library.
2732 * lib/gethostname.c: Include sockets.h.
2733 (rpl_gethostname): Invoke gl_sockets_startup.
2734 * lib/socket.c: Include sockets.h.
2735 (rpl_socket): Invoke gl_sockets_startup.
2736 * modules/gethostname (Depends-on): Add sockets.
2737 * modules/socket (Depends-on): Likewise.
2738 * tests/test-poll.c: Don't include sockets.h.
2739 (main): Don't invoke gl_sockets_startup.
2740 * tests/test-select.c: Don't include sockets.h.
2741 (main): Don't invoke gl_sockets_startup.
2743 2009-08-02 Bruno Haible <bruno@clisp.org>
2745 Allow multiple calls to gl_sockets_startup.
2746 * lib/sockets.c (initialized_sockets_version): New variable.
2747 (gl_sockets_startup): Do nothing if already called for this or a higher
2749 (gl_sockets_cleanup): Reset initialized_sockets_version.
2751 2009-08-03 Simon Josefsson <simon@josefsson.org>
2753 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
2754 different project/version.
2756 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
2757 Bruno Haible <bruno@clisp.org>
2759 Tests for module 'pipe-filter-gi'.
2760 * modules/pipe-filter-gi-tests: New file.
2761 * tests/test-pipe-filter-gi1.sh: New file.
2762 * tests/test-pipe-filter-gi1.c: New file.
2763 * tests/test-pipe-filter-gi2.sh: New file.
2764 * tests/test-pipe-filter-gi2-main.c: New file.
2765 * tests/test-pipe-filter-gi2-child.c: New file.
2767 New module 'pipe-filter-gi'.
2768 * lib/pipe-filter-gi.c: New file.
2769 * modules/pipe-filter-gi: New file.
2771 2009-08-02 Bruno Haible <bruno@clisp.org>
2772 Paolo Bonzini <bonzini@gnu.org>
2774 Tests for module 'pipe-filter-ii'.
2775 * modules/pipe-filter-ii-tests: New file.
2776 * tests/test-pipe-filter-ii1.sh: New file.
2777 * tests/test-pipe-filter-ii1.c: New file.
2778 * tests/test-pipe-filter-ii2.sh: New file.
2779 * tests/test-pipe-filter-ii2-main.c: New file.
2780 * tests/test-pipe-filter-ii2-child.c: New file.
2782 New module 'pipe-filter-ii'.
2783 * lib/pipe-filter.h: New file.
2784 * lib/pipe-filter-ii.c: New file.
2785 * lib/pipe-filter-aux.h: New file.
2786 * modules/pipe-filter-ii: New file.
2788 2009-08-02 Simon Josefsson <simon@josefsson.org>
2790 * lib/gc-libgcrypt.c: Change copyright to FSF.
2791 * lib/gc-gnulib.c: Likewise.
2793 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
2795 * lib/gethostname.c: Include limits.h.
2797 2009-08-02 Simon Josefsson <simon@josefsson.org>
2798 Bruno Haible <bruno@clisp.org>
2800 Ensure HOST_NAME_MAX as part of the gethostname module.
2801 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
2802 define also HOST_NAME_MAX.
2803 * tests/test-gethostname.c: Include <limits.h>.
2804 (main): Check also HOST_NAME_MAX.
2805 * doc/posix-headers/limits.texi: Document the mingw problem.
2807 2009-08-02 Bruno Haible <bruno@clisp.org>
2809 * lib/gethostname.c (gethostname): Fix handling of large len argument.
2812 2009-03-31 Simon Josefsson <simon@josefsson.org>
2814 * lib/gethostname.c: Add Windows wrapper.
2815 * m4/gethostname.m4: Look for gethostname in -lws2_32.
2816 * modules/gethostname: Depend on sys_socket & errno, for also
2817 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
2818 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
2820 2009-07-31 Jim Meyering <meyering@redhat.com>
2822 getloadavg: fix symbol name in comment
2823 * lib/getloadavg.c: Correct a typo I introduced when adding
2824 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
2825 Matt Kraai spotted the problem.
2827 2009-07-29 Matt Kraai <mkraai@beckman.com>
2829 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
2830 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
2831 code also if ! defined N_NAME_POINTER.
2832 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
2833 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
2834 but the n_name member is a 12-byte array.
2836 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
2838 update-copyright: generalize comment handling
2839 * build-aux/update-copyright: Handle copyright statements
2840 within more comment styles.
2842 Report any file with an external copyright holder or parse failure.
2844 2009-07-29 Jim Meyering <meyering@redhat.com>
2846 mktime: correct setting of REPLACE_MKTIME
2847 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
2849 update-copyright: new module
2850 * modules/update-copyright: New file.
2851 * build-aux/update-copyright: New file.
2852 * MODULES.html.sh (maint+release support): Add update-copyright.
2854 2009-07-27 Bruno Haible <bruno@clisp.org>
2856 Fix compilation error when <ctime> is used and mktime is replaced.
2857 * lib/time.in.h (mktime): New declaration.
2858 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
2859 REPLACE_MKTIME instead of defining mktime in config.h.
2860 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
2861 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
2862 Reported by Ross McFarland <rwmcfa1@neces.com>.
2864 2009-07-27 Bruno Haible <bruno@clisp.org>
2866 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
2867 Reported by Matt Kraai <mkraai@beckman.com>.
2869 2009-07-25 Jim Meyering <meyering@redhat.com>
2871 maint.mk: avoid warnings about missing files
2872 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
2873 diagnostic when .prev-version does not exist.
2874 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
2875 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
2877 Suggestions from Simon Josefsson.
2879 2009-07-25 Bruno Haible <bruno@clisp.org>
2881 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
2882 defined as macros. Needed on QNX 6.4.1.
2883 Reported by Matt Kraai <mkraai@beckman.com>.
2885 2009-07-23 Jim Meyering <meyering@redhat.com>
2887 maint.mk: invoke "make dist" with a working value of XZ_OPT
2888 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
2890 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
2892 Make fseeko.c compile on QNX.
2893 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
2895 2009-07-22 Peter Simons <simons@cryp.to>
2897 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
2898 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
2899 * lib/md4.h: Likewise.
2900 * lib/md5.h: Likewise.
2901 * lib/sha1.h: Likewise.
2902 * lib/sha256.h: Likewise.
2903 * lib/sha512.h: Likewise.
2905 tests-sha1: don't assign literal string to 'char *' variable
2906 * tests/test-sha1.c (main): Declare locals with "const" to match
2907 attributes of the right hand side.
2909 2009-07-21 Eric Blake <ebb9@byu.net>
2911 dup2: fix more mingw problems
2912 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
2914 * doc/posix-functions/dup2.texi (dup2): Document the bug.
2915 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
2916 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
2917 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
2920 2009-07-21 Jim Meyering <meyering@redhat.com>
2922 vc-list-files: avoid failure when /bin/sh is dash
2923 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
2924 On some Debian based systems, /bin/sh is a symlink to dash, and running
2925 this command would omit the "/" following each 'tests' prefix:
2926 dash -x build-aux/vc-list-files -C . tests
2927 That is because bash and dash work differently:
2928 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
2932 2009-07-21 Eric Blake <ebb9@byu.net>
2934 dup2-tests: test previous patch
2935 * modules/dup2-tests: New file.
2936 * tests/test-dup2.c: Likewise.
2937 * tests/test-open.c (main): Avoid unspecified behavior.
2938 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
2941 dup2: work around mingw and cygwin 1.5 bug
2942 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
2943 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
2944 * modules/unistd (Makefile.am): Substitute it.
2945 * lib/unistd.in.h (dup2): Declare the replacement.
2946 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
2947 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
2948 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
2949 * modules/execute (Depends-on): Add dup2.
2950 * modules/fseterr (Depends-on): Likewise.
2951 * modules/pipe (Depends-on): Likewise.
2952 * modules/posix_spawn-internal (Depends-on): Likewise.
2954 2009-07-21 Bruno Haible <bruno@clisp.org>
2956 * modules/.gitattributes: New file.
2958 2009-07-20 Bruno Haible <bruno@clisp.org>
2960 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
2963 2009-07-20 Eric Blake <ebb9@byu.net>
2965 test-pipe: make a bit more robust.
2966 * tests/test-pipe.c (myerr): Allow error messages regardless of
2967 what we do to stderr.
2968 (test_pipe): Rearrange to avoid deadlock.
2969 (child_main): Try a larger read, to ensure we avoided deadlock.
2970 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
2971 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
2974 2009-07-19 Jim Meyering <meyering@redhat.com>
2976 fts: avoid false-positive cycle-detection
2977 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
2978 for each new command line argument.
2980 2009-07-19 Bruno Haible <bruno@clisp.org>
2982 Fix build error on mingw with the modules sys_select and unistd.
2983 * modules/acl-tests (Depends-on): Add close.
2984 * modules/binary-io-tests (Depends-on): Likewise.
2985 * modules/closein-tests (Depends-on): Likewise.
2986 * modules/flock-tests (Depends-on): Likewise.
2987 * modules/fsync-tests (Depends-on): Likewise.
2988 * modules/lseek-tests (Depends-on): Likewise.
2989 * modules/pipe-tests (Depends-on): Likewise.
2990 * modules/posix_spawn-tests (Depends-on): Likewise.
2991 * modules/posix_spawnp-tests (Depends-on): Likewise.
2992 * modules/stat-time-tests (Depends-on): Likewise.
2993 * modules/yesno-tests (Depends-on): Likewise.
2995 2009-07-19 Bruno Haible <bruno@clisp.org>
2998 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
2999 macros, not at the compiler macros.
3000 * lib/pipe.c: Likewise.
3001 * lib/execute.c: Likewise.
3002 * lib/spawni.c: Likewise.
3004 2009-07-19 Bruno Haible <bruno@clisp.org>
3006 Fix handling of closed stdin/stdout/stderr on mingw.
3007 * lib/w32spawn.h: Include unistd.h.
3008 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
3009 file descriptor with O_NOINHERIT flag.
3010 (fd_safer_noinherit): New function, based on fd-safer.c.
3011 (dup_safer_noinherit): New function, based on dup-safer.c.
3012 (undup_safer_noinherit): New function.
3013 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
3014 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
3015 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
3016 instead of fd_safer.
3017 * tests/test-pipe.c: Include <windows.h>.
3018 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
3020 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
3022 (test_pipe): Pass an extra argument for disambiguation.
3023 (main): Invoke parent_main or child_main.
3025 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
3028 2009-07-18 Eric Blake <ebb9@byu.net>
3030 test-pipe: fix mingw build
3031 * tests/test-pipe.c (main): Avoid fcntl on mingw.
3033 2009-07-18 Bruno Haible <bruno@clisp.org>
3035 * modules/pipe-tests (Makefile.am): Fix typo.
3037 2009-07-18 Eric Blake <ebb9@byu.net>
3039 error: fix mingw build
3040 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
3041 Reported by Bruno Haible.
3043 error: avoid undefined use of stdout
3044 * lib/error.c (error, error_at_line): Check that fd 1 is open
3045 before flushing stdout. Avoids a crash on cygwin when libsigsegv
3046 is handling faults and the close_stdout module wants to report the
3047 detection of closed stdout as an error.
3049 2009-07-17 Eric Blake <ebb9@byu.net>
3051 pipe: be robust in face of closed fds
3052 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
3053 should cause child to misbehave.
3054 * modules/pipe-tests: New module.
3055 * tests/test-pipe.c: New file.
3056 * tests/test-pipe.sh: New file.
3057 Reported by Akim Demaille.
3059 2009-07-14 Bruno Haible <bruno@clisp.org>
3061 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
3062 Reported by anonymous kc.
3064 2009-07-07 Jim Meyering <meyering@redhat.com>
3066 maint.mk: don't look for translatable strings in *.m4 or *.mk
3067 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
3068 when searching for translatable strings.
3070 2009-07-05 Jim Meyering <meyering@redhat.com>
3072 remove superfluous parentheses in STREQ definition
3073 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
3074 * lib/getugroups.c (STREQ): Likewise.
3075 * lib/fnmatch.c (STREQ): Likewise.
3076 Spotted by Bruno Haible.
3078 2009-07-04 Jim Meyering <meyering@redhat.com>
3080 argv-iter: new module
3081 * MODULES.html.sh: Add argv-iter.
3082 * lib/argv-iter.c, lib/argv-iter.h: New files.
3083 * modules/argv-iter: New file.
3084 * modules/argv-iter-tests: New file.
3085 * tests/test-argv-iter.c: Test it.
3087 2009-07-04 Bruno Haible <bruno@clisp.org>
3090 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
3091 contains more exact copies of a given entry than file2, leave the extra
3092 copies unpaired rather than aborting.
3093 Reported by Eric Blake.
3095 2009-07-02 Bruno Haible <bruno@clisp.org>
3097 Speedup git-merge-changelog for git cherry-pick.
3098 * lib/git-merge-changelog.c (struct entries_mapping): New type.
3099 (entries_mapping_get): New function, extracted from compute_mapping.
3100 (entries_mapping_reverse_get): New function.
3101 (compute_mapping): Add a 'full' argument. Return the result in a
3102 'struct entries_mapping'.
3103 (main): Update. Access the mappings through entries_mapping_get.
3104 Reported by Eric Blake.
3106 2009-07-02 Bruno Haible <bruno@clisp.org>
3108 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
3111 2009-07-02 Bruno Haible <bruno@clisp.org>
3113 Speed up approximate search for matching ChangeLog entries.
3114 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
3115 argument. Call fstrcmp_bounded instead of fstrcmp.
3116 (compute_mapping, try_split_merged_entry, main): Update callers.
3118 2009-07-02 Bruno Haible <bruno@clisp.org>
3120 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
3122 2009-06-30 Bruno Haible <bruno@clisp.org>
3124 Reduce the number of uc_is_cased calls.
3125 * lib/unicase.h (casing_suffix_context_t): Add
3126 'first_char_except_ignorable' field.
3127 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
3128 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
3129 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
3131 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
3132 case-ignorable characters.
3133 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
3134 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
3135 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
3136 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
3137 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
3139 2009-06-30 Bruno Haible <bruno@clisp.org>
3141 Tests for module 'unicase/ignorable'.
3142 * modules/unicase/ignorable-tests: New file.
3143 * tests/unicase/test-ignorable.c: New file, generated by
3146 Tests for module 'unicase/cased'.
3147 * modules/unicase/cased-tests: New file.
3148 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
3149 * tests/unicase/test-predicate-part1.h: New file, derived from
3150 tests/unictype/test-predicate-part1.h.
3151 * tests/unicase/test-predicate-part2.h: New file, same as
3152 tests/unictype/test-predicate-part2.h.
3154 Fix evaluation of "Before C" condition of FINAL_SIGMA.
3155 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
3156 (output_casing_properties): New function.
3158 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
3159 * lib/unicase/cased.c: Include unictype/bitmap.h.
3160 (uc_is_cased): Define through a bitmap lookup.
3161 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
3162 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
3163 (uc_is_case_ignorable): Define through a bitmap lookup.
3164 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
3165 lib/unictype/bitmap.h.
3166 (Depends-on): Add inline. Clean up.
3167 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
3168 lib/unictype/bitmap.h.
3169 (Depends-on): Add inline. Clean up.
3170 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
3172 * tests/unicase/test-u16-tolower.c (main): Likewise.
3173 * tests/unicase/test-u32-tolower.c (main): Likewise.
3175 2009-06-30 Bruno Haible <bruno@clisp.org>
3177 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
3178 * lib/unicase/u16-casemap.c: Likewise.
3179 * lib/unicase/u32-casemap.c: Likewise.
3181 2009-06-29 Bruno Haible <bruno@clisp.org>
3183 Define u32_casefold as a wrapper around u32_ct_casefold.
3184 * lib/unicase/u32-casefold.c: Update.
3185 * modules/unicase/u32-casefold (Depends-on): Add
3186 unicase/u32-ct-casefold, unicase/empty-prefix-context,
3187 unicase/empty-suffix-context. Clean up.
3189 Define u16_casefold as a wrapper around u16_ct_casefold.
3190 * lib/unicase/u16-casefold.c: Update.
3191 * modules/unicase/u16-casefold (Depends-on): Add
3192 unicase/u16-ct-casefold, unicase/empty-prefix-context,
3193 unicase/empty-suffix-context. Clean up.
3195 Define u8_casefold as a wrapper around u8_ct_casefold.
3196 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
3197 * lib/unicase/u8-casefold.c: Update.
3198 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
3199 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3201 Define u32_totitle as a wrapper around u32_ct_totitle.
3202 * lib/unicase/u32-totitle.c: Update.
3203 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
3204 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3206 Define u16_totitle as a wrapper around u16_ct_totitle.
3207 * lib/unicase/u16-totitle.c: Update.
3208 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
3209 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3211 Define u8_totitle as a wrapper around u8_ct_totitle.
3212 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
3214 (FUNC): Delegate to U_CT_TOTITLE.
3215 * lib/unicase/u8-totitle.c: Update.
3216 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
3217 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
3219 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
3221 * modules/unicase/u32-tolower (Depends-on): Add
3222 unicase/empty-prefix-context, unicase/empty-suffix-context.
3224 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
3226 * modules/unicase/u16-tolower (Depends-on): Add
3227 unicase/empty-prefix-context, unicase/empty-suffix-context.
3229 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
3230 * modules/unicase/u8-tolower (Depends-on): Add
3231 unicase/empty-prefix-context, unicase/empty-suffix-context.
3233 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
3235 * modules/unicase/u32-toupper (Depends-on): Add
3236 unicase/empty-prefix-context, unicase/empty-suffix-context.
3238 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
3240 * modules/unicase/u16-toupper (Depends-on): Add
3241 unicase/empty-prefix-context, unicase/empty-suffix-context.
3243 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
3244 * modules/unicase/u8-toupper (Depends-on): Add
3245 unicase/empty-prefix-context, unicase/empty-suffix-context.
3247 New module 'unicase/u32-ct-casefold'.
3248 * lib/unicase/u32-ct-casefold.c: New file.
3249 * modules/unicase/u32-ct-casefold: New file.
3251 New module 'unicase/u16-ct-casefold'.
3252 * lib/unicase/u16-ct-casefold.c: New file.
3253 * modules/unicase/u16-ct-casefold: New file.
3255 New module 'unicase/u8-ct-casefold'.
3256 * lib/unicase/u8-ct-casefold.c: New file.
3257 * lib/unicase/u-ct-casefold.h: New file, derived from
3258 lib/unicase/u-casefold.h.
3259 * modules/unicase/u8-ct-casefold: New file.
3261 New module 'unicase/u32-ct-totitle'.
3262 * lib/unicase/u32-ct-totitle.c: New file.
3263 * modules/unicase/u32-ct-totitle: New file.
3265 New module 'unicase/u16-ct-totitle'.
3266 * lib/unicase/u16-ct-totitle.c: New file.
3267 * modules/unicase/u16-ct-totitle: New file.
3269 New module 'unicase/u8-ct-totitle'.
3270 * lib/unicase/u8-ct-totitle.c: New file.
3271 * lib/unicase/u-ct-totitle.h: New file, derived from
3272 lib/unicase/u-totitle.h.
3273 * modules/unicase/u8-ct-totitle: New file.
3275 New module 'unicase/u32-ct-tolower'.
3276 * lib/unicase/u32-ct-tolower.c: New file.
3277 * modules/unicase/u32-ct-tolower: New file.
3279 New module 'unicase/u16-ct-tolower'.
3280 * lib/unicase/u16-ct-tolower.c: New file.
3281 * modules/unicase/u16-ct-tolower: New file.
3283 New module 'unicase/u8-ct-tolower'.
3284 * lib/unicase/u8-ct-tolower.c: New file.
3285 * modules/unicase/u8-ct-tolower: New file.
3287 New module 'unicase/u32-ct-toupper'.
3288 * lib/unicase/u32-ct-toupper.c: New file.
3289 * modules/unicase/u32-ct-toupper: New file.
3291 New module 'unicase/u16-ct-toupper'.
3292 * lib/unicase/u16-ct-toupper.c: New file.
3293 * modules/unicase/u16-ct-toupper: New file.
3295 New module 'unicase/u8-ct-toupper'.
3296 * lib/unicase/u8-ct-toupper.c: New file.
3297 * modules/unicase/u8-ct-toupper: New file.
3299 Add context arguments to u*_casemap functions.
3300 * lib/unicase/unicasemap.h: Include unicase.h.
3301 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
3302 suffix_context arguments.
3303 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
3305 (FUNC): Add prefix_context and suffix_context arguments. Use
3306 uc_is_cased and uc_is_case_ignorable.
3307 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
3308 * lib/unicase/u16-casemap.c: Likewise.
3309 * lib/unicase/u32-casemap.c: Likewise.
3310 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
3311 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
3312 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
3313 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
3314 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
3315 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
3317 New module 'unicase/u32-suffix-context'.
3318 * lib/unicase/u32-suffix-context.c: New file.
3319 * modules/unicase/u32-suffix-context: New file.
3321 New module 'unicase/u16-suffix-context'.
3322 * lib/unicase/u16-suffix-context.c: New file.
3323 * modules/unicase/u16-suffix-context: New file.
3325 New module 'unicase/u8-suffix-context'.
3326 * lib/unicase/u8-suffix-context.c: New file.
3327 * lib/unicase/u-suffix-context.h: New file.
3328 * modules/unicase/u8-suffix-context: New file.
3330 New module 'unicase/empty-suffix-context'.
3331 * lib/unicase/empty-suffix-context.c: New file.
3332 * modules/unicase/empty-suffix-context: New file.
3334 New module 'unicase/u32-prefix-context'.
3335 * lib/unicase/u32-prefix-context.c: New file.
3336 * modules/unicase/u32-prefix-context: New file.
3338 New module 'unicase/u16-prefix-context'.
3339 * lib/unicase/u16-prefix-context.c: New file.
3340 * modules/unicase/u16-prefix-context: New file.
3342 New module 'unicase/u8-prefix-context'.
3343 * lib/unicase/u8-prefix-context.c: New file.
3344 * lib/unicase/u-prefix-context.h: New file.
3345 * lib/unicase/context.h: New file.
3346 * modules/unicase/u8-prefix-context: New file.
3348 New module 'unicase/empty-prefix-context'.
3349 * lib/unicase/empty-prefix-context.c: New file.
3350 * modules/unicase/empty-prefix-context: New file.
3352 New module 'unicase/ignorable'.
3353 * lib/unicase/ignorable.c: New file.
3354 * modules/unicase/ignorable: New file.
3356 New module 'unicase/cased'.
3357 * lib/unicase/caseprop.h: New file.
3358 * lib/unicase/cased.c: New file.
3359 * modules/unicase/cased: New file.
3361 New functions for case mapping of substrings.
3362 * lib/unicase.h (casing_prefix_context_t): New type.
3363 (unicase_empty_prefix_context): New variable.
3364 (u8_casing_prefix_context, u16_casing_prefix_context,
3365 u32_casing_prefix_context, u8_casing_prefixes_context,
3366 u16_casing_prefixes_context, u32_casing_prefixes_context): New
3368 (casing_suffix_context_t): New type.
3369 (unicase_empty_suffix_context): New variable.
3370 (u8_casing_suffix_context, u16_casing_suffix_context,
3371 u32_casing_suffix_context, u8_casing_suffixes_context,
3372 u16_casing_suffixes_context, u32_casing_suffixes_context,
3373 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
3374 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
3375 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
3378 2009-06-28 Jim Meyering <meyering@redhat.com>
3380 boostrap: indent only with spaces
3381 * build-aux/bootstrap: Indent only with spaces, never TABs.
3383 bootstrap: split long lines
3384 * build-aux/bootstrap: Keep line length < 80.
3386 bootstrap: sync from coreutils
3387 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
3388 just as autoreconf does. Verify a list of prerequisite
3389 package-name,version-number pairs if defined in bootstrap.conf.
3390 Refer to README-prereq, if prerequisites are not satisfied.
3392 2009-06-27 Eric Blake <ebb9@byu.net>
3394 tests: add test for bogus NULL definition
3395 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
3396 * tests/test-stdlib.c: Likewise.
3397 * tests/test-string.c: Likewise.
3398 * tests/test-locale.c: Likewise.
3399 * tests/test-unistd.c: Likewise.
3400 * modules/stdio-tests (Depends-on): Add verify.
3401 * modules/stdlib-tests (Depends-on): Likewise.
3402 * modules/string-tests (Depends-on): Likewise.
3403 * modules/locale-tests (Depends-on): Likewise.
3404 * modules/unistd-tests (Depends-on): Likewise.
3406 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
3408 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
3409 self-explaining comment.
3410 * m4/selinux-selinux-h: Update serial.
3411 (gl_LIBSELINUX): New macro, adding a warning for missing development
3412 packages to code extracted from...
3413 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
3414 Add warning for missing development packages here, too.
3416 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
3418 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
3420 2009-06-25 Eric Blake <ebb9@byu.net>
3422 version-etc: fix regression
3423 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
3425 (version_etc): Use it, to catch bugs with trailing NULL.
3426 * lib/version-etc.c (version_etc_arn): Delete unused argument.
3427 (version_etc_va): Fix logic bug.
3428 * modules/version-etc-tests: Add test.
3429 * tests/test-version-etc.c: New file.
3430 * tests/test-version-etc.sh: Likewise.
3432 2009-06-25 Sam Steingold <sds@gnu.org>
3434 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
3437 2009-06-25 Eric Blake <ebb9@byu.net>
3439 fpurge: migrate into <stdio.h>
3440 * lib/fpurge.h: Delete...
3441 * lib/stdio.in.h (fpurge): ...and declare here, instead.
3442 * lib/fpurge.c (fpurge): Change declaring header.
3443 * modules/fpurge (Files): Drop deleted file.
3444 (Depends-on): Add stdio.
3445 (configure.ac): Set witness.
3446 * modules/stdio (Makefile.am): Support fpurge macros.
3447 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
3448 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
3449 * lib/fflush.c: Update client.
3450 * tests/test-fpurge.c: Likewise.
3451 * NEWS: Mention the change.
3453 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
3455 * lib/argp-version-etc.c (program_authors): Add const
3457 * lib/version-etc.c: Fix typos in the comments.
3458 * modules/argp-version-etc: Depends on version-etc.
3460 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
3462 argp-version-etc: new module.
3464 * lib/argp-version-etc.c: New file.
3465 * lib/argp-version-etc.h: New file.
3466 * modules/argp-version-etc: New file.
3467 * modules/argp-version-etc-tests: New file.
3468 * tests/test-argp-version-etc.c: New test.
3469 * tests/test-argp-version-etc-1.sh: New test.
3471 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
3473 Provide additional interfaces and documentation for version-etc
3476 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
3478 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
3481 2009-06-24 Bruno Haible <bruno@clisp.org>
3483 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
3484 HAVE_LIB${NAME} macro.
3485 Reported by Sam Steingold <sds@gnu.org>.
3487 2009-06-23 Simon Josefsson <simon@josefsson.org>
3489 * modules/hash-tests (test_hash_LDADD): Link to libintl when
3492 2009-06-21 Bruno Haible <bruno@clisp.org>
3494 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
3496 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
3497 together with LIB${NAME}, LTLIB${NAME}.
3498 Reported by Sam Steingold <sds@gnu.org>.
3500 2009-06-20 Jim Meyering <meyering@redhat.com>
3502 tests: make sc_require_test_exit_idiom more generic
3503 * top/maint.mk (Exit_witness_file): New overridable variable.
3504 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
3505 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
3507 2009-06-19 Jim Meyering <meyering@redhat.com>
3509 hash: reverse order of src/dst parameters in an internal interface
3510 * lib/hash.c (transfer_entries): Reverse order of parameters to
3511 put DST before SRC. Adjust callers.
3513 tests: test-hash: avoid wholesale duplication
3514 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
3515 Instead, use a loop and add a single conditional.
3517 tests: test-hash: allow seed selection via a command line argument
3518 * tests/test-hash.c (get_seed): New function.
3521 2009-06-19 Eric Blake <ebb9@byu.net>
3523 hash: avoid memory leak on allocation failure
3524 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
3525 failure. Factor repeated algorithm...
3526 (transfer_entries): ...into new helper routine.
3527 (hash_delete): React to hash_rehash return value.
3529 hash: reduce memory pressure in hash_rehash no-op case
3530 * lib/hash.c (next_prime): Avoid overflow.
3531 (hash_initialize): Factor bucket size computation...
3532 (compute_bucket_size): ...into new helper function.
3533 (hash_rehash): Use new function and open coding to reduce memory
3534 pressure, and avoid a memory leak in USE_OBSTACK code.
3535 Reported by Jim Meyering.
3537 2009-06-18 Eric Blake <ebb9@byu.net>
3539 hash: make rotation more obvious
3540 * modules/hash (Depends-on): Add bitrotate and stdint.
3541 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
3542 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
3543 (SIZE_MAX): Rely on headers for definition.
3544 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
3545 (raw_hasher): Use rotr_sz.
3546 Suggested by Jim Meyering.
3548 hash: fix memory leak in last patch
3549 * lib/hash.c (hash_rehash): Avoid memory leak.
3551 hash: avoid no-op rehashing
3552 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
3554 hash: provide default callback functions
3555 * lib/hash.c (raw_hasher, raw_comparator): New functions.
3556 (hash_initialize): Use them as defaults.
3557 * tests/test-hash.c (main): Test this.
3559 hash: minor optimization
3560 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
3562 (hash_initialize): Document this promise.
3563 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
3564 * tests/test-hash.c (hash_compare_strings): Test this.
3566 2009-06-18 Bruno Haible <bruno@clisp.org>
3568 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
3569 going to be replaced anyway.
3571 2009-06-18 Bruno Haible <bruno@clisp.org>
3573 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
3575 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
3578 2009-06-18 Eric Blake <ebb9@byu.net>
3580 hash: check for resize before insertion
3581 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
3582 threshold before insertion, so that a pathological hash_rehash
3583 that fills every bucket can still trigger another rehash.
3585 2009-06-18 Jim Meyering <meyering@redhat.com>
3587 hash-tests: add a loop around the small tests
3588 * tests/test-hash.c (main): Repeat small tests with selected
3589 small initial table sizes.
3591 2009-06-17 Eric Blake <ebb9@byu.net>
3593 hash: minor cleanups
3594 * lib/hash.h (hash_entry): Make opaque, by moving...
3595 * lib/hash.c (hash_entry): ...here.
3596 (hash_insert): Clarify restrictions on what can be inserted.
3597 (hash_get_next): Clarify when it is safe to remove an element
3599 (check_tuning): Skip verification when tuning is known safe.
3600 (hash_initialize): Clarify restrictions on tuning.
3602 2009-06-17 Jim Meyering <jim@meyering.net>
3603 and Eric Blake <ebb9@byu.net>
3605 hash-tests: new module
3606 * modules/hash-tests: New file.
3607 * tests/test-hash.c: New file.
3609 2009-06-17 Eric Blake <ebb9@byu.net>
3611 strstr-simple: document new module
3612 * MODULES.html.sh: Document new module.
3614 strstr, strcasestr: replace on platforms with broken memchr
3615 * modules/strstr: Split into...
3616 * modules/strstr-simple: ...new module that does not care about
3617 performance, but does care about glibc bug.
3618 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
3619 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
3620 if platform memchr is broken, per Debian bug 521737.
3621 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
3623 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
3624 * doc/posix-functions/strstr.texi (strstr): Document the fix.
3625 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
3626 * modules/mountlist (Depends-on): Add strstr-simple.
3627 * modules/gen-uni-tables (Depends-on): Likewise.
3628 * modules/argz (Depends-on): Add strstr.
3630 2009-06-17 Bruno Haible <bruno@clisp.org>
3632 * modules/posix_spawn-internal (Depends-on): Add errno.
3634 2009-06-17 Bruno Haible <bruno@clisp.org>
3636 Define missing ESTALE on Interix 3.5.
3637 * lib/errno.in.h (ESTALE): Assign a value if missing.
3638 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
3639 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
3641 * doc/posix-headers/errno.texi: Mention the Interix bug.
3642 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
3644 2009-06-15 Eric Blake <ebb9@byu.net>
3646 memchr, memchr2: add valgrind exception
3647 * lib/memchr.valgrind: New file.
3648 * lib/memchr2.valgrind: New file.
3649 * modules/memchr (Files): Distribute valgrind file.
3650 * modules/memchr2 (Files): Likewise.
3652 docs: memchr is no longer obsolete
3653 * MODULES.html.sh: Move memchr from obsolete to string.h section.
3654 * lib/string.in.h (memchr): Simplify logic.
3656 2009-06-14 Jim Meyering <meyering@redhat.com>
3658 link-follow: fix the "checking..." message to not mention trailing slash
3659 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
3660 never considered trailing slashes.
3662 2009-06-14 Bruno Haible <bruno@clisp.org>
3664 * m4/memchr.m4: Mention also the bug on IA-64.
3665 * doc/posix-functions/memchr.texi: Likewise.
3667 2009-06-12 Eric Blake <ebb9@byu.net>
3669 memchr: detect broken x86_64 and alpha implementations
3670 * modules/memchr-tests (Depends-on): Move mmap detection...
3671 * modules/memchr (Depends-on): ...here.
3672 (configure.ac): Set indicator.
3673 * lib/string.in.h (memchr): Declare replacement.
3674 * modules/string (Makefile.am): Trigger replacement.
3675 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
3676 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
3678 * doc/posix-functions/memchr.texi (memchr): Document the bug.
3679 * modules/getpagesize (License): Relax license.
3681 2009-06-11 Bruno Haible <bruno@clisp.org>
3683 * lib/idpriv.h: Add more references.
3685 2009-06-08 Bruno Haible <bruno@clisp.org>
3687 Tests for module 'idpriv-droptemp'.
3688 * modules/idpriv-droptemp-tests: New file.
3689 * tests/test-idpriv-droptemp.sh: New file.
3690 * tests/test-idpriv-droptemp.su.sh: New file.
3691 * tests/test-idpriv-droptemp.c: New file.
3693 New module 'idpriv-droptemp'.
3694 * lib/idpriv-droptemp.c: New file.
3695 * modules/idpriv-droptemp: New file.
3697 2009-06-08 Bruno Haible <bruno@clisp.org>
3699 Tests for module 'idpriv-drop'.
3700 * modules/idpriv-drop-tests: New file.
3701 * tests/test-idpriv-drop.sh: New file.
3702 * tests/test-idpriv-drop.su.sh: New file.
3703 * tests/test-idpriv-drop.c: New file.
3705 New module 'idpriv-drop'.
3706 * lib/idpriv.h: New file.
3707 * lib-idpriv-drop.c: New file.
3708 * m4/idpriv.m4: New file.
3709 * modules/idpriv-drop: New file.
3711 2009-06-08 Bruno Haible <bruno@clisp.org>
3713 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
3714 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3715 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3716 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3717 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3718 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3719 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3721 2009-06-08 Eric Blake <ebb9@byu.net>
3723 test-strstr: use memory fence, when possible
3724 * tests/test-strstr.c (main): Use memory fence, in order to be
3725 more likely to trigger Debian bug 521737.
3726 * modules/strstr-tests (Files): Pull in additional files.
3728 memchr: no longer obsolete, for wider field testing
3729 * modules/memchr (Status, Notice): Delete, this module is no
3731 * modules/vasnprintf (Depends-on): Add memchr.
3733 2009-06-07 Jim Meyering <meyering@redhat.com>
3735 hash: declare some functions with the warn_unused_result attribute
3736 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
3738 2009-06-07 Bruno Haible <bruno@clisp.org>
3740 * tests/test-alignof.c: Don't test int64_t if it does not exist.
3741 Reported by Eric Blake.
3743 2009-06-06 Eric Blake <ebb9@byu.net>
3745 test-alignof: fix typo with long double
3746 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
3749 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
3751 Escape non-texinfo { and }s.
3752 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
3755 2009-06-04 Jim Meyering <meyering@redhat.com>
3757 gitlog-to-changelog: don't infloop on an empty commit log
3758 * build-aux/gitlog-to-changelog: Warn about an empty log message.
3759 Reported by Boris Petersen <transacid@centerim.org>.
3761 2009-06-03 Mike Frysinger <vapier@gentoo.org>
3763 version-etc: extend for packagers
3764 Add three new configure options, intended for packagers:
3765 --with-packager="packager name"
3766 --with-packager-version="packager-specific version"
3767 --with-packager-bug-reports="packager bug reporting"
3768 An example with coreutils:
3770 --with-packager=Gentoo \
3771 --with-packager-bug-report=http://bugs.gentoo.org/ \
3772 --with-packager-version="patchset 1.6"
3773 $ ./src/ls --version | head -n3
3774 ls (GNU coreutils) 7.1-dirty
3775 Packaged by Gentoo (patchset 1.6)
3776 Copyright (C) 2009 Free Software Foundation, Inc.
3777 Note that the bug reporting info via --help doesn't show up because
3778 coreutils uses its own custom emit_bug_reporting_address() implementation
3779 in src/system.h. If it didn't, it'd look like:
3780 $ ./src/ls --help | tail -n4
3781 Report bugs to <bug-coreutils@gnu.org>.
3782 Report Gentoo bugs to <http://bugs.gentoo.org/>.
3783 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
3784 General help using GNU software: <http://www.gnu.org/gethelp/>.
3785 * lib/version-etc.c: Print new information, if provided.
3786 * m4/version-etc.m4: New file.
3787 * modules/version-etc (Files): Add m4/version-etc.m4.
3788 (configure.ac): Add gl_VERSION_ETC.
3790 2009-05-31 Bruno Haible <bruno@clisp.org>
3792 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
3794 * modules/alignof-tests (Dependencies): Add stdint.
3795 Reported by Eric Blake.
3797 2009-05-31 Bruno Haible <bruno@clisp.org>
3799 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
3800 restriction due to compiler bugs.
3801 Reported by Eric Blake.
3803 2009-05-31 Simon Josefsson <simon@josefsson.org>
3804 Bruno Haible <bruno@clisp.org>
3806 Fix test-alignof failure.
3807 * lib/alignof.h (alignof_slot): New macro.
3808 (alignof_type): New macro, with the same semantics as the previous
3810 (alignof): Alias to alignof_slot.
3811 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
3812 check that the results are usable as constant expressions.
3814 2009-05-31 Bruno Haible <bruno@clisp.org>
3816 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
3817 * tests/test-memchr.c (main): Check that memchr does not read past the
3818 first occurrence of the byte.
3819 * tests/test-strstr.c (main): Update comment.
3820 Suggested by Eric Blake.
3822 2009-05-30 Bruno Haible <bruno@clisp.org>
3824 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
3825 detail how to use dumpbin.
3826 Reported by David Byron <dbyron@dbyron.com>.
3828 2009-06-02 Simon Josefsson <simon@josefsson.org>
3830 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
3832 2009-06-02 Simon Josefsson <simon@josefsson.org>
3834 * m4/manywarnings.m4: Add GCC 4.4 warnings.
3836 2009-05-28 Bruno Haible <bruno@clisp.org>
3838 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
3841 2009-05-28 Simon Josefsson <simon@josefsson.org>
3843 * gnulib-tool (func_import): Transform license on build-aux/ files too.
3845 2009-05-27 Simon Josefsson <simon@josefsson.org>
3847 * gnulib-tool (sed_transform_main_lib_file)
3848 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
3851 2009-05-26 Simon Josefsson <simon@josefsson.org>
3853 * tests/test-strstr.c: Add another self-test.
3854 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
3855 strdup. Suggested by Eric Blake <ebb9@byu.net>.
3857 2009-05-23 Bruno Haible <bruno@clisp.org>
3859 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
3862 2009-05-21 Bruno Haible <bruno@clisp.org>
3864 Simplify use of mode_t varargs.
3865 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
3866 uses 'mode_t' or 'int'.
3867 * lib/openat.c (openat): Likewise.
3868 * lib/open-safer.c (open_safer): Likewise.
3869 * m4/mode_t.m4: New file.
3870 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
3871 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
3872 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
3873 * modules/open (Files): Add m4/mode_t.m4.
3874 * modules/openat (Files): Likewise.
3875 * modules/fcntl-safer (Files): Likewise.
3876 Suggested by Eric Blake.
3878 2009-05-21 Pádraig Brady <P@draigbrady.com>
3880 * doc/glibc-functions/fallocate.texi: New file.
3881 * doc/gnulib.texi: Include it.
3883 2009-05-21 Eric Blake <ebb9@byu.net>
3884 Bruno Haible <bruno@clisp.org>
3886 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
3888 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
3890 2009-05-21 Eric Blake <ebb9@byu.net>
3891 Bruno Haible <bruno@clisp.org>
3893 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
3894 include_next. Fix of 2008-11-20 commit.
3895 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
3896 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
3897 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
3899 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
3900 instead of NEXT_MATH_H.
3902 2009-05-21 Bruno Haible <bruno@clisp.org>
3904 Avoid redefinition warnings for SIZE_MAX.
3905 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
3906 Reported by Simon Josefsson.
3908 2009-05-21 Bruno Haible <bruno@clisp.org>
3910 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
3913 2009-05-20 Bruno Haible <bruno@clisp.org>
3915 Make zeroptr.h work on mingw.
3916 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
3918 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
3919 * modules/memchr2-tests (configure.ac): Likewise.
3920 * modules/memcmp-tests (configure.ac): Likewise.
3921 * modules/memmem-tests (configure.ac): Likewise.
3922 * modules/memrchr-tests (configure.ac): Likewise.
3923 Reported by Simon Josefsson.
3925 2009-05-20 Simon Josefsson <simon@josefsson.org>
3927 * tests/test-glob.c: Include string.h for strcmp prototype.
3929 2009-05-20 Simon Josefsson <simon@josefsson.org>
3931 * modules/getdelim (Depends-on): Add explicit stdint, although it
3932 was implicitly already pulled in via realloc-posix.
3933 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
3935 2009-05-20 Simon Josefsson <simon@josefsson.org>
3937 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
3938 G. Christensen" <tgc@jupiterrise.com>.
3939 * m4/sys_socket_h.m4: Check for sa_family_t.
3940 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
3941 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
3942 * tests/test-sys_socket.c: Check that sa_family_t works.
3944 2009-05-18 Eric Blake <ebb9@byu.net>
3946 maint.mk: allow gnulib_dir in VPATH build
3947 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
3949 2009-05-15 Jim Meyering <meyering@redhat.com>
3951 maint.mk: Give gnulib_dir a default definition.
3952 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
3953 Thus, most packages no longer need to specify this variable in cfg.mk
3955 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
3957 rename.m4: fix typos that would make non-mingw cross-configure fail
3958 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
3960 2009-05-13 Eric Blake <ebb9@byu.net>
3962 mmap-anon: avoid out-of-order autoconf expansion
3963 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
3964 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
3965 * modules/memchr-tests (Depends-on): Add extensions.
3966 * modules/memchr2-tests (Depends-on): Add extensions.
3967 * modules/memcmp-tests (Depends-on): Add extensions.
3968 * modules/memmem-tests (Depends-on): Add extensions.
3969 * modules/memrchr-tests (Depends-on): Add extensions.
3971 2009-05-13 Bruno Haible <bruno@clisp.org>
3973 Make some tests ISO C 99 compliant.
3974 * tests/zerosize-ptr.h: New file.
3975 * tests/test-memchr.c: Include zerosize-ptr.h.
3976 (main): Use a zero-size object pointer instead of NULL.
3977 * tests/test-memchr2.c: Include zerosize-ptr.h.
3978 (main): Use a zero-size object pointer instead of NULL.
3979 * tests/test-memcmp.c: Include zerosize-ptr.h.
3980 (main): Use a zero-size object pointer instead of NULL.
3981 * tests/test-memmem.c: Include zerosize-ptr.h.
3982 (main): Use a zero-size object pointer instead of NULL.
3983 * tests/test-memrchr.c: Include zerosize-ptr.h.
3984 (main): Use a zero-size object pointer instead of NULL.
3985 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
3987 (Depends-on): Add getpagesize.
3988 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3989 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
3991 (Depends-on): Add getpagesize.
3992 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3993 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
3995 (Depends-on): Add getpagesize.
3996 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
3997 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
3999 (Depends-on): Add getpagesize.
4000 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4001 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
4003 (Depends-on): Add getpagesize.
4004 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4006 2009-05-12 Bruno Haible <bruno@clisp.org>
4008 Tests for module 'alignof'.
4009 * modules/alignof-tests: New file.
4010 * tests/test-alignof.c: New file.
4012 2009-05-12 Bruno Haible <bruno@clisp.org>
4015 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
4016 vendor compilers that are always correct.
4018 2009-05-12 Bruno Haible <bruno@clisp.org>
4020 Make the MAP_ANONYMOUS detection work on HP-UX 11.
4021 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
4022 not whether its fully works.
4024 2009-05-12 Bruno Haible <bruno@clisp.org>
4026 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
4028 2009-05-12 Jim Meyering <meyering@redhat.com>
4030 * top/maint.mk: Adjust backslash alignment.
4032 2009-05-11 Simon Josefsson <simon@josefsson.org>
4034 * top/maint.mk: Make $(srcdir)/build-aux configurable.
4036 2009-05-11 Eric Blake <ebb9@byu.net>
4038 argp: avoid undefined behavior
4039 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
4042 2009-05-08 Simon Josefsson <simon@josefsson.org>
4044 * tests/test-vc-list-files-git.sh: Do git config of user.email and
4045 user.name to prevent git commit from complaining.
4047 2009-05-10 Bruno Haible <bruno@clisp.org>
4049 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
4050 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
4051 it rewrites every file name only once.
4052 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
4054 2009-05-08 Bruno Haible <bruno@clisp.org>
4056 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
4059 2009-05-08 Simon Josefsson <simon@josefsson.org>
4061 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
4062 sockaddr_storage test.
4064 2009-05-07 Simon Josefsson <simon@josefsson.org>
4066 * modules/sys_socket (Makefile.am): Substitute
4067 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
4068 * m4/sys_socket_h.m4: Check for sockaddr_storage.
4069 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
4070 * tests/test-sys_socket.c: Check sockaddr_storage.
4072 2009-05-08 Bruno Haible <bruno@clisp.org>
4074 New module 'alignof'.
4075 * lib/alignof.h: New file.
4076 * modules/alignof: New file.
4078 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
4079 Bruno Haible <bruno@clisp.org>
4081 Fix test-file-has-acl on FreeBSD.
4082 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
4083 mask is implicitly added.
4084 * tests/test-file-has-acl.c: Include <signal.h>.
4085 (main): Terminate the test after 5 seconds.
4086 * modules/acl-tests (configure.ac): Check for alarm function.
4088 2009-05-04 Bruno Haible <bruno@clisp.org>
4090 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
4091 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
4092 * modules/errno (configure.ac): Drop AC_REQUIRE.
4093 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
4094 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
4096 2009-05-04 Simon Josefsson <simon@josefsson.org>
4098 * modules/glob-tests: New module.
4099 * tests/test-glob.c: Add.
4101 2009-05-04 Simon Josefsson <simon@josefsson.org>
4103 * modules/fnmatch-tests: New module.
4104 * tests/test-fnmatch.c: Add.
4106 2009-05-04 Eric Blake <ebb9@byu.net>
4108 maint: make the new no-submodule-changes rule VPATH-safe
4109 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
4111 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
4112 Bruno Haible <bruno@clisp.org>
4114 acl: Fix infinite loop on FreeBSD.
4115 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
4116 of return value from acl_get_entry.
4117 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
4120 2009-05-03 Bruno Haible <bruno@clisp.org>
4122 * lib/acl-internal.h (acl_entries): Clarify return value.
4123 * lib/acl_entries.c (acl_entries): Likewise.
4125 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
4127 Bug fix in acl module.
4128 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
4130 2009-05-03 Bruno Haible <bruno@clisp.org>
4132 Create gperf-generated file in the source dir, not in the build dir.
4133 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
4134 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
4135 * modules/unicase/locale-language (unicase/locale-languages.h):
4137 * modules/unicase/special-casing (unicase/special-casing-table.h):
4139 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
4140 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
4141 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
4142 Reported by Ralf Wildenhues.
4144 2009-05-03 Bruno Haible <bruno@clisp.org>
4146 * modules/fnmatch (Description, configure.ac): Taken from
4148 * modules/fnmatch-posix: Turn into a symbolic reference to the
4149 'fnmatch' module, and deprecate.
4150 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
4152 2009-05-03 Bruno Haible <bruno@clisp.org>
4154 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
4155 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
4156 Reported by Ralf Wildenhues.
4158 2009-05-04 Simon Josefsson <simon@josefsson.org>
4160 * m4/fnmatch.m4: Fix fnmatch re-define.
4162 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
4164 priv-set: new module and tests; adapt write-any-file
4165 * lib/priv-set.c: New file.
4166 * lib/priv-set.h: New file.
4167 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
4168 * lib/write-any-file.c: Simplify by using priv-set module.
4169 * m4/priv-set.m4: New file.
4170 * modules/priv-set: New file.
4171 * modules/unlinkdir: Add dependency on priv-set module.
4172 * modules/write-any-file: Likewise.
4174 Tests for module 'priv-set'.
4175 * modules/priv-set-tests: New file.
4176 * tests/test-priv-set.c: New file.
4178 2009-05-03 Jim Meyering <meyering@redhat.com>
4179 Bruno Haible <bruno@clisp.org>
4181 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
4182 use the converted UTF-8 variant of the name instead.
4184 2009-05-03 Jim Meyering <meyering@redhat.com>
4186 tests: tighten some getdate tests
4187 * tests/test-getdate.c (main): Tighten tests: require equality,
4188 not just greater than. Set TZ envvar to UTC0.
4190 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
4192 getdate: correctly interpret "next monday" when run on a Monday
4193 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
4194 that e.g., "next tues" (when run on a tuesday) results in a date
4195 that is one week in the future, and not today's date.
4196 I.e., add a week when the wday is the same as the current one.
4197 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
4198 and earlier by Martin Bernreuther and Jan Minář.
4199 * tests/test-getdate.c (main): Check that "next DAY" is always in
4200 the future and that "last DAY" is always in the past.
4202 2009-05-02 Jim Meyering <meyering@redhat.com>
4204 build: ensure that a release build fails when a submodule is unclean
4205 * top/maint.mk (no-submodule-changes): New rule.
4206 (alpha beta major): Depend on it.
4208 2009-05-02 Bruno Haible <bruno@clisp.org>
4210 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
4211 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
4212 shell variable gl_fnmatch_required to detect which variant is
4214 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
4215 gl_FUNC_FNMATCH_POSIX.
4216 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
4217 exclude fnmatch-posix.
4219 2009-05-02 Bruno Haible <bruno@clisp.org>
4221 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
4222 * modules/mbsrtowcs (License): Change to LGPLv2+.
4223 * modules/strnlen1 (License): Likewise.
4224 Reported by Simon Josefsson.
4226 2009-05-02 Bruno Haible <bruno@clisp.org>
4228 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
4230 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
4231 gnulib-tool was called with option --source-base=lib.
4233 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4235 Use automake *-local hooks without commands, for extensibility.
4236 * modules/localcharset (Makefile.am): Rename install-exec-local
4237 rule to install-exec-localcharset, and make it a prerequisite of
4238 install-exec-local. Likewise, rename the uninstall-local rule to
4239 uninstall-localcharset, and make it a prerequisite of the former.
4241 2009-05-01 Bruno Haible <bruno@clisp.org>
4243 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
4244 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
4245 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
4246 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
4247 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
4248 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
4249 m4/locale-zh.m4, m4/codeset.m4.
4251 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
4252 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
4253 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
4256 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
4257 REPLACE_WCRTOMB if mbstate_t must be replaced.
4258 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
4259 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
4261 2009-05-01 Bruno Haible <bruno@clisp.org>
4263 Avoid compiler warnings when redefining macros defined by <libintl.h>.
4264 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
4265 dngettext, dcngettext, textdomain, bindtextdomain,
4266 bind_textdomain_codeset): Undefine before redefining.
4268 2009-04-30 Bruno Haible <bruno@clisp.org>
4270 Fix bug introduced on 2009-04-25.
4271 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
4272 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
4273 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
4275 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
4277 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
4279 Reported by Elbert_Pol <elbert.pol@gmail.com>.
4281 2009-04-28 Bruno Haible <bruno@clisp.org>
4284 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
4285 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
4286 * lib/unicase.h (u*_casexfrm): Likewise.
4287 Reported by Paolo Bonzini.
4289 2009-04-28 Bruno Haible <bruno@clisp.org>
4291 Fix a compilation error.
4292 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
4293 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
4294 Reported by Jim Meyering.
4296 2009-04-27 Bruno Haible <bruno@clisp.org>
4298 New module 'libunistring'.
4299 * modules/libunistring: New file.
4300 * m4/libunistring.m4: New file.
4301 * MODULES.html.sh (Unicode string functions): Add it.
4303 2009-04-27 Eric Blake <ebb9@byu.net>
4305 maint.mk: allow package-specific header to provide <config.h>
4306 * top/maint.mk (sc_require_config_h): New variable.
4307 (sc_require_config_h, sc_require_config_h_first): Use it.
4309 2009-04-27 Simon Josefsson <simon@josefsson.org>
4311 * top/maint.mk (sc_avoid_if_before_free): Except
4312 useless-if-before-free script.
4314 2009-04-27 Eric Blake <ebb9@byu.net>
4316 maintainer-makefile: depend on all required helper scripts
4317 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
4318 useless-if-before-free.
4319 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
4320 version, rather than assuming gnulib checkout is available.
4321 Reported by Simen Josefsson.
4323 2009-04-26 Bruno Haible <bruno@clisp.org>
4325 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
4326 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
4329 2009-04-26 Bruno Haible <bruno@clisp.org>
4331 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
4332 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
4333 AC_LIB_HAVE_LINKFLAGS.
4335 2009-04-26 Bruno Haible <bruno@clisp.org>
4337 Simplify calling convention of u*_conv_from_encoding.
4338 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
4339 u32_conv_from_encoding): Expect a resultbuf argument and return the
4340 result directly as a pointer.
4341 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
4342 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
4343 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
4344 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
4345 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
4346 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
4348 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
4349 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
4350 * lib/vasnprintf.c (VASNPRINTF): Update.
4351 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
4352 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
4353 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
4354 * NEWS: Mention the change.
4356 2009-04-26 Bruno Haible <bruno@clisp.org>
4358 Simplify calling convention of u*_conv_to_encoding.
4359 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
4360 u32_conv_to_encoding): Expect a resultbuf argument and return the
4361 result directly as a pointer.
4362 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
4363 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
4364 freeing scaled_offsets if mem_iconveha failed.
4365 * lib/unicase/u-casexfrm.h (FUNC): Update.
4366 * lib/uninorm/u-normxfrm.h (FUNC): Update.
4367 * lib/vasnprintf.c (VASNPRINTF): Update.
4368 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
4369 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
4370 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
4371 * NEWS: Mention the change.
4373 2009-04-26 Bruno Haible <bruno@clisp.org>
4375 Avoid test failures on AIX and OSF/1.
4376 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
4378 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
4379 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
4381 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
4382 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
4383 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
4384 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
4385 * doc/posix-functions/malloc.texi: Document the portability problem
4386 related to malloc(0).
4388 2009-04-26 Bruno Haible <bruno@clisp.org>
4390 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
4391 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
4392 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
4394 2009-04-25 Bruno Haible <bruno@clisp.org>
4396 Avoid link error when creating a namespace clean library.
4397 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
4398 as macro with arguments if already defined as an alias.
4399 * lib/signbitf.c (gl_signbitf): Don't undefine.
4400 * lib/signbitd.c (gl_signbitd): Don't undefine.
4401 * lib/signbitl.c (gl_signbitl): Don't undefine.
4403 2009-04-25 Jim Meyering <meyering@redhat.com>
4405 vc-list-files: fix another quoting bug
4406 * build-aux/vc-list-files: Avoid sed backslash expansion
4407 of pathological directory names.
4409 2009-04-25 Eric Blake <ebb9@byu.net>
4411 vc-list-files: fix shell quoting error
4412 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
4415 2009-04-25 Jim Meyering <meyering@redhat.com>
4417 vc-list-files: restore lost functionality with subdir argument
4418 * build-aux/vc-list-files: When given a non-"." sub-directory
4419 argument, substitute the $dir/ prefix back onto each resulting name.
4420 Otherwise, coreutils' root_tests check would fail.
4422 2009-04-24 Eric Blake <ebb9@byu.net>
4424 vc-list-files: ignore git symlinks
4425 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
4426 than ls-files, to ignore git symlinks.
4428 maint.mk: import improvements from m4
4429 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
4430 (move_if_change): Delete unused macro.
4431 (news-date-check, vc-diff-check): Support VPATH builds.
4432 (announcement): Likewise. Split --bootstrap-tools list...
4433 (boostrap-tools): ...into separate list, which can be overridden
4435 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
4436 requiring dependency on useless-if-before-free module.
4437 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
4438 Support VPATH builds.
4440 2009-04-24 Jim Meyering <meyering@redhat.com>
4442 maint.mk: remove coreutils-specific rules and variables
4443 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
4444 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
4445 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
4447 maint.mk: remove obsolete rule
4448 * top/maint.mk (rel-check): Remove rule.
4449 (WGET, WGETFLAGS): Remove now-unused variables.
4451 2009-04-24 Simon Josefsson <simon@josefsson.org>
4453 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
4456 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
4457 '$(PATH_SEPARATOR)' instead of ':'.
4459 2009-04-24 Simon Josefsson <simon@josefsson.org>
4461 * lib/getopt1.c (main): Use 'const' for static array.
4463 2009-04-24 Simon Josefsson <simon@josefsson.org>
4465 * top/maint.mk: Sync with coreutils.
4466 * NEWS: Explain incompatibilities.
4468 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4469 Bruno Haible <bruno@clisp.org>
4471 Fix cross-compilation results.
4472 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
4473 statement, as third argument of AC_TRY_RUN.
4474 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
4475 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
4477 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
4478 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
4480 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
4481 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
4482 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
4484 2009-04-20 Bruno Haible <bruno@clisp.org>
4486 Avoid test failure on mingw.
4487 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
4489 2009-04-20 Bruno Haible <bruno@clisp.org>
4491 Avoid compilation error on mingw.
4492 * modules/localename-tests (Depends-on): Add locale.
4494 2009-04-19 Bruno Haible <bruno@clisp.org>
4496 Support for building a shared library on Windows platforms.
4497 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
4498 (main): Test the presence of UNINORM_NFC here.
4499 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
4500 (main): Test the presence of UNINORM_NFD here.
4501 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
4502 (main): Test the presence of UNINORM_NFKC here.
4503 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
4504 (main): Test the presence of UNINORM_NFKD here.
4506 2009-04-19 Bruno Haible <bruno@clisp.org>
4508 Avoid a compiler warning.
4509 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
4510 Change type of variable 'sequence'.
4512 2009-04-19 Bruno Haible <bruno@clisp.org>
4514 * modules/configmake (Makefile.am): When the contents of configmake.h
4515 does not change, arrange to preserve its modification time.
4517 2009-04-17 Simon Josefsson <simon@josefsson.org>
4519 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
4522 2009-04-16 Jim Meyering <meyering@redhat.com>
4524 useless-if-before-free: improve conversion code
4525 * build-aux/useless-if-before-free: Adjust code-in-comment to match
4526 "...!= 0" as well as "...!= NULL". emacs has one of the former.
4528 2009-04-14 Bruno Haible <bruno@clisp.org>
4530 * modules/fcntl (Depends-on): Add extensions.
4531 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
4533 2009-04-12 Ben Pfaff <blp@gnu.org>
4535 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
4536 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
4538 2009-03-20 Ben Pfaff <blp@gnu.org>
4540 Make rename replace existing destinations on Windows.
4541 * m4/rename.m4: Add test for Mingw.
4542 * lib/rename.c: Add rename replacement that uses MoveFileEx with
4543 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
4544 * doc/posix-functions/rename.texi: Document.
4546 2009-04-10 Bruno Haible <bruno@clisp.org>
4548 New include file "iconveh.h".
4549 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
4550 * lib/striconveh.h: Include it.
4551 (enum iconv_ilseq_handler): Remove definition.
4552 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
4554 * lib/striconveha.c: Include striconveh.h.
4555 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
4556 * modules/striconveh (Files): Add lib/iconveh.h.
4557 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
4560 2009-04-10 Bruno Haible <bruno@clisp.org>
4562 * lib/uniconv.h: Update comment.
4564 2009-04-10 Bruno Haible <bruno@clisp.org>
4566 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
4568 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
4569 * lib/unistr/u16-mbtouc-aux.c: Likewise.
4570 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
4571 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
4572 "unistring-notinline.h", so that the function gets defined always.
4573 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
4574 * lib/unistr/u8-uctomb.c: Likewise.
4575 * lib/unistr/u16-mbtouc.c: Likewise.
4576 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
4577 * lib/unistr/u16-uctomb.c: Likewise.
4578 * lib/unistr/u32-mbtouc.c: Likewise.
4579 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
4580 * lib/unistr/u32-uctomb.c: Likewise.
4582 2009-04-10 Bruno Haible <bruno@clisp.org>
4584 Mark 'utime' obsolete.
4585 * modules/utime (Status, Notice): New sections.
4586 Suggested by Jim Meyering.
4588 Fix cross-compile guess for utime test.
4589 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
4591 * doc/posix-functions/utime.texi: Give more precisions.
4592 Reported by Jan <ipif@ymail.com>.
4594 2009-04-09 Kamil Dudka <kdudka@redhat.com>
4596 filevercmp: correct today's change
4597 * lib/filevercmp.c: Also handle coreutils' test inputs.
4598 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
4600 Fix regression in 'filevercmp' module. Thanks Sven Joachim
4602 * lib/filevercmp.c: Special handle for "", "." and "..".
4603 * tests/test-filevercmp.c: Enlarge the set suite.
4605 2009-04-07 Jim Meyering <meyering@redhat.com>
4607 useless-if-before-free: show how to remove braced useless free, too
4608 * build-aux/useless-if-before-free: still only in a comment, though.
4610 2009-04-07 Reuben Thomas <rrt@sc3d.org>
4612 maint.mk: import changes to syntax-check macros from coreutils
4613 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
4614 Use them in the relevant macros.
4616 2009-04-06 Bruno Haible <bruno@clisp.org>
4618 Fix unportable use of bit-fields.
4619 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
4620 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
4621 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
4623 2009-04-06 Bruno Haible <bruno@clisp.org>
4625 Avoid test failures on AIX and OSF/1.
4626 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
4627 that malloc(0) = NULL.
4628 * tests/unicase/test-u8-tolower.c (check): Likewise.
4629 * tests/unicase/test-u8-totitle.c (check): Likewise.
4630 * tests/unicase/test-u8-toupper.c (check): Likewise.
4631 * tests/unicase/test-u16-casefold.c (check): Likewise.
4632 * tests/unicase/test-u16-tolower.c (check): Likewise.
4633 * tests/unicase/test-u16-totitle.c (check): Likewise.
4634 * tests/unicase/test-u16-toupper.c (check): Likewise.
4635 * tests/unicase/test-u32-casefold.c (check): Likewise.
4636 * tests/unicase/test-u32-tolower.c (check): Likewise.
4637 * tests/unicase/test-u32-totitle.c (check): Likewise.
4638 * tests/unicase/test-u32-toupper.c (check): Likewise.
4639 * tests/uninorm/test-u8-nfc.c (check): Likewise.
4640 * tests/uninorm/test-u8-nfd.c (check): Likewise.
4641 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
4642 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
4643 * tests/uninorm/test-u16-nfc.c (check): Likewise.
4644 * tests/uninorm/test-u16-nfd.c (check): Likewise.
4645 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
4646 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
4647 * tests/uninorm/test-u32-nfc.c (check): Likewise.
4648 * tests/uninorm/test-u32-nfd.c (check): Likewise.
4649 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
4650 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
4652 2009-04-05 Bruno Haible <bruno@clisp.org>
4654 Work around an autoconf limitation.
4655 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
4656 comment line if it would be longer than 3 KB.
4658 2009-04-05 Bruno Haible <bruno@clisp.org>
4660 Avoid test failure with libiconv-1.13.
4661 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
4662 of the expected test results.
4664 2009-04-05 Bruno Haible <bruno@clisp.org>
4666 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
4667 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
4668 that it should be installed.
4670 2009-04-05 Bruno Haible <bruno@clisp.org>
4672 * gnulib-tool: New option --copy-file.
4673 (func_usage): Document it.
4674 (func_dest_tmpfilename): Moved out of func_import.
4675 (func_add_file, func_update_file): New functions, extracted from
4677 (func_import): Update.
4679 2009-04-05 Karl Berry <karl@gnu.org>
4681 * README: prominently mention gnulib-tool.
4682 Rearrange sections so getting the code is near the top.
4684 2009-04-05 Bruno Haible <bruno@clisp.org>
4686 * lib/unicase.h: Mention u*_cmp2.
4687 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
4688 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
4689 * lib/unicase/ulc-casecmp.c: Likewise.
4690 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
4691 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
4692 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
4694 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
4695 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
4697 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
4700 * lib/uninorm.h: Mention u*_cmp2.
4701 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
4702 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
4703 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
4704 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
4705 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
4707 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
4709 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
4712 New module 'unistr/u32-cmp2'.
4713 * lib/unistr/u32-cmp2.c: New file.
4714 * modules/unistr/u32-cmp2: New file.
4716 New module 'unistr/u16-cmp2'.
4717 * lib/unistr/u16-cmp2.c: New file.
4718 * modules/unistr/u16-cmp2: New file.
4720 New module 'unistr/u8-cmp2'.
4721 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
4722 * lib/unistr/u8-cmp2.c: New file.
4723 * lib/unistr/u-cmp2.h: New file.
4724 * modules/unistr/u8-cmp2: New file.
4726 2009-04-05 Bruno Haible <bruno@clisp.org>
4728 * lib/unictype.h (uc_property_is_valid): New macro.
4729 * tests/unictype/test-pr_byname.c (main): Use it.
4731 * lib/unistr.h: Doc fixes.
4732 * lib/uniconv.h: Doc fixes.
4733 * lib/unictype.h: Doc fixes.
4735 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
4737 Port coreutils 7.2 to Solaris 8.
4739 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
4740 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
4741 for Solaris 8. This is a bit of a hack, as it means it's the
4742 caller's responsibility to add -lnsl if needed, but most likely it
4743 won't be needed since only getaddrinfo uses this and getaddrinfo
4744 isn't needed on Solaris 8.
4746 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
4747 problem to Solaris 8 encountered with coreutils 7.2, which
4748 resulted in a message "fnmatch.c:292: warning: passing argument 4
4749 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
4750 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
4752 2009-04-03 Simon Josefsson <simon@josefsson.org>
4754 * m4/ld-version-script.m4: Add FIXME comment.
4756 2009-04-02 Simon Josefsson <simon@josefsson.org>
4758 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
4761 2009-04-02 Bruno Haible <bruno@clisp.org>
4763 * Makefile (info, html, dvi, pdf): Combine the rules.
4764 Suggested by Jim Meyering.
4766 2009-04-01 Bruno Haible <bruno@clisp.org>
4768 * Makefile (info, html, dvi, pdf): New targets.
4769 Reported by Reuben Thomas <rrt@sc3d.org>.
4771 2009-04-01 Bruno Haible <bruno@clisp.org>
4773 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
4774 can be put into PATH.
4775 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
4777 2009-04-01 Bruno Haible <bruno@clisp.org>
4779 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
4781 2009-04-01 Bruno Haible <bruno@clisp.org>
4783 Rename module 'visibility'.
4784 * modules/lib-symbol-visibility: Renamed from modules/visibility.
4785 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
4786 * doc/gnulib.texi: Update.
4787 * MODULES.html.sh (Misc): Update.
4788 * NEWS: Mention the change.
4790 2009-04-01 Simon Josefsson <simon@josefsson.org>
4792 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
4793 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
4794 Eric Blake <ebb9@byu.net> for review.
4795 * MODULES.html.sh: Add lib-msvc-compat.
4796 * doc/gnulib.texi: Link to new section.
4797 * m4/ld-output-def.m4: New file.
4798 * doc/ld-output-def.texi: New file.
4800 2009-04-01 Simon Josefsson <simon@josefsson.org>
4802 Rename ld-version-script to lib-symbol-versions. Suggested by
4803 Bruno Haible <bruno@clisp.org>.
4804 * modules/ld-version-script: Renamed to lib-symbol-versions.
4805 * doc/ld-version-script.texi: Fix module name.
4806 * MODULES.html.sh: Add lib-symbol-versions.
4808 2009-03-31 Simon Josefsson <simon@josefsson.org>
4810 * modules/u64-tests: New file.
4811 * tests/test-u64.c: New file.
4813 2009-03-04 Simon Josefsson <simon@josefsson.org>
4815 * MODULES.html.sh: Mention u64.
4816 * modules/u64: New module.
4817 * modules/crypto/sha512: Depend on u64 module instead of providing
4820 2009-03-27 Eric Blake <ebb9@byu.net>
4822 test-strerror: make debugging EAI_SYSTEM easier
4823 * modules/getaddrinfo-tests (Depends-on): Add strerror.
4824 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
4825 failure was EAI_SYSTEM.
4827 2009-03-25 Bruno Haible <bruno@clisp.org>
4829 Fix a problem with --enable-relocatable on Solaris 7.
4830 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
4833 2009-03-25 Eric Blake <ebb9@byu.net>
4835 test-sockets: avoid gcc warning
4836 * tests/test-sockets.c (main): Silence compiler warning.
4838 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
4840 New modules nproc, pthread, contributed by Glen Lenker.
4842 * MODULES.html.sh: Add pthread, nproc.
4843 * lib/nproc.c: New file.
4844 * lib/nproc.h: New file.
4845 * lib/pthread.in.h: New file.
4846 * m4/pthread.m4: New file.
4847 * modules/nproc: New file.
4848 * modules/pthread: New file.
4850 2009-03-24 Simon Josefsson <simon@josefsson.org>
4852 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
4855 2009-03-24 Kamil Dudka <kdudka@redhat.com>
4857 filevercmp: handle simple~ and numbered.~3~ backup suffixes
4858 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
4859 * tests/test-filevercmp.c: Add tests for backup suffixes.
4861 2009-03-24 Simon Josefsson <simon@josefsson.org>
4863 * modules/stdlib (Depends-on): Add stdint, needed when defining
4864 struct random_data on, for example, HP-UX 10.20. Reported by
4865 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4867 2009-03-24 Simon Josefsson <simon@josefsson.org>
4869 * lib/readline.c (readline): Call fflush on stdout after printing
4872 2009-03-20 Bruno Haible <bruno@clisp.org>
4874 Remove dependency from 'close' module to -lws2_32 on native Windows.
4875 * lib/close-hook.h: New file.
4876 * lib/close-hook.c: New file.
4877 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
4879 (_gl_close_fd_maybe_socket): Remove function.
4880 (rpl_close): Invoke execute_all_close_hooks instead of
4881 _gl_close_fd_maybe_socket.
4882 * lib/sockets.c: Include close-hook.h, w32sock.h.
4883 (close_fd_maybe_socket): New function, essentially from lib/close.c.
4884 (close_sockets_hook): New variable.
4885 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
4886 (gl_sockets_cleanup): Unregister it.
4887 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
4888 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
4889 * modules/close-hook: New file.
4890 * modules/close (Files): Remove lib/w32sock.h.
4891 (Depends-on): Add close-hook.
4892 (Link): Remove section.
4893 * modules/sockets (Files): Add lib/w32sock.h.
4894 (Depends-on): Add close-hook.
4895 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
4897 * NEWS: Mention that LIB_CLOSE is gone.
4899 2009-03-23 Eric Blake <ebb9@byu.net>
4901 signal-tests: test previous patch
4902 * tests/test-signal.c: New file.
4903 * modules/signal-tests: Likewise.
4905 signal.h: always support 'volatile sig_atomic_t'
4906 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
4907 (gl_SIGNAL_H_DEFAULTS): Add a default.
4908 * modules/signal (Makefile.am): Substitute if needed.
4909 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
4910 users can blindly add volatile.
4911 * doc/posix-headers/signal.texi (signal.h): Document it.
4912 Reported by Matthew Woehlke.
4914 2009-03-23 Jim Meyering <meyering@redhat.com>
4916 pathmax: PATH_MAX: use pathconf only when available
4917 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
4918 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
4919 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
4920 This avoids a link failure in a PSP cross-compilation environment
4921 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
4923 * lib/vasnprintf.c (divide): Fix typo in comment.
4925 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4927 * gnulib-tool (func_filter_filelist): Fix comment.
4929 2009-03-20 Bruno Haible <bruno@clisp.org>
4931 Make sockets.h self-contained.
4932 * lib/sockets.c: Include sockets.h first.
4933 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
4935 2009-03-19 Eric Blake <ebb9@byu.net>
4937 doc: mention more functions added in cygwin 1.7.0
4938 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
4940 * doc/posix-functions/log2f.texi: Likewise.
4942 2009-03-19 Jim Meyering <meyering@redhat.com>
4944 fsusage: avoid syntax error due to statement-before-declaration
4945 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
4946 after all declarations. Reported by Matthew Woehlke in
4947 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
4949 2009-03-18 Eric Blake <ebb9@byu.net>
4951 build-aux/compile: sync from automake
4952 * build-aux/compile: New file, from automake.
4953 * config/srclist.txt: Mention build-aux/compile.
4955 2009-03-17 Bruno Haible <bruno@clisp.org>
4957 * lib/git-merge-changelog.c: Fix typo in comment.
4958 Reported by Reuben Thomas <rrt@sc3d.org>.
4960 2009-03-17 Reuben Thomas <rrt@sc3d.org>
4962 * m4/regex.m4: update and improve help for
4963 --without-included-regex.
4965 2009-03-17 Simon Josefsson <simon@josefsson.org>
4967 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
4968 failure on missing include files.
4970 2009-03-17 Eric Blake <ebb9@byu.net>
4972 doc: mention more functions added in cygwin 1.7.0
4973 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
4975 * doc/posix-functions/fwscanf.texi: Likewise.
4976 * doc/posix-functions/swprintf.texi: Likewise.
4977 * doc/posix-functions/swscanf.texi: Likewise.
4978 * doc/posix-functions/vfwprintf.texi: Likewise.
4979 * doc/posix-functions/vfwscanf.texi: Likewise.
4980 * doc/posix-functions/vswprintf.texi: Likewise.
4981 * doc/posix-functions/vswscanf.texi: Likewise.
4982 * doc/posix-functions/vwprintf.texi: Likewise.
4983 * doc/posix-functions/vwscanf.texi: Likewise.
4984 * doc/posix-functions/wcscasecmp.texi: Likewise.
4985 * doc/posix-functions/wcsdup.texi: Likewise.
4986 * doc/posix-functions/wcsftime.texi: Likewise.
4987 * doc/posix-functions/wcsncasecmp.texi: Likewise.
4988 * doc/posix-functions/wprintf.texi: Likewise.
4989 * doc/posix-functions/wscanf.texi: Likewise.
4990 * doc/glibc-functions/gethostbyname2.texi: Likewise.
4992 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4994 maint.mk: really add $(AM_MAKEFLAGS)
4995 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
4996 was inadvertently omitted in the last commit.
4997 Spotted by Bruno Haible.
4999 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
5000 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
5001 $(AM_MAKEFLAGS)' rather than plain `make'.
5003 gnulib-tool: execute $MAKE not make
5004 * gnulib-tool: Default $MAKE to 'make'.
5005 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
5006 than make. Initialize $MAKE in the do-autobuild script.
5008 gnulib-tool: use $MAKE not make in generated files
5009 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
5010 make, in generated files. Initialize $MAKE in the do-autobuild
5013 * top/GNUmakefile (_have-git-version-gen): Fix typo.
5015 GNUmakefile: disable parallelism only for multiple, recursive targets
5016 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
5017 additions in the Makefile.
5018 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
5020 (.NOTPARALLEL): Only disable parallel builds if multiple targets
5021 are listed on the command line and at least one of them is
5022 listed in $(ALL_RECURSIVE_TARGETS).
5024 2009-03-14 Bruno Haible <bruno@clisp.org>
5026 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
5027 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
5028 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
5029 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
5030 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
5031 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
5032 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
5034 * modules/unistr/u8-strchr (Depends-on): Likewise.
5035 * modules/unistr/u8-strrchr (Depends-on): Likewise.
5036 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
5038 * modules/unistr/u16-strchr (Depends-on): Likewise.
5039 * modules/unistr/u16-strrchr (Depends-on): Likewise.
5041 2009-03-12 Bruno Haible <bruno@clisp.org>
5043 Work around select() bug on Interix 3.5.
5044 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
5045 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
5046 * m4/select.m4: New file.
5047 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
5048 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
5049 * modules/select (Files): Add m4/select.m4.
5050 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
5051 * modules/nanosleep (Depends-on): Add select.
5052 * modules/poll (Depends-on): Likewise.
5053 * doc/posix-functions/select.texi: Mention the Interix bug.
5054 Reported by Markus Duft <mduft@gentoo.org>.
5056 * lib/select.c: Renamed from lib/winsock-select.c.
5057 * modules/select (Files): Add lib/select.c, remove
5058 lib/winsock-select.c.
5059 (configure.ac): Update.
5061 2009-03-12 Jim Meyering <meyering@redhat.com>
5063 avoid gcc warnings about unused macro definitions
5064 * lib/readtokens.c (STREQ): Remove unused definition.
5065 * lib/xmalloc.c (SIZE_MAX): Likewise.
5066 * lib/openat-die.c (N_): Likewise.
5067 * lib/mountlist.c (SIZE_MAX): Remove definition.
5068 Instead, include <stdint.h>.
5069 * lib/readutmp.c: Likewise.
5070 * modules/readutmp (Depends-on): Add stdint.
5071 * modules/mountlist (Depends-on): Add stdint.
5072 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
5074 2009-03-10 Bruno Haible <bruno@clisp.org>
5076 Tests for module 'mbmemcasecoll'.
5077 * modules/mbmemcasecoll-tests: New file.
5078 * tests/test-mbmemcasecoll1.sh: New file.
5079 * tests/test-mbmemcasecoll2.sh: New file.
5080 * tests/test-mbmemcasecoll3.sh: New file.
5081 * tests/test-mbmemcasecoll.c: New file.
5083 New module 'mbmemcasecoll'.
5084 * lib/mbmemcasecoll.h: New file.
5085 * lib/mbmemcasecoll.c: New file.
5086 * modules/mbmemcasecoll: New file.
5088 * tests/test-mbmemcasecmp.h: New file, extracted from
5089 tests/test-mbmemcasecmp.c.
5090 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
5091 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
5093 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
5095 2009-03-09 Bruno Haible <bruno@clisp.org>
5097 Tests for module 'mbmemcasecmp'.
5098 * modules/mbmemcasecmp-tests: New file.
5099 * tests/test-mbmemcasecmp1.sh: New file.
5100 * tests/test-mbmemcasecmp2.sh: New file.
5101 * tests/test-mbmemcasecmp3.sh: New file.
5102 * tests/test-mbmemcasecmp.c: New file.
5104 New module 'mbmemcasecmp'.
5105 * lib/mbmemcasecmp.h: New file.
5106 * lib/mbmemcasecmp.c: New file.
5107 * modules/mbmemcasecmp: New file.
5109 2009-03-09 Bruno Haible <bruno@clisp.org>
5111 Tests for module 'unicase/ulc-casecoll'.
5112 * modules/unicase/ulc-casecoll-tests: New file.
5113 * tests/unicase/test-ulc-casecoll1.sh: New file.
5114 * tests/unicase/test-ulc-casecoll2.sh: New file.
5115 * tests/unicase/test-ulc-casecoll.c: New file.
5117 New module 'unicase/ulc-casecoll'.
5118 * lib/unicase.h (ulc_casecoll): New declaration.
5119 * lib/unicase/ulc-casecoll.c: New file.
5120 * modules/unicase/ulc-casecoll: New file.
5122 New module 'unicase/ulc-casexfrm'.
5123 * lib/unicase.h (ulc_casexfrm): New declaration.
5124 * lib/unicase/ulc-casexfrm.c: New file.
5125 * modules/unicase/ulc-casexfrm: New file.
5127 2009-03-09 Bruno Haible <bruno@clisp.org>
5129 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
5132 * m4/mbscasecmp.m4: Remove file.
5133 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
5134 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
5136 * m4/mbscasestr.m4: Remove file.
5137 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
5138 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
5140 * m4/mbschr.m4: Remove file.
5141 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
5142 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
5144 * m4/mbscspn.m4: Remove file.
5145 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
5146 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
5148 * m4/mbslen.m4: Remove file.
5149 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
5150 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
5152 * m4/mbsncasecmp.m4: Remove file.
5153 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
5154 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
5156 * m4/mbsnlen.m4: Remove file.
5157 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
5158 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
5160 * m4/mbspbrk.m4: Remove file.
5161 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
5162 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
5164 * m4/mbspcasecmp.m4: Remove file.
5165 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
5166 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
5168 * m4/mbsrchr.m4: Remove file.
5169 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
5170 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
5172 * m4/mbssep.m4: Remove file.
5173 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
5174 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
5176 * m4/mbsspn.m4: Remove file.
5177 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
5178 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
5180 * m4/mbsstr.m4: Remove file.
5181 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
5182 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
5184 * m4/mbstok_r.m4: Remove file.
5185 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
5186 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
5188 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
5190 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
5191 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
5193 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
5195 2009-03-08 Bruno Haible <bruno@clisp.org>
5197 Tests for module 'unicase/ulc-casecmp'.
5198 * modules/unicase/ulc-casecmp-tests: New file.
5199 * tests/unicase/test-ulc-casecmp1.sh: New file.
5200 * tests/unicase/test-ulc-casecmp2.sh: New file.
5201 * tests/unicase/test-ulc-casecmp.c: New file.
5203 New module 'unicase/ulc-casecmp'.
5204 * lib/unicase.h (ulc_casecmp): New declaration.
5205 * lib/unicase/ulc-casecmp.c: New file.
5206 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
5208 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
5209 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
5210 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
5211 * modules/unicase/ulc-casecmp: New file.
5213 Tests for module 'unicase/u32-is-cased'.
5214 * modules/unicase/u32-is-cased-tests: New file.
5215 * tests/unicase/test-u32-is-cased.c: New file.
5217 Tests for module 'unicase/u16-is-cased'.
5218 * modules/unicase/u16-is-cased-tests: New file.
5219 * tests/unicase/test-u16-is-cased.c: New file.
5221 Tests for module 'unicase/u8-is-cased'.
5222 * modules/unicase/u8-is-cased-tests: New file.
5223 * tests/unicase/test-u8-is-cased.c: New file.
5224 * tests/unicase/test-is-cased.h: New file.
5226 New module 'unicase/u32-is-cased'.
5227 * lib/unicase/u32-is-cased.c: New file.
5228 * modules/unicase/u32-is-cased: New file.
5230 New module 'unicase/u16-is-cased'.
5231 * lib/unicase/u16-is-cased.c: New file.
5232 * modules/unicase/u16-is-cased: New file.
5234 New module 'unicase/u8-is-cased'.
5235 * lib/unicase/u8-is-cased.c: New file.
5236 * lib/unicase/u-is-cased.h: New file.
5237 * modules/unicase/u8-is-cased: New file.
5239 Tests for module 'unicase/u32-is-casefolded'.
5240 * modules/unicase/u32-is-casefolded-tests: New file.
5241 * tests/unicase/test-u32-is-casefolded.c: New file.
5243 Tests for module 'unicase/u16-is-casefolded'.
5244 * modules/unicase/u16-is-casefolded-tests: New file.
5245 * tests/unicase/test-u16-is-casefolded.c: New file.
5247 Tests for module 'unicase/u8-is-casefolded'.
5248 * modules/unicase/u8-is-casefolded-tests: New file.
5249 * tests/unicase/test-u8-is-casefolded.c: New file.
5250 * tests/unicase/test-is-casefolded.h: New file.
5252 New module 'unicase/u32-is-casefolded'.
5253 * lib/unicase/u32-is-casefolded.c: New file.
5254 * modules/unicase/u32-is-casefolded: New file.
5256 New module 'unicase/u16-is-casefolded'.
5257 * lib/unicase/u16-is-casefolded.c: New file.
5258 * modules/unicase/u16-is-casefolded: New file.
5260 New module 'unicase/u8-is-casefolded'.
5261 * lib/unicase/u8-is-casefolded.c: New file.
5262 * modules/unicase/u8-is-casefolded: New file.
5264 Tests for module 'unicase/u32-is-titlecase'.
5265 * modules/unicase/u32-is-titlecase-tests: New file.
5266 * tests/unicase/test-u32-is-titlecase.c: New file.
5268 Tests for module 'unicase/u16-is-titlecase'.
5269 * modules/unicase/u16-is-titlecase-tests: New file.
5270 * tests/unicase/test-u16-is-titlecase.c: New file.
5272 Tests for module 'unicase/u8-is-titlecase'.
5273 * modules/unicase/u8-is-titlecase-tests: New file.
5274 * tests/unicase/test-u8-is-titlecase.c: New file.
5275 * tests/unicase/test-is-titlecase.h: New file.
5277 New module 'unicase/u32-is-titlecase'.
5278 * lib/unicase/u32-is-titlecase.c: New file.
5279 * modules/unicase/u32-is-titlecase: New file.
5281 New module 'unicase/u16-is-titlecase'.
5282 * lib/unicase/u16-is-titlecase.c: New file.
5283 * modules/unicase/u16-is-titlecase: New file.
5285 New module 'unicase/u8-is-titlecase'.
5286 * lib/unicase/u8-is-titlecase.c: New file.
5287 * modules/unicase/u8-is-titlecase: New file.
5289 Tests for module 'unicase/u32-is-lowercase'.
5290 * modules/unicase/u32-is-lowercase-tests: New file.
5291 * tests/unicase/test-u32-is-lowercase.c: New file.
5293 Tests for module 'unicase/u16-is-lowercase'.
5294 * modules/unicase/u16-is-lowercase-tests: New file.
5295 * tests/unicase/test-u16-is-lowercase.c: New file.
5297 Tests for module 'unicase/u8-is-lowercase'.
5298 * modules/unicase/u8-is-lowercase-tests: New file.
5299 * tests/unicase/test-u8-is-lowercase.c: New file.
5300 * tests/unicase/test-is-lowercase.h: New file.
5302 New module 'unicase/u32-is-lowercase'.
5303 * lib/unicase/u32-is-lowercase.c: New file.
5304 * modules/unicase/u32-is-lowercase: New file.
5306 New module 'unicase/u16-is-lowercase'.
5307 * lib/unicase/u16-is-lowercase.c: New file.
5308 * modules/unicase/u16-is-lowercase: New file.
5310 New module 'unicase/u8-is-lowercase'.
5311 * lib/unicase/u8-is-lowercase.c: New file.
5312 * modules/unicase/u8-is-lowercase: New file.
5314 Tests for module 'unicase/u32-is-uppercase'.
5315 * modules/unicase/u32-is-uppercase-tests: New file.
5316 * tests/unicase/test-u32-is-uppercase.c: New file.
5318 Tests for module 'unicase/u16-is-uppercase'.
5319 * modules/unicase/u16-is-uppercase-tests: New file.
5320 * tests/unicase/test-u16-is-uppercase.c: New file.
5322 Tests for module 'unicase/u8-is-uppercase'.
5323 * modules/unicase/u8-is-uppercase-tests: New file.
5324 * tests/unicase/test-u8-is-uppercase.c: New file.
5325 * tests/unicase/test-is-uppercase.h: New file.
5327 New module 'unicase/u32-is-uppercase'.
5328 * lib/unicase/u32-is-uppercase.c: New file.
5329 * modules/unicase/u32-is-uppercase: New file.
5331 New module 'unicase/u16-is-uppercase'.
5332 * lib/unicase/u16-is-uppercase.c: New file.
5333 * modules/unicase/u16-is-uppercase: New file.
5335 New module 'unicase/u8-is-uppercase'.
5336 * lib/unicase/u8-is-uppercase.c: New file.
5337 * modules/unicase/u8-is-uppercase: New file.
5339 New module 'unicase/u32-is-invariant'.
5340 * lib/unicase/u32-is-invariant.c: New file.
5341 * modules/unicase/u32-is-invariant: New file.
5343 New module 'unicase/u16-is-invariant'.
5344 * lib/unicase/u16-is-invariant.c: New file.
5345 * modules/unicase/u16-is-invariant: New file.
5347 New module 'unicase/u8-is-invariant'.
5348 * lib/unicase/u8-is-invariant.c: New file.
5349 * lib/unicase/invariant.h: New file.
5350 * lib/unicase/u-is-invariant.h: New file.
5351 * modules/unicase/u8-is-invariant: New file.
5353 Tests for module 'unicase/u32-casecoll'.
5354 * modules/unicase/u32-casecoll-tests: New file.
5355 * tests/unicase/test-u32-casecoll.c: New file.
5357 Tests for module 'unicase/u16-casecoll'.
5358 * modules/unicase/u16-casecoll-tests: New file.
5359 * tests/unicase/test-u16-casecoll.c: New file.
5361 Tests for module 'unicase/u8-casecoll'.
5362 * modules/unicase/u8-casecoll-tests: New file.
5363 * tests/unicase/test-u8-casecoll.c: New file.
5365 New module 'unicase/u32-casecoll'.
5366 * lib/unicase/u32-casecoll.c: New file.
5367 * modules/unicase/u32-casecoll: New file.
5369 New module 'unicase/u16-casecoll'.
5370 * lib/unicase/u16-casecoll.c: New file.
5371 * modules/unicase/u16-casecoll: New file.
5373 New module 'unicase/u8-casecoll'.
5374 * lib/unicase/u8-casecoll.c: New file.
5375 * lib/unicase/u-casecoll.h: New file.
5376 * modules/unicase/u8-casecoll: New file.
5378 New module 'unicase/u32-casexfrm'.
5379 * lib/unicase/u32-casexfrm.c: New file.
5380 * modules/unicase/u32-casexfrm: New file.
5382 New module 'unicase/u16-casexfrm'.
5383 * lib/unicase/u16-casexfrm.c: New file.
5384 * modules/unicase/u16-casexfrm: New file.
5386 New module 'unicase/u8-casexfrm'.
5387 * lib/unicase/u8-casexfrm.c: New file.
5388 * lib/unicase/u-casexfrm.h: New file.
5389 * modules/unicase/u8-casexfrm: New file.
5391 Tests for module 'unicase/u32-casecmp'.
5392 * modules/unicase/u32-casecmp-tests: New file.
5393 * tests/unicase/test-u32-casecmp.c: New file.
5395 Tests for module 'unicase/u16-casecmp'.
5396 * modules/unicase/u16-casecmp-tests: New file.
5397 * tests/unicase/test-u16-casecmp.c: New file.
5399 Tests for module 'unicase/u8-casecmp'.
5400 * modules/unicase/u8-casecmp-tests: New file.
5401 * tests/unicase/test-u8-casecmp.c: New file.
5402 * tests/unicase/test-casecmp.h: New file.
5404 New module 'unicase/u32-casecmp'.
5405 * lib/unicase/u32-casecmp.c: New file.
5406 * modules/unicase/u32-casecmp: New file.
5408 New module 'unicase/u16-casecmp'.
5409 * lib/unicase/u16-casecmp.c: New file.
5410 * modules/unicase/u16-casecmp: New file.
5412 New module 'unicase/u8-casecmp'.
5413 * lib/unicase/u8-casecmp.c: New file.
5414 * lib/unicase/u-casecmp.h: New file.
5415 * modules/unicase/u8-casecmp: New file.
5417 Tests for module 'unicase/u32-casefold'.
5418 * modules/unicase/u32-casefold-tests: New file.
5419 * tests/unicase/test-u32-casefold.c: New file.
5421 Tests for module 'unicase/u16-casefold'.
5422 * modules/unicase/u16-casefold-tests: New file.
5423 * tests/unicase/test-u16-casefold.c: New file.
5425 Tests for module 'unicase/u8-casefold'.
5426 * modules/unicase/u8-casefold-tests: New file.
5427 * tests/unicase/test-u8-casefold.c: New file.
5429 New module 'unicase/u32-casefold'.
5430 * lib/unicase/u32-casefold.c: New file.
5431 * modules/unicase/u32-casefold: New file.
5433 New module 'unicase/u16-casefold'.
5434 * lib/unicase/u16-casefold.c: New file.
5435 * modules/unicase/u16-casefold: New file.
5437 New module 'unicase/u8-casefold'.
5438 * lib/unicase/u8-casefold.c: New file.
5439 * lib/unicase/u-casefold.h: New file.
5440 * modules/unicase/u8-casefold: New file.
5442 New module 'unicase/tocasefold'.
5443 * lib/unicase/casefold.h: New file.
5444 * lib/unicase/tocasefold.c: New file.
5445 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
5446 * modules/unicase/tocasefold: New file.
5448 Tests for module 'unicase/u32-totitle'.
5449 * modules/unicase/u32-totitle-tests: New file.
5450 * tests/unicase/test-u32-totitle.c: New file.
5452 Tests for module 'unicase/u16-totitle'.
5453 * modules/unicase/u16-totitle-tests: New file.
5454 * tests/unicase/test-u16-totitle.c: New file.
5456 Tests for module 'unicase/u8-totitle'.
5457 * modules/unicase/u8-totitle-tests: New file.
5458 * tests/unicase/test-u8-totitle.c: New file.
5460 New module 'unicase/u32-totitle'.
5461 * lib/unicase/u32-totitle.c: New file.
5462 * modules/unicase/u32-totitle: New file.
5464 New module 'unicase/u16-totitle'.
5465 * lib/unicase/u16-totitle.c: New file.
5466 * modules/unicase/u16-totitle: New file.
5468 New module 'unicase/u8-totitle'.
5469 * lib/unicase/u8-totitle.c: New file.
5470 * lib/unicase/u-totitle.h: New file.
5471 * modules/unicase/u8-totitle: New file.
5473 Tests for module 'unicase/u32-tolower'.
5474 * modules/unicase/u32-tolower-tests: New file.
5475 * tests/unicase/test-u32-tolower.c: New file.
5477 Tests for module 'unicase/u16-tolower'.
5478 * modules/unicase/u16-tolower-tests: New file.
5479 * tests/unicase/test-u16-tolower.c: New file.
5481 Tests for module 'unicase/u8-tolower'.
5482 * modules/unicase/u8-tolower-tests: New file.
5483 * tests/unicase/test-u8-tolower.c: New file.
5485 New module 'unicase/u32-tolower'.
5486 * lib/unicase/u32-tolower.c: New file.
5487 * modules/unicase/u32-tolower: New file.
5489 New module 'unicase/u16-tolower'.
5490 * lib/unicase/u16-tolower.c: New file.
5491 * modules/unicase/u16-tolower: New file.
5493 New module 'unicase/u8-tolower'.
5494 * lib/unicase/u8-tolower.c: New file.
5495 * modules/unicase/u8-tolower: New file.
5497 Tests for module 'unicase/u32-toupper'.
5498 * modules/unicase/u32-toupper-tests: New file.
5499 * tests/unicase/test-u32-toupper.c: New file.
5501 Tests for module 'unicase/u16-toupper'.
5502 * modules/unicase/u16-toupper-tests: New file.
5503 * tests/unicase/test-u16-toupper.c: New file.
5505 Tests for module 'unicase/u8-toupper'.
5506 * modules/unicase/u8-toupper-tests: New file.
5507 * tests/unicase/test-u8-toupper.c: New file.
5509 New module 'unicase/u32-toupper'.
5510 * lib/unicase/u32-toupper.c: New file.
5511 * modules/unicase/u32-toupper: New file.
5513 New module 'unicase/u16-toupper'.
5514 * lib/unicase/u16-toupper.c: New file.
5515 * modules/unicase/u16-toupper: New file.
5517 New module 'unicase/u8-toupper'.
5518 * lib/unicase/u8-toupper.c: New file.
5519 * modules/unicase/u8-toupper: New file.
5521 New module 'unicase/u32-casemap'.
5522 * lib/unicase/u32-casemap.c: New file.
5523 * modules/unicase/u32-casemap: New file.
5525 New module 'unicase/u16-casemap'.
5526 * lib/unicase/u16-casemap.c: New file.
5527 * modules/unicase/u16-casemap: New file.
5529 New module 'unicase/u8-casemap'.
5530 * lib/unicase/unicasemap.h: New file.
5531 * lib/unicase/u8-casemap.c: New file.
5532 * lib/unicase/u-casemap.h: New file.
5533 * modules/unicase/u8-casemap: New file.
5535 New module 'unicase/special-casing'.
5536 * lib/unicase/special-casing.h: New file.
5537 * lib/unicase/special-casing.c: New file.
5538 * lib/unicase/special-casing-table.gperf: New file, generated by
5540 * modules/unicase/special-casing: New file.
5542 Tests for module 'unicase/locale-language'.
5543 * modules/unicase/locale-language-tests: New file.
5544 * tests/unicase/test-locale-language.sh: New file.
5545 * tests/unicase/test-locale-language.c: New file.
5547 New module 'unicase/locale-language'.
5548 * lib/unicase/locale-language.c: New file.
5549 * lib/unicase/locale-languages.gperf: New file.
5550 * modules/unicase/locale-language: New file.
5552 Generate more tables for case conversion and case folding.
5553 * lib/gen-uni-tables.c (SCC_*): New enum items.
5554 (struct special_casing_rule): New type.
5555 (casing_rules, num_casing_rules, allocated_casing_rules): New
5557 (add_casing_rule, fill_casing_rules): New functions.
5558 (struct casefold_rule): New type.
5559 (casefolding_rules, num_casefolding_rules,
5560 allocated_casefolding_rules): New variables.
5561 (fill_casefolding_rules): New function.
5562 (unicode_casefold): New variable.
5563 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
5564 sort_casing_rules, output_casing_rules): New functions.
5565 (main): Accept to more arguments: SpecialCasing.txt and
5566 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
5567 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
5568 Output mapping for casefolding.
5570 * lib/unicase.h: Include stdbool.h, uninorm.h.
5571 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
5572 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
5573 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
5575 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
5577 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
5578 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
5580 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
5581 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
5582 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
5583 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
5585 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
5587 2009-03-08 Bruno Haible <bruno@clisp.org>
5589 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
5590 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
5591 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
5592 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
5594 2009-03-07 Bruno Haible <bruno@clisp.org>
5596 Adjust u*_normcmp, u*_normcoll API.
5597 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
5598 u16_normcoll, u32_normcoll): Change failure conventions.
5599 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
5600 errno and return -1.
5601 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
5603 2009-03-07 Bruno Haible <bruno@clisp.org>
5605 Tests for module 'uninorm/u32-normcoll'.
5606 * modules/uninorm/u32-normcoll-tests: New file.
5607 * tests/uninorm/test-u32-normcoll.c: New file.
5609 Tests for module 'uninorm/u16-normcoll'.
5610 * modules/uninorm/u16-normcoll-tests: New file.
5611 * tests/uninorm/test-u16-normcoll.c: New file.
5613 Tests for module 'uninorm/u8-normcoll'.
5614 * modules/uninorm/u8-normcoll-tests: New file.
5615 * tests/uninorm/test-u8-normcoll.c: New file.
5617 2009-03-07 Bruno Haible <bruno@clisp.org>
5619 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
5620 tests/uninorm/test-u32-normcmp.c.
5621 * tests/uninorm/test-u32-normcmp.c: Include it.
5622 (test_nonascii): New function, extracted from main. Add some more
5624 (main): Invoke test_ascii and test_nonascii.
5625 * modules/uninorm/u32-normcmp-tests (Files): Add
5626 tests/uninorm/test-u32-normcmp.h.
5627 (Depends-on): Remove uninorm/u32-normcmp.
5629 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
5630 tests/uninorm/test-u16-normcmp.c.
5631 * tests/uninorm/test-u16-normcmp.c: Include it.
5632 (test_nonascii): New function, extracted from main. Add some more
5634 (main): Invoke test_ascii and test_nonascii.
5635 * modules/uninorm/u16-normcmp-tests (Files): Add
5636 tests/uninorm/test-u16-normcmp.h.
5637 (Depends-on): Remove uninorm/u16-normcmp.
5639 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
5640 tests/uninorm/test-u8-normcmp.c.
5641 * tests/uninorm/test-u8-normcmp.c: Include it.
5642 (test_nonascii): New function, extracted from main. Add some more
5644 (main): Invoke test_ascii and test_nonascii.
5645 * modules/uninorm/u8-normcmp-tests (Files): Add
5646 tests/uninorm/test-u8-normcmp.h.
5647 (Depends-on): Remove uninorm/u8-normcmp.
5649 2009-03-07 Bruno Haible <bruno@clisp.org>
5651 New module 'uninorm/u32-normcoll'.
5652 * lib/uninorm/u32-normcoll.c: New file.
5653 * modules/uninorm/u32-normcoll: New file.
5655 New module 'uninorm/u16-normcoll'.
5656 * lib/uninorm/u16-normcoll.c: New file.
5657 * modules/uninorm/u16-normcoll: New file.
5659 New module 'uninorm/u8-normcoll'.
5660 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
5662 * lib/uninorm/u8-normcoll.c: New file.
5663 * lib/uninorm/u-normcoll.h: New file.
5664 * modules/uninorm/u8-normcoll: New file.
5666 New module 'uninorm/u32-normxfrm'.
5667 * lib/uninorm/u32-normxfrm.c: New file.
5668 * modules/uninorm/u32-normxfrm: New file.
5670 New module 'uninorm/u16-normxfrm'.
5671 * lib/uninorm/u16-normxfrm.c: New file.
5672 * modules/uninorm/u16-normxfrm: New file.
5674 New module 'uninorm/u8-normxfrm'.
5675 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
5677 * lib/uninorm/u8-normxfrm.c: New file.
5678 * lib/uninorm/u-normxfrm.h: New file.
5679 * modules/uninorm/u8-normxfrm: New file.
5681 2009-03-07 Bruno Haible <bruno@clisp.org>
5683 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
5684 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
5685 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
5687 2009-03-07 Bruno Haible <bruno@clisp.org>
5689 New module 'memxfrm'.
5690 * lib/memxfrm.h: New file.
5691 * lib/memxfrm.c: New file.
5692 * modules/memxfrm: New file.
5694 2009-03-07 Bruno Haible <bruno@clisp.org>
5696 New module 'memcmp2'.
5697 * lib/memcmp2.h: New file.
5698 * lib/memcmp2.c: New file.
5699 * modules/memcmp2: New file.
5701 2009-03-07 Bruno Haible <bruno@clisp.org>
5703 Tests for module 'uninorm/decomposing-form'.
5704 * modules/uninorm/decomposing-form-tests: New file.
5705 * tests/uninorm/test-decomposing-form.c: New file.
5707 New module 'uninorm/decomposing-form'.
5708 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
5709 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
5710 Add 'decomposing_variant' field.
5711 * lib/uninorm/decomposing-form.c: New file.
5712 * lib/uninorm/nfc.c (uninorm_nfc): Update.
5713 * lib/uninorm/nfd.c (uninorm_nfd): Update.
5714 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
5715 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
5716 * modules/uninorm/decomposing-form: New file.
5717 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
5718 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
5720 2009-03-07 Bruno Haible <bruno@clisp.org>
5722 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
5725 2009-03-06 Bruno Haible <bruno@clisp.org>
5727 Tests for module 'uninorm/u32-normcmp'.
5728 * tests/uninorm/test-u32-normcmp.c: New file.
5729 * modules/uninorm/u32-normcmp-tests: New file.
5731 Tests for module 'uninorm/u16-normcmp'.
5732 * tests/uninorm/test-u16-normcmp.c: New file.
5733 * modules/uninorm/u16-normcmp-tests: New file.
5735 Tests for module 'uninorm/u8-normcmp'.
5736 * tests/uninorm/test-u8-normcmp.c: New file.
5737 * modules/uninorm/u8-normcmp-tests: New file.
5739 New module 'uninorm/u32-normcmp'.
5740 * lib/uninorm/u32-normcmp.c: New file.
5741 * modules/uninorm/u32-normcmp: New file.
5743 New module 'uninorm/u16-normcmp'.
5744 * lib/uninorm/u16-normcmp.c: New file.
5745 * modules/uninorm/u16-normcmp: New file.
5747 New module 'uninorm/u8-normcmp'.
5748 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
5750 * lib/uninorm/u8-normcmp.c: New file.
5751 * lib/uninorm/u-normcmp.h: New file.
5752 * modules/uninorm/u8-normcmp: New file.
5754 2009-03-06 Bruno Haible <bruno@clisp.org>
5756 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
5757 Reported by Eric Blake.
5759 2009-03-06 Eric Blake <ebb9@byu.net>
5760 Bruno Haible <bruno@clisp.org>
5762 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
5763 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
5765 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
5766 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
5768 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
5770 2009-03-06 Eric Blake <ebb9@byu.net>
5772 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
5773 to avoid compiler warnings.
5774 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
5776 2009-03-05 Bruno Haible <bruno@clisp.org>
5778 * tests/test-ftell.c (main): Disable test beyond end of file on
5780 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
5782 2009-03-05 Kamil Dudka <kdudka@redhat.com>
5784 * lib/filevercmp.c: Move hidden files up in ordering.
5785 * tests/test-filevercmp.c: Add tests for hidden files.
5787 2009-03-04 Bruno Haible <bruno@clisp.org>
5789 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
5790 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
5792 Reported by Simon Josefsson.
5794 2009-03-03 Bruno Haible <bruno@clisp.org>
5796 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
5797 Reported by Simon Josefsson.
5799 * doc/ld-version-script.texi: Update node reference.
5801 2009-03-03 Bruno Haible <bruno@clisp.org>
5803 * modules/visibility (License): Change to 'unlimited'.
5804 Suggested by Simon Josefsson.
5806 2009-03-03 Jim Meyering <meyering@redhat.com>
5808 unlinkdir: cannot_unlink_dir may modify process state
5809 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
5810 it's neither thread-safe nor appropriate for use in a library.
5812 2009-03-03 Eric Blake <ebb9@byu.net>
5814 test-closein: silence test under Darwin
5815 * tests/test-closein.sh: Ignore stderr from cat, since we don't
5816 care if it dies from EPIPE or EBADF.
5818 2009-03-03 Bruno Haible <bruno@clisp.org>
5820 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
5822 * doc/visibility.texi: Fix @node and @section.
5824 2009-03-03 Simon Josefsson <simon@josefsson.org>
5826 * doc/gnulib.texi: Link to sections for ld version script and
5828 * doc/visibility.texi: Add @node and @section.
5829 * modules/ld-version-script: New module.
5830 * m4/ld-version-script.m4: New file.
5831 * doc/ld-version-script.texi: New file.
5833 2009-03-02 David Lutterkort <lutter@redhat.com>
5835 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
5836 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5838 2009-03-02 Bruno Haible <bruno@clisp.org>
5840 * doc/visibility.texi: Mention libtool's -export-symbols option.
5842 2009-03-02 Jim Meyering <meyering@redhat.com>
5844 announce-gen: new option: --no-print-checksums
5845 * build-aux/announce-gen (usage): Describe it.
5846 (print_checksums): Print a newline here, not in the [*] footnote.
5849 2009-03-01 Bruno Haible <bruno@clisp.org>
5851 Use socklen_t in the native Windows replacements prototypes.
5852 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
5854 * lib/getsockopt.c (rpl_getsockopt): Likewise.
5855 * lib/setsockopt.c (rpl_setsockopt): Likewise.
5856 * modules/getsockopt (Depends-on): Add socklen.
5857 * modules/setsockopt (Depends-on): Add socklen.
5859 2009-03-01 Bruno Haible <bruno@clisp.org>
5861 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
5864 2009-03-01 Eric Blake <ebb9@byu.net>
5865 Bruno Haible <bruno@clisp.org>
5867 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
5869 * lib/wait-process.c (wait_subprocess): Omit error message about
5870 deadly signal sent to the child of termsigp != NULL.
5872 2009-03-01 Eric Blake <ebb9@byu.net>
5874 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
5876 2009-03-01 Bruno Haible <bruno@clisp.org>
5878 Avoid a gcc warning.
5879 * tests/test-sched.c (b): Make global.
5880 Reported by Eric Blake.
5882 2009-01-19 Martin Lambers <marlam@marlam.de>
5884 Provide POSIX semantics for socket timeout options on W32.
5885 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
5886 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
5887 * modules/setsockopt: Depend on sys_time module for struct timeval.
5888 * modules/getsockopt: Depend on sys_time module for struct timeval.
5890 2009-03-01 Simon Josefsson <simon@josefsson.org>
5892 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
5893 __USE_GNU, for consistency with netdb.in.h.
5894 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
5896 2009-03-01 Bruno Haible <bruno@clisp.org>
5898 More support for FreeMiNT.
5899 * lib/fseeko.c (rpl_fseeko): Complete last commit.
5900 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
5902 2009-03-01 Bruno Haible <bruno@clisp.org>
5904 More support for FreeMiNT.
5905 * lib/fpurge.c (fpurge): Correct last commit.
5906 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
5908 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5910 Fix unportable awk script in vc-list-files.
5911 * build-aux/vc-list-files: In the replacement awk script, use
5912 substr with a second argument of 1, not zero.
5913 Report by Simon Josefsson.
5915 2009-02-28 Bruno Haible <bruno@clisp.org>
5917 More support for FreeMiNT.
5918 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
5920 * lib/fwriting.c (fwriting): Likewise.
5921 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
5923 2009-02-28 Bruno Haible <bruno@clisp.org>
5925 * tests/test-freadseek.c (main): Disable test beyond end of file on
5927 * tests/test-ftello.c (main): Likewise.
5928 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
5930 2009-02-28 Bruno Haible <bruno@clisp.org>
5932 Add tentative support for FreeMiNT.
5933 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
5934 * lib/fpurge.c (fpurge): Likewise.
5935 * lib/freadable.c (freadable): Likewise.
5936 * lib/freading.c (freading): Likewise.
5937 * lib/freadptr.c (freadptr): Likewise.
5938 * lib/freadseek.c (freadptrinc): Likewise.
5939 * lib/fseeko.c (rpl_fseeko): Likewise.
5940 * lib/fseterr.c (fseterr): Likewise.
5941 * lib/fwritable.c (fwritable): Likewise.
5942 * lib/fwriting.c (fwriting): Likewise.
5943 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
5945 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
5947 2009-02-28 Bruno Haible <bruno@clisp.org>
5949 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
5951 Reported by Jim Meyering.
5953 2009-02-28 Bruno Haible <bruno@clisp.org>
5955 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
5956 Mention the results of these tests on various platforms.
5957 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
5959 * doc/posix-functions/printf.texi: Likewise.
5960 * doc/posix-functions/snprintf.texi: Likewise.
5961 * doc/posix-functions/sprintf.texi: Likewise.
5962 * doc/posix-functions/vfprintf.texi: Likewise.
5963 * doc/posix-functions/vprintf.texi: Likewise.
5964 * doc/posix-functions/vsnprintf.texi: Likewise.
5965 * doc/posix-functions/vsprintf.texi: Likewise.
5966 * doc/glibc-functions/obstack_printf.texi: Likewise.
5967 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
5969 2009-02-28 Bruno Haible <bruno@clisp.org>
5971 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
5972 Reported by Loïc Minier <lool@dooz.org>.
5974 2009-02-27 Bruno Haible <bruno@clisp.org>
5976 * gnulib-tool (func_import): Make the sed expression used to create the
5977 sed script for updating the .gitignore file POSIX compliant.
5978 Reported by Eric Blake.
5980 2009-02-27 Bruno Haible <bruno@clisp.org>
5982 * gnulib-tool (sed): Don't alias as "sed --posix".
5983 Reported by Eric Blake.
5985 2009-02-27 Bruno Haible <bruno@clisp.org>
5987 Avoid test link errors.
5988 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
5989 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
5990 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
5991 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
5992 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5994 2009-02-27 Bruno Haible <bruno@clisp.org>
5996 Avoid spurious "(cached)" in configure output.
5997 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
5998 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
5999 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
6000 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
6001 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
6002 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
6003 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
6004 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
6005 Reported by Eric Blake.
6007 2009-02-27 Eric Blake <ebb9@byu.net>
6009 printf: fix regression in previous patch
6010 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
6012 2009-02-27 Bruno Haible <bruno@clisp.org>
6014 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
6016 * lib/stdint.in.h: Likewise.
6017 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
6019 2009-02-27 Eric Blake <ebb9@byu.net>
6021 doc: mention more functions added in cygwin 1.7.0
6022 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
6024 * doc/posix-functions/open_wmemstream.texi: Likewise.
6025 * doc/posix-functions/wcsnlen.texi: Likewise.
6026 * doc/posix-functions/wcsnrtombs.texi: Likewise.
6027 * doc/posix-functions/wcstod.texi: Likewise.
6028 * doc/posix-functions/wcstof.texi: Likewise.
6029 * doc/posix-functions/wcstoimax.texi: Likewise.
6030 * doc/posix-functions/wcstok.texi: Likewise.
6031 * doc/posix-functions/wcstoumax.texi: Likewise.
6033 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
6034 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
6035 * doc/posix-functions/fprintf.texi: Update.
6036 * doc/posix-functions/printf.texi: Update.
6037 * doc/posix-functions/snprintf.texi: Update.
6038 * doc/posix-functions/sprintf.texi: Update.
6039 * doc/posix-functions/vfprintf.texi: Update.
6040 * doc/posix-functions/vprintf.texi: Update.
6041 * doc/posix-functions/vsnprintf.texi: Update.
6042 * doc/posix-functions/vsprintf.texi: Update.
6043 * doc/glibc-functions/obstack_printf.texi: Update.
6044 * doc/glibc-functions/obstack_vprintf.texi: Update.
6046 2009-02-26 Eric Blake <ebb9@byu.net>
6048 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
6049 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
6050 compilation bug by using runtime conversion.
6051 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6052 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
6053 * modules/ceill-tests (Files): Use nan.h.
6054 * modules/floorl-tests (Files): Likewise.
6055 * modules/frexpl-tests (Files): Likewise.
6056 * modules/isnanl-tests (Files): Likewise.
6057 * modules/ldexpl-tests (Files): Likewise.
6058 * modules/roundl-tests (Files): Likewise.
6059 * modules/truncl-tests (Files): Likewise.
6060 * tests/test-ceill.c (main): Use a working NaN.
6061 * tests/test-floorl.c (main): Likewise.
6062 * tests/test-frexpl.c (main): Likewise.
6063 * tests/test-isnan.c (test_long_double): Likewise.
6064 * tests/test-isnanl.h (main): Likewise.
6065 * tests/test-ldexpl.h (main): Likewise.
6066 * tests/test-roundl.h (main): Likewise.
6067 * tests/test-truncl.h (main): Likewise.
6068 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
6070 2009-02-26 Eric Blake <ebb9@byu.net>
6071 Bruno Haible <bruno@clisp.org>
6073 Work around a *printf bug with %ls on Solaris.
6074 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
6075 precision is specified, sprintf stops converting the wide string
6076 argument when the number of bytes that have been produced by this
6077 conversion equals or exceeds the precision.
6078 * doc/posix-functions/fprintf.texi: Update.
6079 * doc/posix-functions/printf.texi: Update.
6080 * doc/posix-functions/snprintf.texi: Update.
6081 * doc/posix-functions/sprintf.texi: Update.
6082 * doc/posix-functions/vfprintf.texi: Update.
6083 * doc/posix-functions/vprintf.texi: Update.
6084 * doc/posix-functions/vsnprintf.texi: Update.
6085 * doc/posix-functions/vsprintf.texi: Update.
6086 * doc/glibc-functions/obstack_printf.texi: Update.
6087 * doc/glibc-functions/obstack_vprintf.texi: Update.
6089 2009-02-26 Eric Blake <ebb9@byu.net>
6091 stdlib: favor compiler check of random.h
6092 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
6093 to avoid an ObjC random.h installed by Swarm.
6095 2009-02-26 Bruno Haible <bruno@clisp.org>
6097 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
6098 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
6099 Reported by Gary V. Vaughan <gary@gnu.org>.
6101 2009-02-26 Bruno Haible <bruno@clisp.org>
6103 Fix *printf behaviour regarding the %ls directive.
6104 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
6105 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
6106 NEED_PRINTF_DIRECTIVE_LS.
6107 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
6108 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
6109 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
6110 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
6111 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
6112 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
6113 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
6114 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
6115 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
6116 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
6117 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
6118 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
6119 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
6120 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6121 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
6122 * doc/posix-functions/fprintf.texi: Update.
6123 * doc/posix-functions/printf.texi: Update.
6124 * doc/posix-functions/snprintf.texi: Update.
6125 * doc/posix-functions/sprintf.texi: Update.
6126 * doc/posix-functions/vfprintf.texi: Update.
6127 * doc/posix-functions/vprintf.texi: Update.
6128 * doc/posix-functions/vsnprintf.texi: Update.
6129 * doc/posix-functions/vsprintf.texi: Update.
6130 * doc/glibc-functions/obstack_printf.texi: Update.
6131 * doc/glibc-functions/obstack_vprintf.texi: Update.
6132 Reported by Eric Blake.
6134 2009-02-25 Bruno Haible <bruno@clisp.org>
6136 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
6138 Reported by Gary V. Vaughan <gary@gnu.org>.
6140 2009-02-25 Bruno Haible <bruno@clisp.org>
6142 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
6143 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
6144 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
6145 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
6146 Reported by Gary V. Vaughan <gary@gnu.org>.
6148 2009-02-25 Bruno Haible <bruno@clisp.org>
6150 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
6151 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
6152 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
6153 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
6154 Reported by Gary V. Vaughan <gary@gnu.org>.
6156 2009-02-25 Eric Blake <ebb9@byu.net>
6158 tests: skip fseek/ftell tests if ungetc is broken
6159 * m4/ungetc.m4: New file.
6160 * modules/fseek-tests: Split test, so ungetc dependency is
6161 separate from rest of test.
6162 * modules/fseeko-tests: Likewise.
6163 * modules/ftell-tests: Likewise.
6164 * modules/ftello-tests: Likewise.
6165 * tests/test-fseek.c (main): Isolate ungetc dependency.
6166 * tests/test-fseeko.c (main): Likewise.
6167 * tests/test-ftell.c (main): Likewise.
6168 * tests/test-ftello.c (main): Likewise.
6169 * tests/test-fseek2.sh: New file.
6170 * tests/test-fseeko2.sh: Likewise.
6171 * tests/test-ftell2.sh: Likewise.
6172 * tests/test-ftello2.sh: Likewise.
6174 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
6176 test-getaddrinfo: fix usage of skip return code 77
6177 * tests/test-gettaddrinfo.c: Return skip code 77 only
6178 for first occurance of skip (4x77 is not 77)
6180 2009-02-25 Gary V. Vaughan <gary@gnu.org>
6182 strtod: avoid C99 decl-after-statement
6183 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
6185 2009-02-24 Eric Blake <ebb9@byu.net>
6187 strtod: detect HP-UX 11.31 bug
6188 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
6189 Reported by Gary V. Vaughan.
6191 2009-02-23 Bruno Haible <bruno@clisp.org>
6193 Fix invalid read past end of memory block.
6194 * lib/vasnprintf.c (DCHAR_SET): Define.
6195 (local_wcslen): Define only when needed.
6196 (local_strnlen, local_wcsnlen): New functions.
6197 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
6198 directives that involve a conversion ourselves.
6199 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
6200 wcsnlen, mbrtowc, wcrtomb.
6201 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
6202 * tests/test-vasprintf-posix.c (test_function): Likewise.
6203 * tests/test-snprintf-posix.h (test_function): Likewise.
6204 * tests/test-sprintf-posix.h (test_function): Likewise.
6205 Reported by Ben Pfaff <blp@cs.stanford.edu>.
6207 2009-02-22 Bruno Haible <bruno@clisp.org>
6209 Implement new clarified decomposition of Hangul syllables.
6210 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
6211 of type LTV, return only a pairwise decomposition.
6212 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
6214 * tests/uninorm/test-decomposition.c (main): Updated expected result.
6215 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
6216 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
6218 2009-02-22 Bruno Haible <bruno@clisp.org>
6220 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
6221 zero-length results and shrink excess allocated memory.
6222 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
6223 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
6224 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
6225 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
6226 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
6227 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
6228 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
6229 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
6230 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
6231 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
6232 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
6233 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
6235 2009-02-21 Bruno Haible <bruno@clisp.org>
6237 * doc/gnulib.texi: Include safe-alloc.texi earlier.
6238 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
6239 spaces after a period. Put a space between a macro name and its
6240 argument list. Trivial rewordings.
6241 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
6242 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
6243 (main): Return 0 explicitly.
6245 2009-02-21 Bruno Haible <bruno@clisp.org>
6247 Tests for module 'uninorm/filter'.
6248 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
6249 * modules/uninorm/filter-tests: New file.
6251 New module 'uninorm/filter'.
6252 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
6253 uninorm_filter_flush, uninorm_filter_free): New declarations.
6254 * lib/uninorm/uninorm-filter.c: New file.
6255 * modules/uninorm/filter: New file.
6257 2009-02-21 Bruno Haible <bruno@clisp.org>
6259 Tests for module 'uninorm/nfkc'.
6260 * tests/uninorm/test-nfkc.c: New file.
6261 * tests/uninorm/test-u8-nfkc.c: New file.
6262 * tests/uninorm/test-u16-nfkc.c: New file.
6263 * tests/uninorm/test-u32-nfkc.c: New file.
6264 * tests/uninorm/test-u32-nfkc-big.sh: New file.
6265 * tests/uninorm/test-u32-nfkc-big.c: New file.
6266 * modules/uninorm/nfkc-tests: New file.
6268 New module 'uninorm/nfkc'.
6269 * lib/uninorm/nfkc.c: New file.
6270 * modules/uninorm/nfkc: New file.
6272 Tests for module 'uninorm/nfkd'.
6273 * tests/uninorm/test-nfkd.c: New file.
6274 * tests/uninorm/test-u8-nfkd.c: New file.
6275 * tests/uninorm/test-u16-nfkd.c: New file.
6276 * tests/uninorm/test-u32-nfkd.c: New file.
6277 * tests/uninorm/test-u32-nfkd-big.sh: New file.
6278 * tests/uninorm/test-u32-nfkd-big.c: New file.
6279 * modules/uninorm/nfkd-tests: New file.
6281 New module 'uninorm/nfkd'.
6282 * lib/uninorm/nfkd.c: New file.
6283 * modules/uninorm/nfkd: New file.
6285 Tests for module 'uninorm/nfc'.
6286 * tests/uninorm/test-nfc.c: New file.
6287 * tests/uninorm/test-u8-nfc.c: New file.
6288 * tests/uninorm/test-u16-nfc.c: New file.
6289 * tests/uninorm/test-u32-nfc.c: New file.
6290 * tests/uninorm/test-u32-nfc-big.sh: New file.
6291 * tests/uninorm/test-u32-nfc-big.c: New file.
6292 * modules/uninorm/nfc-tests: New file.
6294 New module 'uninorm/nfc'.
6295 * lib/uninorm/nfc.c: New file.
6296 * modules/uninorm/nfc: New file.
6298 Tests for module 'uninorm/nfd'.
6299 * tests/uninorm/test-nfd.c: New file.
6300 * tests/uninorm/test-u8-nfd.c: New file.
6301 * tests/uninorm/test-u16-nfd.c: New file.
6302 * tests/uninorm/test-u32-nfd.c: New file.
6303 * tests/uninorm/test-u32-nfd-big.sh: New file.
6304 * tests/uninorm/test-u32-nfd-big.c: New file.
6305 * tests/uninorm/test-u32-normalize-big.h: New file.
6306 * tests/uninorm/test-u32-normalize-big.c: New file.
6307 * tests/uninorm/NormalizationTest.txt: New file, created from
6308 Unicode 5.1.0 NormalizationTest.txt.
6309 * modules/uninorm/nfd-tests: New file.
6311 New module 'uninorm/nfd'.
6312 * lib/uninorm/nfd.c: New file.
6313 * modules/uninorm/nfd: New file.
6315 New module 'uninorm/u32-normalize'.
6316 * lib/uninorm/u32-normalize.c: New file.
6317 * modules/uninorm/u32-normalize: New file.
6319 New module 'uninorm/u16-normalize'.
6320 * lib/uninorm/u16-normalize.c: New file.
6321 * modules/uninorm/u16-normalize: New file.
6323 New module 'uninorm/u8-normalize'.
6324 * lib/uninorm/u8-normalize.c: New file.
6325 * lib/uninorm/normalize-internal.h: New file.
6326 * lib/uninorm/u-normalize-internal.h: New file.
6327 * modules/uninorm/u8-normalize: New file.
6329 New module 'uninorm/decompose-internal'.
6330 * lib/uninorm/decompose-internal.c: New file.
6331 * modules/uninorm/decompose-internal: New file.
6333 Tests for module 'uninorm/composition'.
6334 * tests/uninorm/test-composition.c: New file.
6335 * modules/uninorm/composition-tests: New file.
6337 New module 'uninorm/composition'.
6338 * lib/uninorm/composition.c: New file.
6339 * lib/uninorm/composition-table.gperf: New file, generated by
6341 * modules/uninorm/composition: New file.
6343 Tests for module 'uninorm/compat-decomposition'.
6344 * tests/uninorm/test-compat-decomposition.c: New file.
6345 * modules/uninorm/compat-decomposition-tests: New file.
6347 New module 'uninorm/compat-decomposition'.
6348 * lib/uninorm/decompose-internal.h: New file.
6349 * lib/uninorm/compat-decomposition.c: New file.
6350 * modules/uninorm/compat-decomposition: New file.
6352 Tests for module 'uninorm/canonical-decomposition'.
6353 * tests/uninorm/test-canonical-decomposition.c: New file.
6354 * modules/uninorm/canonical-decomposition-tests: New file.
6356 New module 'uninorm/canonical-decomposition'.
6357 * lib/uninorm/canonical-decomposition.c: New file.
6358 * modules/uninorm/canonical-decomposition: New file.
6360 Tests for module 'uninorm/decomposition'.
6361 * tests/uninorm/test-decomposition.c: New file.
6362 * modules/uninorm/decomposition-tests: New file.
6364 New module 'uninorm/decomposition'.
6365 * lib/uninorm/decomposition.c: New file.
6366 * modules/uninorm/decomposition: New file.
6368 New module 'uninorm/decomposition-table'.
6369 * lib/uninorm/decomposition-table.h: New file.
6370 * lib/uninorm/decomposition-table.c: New file.
6371 * lib/uninorm/decomposition-table1.h: New file, generated by
6373 * lib/uninorm/decomposition-table2.h: New file, generated by
6375 * modules/uninorm/decomposition-table: New file.
6377 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
6378 (UC_DECOMP_*): New enumeration items.
6379 (get_decomposition): New function.
6380 (struct decomp_table): New type.
6381 (output_decomposition, output_decomposition_tables): New functions.
6382 (unicode_composition_exclusions): New variable.
6383 (fill_composition_exclusions, debug_output_composition_tables): New
6385 (main): Accept one more argument. Invoke fill_composition_exclusions.
6386 Output decomposition and composition tables.
6388 New module 'uninorm/base'.
6389 * lib/uninorm.h: New file.
6390 * lib/unictype.h: Update comment.
6391 * modules/uninorm/base: New file.
6393 2009-02-21 David Lutterkort <lutter@redhat.com>
6395 Tests for module 'safe-alloc'.
6396 * tests/test-safe-alloc.c: New file.
6397 * modules/safe-alloc-tests: New file.
6399 New module 'safe-alloc'.
6400 * lib/safe-alloc.h: New file.
6401 * lib/safe-alloc.c: New file.
6402 * m4/safe-alloc.m4: New file.
6403 * modules/safe-alloc: New file.
6404 * doc/safe-alloc.texi: New file.
6405 * doc/gnulib.texi: Include it.
6406 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
6409 2009-02-18 Bruno Haible <bruno@clisp.org>
6411 Fix link error on non-glibc systems.
6412 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
6414 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6416 2009-02-18 Jim Meyering <meyering@redhat.com>
6418 fts: avoid used-uninitialized error due to recent change
6419 * lib/fts.c (fts_read): Guard uses of the new member,
6420 parent->fts_n_dirs_remaining, since it's not relevant for
6421 the parent of a directory specified on the command-line.
6423 2009-02-17 James Youngman <jay@gnu.org>
6424 Bruno Haible <bruno@clisp.org>
6426 * m4/include_next.m4: Reformulate comment.
6428 2009-02-16 Jim Meyering <meyering@redhat.com>
6430 fts: add #if guards so that the fts_lgpl module still builds
6431 * lib/fts.c: Guard just-added hash-table-using parts with
6432 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
6433 Reported by Simon Josefsson.
6435 2009-02-15 Bruno Haible <bruno@clisp.org>
6437 * modules/array-mergesort-tests: New file.
6438 * tests/test-array-mergesort.c: New file.
6440 New module 'array-mergesort'.
6441 * modules/array-mergesort: New file.
6442 * lib/array-mergesort.h: New file.
6444 2009-02-15 Bruno Haible <bruno@clisp.org>
6446 Fix 2009-02-07 commit.
6447 * lib/gen-uni-tables.c (output_predicate, output_category,
6448 output_combclass, output_bidi_category, output_decimal_digit,
6449 output_digit, output_numeric, output_mirror, output_scripts,
6450 output_ident_category, output_simple_mapping): Fix format directives.
6451 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
6453 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
6455 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
6456 fixes are available from IBM.
6458 2009-02-13 Jim Meyering <meyering@redhat.com>
6460 fts: arrange not to stat non-directories in more cases
6461 This makes GNU find (when it doesn't need to stat each file)
6462 *much* more efficient at traversing reiserfs file systems.
6463 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
6464 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
6465 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
6466 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
6467 (leaf_optimization_applies): New function.
6468 (LCO_hash, LCO_compare): New helper functions.
6469 (link_count_optimize_ok): New function.
6470 (fts_stat): Initialize new member (if dir).
6471 (fts_read): Decrement parent's fts_n_dirs_remaining count if
6472 we've just stat'ed a directory. Skip the stat call when possible.
6474 Note this AFS-related exchange:
6475 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
6476 and note find's pioctl call in find/fstype.c.
6477 But that is necessary only if you want to enable the
6478 optimization for AFS, and for now, I don't.
6480 fts: move a function definition "up" (no semantic change)
6481 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
6482 "up" to precede upcoming use of a related function.
6484 2009-02-11 Jim Meyering <meyering@redhat.com>
6486 fts: correct internal computation of nlinks (optimization-related)
6487 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
6488 whether the current entry is a directory, so don't test it.
6490 2009-02-10 Bruno Haible <bruno@clisp.org>
6492 Tests for module 'uniwbrk/ulc-wordbreaks'.
6493 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
6494 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
6495 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
6497 Tests for module 'uniwbrk/u32-wordbreaks'.
6498 * modules/uniwbrk/u32-wordbreaks-tests: New file.
6499 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
6501 Tests for module 'uniwbrk/u16-wordbreaks'.
6502 * modules/uniwbrk/u16-wordbreaks-tests: New file.
6503 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
6505 Tests for module 'uniwbrk/u8-wordbreaks'.
6506 * modules/uniwbrk/u8-wordbreaks-tests: New file.
6507 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
6509 2009-02-10 Bruno Haible <bruno@clisp.org>
6511 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
6513 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
6514 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
6515 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
6517 2009-02-10 Simon Josefsson <simon@josefsson.org>
6519 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
6520 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
6522 2009-02-10 Bruno Haible <bruno@clisp.org>
6524 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
6525 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
6526 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
6527 * lib/unilbrk/u8-possible-linebreaks.c: Update.
6528 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
6529 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
6531 2009-02-09 Simon Josefsson <simon@josefsson.org>
6533 * lib/sockets.h (gl_fd_to_handle): New function.
6535 * tests/test-sockets.c: Call gl_fd_to_handle.
6537 2009-02-09 Bruno Haible <bruno@clisp.org>
6539 * doc/havelib.texi: Document the conventions on bi-arch systems.
6541 2009-02-08 Bruno Haible <bruno@clisp.org>
6543 Document the AC_LIB_LINKFLAGS macro.
6544 * doc/havelib.texi: New file, mostly written on 2005-05-24.
6545 * doc/gnulib.texi: Include it.
6547 2009-02-08 Bruno Haible <bruno@clisp.org>
6549 Fix wrong order of sections, compared to TOC.
6550 * doc/gnulib.texi: Include relocatable-maint.texi after the
6551 "Regular expressions" node, not before.
6553 2009-02-08 Bruno Haible <bruno@clisp.org>
6555 Tests for module 'unicase/totitle'.
6556 * modules/unicase/totitle-tests: New file.
6558 Tests for module 'unicase/tolower'.
6559 * modules/unicase/tolower-tests: New file.
6561 Tests for module 'unicase/toupper'.
6562 * modules/unicase/toupper-tests: New file.
6563 * tests/unicase/test-mapping-part1.h: New file.
6564 * tests/unicase/test-mapping-part2.h: New file.
6566 New module 'unicase/totitle'.
6567 * modules/unicase/totitle: New file.
6568 * lib/unicase/totitle.c: New file.
6570 New module 'unicase/tolower'.
6571 * modules/unicase/tolower: New file.
6572 * lib/unicase/tolower.c: New file.
6574 New module 'unicase/toupper'.
6575 * modules/unicase/toupper: New file.
6576 * lib/unicase/toupper.c: New file.
6577 * lib/unicase/simple-mapping.h: New file.
6579 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
6580 (mapping_table): New structure.
6581 (output_simple_mapping): New function.
6582 (main): Invoke output_simple_mapping_test and output_simple_mapping.
6583 * modules/gen-uni-tables (Description): Update.
6584 * lib/unicase/toupper.h: New file, automatically generated by
6586 * lib/unicase/tolower.h: New file, automatically generated by
6588 * lib/unicase/totitle.h: New file, automatically generated by
6590 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
6592 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
6594 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
6597 New module 'unicase/base'.
6598 * modules/unicase/base: New file.
6599 * lib/unicase.h: New file.
6601 2009-02-08 Bruno Haible <bruno@clisp.org>
6603 New module 'uniwbrk/ulc-wordbreaks'.
6604 * modules/uniwbrk/ulc-wordbreaks: New file.
6605 * lib/uniwbrk/ulc-wordbreaks.c: New file.
6607 New module 'uniwbrk/u32-wordbreaks'.
6608 * modules/uniwbrk/u32-wordbreaks: New file.
6609 * lib/uniwbrk/u32-wordbreaks.c: New file.
6611 New module 'uniwbrk/u16-wordbreaks'.
6612 * modules/uniwbrk/u16-wordbreaks: New file.
6613 * lib/uniwbrk/u16-wordbreaks.c: New file.
6615 New module 'uniwbrk/u8-wordbreaks'.
6616 * modules/uniwbrk/u8-wordbreaks: New file.
6617 * lib/uniwbrk/u8-wordbreaks.c: New file.
6618 * lib/uniwbrk/u-wordbreaks.h: New file.
6620 New module 'uniwbrk/table'.
6621 * modules/uniwbrk/table: New file.
6622 * lib/uniwbrk/wbrktable.h: New file.
6623 * lib/uniwbrk/wbrktable.c: New file.
6625 New module 'uniwbrk/wordbreak-property'.
6626 * modules/uniwbrk/wordbreak-property: New file.
6627 * lib/uniwbrk/wordbreak-property.c: New file.
6629 * lib/gen-uni-tables.c (WBP_*): New enum items.
6630 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
6631 (unicode_org_wbp): New variable.
6632 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
6634 (wbp_table): New structure.
6635 (output_wbp, output_wbrk_tables): New functions.
6636 (main): Accept additional argument. Invoke fill_org_wbp,
6637 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
6639 * modules/gen-uni-tables (Description): Update.
6640 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
6643 New module 'uniwbrk/base'.
6644 * modules/uniwbrk/base: New file.
6645 * lib/uniwbrk.h: New file.
6647 2009-02-08 Bruno Haible <bruno@clisp.org>
6649 Update to Unicode 5.1.0.
6650 * lib/gen-uni-tables.c (is_property_alphabetic): Include
6652 (is_property_default_ignorable_code_point): Don't include characters
6653 of category Cc or Cs and not-a-characters.
6654 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
6655 U+0D79, U+109E, U+109F, U+A60C.
6656 * lib/unictype/bidi_of.h: Regenerated.
6657 * lib/unictype/blocks.h: Regenerated.
6658 * lib/unictype/categ_C.h: Regenerated.
6659 * lib/unictype/categ_Cf.h: Regenerated.
6660 * lib/unictype/categ_Cn.h: Regenerated.
6661 * lib/unictype/categ_L.h: Regenerated.
6662 * lib/unictype/categ_Ll.h: Regenerated.
6663 * lib/unictype/categ_Lm.h: Regenerated.
6664 * lib/unictype/categ_Lo.h: Regenerated.
6665 * lib/unictype/categ_Lu.h: Regenerated.
6666 * lib/unictype/categ_M.h: Regenerated.
6667 * lib/unictype/categ_Mc.h: Regenerated.
6668 * lib/unictype/categ_Me.h: Regenerated.
6669 * lib/unictype/categ_Mn.h: Regenerated.
6670 * lib/unictype/categ_N.h: Regenerated.
6671 * lib/unictype/categ_Nd.h: Regenerated.
6672 * lib/unictype/categ_Nl.h: Regenerated.
6673 * lib/unictype/categ_No.h: Regenerated.
6674 * lib/unictype/categ_P.h: Regenerated.
6675 * lib/unictype/categ_Pd.h: Regenerated.
6676 * lib/unictype/categ_Pe.h: Regenerated.
6677 * lib/unictype/categ_Pf.h: Regenerated.
6678 * lib/unictype/categ_Pi.h: Regenerated.
6679 * lib/unictype/categ_Po.h: Regenerated.
6680 * lib/unictype/categ_Ps.h: Regenerated.
6681 * lib/unictype/categ_S.h: Regenerated.
6682 * lib/unictype/categ_Sk.h: Regenerated.
6683 * lib/unictype/categ_Sm.h: Regenerated.
6684 * lib/unictype/categ_So.h: Regenerated.
6685 * lib/unictype/categ_of.h: Regenerated.
6686 * lib/unictype/combining.h: Regenerated.
6687 * lib/unictype/ctype_alnum.h: Regenerated.
6688 * lib/unictype/ctype_alpha.h: Regenerated.
6689 * lib/unictype/ctype_graph.h: Regenerated.
6690 * lib/unictype/ctype_lower.h: Regenerated.
6691 * lib/unictype/ctype_print.h: Regenerated.
6692 * lib/unictype/ctype_punct.h: Regenerated.
6693 * lib/unictype/ctype_upper.h: Regenerated.
6694 * lib/unictype/decdigit.h: Regenerated.
6695 * lib/unictype/digit.h: Regenerated.
6696 * lib/unictype/mirror.h: Regenerated.
6697 * lib/unictype/numeric.h: Regenerated.
6698 * lib/unictype/pr_alphabetic.h: Regenerated.
6699 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
6700 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
6701 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
6702 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
6703 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
6704 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
6705 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
6706 * lib/unictype/pr_combining.h: Regenerated.
6707 * lib/unictype/pr_dash.h: Regenerated.
6708 * lib/unictype/pr_decimal_digit.h: Regenerated.
6709 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
6710 * lib/unictype/pr_deprecated.h: Regenerated.
6711 * lib/unictype/pr_diacritic.h: Regenerated.
6712 * lib/unictype/pr_extender.h: Regenerated.
6713 * lib/unictype/pr_format_control.h: Regenerated.
6714 * lib/unictype/pr_grapheme_base.h: Regenerated.
6715 * lib/unictype/pr_grapheme_extend.h: Regenerated.
6716 * lib/unictype/pr_grapheme_link.h: Regenerated.
6717 * lib/unictype/pr_id_continue.h: Regenerated.
6718 * lib/unictype/pr_id_start.h: Regenerated.
6719 * lib/unictype/pr_ideographic.h: Regenerated.
6720 * lib/unictype/pr_ignorable_control.h: Regenerated.
6721 * lib/unictype/pr_lowercase.h: Regenerated.
6722 * lib/unictype/pr_math.h: Regenerated.
6723 * lib/unictype/pr_numeric.h: Regenerated.
6724 * lib/unictype/pr_other_alphabetic.h: Regenerated.
6725 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
6726 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
6727 * lib/unictype/pr_other_id_continue.h: Regenerated.
6728 * lib/unictype/pr_other_lowercase.h: Regenerated.
6729 * lib/unictype/pr_other_math.h: Regenerated.
6730 * lib/unictype/pr_punctuation.h: Regenerated.
6731 * lib/unictype/pr_sentence_terminal.h: Regenerated.
6732 * lib/unictype/pr_soft_dotted.h: Regenerated.
6733 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
6734 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
6735 * lib/unictype/pr_unified_ideograph.h: Regenerated.
6736 * lib/unictype/pr_uppercase.h: Regenerated.
6737 * lib/unictype/pr_xid_continue.h: Regenerated.
6738 * lib/unictype/pr_xid_start.h: Regenerated.
6739 * lib/unictype/pr_zero_width.h: Regenerated.
6740 * lib/unictype/scripts.h: Regenerated.
6741 * lib/unictype/scripts_byname.gperf: Regenerated.
6742 * lib/unictype/sy_java_ident.h: Regenerated.
6743 * lib/unilbrk/lbrkprop1.h: Regenerated.
6744 * lib/unilbrk/lbrkprop2.h: Regenerated.
6745 * tests/unictype/test-categ_C.c: Regenerated.
6746 * tests/unictype/test-categ_Cf.c: Regenerated.
6747 * tests/unictype/test-categ_Cn.c: Regenerated.
6748 * tests/unictype/test-categ_L.c: Regenerated.
6749 * tests/unictype/test-categ_Ll.c: Regenerated.
6750 * tests/unictype/test-categ_Lm.c: Regenerated.
6751 * tests/unictype/test-categ_Lo.c: Regenerated.
6752 * tests/unictype/test-categ_Lu.c: Regenerated.
6753 * tests/unictype/test-categ_M.c: Regenerated.
6754 * tests/unictype/test-categ_Mc.c: Regenerated.
6755 * tests/unictype/test-categ_Me.c: Regenerated.
6756 * tests/unictype/test-categ_Mn.c: Regenerated.
6757 * tests/unictype/test-categ_N.c: Regenerated.
6758 * tests/unictype/test-categ_Nd.c: Regenerated.
6759 * tests/unictype/test-categ_Nl.c: Regenerated.
6760 * tests/unictype/test-categ_No.c: Regenerated.
6761 * tests/unictype/test-categ_P.c: Regenerated.
6762 * tests/unictype/test-categ_Pd.c: Regenerated.
6763 * tests/unictype/test-categ_Pe.c: Regenerated.
6764 * tests/unictype/test-categ_Pf.c: Regenerated.
6765 * tests/unictype/test-categ_Pi.c: Regenerated.
6766 * tests/unictype/test-categ_Po.c: Regenerated.
6767 * tests/unictype/test-categ_Ps.c: Regenerated.
6768 * tests/unictype/test-categ_S.c: Regenerated.
6769 * tests/unictype/test-categ_Sk.c: Regenerated.
6770 * tests/unictype/test-categ_Sm.c: Regenerated.
6771 * tests/unictype/test-categ_So.c: Regenerated.
6772 * tests/unictype/test-ctype_alnum.c: Regenerated.
6773 * tests/unictype/test-ctype_alpha.c: Regenerated.
6774 * tests/unictype/test-ctype_graph.c: Regenerated.
6775 * tests/unictype/test-ctype_lower.c: Regenerated.
6776 * tests/unictype/test-ctype_print.c: Regenerated.
6777 * tests/unictype/test-ctype_punct.c: Regenerated.
6778 * tests/unictype/test-ctype_upper.c: Regenerated.
6779 * tests/unictype/test-decdigit.h: Regenerated.
6780 * tests/unictype/test-digit.h: Regenerated.
6781 * tests/unictype/test-numeric.h: Regenerated.
6782 * tests/unictype/test-pr_alphabetic.c: Regenerated.
6783 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
6784 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
6785 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
6786 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
6787 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
6788 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
6789 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
6790 * tests/unictype/test-pr_combining.c: Regenerated.
6791 * tests/unictype/test-pr_dash.c: Regenerated.
6792 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
6793 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
6794 * tests/unictype/test-pr_deprecated.c: Regenerated.
6795 * tests/unictype/test-pr_diacritic.c: Regenerated.
6796 * tests/unictype/test-pr_extender.c: Regenerated.
6797 * tests/unictype/test-pr_format_control.c: Regenerated.
6798 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
6799 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
6800 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
6801 * tests/unictype/test-pr_id_continue.c: Regenerated.
6802 * tests/unictype/test-pr_id_start.c: Regenerated.
6803 * tests/unictype/test-pr_ideographic.c: Regenerated.
6804 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
6805 * tests/unictype/test-pr_lowercase.c: Regenerated.
6806 * tests/unictype/test-pr_math.c: Regenerated.
6807 * tests/unictype/test-pr_numeric.c: Regenerated.
6808 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
6809 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
6811 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
6812 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
6813 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
6814 * tests/unictype/test-pr_other_math.c: Regenerated.
6815 * tests/unictype/test-pr_punctuation.c: Regenerated.
6816 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
6817 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
6818 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
6819 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
6820 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
6821 * tests/unictype/test-pr_uppercase.c: Regenerated.
6822 * tests/unictype/test-pr_xid_continue.c: Regenerated.
6823 * tests/unictype/test-pr_xid_start.c: Regenerated.
6824 * tests/unictype/test-pr_zero_width.c: Regenerated.
6826 Update to Unicode 5.1.0.
6827 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
6828 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
6829 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
6830 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
6831 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
6832 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
6833 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
6834 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
6835 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
6836 (nonspacing_table_ind): Update.
6837 * tests/uniwidth/test-uc_width2.sh: Update expected result.
6839 Update to Unicode 5.1.0.
6840 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
6842 * lib/uniname/uniname.c (unicode_character_name,
6843 unicode_name_character): Add the range 0x1Fxxx to the code transform.
6844 * lib/uniname/uninames.h: Regenerated.
6845 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
6847 2009-02-07 Bruno Haible <bruno@clisp.org>
6849 Merge gen-ctype and gen-lbrk into a single program.
6850 * lib/gen-uni-tables.c: New file, incorporating
6851 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
6852 Add directory prefixes to the names of the generated files.
6853 * lib/unictype/gen-ctype.c: Remove file.
6854 * lib/unilbrk/gen-lbrk.c: Remove file.
6855 * modules/gen-uni-tables: New file.
6856 * modules/unictype/gen-ctype: Remove file.
6857 * modules/unilbrk/gen-lbrk: Remove file.
6859 2009-02-07 Bruno Haible <bruno@clisp.org>
6861 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
6863 New module 'unistr/u32-strcoll'.
6864 * modules/unistr/u32-strcoll: New file.
6865 * lib/unistr/u32-strcoll.c: New file.
6867 New module 'unistr/u16-strcoll'.
6868 * modules/unistr/u16-strcoll: New file.
6869 * lib/unistr/u16-strcoll.c: New file.
6871 New module 'unistr/u8-strcoll'.
6872 * modules/unistr/u8-strcoll: New file.
6873 * lib/unistr/u8-strcoll.c: New file.
6874 * lib/unistr/u-strcoll.h: New file.
6876 2009-02-07 Bruno Haible <bruno@clisp.org>
6878 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
6879 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
6880 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
6881 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
6882 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
6883 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
6885 2009-02-07 Bruno Haible <bruno@clisp.org>
6888 * lib/unictype/gen-ctype.c (output_predicate, output_category,
6889 output_combclass, output_bidi_category, output_decimal_digit,
6890 output_digit, output_numeric, output_mirror, output_scripts,
6891 output_ident_category): Use proper width specifier in format strings.
6893 2009-02-07 Bruno Haible <bruno@clisp.org>
6895 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
6898 2009-02-07 Jim Meyering <meyering@redhat.com>
6900 regex: avoid compilation failure with upcoming gcc-4.4
6901 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
6902 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
6903 "... error: integer overflow in preprocessor expression".
6905 2009-02-05 Ben Pfaff <blp@gnu.org>
6907 Fix link errors on Windows when close module is used.
6908 * modules/close: Add $(LIB_CLOSE) to Link section.
6909 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
6910 $(LIB_CLOSE) on Windows.
6912 2009-02-05 Jim Meyering <meyering@redhat.com>
6914 still avoid unused-parameter warnings, but do it cleanly
6915 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
6916 (get_fs_usage): Cast to void instead.
6917 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
6918 (dev_from_mount_options, read_file_system_list): Cast to void.
6919 Prompted by Bruno Haible.
6921 2009-02-04 Jim Meyering <meyering@redhat.com>
6923 fsusage.c: correct copyright year
6924 * lib/fsusage.c: Reflect year in which the change is pushed into
6926 avoid misc. warnings
6927 * lib/fsusage.c (UNUSED_PARAM): Define.
6928 (get_fs_usage): Mark parameter "disk" as unused.
6929 * lib/getugroups.c (getgrent): Use "void" in prototype.
6930 * lib/mountlist.c: Mark unused parameters.
6931 (read_file_system_list): Declare a local with "const".
6932 * lib/nanosleep.c (getnow): Declare static.
6933 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
6935 dirfd: set errno upon failure
6936 * lib/dirfd.c: Include <errno.h>.
6937 Set errno to ENOTSUP when returning -1.
6938 * modules/dirfd (Depends-on): Add errno.
6939 Suggested by John Kodis <kodis@comcast.net>.
6941 2009-02-01 Bruno Haible <bruno@clisp.org>
6943 Don't assume sizeof (long) >= sizeof (void *).
6944 * lib/memcmp.c: Include stdint.h.
6945 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
6946 srcp2 to 'const byte *'.
6947 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
6949 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
6950 * modules/memcmp (Depends-on): Add stdint.
6951 Reported by Ozkan Sezer <sezeroz@gmail.com>.
6953 2009-01-30 Eric Blake <ebb9@byu.net>
6955 fix more require-before-expand issues
6956 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
6957 expand, AC_PROG_AWK.
6958 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
6960 2009-01-28 Eric Blake <ebb9@byu.net>
6962 version-etc: use consistent URL formatting
6963 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
6964 Improve formatting. Use fputs for string without %.
6966 2009-01-28 Jim Meyering <meyering@redhat.com>
6968 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
6969 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
6970 "underquoted definition of NAME" from autoconf-2.59.
6972 2009-01-28 Bruno Haible <bruno@clisp.org>
6974 * doc/gnulib.texi: Add "Obsolete modules" to index.
6976 2009-01-28 Jim Meyering <meyering@redhat.com>
6978 useless-if-before-free: recognize more variants
6979 * build-aux/useless-if-before-free: Also recognize e.g.,
6980 if (NULL != p) free (p);
6982 2009-01-27 Mark McLoughlin <markmc@redhat.com>
6984 test-getaddrinfo: skip (don't fail) this test when there's no network
6985 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
6986 on the presumption that it means you lack network access.
6988 2009-01-26 Jim Meyering <meyering@redhat.com>
6990 fflush: avoid warnings on modern systems
6991 * lib/fflush.c (rpl_fflush): Move declarations of locals,
6992 pos and result, into scopes where they're used.
6994 2009-01-26 Eric Blake <ebb9@byu.net>
6996 Silence warning reintroduced by recent extensions patch.
6997 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
6998 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
7001 Backport improved autoconf semantics of AC_DEFUN_ONCE.
7002 * m4/00gnulib.m4: New file.
7003 * gnulib-tool (func_get_filelist): Always use it.
7004 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
7005 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
7007 2009-01-25 Bruno Haible <bruno@clisp.org>
7009 Make test-quotearg work on MacOS X and AIX.
7010 * tests/test-quotearg.sh: New file.
7011 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
7012 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
7013 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
7014 include <libintl.h>.
7015 (fake_locale): Remove variable.
7016 (gettext, dgettext, dcgettext): Remove functions.
7017 (main): Instead of setting a fake locale, set a real locale. Call
7018 textdomain and bindtextdomain.
7019 * modules/quotearg-tests (Files): Add the new files.
7020 (Depends-on): Add gettext, setenv, unsetenv.
7021 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
7022 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
7023 Augment TESTS_ENVIRONMENT.
7025 2009-01-25 Bruno Haible <bruno@clisp.org>
7027 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
7028 fr_FR.ISO8859-1 locale on MacOS X.
7029 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
7030 ja_JP.eucJP locale on MacOS X.
7031 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
7032 zh_CN.GB18030 locale on MacOS X.
7034 2009-01-25 Bruno Haible <bruno@clisp.org>
7036 Avoid link errors on MacOS X 10.3.
7037 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
7038 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
7040 2009-01-25 Bruno Haible <bruno@clisp.org>
7042 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
7043 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
7044 * modules/pipe (Files): Remove m4/posix_spawn.m4.
7045 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
7046 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
7047 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
7048 posix_spawnattr_init, posix_spawnattr_setsigmask,
7049 posix_spawnattr_setflags, posix_spawnattr_destroy.
7051 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
7052 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
7053 * modules/execute (Files): Remove m4/posix_spawn.m4.
7054 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
7055 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
7056 posix_spawnattr_init, posix_spawnattr_setsigmask,
7057 posix_spawnattr_setflags, posix_spawnattr_destroy.
7059 2009-01-25 Bruno Haible <bruno@clisp.org>
7061 * lib/glthread/threadlib.c: Include <stdlib.h>.
7063 2009-01-25 Bruno Haible <bruno@clisp.org>
7065 * lib/glthread/threadlib.c (dummy): New declaration.
7067 2009-01-25 Bruno Haible <bruno@clisp.org>
7069 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
7070 multibyte characters also for the GB18030 encoding. Don't crash when
7071 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
7073 2009-01-25 Bruno Haible <bruno@clisp.org>
7075 Avoid redefining 'struct random_data' on OSF/1 5.1.
7076 * lib/stdlib.in.h: Include <random.h> if it exists.
7077 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
7078 HAVE_RANDOM_H. Include <random.h> when testing whether
7079 'struct random_data' exists.
7080 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
7082 2009-01-25 Bruno Haible <bruno@clisp.org>
7084 Don't install charset.alias on MacOS X >= 10.3.
7085 * lib/localcharset.c (DARWIN7): New macro.
7086 (get_charset_aliases): Hardcode the result for Darwin7.
7087 * modules/localcharset (install-exec-local): Don't install
7088 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
7090 2009-01-25 Bruno Haible <bruno@clisp.org>
7092 Don't install charset.alias on mingw and Cygwin.
7093 * modules/localcharset (install-exec-local): Don't install
7094 charset.alias on mingw and Cygwin, if the file does not yet exist.
7095 The result for these platforms is hardcoded in localcharset.c.
7097 2009-01-25 Bruno Haible <bruno@clisp.org>
7099 Make it possible again to use AC_GNU_SOURCE together with gnulib.
7100 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
7101 before requiring AC_USE_SYSTEM_EXTENSIONS.
7103 2009-01-25 Jim Meyering <meyering@redhat.com>
7105 c-strtod: avoid warnings
7106 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
7107 "assignment discards qualifiers from pointer target type" warnings.
7109 2009-01-24 Bruno Haible <bruno@clisp.org>
7111 Add support for non-UTF-8 locales on MacOS X.
7112 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
7113 canonical encodings. For Darwin 7 and newer, don't map traditional
7115 Reported by Vincent Lefevre <vincent@vinc17.org>
7116 at <http://savannah.gnu.org/bugs/?25235>.
7118 2009-01-24 Bruno Haible <bruno@clisp.org>
7120 * doc/gnulib.texi (Obsolete modules): New section.
7121 Reported by Mike Frysinger <vapier@gentoo.org>.
7123 2009-01-24 Bruno Haible <bruno@clisp.org>
7125 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
7128 2009-01-24 Bruno Haible <bruno@clisp.org>
7130 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
7131 Reported by Eric Blake.
7133 2009-01-24 Bruno Haible <bruno@clisp.org>
7135 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
7136 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
7137 Reported by Gary V. Vaughan <gary@gnu.org>.
7139 2009-01-24 Bruno Haible <bruno@clisp.org>
7141 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
7143 2009-01-23 Bruno Haible <bruno@clisp.org>
7145 Make c-strtod, c-strtold usable in libraries.
7146 * lib/c-strtod.c: Include string.h instead of xalloc.h.
7147 (C_STRTOD): Call strdup instead of xstrdup.
7148 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
7149 * modules/c-strtold (Depends-on): Likewise.
7150 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
7151 * NEWS: Mention the change.
7152 Reported by Michael Gold <mgold@ncf.ca>.
7154 2009-01-23 Jim Meyering <meyering@redhat.com>
7156 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
7157 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
7158 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
7160 2009-01-23 Simon Josefsson <simon@josefsson.org>
7162 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
7164 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
7165 * modules/version-etc (Description): Update.
7167 2009-01-22 Bruno Haible <bruno@clisp.org>
7169 Cache the C locale object.
7170 * lib/c-strtod.c (c_locale_cache): New variable.
7171 (c_locale): New function.
7172 (C_STRTOD): Use it, and don't call freelocale.
7173 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
7174 Suggested by Paolo Bonzini.
7176 2009-01-21 Bruno Haible <bruno@clisp.org>
7178 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
7179 conditions other than overflow.
7181 2009-01-21 Bruno Haible <bruno@clisp.org>
7183 * lib/c-strtod.c: Include errno.h.
7184 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
7185 value from STRTOD_L and STRTOD.
7187 2009-01-21 Bruno Haible <bruno@clisp.org>
7188 and Jim Meyering <meyering@redhat.com>
7190 nanosleep: skip configure test (fail it) for apple universal builds
7191 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
7192 universal builds, assume that nanosleep does not work.
7193 * modules/nanosleep (Depends-on): Add multiarch.
7195 mktime: skip configure test (fail it) for apple universal builds
7196 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
7197 universal builds, assume that mktime does not work.
7198 * modules/mktime (Depends-on): Add multiarch.
7200 2009-01-21 Eric Blake <ebb9@byu.net>
7202 multiarch: avoid expand-before-require warning
7203 * modules/multiarch (configure.ac): Require, rather than expand,
7205 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
7206 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
7207 enforce that all clients require it. Partial reversion of
7210 error: avoid expand-before-require warning
7211 * modules/errno (configure.ac): Require, rather than expand,
7213 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
7214 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
7215 enforce that all clients require it.
7217 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
7218 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
7219 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
7220 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
7222 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
7225 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
7227 regex: do not depend on obsolete modules.
7228 * modules/regex: Remove memcmp and memmove.
7230 2009-01-20 Bruno Haible <bruno@clisp.org>
7232 Make the 'link' module link on Windows NT 4.
7233 * lib/link.c (_WIN32_WINNT): Don't define.
7234 (CreateHardLinkFuncType): New type.
7235 (CreateHardLinkFunc, initialized): New variables.
7236 (initialize): New function.
7237 (link): Invoke CreateHardLink indirectly through the function pointer.
7239 2009-01-20 Bruno Haible <bruno@clisp.org>
7241 Fix compilation failure on mingw.
7242 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
7244 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
7246 * doc/c-strtod.texi: Mention a couple of restrictions.
7248 2009-01-20 Jim Meyering <meyering@redhat.com>
7250 gettimeofday: move more declarations out of functions
7251 * lib/gettimeofday.c: Move extern declarations of tzset and
7252 gmtime out of containing functions. Prompted by Bruno Haible.
7254 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
7256 regex: do not depend on obsolete modules.
7257 * modules/regex: Remove memcmp and memmove.
7259 2009-01-19 Bruno Haible <bruno@clisp.org>
7261 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
7262 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
7263 gl_BIGENDIAN, not AC_C_BIGENDIAN.
7264 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
7265 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
7267 2009-01-19 Bruno Haible <bruno@clisp.org>
7269 * tests/test-link.c: Include <errno.h>.
7270 (main): Exit with code 77 when a hard link cannot be created due to
7272 * tests/test-link.sh: Skip test when a hard link cannot be created due
7274 Suggested by Eric Blake.
7276 2009-01-19 Martin Lambers <marlam@marlam.de>
7278 * modules/link-tests: New file.
7279 * tests/test-link.sh: New file.
7280 * tests/test-link.c: New file.
7282 2009-01-19 Eric Blake <ebb9@byu.net>
7284 doc: mention another function added in cygwin 1.7.0
7285 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
7286 Another new function in cygwin 1.7.
7288 2009-01-19 Bruno Haible <bruno@clisp.org>
7290 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
7291 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
7292 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
7293 gl_BIGENDIAN, not AC_C_BIGENDIAN.
7294 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
7295 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
7296 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
7297 * m4/md4.m4 (gl_MD4): Likewise.
7298 * m4/md5.m4 (gl_MD5): Likewise.
7299 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
7300 * m4/sha1.m4 (gl_SHA1): Likewise.
7301 * m4/sha256.m4 (gl_SHA256): Likewise.
7302 * m4/sha512.m4 (gl_SHA512): Likewise.
7304 2009-01-19 Bruno Haible <bruno@clisp.org>
7306 * modules/uniname/uniname-tests (Depends-on): Add progname.
7307 * tests/uniname/test-uninames.c: Include progname.h.
7308 (main): Call set_program_name.
7310 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
7311 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
7312 (main): Call set_program_name.
7314 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
7315 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
7316 (main): Call set_program_name.
7318 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
7319 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
7320 (main): Call set_program_name.
7322 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
7323 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
7324 (main): Call set_program_name.
7326 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
7327 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
7328 (main): Call set_program_name.
7330 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
7331 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
7332 (main): Call set_program_name.
7334 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
7335 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
7336 (main): Call set_program_name.
7338 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
7339 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
7340 (main): Call set_program_name.
7342 2009-01-19 Eric Blake <ebb9@byu.net>
7344 test-unistd: test previous patch
7345 * tests/test-unistd.c: Test *_FILENO macros.
7347 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
7348 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
7349 Guarantee a definition.
7350 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
7351 * modules/unistd-safer (Depends-on): Add dependency on unistd.
7352 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
7353 * lib/dup-safer.c (STDERR_FILENO): Likewise.
7354 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
7356 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
7357 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
7358 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
7360 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
7361 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
7362 (STDERR_FILENO): Likewise.
7363 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
7364 (STDERR_FILENO): Likewise.
7365 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
7366 (STDERR_FILENO): Likewise.
7367 Reported by Elbert Pol.
7369 2009-01-19 Eric Blake <ebb9@byu.net>
7371 doc: mention more functions added in cygwin 1.7.0
7372 * doc/posix-functions/abort.texi (abort): Update wording related
7374 * doc/posix-functions/daylight.texi (daylight): Likewise.
7375 * doc/posix-functions/optarg.texi (optarg): Likewise.
7376 * doc/posix-functions/optarg.texi (opterr): Likewise.
7377 * doc/posix-functions/optarg.texi (optind): Likewise.
7378 * doc/posix-functions/optarg.texi (optopt): Likewise.
7379 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
7380 worked in 1.5.x, and was withdrawn in 1.7.
7381 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
7382 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
7384 * doc/posix-functions/perror.texi (perror): Likewise.
7385 * doc/posix-functions/printf.texi (printf): Likewise.
7386 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
7387 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
7388 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
7389 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
7390 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
7391 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
7392 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
7394 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
7396 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
7398 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
7399 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
7401 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
7402 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
7403 * doc/posix-functions/confstr.texi (confstr): Likewise.
7404 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
7405 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
7406 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
7407 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
7408 * doc/posix-functions/fputws.texi (fputws): Likewise.
7409 * doc/posix-functions/fwide.texi (fwide): Likewise.
7410 * doc/posix-functions/getwc.texi (getwc): Likewise.
7411 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
7412 * doc/posix-functions/putwc.texi (putwc): Likewise.
7413 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
7414 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
7415 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
7416 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
7417 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
7418 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
7419 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
7420 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
7421 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
7422 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
7423 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
7425 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
7427 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
7428 * lib/ioctl.c: Include <sys/ioctl.h>.
7430 2009-01-19 Simon Josefsson <simon@josefsson.org>
7432 * modules/getdate-tests (Depends-on): Add progname.
7433 * tests/test-getdate.c: Use progname module, to avoid link errors
7434 on non-glibc systems.
7436 2009-01-18 Simon Josefsson <simon@josefsson.org>
7438 * modules/filenamecat-tests (Depends-on): Add progname.
7439 * modules/fstrcmp-tests (Depends-on): Likewise.
7441 * tests/test-filenamecat.c: Use progname module, to avoid link
7442 errors on non-glibc systems.
7443 * tests/test-fstrcmp.c: Likewise.
7445 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
7447 gettimeofday: avoid warning: nested extern declaration of 'localtime'
7448 * lib/gettimeofday.c: Move extern declaration out of function.
7450 2009-01-18 Bruno Haible <bruno@clisp.org>
7452 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
7453 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
7454 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
7456 2009-01-18 Bruno Haible <bruno@clisp.org>
7458 * lib/strftime.c (MEMPCPY): Remove unused macro.
7459 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
7461 2009-01-18 Martin Lambers <marlam@marlam.de>
7464 * lib/unistd.in.h (link): New declaration.
7465 * lib/link.c: New file.
7466 * m4/link.m4: New file.
7467 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
7469 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
7470 * modules/link: New file.
7471 * doc/posix-functions/link.texi: Mention the new module.
7473 2009-01-18 Bruno Haible <bruno@clisp.org>
7475 * tests/test-avltree_list.c (main): Call set_program_name.
7476 * tests/test-avltree_oset.c (main): Likewise.
7477 * tests/test-obstack-printf.c: Include progname.h.
7478 (main): Call set_program_name.
7479 * tests/test-quotearg.c: Include progname.h.
7480 (main): Call set_program_name.
7481 * tests/test-xmemdup0.c: Include progname.h.
7482 (main): Call set_program_name.
7484 2009-01-18 Bruno Haible <bruno@clisp.org>
7486 New module 'alphasort'.
7487 * lib/dirent.in.h (alphasort): New declaration.
7488 * lib/alphasort.c: New file, from glibc with modifications.
7489 * m4/alphasort.m4: New file.
7490 * modules/alphasort: New file.
7491 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
7493 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
7495 * doc/posix-functions/alphasort.texi: Mention the new module and the
7496 portability problems.
7498 2009-01-18 Bruno Haible <bruno@clisp.org>
7500 New module 'scandir'.
7501 * lib/dirent.in.h (scandir): New declaration.
7502 * lib/scandir.c: New file, from glibc with modifications.
7503 * m4/scandir.m4: New file.
7504 * modules/scandir: New file.
7505 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
7507 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
7509 * doc/posix-functions/scandir.texi: Mention the new module and the
7510 portability problems.
7512 2009-01-17 Bruno Haible <bruno@clisp.org>
7514 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
7515 Update documentation.
7516 (func_remove_suffix): Escape all dots in the suffix. Update
7518 (func_filter_filelist): Update documentation.
7519 Reported by Ralf Wildenhues.
7521 2009-01-17 Bruno Haible <bruno@clisp.org>
7523 * modules/dprintf-posix-tests: New file.
7524 * tests/test-dprintf-posix.sh: New file.
7525 * tests/test-dprintf-posix.c: New file.
7527 New modules 'dprintf', 'dprintf-posix'.
7528 * lib/stdio.in.h (dprintf): New declaration.
7529 * lib/dprintf.c: New file.
7530 * m4/dprintf.m4: New file.
7531 * m4/dprintf-posix.m4: New file.
7532 * modules/dprintf: New file.
7533 * modules/dprintf-posix: New file.
7534 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
7535 HAVE_DPRINTF, REPLACE_DPRINTF.
7536 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
7537 HAVE_DPRINTF, REPLACE_DPRINTF.
7538 * doc/posix-functions/dprintf.texi: Mention the new modules.
7540 2009-01-17 Bruno Haible <bruno@clisp.org>
7542 * modules/vdprintf-posix-tests: New file.
7543 * tests/test-vdprintf-posix.sh: New file.
7544 * tests/test-vdprintf-posix.c: New file.
7546 New modules 'vdprintf', 'vdprintf-posix'.
7547 * lib/stdio.in.h (vdprintf): New declaration.
7548 * lib/vdprintf.c: New file.
7549 * m4/vdprintf.m4: New file.
7550 * m4/vdprintf-posix.m4: New file.
7551 * modules/vdprintf: New file.
7552 * modules/vdprintf-posix: New file.
7553 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
7554 HAVE_VDPRINTF, REPLACE_VDPRINTF.
7555 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
7556 HAVE_VDPRINTF, REPLACE_VDPRINTF.
7557 * doc/posix-functions/vdprintf.texi: Mention the new modules.
7559 2009-01-17 Bruno Haible <bruno@clisp.org>
7561 Fix replacement of fopen on mingw.
7562 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
7565 2009-01-17 Bruno Haible <bruno@clisp.org>
7567 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
7568 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
7570 2009-01-17 Bruno Haible <bruno@clisp.org>
7572 Avoid test-fflush2.sh failure on mingw.
7573 * tests/test-fflush2.c: Include binary-io.h.
7574 (main): Put standard input into binary mode.
7575 * modules/fflush-tests (Depends-on): Add binary-io.
7577 2009-01-17 Bruno Haible <bruno@clisp.org>
7579 * lib/wchar.in.h: In another particular situation, include only the
7580 system's <wchar.h> file.
7581 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
7582 Reported by Albert Chin-A-Young <china@thewrittenword.com>
7583 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
7585 2009-01-17 Bruno Haible <bruno@clisp.org>
7587 Support for stripping executables in --enable-relocatable.
7588 * build-aux/install-reloc: Expect one more argument, or an environment
7589 variable RELOC_STRIP_PROG. If set, strip the destination program and
7591 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
7593 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
7594 to set RELOCATABLE_STRIP.
7595 * NEWS: Mention the new Makefile requirement.
7597 2009-01-17 Bruno Haible <bruno@clisp.org>
7599 * build-aux/install-reloc: Remove debugging information left over by
7600 C compiler on MacOS X.
7602 2009-01-17 Bruno Haible <bruno@clisp.org>
7604 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
7605 * lib/progreloc.c (find_executable): Fix type of pointer passed to
7606 _NSGetExecutablePath.
7608 2009-01-16 Jim Meyering <meyering@redhat.com>
7610 strerror: avoid warnings about discarding "const"
7611 * lib/strerror.c (rpl_strerror): Instead of returning a const
7612 string from each and every "case", use a variable, and add a single
7613 cast after the switch.
7615 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
7617 * lib/arpa_inet.in.h: Add extern "C" block for C++.
7619 2009-01-16 Bruno Haible <bruno@clisp.org>
7621 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
7622 array initializer syntax that also works in C++ mode.
7623 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7625 2009-01-16 Jim Meyering <meyering@redhat.com>
7627 poll: suppress a warning
7628 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
7629 to ignore "...unsigned expression < 0 is always false" warnings.
7631 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
7633 poll: remove declarations of unused variables
7634 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
7637 2009-01-15 Bruno Haible <bruno@clisp.org>
7639 Make fflush-after-ungetc POSIX compliant on BSD systems.
7640 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
7641 (clear_ungetc_buffer): Implement also for other systems.
7642 (rpl_fflush): On glibc systems, invoke
7643 clear_ungetc_buffer_preserving_position. Otherwise, invoke
7644 clear_ungetc_buffer after fetching the stream's position, not before.
7646 2009-01-15 Bruno Haible <bruno@clisp.org>
7648 Make fflush-after-ungetc POSIX compliant on glibc systems.
7649 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
7651 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
7652 (rpl_fflush): On glibc systems, simply call the system's fflush
7653 function after clearing the ungetc buffer.
7654 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
7655 Instead, lseek only to the end of file, then use the system's fseeko
7656 for the rest. On glibc systems, reset the EOF indicator bit.
7658 2009-01-15 Jim Meyering <meyering@redhat.com>
7660 openmp.m4: revert quote-adding change, for portability to older autoconf
7661 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
7662 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
7663 Simon Josefsson noticed the problem when using autoconf-2.61.
7665 2009-01-15 Bruno Haible <bruno@clisp.org>
7667 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
7668 * tests/test-fflush2.c (ASSERT): Always fail.
7669 (main): Add two tests for fflush() after ungetc(), taking into account
7670 the Austin Group's clarification.
7671 Suggested by Eric Blake.
7673 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
7675 mktime.m4: remove K&R-style function prototypes
7676 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
7677 for the Sun C++ compiler.
7679 2009-01-14 Bruno Haible <bruno@clisp.org>
7681 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
7682 while including <wchar.h>.
7683 * lib/wchar.in.h: In two particular situations on HP-UX, include only
7684 the system's <wchar.h> file.
7685 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
7687 2009-01-14 Bruno Haible <bruno@clisp.org>
7689 * m4/csharp.m4: Don't mention gettext on the serial number line.
7690 * m4/csharpexec.m4: Likewise.
7691 * m4/eaccess.m4: Likewise.
7692 * m4/javaexec.m4: Likewise.
7693 * m4/sig_atomic_t.m4: Likewise.
7694 * m4/tmpdir.m4: Likewise.
7695 * m4/intldir.m4: Bump gettext version.
7696 * m4/lib-ld.m4: Likewise.
7698 2009-01-14 Bruno Haible <bruno@clisp.org>
7700 * lib/progname.c (set_program_name): Add more comments.
7701 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
7703 2009-01-14 Simon Josefsson <simon@josefsson.org>
7705 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
7706 were sys/stat.h does not define it.
7708 2009-01-14 Jim Meyering <meyering@redhat.com>
7710 many *.m4 files: improve m4 quoting
7711 99% of this change was performed by running the following commands:
7712 git ls-files | grep '\.m4$' | xargs perl -pi \
7713 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
7714 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
7715 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
7716 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
7717 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
7718 The remainder were to add Copyright dates, increment serial numbers,
7719 undo some changes in comments, exclude m4/intl.m4, and add quotes
7720 around the "1" in ",1" where the unusual spacing prohibited the
7721 above regexps from doing the job. For more details, see
7722 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
7723 * m4/acl.m4: Modified.
7724 * m4/afs.m4: Likewise.
7725 * m4/alloca.m4: Likewise.
7726 * m4/argp.m4: Likewise.
7727 * m4/argz.m4: Likewise.
7728 * m4/atexit.m4: Likewise.
7729 * m4/bison-i18n.m4: Likewise.
7730 * m4/bison.m4: Likewise.
7731 * m4/byteswap.m4: Likewise.
7732 * m4/c-stack.m4: Likewise.
7733 * m4/c-strtod.m4: Likewise.
7734 * m4/calloc.m4: Likewise.
7735 * m4/canonicalize-lgpl.m4: Likewise.
7736 * m4/chown.m4: Likewise.
7737 * m4/clock_time.m4: Likewise.
7738 * m4/codeset.m4: Likewise.
7739 * m4/copy-file.m4: Likewise.
7740 * m4/csharp.m4: Likewise.
7741 * m4/csharpcomp.m4: Likewise.
7742 * m4/csharpexec.m4: Likewise.
7743 * m4/d-ino.m4: Likewise.
7744 * m4/d-type.m4: Likewise.
7745 * m4/dirfd.m4: Likewise.
7746 * m4/double-slash-root.m4: Likewise.
7747 * m4/eaccess.m4: Likewise.
7748 * m4/eealloc.m4: Likewise.
7749 * m4/environ.m4: Likewise.
7750 * m4/errno_h.m4: Likewise.
7751 * m4/euidaccess.m4: Likewise.
7752 * m4/execute.m4: Likewise.
7753 * m4/fatal-signal.m4: Likewise.
7754 * m4/fchdir.m4: Likewise.
7755 * m4/fcntl_h.m4: Likewise.
7756 * m4/fileblocks.m4: Likewise.
7757 * m4/filenamecat.m4: Likewise.
7758 * m4/findprog.m4: Likewise.
7759 * m4/flexmember.m4: Likewise.
7760 * m4/fnmatch.m4: Likewise.
7761 * m4/fopen.m4: Likewise.
7762 * m4/fpending.m4: Likewise.
7763 * m4/fprintf-posix.m4: Likewise.
7764 * m4/free.m4: Likewise.
7765 * m4/frexp.m4: Likewise.
7766 * m4/frexpl.m4: Likewise.
7767 * m4/fsusage.m4: Likewise.
7768 * m4/ftruncate.m4: Likewise.
7769 * m4/gc-camellia.m4: Likewise.
7770 * m4/gc-random.m4: Likewise.
7771 * m4/gc.m4: Likewise.
7772 * m4/getaddrinfo.m4: Likewise.
7773 * m4/getcwd-abort-bug.m4: Likewise.
7774 * m4/getcwd-path-max.m4: Likewise.
7775 * m4/getdate.m4: Likewise.
7776 * m4/getdomainname.m4: Likewise.
7777 * m4/getgroups.m4: Likewise.
7778 * m4/gethostname.m4: Likewise.
7779 * m4/gethrxtime.m4: Likewise.
7780 * m4/getline.m4: Likewise.
7781 * m4/getloadavg.m4: Likewise.
7782 * m4/getndelim2.m4: Likewise.
7783 * m4/getpass.m4: Likewise.
7784 * m4/gettext.m4: Likewise.
7785 * m4/gettime.m4: Likewise.
7786 * m4/gettimeofday.m4: Likewise.
7787 * m4/gnulib-common.m4: Likewise.
7788 * m4/group-member.m4: Likewise.
7789 * m4/host-os.m4: Likewise.
7790 * m4/iconv.m4: Likewise.
7791 * m4/iconv_open.m4: Likewise.
7792 * m4/inet_ntop.m4: Likewise.
7793 * m4/inet_pton.m4: Likewise.
7794 * m4/inline.m4: Likewise.
7795 * m4/intldir.m4: Likewise.
7796 * m4/intlmacosx.m4: Likewise.
7797 * m4/intmax.m4: Likewise.
7798 * m4/intmax_t.m4: Likewise.
7799 * m4/inttypes.m4: Likewise.
7800 * m4/inttypes_h.m4: Likewise.
7801 * m4/inttypes-pri.m4: Likewise.
7802 * m4/isapipe.m4: Likewise.
7803 * m4/isnand.m4: Likewise.
7804 * m4/isnanf.m4: Likewise.
7805 * m4/isnanl.m4: Likewise.
7806 * m4/javacomp.m4: Likewise.
7807 * m4/javaexec.m4: Likewise.
7808 * m4/jm-winsz1.m4: Likewise.
7809 * m4/jm-winsz2.m4: Likewise.
7810 * m4/lchown.m4: Likewise.
7811 * m4/lcmessage.m4: Likewise.
7812 * m4/ldexpl.m4: Likewise.
7813 * m4/lib-ld.m4: Likewise.
7814 * m4/lib-link.m4: Likewise.
7815 * m4/libsigsegv.m4: Likewise.
7816 * m4/link-follow.m4: Likewise.
7817 * m4/localcharset.m4: Likewise.
7818 * m4/locale-fr.m4: Likewise.
7819 * m4/locale-ja.m4: Likewise.
7820 * m4/locale-tr.m4: Likewise.
7821 * m4/locale-zh.m4: Likewise.
7822 * m4/lock.m4: Likewise.
7823 * m4/longlong.m4: Likewise.
7824 * m4/ls-mntd-fs.m4: Likewise.
7825 * m4/lstat.m4: Likewise.
7826 * m4/malloc.m4: Likewise.
7827 * m4/mathl.m4: Likewise.
7828 * m4/mbrtowc.m4: Likewise.
7829 * m4/mbstate_t.m4: Likewise.
7830 * m4/mbswidth.m4: Likewise.
7831 * m4/memchr.m4: Likewise.
7832 * m4/memcmp.m4: Likewise.
7833 * m4/memcpy.m4: Likewise.
7834 * m4/memmem.m4: Likewise.
7835 * m4/memmove.m4: Likewise.
7836 * m4/mempcpy.m4: Likewise.
7837 * m4/memrchr.m4: Likewise.
7838 * m4/memset.m4: Likewise.
7839 * m4/minmax.m4: Likewise.
7840 * m4/mkdir-slash.m4: Likewise.
7841 * m4/mkdtemp.m4: Likewise.
7842 * m4/mktime.m4: Likewise.
7843 * m4/mmap-anon.m4: Likewise.
7844 * m4/mountlist.m4: Likewise.
7845 * m4/nanosleep.m4: Likewise.
7846 * m4/nls.m4: Likewise.
7847 * m4/nocrash.m4: Likewise.
7848 * m4/open.m4: Likewise.
7849 * m4/openat.m4: Likewise.
7850 * m4/openmp.m4: Likewise.
7851 * m4/pathmax.m4: Likewise.
7852 * m4/perl.m4: Likewise.
7853 * m4/physmem.m4: Likewise.
7854 * m4/pipe.m4: Likewise.
7855 * m4/po.m4: Likewise.
7856 * m4/poll.m4: Likewise.
7857 * m4/posixtm.m4: Likewise.
7858 * m4/posixver.m4: Likewise.
7859 * m4/printf-frexp.m4: Likewise.
7860 * m4/printf-frexpl.m4: Likewise.
7861 * m4/printf-posix.m4: Likewise.
7862 * m4/printf-posix-rpl.m4: Likewise.
7863 * m4/printf.m4: Likewise.
7864 * m4/progtest.m4: Likewise.
7865 * m4/putenv.m4: Likewise.
7866 * m4/readline.m4: Likewise.
7867 * m4/readlink.m4: Likewise.
7868 * m4/readutmp.m4: Likewise.
7869 * m4/realloc.m4: Likewise.
7870 * m4/regex.m4: Likewise.
7871 * m4/relocatable.m4: Likewise.
7872 * m4/relocatable-lib.m4: Likewise.
7873 * m4/rename-dest-slash.m4: Likewise.
7874 * m4/rename.m4: Likewise.
7875 * m4/rmdir-errno.m4: Likewise.
7876 * m4/rmdir.m4: Likewise.
7877 * m4/roundf.m4: Likewise.
7878 * m4/roundl.m4: Likewise.
7879 * m4/rpmatch.m4: Likewise.
7880 * m4/save-cwd.m4: Likewise.
7881 * m4/selinux-selinux-h.m4: Likewise.
7882 * m4/setenv.m4: Likewise.
7883 * m4/settime.m4: Likewise.
7884 * m4/sig2str.m4: Likewise.
7885 * m4/sig_atomic_t.m4: Likewise.
7886 * m4/signalblocking.m4: Likewise.
7887 * m4/signbit.m4: Likewise.
7888 * m4/sigpipe.m4: Likewise.
7889 * m4/sockets.m4: Likewise.
7890 * m4/sockpfaf.m4: Likewise.
7891 * m4/st_dm_mode.m4: Likewise.
7892 * m4/stat-time.m4: Likewise.
7893 * m4/stdbool.m4: Likewise.
7894 * m4/stdint.m4: Likewise.
7895 * m4/stdint_h.m4: Likewise.
7896 * m4/stpcpy.m4: Likewise.
7897 * m4/stpncpy.m4: Likewise.
7898 * m4/strcase.m4: Likewise.
7899 * m4/strchrnul.m4: Likewise.
7900 * m4/strcspn.m4: Likewise.
7901 * m4/strdup.m4: Likewise.
7902 * m4/strftime.m4: Likewise.
7903 * m4/strndup.m4: Likewise.
7904 * m4/strnlen.m4: Likewise.
7905 * m4/strpbrk.m4: Likewise.
7906 * m4/strptime.m4: Likewise.
7907 * m4/strsep.m4: Likewise.
7908 * m4/strtod.m4: Likewise.
7909 * m4/strtoimax.m4: Likewise.
7910 * m4/strtok_r.m4: Likewise.
7911 * m4/strtol.m4: Likewise.
7912 * m4/strtoll.m4: Likewise.
7913 * m4/strtoul.m4: Likewise.
7914 * m4/strtoull.m4: Likewise.
7915 * m4/strtoumax.m4: Likewise.
7916 * m4/strverscmp.m4: Likewise.
7917 * m4/threadlib.m4: Likewise.
7918 * m4/timegm.m4: Likewise.
7919 * m4/tm_gmtoff.m4: Likewise.
7920 * m4/tmpdir.m4: Likewise.
7921 * m4/tmpfile.m4: Likewise.
7922 * m4/tzset.m4: Likewise.
7923 * m4/uintmax_t.m4: Likewise.
7924 * m4/unlinkdir.m4: Likewise.
7925 * m4/unlocked-io.m4: Likewise.
7926 * m4/uptime.m4: Likewise.
7927 * m4/userspec.m4: Likewise.
7928 * m4/utimbuf.m4: Likewise.
7929 * m4/utime.m4: Likewise.
7930 * m4/utimes-null.m4: Likewise.
7931 * m4/utimes.m4: Likewise.
7932 * m4/vararrays.m4: Likewise.
7933 * m4/vasnprintf.m4: Likewise.
7934 * m4/vfprintf-posix.m4: Likewise.
7935 * m4/vprintf-posix.m4: Likewise.
7936 * m4/wait-process.m4: Likewise.
7937 * m4/wchar_t.m4: Likewise.
7938 * m4/wint_t.m4: Likewise.
7939 * m4/write-any-file.m4: Likewise.
7940 * m4/yield.m4: Likewise.
7942 2009-01-13 Bruno Haible <bruno@clisp.org>
7944 Avoid test-copy-file.sh failures when ACL support insufficient.
7945 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
7947 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
7948 Reported by Jim Meyering.
7950 2009-01-13 Bruno Haible <bruno@clisp.org>
7952 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
7953 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
7954 * modules/unistdio/u8-printf-parse (Files): Likewise.
7955 * modules/unistdio/u32-printf-parse (Files): Likewise.
7956 * modules/unistdio/ulc-printf-parse (Files): Likewise.
7958 2009-01-13 Simon Josefsson <simon@josefsson.org>
7960 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
7961 and m4/inttypes_h.m4 too.
7963 2009-01-12 Eric Blake <ebb9@byu.net>
7965 tests: IRIX 6.2 cc can't compile -0.0 into .data
7966 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
7967 rather than at compile-time.
7968 * tests/test-floorl.c (minus_zero): Likewise.
7969 * tests/test-frexpl.c (minus_zero): Likewise.
7970 * tests/test-isnan.c (minus_zerol): Likewise.
7971 * tests/test-isnanl.h (minus_zero): Likewise.
7972 * tests/test-ldexpl.c (minus_zero): Likewise.
7973 * tests/test-roundl.c (minus_zero): Likewise.
7974 * tests/test-signbit.c (minus_zerol): Likewise.
7975 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
7976 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
7977 * tests/test-truncl.c (minus_zero): Likewise.
7978 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
7979 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
7980 Reported by Tom G. Christensen and Nelson H. F. Beebe.
7982 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
7984 regex: fix glibc bug 9697
7985 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
7988 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
7990 regex: fix glibc bug 697
7991 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
7992 being NULL also if there are no backreferences.
7994 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
7996 regex: merge glibc changes
7997 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
7998 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
7999 re_string_skip_chars, re_string_reconstruct): Likewise.
8000 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
8002 2009-01-07 Jim Meyering <meyering@redhat.com>
8004 poll: filter through cppi
8005 * lib/poll.c: Indent cpp directives to reflect nesting.
8007 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
8009 poll: don't return uninitialized
8010 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
8012 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
8014 avoid compile failure on AIX 6.1
8015 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
8016 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
8018 2009-01-04 Jim Meyering <meyering@redhat.com>
8020 remove duplicate inclusion of <stdio.h>
8021 * tests/test-fprintf-posix.c: Likewise.
8022 * tests/test-printf-posix.c: Likewise.
8023 * tests/test-snprintf-posix.c: Likewise.
8024 * tests/test-sprintf-posix.c: Likewise.
8025 * tests/test-vasprintf-posix.c: Likewise.
8026 * tests/test-vfprintf-posix.c: Likewise.
8027 * tests/test-vprintf-posix.c: Likewise.
8028 * tests/test-vsnprintf-posix.c: Likewise.
8029 * tests/test-vsprintf-posix.c: Likewise.
8031 2009-01-03 Jim Meyering <meyering@redhat.com>
8033 gnulib-tool: fix sed-based filtering
8034 * gnulib-tool (func_filter_filelist): Remove extra backslash
8035 in sed_fff_filter definition.
8037 2009-01-02 Jim Meyering <meyering@redhat.com>
8039 strftime: avoid compilation failure on Solaris 2.6
8040 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
8041 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
8042 Don't #define mbrlen or mbsinit, since now they're guaranteed to
8043 be available. Reported by Tom G. Christensen. Details in
8044 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
8046 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8047 Bruno Haible <bruno@clisp.org>
8049 Speed up gnulib-tool by doing more string processing through shell
8051 * gnulib-tool (fast_func_append): New variable.
8052 (func_remove_prefix, func_remove_suffix): New functions.
8053 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
8054 (func_filter_filelist): New function.
8055 (func_get_dependencies): Use func_remove_suffix instead of sed.
8056 (func_get_automake_snippet): Use func_filter_filelist instead of a
8057 subshell and sed invocation.
8059 2009-01-01 Bruno Haible <bruno@clisp.org>
8062 * gnulib-tool (func_import, import, update): Don't allow the characters
8063 '"', '$', '`', '\' in macro arguments that become part of commands that
8066 2009-01-01 Bruno Haible <bruno@clisp.org>
8068 * gnulib-tool (func_reset_sigpipe): Add more comments.
8070 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8072 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
8073 func_emit_tests_Makefile_am, func_import): Abort loops early if we
8074 already know the answer.
8076 2009-01-01 Jim Meyering <meyering@redhat.com>
8078 * lib/version-etc.c (version_etc_va): Update copyright year.
8080 2008-12-30 Bruno Haible <bruno@clisp.org>
8082 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
8083 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
8084 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
8086 2008-12-29 Eric Blake <ebb9@byu.net>
8088 multiarch: avoid autoconf AC_REQUIRE bug
8089 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
8090 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
8092 Reported by Bruno Haible, and analyzed in
8093 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
8095 2008-12-29 Bruno Haible <bruno@clisp.org>
8097 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
8098 files in subdirectories correctly.
8099 Reported by Ralf Wildenhues.
8101 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8103 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
8104 rather than 'join FILE -', for Solaris join.
8106 2008-12-29 Bruno Haible <bruno@clisp.org>
8108 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
8110 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
8111 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
8112 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
8113 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
8114 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
8115 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
8116 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
8117 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
8118 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
8119 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
8120 * m4/nls.m4 (AM_NLS): Likewise.
8121 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
8122 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
8123 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
8124 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
8125 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
8126 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
8127 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
8128 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
8129 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
8130 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
8131 * m4/xsize.m4 (gl_XSIZE): Likewise.
8132 Suggested by Jim Meyering.
8134 2008-11-17 Bruce Korb <bkorb@gnu.org>
8136 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
8137 * lib/parse-duration.c: use a switch instead of cascading if's.
8139 2008-12-29 Eric Blake <ebb9@byu.net>
8141 wchar.h: supply WEOF on Irix 5.3
8142 * lib/wchar.in.h (wint_t): Also supply WEOF.
8143 * lib/wctype.in.h (wint_t): Likewise.
8144 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
8145 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
8146 Reported by Tom G. Christensen.
8148 2008-12-26 Bruno Haible <bruno@clisp.org>
8150 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
8153 2008-12-26 Bruno Haible <bruno@clisp.org>
8155 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
8157 2008-12-26 Bruno Haible <bruno@clisp.org>
8159 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
8160 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
8161 not __STDC_CONSTANT_MACROS.
8162 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
8164 2008-12-25 Bruno Haible <bruno@clisp.org>
8166 Add support for universal builds to vasnprintf.
8167 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
8168 universal builds, guess no.
8169 * modules/vasnprintf-posix (Depends-on): Add multiarch.
8170 * modules/vasprintf-posix (Depends-on): Likewise.
8171 * modules/fprintf-posix (Depends-on): Likewise.
8172 * modules/vfprintf-posix (Depends-on): Likewise.
8173 * modules/snprintf-posix (Depends-on): Likewise.
8174 * modules/vsnprintf-posix (Depends-on): Likewise.
8175 * modules/sprintf-posix (Depends-on): Likewise.
8176 * modules/vsprintf-posix (Depends-on): Likewise.
8177 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8178 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8179 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8180 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8181 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8182 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8183 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8185 Add support for universal builds to <inttypes.h>.
8186 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
8187 _SCNu64_PREFIX): In Apple
8188 universal builds, define directly, using _LP64.
8189 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
8190 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
8191 * modules/inttypes (Depends-on): Add multiarch.
8192 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
8194 Add support for universal builds to <stdint.h>.
8195 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
8196 universal builds, define directly, using _LP64.
8197 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
8198 Apple universal builds, don't test for the size and suffix of ptrdiff_t
8200 * modules/stdint (Depends-on): Add multiarch.
8201 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
8203 New module 'multiarch'.
8204 * modules/multiarch: New file.
8205 * m4/multiarch.m4: New file.
8207 2008-12-25 Bruno Haible <bruno@clisp.org>
8209 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
8211 2008-12-25 Bruno Haible <bruno@clisp.org>
8213 * modules/btowc (License): Relicense under LGPLv2+.
8214 * modules/mbsinit (License): Likewise.
8215 * modules/mbrtowc (License): Likewise.
8216 * modules/wcrtomb (License): Likewise.
8217 * modules/streq (License): Likewise.
8218 Reported by David Lutterkort <lutter@redhat.com>.
8220 2008-12-23 Bruno Haible <bruno@clisp.org>
8222 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
8224 2008-12-23 Bruno Haible <bruno@clisp.org>
8226 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
8227 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
8228 GETADDRINFO_LIB, not in LIBS.
8229 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
8230 * modules/canon-host (Link): Likewise.
8231 * NEWS: Mention the change.
8232 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
8235 2008-12-22 Bruno Haible <bruno@clisp.org>
8237 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
8238 * doc/posix-functions/iswalpha_l.texi: Likewise.
8239 * doc/posix-functions/iswblank_l.texi: Likewise.
8240 * doc/posix-functions/iswcntrl_l.texi: Likewise.
8241 * doc/posix-functions/iswctype_l.texi: Likewise.
8242 * doc/posix-functions/iswdigit_l.texi: Likewise.
8243 * doc/posix-functions/iswgraph_l.texi: Likewise.
8244 * doc/posix-functions/iswlower_l.texi: Likewise.
8245 * doc/posix-functions/iswprint_l.texi: Likewise.
8246 * doc/posix-functions/iswpunct_l.texi: Likewise.
8247 * doc/posix-functions/iswspace_l.texi: Likewise.
8248 * doc/posix-functions/iswupper_l.texi: Likewise.
8249 * doc/posix-functions/iswxdigit_l.texi: Likewise.
8250 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
8251 * doc/posix-functions/open_wmemstream.texi: Likewise.
8252 * doc/posix-functions/swscanf.texi: Likewise.
8253 * doc/posix-functions/towctrans_l.texi: Likewise.
8254 * doc/posix-functions/towlower.texi: Likewise.
8255 * doc/posix-functions/towlower_l.texi: Likewise.
8256 * doc/posix-functions/towupper.texi: Likewise.
8257 * doc/posix-functions/towupper_l.texi: Likewise.
8258 * doc/posix-functions/vfwprintf.texi: Likewise.
8259 * doc/posix-functions/vfwscanf.texi: Likewise.
8260 * doc/posix-functions/vswscanf.texi: Likewise.
8261 * doc/posix-functions/vwprintf.texi: Likewise.
8262 * doc/posix-functions/vwscanf.texi: Likewise.
8263 * doc/posix-functions/wcpcpy.texi: Likewise.
8264 * doc/posix-functions/wcpncpy.texi: Likewise.
8265 * doc/posix-functions/wcscasecmp.texi: Likewise.
8266 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
8267 * doc/posix-functions/wcscoll_l.texi: Likewise.
8268 * doc/posix-functions/wcsdup.texi: Likewise.
8269 * doc/posix-functions/wcsncasecmp.texi: Likewise.
8270 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
8271 * doc/posix-functions/wcsnlen.texi: Likewise.
8272 * doc/posix-functions/wcsnrtombs.texi: Likewise.
8273 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
8274 * doc/posix-functions/wctrans_l.texi: Likewise.
8275 * doc/posix-functions/wctype_l.texi: Likewise.
8276 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
8277 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
8278 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
8279 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
8280 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
8281 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
8282 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
8283 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
8284 * doc/glibc-functions/wcschrnul.texi: Likewise.
8285 * doc/glibc-functions/wcsftime_l.texi: Likewise.
8286 * doc/glibc-functions/wcstod_l.texi: Likewise.
8287 * doc/glibc-functions/wcstof_l.texi: Likewise.
8288 * doc/glibc-functions/wcstol_l.texi: Likewise.
8289 * doc/glibc-functions/wcstold_l.texi: Likewise.
8290 * doc/glibc-functions/wcstoll_l.texi: Likewise.
8291 * doc/glibc-functions/wcstoq.texi: Likewise.
8292 * doc/glibc-functions/wcstoul_l.texi: Likewise.
8293 * doc/glibc-functions/wcstoull_l.texi: Likewise.
8294 * doc/glibc-functions/wcstouq.texi: Likewise.
8295 * doc/glibc-functions/wmempcpy.texi: Likewise.
8297 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
8298 Eric Blake <ebb9@byu.net>
8299 Paolo Bonzini <bonzini@gnu.org>
8300 Bruno Haible <bruno@clisp.org>
8302 Make c-stack work on Haiku.
8303 * lib/c-stack.c (SA_ONSTACK): Define fallback.
8304 (c_stack_action): Use SA_ONSTACK flag.
8306 2008-12-22 Bruno Haible <bruno@clisp.org>
8308 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
8310 2008-12-22 Bruno Haible <bruno@clisp.org>
8312 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
8313 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
8315 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
8317 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
8318 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
8319 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
8320 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
8322 2008-12-22 Bruno Haible <bruno@clisp.org>
8324 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
8327 2008-12-22 Eric Blake <ebb9@byu.net>
8329 Avoid gcc warnings on cygwin.
8330 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
8331 Avoid unused variable.
8332 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
8335 2008-12-22 Bruno Haible <bruno@clisp.org>
8337 Remove HAVE_MBRTOWC conditionals.
8338 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
8339 (mbscasecmp): Assume mbrtowc function.
8340 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
8341 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
8342 * lib/mbschr.c: Include mbuiter.h unconditionally.
8343 (mbschr): Assume mbrtowc function.
8344 * lib/mbscspn.c: Include mbuiter.h unconditionally.
8345 (mbscspn): Assume mbrtowc function.
8346 * lib/mbslen.c: Include mbuiter.h unconditionally.
8347 (mbslen): Assume mbrtowc function.
8348 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
8349 (mbsncasecmp): Assume mbrtowc function.
8350 * lib/mbsnlen.c: Include mbiter.h unconditionally.
8351 (mbsnlen): Assume mbrtowc function.
8352 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
8353 (mbspbrk): Assume mbrtowc function.
8354 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
8355 (mbspcasecmp): Assume mbrtowc function.
8356 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
8357 (mbsrchr): Assume mbrtowc function.
8358 * lib/mbssep.c: Include mbuiter.h unconditionally.
8359 (mbssep): Assume mbrtowc function.
8360 * lib/mbsspn.c: Include mbuiter.h unconditionally.
8361 (mbsspn): Assume mbrtowc function.
8362 * lib/mbsstr.c: Include mbuiter.h unconditionally.
8363 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
8364 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
8365 (mbstok_r): Assume mbrtowc function.
8366 * lib/propername.c: Include mbuiter.h unconditionally.
8367 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
8368 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
8369 (trim2): Assume mbrtowc function.
8370 * lib/mbswidth.c (mbsinit): Remove fallback definition.
8371 (mbsnwidth): Assume mbrtowc function.
8372 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
8373 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
8374 fallback definitions.
8375 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
8377 2008-12-22 Bruno Haible <bruno@clisp.org>
8379 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
8381 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
8383 * modules/regex: Request emulations for the mb*/wc* functions we need.
8384 * m4/regex.m4: Don't look for those functions here.
8385 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
8387 2008-12-22 Bruno Haible <bruno@clisp.org>
8389 * modules/fnmatch (Depends-on): Remove duplicated dependency.
8391 2008-12-21 Bruno Haible <bruno@clisp.org>
8393 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
8394 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
8395 (Include): Remove conditionalization.
8396 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
8397 (Include): Remove conditionalization.
8398 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
8399 (Include): Remove conditionalization.
8400 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
8401 * m4/mbfile.m4 (gl_MBFILE): Likewise.
8402 * NEWS: Mention the change.
8403 Reported by Alan Hourihane <alanh@fairlite.co.uk>
8404 via Sergey Poznyakoff <gray@gnu.org.ua>.
8406 2008-12-21 Bruno Haible <bruno@clisp.org>
8408 * MODULES.html.sh (Extended multibyte and wide character utilities
8409 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
8411 (Support for systems lacking POSIX:2008): Add accept, bind, close,
8412 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
8413 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
8414 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
8416 2008-12-21 Bruno Haible <bruno@clisp.org>
8418 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
8420 2008-12-21 Bruno Haible <bruno@clisp.org>
8422 * modules/wcsnrtombs-tests: New file.
8423 * tests/test-wcsnrtombs1.sh: New file.
8424 * tests/test-wcsnrtombs2.sh: New file.
8425 * tests/test-wcsnrtombs3.sh: New file.
8426 * tests/test-wcsnrtombs4.sh: New file.
8427 * tests/test-wcsnrtombs.c: New file.
8429 New module 'wcsnrtombs'.
8430 * lib/wchar.in.h (wcsnrtombs): New declaration.
8431 * lib/wcsnrtombs.c: New file.
8432 * lib/wcsrtombs-state.c: New file.
8433 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
8434 (internal_state): Remove variable.
8435 * m4/wcsnrtombs.m4: New file.
8436 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
8438 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
8440 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
8442 * modules/wcsnrtombs: New file.
8443 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
8444 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
8446 2008-12-21 Bruno Haible <bruno@clisp.org>
8448 * modules/wcsrtombs-tests: New file.
8449 * tests/test-wcsrtombs1.sh: New file.
8450 * tests/test-wcsrtombs2.sh: New file.
8451 * tests/test-wcsrtombs3.sh: New file.
8452 * tests/test-wcsrtombs4.sh: New file.
8453 * tests/test-wcsrtombs.c: New file.
8455 New module 'wcsrtombs'.
8456 * lib/wchar.in.h (wcsrtombs): New declaration.
8457 * lib/wcsrtombs.c: New file.
8458 * m4/wcsrtombs.m4: New file.
8459 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
8460 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
8461 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
8462 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
8463 * modules/wcsrtombs: New file.
8464 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
8467 2008-12-21 Bruno Haible <bruno@clisp.org>
8469 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
8470 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
8471 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
8472 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
8474 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
8475 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
8476 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
8477 m4/locale-zh.m4, m4/codeset.m4.
8478 * doc/posix-functions/wcrtomb.texi: Document the bug.
8480 2008-12-21 Bruno Haible <bruno@clisp.org>
8482 Work around a btowc() bug on IRIX 6.5.
8483 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
8484 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
8485 REPLACE_WTOBC if not.
8486 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
8487 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
8488 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
8490 2008-12-21 Bruno Haible <bruno@clisp.org>
8492 * modules/wcrtomb-tests: New file.
8493 * tests/test-wcrtomb.sh: New file.
8494 * tests/test-wcrtomb.c: New file.
8496 New module 'wcrtomb'.
8497 * lib/wchar.in.h (wcrtomb): New declaration.
8498 * lib/wcrtomb.c: New file.
8499 * m4/wcrtomb.m4: New file.
8500 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
8502 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
8504 * modules/wcrtomb: New file.
8505 * doc/posix-functions/wcrtomb.texi: Mention the new module.
8507 2008-12-21 Bruno Haible <bruno@clisp.org>
8509 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
8510 * modules/mbsrtowcs (Files): Likewise.
8511 * modules/wctob (Files): Likewise.
8512 * modules/c-strcase-tests (Files): Likewise.
8513 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
8514 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
8515 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
8516 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
8517 * modules/vasnprintf-posix-tests (Files): Likewise.
8519 2008-12-21 William Pursell <bill.pursell@gmail.com>
8521 gitlog-to-changelog: pass all command-line arguments to git-log
8522 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
8523 it is sometimes convenient to filter the commits in various ways.
8524 gitlog-to-changelog only allows --since to specify a start date,
8525 but git-log itself supports many other filtering mechanisms.
8526 At the moment, I want to filter by branch name. Rather than
8527 adding a --branch option to gitlog-to-changelog, it seems more
8528 flexible to simply pass all options directly to git-log and let
8529 git do the work. Notice that this effectively makes --since a
8530 redundant option for gitlog-to-changelog, but removing it would
8531 require current usage to change since calls would then require
8534 2008-12-21 Bruno Haible <bruno@clisp.org>
8536 * modules/mbsnrtowcs-tests: New file.
8537 * tests/test-mbsnrtowcs1.sh: New file.
8538 * tests/test-mbsnrtowcs2.sh: New file.
8539 * tests/test-mbsnrtowcs3.sh: New file.
8540 * tests/test-mbsnrtowcs4.sh: New file.
8541 * tests/test-mbsnrtowcs.c: New file.
8543 New module 'mbsnrtowcs'.
8544 * lib/wchar.in.h (mbsnrtowcs): New declaration.
8545 * lib/mbsnrtowcs.c: New file.
8546 * lib/mbsrtowcs-state.c: New file.
8547 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
8548 (internal_state): Remove variable.
8549 * m4/mbsnrtowcs.m4: New file.
8550 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
8552 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
8553 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
8554 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
8555 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
8556 * modules/mbsnrtowcs: New file.
8557 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
8558 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
8559 portability problem.
8561 2008-12-21 Bruno Haible <bruno@clisp.org>
8563 Work around mbsrtowcs bug.
8564 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
8565 (gl_FUNC_MBSRTOWCS): Invoke it.
8566 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
8568 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
8570 2008-12-21 Bruno Haible <bruno@clisp.org>
8572 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
8574 2008-12-21 Bruno Haible <bruno@clisp.org>
8577 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
8578 16-bit wchar_t type.
8579 * doc/posix-functions/btowc.texi: Likewise.
8580 * doc/posix-functions/fgetwc.texi: Likewise.
8581 * doc/posix-functions/fgetws.texi: Likewise.
8582 * doc/posix-functions/fputwc.texi: Likewise.
8583 * doc/posix-functions/fputws.texi: Likewise.
8584 * doc/posix-functions/fwide.texi: Likewise.
8585 * doc/posix-functions/fwprintf.texi: Likewise.
8586 * doc/posix-functions/fwscanf.texi: Likewise.
8587 * doc/posix-functions/getwchar.texi: Likewise.
8588 * doc/posix-functions/getwc.texi: Likewise.
8589 * doc/posix-functions/iswalnum.texi: Likewise.
8590 * doc/posix-functions/iswalpha.texi: Likewise.
8591 * doc/posix-functions/iswblank.texi: Likewise.
8592 * doc/posix-functions/iswcntrl.texi: Likewise.
8593 * doc/posix-functions/iswctype.texi: Likewise.
8594 * doc/posix-functions/iswdigit.texi: Likewise.
8595 * doc/posix-functions/iswgraph.texi: Likewise.
8596 * doc/posix-functions/iswlower.texi: Likewise.
8597 * doc/posix-functions/iswprint.texi: Likewise.
8598 * doc/posix-functions/iswpunct.texi: Likewise.
8599 * doc/posix-functions/iswspace.texi: Likewise.
8600 * doc/posix-functions/iswupper.texi: Likewise.
8601 * doc/posix-functions/iswxdigit.texi: Likewise.
8602 * doc/posix-functions/mbrtowc.texi: Likewise.
8603 * doc/posix-functions/mbsrtowcs.texi: Likewise.
8604 * doc/posix-functions/mbstowcs.texi: Likewise.
8605 * doc/posix-functions/mbtowc.texi: Likewise.
8606 * doc/posix-functions/putwchar.texi: Likewise.
8607 * doc/posix-functions/putwc.texi: Likewise.
8608 * doc/posix-functions/swprintf.texi: Likewise.
8609 * doc/posix-functions/tolower.texi: Likewise.
8610 * doc/posix-functions/toupper.texi: Likewise.
8611 * doc/posix-functions/towctrans.texi: Likewise.
8612 * doc/posix-functions/ungetwc.texi: Likewise.
8613 * doc/posix-functions/vswprintf.texi: Likewise.
8614 * doc/posix-functions/wcrtomb.texi: Likewise.
8615 * doc/posix-functions/wcscat.texi: Likewise.
8616 * doc/posix-functions/wcschr.texi: Likewise.
8617 * doc/posix-functions/wcscmp.texi: Likewise.
8618 * doc/posix-functions/wcscoll.texi: Likewise.
8619 * doc/posix-functions/wcscpy.texi: Likewise.
8620 * doc/posix-functions/wcscspn.texi: Likewise.
8621 * doc/posix-functions/wcsftime.texi: Likewise.
8622 * doc/posix-functions/wcslen.texi: Likewise.
8623 * doc/posix-functions/wcsncat.texi: Likewise.
8624 * doc/posix-functions/wcsncmp.texi: Likewise.
8625 * doc/posix-functions/wcsncpy.texi: Likewise.
8626 * doc/posix-functions/wcspbrk.texi: Likewise.
8627 * doc/posix-functions/wcsrchr.texi: Likewise.
8628 * doc/posix-functions/wcsrtombs.texi: Likewise.
8629 * doc/posix-functions/wcsspn.texi: Likewise.
8630 * doc/posix-functions/wcsstr.texi: Likewise.
8631 * doc/posix-functions/wcstod.texi: Likewise.
8632 * doc/posix-functions/wcstof.texi: Likewise.
8633 * doc/posix-functions/wcstoimax.texi: Likewise.
8634 * doc/posix-functions/wcstok.texi: Likewise.
8635 * doc/posix-functions/wcstold.texi: Likewise.
8636 * doc/posix-functions/wcstoll.texi: Likewise.
8637 * doc/posix-functions/wcstol.texi: Likewise.
8638 * doc/posix-functions/wcstombs.texi: Likewise.
8639 * doc/posix-functions/wcstoull.texi: Likewise.
8640 * doc/posix-functions/wcstoul.texi: Likewise.
8641 * doc/posix-functions/wcstoumax.texi: Likewise.
8642 * doc/posix-functions/wcswidth.texi: Likewise.
8643 * doc/posix-functions/wcsxfrm.texi: Likewise.
8644 * doc/posix-functions/wctob.texi: Likewise.
8645 * doc/posix-functions/wctomb.texi: Likewise.
8646 * doc/posix-functions/wctrans.texi: Likewise.
8647 * doc/posix-functions/wctype.texi: Likewise.
8648 * doc/posix-functions/wcwidth.texi: Likewise.
8649 * doc/posix-functions/wmemchr.texi: Likewise.
8650 * doc/posix-functions/wmemcmp.texi: Likewise.
8651 * doc/posix-functions/wmemcpy.texi: Likewise.
8652 * doc/posix-functions/wmemmove.texi: Likewise.
8653 * doc/posix-functions/wmemset.texi: Likewise.
8654 * doc/posix-functions/wprintf.texi: Likewise.
8655 * doc/posix-functions/wscanf.texi: Likewise.
8657 2008-12-21 Bruno Haible <bruno@clisp.org>
8659 Update doc for HP-UX 11.11.
8660 * doc/posix-functions/btowc.texi: Clarify that the function is missing
8661 in HP-UX version 11.00, not in all versions of HP-UX 11.
8662 * doc/posix-functions/fwide.texi: Likewise.
8663 * doc/posix-functions/fwprintf.texi: Likewise.
8664 * doc/posix-functions/fwscanf.texi: Likewise.
8665 * doc/posix-functions/inet_ntop.texi: Likewise.
8666 * doc/posix-functions/inet_pton.texi: Likewise.
8667 * doc/posix-functions/mbrlen.texi: Likewise.
8668 * doc/posix-functions/mbrtowc.texi: Likewise.
8669 * doc/posix-functions/mbsinit.texi: Likewise.
8670 * doc/posix-functions/mbsrtowcs.texi: Likewise.
8671 * doc/posix-functions/swprintf.texi: Likewise.
8672 * doc/posix-functions/swscanf.texi: Likewise.
8673 * doc/posix-functions/towctrans.texi: Likewise.
8674 * doc/posix-functions/vfwprintf.texi: Likewise.
8675 * doc/posix-functions/vswprintf.texi: Likewise.
8676 * doc/posix-functions/vwprintf.texi: Likewise.
8677 * doc/posix-functions/wcrtomb.texi: Likewise.
8678 * doc/posix-functions/wcsrtombs.texi: Likewise.
8679 * doc/posix-functions/wcsstr.texi: Likewise.
8680 * doc/posix-functions/wctob.texi: Likewise.
8681 * doc/posix-functions/wctrans.texi: Likewise.
8682 * doc/posix-functions/wmemchr.texi: Likewise.
8683 * doc/posix-functions/wmemcmp.texi: Likewise.
8684 * doc/posix-functions/wmemcpy.texi: Likewise.
8685 * doc/posix-functions/wmemmove.texi: Likewise.
8686 * doc/posix-functions/wmemset.texi: Likewise.
8687 * doc/posix-functions/wprintf.texi: Likewise.
8688 * doc/posix-functions/wscanf.texi: Likewise.
8690 2008-12-21 Bruno Haible <bruno@clisp.org>
8692 Work around a portability problem.
8693 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
8694 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
8696 2008-12-20 Bruno Haible <bruno@clisp.org>
8698 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
8699 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
8700 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
8701 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
8702 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
8704 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
8705 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
8707 (GNULIB_defined_mbstate_t): New macro.
8708 (mbsinit): Redefine if REPLACE_MBSINIT is set.
8709 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
8710 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
8711 reuses the system's mbrtowc function but works around the bugs.
8712 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
8713 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
8715 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
8716 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
8717 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
8718 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
8719 REPLACE_MBSINIT if mbsinit needs to be overridden.
8720 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
8721 REPLACE_MBSINIT, REPLACE_MBRTOWC.
8722 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
8723 REPLACE_MBSINIT, REPLACE_MBRTOWC.
8724 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
8726 (Depends): Add mbsinit.
8727 * modules/mbsinit (Depends): Add mbrtowc.
8728 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
8730 2008-12-20 Bruno Haible <bruno@clisp.org>
8732 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
8733 so that there are no conversion errors on AIX.
8734 * tests/test-mbsrtowcs.c (main): LIkewise.
8736 2008-12-20 Bruno Haible <bruno@clisp.org>
8738 Work around wctob bug on Solaris <= 9.
8739 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
8740 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
8741 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
8742 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
8743 * modules/wctob (Files): Add m4/locale-fr.m4.
8744 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
8746 2008-12-20 Bruno Haible <bruno@clisp.org>
8748 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
8750 * tests/test-select-in.sh: Likewise.
8751 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8753 2008-12-20 Bruno Haible <bruno@clisp.org>
8755 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
8756 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
8759 2008-12-20 Bruno Haible <bruno@clisp.org>
8761 Ensure mbstate_t is defined on HP-UX 11.11.
8762 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
8763 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
8764 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
8765 AC_USE_SYSTEM_EXTENSIONS.
8766 * modules/fnmatch (Depends-on): Add extensions.
8767 * modules/mbrlen (Depends-on): Likewise.
8768 * modules/mbrtowc (Depends-on): Likewise.
8769 * modules/mbsinit (Depends-on): Likewise.
8770 * modules/mbsrtowcs (Depends-on): Likewise.
8771 * modules/mbswidth (Depends-on): Likewise.
8772 * modules/quotearg (Depends-on): Likewise.
8773 * modules/strftime (Depends-on): Likewise.
8775 2008-12-20 Bruno Haible <bruno@clisp.org>
8777 Ensure wctob is declared on IRIX 6.5.
8778 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
8779 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
8780 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
8781 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
8783 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
8785 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
8787 2008-12-19 Bruno Haible <bruno@clisp.org>
8789 * modules/mbsrtowcs-tests: New file.
8790 * tests/test-mbsrtowcs1.sh: New file.
8791 * tests/test-mbsrtowcs2.sh: New file.
8792 * tests/test-mbsrtowcs3.sh: New file.
8793 * tests/test-mbsrtowcs4.sh: New file.
8794 * tests/test-mbsrtowcs.c: New file.
8796 New module 'mbsrtowcs'.
8797 * lib/wchar.in.h (mbsrtowcs): New declaration.
8798 * lib/mbsrtowcs.c: New file.
8799 * m4/mbsrtowcs.m4: New file.
8800 * modules/mbsrtowcs: New file.
8801 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
8803 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
8805 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
8807 2008-12-19 Bruno Haible <bruno@clisp.org>
8809 New module 'mbrlen'.
8810 * lib/wchar.in.h (mbrlen): New declaration.
8811 * lib/mbrlen.c: New file.
8812 * m4/mbrlen.m4: New file.
8813 * modules/mbrlen: New file.
8814 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
8816 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
8818 * doc/posix-functions/mbrlen.texi: Document the new module.
8820 2008-12-19 Bruno Haible <bruno@clisp.org>
8822 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
8823 * modules/mbrtowc (Depends-on): Add verify.
8824 Suggested by Paul Eggert.
8826 2008-12-18 Bruno Haible <bruno@clisp.org>
8828 * modules/mbsinit-tests: New file.
8829 * tests/test-mbsinit.sh: New file.
8830 * tests/test-mbsinit.c: New file.
8832 2008-12-18 Bruno Haible <bruno@clisp.org>
8834 * modules/mbrtowc-tests: New file.
8835 * tests/test-mbrtowc1.sh: New file.
8836 * tests/test-mbrtowc2.sh: New file.
8837 * tests/test-mbrtowc3.sh: New file.
8838 * tests/test-mbrtowc4.sh: New file.
8839 * tests/test-mbrtowc.c: New file.
8841 New module 'mbrtowc'.
8842 * lib/wchar.in.h (mbstate_t): Override when the system does not have
8843 mbsinit and mbrtowc.
8844 (mbrtowc): New declaration.
8845 * lib/mbrtowc.c: New file.
8846 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
8847 * modules/mbrtowc: New file.
8848 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
8850 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
8852 * doc/posix-functions/mbrtowc.texi: Document the new module.
8854 2008-12-18 Bruno Haible <bruno@clisp.org>
8857 * lib/wchar.in.h (wctob): New declaration.
8858 * lib/wctob.c: New file.
8859 * m4/wctob.m4: New file.
8860 * modules/wctob: New file.
8861 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
8863 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
8864 * doc/posix-functions/wctob.texi: Document the new module.
8866 2008-12-18 Bruno Haible <bruno@clisp.org>
8868 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
8869 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
8871 2008-12-18 Simon Josefsson <simon@josefsson.org>
8873 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
8874 G. Christensen" <tgc@jupiterrise.com>.
8876 * lib/flock.c: Need to include errno.h. Reported by "Tom
8877 G. Christensen" <tgc@jupiterrise.com>.
8879 * lib/flock.c: Need to include string.h. Reported by "Tom
8880 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
8883 2008-12-18 Bruno Haible <bruno@clisp.org>
8885 * m4/locale-ja.m4: New file, from GNU gettext.
8887 2008-12-17 Bruno Haible <bruno@clisp.org>
8889 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
8890 Suggested by Eric Blake.
8892 2008-12-17 Bruno Haible <bruno@clisp.org>
8894 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
8896 2008-12-17 Bruno Haible <bruno@clisp.org>
8898 * lib/mbsinit.c: Include verify.h. Verify an assumption.
8899 * modules/mbsinit (Depends-on): Add verify.
8900 Suggested by Paul Eggert.
8902 2008-12-17 Bruno Haible <bruno@clisp.org>
8904 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
8905 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
8907 * m4/mbiter.m4 (gl_MBITER): LIkewise.
8908 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
8909 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
8910 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
8911 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
8912 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
8913 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
8914 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
8915 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
8916 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
8917 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
8918 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
8919 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
8920 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
8921 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
8922 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8923 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
8924 * modules/trim (configure.ac): Likewise.
8926 2008-12-17 Bruno Haible <bruno@clisp.org>
8928 * modules/btowc-tests: New file.
8929 * tests/test-btowc1.sh: New file.
8930 * tests/test-btowc2.sh: New file.
8931 * tests/test-btowc.c: New file.
8934 * lib/wchar.in.h (btowc): New declaration.
8935 * lib/btowc.c: New file.
8936 * m4/btowc.m4: New file.
8937 * modules/btowc: New file.
8938 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
8940 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
8941 * doc/posix-functions/btowc.texi: Document the new module.
8943 2008-12-17 Bruno Haible <bruno@clisp.org>
8945 New module 'mbsinit'.
8946 * lib/wchar.in.h (mbsinit): New declaration.
8947 * lib/mbsinit.c: New file.
8948 * m4/mbsinit.m4: New file.
8949 * modules/mbsinit: New file.
8950 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
8952 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
8954 * doc/posix-functions/mbsinit.texi: Document the new module.
8956 2008-12-16 Bruno Haible <bruno@clisp.org>
8958 * lib/unistd.in.h: Add comment.
8959 * tests/test-environ.c: Don't include <stdlib.h>.
8961 2008-12-16 Bruno Haible <bruno@clisp.org>
8963 * lib/parse-duration.h (parse_duration): Document return value
8965 * lib/parse-duration.c: Include specification header first. Add
8968 (parse_year_month_day, parse_hour_minute_second): Move side effects
8969 outside of strchr call.
8970 (parse_non_iso8601): Move side effects outside of isspace call.
8971 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
8974 2008-12-16 Bruno Haible <bruno@clisp.org>
8976 * tests/test-parse-duration.sh: Produce no output when the test
8979 2008-12-16 Bruno Haible <bruno@clisp.org>
8981 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
8984 2008-12-15 Bruno Haible <bruno@clisp.org>
8986 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
8987 * doc/glibc-functions/flistxattr.texi: Likewise.
8988 * doc/glibc-functions/fopencookie.texi: Likewise.
8989 * doc/glibc-functions/fremovexattr.texi: Likewise.
8990 * doc/glibc-functions/fsetxattr.texi: Likewise.
8991 * doc/glibc-functions/getxattr.texi: Likewise.
8992 * doc/glibc-functions/lgetxattr.texi: Likewise.
8993 * doc/glibc-functions/listxattr.texi: Likewise.
8994 * doc/glibc-functions/llistxattr.texi: Likewise.
8995 * doc/glibc-functions/lremovexattr.texi: Likewise.
8996 * doc/glibc-functions/lsetxattr.texi: Likewise.
8997 * doc/glibc-functions/removexattr.texi: Likewise.
8998 * doc/glibc-functions/setxattr.texi: Likewise.
8999 * doc/posix-functions/open_memstream.texi: Likewise.
9001 2008-12-15 Eric Blake <ebb9@byu.net>
9003 Update doc for cygwin 1.7.
9004 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
9006 * doc/posix-functions/fchmodat.texi: Likewise.
9007 * doc/posix-functions/fchownat.texi: Likewise.
9008 * doc/posix-functions/fdopendir.texi: Likewise.
9009 * doc/posix-functions/fmemopen.texi: Likewise.
9010 * doc/posix-functions/freeaddrinfo.texi: Likewise.
9011 * doc/posix-functions/fstatat.texi: Likewise.
9012 * doc/posix-functions/futimens.texi: Likewise.
9013 * doc/posix-functions/gai_strerror.texi: Likewise.
9014 * doc/posix-functions/getaddrinfo.texi: Likewise.
9015 * doc/posix-functions/getnameinfo.texi: Likewise.
9016 * doc/posix-functions/if_freenameindex.texi: Likewise.
9017 * doc/posix-functions/if_indextoname.texi: Likewise.
9018 * doc/posix-functions/if_nameindex.texi: Likewise.
9019 * doc/posix-functions/if_nametoindex.texi: Likewise.
9020 * doc/posix-functions/insque.texi: Likewise.
9021 * doc/posix-functions/linkat.texi: Likewise.
9022 * doc/posix-functions/llrint.texi: Likewise.
9023 * doc/posix-functions/llrintf.texi: Likewise.
9024 * doc/posix-functions/llrintl.texi: Likewise.
9025 * doc/posix-functions/lockf.texi: Likewise.
9026 * doc/posix-functions/lrintl.texi: Likewise.
9027 * doc/posix-functions/mkdirat.texi: Likewise.
9028 * doc/posix-functions/mkfifoat.texi: Likewise.
9029 * doc/posix-functions/mknodat.texi: Likewise.
9030 * doc/posix-functions/mq_close.texi: Likewise.
9031 * doc/posix-functions/mq_getattr.texi: Likewise.
9032 * doc/posix-functions/mq_notify.texi: Likewise.
9033 * doc/posix-functions/mq_open.texi: Likewise.
9034 * doc/posix-functions/mq_receive.texi: Likewise.
9035 * doc/posix-functions/mq_send.texi: Likewise.
9036 * doc/posix-functions/mq_setattr.texi: Likewise.
9037 * doc/posix-functions/mq_timedreceive.texi: Likewise.
9038 * doc/posix-functions/mq_timedsend.texi: Likewise.
9039 * doc/posix-functions/mq_unlink.texi: Likewise.
9040 * doc/posix-functions/open_memstream.texi: Likewise.
9041 * doc/posix-functions/openat.texi: Likewise.
9042 * doc/posix-functions/posix_fadvise.texi: Likewise.
9043 * doc/posix-functions/posix_fallocate.texi: Likewise.
9044 * doc/posix-functions/posix_madvise.texi: Likewise.
9045 * doc/posix-functions/posix_memalign.texi: Likewise.
9046 * doc/posix-functions/posix_openpt.texi: Likewise.
9047 * doc/posix-functions/readlinkat.texi: Likewise.
9048 * doc/posix-functions/remque.texi: Likewise.
9049 * doc/posix-functions/renameat.texi: Likewise.
9050 * doc/posix-functions/rintl.texi: Likewise.
9051 * doc/posix-functions/sem_unlink.texi: Likewise.
9052 * doc/posix-functions/shm_open.texi: Likewise.
9053 * doc/posix-functions/shm_unlink.texi: Likewise.
9054 * doc/posix-functions/signgam.texi: Likewise.
9055 * doc/posix-functions/sigset.texi: Likewise.
9056 * doc/posix-functions/stpcpy.texi: Likewise.
9057 * doc/posix-functions/stpncpy.texi: Likewise.
9058 * doc/posix-functions/strerror.texi: Likewise.
9059 * doc/posix-functions/strtod.texi: Likewise.
9060 * doc/posix-functions/symlinkat.texi: Likewise.
9061 * doc/posix-functions/unlinkat.texi: Likewise.
9062 * doc/posix-functions/utimensat.texi: Likewise.
9063 * doc/glibc-functions/bindresvport.texi: Likewise.
9064 * doc/glibc-functions/dn_expand.texi: Likewise.
9065 * doc/glibc-functions/exp10.texi: Likewise.
9066 * doc/glibc-functions/exp10f.texi: Likewise.
9067 * doc/glibc-functions/fgetxattr.texi: Likewise.
9068 * doc/glibc-functions/flistxattr.texi: Likewise.
9069 * doc/glibc-functions/fopencookie.texi: Likewise.
9070 * doc/glibc-functions/freeifaddrs.texi: Likewise.
9071 * doc/glibc-functions/fremovexattr.texi: Likewise.
9072 * doc/glibc-functions/fsetxattr.texi: Likewise.
9073 * doc/glibc-functions/getifaddrs.texi: Likewise.
9074 * doc/glibc-functions/getxattr.texi: Likewise.
9075 * doc/glibc-functions/lgetxattr.texi: Likewise.
9076 * doc/glibc-functions/listxattr.texi: Likewise.
9077 * doc/glibc-functions/llistxattr.texi: Likewise.
9078 * doc/glibc-functions/lremovexattr.texi: Likewise.
9079 * doc/glibc-functions/lsetxattr.texi: Likewise.
9080 * doc/glibc-functions/pow10.texi: Likewise.
9081 * doc/glibc-functions/pow10f.texi: Likewise.
9082 * doc/glibc-functions/rcmd_af.texi: Likewise.
9083 * doc/glibc-functions/removexattr.texi: Likewise.
9084 * doc/glibc-functions/res_init.texi: Likewise.
9085 * doc/glibc-functions/res_mkquery.texi: Likewise.
9086 * doc/glibc-functions/res_query.texi: Likewise.
9087 * doc/glibc-functions/res_querydomain.texi: Likewise.
9088 * doc/glibc-functions/res_send.texi: Likewise.
9089 * doc/glibc-functions/rresvport_af.texi: Likewise.
9090 * doc/glibc-functions/setxattr.texi: Likewise.
9091 * doc/glibc-functions/strcasestr.texi: Likewise.
9093 2008-12-15 Bruno Haible <bruno@clisp.org>
9095 Fix compilation error on OSF/1 4.0.
9096 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
9097 <sys/time.h>, simply delegate to the system header.
9098 Reported by Daniel Richard G. <oss@teragram.com>.
9100 2008-12-15 Bruno Haible <bruno@clisp.org>
9102 * doc/posix-functions/openat.texi: Mention the 'openat' module.
9103 * doc/posix-functions/fchmodat.texi: Likewise.
9104 * doc/posix-functions/fchownat.texi: Likewise.
9105 * doc/posix-functions/fdopendir.texi: Likewise.
9106 * doc/posix-functions/fstatat.texi: Likewise.
9107 * doc/posix-functions/mkdirat.texi: Likewise.
9108 * doc/posix-functions/unlinkat.texi: Likewise.
9110 2008-12-14 Bruno Haible <bruno@clisp.org>
9112 Update doc for POSIX:2008.
9113 * doc/posix-functions/faccessat.texi: New file.
9114 * doc/posix-functions/fchmodat.texi: New file.
9115 * doc/posix-functions/fchownat.texi: New file.
9116 * doc/posix-functions/fdopendir.texi: New file.
9117 * doc/posix-functions/fstatat.texi: New file.
9118 * doc/posix-functions/futimens.texi: New file.
9119 * doc/posix-functions/linkat.texi: New file.
9120 * doc/posix-functions/mkdirat.texi: New file.
9121 * doc/posix-functions/mkfifoat.texi: New file.
9122 * doc/posix-functions/mknodat.texi: New file.
9123 * doc/posix-functions/open_wmemstream.texi: New file.
9124 * doc/posix-functions/openat.texi: New file.
9125 * doc/posix-functions/psiginfo.texi: New file.
9126 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
9127 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
9128 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
9129 * doc/posix-functions/readlinkat.texi: New file.
9130 * doc/posix-functions/renameat.texi: New file.
9131 * doc/posix-functions/strerror_l.texi: New file.
9132 * doc/posix-functions/symlinkat.texi: New file.
9133 * doc/posix-functions/unlinkat.texi: New file.
9134 * doc/posix-functions/utimensat.texi: New file.
9135 * doc/gnulib.texi (Function Substitutes): Add these subsections.
9137 2008-12-14 Bruno Haible <bruno@clisp.org>
9139 Update doc for POSIX:2008.
9140 * doc/posix-functions/alphasort.texi: Renamed from
9141 doc/glibc-functions/alphasort.texi.
9142 * doc/posix-functions/dirfd.texi: Renamed from
9143 doc/glibc-functions/dirfd.texi.
9144 * doc/posix-functions/dprintf.texi: Renamed from
9145 doc/glibc-functions/dprintf.texi.
9146 * doc/posix-functions/duplocale.texi: Renamed from
9147 doc/glibc-functions/duplocale.texi.
9148 * doc/posix-functions/fexecve.texi: Renamed from
9149 doc/glibc-functions/fexecve.texi.
9150 * doc/posix-functions/fmemopen.texi: Renamed from
9151 doc/glibc-functions/fmemopen.texi.
9152 * doc/posix-functions/freelocale.texi: Renamed from
9153 doc/glibc-functions/freelocale.texi.
9154 * doc/posix-functions/getdate_err.texi: Renamed from
9155 doc/glibc-functions/getdate_err.texi.
9156 * doc/posix-functions/isalnum_l.texi: Renamed from
9157 doc/glibc-functions/isalnum_l.texi.
9158 * doc/posix-functions/isalpha_l.texi: Renamed from
9159 doc/glibc-functions/isalpha_l.texi.
9160 * doc/posix-functions/isblank_l.texi: Renamed from
9161 doc/glibc-functions/isblank_l.texi.
9162 * doc/posix-functions/iscntrl_l.texi: Renamed from
9163 doc/glibc-functions/iscntrl_l.texi.
9164 * doc/posix-functions/isdigit_l.texi: Renamed from
9165 doc/glibc-functions/isdigit_l.texi.
9166 * doc/posix-functions/isgraph_l.texi: Renamed from
9167 doc/glibc-functions/isgraph_l.texi.
9168 * doc/posix-functions/islower_l.texi: Renamed from
9169 doc/glibc-functions/islower_l.texi.
9170 * doc/posix-functions/isprint_l.texi: Renamed from
9171 doc/glibc-functions/isprint_l.texi.
9172 * doc/posix-functions/ispunct_l.texi: Renamed from
9173 doc/glibc-functions/ispunct_l.texi.
9174 * doc/posix-functions/isspace_l.texi: Renamed from
9175 doc/glibc-functions/isspace_l.texi.
9176 * doc/posix-functions/isupper_l.texi: Renamed from
9177 doc/glibc-functions/isupper_l.texi.
9178 * doc/posix-functions/iswalnum_l.texi: Renamed from
9179 doc/glibc-functions/iswalnum_l.texi.
9180 * doc/posix-functions/iswalpha_l.texi: Renamed from
9181 doc/glibc-functions/iswalpha_l.texi.
9182 * doc/posix-functions/iswblank_l.texi: Renamed from
9183 doc/glibc-functions/iswblank_l.texi.
9184 * doc/posix-functions/iswcntrl_l.texi: Renamed from
9185 doc/glibc-functions/iswcntrl_l.texi.
9186 * doc/posix-functions/iswctype_l.texi: Renamed from
9187 doc/glibc-functions/iswctype_l.texi.
9188 * doc/posix-functions/iswdigit_l.texi: Renamed from
9189 doc/glibc-functions/iswdigit_l.texi.
9190 * doc/posix-functions/iswgraph_l.texi: Renamed from
9191 doc/glibc-functions/iswgraph_l.texi.
9192 * doc/posix-functions/iswlower_l.texi: Renamed from
9193 doc/glibc-functions/iswlower_l.texi.
9194 * doc/posix-functions/iswprint_l.texi: Renamed from
9195 doc/glibc-functions/iswprint_l.texi.
9196 * doc/posix-functions/iswpunct_l.texi: Renamed from
9197 doc/glibc-functions/iswpunct_l.texi.
9198 * doc/posix-functions/iswspace_l.texi: Renamed from
9199 doc/glibc-functions/iswspace_l.texi.
9200 * doc/posix-functions/iswupper_l.texi: Renamed from
9201 doc/glibc-functions/iswupper_l.texi.
9202 * doc/posix-functions/iswxdigit_l.texi: Renamed from
9203 doc/glibc-functions/iswxdigit_l.texi.
9204 * doc/posix-functions/isxdigit_l.texi: Renamed from
9205 doc/glibc-functions/isxdigit_l.texi.
9206 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
9207 doc/glibc-functions/mbsnrtowcs.texi.
9208 * doc/posix-functions/mkdtemp.texi: Renamed from
9209 doc/glibc-functions/mkdtemp.texi.
9210 * doc/posix-functions/newlocale.texi: Renamed from
9211 doc/glibc-functions/newlocale.texi.
9212 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
9213 doc/glibc-functions/nl_langinfo_l.texi.
9214 * doc/posix-functions/open_memstream.texi: Renamed from
9215 doc/glibc-functions/open_memstream.texi.
9216 * doc/posix-functions/opterr.texi: Renamed from
9217 doc/glibc-functions/opterr.texi.
9218 * doc/posix-functions/optind.texi: Renamed from
9219 doc/glibc-functions/optind.texi.
9220 * doc/posix-functions/optopt.texi: Renamed from
9221 doc/glibc-functions/optopt.texi.
9222 * doc/posix-functions/psignal.texi: Renamed from
9223 doc/glibc-functions/psignal.texi.
9224 * doc/posix-functions/scandir.texi: Renamed from
9225 doc/glibc-functions/scandir.texi.
9226 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
9227 doc/glibc-functions/sched_get_priority_min.texi.
9228 * doc/posix-functions/signgam.texi: Renamed from
9229 doc/glibc-functions/signgam.texi.
9230 * doc/posix-functions/stpcpy.texi: Renamed from
9231 doc/glibc-functions/stpcpy.texi.
9232 * doc/posix-functions/stpncpy.texi: Renamed from
9233 doc/glibc-functions/stpncpy.texi.
9234 * doc/posix-functions/strcasecmp_l.texi: Renamed from
9235 doc/glibc-functions/strcasecmp_l.texi.
9236 * doc/posix-functions/strcoll_l.texi: Renamed from
9237 doc/glibc-functions/strcoll_l.texi.
9238 * doc/posix-functions/strfmon_l.texi: Renamed from
9239 doc/glibc-functions/strfmon_l.texi.
9240 * doc/posix-functions/strftime_l.texi: Renamed from
9241 doc/glibc-functions/strftime_l.texi.
9242 * doc/posix-functions/strncasecmp_l.texi: Renamed from
9243 doc/glibc-functions/strncasecmp_l.texi.
9244 * doc/posix-functions/strndup.texi: Renamed from
9245 doc/glibc-functions/strndup.texi.
9246 * doc/posix-functions/strnlen.texi: Renamed from
9247 doc/glibc-functions/strnlen.texi.
9248 * doc/posix-functions/strsignal.texi: Renamed from
9249 doc/glibc-functions/strsignal.texi.
9250 * doc/posix-functions/strxfrm_l.texi: Renamed from
9251 doc/glibc-functions/strxfrm_l.texi.
9252 * doc/posix-functions/timer_gettime.texi: Renamed from
9253 doc/glibc-functions/timer_gettime.texi.
9254 * doc/posix-functions/tolower_l.texi: Renamed from
9255 doc/glibc-functions/tolower_l.texi.
9256 * doc/posix-functions/toupper_l.texi: Renamed from
9257 doc/glibc-functions/toupper_l.texi.
9258 * doc/posix-functions/towctrans_l.texi: Renamed from
9259 doc/glibc-functions/towctrans_l.texi.
9260 * doc/posix-functions/towlower_l.texi: Renamed from
9261 doc/glibc-functions/towlower_l.texi.
9262 * doc/posix-functions/towupper_l.texi: Renamed from
9263 doc/glibc-functions/towupper_l.texi.
9264 * doc/posix-functions/uselocale.texi: Renamed from
9265 doc/glibc-functions/uselocale.texi.
9266 * doc/posix-functions/vdprintf.texi: Renamed from
9267 doc/glibc-functions/vdprintf.texi.
9268 * doc/posix-functions/wcpcpy.texi:
9269 Renamed from doc/glibc-functions/wcpcpy.texi.
9270 * doc/posix-functions/wcpncpy.texi: Renamed from
9271 doc/glibc-functions/wcpncpy.texi.
9272 * doc/posix-functions/wcscasecmp.texi: Renamed from
9273 doc/glibc-functions/wcscasecmp.texi.
9274 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
9275 doc/glibc-functions/wcscasecmp_l.texi.
9276 * doc/posix-functions/wcscoll_l.texi: Renamed from
9277 doc/glibc-functions/wcscoll_l.texi.
9278 * doc/posix-functions/wcsdup.texi: Renamed from
9279 doc/glibc-functions/wcsdup.texi.
9280 * doc/posix-functions/wcsncasecmp.texi: Renamed from
9281 doc/glibc-functions/wcsncasecmp.texi.
9282 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
9283 doc/glibc-functions/wcsncasecmp_l.texi.
9284 * doc/posix-functions/wcsnlen.texi: Renamed from
9285 doc/glibc-functions/wcsnlen.texi.
9286 * doc/posix-functions/wcsnrtombs.texi: Renamed from
9287 doc/glibc-functions/wcsnrtombs.texi.
9288 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
9289 doc/glibc-functions/wcsxfrm_l.texi.
9290 * doc/posix-functions/wctrans_l.texi: Renamed from
9291 doc/glibc-functions/wctrans_l.texi.
9292 * doc/posix-functions/wctype_l.texi: Renamed from
9293 doc/glibc-functions/wctype_l.texi.
9294 * doc/gnulib.texi (Function Substitutes): Add these subsections.
9295 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
9296 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
9297 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
9299 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
9302 2008-12-14 Bruno Haible <bruno@clisp.org>
9304 Update doc for POSIX:2008.
9305 * doc/posix-functions/*.texi: Update URL of POSIX specification.
9307 2008-12-14 Bruno Haible <bruno@clisp.org>
9309 Update doc for POSIX:2008.
9310 * doc/pastposix-functions/bcmp.texi: Renamed from
9311 doc/posix-functions/bcmp.texi.
9312 * doc/pastposix-functions/bcopy.texi: Renamed from
9313 doc/posix-functions/bcopy.texi.
9314 * doc/pastposix-functions/bsd_signal.texi: Renamed from
9315 doc/posix-functions/bsd_signal.texi.
9316 * doc/pastposix-functions/bzero.texi: Renamed from
9317 doc/posix-functions/bzero.texi.
9318 * doc/pastposix-functions/ecvt.texi: Renamed from
9319 doc/posix-functions/ecvt.texi.
9320 * doc/pastposix-functions/fcvt.texi: Renamed from
9321 doc/posix-functions/fcvt.texi.
9322 * doc/pastposix-functions/ftime.texi: Renamed from
9323 doc/posix-functions/ftime.texi.
9324 * doc/pastposix-functions/gcvt.texi: Renamed from
9325 doc/posix-functions/gcvt.texi.
9326 * doc/pastposix-functions/getcontext.texi: Renamed from
9327 doc/posix-functions/getcontext.texi.
9328 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
9329 doc/posix-functions/gethostbyaddr.texi.
9330 * doc/pastposix-functions/gethostbyname.texi: Renamed from
9331 doc/posix-functions/gethostbyname.texi.
9332 * doc/pastposix-functions/getwd.texi: Renamed from
9333 doc/posix-functions/getwd.texi.
9334 * doc/pastposix-functions/h_errno.texi: Renamed from
9335 doc/posix-functions/h_errno.texi.
9336 * doc/pastposix-functions/index.texi: Renamed from
9337 doc/posix-functions/index.texi.
9338 * doc/pastposix-functions/makecontext.texi: Renamed from
9339 doc/posix-functions/makecontext.texi.
9340 * doc/pastposix-functions/mktemp.texi: Renamed from
9341 doc/posix-functions/mktemp.texi.
9342 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
9343 doc/posix-functions/pthread_attr_getstackaddr.texi.
9344 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
9345 doc/posix-functions/pthread_attr_setstackaddr.texi.
9346 * doc/pastposix-functions/rindex.texi: Renamed from
9347 doc/posix-functions/rindex.texi.
9348 * doc/pastposix-functions/scalb.texi: Renamed from
9349 doc/posix-functions/scalb.texi.
9350 * doc/pastposix-functions/setcontext.texi: Renamed from
9351 doc/posix-functions/setcontext.texi.
9352 * doc/pastposix-functions/swapcontext.texi: Renamed from
9353 doc/posix-functions/swapcontext.texi.
9354 * doc/pastposix-functions/ualarm.texi: Renamed from
9355 doc/posix-functions/ualarm.texi.
9356 * doc/pastposix-functions/usleep.texi: Renamed from
9357 doc/posix-functions/usleep.texi.
9358 * doc/pastposix-functions/vfork.texi: Renamed from
9359 doc/posix-functions/vfork.texi.
9360 * doc/pastposix-functions/wcswcs.texi: Renamed from
9361 doc/posix-functions/wcswcs.texi.
9362 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
9363 (Function Substitutes): Update.
9365 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9367 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
9370 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9371 Bruno Haible <bruno@clisp.org>
9373 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
9375 2008-12-13 Bruno Haible <bruno@clisp.org>
9377 * modules/strtoull (Depends-on): Remove unistd.
9379 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9381 * modules/strtoull (Depends-on): Add stdlib.
9383 2008-12-11 Simon Josefsson <simon@josefsson.org>
9385 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
9387 2008-12-10 Jim Meyering <meyering@redhat.com>
9389 gl_ASSERT: don't say assertions are disabled when they're not
9390 * m4/assert.m4 (gl_ASSERT): Do not make configure report
9391 "checking whether to enable assertions... no", when they are in
9392 fact enabled. This is solely a bug in the output of configure.
9393 In spite of saying "no", NDEBUG was not defined in that case.
9394 Also, as noted by Eric Blake, leave assertions enabled upon
9395 --enable-assert=INVALID.
9397 2008-12-10 Bruno Haible <bruno@clisp.org>
9399 Change MODULES.html to refer to POSIX:2008 where possible.
9400 * MODULES.html.sh (POSIX2008_URL): New variable.
9401 (posix_headers): Remove sys/timeb, ucontext.
9402 (posix2001_headers): New variable.
9403 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
9404 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
9405 index, makecontext, mktemp, pthread_attr_getstackaddr,
9406 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
9407 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
9408 (posix2001_functions): New variable.
9409 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
9412 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9414 add missing include to parse-duration.c
9415 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
9416 * modules/parse-duration (Depends-on): Add xalloc.
9418 fix sed script reading maint.mk
9419 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
9420 (syntax-check-rules): Use it.
9422 2008-12-09 Bruno Haible <bruno@clisp.org>
9424 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
9425 MacOS X 10.4/PowerPC.
9426 Reported by Simon Josefsson.
9428 2008-12-08 Jim Meyering <meyering@redhat.com>
9430 work around mingw's lack of some S_IF definitions
9431 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
9432 Reported by Simon Josefsson.
9434 2008-12-08 Bruno Haible <bruno@clisp.org>
9436 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
9437 applied to variables. Needed on MacOS X 10.4/PowerPC.
9438 Reported by Simon Josefsson.
9440 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
9441 and Eric Blake <ebb9@byu.net>
9443 assert: honor --enable-assert
9444 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
9445 order to honor --enable-assert, rather than treating it as a
9446 synonym for --disable-assert.
9448 2008-12-08 Jim Meyering <meyering@redhat.com>
9450 * lib/posixtm.c: Remove now-useless declaration of mktime.
9452 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
9454 2008-12-07 Bruno Haible <bruno@clisp.org>
9456 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
9457 test_once): Mark functions as static.
9458 * tests/test-tls.c (test_tls): Likewise.
9460 2008-12-07 Bruno Haible <bruno@clisp.org>
9462 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
9463 iconv_register_autodetect.
9465 2008-12-07 Jim Meyering <meyering@redhat.com>
9467 posixtm.c: avoid a warning
9468 * lib/posixtm.c (posixtime): Don't initialize tm0.
9469 It's no longer needed to placate gcc4's -Wuninitialized,
9470 and the attempt to placate would elicit a new warning.
9472 unicodeio.c: mark unused parameters
9473 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
9474 (fallback_failure_callback): Likewise.
9476 2008-12-07 Bruno Haible <bruno@clisp.org>
9478 * gnulib-tool (func_create_testdir): When building the tests
9479 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
9480 Reported by Simon Josefsson.
9482 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9484 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
9486 2008-12-06 Bruno Haible <bruno@clisp.org>
9488 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
9489 Suggested by Eric Blake.
9491 2008-12-06 Bruno Haible <bruno@clisp.org>
9493 Fix a c-stack test failure on MacOS X.
9494 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
9495 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
9496 handler for SIGBUS as well.
9497 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
9498 install a signal handler for SIGBUS as well.
9499 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
9501 2008-12-06 Bruno Haible <bruno@clisp.org>
9503 Advocacy documentation.
9504 * doc/gnulib-intro.texi (Benefits): New section.
9505 * doc/gnulib.texi: Update.
9507 2008-12-06 Bruno Haible <bruno@clisp.org>
9509 Document the 'manywarnings' module.
9510 * doc/manywarnings.texi: New file.
9511 * doc/gnulib.texi: Include it.
9513 2008-12-05 Eric Blake <ebb9@byu.net>
9515 tests: silence some gcc warnings
9516 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
9517 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
9520 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9521 Bruno Haible <bruno@clisp.org>
9523 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
9525 2008-11-29 Jim Meyering <meyering@redhat.com>
9527 unicodeio.c: mark unused parameters
9528 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
9529 (fallback_failure_callback): Likewise.
9532 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
9533 (set_stat_type): Return S_IF*-valued "type" directly.
9534 Prompted by James Youngman's spotting a related bug.
9535 Confirmed by further testing through find.
9537 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
9538 * lib/fts.c (D_TYPE): Define.
9539 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
9540 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
9541 (s_ifmt_shift_bits): New function.
9542 (set_stat_type): New function.
9543 (fts_build): When not calling fts_stat, call set_stat_type
9544 to propagate dirent.d_type info to fts_read caller.
9545 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
9546 fts_statp->st_mode type information may be valid.
9548 2008-11-28 Simon Josefsson <simon@josefsson.org>
9550 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
9551 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
9554 2008-11-20 Bruno Haible <bruno@clisp.org>
9556 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
9557 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
9559 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
9560 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
9561 * modules/math (Makefile.am): Substitute
9562 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
9563 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
9565 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
9566 Bruno Haible <bruno@clisp.org>
9568 * lib/stdint.in.h: Define all type macros so that their expansion is
9569 a single typedef'ed token. Fixes a compilation failure in Boost which
9570 does "using ::int8_t;".
9572 2008-11-18 Simon Josefsson <simon@josefsson.org>
9574 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
9575 gl_MANYWARN_ALL_GCC.
9576 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
9577 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
9578 * modules/manywarnings: New file.
9579 * MODULES.html.sh: Mention manywarnings module.
9581 2008-11-18 Bruno Haible <bruno@clisp.org>
9583 * doc/gnulib-tool.texi (Unit tests): New section.
9585 2008-11-18 Simon Josefsson <simon@josefsson.org>
9587 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
9588 paths like 'lib/po/foo.po'.
9590 2008-11-17 Simon Josefsson <simon@josefsson.org>
9592 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
9593 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
9595 2008-11-17 Simon Josefsson <simon@josefsson.org>
9597 * m4/warnings.m4: Use CPPFLAGS to really check whether the
9600 2008-11-17 Simon Josefsson <simon@josefsson.org>
9602 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
9604 2008-11-17 Bruce Korb <bkorb@gnu.org>
9606 * modules/parse-duration-tests: New file.
9607 * tests/test-parse-duration.sh: New file.
9608 * tests/test-parse-duration.c: New file.
9610 New module 'parse-duration'.
9611 * lib/parse-duration.h: New file.
9612 * lib/parse-duration.c: New file.
9613 * modules/parse-duration: New file.
9615 2008-11-17 Bruno Haible <bruno@clisp.org>
9617 * tests/test-select-out.sh: Comment out the first pipe test.
9618 Reported by Simon Josefsson.
9620 2008-11-17 Bruno Haible <bruno@clisp.org>
9622 * modules/getaddrinfo (Depends-on): Add servent, hostent.
9623 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
9626 2008-11-17 Bruno Haible <bruno@clisp.org>
9628 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
9629 -lnetwork and -lnet. Needed for Haiku and BeOS.
9631 2008-11-16 Bruno Haible <bruno@clisp.org>
9633 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
9635 2008-11-16 Bruno Haible <bruno@clisp.org>
9637 Avoid test failure on Haiku.
9638 * tests/test-fsync.c: Include <errno.h>.
9639 (main): Don't require that fsync (0) fails.
9641 2008-11-15 Bruno Haible <bruno@clisp.org>
9643 New module 'hostent'.
9644 * modules/hostent: New file.
9645 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
9647 2008-11-15 Bruno Haible <bruno@clisp.org>
9649 New module 'servent'.
9650 * modules/servent: New file.
9651 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
9653 2008-11-15 Bruno Haible <bruno@clisp.org>
9655 Avoid generating same test program with two different rules.
9656 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
9657 test-frexp to test-frexp-nolibm.
9658 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
9659 test-frexpl to test-frexpl-nolibm.
9661 2008-11-15 Bruno Haible <bruno@clisp.org>
9663 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
9666 2008-11-15 Bruno Haible <bruno@clisp.org>
9668 * lib/netdb.in.h: Activate the definitions also when the system's
9669 <netdb.h> has 'struct addrinfo'.
9670 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
9671 EAI_OVERFLOW or AI_NUMERICSERV.
9672 * doc/posix-headers/netdb.texi: Document the problem.
9674 2008-11-15 Bruno Haible <bruno@clisp.org>
9676 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
9678 Make the 'sched' module work on platforms where <sched.h> exists but
9679 is incomplete (such as Haiku).
9680 * lib/sched.in.h; Include the system's <sched.h> if it exists.
9681 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
9682 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
9683 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
9684 HAVE_STRUCT_SCHED_PARAM.
9685 * modules/sched (Depends-on): Add include_next.
9686 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
9687 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
9688 * doc/posix-headers/sched.texi: Document the issue.
9690 2008-11-13 Jim Meyering <meyering@redhat.com>
9692 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
9693 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
9694 test would fail due to the difference in the Report bugs to ...
9695 line. The expected address is empty, "<>", while the actual
9696 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
9698 2008-11-12 Bruno Haible <bruno@clisp.org>
9700 lstat: don't compile lstat.c on systems lacking lstat
9701 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
9702 which don't have lstat; this is handled by lib/sys_stat.in.h already.
9703 Reported by Daniel P. Berrange via Jim Meyering.
9705 2008-11-12 Jim Meyering <meyering@redhat.com>
9707 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
9709 2008-11-12 Simon Josefsson <simon@josefsson.org>
9711 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
9714 2008-11-12 Bruno Haible <bruno@clisp.org>
9716 * lib/unicodeio.c: Include unistr.h.
9717 (utf8_wctomb): Remove function.
9718 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
9720 2008-11-12 Simon Josefsson <simon@josefsson.org>
9722 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
9723 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
9725 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
9727 2008-11-12 Simon Josefsson <simon@josefsson.org>
9729 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
9730 * doc/gnulib.texi: Add section for warnings.
9732 2008-11-11 Bruno Haible <bruno@clisp.org>
9734 * lib/sockets.h: Add a comment.
9736 2008-11-11 Karl Berry <karl@gnu.org>
9738 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
9740 2008-11-11 Eric Blake <ebb9@byu.net>
9742 fdl.texi: avoid git symlinks
9743 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
9745 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
9747 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
9749 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
9751 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
9752 (gl_WARN_ADD): Substitute $2 if literal.
9754 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
9756 * m4/warning.m4: Remove.
9758 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
9760 * m4/warnings.m4: Almost complete rewrite. :-)
9762 2008-11-10 Simon Josefsson <simon@josefsson.org>
9764 * modules/warnings: New module.
9765 * m4/warnings.m4: New file.
9766 * MODULES.html.sh: Mention warnings module.
9767 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
9768 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
9770 2008-11-10 Eric Blake <ebb9@byu.net>
9772 fdl.texi: make a symlink to the latest version
9773 * doc/standards.texi: Revert today's earlier change.
9774 * doc/fdl-1.2.texi: Rename from old fdl.texi...
9775 * doc/fdl.texi: ...and replace this with a symlink to the newer
9778 2008-11-10 Bruno Haible <bruno@clisp.org>
9780 * tests/test-select-fd.c (main): Accept the result file name as fourth
9782 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
9783 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
9785 2008-11-10 Bruno Haible <bruno@clisp.org>
9787 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
9788 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
9789 as autoconf-substituted macros.
9790 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
9791 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
9792 gl_NETDB_H_DEFAULTS. Set these variables.
9793 * modules/netdb (Makefile.am): Substitute these variables.
9795 2008-11-10 Eric Blake <ebb9@byu.net>
9797 standards.texi: include correct file for FDL 1.3
9798 * doc/standards.texi (GNU Free Documentation License): Change
9799 include file to pull in FDL 1.3, not 1.2.
9801 fdl.texi: revert accidental change to license
9802 * doc/fdl.texi: This is FDL 1.2, not 1.3.
9804 2008-11-10 Bruno Haible <bruno@clisp.org>
9806 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
9807 cross-compiling guesses also when the native compile gives no result.
9809 2008-11-10 Bruno Haible <bruno@clisp.org>
9811 * lib/spawni.c (__spawni): Force variable into the stack.
9813 2008-11-10 Bruno Haible <bruno@clisp.org>
9815 Add support for Haiku.
9816 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
9817 glibc and BeOS, but also on Haiku.
9818 * lib/fpurge.c (fpurge): Likewise.
9819 * lib/freadable.c (freadable): Likewise.
9820 * lib/freadahead.c (freadahead): Likewise.
9821 * lib/freading.c (freading): Likewise.
9822 * lib/freadptr.c (freadptr): Likewise.
9823 * lib/freadseek.c (freadptrinc): Likewise.
9824 * lib/fseeko.c (rpl_fseeko): Likewise.
9825 * lib/fseterr.c (fseterr): Likewise.
9826 * lib/fwritable.c (fwritable): Likewise.
9827 * lib/fwriting.c (fwriting): Likewise.
9828 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
9830 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
9832 * lib/config.charset: Treat Haiku like BeOS.
9834 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
9836 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
9837 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
9839 2008-11-08 Bruno Haible <bruno@clisp.org>
9841 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
9844 2008-11-08 Bruno Haible <bruno@clisp.org>
9846 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
9848 2008-11-08 Bruno Haible <bruno@clisp.org>
9850 * tests/test-select-fd.c: New file.
9851 * tests/test-select-in.sh: New file.
9852 * tests/test-select-out.sh: New file.
9853 * tests/test-select-stdin.c: New file.
9854 * modules/select-tests (Files): Add the new files.
9855 (Depends-on): Add gettimeofday.
9856 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
9857 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
9858 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
9860 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
9861 Bruno Haible <bruno@clisp.org>
9863 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
9865 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
9867 * build-aux/pmccabe2html: Added support for C++ source files.
9869 2008-11-05 Ben Pfaff <blp@gnu.org>
9871 Fix lib/close.c build on Windows.
9872 * modules/close (Files): Add lib/w32sock.h.
9874 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
9876 Accept Bison's NEWS format.
9877 * build-aux/announce-gen (print_news_deltas): Tweak
9880 2008-11-04 Bruno Haible <bruno@clisp.org>
9882 * modules/random_r (Maintainer): Add glibc.
9884 2008-11-04 Simon Josefsson <simon@josefsson.org>
9886 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
9887 by karl@freefriends.org (Karl Berry).
9888 * doc/alloca.texi: Likewise.
9889 * doc/c-ctype.texi: Likewise.
9890 * doc/c-strcase.texi: Likewise.
9891 * doc/c-strcaseeq.texi: Likewise.
9892 * doc/c-strcasestr.texi: Likewise.
9893 * doc/c-strstr.texi: Likewise.
9894 * doc/c-strtod.texi: Likewise.
9895 * doc/c-strtold.texi: Likewise.
9896 * doc/ctime.texi: Likewise.
9897 * doc/error.texi: Likewise.
9898 * doc/fdl.texi: Likewise.
9899 * doc/gcd.texi: Likewise.
9900 * doc/getdate.texi: Likewise.
9901 * doc/gnulib-intro.texi: Likewise.
9902 * doc/gnulib-tool.texi: Likewise.
9903 * doc/gnulib.texi: Likewise.
9904 * doc/inet_ntoa.texi: Likewise.
9905 * doc/maintain.texi: Likewise.
9906 * doc/make-stds.texi: Likewise.
9907 * doc/quote.texi: Likewise.
9908 * doc/regexprops-generic.texi: Likewise.
9909 * doc/standards.texi: Likewise.
9910 * doc/verify.texi: Likewise.
9911 * doc/visibility.texi: Likewise.
9912 * doc/gnulib.texi (GNU Free Documentation License): Include
9913 fdl-1.3.texi instead of fdl.texi.
9915 2008-11-04 Simon Josefsson <simon@josefsson.org>
9917 * doc/fdl-1.3.texi: New file, from
9918 <http://www.gnu.org/licenses/fdl-1.3.texi>.
9919 * modules/fdl-1.3: Add.
9920 * MODULES.html.sh: Add fdl-1.3.
9922 2008-11-03 Bruno Haible <bruno@clisp.org>
9924 Make determination of absolute name of header file work with AIX xlc.
9925 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
9926 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
9928 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
9929 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
9931 2008-11-03 Simon Josefsson <simon@josefsson.org>
9933 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
9934 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
9937 2008-11-02 Bruno Haible <bruno@clisp.org>
9939 Mark 'strpbrk' obsolete.
9940 * modules/strpbrk (Status, Notice): New sections.
9941 * modules/strtok_r (Depends-on): Add strpbrk.
9943 2008-11-02 Bruno Haible <bruno@clisp.org>
9945 Mark 'strdup' obsolete.
9946 * modules/strdup (Status, Notice): New sections.
9947 * modules/findprog (Depends-on): Add strdup.
9948 * modules/getaddrinfo (Depends-on): Likewise.
9949 * modules/localename (Depends-on): Likewise.
9950 * modules/relocatable-lib (Depends-on): Likewise.
9951 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
9952 * modules/relocatable-prog (Depends-on): Likewise.
9953 * modules/trim (Depends-on): Likewise.
9954 * modules/unictype/gen-ctype (Depends-on): Likewise.
9955 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
9957 2008-11-02 Bruno Haible <bruno@clisp.org>
9959 Mark 'strcspn' obsolete.
9960 * modules/strcspn (Status, Notice): New sections.
9962 2008-11-02 Bruno Haible <bruno@clisp.org>
9964 Mark 'rmdir' obsolete.
9965 * modules/rmdir (Status, Notice): New sections.
9966 * modules/clean-temp (Depends-on): Add rmdir.
9967 * modules/openat (Depends-on): Likewise.
9969 2008-11-02 Bruno Haible <bruno@clisp.org>
9971 Mark 'raise' obsolete.
9972 * modules/raise (Status, Notice): New sections.
9973 (Include): Specify <signal.h>.
9974 * modules/stdio (Depends-on): Add raise.
9975 * modules/write (Depends-on): Likewise.
9977 2008-11-02 Bruno Haible <bruno@clisp.org>
9979 Mark 'memset' obsolete.
9980 * modules/memset (Status, Notice): New sections.
9982 2008-11-02 Bruno Haible <bruno@clisp.org>
9984 Mark 'memmove' obsolete.
9985 * modules/memmove (Status, Notice): New sections.
9986 * modules/argp (Depends-on): Add memmove.
9987 * modules/argz (Depends-on): Likewise.
9988 * modules/canonicalize (Depends-on): Likewise.
9989 * modules/canonicalize-lgpl (Depends-on): Likewise.
9990 * modules/fts (Depends-on): Likewise.
9991 * modules/getcwd (Depends-on): Likewise.
9992 * modules/human (Depends-on): Likewise.
9993 * modules/regex (Depends-on): Likewise.
9994 * modules/striconveh (Depends-on): Likewise.
9995 * modules/trim (Depends-on): Likewise.
9996 * modules/unistr/u8-move (Depends-on): Likewise.
9997 * modules/unistr/u16-move (Depends-on): Likewise.
9998 * modules/unistr/u32-move (Depends-on): Likewise.
10000 2008-11-02 Bruno Haible <bruno@clisp.org>
10002 Mark 'memcpy' obsolete.
10003 * modules/memcpy (Status, Notice): New sections.
10005 2008-11-02 Bruno Haible <bruno@clisp.org>
10007 Mark 'memcmp' obsolete.
10008 * modules/memcmp (Status, Notice): New sections.
10009 * modules/argmatch (Depends-on): Add memchr.
10010 * modules/backupfile (Depends-on): Likewise.
10011 * modules/c-strcasestr (Depends-on): Likewise.
10012 * modules/crypto/des (Depends-on): Likewise.
10013 * modules/csharpcomp (Depends-on): Likewise.
10014 * modules/fnmatch (Depends-on): Likewise.
10015 * modules/git-merge-changelog (Depends-on): Likewise.
10016 * modules/isnand (Depends-on): Likewise.
10017 * modules/isnand-nolibm (Depends-on): Likewise.
10018 * modules/isnanf (Depends-on): Likewise.
10019 * modules/isnanf-nolibm (Depends-on): Likewise.
10020 * modules/isnanl (Depends-on): Likewise.
10021 * modules/isnanl-nolibm (Depends-on): Likewise.
10022 * modules/mbchar (Depends-on): Likewise.
10023 * modules/memcoll (Depends-on): Likewise.
10024 * modules/quotearg (Depends-on): Likewise.
10025 * modules/regex (Depends-on): Likewise.
10026 * modules/relocatable-prog (Depends-on): Likewise.
10027 * modules/same (Depends-on): Likewise.
10028 * modules/signbit (Depends-on): Likewise.
10029 * modules/strcasestr-simple (Depends-on): Likewise.
10030 * modules/unictype/gen-ctype (Depends-on): Likewise.
10031 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
10032 * modules/uniname/uniname (Depends-on): Likewise.
10033 * modules/unistr/u8-cmp (Depends-on): Likewise.
10035 2008-11-02 Bruno Haible <bruno@clisp.org>
10037 Mark 'memchr' obsolete.
10038 * modules/memchr (Status, Notice): New sections.
10039 * modules/argp (Depends-on): Add memchr.
10040 * modules/base64 (Depends-on): Likewise.
10041 * modules/c-strcasestr (Depends-on): Likewise.
10042 * modules/chdir-long (Depends-on): Likewise.
10043 * modules/fnmatch (Depends-on): Likewise.
10044 * modules/getsubopt (Depends-on): Likewise.
10045 * modules/git-merge-changelog (Depends-on): Likewise.
10046 * modules/glob (Depends-on): Likewise.
10047 * modules/strcasestr-simple (Depends-on): Likewise.
10048 * modules/strnlen (Depends-on): Likewise.
10050 2008-11-02 Bruno Haible <bruno@clisp.org>
10052 Mark 'atexit' obsolete.
10053 * modules/atexit (Status, Notice): New sections.
10054 * modules/chdir-long (Depends-on): Add atexit.
10055 * modules/wait-process (Depends-on): Likewise.
10057 2008-11-02 Bruno Haible <bruno@clisp.org>
10059 * gnulib-tool: New option --with-obsolete.
10060 (func_usage): Document it.
10061 (func_modules_transitive_closure): Drop obsolete dependencies if
10062 incobsolete is not true.
10063 (func_import): Read and save the incobsolete variable to the cache.
10065 2008-11-02 Bruno Haible <bruno@clisp.org>
10067 * modules/TEMPLATE-EXTENDED: New field 'Status'.
10068 * gnulib-tool: New option --extract-status.
10069 (func_usage): Document it.
10070 (sed_extract_prog): Recognize it.
10071 (func_get_status): New function.
10073 2008-10-30 Simon Josefsson <simon@josefsson.org>
10075 * modules/sockets (License): Change from LGPL to LGPLv2+.
10077 2008-10-28 Simon Josefsson <simon@josefsson.org>
10079 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
10081 2008-10-28 Simon Josefsson <simon@josefsson.org>
10083 * MODULES.html.sh (Support for systems lacking POSIX:2001):
10084 Mention times and sys_times.
10085 * modules/sys_times, modules/sys_times-tests: New modules.
10086 * modules/times, modules/times-tests: Likewise
10087 * m4/sys_times_h.m4: New file.
10088 * lib/sys_times.in.h: Likewise
10089 * lib/times.c: Likewise.
10090 * tests/test-sys_times.c: Likewise.
10091 * tests/test-times.c: Likewise.
10092 * doc/posix-headers/sys_times.texi: Update.
10093 * doc/posix-functions/times.texi: Update.
10095 2008-10-28 Jim Meyering <meyering@redhat.com>
10097 * modules/tempname (Depends-on): Add lstat.
10099 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
10101 2008-10-28 Simon Josefsson <simon@josefsson.org>
10103 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
10104 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
10105 using idiom used elsewhere in gnulib.
10107 2008-10-27 Jim Meyering <meyering@redhat.com>
10109 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
10111 2008-10-27 Simon Josefsson <simon@josefsson.org>
10113 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
10114 TESTS_ENVIRONMENT, for shell scripts that needs to call built
10116 * tests/test-argp-2.sh: Use $EXEEXT when needed.
10118 2008-10-27 Simon Josefsson <simon@josefsson.org>
10120 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
10122 2008-10-27 Bruno Haible <bruno@clisp.org>
10124 * tests/test-lstat.c: Include <stdio.h>.
10126 2008-10-27 Simon Josefsson <simon@josefsson.org>
10128 * modules/lstat-tests: New module.
10129 * tests/test-lstat.c: New file.
10131 2008-10-26 Jim Meyering <meyering@redhat.com>
10133 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
10135 2008-10-26 Simon Josefsson <simon@josefsson.org>
10136 Bruno Haible <bruno@clisp.org>
10138 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
10139 * modules/configmake (Include): Add a note that the include must come
10140 after all system headers.
10141 * lib/javaversion.c: Include configmake.h after all other includes.
10143 2008-10-26 Bruno Haible <bruno@clisp.org>
10145 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
10146 HAVE_STRUCT_RANDOM_DATA to 1.
10147 (gl_STDLIB_H): Simplify.
10149 2008-10-26 Simon Josefsson <simon@josefsson.org>
10151 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
10152 substitute HAVE_STRUCT_RANDOM_DATA.
10153 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
10155 * modules/stdlib (Makefile.am): Substitute
10156 HAVE_STRUCT_RANDOM_DATA.
10158 2008-10-26 Simon Josefsson <simon@josefsson.org>
10160 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
10161 * doc/gnulib-intro.texi (Copyright): Likewise.
10163 2008-10-26 Simon Josefsson <simon@josefsson.org>
10165 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
10168 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
10169 Bruno Haible <bruno@clisp.org>
10171 * lib/unistd.in.h: Include <winsock2.h>.
10172 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
10173 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
10174 Provide dummy declarations.
10175 (gethostname): Override.
10176 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
10177 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
10178 gl_PREREQ_SYS_H_WINSOCK2.
10179 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
10180 * doc/posix-functions/gethostname.texi: More details.
10182 2008-10-25 Bruno Haible <bruno@clisp.org>
10184 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
10185 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
10186 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
10188 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
10190 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
10191 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
10192 gl_UNISTD_H_DEFAULTS.
10194 2008-10-25 Eric Blake <ebb9@byu.net>
10196 signbit: avoid spurious compiler failure
10197 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
10198 declarations inside function.
10200 2008-10-24 Simon Josefsson <simon@josefsson.org>
10201 Bruno Haible <bruno@clisp.org>
10203 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
10204 * modules/random_r (Depends-on): Add stdint.
10206 2008-10-24 Bruno Haible <bruno@clisp.org>
10208 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
10210 * modules/strerror (License): Likewise.
10212 2008-10-24 Jim Meyering <meyering@redhat.com>
10214 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
10215 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
10217 2008-10-24 Eric Blake <ebb9@byu.net>
10219 getgroups: fix compilation when getgroups is available
10220 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
10221 but with <config.h> override of getgroups disabled.
10223 2008-10-24 Simon Josefsson <simon@josefsson.org>
10225 * doc/gnulib.texi (Header files): Add note about C++ problems.
10226 Explained by Bruno Haible <bruno@clisp.org>.
10228 2008-10-23 Bruno Haible <bruno@clisp.org>
10230 Define a dummy SA_NODEFER macro on Interix.
10231 * lib/signal.in.h (SA_NODEFER): Define fallback.
10232 Reported by Aleksey Cheusov <cheusov@tut.by> via
10233 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
10235 2008-10-23 Bruno Haible <bruno@clisp.org>
10237 * modules/freadahead (License): Change to LGPLv2+.
10238 Suggested by Simon Josefsson.
10240 2008-10-23 Jim Meyering <meyering@redhat.com>
10242 random_r: new module
10243 * modules/random_r: New file.
10244 * m4/random_r.m4: New file.
10245 * lib/random_r.c: New file, from glibc.
10246 * modules/random_r-tests: New file.
10247 * tests/test-random_r.c: New file.
10248 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
10250 (RAND_MAX): Define.
10251 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
10252 * modules/stdlib: Substitute them, too.
10253 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
10254 * doc/glibc-functions/initstate_r.texi: Mention the new module.
10255 * doc/glibc-functions/random_r.texi: Likewise.
10256 * doc/glibc-functions/setstate_r.texi: Likewise.
10257 * doc/glibc-functions/srandom_r.texi: Likewise.
10258 * config/srclist.txt: Mention it.
10260 2008-10-23 David Lutterkort <lutter@redhat.com>
10262 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
10265 2008-10-23 Jim Meyering <meyering@redhat.com>
10267 selinux-h: mark parameters of stub functions as intentionally unused
10268 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
10269 * lib/se-context.in.h: Likewise.
10271 2008-10-22 Simon Josefsson <simon@josefsson.org>
10273 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
10275 2008-10-22 Simon Josefsson <simon@josefsson.org>
10277 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
10279 2008-10-22 Eric Blake <ebb9@byu.net>
10281 glthread/thread: avoid compiler warning
10282 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
10283 Add unreachable abort to silence compiler.
10285 2008-10-22 Eric Blake <ebb9@byu.net>
10287 netdb: also supply struct addrinfo for cygwin 1.5.x
10288 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
10290 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
10292 * doc/posix-headers/netdb.texi (netdb.h): Document this.
10294 2008-10-22 Bruno Haible <bruno@clisp.org>
10296 * users.txt: Update entry about pspp.
10298 2008-10-21 Bruno Haible <bruno@clisp.org>
10301 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
10302 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
10305 * lib/ioctl.c (ioctl): Don't undefine.
10306 * lib/socket.c (socket): Don't undefine.
10308 Remove unused module indicator macros.
10309 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
10310 GNULIB_$1 as a C macro.
10312 * doc/posix-functions/close.texi: Undo last change.
10313 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
10316 2008-10-21 Bruno Haible <bruno@clisp.org>
10318 Add gethostname() declaration to <unistd.h>.
10319 * lib/unistd.in.h (gethostname): New declaration.
10320 * lib/gethostname.c: Include <unistd.h>.
10321 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
10322 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
10323 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
10324 and HAVE_GETHOSTNAME.
10325 * modules/gethostname (Depends-on): Add unistd.
10326 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10327 (Include): Specify <unistd.h>.
10328 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
10330 * tests/test-gethostname.c: Include <unistd.h> first.
10332 2008-10-21 Bruno Haible <bruno@clisp.org>
10334 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
10335 * modules/select-tests (Depends-on): Likewise.
10336 Reported by Simon Josefsson.
10338 2008-10-21 Simon Josefsson <simon@josefsson.org>
10340 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
10341 * lib/accept.c: New file, based on winsock.c.
10342 * lib/bind.c: New file, based on winsock.c.
10343 * lib/connect.c: New file, based on winsock.c.
10344 * lib/getpeername.c: New file, based on winsock.c.
10345 * lib/getsockname.c: New file, based on winsock.c.
10346 * lib/getsockopt.c: New file, based on winsock.c.
10347 * lib/ioctl.c: New file, based on winsock.c.
10348 * lib/listen.c: New file, based on winsock.c.
10349 * lib/recv.c: New file, based on winsock.c.
10350 * lib/recvfrom.c: New file, based on winsock.c.
10351 * lib/send.c: New file, based on winsock.c.
10352 * lib/sendto.c: New file, based on winsock.c.
10353 * lib/setsockopt.c: New file, based on winsock.c.
10354 * lib/shutdown.c: New file, based on winsock.c.
10355 * lib/socket.c: New file, based on winsock.c.
10356 * lib/w32sock.h: New file, based on winsock.c.
10357 * lib/winsock.c: Remove file.
10358 * modules/accept: Likewise.
10359 * modules/bind: Likewise.
10360 * modules/connect: Likewise.
10361 * modules/getpeername: Likewise.
10362 * modules/getsockname: Likewise.
10363 * modules/getsockopt: Likewise.
10364 * modules/ioctl: Likewise.
10365 * modules/listen: Likewise.
10366 * modules/recv: Likewise.
10367 * modules/recvfrom: Likewise.
10368 * modules/send: Likewise.
10369 * modules/sendto: Likewise.
10370 * modules/setsockopt: Likewise.
10371 * modules/shutdown: Likewise.
10372 * modules/socket: Use socket.c instead of winsock.c.
10373 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
10374 * doc/posix-functions/accept.texi: Doc fix.
10375 * doc/posix-functions/bind.texi: Doc fix.
10376 * doc/posix-functions/close.texi: Doc fix.
10377 * doc/posix-functions/connect.texi: Doc fix.
10378 * doc/posix-functions/getpeername.texi: Doc fix.
10379 * doc/posix-functions/getsockname.texi: Doc fix.
10380 * doc/posix-functions/getsockopt.texi: Doc fix.
10381 * doc/posix-functions/ioctl.texi: Doc fix.
10382 * doc/posix-functions/listen.texi: Doc fix.
10383 * doc/posix-functions/recv.texi: Doc fix.
10384 * doc/posix-functions/recvfrom.texi: Doc fix.
10385 * doc/posix-functions/send.texi: Doc fix.
10386 * doc/posix-functions/sendto.texi: Doc fix.
10387 * doc/posix-functions/setsockopt.texi: Doc fix.
10388 * doc/posix-functions/shutdown.texi: Doc fix.
10389 * doc/posix-functions/socket.texi: Doc fix.
10391 2008-10-20 Bruno Haible <bruno@clisp.org>
10393 Take into account the role of SIGABRT_COMPAT on Windows 2008.
10394 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
10395 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
10396 as an alias for SIGABRT.
10397 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
10398 (sigaction): Map it to SIGABRT.
10399 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
10401 2008-10-20 Bruno Haible <bruno@clisp.org>
10403 * lib/fts.c: Don't include lstat.h.
10404 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
10406 Move the lstat() declaration to <sys/stat.h>.
10407 * lib/lstat.h: Remove file.
10408 * lib/sys_stat.in.h: Add special invocation convention.
10409 (lstat): New declaration.
10410 * lib/lstat.c (orig_lstat): New function.
10411 (rpl_lstat): Use orig_lstat instead of lstat.
10412 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
10413 AC_C_INLINE. Set REPLACE_LSTAT.
10414 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
10416 * modules/lstat (Files): Remove lib/lstat.h.
10417 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
10418 (Include): Specify <sys/stat.h> instead of lstat.h.
10419 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
10421 * NEWS: Mention the change.
10423 2008-10-20 Bruno Haible <bruno@clisp.org>
10425 * modules/posix_spawn-tests: New file.
10426 * tests/test-posix_spawn3.c: New file.
10428 2008-10-20 Bruno Haible <bruno@clisp.org>
10430 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
10431 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
10432 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
10433 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
10434 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
10436 2008-10-20 Bruno Haible <bruno@clisp.org>
10438 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
10439 of posix_spawn on AIX 5.3.
10441 2008-10-20 Bruno Haible <bruno@clisp.org>
10443 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
10445 2008-10-20 Bruno Haible <bruno@clisp.org>
10447 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
10448 of AC_LANG_PROGRAM.
10450 2008-10-20 Simon Josefsson <simon@josefsson.org>
10452 * lib/netdb.in.h: Don't define GNU specific constants until they
10453 are supported or needed. Reported by Bruno Haible
10456 2008-10-20 Simon Josefsson <simon@josefsson.org>
10458 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
10460 2008-10-20 Simon Josefsson <simon@josefsson.org>
10462 * lib/getaddrinfo.h: Remove file.
10463 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
10464 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
10465 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
10466 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
10467 * modules/netdb: Substitute GNULIB_GETADDRINFO.
10468 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
10469 * tests/test-getaddrinfo.c: Likewise.
10470 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
10471 * NEWS: Mention change.
10473 2008-10-19 Bruno Haible <bruno@clisp.org>
10475 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
10477 2008-10-19 Bruno Haible <bruno@clisp.org>
10479 * lib/wait-process.c: Include simply <sys/wait.h>.
10480 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
10481 WIFSTOPPED): Remove fallback definitions.
10482 * modules/wait-process (Depends-on): Add sys_wait.
10484 New module 'sys_wait'.
10485 * modules/sys_wait: New file.
10486 * lib/sys_wait.in.h: New file, partially copied from
10487 lib/wait-process.c.
10488 * m4/sys_wait_h.m4: New file.
10489 * doc/posix-headers/sys_wait.texi: Mention the new module.
10491 2008-10-19 Bruno Haible <bruno@clisp.org>
10493 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
10495 2008-10-19 Bruno Haible <bruno@clisp.org>
10497 Assume that waitpid() fills an 'int' status, not a 'union wait'.
10498 * lib/wait-process.c (WAIT_T): Remove type.
10499 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
10500 (wait_subprocess): Update.
10502 2008-10-19 Bruno Haible <bruno@clisp.org>
10504 New module 'atoll'.
10505 * modules/atoll: New file.
10506 * lib/stdlib.in.h (atoll): New declaration.
10507 * lib/atoll.c: New file, from glibc with modifications.
10508 * m4/atoll.m4: New file.
10509 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
10511 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
10512 * doc/posix-functions/atoll.texi: Mention the new module.
10514 2008-10-19 Bruno Haible <bruno@clisp.org>
10516 Add strtoull() declaration to <stdlib.h>.
10517 * lib/stdlib.in.h (strtoull): New declaration.
10518 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
10520 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
10522 * modules/strtoull (Depends-on): Add stdlib.
10523 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10524 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
10527 2008-10-19 Bruno Haible <bruno@clisp.org>
10529 Add strtoll() declaration to <stdlib.h>.
10530 * lib/stdlib.in.h (strtoll): New declaration.
10531 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
10533 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
10535 * modules/strtoll (Depends-on): Add stdlib.
10536 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10537 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
10539 2008-10-19 Bruno Haible <bruno@clisp.org>
10541 * modules/bcopy (Depends-on): Add strings.
10542 (Include): Specify <strings.h>.
10544 2008-10-19 Bruno Haible <bruno@clisp.org>
10546 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
10548 2008-10-19 Bruno Haible <bruno@clisp.org>
10550 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
10551 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
10554 2008-10-19 Bruno Haible <bruno@clisp.org>
10556 * lib/atanl.c: Don't include isnanl.h.
10557 * lib/cosl.c: Likewise.
10558 * lib/ldexpl.c: Likewise.
10559 * lib/logl.c: Likewise.
10560 * lib/sinl.c: Likewise.
10561 * lib/sqrtl.c: Likewise.
10562 * lib/tanl.c: Likewise.
10564 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
10565 * lib/isnanf.h: Remove file.
10566 * lib/isnand.h: Remove file.
10567 * lib/isnanl.h: Remove file.
10568 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
10569 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
10571 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
10572 HAVE_ISNANF, don't define it as a C macro.
10573 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
10574 HAVE_ISNAND, don't define it as a C macro.
10575 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
10576 HAVE_ISNANL, don't define it as a C macro.
10577 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
10579 * modules/isnanf (Files): Remove lib/isnanf.h.
10580 (Depends-on): Add math.
10581 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10582 (Include): Specify <math.h> instead of isnanf.h.
10583 * modules/isnand (Files): Remove lib/isnand.h.
10584 (Depends-on): Add math.
10585 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10586 (Include): Specify <math.h> instead of isnand.h.
10587 * modules/isnanl (Files): Remove lib/isnanl.h.
10588 (Depends-on): Add math.
10589 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
10590 (Include): Specify <math.h> instead of isnanl.h.
10591 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
10593 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
10594 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
10595 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
10596 * NEWS: Mention the change.
10598 2008-10-18 Bruno Haible <bruno@clisp.org>
10600 Add getusershell(), setusershell(), endusershell() declarations to
10602 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
10604 * lib/getusershell.c: Include unistd.h.
10605 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
10606 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
10608 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
10609 and HAVE_GETUSERSHELL.
10610 * modules/getusershell (Depends-on): Add unistd, extensions.
10611 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10612 (Include): Specify <unistd.h>.
10613 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
10616 2008-10-18 Bruno Haible <bruno@clisp.org>
10618 Add a getloadavg() declaration to <stdlib.h>.
10619 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
10620 getloadavg declaration.
10621 (getloadavg): New declaration.
10622 * lib/getloadavg.c: Include <stdlib.h> first.
10623 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
10624 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
10625 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
10626 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
10627 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
10628 * modules/getloadavg (Depends-on): Add stdlib, extensions.
10629 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10630 (Include): Specify <stdlib.h>.
10631 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
10632 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
10634 2008-10-18 Bruno Haible <bruno@clisp.org>
10636 * lib/dirchownmod.c: Don't include lchmod.h.
10638 Move the lchmod() declaration to <sys/stat.h>.
10639 * lib/lchmod.h: Remove file.
10640 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
10641 (lchmod): New declaration, moved here from lib/lchown.h.
10642 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
10643 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
10644 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
10646 * modules/lchmod (Files): Remove lib/lchmod.h.
10647 (Depends-on): Add sys_stat, extensions.
10648 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
10649 (Include): Specify <sys/stat.h> instead of lchmod.h.
10650 * modules/sys_stat (Depends-on): Add link-warning.
10651 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
10652 definition of GL_LINK_WARNING.
10653 * NEWS: Mention the change.
10655 2008-10-18 Bruno Haible <bruno@clisp.org>
10657 * lib/fchdir.c: Don't include dirfd.h.
10658 * lib/fts.c: Likewise.
10659 * lib/getcwd.c: Likewise.
10660 * lib/glob.c: Likewise.
10662 Move the dirfd() declaration to <dirent.h>.
10663 * lib/dirfd.h: Remove file.
10664 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
10665 (dirfd): New declaration.
10666 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
10667 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
10668 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
10670 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
10672 * modules/dirfd (Files): Remove lib/dirfd.h.
10673 (Depends-on): Add dirent, extensions.
10674 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
10675 (Include): Specify <dirent.h> instead of dirfd.h.
10676 * modules/dirent (Depends-on): Add link-warning.
10677 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
10678 definition of GL_LINK_WARNING.
10679 * NEWS: Mention the change.
10681 2008-10-18 Bruno Haible <bruno@clisp.org>
10683 Move the euidaccess() declaration to <unistd.h>.
10684 * lib/euidaccess.h: Remove file.
10685 * lib/unistd.in.h (euidaccess): New declaration.
10686 * lib/euidaccess.c: Don't include euidaccess.h.
10687 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
10688 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
10689 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
10690 and HAVE_EUIDACCESS.
10691 * modules/euidaccess (Files): Remove lib/euidaccess.h.
10692 (Depends-on): Add unistd.
10693 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10694 (Include): Specify <unistd.h> instead of euidaccess.h.
10695 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
10697 * NEWS: Mention the change.
10699 2008-10-18 Bruno Haible <bruno@clisp.org>
10701 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
10703 Move the getdomainname() declaration to <unistd.h>.
10704 * lib/getdomainname.h: Remove file.
10705 * lib/unistd.in.h (getdomainname): New declaration.
10706 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
10707 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
10708 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
10709 HAVE_GETDOMAINNAME.
10710 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10711 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
10712 * modules/getdomainname (Files): Remove lib/getdomainname.h.
10713 (Depends-on): Add unistd, extensions.
10714 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
10715 (Includes): Specify <unistd.h> instead of getdomainname.h.
10716 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
10717 HAVE_GETDOMAINNAME.
10718 * NEWS: Mention the change.
10720 2008-10-18 Bruno Haible <bruno@clisp.org>
10722 * modules/dirent: New file.
10723 * m4/dirent_h.m4: New file.
10724 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
10725 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
10726 * modules/fchdir (Files): Remove lib/dirent.in.h.
10727 (Depends-on): Add dirent.
10728 (Makefile.am): Move rules to modules/dirent.
10729 * doc/posix-headers/dirent.texi: Mention the new module.
10731 2008-10-18 Bruno Haible <bruno@clisp.org>
10733 Avoid -Wunused-parameter warnings in public gnulib header files.
10734 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
10736 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
10738 2008-10-18 Bruno Haible <bruno@clisp.org>
10740 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
10741 * doc/glibc-functions/error.texi: Mention the module 'error'.
10742 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
10743 * doc/glibc-functions/getdomainname.texi: Mention the module
10745 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
10746 * doc/glibc-functions/getpagesize.texi: Mention the module
10748 * doc/glibc-functions/getusershell.texi: Mention the module
10750 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
10751 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
10752 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
10753 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
10754 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
10755 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
10756 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
10757 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
10758 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
10759 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
10760 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
10761 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
10762 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
10763 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
10765 2008-10-17 Bruno Haible <bruno@clisp.org>
10767 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
10768 HP-UX and IRIX, use -0.0L.
10769 * tests/test-ceill.c (minus_zero): Likewise.
10770 * tests/test-floorl.c (minus_zero): Likewise.
10771 * tests/test-frexpl.c (minus_zero): Likewise.
10772 * tests/test-isnan.c (minus_zerol): Likewise.
10773 * tests/test-isnanl.h (minus_zero): Likewise.
10774 * tests/test-ldexpl.c (minus_zero): Likewise.
10775 * tests/test-roundl.c (minus_zero): Likewise.
10776 * tests/test-signbit.c (minus_zerol): Likewise.
10777 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
10778 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
10779 * tests/test-truncl.c (minus_zero): Likewise.
10780 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
10781 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
10782 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
10783 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
10785 2008-10-17 Bruno Haible <bruno@clisp.org>
10787 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
10788 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
10789 that it gets activated only for gcc >= 3.0.
10790 * lib/dirent.in.h: Likewise.
10791 * lib/errno.in.h: Likewise.
10792 * lib/fcntl.in.h: Likewise.
10793 * lib/float.in.h: Likewise.
10794 * lib/iconv.in.h: Likewise.
10795 * lib/inttypes.in.h: Likewise.
10796 * lib/locale.in.h: Likewise.
10797 * lib/math.in.h: Likewise.
10798 * lib/netdb.in.h: Likewise.
10799 * lib/netinet_in.in.h: Likewise.
10800 * lib/search.in.h: Likewise.
10801 * lib/signal.in.h: Likewise.
10802 * lib/spawn.in.h: Likewise.
10803 * lib/stdarg.in.h: Likewise.
10804 * lib/stdint.in.h: Likewise.
10805 * lib/stdio.in.h: Likewise.
10806 * lib/stdlib.in.h: Likewise.
10807 * lib/string.in.h: Likewise.
10808 * lib/strings.in.h: Likewise.
10809 * lib/sys_file.in.h: Likewise.
10810 * lib/sys_ioctl.in.h: Likewise.
10811 * lib/sys_select.in.h: Likewise.
10812 * lib/sys_socket.in.h: Likewise.
10813 * lib/sys_stat.in.h: Likewise.
10814 * lib/sys_time.in.h: Likewise.
10815 * lib/sysexits.in.h: Likewise.
10816 * lib/time.in.h: Likewise.
10817 * lib/unistd.in.h: Likewise.
10818 * lib/wchar.in.h: Likewise.
10819 * lib/wctype.in.h: Likewise.
10820 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10822 2008-10-17 Jim Meyering <meyering@redhat.com>
10824 ignore-value: don't depend on inline module
10825 * modules/ignore-value (Depends-on): Remove 'inline'.
10826 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
10827 Suggestion from Bruno Haible.
10829 2008-10-17 Bruno Haible <bruno@clisp.org>
10831 New implementation of condition variables for Win32.
10832 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
10833 (gl_linked_waitqueue_t): New type.
10834 (gl_cond_t): Use it.
10835 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
10836 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
10837 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
10838 (glthread_cond_init_func, glthread_cond_wait_func,
10839 glthread_cond_timedwait_func, glthread_cond_signal_func,
10840 glthread_cond_broadcast_func, glthread_cond_destroy_func):
10841 Reimplemented on the basis of gl_linked_waitqueue_t.
10842 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
10844 (gl_rwlock_t): Update.
10845 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
10847 2008-10-17 Simon Josefsson <simon@josefsson.org>
10849 * modules/recvfrom (Depends-on): Add dependency on getpeername.
10850 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
10852 2008-10-17 Jim Meyering <meyering@redhat.com>
10854 ignore-value: new module
10855 * modules/ignore-value: New file.
10856 * lib/ignore-value.h: New file.
10857 * MODULES.html.sh (Compiler warning management): New section,
10858 just for this module. More to come.
10860 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
10862 open-safer.c: avoid 'signed and unsigned in conditional...' warning
10863 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
10864 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
10866 2008-10-16 Jim Meyering <meyering@redhat.com>
10868 openat-die.c: avoid 'no previous prototype' warning
10869 * lib/openat-die.c: Include "openat.h".
10870 Reported by Reuben Thomas <rrt@sc3d.org>.
10872 2008-10-16 Simon Josefsson <simon@josefsson.org>
10874 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
10875 * lib/netdb.in.h: Fix typo.
10876 Reported by Bruno Haible <bruno@clisp.org>
10878 * lib/netdb.in.h: Include sys/socket.h for platforms without
10879 netdb.h, to get structures like hostent on MinGW.
10880 * modules/netdb (Depends-on): Add sys_socket.
10882 2008-10-15 Simon Josefsson <simon@josefsson.org>
10884 * modules/netdb, modules/netdb-tests: New file.
10885 * m4/netdb_h.m4: New file.
10886 * lib/netdb.in.h: Add, currently just an empty file pending
10888 * tests/test-netdb.c: New file.
10889 * doc/posix-headers/netdb.texi: Mention that we replace it if
10891 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10894 2008-10-15 Simon Josefsson <simon@josefsson.org>
10896 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
10899 2008-10-13 Bruno Haible <bruno@clisp.org>
10901 * lib/glthread/cond.c (glthread_cond_wait_func,
10902 glthread_cond_timedwait_func): Add a comment.
10904 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
10906 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
10907 * tests/test-select.c: Likewise,
10909 2008-10-13 Bruno Haible <bruno@clisp.org>
10911 * lib/glthread/cond.c (glthread_cond_wait_func,
10912 glthread_cond_timedwait_func): Fix variable name.
10913 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
10915 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
10917 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
10918 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
10919 struct sockaddr.sa_len.
10920 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
10922 2008-10-13 Simon Josefsson <simon@josefsson.org>
10924 * build-aux/pmccabe2html: Add css and css_url parameters.
10926 2008-10-12 Bruno Haible <bruno@clisp.org>
10928 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
10930 Reported by Rainer Tammer <tammer@tammer.net>.
10932 2008-10-12 Bruno Haible <bruno@clisp.org>
10934 Use msvcrt aware primitives for creation/termination of Win32 threads.
10935 * lib/glthread/thread.c: Include <process.h>.
10936 (glthread_create_func): Use _beginthreadex instead of CreateThread.
10937 (wrapper_func): Update signature.
10938 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
10940 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
10941 Bruno Haible <bruno@clisp.org>
10943 Provide a Win32 implementation of the 'cond' module.
10944 * lib/glthread/cond.h [USE_WIN32]: New implementation.
10945 * lib/glthread/cond.c (glthread_cond_init_func,
10946 glthread_cond_wait_func, glthread_cond_timedwait_func,
10947 glthread_cond_signal_func, glthread_cond_broadcast_func,
10948 glthread_cond_destroy_func) [USE_WIN32]: New functions.
10949 * modules/cond (Dependencies): Add gettimeofday.
10951 2008-10-11 Bruno Haible <bruno@clisp.org>
10953 Make sleep work on older versions of mingw.
10954 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
10955 only whether it exists.
10956 * doc/posix-functions/sleep.texi: Mention the problem with older
10959 2008-10-11 Bruno Haible <bruno@clisp.org>
10961 New module 'shutdown'.
10962 * modules/shutdown: New file.
10963 * lib/sys_socket.in.h (shutdown): New declaration.
10964 * lib/winsock.c (shutdown): New function.
10965 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
10967 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
10968 * doc/posix-functions/shutdown.texi: Document the new module.
10970 2008-10-11 Jim Meyering <meyering@redhat.com>
10972 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
10974 2008-10-11 Bruno Haible <bruno@clisp.org>
10976 New module 'fclose'.
10977 * modules/fclose: New file.
10978 * lib/stdio.in.h (fclose): New declaration.
10979 * lib/fclose.c: New file.
10980 * m4/fclose.m4: New file.
10981 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
10983 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
10984 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
10986 * modules/close (Depends-on): fclose.
10987 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
10989 2008-10-11 Bruno Haible <bruno@clisp.org>
10991 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
10992 set errno and don't call _close.
10994 2008-10-10 Bruno Haible <bruno@clisp.org>
10996 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
10997 ACL, not afterwards. Fixes test failure on Cygwin.
10999 2008-10-09 Ben Pfaff <blp@gnu.org>
11001 * build-aux/announce-gen: Fix gnulib version related part of usage
11002 message. Die with a useful error message if no tarballs are
11005 2008-10-10 Jim Meyering <meyering@redhat.com>
11007 bootstrap: use git's --depth=N option only if it's supported
11008 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
11009 recognize the --depth option. Reported by Pádraig Brady.
11011 2008-10-09 Bruno Haible <bruno@clisp.org>
11013 New module 'ioctl'.
11014 * modules/ioctl: New file.
11015 * lib/sys_socket.in.h (ioctl): Remove declaration.
11016 * lib/winsock.c: Include <sys/ioctl.h>.
11017 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
11018 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
11019 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
11020 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
11021 * doc/posix-functions/ioctl.texi: Mention the new module.
11023 2008-10-09 Bruno Haible <bruno@clisp.org>
11025 New module 'sys_ioctl'.
11026 * lib/sys_ioctl.in.h: New file.
11027 * m4/sys_ioctl_h.m4: New file.
11028 * modules/sys_ioctl: New file.
11029 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
11031 2008-10-09 Bruno Haible <bruno@clisp.org>
11033 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
11034 * lib/winsock.c: Include <stdarg.h>.
11035 (rpl_ioctl): Change to second argument 'int' and then varargs.
11037 2008-10-09 Bruno Haible <bruno@clisp.org>
11039 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
11040 when the sys_socket module is present and the system has <winsock2.h>.
11042 2008-10-09 Bruno Haible <bruno@clisp.org>
11044 * doc/posix-functions/close.texi: Mention module 'close' instead of
11045 module 'sys_socket'.
11047 2008-10-09 Bruno Haible <bruno@clisp.org>
11049 * doc/glibc-headers/sys_ioctl.texi: New file.
11050 * doc/gnulib.texi: Include it.
11052 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
11053 Bruno Haible <bruno@clisp.org>
11055 Combine the two replacements of 'close'.
11056 * lib/sys_socket.in.h (close): Define to a reminder to include
11058 (_gl_close_fd_maybe_socket): New declaration.
11059 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
11060 * lib/winsock.c (close): Remove undefinition.
11061 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
11062 needed for the gnulib module 'close'.
11063 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
11064 define to an error symbol or to a warning, if suitable.
11065 * lib/close.c: Include <sys/socket.h>.
11066 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
11067 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
11068 UNISTD_H_HAVE_WINSOCK2_H.
11069 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
11070 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11071 UNISTD_H_HAVE_WINSOCK2_H.
11072 * modules/sys_socket (Files): Add m4/unistd_h.m4.
11073 (configure.ac): Set a module indicator.
11074 (Makefile.am): Substitute GNULIB_CLOSE.
11075 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
11076 * modules/poll-tests (Depends-on): Add close.
11077 * modules/select-tests (Depends-on): Likewise.
11079 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
11080 Bruno Haible <bruno@clisp.org>
11082 New module 'close'.
11083 * modules/close: New file.
11084 * lib/unistd.in.h (close): Move declaration out of the
11085 FCHDIR_REPLACEMENT scope.
11086 (_gl_unregister_fd): New declaration.
11087 * lib/close.c: New file.
11088 * lib/fchdir.c (rpl_close): Remove function.
11089 * m4/close.m4: New file.
11090 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
11092 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
11094 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
11096 * modules/fchdir (Depends-on): Add close.
11098 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
11099 Bruno Haible <bruno@clisp.org>
11101 * lib/fcntl.in.h (open): Simplify conditionals.
11102 (_gl_register_fd): New declaration.
11103 * lib/fchdir.c (rpl_open): Remove function.
11104 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
11106 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
11107 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
11110 2008-10-09 Jim Meyering <meyering@redhat.com>
11112 GNUmakefile: use the more name-space-friendly "_version"
11113 * top/GNUmakefile (_dummy): Update.
11114 (_version): Rename from "version".
11116 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
11117 Bruno Haible <bruno@clisp.org>
11119 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
11121 (_gl_register_fd): New function, extracted from rpl_open.
11122 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
11123 (rpl_open, rpl_opendir): Use _gl_register_fd.
11125 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
11127 Fix organization of 'open' replacement.
11128 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
11129 (gl_FUNC_OPEN): Use it.
11130 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
11132 2008-10-08 Bruno Haible <bruno@clisp.org>
11134 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
11136 2008-10-08 Simon Josefsson <simon@josefsson.org>
11138 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
11139 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
11142 2008-10-08 Eric Blake <ebb9@byu.net>
11144 GNUmakefile: add 'make version' target
11145 * top/GNUmakefile (_curr-ver): Split version update rules...
11146 (version): ...into a target.
11148 2008-10-07 Bruno Haible <bruno@clisp.org>
11150 Use a more portable replacement expression for -0.0L.
11151 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
11152 instead of -0.0L. Fix m4 quotation.
11154 * tests/test-signbit.c: Include <float.h>.
11155 (minus_zero): New variable.
11156 (test_signbitl): Use minus_zero instead of -zero.
11157 * modules/signbit-tests (Depends-on): Add float.
11159 * tests/test-ceill.c: Include <float.h>.
11160 (zero): Remove variable.
11161 (minus_zero): New variable.
11162 (main): Use minus_zero instead of -zero.
11163 * modules/ceill-tests (Depends-on): Add float.
11165 * tests/test-floorl.c: Include <float.h>.
11166 (zero): Remove variable.
11167 (minus_zero): New variable.
11168 (main): Use minus_zero instead of -zero.
11169 * modules/floorl-tests (Depends-on): Add float.
11171 * tests/test-roundl.c: Include <float.h>.
11172 (zero): Remove variable.
11173 (minus_zero): New variable.
11174 (main): Use minus_zero instead of -zero.
11175 * modules/roundl-tests (Depends-on): Add float.
11177 * tests/test-truncl.c: Include <float.h>.
11178 (zero): Remove variable.
11179 (minus_zero): New variable.
11180 (main): Use minus_zero instead of -zero.
11181 * modules/truncl-tests (Depends-on): Add float.
11183 * tests/test-frexpl.c (zero): Remove variable.
11184 (minus_zero): New variable.
11185 (main): Use minus_zero instead of -zero.
11186 * modules/frexpl-tests (Depends-on): Add float.
11188 * tests/test-isnan.c (zerol): Remove variable.
11189 (minus_zerol): New variable.
11190 (test_long_double): Use minus_zerol instead of -zerol.
11191 * modules/isnan-tests (Depends-on): Add float.
11193 * tests/test-isnanl.h (zero): Remove variable.
11194 (minus_zero): New variable.
11195 (main): Use minus_zero instead of -zero.
11196 * modules/isnanl-nolibm-tests (Depends-on): Add float.
11197 * modules/isnanl-tests (Depends-on): Add float.
11199 * tests/test-ldexpl.c (zero): Remove variable.
11200 (minus_zero): New variable.
11201 (main): Use minus_zero instead of -zero.
11202 * modules/ldexpl-tests (Depends-on): Add float.
11204 * tests/test-snprintf-posix.h (zerol): Remove variable.
11205 (minus_zerol): New variable.
11206 (test_function): Use minus_zerol instead of -zerol.
11207 * modules/snprintf-posix-tests (Depends-on): Add float.
11208 * modules/vsnprintf-posix-tests (Depends-on): Add float.
11210 * tests/test-sprintf-posix.h (zerol): Remove variable.
11211 (minus_zerol): New variable.
11212 (test_function): Use minus_zerol instead of -zerol.
11213 * modules/sprintf-posix-tests (Depends-on): Add float.
11214 * modules/vsprintf-posix-tests (Depends-on): Add float.
11216 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
11217 (minus_zerol): New variable.
11218 (test_function): Use minus_zerol instead of -zerol.
11219 * modules/vasnprintf-posix-tests (Depends-on): Add float.
11221 * tests/test-vasprintf-posix.c (zerol): Remove variable.
11222 (minus_zerol): New variable.
11223 (test_function): Use minus_zerol instead of -zerol.
11224 * modules/vasprintf-posix-tests (Depends-on): Add float.
11226 2008-10-07 Simon Josefsson <simon@josefsson.org>
11228 * MODULES.html.sh (Support for building documentation): Mention
11229 pmccabe2html. Sort entries.
11231 Add pmccabe2html module, from gnupdf.
11232 * build-aux/pmccabe.css: New file.
11233 * build-aux/pmccabe2html: New file.
11234 * m4/pmccabe2html.m4: New file.
11235 * modules/pmccabe2html: New file.
11237 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
11240 * MODULES.html.sh: Add to list of modules.
11241 * lib/flock.c: flock implementation for Windows and Unix systems
11243 * doc/glibc-functions/flock.texi: Update documentation.
11244 * lib/sys_file.in.h: <sys/file.h> header file.
11245 * m4/flock.m4: M4 macros.
11246 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
11247 * modules/flock: flock module.
11248 * modules/flock-tests: flock tests module.
11249 * modules/sys_file: sys/file.h module.
11250 * tests/test-flock.c: test suite for flock.
11252 2008-10-06 Jim Meyering <meyering@redhat.com>
11254 bootstrap: check for LT_INIT more portably still ;-)
11255 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
11256 Spotted by Bruno Haible.
11258 2008-10-06 Eric Blake <ebb9@byu.net>
11260 test-signbit: avoid tripping Irix cc bug on -0.0L
11261 * tests/test-signbit.c (minus_zerol): Delete, and replace with
11262 '-zerol'. This may break on HP-UX/hppa, but at least makes the
11263 entire testsuite consistent and avoids an Irix 6.2 bug.
11265 2008-10-05 Bruno Haible <bruno@clisp.org>
11266 Jim Meyering <jim@meyering.net>
11268 Add an option for ignoring EPIPE during close_stdout.
11269 * lib/closeout.h: Include <stdbool.h>.
11270 (close_stdout_set_ignore_EPIPE): New declaration.
11271 * lib/closeout.c: Include <stdbool.h>.
11272 (ignore_EPIPE): New variable.
11273 (close_stdout_set_ignore_EPIPE): New function.
11274 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
11275 * lib/close-stream.c (close_stream): Mention the possible EPIPE
11277 * modules/closeout (Depends-on): Add stdbool.
11279 2008-10-05 Bruno Haible <bruno@clisp.org>
11281 * modules/accept: New file.
11282 * modules/bind: New file.
11283 * modules/connect: New file.
11284 * modules/getpeername: New file.
11285 * modules/getsockname: New file.
11286 * modules/getsockopt: New file.
11287 * modules/listen: New file.
11288 * modules/recv: New file.
11289 * modules/recvfrom: New file.
11290 * modules/send: New file.
11291 * modules/sendto: New file.
11292 * modules/setsockopt: New file.
11293 * modules/socket: New file.
11294 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
11295 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
11296 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
11297 the particular module is requested. Add a link warning when the
11298 particular module is not requested.
11299 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
11300 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
11301 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
11302 the particular module is requested.
11303 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
11304 gl_SYS_SOCKET_H_DEFAULTS): New macros.
11305 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
11306 * modules/sys_socket (Depends-on): Add link-warning.
11307 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
11308 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
11309 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
11310 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
11312 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
11313 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
11314 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
11315 * doc/posix-functions/getpeername.texi: Mention the new module
11317 * doc/posix-functions/getsockname.texi: Mention the new module
11319 * doc/posix-functions/getsockopt.texi: Mention the new module
11321 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
11322 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
11323 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
11324 * doc/posix-functions/send.texi: Mention the new module 'send'.
11325 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
11326 * doc/posix-functions/setsockopt.texi: Mention the new module
11328 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
11329 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
11330 listen, connect, accept.
11331 * modules/select-tests (Depends-on): Likewise.
11333 2008-10-05 Bruno Haible <bruno@clisp.org>
11335 * lib/winsock.c (strerror): Remove unused #undef.
11336 (rpl_close): Remove unused local variable.
11338 * modules/sys_socket (Depends-on); Add errno.
11340 2008-10-05 Bruno Haible <bruno@clisp.org>
11342 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
11343 (select): Add a link warning when the 'select' module is not used.
11344 * modules/sys_select (Depends-on): Add link-warning.
11345 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
11346 Suggested by Paolo Bonzini.
11348 2008-10-05 Jim Meyering <meyering@redhat.com>
11350 bootstrap: check for LT_INIT more portably
11351 * build-aux/bootstrap: Avoid using grep -E, since it's not
11352 portable enough. Suggestion from Bruno Haible.
11354 2008-10-05 Bruno Haible <bruno@clisp.org>
11356 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
11357 as being fixed by gnulib.
11359 2008-10-05 Bruno Haible <bruno@clisp.org>
11361 * modules/select-tests: New file, mostly copied from
11362 modules/sys_select-tests.
11363 * tests/test-select.c: New file, mostly copied from
11364 tests/test-sys_select.c.
11365 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
11366 * modules/sys_select-tests (Depends-on): Remove all dependencies.
11367 (Makefile.am): Remove test_sys_select_LDADD.
11369 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
11370 to an undefined symbol, for an error message.
11371 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
11372 (gl_SYS_SELECT_H_DEFAULTS): New macro.
11373 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
11374 winsock-select.c here.
11375 * modules/sys_select (Files): Remove lib/winsock-select.c.
11376 (Depends-on): Remove alloca.
11377 (Makefile.am): Substitute GNULIB_SELECT.
11378 * modules/select: New file.
11379 * doc/posix-functions/select.texi: Update.
11381 2008-10-05 Bruno Haible <bruno@clisp.org>
11383 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
11384 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
11385 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
11386 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
11388 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
11389 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
11391 2008-10-05 Bruno Haible <bruno@clisp.org>
11393 * modules/getdtablesize-tests: New file.
11394 * tests/test-getdtablesize.c: New file.
11396 New module 'getdtablesize'.
11397 * lib/unistd.in.h (getdtablesize): New declaration.
11398 * lib/getdtablesize.c: New file.
11399 * m4/getdtablesize.m4: New file.
11400 * modules/getdtablesize: New file.
11401 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11402 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
11403 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
11404 HAVE_GETDTABLESIZE.
11405 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
11407 2008-10-05 Bruno Haible <bruno@clisp.org>
11409 * modules/sched (Makefile.am): Fix typo.
11410 Reported by Simon Josefsson.
11412 2008-10-05 Jim Meyering <meyering@redhat.com>
11414 bootstrap: check for LT_INIT, too
11415 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
11416 are deprecated. Suggestion from Ralf Wildenhues.
11418 2008-10-05 Bruno Haible <bruno@clisp.org>
11420 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
11421 overriding them by ours.
11422 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
11424 2008-10-05 Jim Meyering <meyering@redhat.com>
11426 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
11427 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
11428 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
11430 2008-10-04 Bruno Haible <bruno@clisp.org>
11432 * modules/dup2 (License): Change to LGPLv2+.
11433 * modules/sleep (License): Likewise.
11434 * modules/perror (License): Likewise.
11435 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
11437 * modules/signal (License): Likewise.
11438 * modules/sigprocmask (License): Likewise.
11439 * modules/raise (License): Change to LGPLv2+, with approval by Jim
11442 2008-10-04 Bruno Haible <bruno@clisp.org>
11444 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
11445 Reported by Rainer Tammer <tammer@tammer.net>.
11447 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
11448 Bruno Haible <bruno@clisp.org>
11450 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
11451 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
11452 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
11454 2008-10-03 Kamil Dudka <kdudka@redhat.com>
11456 filevercmp: new module
11457 * lib/filevercmp.h: New function filevercmp comparing version strings.
11458 * lib/filevercmp.c: Implementation of filevercmp function.
11459 * modules/filevercmp: Module metadata.
11460 * tests/test-filevercmp.c: Unit test for new module.
11461 * modules/filevercmp-tests: Unit test metadata.
11462 * MODULES.html.sh: Add filevercmp module.
11464 2008-10-03 Bruno Haible <bruno@clisp.org>
11466 * lib/c-ctype.h: Add comment.
11467 Reported by Jim Meyering.
11469 2008-10-02 Bruno Haible <bruno@clisp.org>
11471 * modules/posix_spawn-internal (Depends-on): Add 'open'.
11473 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
11475 * build-aux/bootstrap: Allow renaming bootstrap, and change the
11476 name of bootstrap.conf accordingly.
11478 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
11480 * build-aux/bootstrap: Install git-merge-changelog configuration
11481 items into .gitconfig if needed.
11483 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
11485 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
11486 git repository, and initialize/update it accordingly.
11488 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
11490 * modules/fsync-tests: New file.
11491 * tests/test-fsync.c: New file.
11493 New module 'fsync'.
11494 * lib/fsync.c: New file.
11495 * m4/fsync.m4: New file.
11496 * modules/fsync: New file.
11497 * lib/unistd.in.h (fsync): New declaration.
11498 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
11499 GNULIB_FSYNC and HAVE_FSYNC.
11500 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
11501 * MODULES.html.sh (posix_functions): Add fsync.
11502 * doc/posix-functions/fsync.texi: Mention the new module.
11504 2008-10-02 Jim Meyering <meyering@redhat.com>
11506 fts.c: sync with similar code from coreutils' remove.c
11507 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
11508 Guard also with "#if defined __linux__", since for now at least,
11509 this code is Linux-kernel-specific.
11511 2008-10-02 Jim Meyering <meyering@redhat.com>
11514 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
11515 Include <sys/vfs.h>, not <sys/statfs.h>.
11517 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
11518 Include <sys/vfs.h>, not <sys/statfs.h>.
11520 2008-10-01 Bruno Haible <bruno@clisp.org>
11522 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
11523 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
11524 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
11525 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
11526 * doc/posix-functions/posix_spawnp.texi: Likewise.
11527 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
11528 whether posix_spawn actually works.
11529 * m4/pipe.m4 (gl_PIPE): Likewise.
11530 * modules/execute (Files): Add m4/posix_spawn.m4.
11531 * modules/pipe (Files): Add m4/posix_spawn.m4.
11532 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
11534 2008-10-01 Jim Meyering <meyering@redhat.com>
11536 remove trailing spaces
11538 * lib/poll.c (poll): Likewise.
11539 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
11540 * lib/winsock.c (rpl_close): Likewise.
11541 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
11542 * modules/yield: Likewise.
11543 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
11544 * tests/test-sys_select.c (connect_to_socket): Likewise.
11546 fts.c: adjust a new interface to be more generally useful
11547 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
11548 (fts_build): Adjust caller.
11550 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11552 * modules/cond-tests: New file.
11553 * tests/test-cond.c: New file.
11555 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11556 Bruno Haible <bruno@clisp.org>
11558 * modules/cond (Dependencies): Add errno, time.
11559 * lib/glthread/cond.h: Include <time.h>.
11560 (gl_cond_define, gl_cond_define_initialized): Use the same definition
11563 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11564 Bruno Haible <bruno@clisp.org>
11566 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
11568 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11569 Bruno Haible <bruno@clisp.org>
11571 * modules/tls-tests (Depends-on): Add thread, yield.
11572 (configure.ac): Remove all checks.
11573 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
11574 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
11575 gl_thread_self): Remove definitions. Include glthread/thread.h and
11576 glthread/yield.h instead.
11577 (test_tls): Pass an additional NULL argument to gl_thread_join.
11579 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
11580 Bruno Haible <bruno@clisp.org>
11582 * modules/lock-tests (Depends-on): Add thread, yield.
11583 (configure.ac): Remove all checks.
11584 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
11585 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
11586 gl_thread_self): Remove definitions. Include glthread/thread.h and
11587 glthread/yield.h instead.
11588 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
11589 additional NULL argument to gl_thread_join.
11591 2008-09-30 Bruno Haible <bruno@clisp.org>
11593 Fix the Win32 implementation of the 'thread' module.
11594 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
11596 (gl_thread_self): Invoke gl_thread_self_func.
11597 (gl_thread_self_func): New declaration.
11598 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
11599 (do_init_self_key, init_self_key): New functions.
11600 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
11601 Remove some fields.
11602 (running_threads, running_lock): Remove variables.
11603 (get_current_thread_handle): New function.
11604 (gl_thread_self_func, wrapper_func, glthread_create_func,
11605 glthread_join_func, gl_thread_exit_func): Largely rewritten and
11608 2008-09-30 Bruno Haible <bruno@clisp.org>
11610 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
11613 2008-09-30 Jim Meyering <meyering@redhat.com>
11615 fts.m4: correct the test for statfs.f_type
11616 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
11617 when checking for statfs.f_type.
11619 2008-09-15 Simon Josefsson <simon@josefsson.org>
11621 tests: avoid some compiler warnings
11622 * tests/test-memchr.c (main): Pass NULL indirectly.
11623 * tests/test-getdate.c (main): Remove unused variable 'ret'.
11625 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
11627 getdate.y: disallow countable dayshifts like "4 yesterday ago"
11628 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
11629 exactly specified dayshifts.
11630 (dayshift): New rule.
11631 (rel): Add dayshift.
11632 (relative_time_table) [tomorrow, yesterday, today, now]:
11633 Use tDAY_SHIFT in place of tDAY_UNIT.
11634 * tests/test-getdate.c: Add tests for now-disallowed countable
11635 dayshifts, e.g., "4 yesterday ago".
11637 2008-09-29 Bruno Haible <bruno@clisp.org>
11639 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
11640 * tests/test-posix_spawn1.in.sh: Renamed from
11641 tests/test-posix_spawn.in.sh.
11642 * tests/test-posix_spawn2.c: New file.
11643 * tests/test-posix_spawn2.in.sh: New file.
11644 * modules/posix_spawnp-tests (Files): Update.
11645 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
11647 2008-09-29 Bruno Haible <bruno@clisp.org>
11649 Propagate effects of putenv/setenv/unsetenv to child processes.
11650 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
11651 * lib/pipe.c (create_pipe): Likewise.
11653 2008-09-29 Bruno Haible <bruno@clisp.org>
11655 Enable use of shell scripts as executables in mingw.
11656 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
11657 run the program as a shell script.
11658 * lib/pipe.c (create_pipe): Likewise.
11659 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
11662 2008-09-29 Eric Blake <ebb9@byu.net>
11664 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
11666 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
11668 * doc/posix-functions/accept.texi: Update mingw problems.
11669 * doc/posix-functions/bind.texi: Update mingw problems.
11670 * doc/posix-functions/close.texi: Update mingw problems.
11671 * doc/posix-functions/connect.texi: Update mingw problems.
11672 * doc/posix-functions/getpeername.texi: Update mingw problems.
11673 * doc/posix-functions/getsockname.texi: Update mingw problems.
11674 * doc/posix-functions/getsockopt.texi: Update mingw problems.
11675 * doc/posix-functions/ioctl.texi: Update mingw problems.
11676 * doc/posix-functions/listen.texi: Update mingw problems.
11677 * doc/posix-functions/recv.texi: Update mingw problems.
11678 * doc/posix-functions/recvfrom.texi: Update mingw problems.
11679 * doc/posix-functions/select.texi: Update mingw problems.
11680 * doc/posix-functions/send.texi: Update mingw problems.
11681 * doc/posix-functions/sendto.texi: Update mingw problems.
11682 * doc/posix-functions/setsockopt.texi: Update mingw problems.
11683 * doc/posix-functions/socket.texi: Update mingw problems.
11685 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
11686 Bruno Haible <bruno@clisp.org>
11688 * lib/sys_select.in.h: Include sys/time.h.
11689 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
11690 * modules/sys_select: Depend on sys_time.
11691 * tests/test-sys_select.c: Test that sys/select.h defines struct
11694 2008-09-29 Bruno Haible <bruno@clisp.org>
11696 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
11697 * lib/sys_select.in.h: Likewise.
11699 2008-09-29 Bruno Haible <bruno@clisp.org>
11701 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
11703 2008-09-29 Bruno Haible <bruno@clisp.org>
11705 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
11706 Set LIBSOCKET instead of augmenting LIBS.
11707 * modules/sockets (Link): New section.
11708 * modules/sockets-tests (test_sockets_LDADD): New variable.
11709 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
11710 * modules/poll-tests (test_poll_LDADD): New variable.
11711 * NEWS: Document the change.
11713 2008-09-29 Bruno Haible <bruno@clisp.org>
11715 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
11716 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
11717 ARPA_INET_H directly.
11718 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
11720 2008-09-28 Bruno Haible <bruno@clisp.org>
11722 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
11723 from gl_HEADER_SYS_SOCKET.
11724 (gl_HEADER_SYS_SOCKET): Invoke it.
11725 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
11727 2008-09-28 Bruno Haible <bruno@clisp.org>
11729 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
11730 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
11731 Needed on OSF/1 4.0.
11733 2008-09-28 Bruno Haible <bruno@clisp.org>
11735 Override open more carefully.
11736 * lib/open.c (orig_open): New function.
11737 (rpl_open): Use orig_open instead of open.
11738 * lib/fcntl.in.h: Add special invocation convention.
11739 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
11740 (gl_FUNC_OPEN): Invoke it.
11742 Override freopen more carefully.
11743 * lib/freopen.c (orig_freopen): New function.
11744 (rpl_freopen): Use orig_freopen instead of freopen.
11745 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
11746 (gl_FUNC_FREOPEN): Invoke it.
11748 Override fopen more carefully.
11749 * lib/fopen.c (orig_fopen): New function.
11750 (rpl_fopen): Use orig_fopen instead of fopen.
11751 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
11752 (gl_FUNC_FOPEN): Invoke it.
11753 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
11755 2008-09-28 Bruno Haible <bruno@clisp.org>
11757 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
11760 2008-09-28 Bruno Haible <bruno@clisp.org>
11762 * tests/test-sigaction.c (handler, main): Disable the check whether
11763 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
11764 glibc systems with LinuxThreads.
11766 2008-09-28 Bruno Haible <bruno@clisp.org>
11768 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
11770 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
11772 * lib/fcntl.in.h (open): Likewise.
11773 Reported by Rainer Tammer <tammer@tammer.net>.
11775 2008-09-28 Bruno Haible <bruno@clisp.org>
11777 * modules/posix_spawnp-tests: New file.
11778 * tests/test-posix_spawn.c: New file.
11779 * tests/test-posix_spawn.in.sh: New file.
11781 New module 'posix_spawnp'.
11782 * modules/posix_spawnp: New file.
11783 * lib/spawnp.c: New file, from GNU libc with modifications.
11784 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
11786 New module 'posix_spawn'.
11787 * modules/posix_spawn: New file.
11788 * lib/spawn.c: New file, from GNU libc with modifications.
11789 * doc/posix-functions/posix_spawn.texi: Mention the new module.
11791 New module 'posix_spawnattr_destroy'.
11792 * modules/posix_spawnattr_destroy: New file.
11793 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
11794 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
11797 New module 'posix_spawnattr_setsigmask'.
11798 * modules/posix_spawnattr_setsigmask: New file.
11799 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
11801 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
11804 New module 'posix_spawnattr_getsigmask'.
11805 * modules/posix_spawnattr_getsigmask: New file.
11806 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
11808 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
11811 New module 'posix_spawnattr_setsigdefault'.
11812 * modules/posix_spawnattr_setsigdefault: New file.
11813 * lib/spawnattr_setdefault.c: New file, from GNU libc with
11815 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
11818 New module 'posix_spawnattr_getsigdefault'.
11819 * modules/posix_spawnattr_getsigdefault: New file.
11820 * lib/spawnattr_getdefault.c: New file, from GNU libc with
11822 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
11825 New module 'posix_spawnattr_setschedpolicy'.
11826 * modules/posix_spawnattr_setschedpolicy: New file.
11827 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
11829 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
11832 New module 'posix_spawnattr_getschedpolicy'.
11833 * modules/posix_spawnattr_getschedpolicy: New file.
11834 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
11836 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
11839 New module 'posix_spawnattr_setschedparam'.
11840 * modules/posix_spawnattr_setschedparam: New file.
11841 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
11843 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
11846 New module 'posix_spawnattr_getschedparam'.
11847 * modules/posix_spawnattr_getschedparam: New file.
11848 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
11850 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
11853 New module 'posix_spawnattr_setpgroup'.
11854 * modules/posix_spawnattr_setpgroup: New file.
11855 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
11857 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
11860 New module 'posix_spawnattr_getpgroup'.
11861 * modules/posix_spawnattr_getpgroup: New file.
11862 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
11864 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
11867 New module 'posix_spawnattr_setflags'.
11868 * modules/posix_spawnattr_setflags: New file.
11869 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
11870 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
11873 New module 'posix_spawnattr_getflags'.
11874 * modules/posix_spawnattr_getflags: New file.
11875 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
11876 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
11879 New module 'posix_spawnattr_init'.
11880 * modules/posix_spawnattr_init: New file.
11881 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
11882 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
11885 New module 'posix_spawn_file_actions_destroy'.
11886 * modules/posix_spawn_file_actions_destroy: New file.
11887 * lib/spawn_faction_destroy.c: New file, from GNU libc with
11889 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
11892 New module 'posix_spawn_file_actions_addopen'.
11893 * modules/posix_spawn_file_actions_addopen: New file.
11894 * lib/spawn_faction_addopen.c: New file, from GNU libc with
11896 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
11899 New module 'posix_spawn_file_actions_adddup2'.
11900 * modules/posix_spawn_file_actions_adddup2: New file.
11901 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
11903 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
11906 New module 'posix_spawn_file_actions_addclose'.
11907 * modules/posix_spawn_file_actions_addclose: New file.
11908 * lib/spawn_faction_addclose.c: New file, from GNU libc with
11910 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
11913 New module 'posix_spawn_file_actions_init'.
11914 * modules/posix_spawn_file_actions_init: New file.
11915 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
11916 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
11919 New module 'posix_spawn-internal'.
11920 * modules/posix_spawn-internal: New file.
11921 * lib/spawn_int.h: New file, from GNU libc with modifications.
11922 * lib/spawni.c: New file, from GNU libc with modifications.
11923 * m4/posix_spawn.m4: New file.
11925 New module 'spawn'.
11926 * modules/spawn: New file.
11927 * lib/spawn.in.h: New file, from GNU libc with modifications.
11928 * m4/spawn_h.m4: New file.
11929 * doc/posix-headers/spawn.texi: Mention the new module.
11931 2008-09-28 Bruno Haible <bruno@clisp.org>
11933 * modules/sched-tests: New file.
11934 * tests/test-sched.c: New file.
11936 New module 'sched'.
11937 * modules/sched: New file.
11938 * lib/sched.in.h: New file.
11939 * m4/sched_h.m4: New file.
11940 * doc/posix-headers/sched.texi: Mention the new module.
11942 2008-09-27 Eric Blake <ebb9@byu.net>
11944 Fix previous patch, and tweak references to $0.
11945 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
11946 (func_version, func_gnulib_dir): Don't call this program
11948 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
11949 with using $0 in function.
11950 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
11951 (func_fatal_error): Reuse the name the user invoked us with.
11953 2008-09-27 Bruno Haible <bruno@clisp.org>
11955 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
11956 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
11957 (gl_ICONV_H): Not here.
11958 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
11959 instead of assigning ICONV_H directly.
11961 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
11962 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
11965 2008-09-27 Bruno Haible <bruno@clisp.org>
11967 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
11968 * modules/arpa_inet (Depends-on): Add link-warning.
11969 (Makefile.am): Insert the definition of GL_LINK-WARNING.
11970 * modules/unistd (Makefile.am): Likewise.
11972 2008-09-26 Bruno Haible <bruno@clisp.org>
11974 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
11976 (func_version): Essentially copied from gnulib-tool.
11977 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
11978 func_readlink): Copied from gnulib-tool.
11980 2008-09-26 Bruno Haible <bruno@clisp.org>
11982 * gnulib-tool (func_version): Change directory to $gnulib_dir before
11983 invoking git-version-gen.
11985 2008-09-26 Bruno Haible <bruno@clisp.org>
11987 * posix-modules: Update to directory names changed on 2008-01-19.
11988 Remove commas in output before splitting into words. No more need to
11989 avoid 'ftruncate' since 2007-02-19.
11991 2008-09-26 Bruno Haible <bruno@clisp.org>
11993 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
11995 2008-09-26 Bruno Haible <bruno@clisp.org>
11997 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
11998 * modules/fwriteerror (Depends-on): Add errno.
12000 2008-09-26 Bruno Haible <bruno@clisp.org>
12002 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
12003 * tests/test-vc-list-files-cvs.sh: Likewise.
12005 2008-09-26 Bruno Haible <bruno@clisp.org>
12007 * doc/posix-headers/sys_resource.texi: Reorder items.
12009 2008-09-26 Jim Meyering <meyering@redhat.com>
12011 fts: tweak inode comparison function
12012 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
12013 inode numbers, as documented.
12015 fts: sort dirent entries on inode number before traversing
12016 This avoids a quadratic, seek-related performance penalty when
12017 operating on a directory containing many entries (measurable at 10k;
12018 3.5 hours at 2 million entries with a cold cache) on certain types
12019 of file systems, including ext3 and ext4, but not tmpfs.
12020 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
12021 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
12022 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
12023 (fs_handles_readdir_ordered_dirents_efficiently): New function.
12024 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
12025 (fts_build): Set the stat.st_ino member from D_INO.
12026 If it is likely to be useful, sort dirent entries on inode number.
12028 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
12029 and the struct statfs.f_type member.
12030 * modules/fts (Depends-on): Add d-ino.
12032 2008-09-26 Bruno Haible <bruno@clisp.org>
12034 * modules/sigpipe-die (Depends-on): Add sigpipe.
12036 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
12037 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
12038 and GNULIB_STDIO_H_SIGPIPE are set.
12039 * lib/stdio-write.c: New file.
12040 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
12041 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
12042 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
12043 REPLACE_STDIO_WRITE_FUNCS.
12044 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
12045 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
12046 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
12047 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
12048 * modules/stdio (Files): Add lib/stdio-write.c.
12049 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
12050 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
12051 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
12052 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
12053 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
12054 REPLACE_FPRINTF_POSIX.
12055 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
12056 REPLACE_PRINTF_POSIX.
12057 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
12058 REPLACE_VFPRINTF_POSIX.
12059 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
12060 REPLACE_VPRINTF_POSIX.
12061 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
12063 * doc/posix-functions/fputc.texi: Likewise.
12064 * doc/posix-functions/fputs.texi: Likewise.
12065 * doc/posix-functions/fwrite.texi: Likewise.
12066 * doc/posix-functions/printf.texi: Likewise.
12067 * doc/posix-functions/putc.texi: Likewise.
12068 * doc/posix-functions/putchar.texi: Likewise.
12069 * doc/posix-functions/puts.texi: Likewise.
12070 * doc/posix-functions/vfprintf.texi: Likewise.
12071 * doc/posix-functions/vprintf.texi: Likewise.
12073 * modules/safe-write (Depends-on): Add write.
12075 * modules/sigpipe-tests: New file.
12076 * tests/test-sigpipe.c: New file.
12077 * tests/test-sigpipe.sh: New file.
12079 * modules/write: New file.
12080 * lib/unistd.in.h: Include <sys/types.h>.
12081 (write): New declaration.
12082 * lib/write.c: New file.
12083 * m4/write.m4: New file.
12084 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12085 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
12086 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
12087 GNULIB_WRITE, REPLACE_WRITE.
12088 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
12089 and the SIGPIPE issue.
12091 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
12092 (raise): New declaration.
12093 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
12094 (ext_signal): New function.
12095 (rpl_raise): New function.
12096 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
12097 GNULIB_SIGNAL_H_SIGPIPE.
12098 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
12099 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
12101 * modules/sigpipe: New file.
12102 * m4/sigpipe.m4: New file.
12104 2008-09-25 Derek Price <derek@ximbiot.com>
12105 Bruno Haible <bruno@clisp.org>
12107 * gnulib-tool (func_import): Report all license incompatibilities, not
12108 just the first one.
12110 2008-09-25 Bruno Haible <bruno@clisp.org>
12112 * gnulib-tool (func_import): When computing the edits, consider not
12113 only the Makefile.ams that exist but also those that will be generated.
12115 2008-09-25 Simon Josefsson <simon@josefsson.org>
12117 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
12118 fixes gnulib-tool --test warning about duplicate dependency.
12120 2008-09-25 Bruno Haible <bruno@clisp.org>
12122 * gnulib-tool: Don't ask the user to perform edits in the generated
12124 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
12125 apply to the Makefile.am being generated.
12126 (func_emit_tests_Makefile_am): Execute edits that apply to the
12127 Makefile.am being generated.
12128 (func_import): Setup list of Makefile.am edits before emitting the
12129 Makefile.ams, not at the end.
12130 (func_create_testdir): Update.
12131 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12133 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12135 * gnulib-tool (func_import): Store the --tests-base option in the
12136 comment in gnulib-cache.m4.
12138 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
12140 * NEWS: Document increased portability that sys_select now provides.
12142 * lib/sys_select.in.h: Install select wrapper.
12143 * lib/sys_socket.in.h: Use more descriptive name when there is no
12145 * lib/winsock-select.c: New.
12146 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
12147 Require gl_HEADER_SYS_SOCKET.
12148 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
12149 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
12150 * tests/test-sys_select.c: Add functional tests.
12152 2008-09-24 Eric Blake <ebb9@byu.net>
12154 open, fopen: close fd leak in last patch
12155 * lib/open.c (rpl_open): Close fd before returning error.
12156 * lib/fopen.c (rpl_fopen): Close fd before returning error.
12157 * doc/posix-functions/open.texi (open): Document that Irix also
12159 * doc/posix-functions/fopen.texi (fopen): Likewise.
12160 Reported by Paolo Bonzini.
12162 2008-09-24 Bruno Haible <bruno@clisp.org>
12164 Ensure that a filename ending in a slash cannot be used to access a
12166 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
12167 to check whether it's really a directory.
12168 * lib/fopen.c: Include fcntl.h, unistd.h.
12169 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
12171 * modules/fopen (Depends-on): Add unistd.
12172 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
12173 * tests/test-fopen.c (main): Likewise.
12174 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
12175 * doc/posix-functions/fopen.texi: Likewise.
12176 Reported by Eric Blake.
12178 2008-09-23 Eric Blake <ebb9@byu.net>
12180 c-stack: avoid compiler optimizations when provoking overflow
12181 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
12182 recursion harder to optimize, to ensure a stack overflow occurs.
12183 * tests/test-c-stack.c (recurse): Likewise.
12184 Borrowed from libsigsegv.
12186 c-stack: work around Irix sigaltstack bug
12187 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
12188 whether sigaltstack uses wrong end of stack_t (copied in part from
12190 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
12191 Irix bug, without requiring an over-allocation.
12192 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
12195 fopen: document mingw bug on directories
12196 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
12197 not allowing a stream visiting a directory, even though reading
12198 from such a stream is not portable.
12200 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
12202 * lib/poll.c: Rewrite.
12203 * modules/poll: Depend on alloca.
12205 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
12207 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
12208 instead define prototypes for a full set of wrappers. Ensure
12209 that Cygwin does not use the compatibility code, which is only
12211 * lib/winsock.c: New.
12212 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
12213 * modules/sys_socket: Add lib/winsock.c.
12215 * modules/poll-tests: Add errno and perror.
12216 * tests/test-poll.c: Use ioctl, not ioctlsocket.
12218 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
12220 * tests/test-poll.c: Downgrade minimum needed Winsock version.
12222 2008-09-23 Bruno Haible <bruno@clisp.org>
12224 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
12225 * doc/glibc-functions/*: Likewise.
12227 2008-09-23 Simon Josefsson <simon@josefsson.org>
12229 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
12232 2008-09-22 Eric Blake <ebb9@byu.net>
12233 Bruno Haible <bruno@clisp.org>
12235 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
12236 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
12237 supply %A but mishandle pseudo-NaN.
12238 Reported by Simon Josefsson.
12240 2008-09-21 Bruno Haible <bruno@clisp.org>
12242 * tests/test-lock.c (main): Tweak skip message.
12243 * tests/test-tls.c (main): Likewise.
12245 2008-09-21 Bruno Haible <bruno@clisp.org>
12247 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
12248 whether 'struct sigaction' has sa_sigaction here...
12249 (gl_PREREQ_SIG_HANDLER_H): ... not here.
12250 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
12252 2008-09-21 Bruno Haible <bruno@clisp.org>
12254 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
12256 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
12257 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
12259 (Support for obsolete systems lacking POSIX:2001): New section.
12260 (String handling <string.h>): Move strdup to the new section.
12261 Suggested by Simon Josefsson and Paolo Bonzini.
12263 2008-09-21 Bruno Haible <bruno@clisp.org>
12265 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
12266 exponents in %e and %g results on 'long double'. Needed for mingw's
12267 improved *printf functions.
12268 * tests/test-vasprintf-posix.c (test_function): Likewise.
12269 * tests/test-snprintf-posix.h (test_function): Likewise.
12270 * tests/test-sprintf-posix.h (test_function): Likewise.
12271 Reported by Eric Blake.
12273 2008-09-21 Bruno Haible <bruno@clisp.org>
12275 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
12276 * tests/test-sprintf-posix.h (test_function): Likewise.
12278 2008-09-21 Bruno Haible <bruno@clisp.org>
12280 * modules/getpass (Depends-on): Add strdup-posix.
12282 New module 'strdup-posix'.
12283 * modules/strdup-posix: New file.
12284 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
12285 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
12286 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
12288 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
12289 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
12290 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12293 * modules/strdup (Depends-on): Remove malloc-posix.
12295 2008-09-20 Bruno Haible <bruno@clisp.org>
12297 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
12300 2008-09-20 Bruno Haible <bruno@clisp.org>
12302 Ensure that wint_t gets defined on IRIX 5.3.
12303 * lib/wchar.in.h (wint_t): Define if not defined by the system.
12304 * lib/wctype.in.h (wint_t): Likewise.
12305 (__wctype_wint_t): Remove type.
12306 (isw*): Use wint_t instead of __wctype_wint_t.
12307 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
12308 * modules/wchar (Files): Add m4/wint_t.m4.
12309 (Makefile.am): Substitute HAVE_WINT_T.
12310 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
12311 * tests/test-wctype.c: Check that wint_t is defined.
12312 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
12313 * doc/posix-headers/wctype.texi: Likewise.
12314 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12316 2008-09-18 Bruno Haible <bruno@clisp.org>
12318 * gnulib-tool (func_exit): Update comment.
12320 2008-09-18 Simon Josefsson <simon@josefsson.org>
12322 * modules/getaddrinfo (Depends-on): Remove strdup, this module
12323 assumes strdup exists and does not depend on strdup to return
12324 ENOMEM on out of memory conditions.
12326 2008-09-18 Bruno Haible <bruno@clisp.org>
12328 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
12329 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
12330 digits for the exponent.
12332 2008-09-18 Jim Meyering <meyering@redhat.com>
12333 Bruno Haible <bruno@clisp.org>
12335 * lib/vasnprintf.c (decimal_point_char): Define also if
12336 NEED_PRINTF_INFINITE_LONG_DOUBLE.
12338 2008-09-16 Bruno Haible <bruno@clisp.org>
12339 and Eric Blake <ebb9@byu.net>
12341 vasnprintf: support Irix 5.3
12342 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
12343 that mishandle long double infinity.
12344 Reported by Tom G. Christensen.
12346 2008-09-16 Bruno Haible <bruno@clisp.org>
12348 * doc/glibc-functions/scandir.texi: Mention the function is missing on
12350 * doc/glibc-functions/alphasort.texi: Likewise.
12351 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
12353 2008-09-16 Jim Meyering <meyering@redhat.com>
12355 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
12356 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
12357 a umask modification leak out of a subshell. Otherwise, the
12358 opensolaris /bin/sh would be accepted and thus cause unwarranted
12359 failures in the coreutils test suite.
12361 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
12363 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
12366 2008-09-16 Jim Meyering <meyering@redhat.com>
12368 avoid spurious test failure when library is built without ACL support
12369 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
12370 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
12371 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
12372 * tests/test-copy-acl.sh: Likewise.
12374 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12376 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
12377 based on character occurrence counts.
12379 2008-09-15 Eric Blake <ebb9@byu.net>
12381 tests: avoid some compiler warnings
12382 * tests/test-memchr.c (main): Pass NULL indirectly.
12383 * tests/test-closein.c (main): Avoid unused variable.
12385 2008-09-15 Bruno Haible <bruno@clisp.org>
12387 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
12388 are missing on OpenBSD 4.0 individually.
12389 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
12391 2008-09-15 Bruno Haible <bruno@clisp.org>
12393 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
12394 * doc/posix-functions/strerror.texi: Mention also Cygwin.
12395 * doc/posix-functions/perror.texi: Likewise.
12396 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
12398 Reported by Eric Blake.
12400 * lib/errno.in.h: Use replacement values >= 2000.
12401 Reported by Eric Blake.
12403 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12405 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
12406 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
12408 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
12409 compareseq was aborted.
12411 2008-09-14 Bruno Haible <bruno@clisp.org>
12413 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
12415 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
12416 (fstrcmp_bounded): Simplify result computation accordingly.
12418 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12420 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
12421 (fstrcmp): Define in terms of fstrcmp_bounded.
12422 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
12423 lower_bound argument.
12424 Return quickly if the result is certainly < lower_bound.
12425 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
12427 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12429 * lib/diffseq.h (EARLY_ABORT): New macro.
12430 (compareseq): Change return type to bool. Return true when EARLY_ABORT
12433 2008-09-14 Bruno Haible <bruno@clisp.org>
12435 * modules/perror-tests: New file.
12436 * tests/test-perror.sh: New file.
12437 * tests/test-perror.c: New file.
12439 New module 'perror'.
12440 * lib/stdio.in.h (perror): New declaration.
12441 * lib/perror.c: New file.
12442 * m4/perror.m4: New file.
12443 * modules/perror: New file.
12444 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
12445 * doc/posix-functions/perror.texi: Mention the perror module.
12446 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
12448 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
12451 2008-09-14 Bruno Haible <bruno@clisp.org>
12453 * modules/stdio (Makefile.am): Reorder to match the order in
12455 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12457 2008-09-13 Bruno Haible <bruno@clisp.org>
12459 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
12461 2008-09-13 Bruno Haible <bruno@clisp.org>
12463 Extend strerror to cover the added errno values.
12464 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
12465 (rpl_strerror): Provide error messages for the added errno values and
12466 for the WSA* values.
12467 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
12468 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
12470 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
12471 * modules/strerror (Depends-on): Add errno.
12472 * doc/posix-functions/strerror.texi: Document the change.
12473 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
12476 2008-09-13 Bruno Haible <bruno@clisp.org>
12478 * modules/EOVERFLOW: Remove file.
12479 * m4/eoverflow.m4: Remove file.
12480 * modules/EOVERFLOW-tests: Remove file.
12481 * tests/test-EOVERFLOW.c: Remove file.
12482 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
12483 * modules/ftell (Depends-on): Likewise.
12484 * modules/getdelim (Depends-on): Likewise.
12485 * modules/getugroups (Depends-on): Likewise.
12486 * modules/poll (Depends-on): Likewise.
12487 * modules/snprintf (Depends-on): Likewise.
12488 * modules/sprintf-posix (Depends-on): Likewise.
12489 * modules/vasnprintf (Depends-on): Likewise.
12490 * modules/vasprintf (Depends-on): Likewise.
12491 * modules/vfprintf-posix (Depends-on): Likewise.
12492 * modules/vsnprintf (Depends-on): Likewise.
12493 * modules/vsprintf-posix (Depends-on): Likewise.
12494 * modules/xvasprintf (Depends-on): Likewise.
12495 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
12496 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
12497 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
12498 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
12499 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
12500 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
12501 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
12502 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
12503 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
12504 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
12505 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
12506 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
12507 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
12508 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
12509 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
12510 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
12511 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
12512 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
12513 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
12514 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
12515 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
12516 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
12517 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
12518 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
12519 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
12520 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
12521 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
12522 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
12523 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
12524 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
12525 * MODULES.html.sh: Remove EOVERFLOW.
12526 * NEWS: Mention the change.
12528 2008-09-13 Bruno Haible <bruno@clisp.org>
12530 * modules/errno-tests: New file.
12531 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
12533 * lib/errno.in.h: New file.
12534 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
12535 * modules/errno: New file.
12536 * doc/posix-headers/errno.texi: Update documentation.
12537 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
12539 2008-09-13 Bruno Haible <bruno@clisp.org>
12541 * tests/test-poll.c: Use #if for native Windows, rather than testing
12544 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12545 Bruno Haible <bruno@clisp.org>
12547 * lib/glob.c: Don't include <pwd.h> on native Windows.
12548 (WINDOWS32): New macro.
12549 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
12551 2008-09-13 Bruno Haible <bruno@clisp.org>
12553 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
12554 (ETIMEDOUT): Remove macro.
12555 (glthread_cond_timedwait_multithreaded): New declaration.
12556 (glthread_cond_timedwait): Use it.
12557 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
12558 (glthread_cond_timedwait_multithreaded): New function.
12560 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
12562 * modules/poll-tests: Do not check for io.h.
12563 * tests/test-poll.c: Check for __MSVCRT__ instead.
12565 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
12567 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
12568 * modules/poll-tests: Add inet_pton, stdbool, sockets.
12569 * tests/test-poll.c: Use them. Use _pipe on Windows.
12571 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
12573 * modules/poll-tests: New.
12574 * tests/test-poll.c: New.
12576 2008-09-12 Eric Blake <ebb9@byu.net>
12578 frexp: test for NetBSD failure on -0.0
12579 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
12580 not all, bugs from NetBSD 3.0 have been fixed.
12581 * doc/posix-functions/frexp.texi (frexp): Document bug.
12582 Reported by Thomas Klausner.
12584 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
12585 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
12587 Reported by Jonathan C. Patschke <jp@centtech.com>.
12589 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12591 * lib/glthread/cond.h: Use dummy implementation also if
12594 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12596 * modules/fnmatch-posix (License): Change to LGPLv2+.
12597 * modules/fnmatch-gnu (License): Likewise.
12599 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12601 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
12603 2008-09-11 Jim Meyering <meyering@redhat.com>
12605 * users.txt: Add gtk-vnc.
12607 2008-09-08 Simon Josefsson <simon@josefsson.org>
12609 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
12612 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
12613 required for 16-bit and 8-bit rotates.
12614 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
12615 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
12616 UINT8_MAX instead of hard-coded constants.
12617 Suggested by Paul Eggert.
12619 2008-09-07 Bruno Haible <bruno@clisp.org>
12621 * tests/test-striconveh.c (main): Check behaviour when converting from
12624 Make striconveh work better with stateful encodings.
12625 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
12626 that iconv does not increment the inptr when returning -1/EINVAL.
12628 2008-09-07 Bruno Haible <bruno@clisp.org>
12630 * build-aux/config.rpath: Update according to libtool-2.2.6.
12631 * build-aux/config.libpath: Likewise.
12633 2008-09-06 Bruno Haible <bruno@clisp.org>
12635 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
12636 * lib/freadptr.c (freadptr): Likewise.
12637 * lib/freadseek.c (freadptrinc): Likewise.
12638 Reported by Simon Josefsson.
12640 2008-09-06 Bruno Haible <bruno@clisp.org>
12642 * modules/freadptr (License): Change to LGPLv2+.
12643 * modules/freadseek (License): Likewise.
12644 Suggested by Eric Blake.
12646 * modules/memchr2 (License): Change to LGPLv2+.
12647 Approved by Eric Blake.
12649 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12650 Bruno Haible <bruno@clisp.org>
12652 Make gnulib-tool work with native 'sed' on AIX.
12653 * gnulib-tool (sed_noop): New variable.
12654 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
12655 func_add_or_update, func_create_testdir): Use it to initialize sed
12657 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12659 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
12660 Bruno Haible <bruno@clisp.org>
12662 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
12663 also works after #include directives.
12665 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
12667 getdate.y: reject an out-of-range timezone value
12668 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
12669 the range [-24...+24]. When specified with only one or two digits,
12670 * tests/test-getdate.c: Tests for the fix.
12671 * doc/getdate.texi: Document this change.
12673 2008-09-03 Bruno Haible <bruno@clisp.org>
12675 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
12677 2008-09-02 Simon Josefsson <simon@josefsson.org>
12679 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
12680 <bruce.korb@gmail.com> with ideas from Ben Pfaff
12681 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
12682 Blake <ebb9@byu.net>.
12684 * tests/test-bitrotate.c: Add more test vectors.
12686 2008-09-02 Eric Blake <ebb9@byu.net>
12688 vasnprintf-posix: handle large precision via %.*d
12689 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
12690 when handling it ourselves.
12691 * tests/test-vasnprintf-posix.c (test_function): Add test.
12692 * tests/test-snprintf-posix.h (test_function): Likewise.
12693 * tests/test-sprintf-posix.h (test_function): Likewise.
12694 * tests/test-vasprintf-posix.c (test_function): Likewise.
12695 Reported by Alain Guibert.
12697 2008-09-01 Eric Blake <ebb9@byu.net>
12699 c-stack: make configure-time check more robust
12700 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
12701 successful sigaction call.
12702 Reported by Tom G. Christensen.
12704 2008-09-01 Bruno Haible <bruno@clisp.org>
12706 New module 'findprog-lgpl'.
12707 * modules/findprog-lgpl: New file.
12708 * lib/findprog-lgpl.c: New file.
12709 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
12710 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
12711 to decide whether to use strdup or xstrdup, concatenated_filename or
12712 xconcatenated_filename.
12714 2008-09-01 Bruno Haible <bruno@clisp.org>
12716 Split module 'concat-filename' into 'concat-filename' (LGPL) and
12717 'xconcat-filename' (GPL).
12718 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
12719 (License): Change to LGPLv2+.
12720 * modules/xconcat-filename: New file.
12721 * lib/concat-filename.h (concatenated_filename): Change specification.
12722 (xconcatenated_filename): New declaration.
12723 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
12724 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
12726 * lib/xconcat-filename.c: New file.
12727 * NEWS: Mention the change.
12728 * lib/findprog.c: Include concat-filename.h, not filename.h.
12729 (find_in_path): Use xconcatenated_filename instead of
12730 concatenated_filename.
12731 * lib/javacomp.c: Include concat-filename.h, not filename.h.
12732 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
12733 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
12734 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
12735 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
12736 instead of concatenated_filename.
12737 * lib/javaexec.c: Include concat-filename.h, not filename.h.
12738 (execute_java_class): Use xconcatenated_filename instead of
12739 concatenated_filename.
12740 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
12741 * modules/javacomp (Depends-on): Likewise.
12742 * modules/javaexec (Depends-on): Likewise.
12744 2008-09-01 Bruno Haible <bruno@clisp.org>
12746 Split module 'filename' into 'filename' and 'concat-filename'.
12747 * modules/filename: Keep only lib/filename.h.
12748 (License): Change to LGPLv2+.
12749 * modules/concat-filename: New file, extracted from modules/filename.
12750 * lib/filename.h (concatenated_filename): Remove declaration.
12751 * lib/concat-filename.h: New file, extracted from lib/filename.h.
12752 * lib/concat-filename.c: Include concat-filename.h.
12753 * NEWS: Mention the change.
12755 2008-09-01 Simon Josefsson <simon@josefsson.org>
12757 * lib/bitrotate.h (rotl8, rotr8): Add.
12759 * modules/bitrotate (configure.ac): Need
12760 AC_REQUIRE([AC_C_INLINE]).
12761 (Description): Mention stdint.h. Reported by Bruno Haible
12764 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
12765 Paolo Bonzini <bonzini@gnu.org>.
12767 2008-08-31 Bruno Haible <bruno@clisp.org>
12769 Assume Solaris specific bi-arch conventions on Solaris systems.
12770 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
12771 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
12772 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
12773 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
12774 like acl_libdirstem.
12775 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
12777 * NEWS: Mention the change.
12778 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
12780 2008-08-31 Jim Meyering <meyering@redhat.com>
12782 * lib/strftime.h: Add comments describing the two added arguments.
12784 remove duplicate #include directives
12785 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
12786 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
12788 2008-08-31 Bruno Haible <bruno@clisp.org>
12790 New module 'sigpipe-die'.
12791 * modules/sigpipe-die: New file.
12792 * lib/sigpipe-die.h: New file.
12793 * lib/sigpipe-die.c: New file.
12794 * MODULES.html.sh (Signal handling): Add sigpipe-die.
12796 2008-08-31 Bruno Haible <bruno@clisp.org>
12798 Don't override previously installed signal handlers.
12799 * lib/fatal-signal.c (saved_sigactions): New variable.
12800 (uninstall_handlers): Reset the signal to the saved handler, not
12801 to SIG_DFL (except when ignored).
12802 (install_handlers): Save the previous handlers.
12804 2008-08-30 Bruno Haible <bruno@clisp.org>
12806 * gnulib-tool (func_reset_sigpipe): New function.
12807 (func_get_automake_snippet, func_modules_transitive_closure,
12808 func_import): Invoke it before a join command that reads from stdin,
12809 to avoid "echo: write error: Broken pipe" error messages on stderr.
12810 Reported by Sam Steingold <sds@gnu.org>.
12812 2008-08-30 Bruno Haible <bruno@clisp.org>
12814 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
12815 Code copied from m4/open.m4.
12816 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
12817 access and the filename ends in a slash. Code copied from lib/open.c.
12818 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
12819 * tests/test-fopen.c (main): Check against bug with trailing slash.
12821 2008-08-29 Bruno Haible <bruno@clisp.org>
12823 Avoid some "gcc -pedantic" warnings.
12824 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
12825 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
12826 * lib/dirent.in.h: Likewise.
12827 * lib/fcntl.in.h: Likewise.
12828 * lib/float.in.h: Likewise.
12829 * lib/iconv.in.h: Likewise.
12830 * lib/inttypes.in.h: Likewise.
12831 * lib/locale.in.h: Likewise.
12832 * lib/math.in.h: Likewise.
12833 * lib/netinet_in.in.h: Likewise.
12834 * lib/search.in.h: Likewise.
12835 * lib/signal.in.h: Likewise.
12836 * lib/stdarg.in.h: Likewise.
12837 * lib/stdint.in.h: Likewise.
12838 * lib/stdio.in.h: Likewise.
12839 * lib/stdlib.in.h: Likewise.
12840 * lib/string.in.h: Likewise.
12841 * lib/strings.in.h: Likewise.
12842 * lib/sys_select.in.h: Likewise.
12843 * lib/sys_socket.in.h: Likewise.
12844 * lib/sys_stat.in.h: Likewise.
12845 * lib/sys_time.in.h: Likewise.
12846 * lib/sysexits.in.h: Likewise.
12847 * lib/time.in.h: Likewise.
12848 * lib/unistd.in.h: Likewise.
12849 * lib/wchar.in.h: Likewise.
12850 * lib/wctype.in.h: Likewise.
12851 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
12852 * modules/fchdir (Makefile.am): Likewise.
12853 * modules/fcntl (Makefile.am): Likewise.
12854 * modules/float (Makefile.am): Likewise.
12855 * modules/iconv_open (Makefile.am): Likewise.
12856 * modules/inttypes (Makefile.am): Likewise.
12857 * modules/locale (Makefile.am): Likewise.
12858 * modules/math (Makefile.am): Likewise.
12859 * modules/netinet_in (Makefile.am): Likewise.
12860 * modules/search (Makefile.am): Likewise.
12861 * modules/signal (Makefile.am): Likewise.
12862 * modules/stdarg (Makefile.am): Likewise.
12863 * modules/stdint (Makefile.am): Likewise.
12864 * modules/stdio (Makefile.am): Likewise.
12865 * modules/stdlib (Makefile.am): Likewise.
12866 * modules/string (Makefile.am): Likewise.
12867 * modules/strings (Makefile.am): Likewise.
12868 * modules/sys_select (Makefile.am): Likewise.
12869 * modules/sys_socket (Makefile.am): Likewise.
12870 * modules/sys_stat (Makefile.am): Likewise.
12871 * modules/sys_time (Makefile.am): Likewise.
12872 * modules/sysexits (Makefile.am): Likewise.
12873 * modules/time (Makefile.am): Likewise.
12874 * modules/unistd (Makefile.am): Likewise.
12875 * modules/wchar (Makefile.am): Likewise.
12876 * modules/wctype (Makefile.am): Likewise.
12877 Reported by Reuben Thomas <rrt@sc3d.org>.
12879 2008-08-29 Bruno Haible <bruno@clisp.org>
12881 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
12884 2008-08-29 Simon Josefsson <simon@josefsson.org>
12886 * MODULES.html.sh (Misc): Add bitrotate.
12888 * modules/bitrotate: New file.
12890 * lib/bitrotate.h: New file.
12892 * modules/bitrotate-tests: New file.
12894 * tests/test-bitrotate.c: New file.
12896 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
12897 on the bitrotate module.
12899 * lib/arctwo.c: Use new bitrotate module.
12901 2008-08-29 Jim Meyering <meyering@redhat.com>
12903 bootstrap: merge changes from coreutils
12904 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
12905 of copied files. Remove a kludge, now that this is fixed.
12906 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
12907 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
12908 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
12910 2008-08-29 Bruno Haible <bruno@clisp.org>
12912 * MODULES.html.sh: Remove --cvs-urls option.
12914 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
12916 maint.mk: adjust to file name change
12917 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
12919 2008-08-28 Jim Meyering <meyering@redhat.com>
12921 * modules/getndelim2 (License): Relicense to LGPLv2+.
12922 Approved by Richard Stallman for the version of 1995, and by
12923 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
12925 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
12927 * lib/getdelim.c (flockfile, funlockfile): Make all of them
12928 dummy if one is not available. Do not touch them if
12929 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
12930 (getc_maybe_unlocked): New.
12931 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
12933 2008-08-26 Eric Blake <ebb9@byu.net>
12935 doc/INSTALL: resync from autoconf
12936 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
12937 (INSTALL_PRELUDE): Delete; this is done more efficiently by
12939 * install.texi [!autoconf]: ...here. Resync from autoconf.
12940 * INSTALL: Regenerate.
12941 * INSTALL.ISO: New file.
12942 * INSTALL.UTF-8: Likewise.
12944 2008-08-26 Jim Meyering <meyering@redhat.com>
12946 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
12947 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
12948 these definitions conditional, so that they may be overridden, too.
12950 2008-08-26 Bruno Haible <bruno@clisp.org>
12952 Generate INSTALL file variants with prettier quotes.
12953 * doc/Makefile (INSTALL_PRELUDE): New macro.
12955 (INSTALL.ISO, INSTALL.UTF-8): New rules.
12957 2008-08-26 Bruno Haible <bruno@clisp.org>
12959 Run makeinfo in an English locale.
12960 * doc/Makefile (MAKEINFO): New variable.
12962 2008-08-26 Bruno Haible <bruno@clisp.org>
12964 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
12965 Suggested by Eric Blake.
12967 2008-08-25 Bruno Haible <bruno@clisp.org>
12969 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
12971 2008-08-25 Eric Blake <ebb9@byu.net>
12973 c-stack: test that stack overflow can be caught
12974 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
12975 that platform allows handling stack overflow; at least OS/2 EMX
12976 has sigaltstack, but crashes before transferring control to
12977 handler on stack overflow.
12978 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
12979 check for HAVE_STACK_OVERFLOW_HANDLING.
12980 Reported by Elbert Pol.
12982 2008-08-25 Bruno Haible <bruno@clisp.org>
12984 * doc/posix-functions/strftime.texi: Fix description of strftime
12987 2008-08-24 Bruno Haible <bruno@clisp.org>
12989 * tests/uniwidth/test-uc_width2.c: New file.
12990 * tests/uniwidth/test-uc_width2.sh: New file.
12991 * modules/uniwidth/width-tests (Files): Add the new files.
12992 (TESTS): Add uniwidth/test-uc_width2.sh.
12993 (TESTS_ENVIRONMENT): New variable.
12994 (check_PROGRAMS): Add test-uc_width2.
12995 (test_uc_width2_SOURCES): New variable.
12997 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
12998 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
13000 Reported by Alexander V. Lukyanov <lav@netis.ru>.
13002 2008-08-22 Eric Blake <ebb9@byu.net>
13004 test-lock, test-tls: mention why a test is skipped
13005 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
13007 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
13009 count-one-bits: relax license
13010 * modules/count-one-bits (License): Relicense to LGPLv2+.
13011 Suggested by Ludovic Courtès, approved by Ben Pfaff.
13013 2008-08-22 Andreas Schwab <schwab@suse.de>
13015 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
13016 Remove spurious space in assignment.
13018 2008-08-21 Simon Josefsson <simon@josefsson.org>
13020 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
13021 Paul Eggert <eggert@CS.UCLA.EDU>.
13023 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
13025 * modules/gettext: Add m4/threadlib.m4.
13027 2008-08-19 Eric Blake <ebb9@byu.net>
13029 test-c-stack: fix compilation failure on FreeBSD 5.0
13030 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
13031 headers before <sys/resource.h>.
13032 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
13034 Reported by Nelson H. F. Beebe.
13036 strverscmp: migrate from "strverscmp.h" to <string.h>
13037 * modules/string (Makefile.am): Add new hooks.
13038 * modules/strverscmp (Files): Remove strverscmp.h.
13039 (Depends-on): Add string.
13040 (configure.ac): Add indicator.
13041 (Include): Mention new header.
13042 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
13044 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
13046 * lib/strverscmp.h: Delete.
13047 * lib/string.in.h (strverscmp): Provide declaration, when needed.
13048 * tests/test-strverscmp.c (includes): Adjust client.
13049 * lib/check-version.c (includes): Likewise.
13050 * NEWS: Document the change.
13052 strverscmp: add unit test
13053 * modules/strverscmp-tests: New file.
13054 * tests/test-strverscmp.c: Likewise.
13056 2008-08-19 Simon Josefsson <simon@josefsson.org>
13058 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
13059 regarding Windows crypto stuff, from Mono.
13061 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
13063 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
13064 if present, for intel RND. Return error on failures.
13066 2008-08-18 Ben Pfaff <blp@gnu.org>
13068 gitlog-to-changelog: give better diagnostic for failed pipe-open
13069 * build-aux/gitlog-to-changelog: Improve error message: suggest
13070 that the version of Git may be too old.
13072 2008-08-18 Simon Josefsson <simon@josefsson.org>
13074 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
13075 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
13077 2008-08-18 Bruno Haible <bruno@clisp.org>
13079 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
13082 2008-08-18 Bruno Haible <bruno@clisp.org>
13084 * lib/glthread/threadlib.c: Include <pthread.h>.
13086 2008-08-18 Bruno Haible <bruno@clisp.org>
13088 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
13089 glthread_recursive_lock_* macros.
13090 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
13093 2008-08-18 Bruno Haible <bruno@clisp.org>
13095 * lib/glthread/thread.c: Avoid forcing a context switch right after
13098 2008-08-17 Bruno Haible <bruno@clisp.org>
13100 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
13101 * lib/glthread/thread.h: Provide Win32 specific implementation.
13102 * modules/thread (Files): Add lib/glthread/thread.c.
13103 (Depends-on): Add lock.
13104 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
13106 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13108 New module 'yield'.
13109 * modules/yield: New file.
13110 * lib/glthread/yield.h: New file.
13111 * m4/yield.m4: New file.
13112 * MODULES.html.sh (Multithreading): Add yield.
13114 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13116 New module 'thread'.
13117 * modules/thread: New file.
13118 * lib/glthread/thread.h: New file.
13119 * m4/thread.m4: New file.
13120 * MODULES.html.sh (Multithreading): Add thread.
13122 2008-08-17 Bruno Haible <bruno@clisp.org>
13124 * lib/glthread/lock.h: Include <stdlib.h> always.
13125 * lib/glthread/tls.h: Likewise.
13126 * lib/glthread/cond.h: Likewise.
13128 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
13131 * modules/cond: New file.
13132 * lib/glthread/cond.h: New file.
13133 * lib/glthread/cond.c: New file.
13134 * m4/cond.m4: New file.
13135 * MODULES.html.sh (Multithreading): Add cond.
13137 2008-08-16 Eric Blake <ebb9@byu.net>
13139 c-stack: fix regression on Irix 5.3 from 2008-06-21
13140 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
13142 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
13143 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
13144 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
13145 * modules/signal (Makefile.am): Use the value.
13146 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
13147 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
13148 * doc/posix-headers/signal.texi (signal.h): Document this
13150 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
13151 Reported by Tom G. Christensen.
13153 2008-08-17 Bruno Haible <bruno@clisp.org>
13155 New module 'threadlib'.
13156 * modules/threadlib: New file.
13157 * lib/glthread/threadlib.c: New file, extracted from
13158 lib/glthread/lock.c.
13159 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
13161 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
13162 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
13163 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
13165 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
13166 (gl_DISABLE_THREADS): Remove macro.
13167 * modules/lock (Files): Remove build-aux/config.rpath.
13168 (Depends-on): Remove havelib. Add threadlib.
13169 (configure.ac-early): Remove section.
13170 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
13171 * modules/tls (Depends-on): Remove lock. Add threadlib.
13172 (Link): New section, copied from threadlib.
13173 * MODULES.html.sh (Multithreading): Add threadlib.
13175 2008-08-14 Bruno Haible <bruno@clisp.org>
13177 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
13178 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
13179 glthread_rwlock_unlock, glthread_rwlock_destroy,
13180 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
13181 glthread_recursive_lock_destroy): Define as macros always.
13182 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
13183 glthread_lock_lock.
13184 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
13185 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
13186 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
13187 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
13188 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
13189 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
13190 (glthread_recursive_lock_lock_func): Renamed from
13191 glthread_recursive_lock_lock.
13192 (glthread_recursive_lock_unlock_func): Renamed from
13193 glthread_recursive_lock_unlock.
13194 (glthread_recursive_lock_destroy_func): Renamed from
13195 glthread_recursive_lock_destroy.
13197 2008-08-14 Bruno Haible <bruno@clisp.org>
13199 * lib/glthread/lock.h: Renamed from lib/lock.h.
13200 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
13201 * lib/glthread/tls.h: Renamed from lib/tls.h.
13202 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
13203 * lib/fstrcmp.c: Update includes.
13204 * lib/strsignal.c: Update includes.
13205 * modules/lock (Files, Makefile.am): Update.
13206 (Include): Change to "glthread/lock.h".
13207 * modules/tls (Files, Makefile.am): Update.
13208 (Include): Change to "glthread/tls.h".
13209 * tests/test-lock.c: Update includes.
13210 * tests/test-tls.c: Update includes.
13211 * NEWS: Mention the renamed header files.
13213 2008-08-11 Jim Meyering <meyering@redhat.com>
13215 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
13217 2008-08-11 Eric Blake <ebb9@byu.net>
13219 test-c-stack: avoid C99-ism
13220 * tests/test-c-stack.c (main): Fix whitespace, move declaration
13222 Reported by Alain Guibert.
13224 2008-08-10 Jim Meyering <meyering@redhat.com>
13226 ensure that return value of uinttostr et al are not ignored
13227 * lib/inttostr.h (__GNUC_PREREQ): Define.
13228 (__attribute_warn_unused_result__): Define.
13229 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
13231 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
13233 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
13234 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
13236 2008-08-07 Jim Meyering <meyering@redhat.com>
13238 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
13240 * modules/mkstemp (License): Relicense under LGPLv2+.
13241 * modules/tempname (License): Likewise.
13243 2008-08-06 Bruno Haible <bruno@clisp.org>
13245 * lib/poll.c (poll): Further micro-optimization.
13247 2008-08-06 Jim Meyering <meyering@redhat.com>
13249 inet_pton.c: use locale-independent tolower
13250 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
13251 (inet_pton6): Use c_tolower rather than tolower.
13252 * modules/inet_pton (Depends-on): Add c-ctype.
13254 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
13256 * lib/poll.c (poll): Avoid division when timeout is 0, cache
13257 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
13259 2008-08-06 Jim Meyering <meyering@redhat.com>
13261 * modules/inet_pton (License): Relicense under LGPLv2+.
13263 2008-08-03 Bruno Haible <bruno@clisp.org>
13265 Additional non-aborting API for lock and tls.
13266 * lib/lock.h: Include <errno.h>.
13267 (glthread_lock_init): New macro/function.
13268 (gl_lock_init): Define as wrapper around glthread_lock_init.
13269 (glthread_lock_lock): New macro/function.
13270 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
13271 (glthread_lock_unlock): New macro/function.
13272 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
13273 (glthread_lock_destroy): New macro/function.
13274 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
13275 (glthread_rwlock_init): New macro/function.
13276 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
13277 (glthread_rwlock_rdlock): New macro/function.
13278 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
13279 (glthread_rwlock_wrlock): New macro/function.
13280 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
13281 (glthread_rwlock_unlock): New macro/function.
13282 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
13283 (glthread_rwlock_destroy): New macro/function.
13284 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
13285 (glthread_recursive_lock_init): New macro/function.
13286 (gl_recursive_lock_init): Define as wrapper around
13287 glthread_recursive_lock_init.
13288 (glthread_recursive_lock_lock): New macro/function.
13289 (gl_recursive_lock_lock): Define as wrapper around
13290 glthread_recursive_lock_lock.
13291 (glthread_recursive_lock_unlock): New macro/function.
13292 (gl_recursive_lock_unlock): Define as wrapper around
13293 glthread_recursive_lock_unlock.
13294 (glthread_recursive_lock_destroy): New macro/function.
13295 (gl_recursive_lock_destroy): Define as wrapper around
13296 glthread_recursive_lock_destroy.
13297 (glthread_once): New macro/function.
13298 (gl_once): Define as wrapper around glthread_once.
13299 Update function declarations.
13300 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
13301 glthread_rwlock_init. Return error code.
13302 (glthread_rwlock_rdlock_multithreaded): Renamed from
13303 glthread_rwlock_rdlock. Return error code.
13304 (glthread_rwlock_wrlock_multithreaded): Renamed from
13305 glthread_rwlock_wrlock. Return error code.
13306 (glthread_rwlock_unlock_multithreaded): Renamed from
13307 glthread_rwlock_unlock. Return error code.
13308 (glthread_rwlock_destroy_multithreaded): Renamed from
13309 glthread_rwlock_destroy. Return error code.
13310 (glthread_recursive_lock_init_multithreaded): Renamed from
13311 glthread_recursive_lock_init. Return error code.
13312 (glthread_recursive_lock_lock_multithreaded): Renamed from
13313 glthread_recursive_lock_lock. Return error code.
13314 (glthread_recursive_lock_unlock_multithreaded): Renamed from
13315 glthread_recursive_lock_unlock. Return error code.
13316 (glthread_recursive_lock_destroy_multithreaded): Renamed from
13317 glthread_recursive_lock_destroy. Return error code.
13318 (glthread_once_call): Make static.
13319 (glthread_once_multithreaded): Renamed from glthread_once.
13320 * lib/tls.h: Include <errno.h>.
13321 (glthread_tls_key_init): New macro/function.
13322 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
13323 (glthread_tls_set): New macro/function.
13324 (gl_tls_set): Define as wrapper around glthread_tls_set.
13325 (glthread_tls_key_destroy): New macro/function.
13326 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
13327 Update function declarations.
13328 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
13330 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
13332 2008-08-04 Eric Blake <ebb9@byu.net>
13334 gnumakefile: use space, not TAB, outside of targets
13335 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
13337 2008-08-02 Jim Meyering <meyering@redhat.com>
13339 getdate.y: avoid locale-dependent date parsing failure
13340 In Turkish locales, getdate would fail to recognize keywords
13341 containing a lowercase "i". The solution is not to rely on
13342 locale-sensitive case-conversion.
13343 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
13344 (lookup_word): Use c_toupper in place of toupper.
13345 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
13346 Reported by Vefa Bicakci <bicave@superonline.com> in
13347 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
13348 * modules/getdate (Depends-on): Add c-ctype.
13350 2008-08-02 Bruno Haible <bruno@clisp.org>
13352 * gnulib-tool (func_import): When updating or creating a .gitignore
13353 file, prepend each added line with a slash, and ignore leading slashes
13354 from the existing lines.
13355 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13357 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13359 Portability fix for GNU make 3.79.1.
13360 * top/GNUmakefile: Avoid 'else COND', which older GNU make
13361 versions do not understand.
13363 2008-08-01 Bruno Haible <bruno@clisp.org>
13365 Work around bug of HP-UX 10.20 cc with -0.0 literal.
13366 * tests/test-isnanf.h (zero): New variable.
13367 (main): Avoid literal -0.0f.
13368 * tests/test-isnand.h (zero): New variable.
13369 (main): Avoid literal -0.0.
13370 * tests/test-isnanl.h (zero): New variable.
13371 (main): Avoid literal -0.0L.
13372 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
13373 (test_float, test_double, test_long_double): Avoid literals -0.0f,
13375 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
13376 (test_signbitd): Avoid literal -0.0.
13377 (test_signbitl): Avoid literal -0.0L.
13378 * tests/test-ceilf1.c (zero): New variable.
13379 (main): Avoid literal -0.0f.
13380 * tests/test-ceill.c (zero): New variable.
13381 (main): Avoid literal -0.0L.
13382 * tests/test-floorf1.c (zero): New variable.
13383 (main): Avoid literal -0.0f.
13384 * tests/test-floorl.c (zero): New variable.
13385 (main): Avoid literal -0.0L.
13386 * tests/test-roundf1.c (zero): New variable.
13387 (main): Avoid literal -0.0f.
13388 * tests/test-round1.c (zero): New variable.
13389 (main): Avoid literal -0.0.
13390 * tests/test-roundl.c (zero): New variable.
13391 (main): Avoid literal -0.0L.
13392 * tests/test-truncf1.c (zero): New variable.
13393 (main): Avoid literal -0.0f.
13394 * tests/test-trunc1.c (zero): New variable.
13395 (main): Avoid literal -0.0.
13396 * tests/test-truncl.c (zero): New variable.
13397 (main): Avoid literal -0.0L.
13398 * tests/test-frexp.c (zero): New variable.
13399 (main): Avoid literal -0.0.
13400 * tests/test-frexpl.c (zero): New variable.
13401 (main): Avoid literal -0.0L.
13402 * tests/test-ldexpl.c (zero): New variable.
13403 (main): Avoid literal -0.0L.
13404 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
13405 (zerod, zerol): New variables.
13406 (test_function): Avoid literals -0.0, -0.0L.
13407 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
13408 (zerod, zerol): New variables.
13409 (test_function): Avoid literals -0.0, -0.0L.
13410 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
13411 (zerod, zerol): New variables.
13412 (test_function): Avoid literals -0.0, -0.0L.
13413 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
13414 (zerod, zerol): New variables.
13415 (test_function): Avoid literals -0.0, -0.0L.
13416 * tests/test-strtod.c (zero): New variable.
13417 (main): Avoid literal -0.0.
13418 Reported by Jonathan C. Patschke <jp@centtech.com>.
13420 2008-07-31 Jim Meyering <meyering@redhat.com>
13422 sha256.h: correct definition of SHA224_DIGEST_SIZE
13423 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
13424 Reported by Paulie Pena IV <paulie4@gmail.com>.
13425 Define as 224 / 8, rather than as a literal.
13426 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
13427 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
13428 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
13430 2008-07-31 Bruno Haible <bruno@clisp.org>
13432 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
13433 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
13434 Reported by Jonathan Patschke <jp@centtech.com>.
13436 2008-07-31 Bruno Haible <bruno@clisp.org>
13438 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
13439 Reported by Paolo Bonzini <bonzini@gnu.org>.
13441 2008-07-30 Eric Blake <ebb9@byu.net>
13443 test-strtod: allow compilation without -lm
13444 * tests/test-strtod.c (main): Avoid link dependence on fabs.
13445 Reported by Dennis Clarke <blastwave@gmail.com>.
13447 2008-07-28 Jim Meyering <meyering@redhat.com>
13449 bootstrap: work also when there are no .po files in po/
13450 * build-aux/bootstrap (update_po_files): Complete the change
13451 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
13453 2008-07-27 Jim Meyering <meyering@redhat.com>
13455 * users.txt: Add zile.
13457 2008-07-26 Ben Pfaff <blp@gnu.org>
13459 Add missing dependencies on new m4/exponent[fdl].m4 files.
13460 * modules/isnanf-nolibm: Add m4/exponentf.m4.
13461 * modules/isnand-nolibm: Add m4/exponentd.m4.
13462 * modules/isnanl-nolibm: Add m4/exponentl.m4.
13463 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
13464 m4/isnan[fdl].m4, because the macros actually used moved.
13465 Reported by Jim Meyering.
13467 2008-07-14 Ben Pfaff <blp@gnu.org>
13470 * lib/isinf.c: New file.
13471 * lib/math.in.h: Define isinf macro if we have decided to replace
13473 * m4/isinf.m4: New file.
13474 * m4/math_h.m4: Initialize and substitute variables for isinf
13476 * modules/isinf: New file.
13477 * modules/isinf-tests: New file.
13478 * modules/math: Add substitutions for new module.
13479 * tests/test-isinf.c: New file.
13480 * doc/posix-functions/isinf.texi: Mention new module.
13481 * MODULES.html.sh: Mention new module.
13483 2008-07-14 Ben Pfaff <blp@gnu.org>
13485 Factor out some macros for use by additional modules.
13486 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
13488 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
13490 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
13492 * m4/exponentf.m4: New file.
13493 * m4/exponentd.m4: New file.
13494 * m4/exponentl.m4: New file.
13495 * modules/isnanf: Use new file m4/exponentf.m4.
13496 * modules/isnand: Use new file m4/exponentd.m4.
13497 * modules/isnanl: Use new file m4/exponentl.m4.
13499 2008-07-23 Ulrich Drepper <drepper@redhat.com>
13501 mktime.c: normalize tp->tm_isdst value to -1/0/1.
13502 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
13503 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
13504 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
13506 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
13507 readlink on platforms without PATH_MAX.
13509 2008-07-21 Eric Blake <ebb9@byu.net>
13511 Warn, not fail, on stale version.
13512 * top/GNUmakefile (_curr-ver): Tone down previous patch.
13514 Don't allow installation with stale devel version number.
13515 * top/GNUmakefile (_is-install-target): New macro.
13516 (_curr-ver): Forbid installation with stale version number.
13518 2008-07-20 Bruno Haible <bruno@clisp.org>
13520 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
13522 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
13524 2008-07-20 Bruno Haible <bruno@clisp.org>
13526 * lib/c-stack.h (c_stack_action): Add documentation.
13527 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
13529 2008-07-20 Bruno Haible <bruno@clisp.org>
13531 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
13532 * modules/readlink (License): Likewise.
13534 2008-07-17 Eric Blake <ebb9@byu.net>
13536 * modules/c-stack (Link): Fix typo.
13538 Make c-stack use libsigsegv, when available.
13539 * modules/c-stack (Depends-on): Add libsigsegv.
13540 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
13542 * lib/c-stack.c (SIGSTKSZ): Define fallback.
13543 (segv_handler, overflow_handler, c_stack_action)
13544 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
13545 implementation when libsigsegv is available, but only when using
13546 the library is necessary.
13547 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
13548 comment, explaining why XSI check fails on Linux.
13549 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
13550 * tests/test-c-stack2.sh: Tweak skip message.
13551 * NEWS: Document new link-time requirements.
13553 2008-07-16 Eric Blake <ebb9@byu.net>
13555 c-stack: Expose false positives when not using libsigsegv.
13556 * modules/c-stack-tests (Files): Expand test.
13557 * tests/test-c-stack.c (main): Add means to conditionally trigger
13558 non-overflow SIGSEGV.
13559 * tests/test-c-stack2.sh: New file.
13561 2008-07-14 Bruno Haible <bruno@clisp.org>
13563 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
13564 Reported by Eric Blake.
13566 2008-07-14 Sam Steingold <sds@gnu.org>
13567 Bruno Haible <bruno@clisp.org>
13569 New module libsigsegv.
13570 * modules/libsigsegv: New file.
13571 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
13573 * MODULES.html.sh (Signal handling): New section.
13575 2008-07-14 Bruno Haible <bruno@clisp.org>
13577 * modules/unictype/ctype-* (Description): Add the word "function".
13578 Improves the resulting doc in MODULES.html.
13580 2008-07-12 Ben Pfaff <blp@gnu.org>
13582 Add longlong module.
13583 * modules/longlong: New file.
13585 2008-07-12 Bruno Haible <bruno@clisp.org>
13587 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
13590 2008-07-10 Ben Pfaff <blp@gnu.org>
13593 * doc/posix-functions/isnan.texi: Mention new module.
13594 * lib/math.in.h: Define isnan macro if we have decided to replace
13596 * m4/isnan.m4: New file.
13597 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
13598 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
13600 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
13602 * m4/math_h.m4: Initialize and substitute variables for isnan
13604 * modules/isnan: New file.
13605 * modules/isnan-tests: New file.
13606 * modules/math: Add substitutions for new module.
13607 * tests/test-isnan.c: New file.
13608 * MODULES.html.sh: Mention new module.
13610 2008-07-10 Ben Pfaff <blp@gnu.org>
13613 * lib/isnanf.m4: New file.
13614 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
13615 (gl_HAVE_ISNANF_IN_LIBM): New macro.
13616 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
13617 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
13618 * modules/isnanf: New file.
13619 * modules/isnanf-tests: New file.
13620 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
13622 * tests/test-isnanf-nolibm.c: factored most of its contents into
13623 new file tests/test-isnanf.h.
13624 * tests/test-isnanf.h: New file.
13625 * tests/test-isnanf.c: New file.
13626 * MODULES.html.sh: Mention new module.
13627 * doc/glibc-functions/isnanf.texi: Mention new module.
13629 2008-07-10 Ben Pfaff <blp@gnu.org>
13632 * lib/isnand.h: New file.
13633 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
13634 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
13635 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
13636 functionality also.
13637 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
13638 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
13639 (gl_HAVE_ISNAND_IN_LIBM): New macro.
13640 * modules/isnand: New file.
13641 * modules/isnand-tests: New file.
13642 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
13644 * tests/test-isnand-nolibm.c: factored most of its contents into
13645 new file tests/test-isnand.h.
13646 * tests/test-isnand.h: New file.
13647 * tests/test-isnand.c: New file.
13648 * MODULES.html.sh: Mention new module.
13650 2008-07-10 Ben Pfaff <blp@gnu.org>
13652 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
13653 * lib/isnand.h: Rename lib/isnand-nolibm.h.
13654 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
13655 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
13656 * modules/isnanf-nolibm: Update references to renamed files.
13657 * modules/isnand-nolibm: Likewise.
13658 * modules/isnanf-nolibm-tests: Likewise.
13659 * modules/isnand-nolibm-tests: Likewise.
13660 * lib/frexp.c: Likewise.
13661 * lib/isfinite.c: Likewise.
13662 * lib/signbitd.c: Likewise.
13663 * lib/signbitf.c: Likewise.
13664 * lib/vasnprintf.c: Likewise.
13665 * tests/test-ceilf1.c: Likewise.
13666 * tests/test-ceilf2.c: Likewise.
13667 * tests/test-floorf1.c: Likewise.
13668 * tests/test-floorf2.c: Likewise.
13669 * tests/test-frexp.c: Likewise.
13670 * tests/test-round1.c: Likewise.
13671 * tests/test-round2.c: Likewise.
13672 * tests/test-roundf1.c: Likewise.
13673 * tests/test-strtod.c: Likewise.
13674 * tests/test-trunc1.c: Likewise.
13675 * tests/test-trunc2.c: Likewise.
13676 * tests/test-truncf1.c: Likewise.
13677 * tests/test-truncf2.c: Likewise.
13678 * NEWS: Mention the renamed header files.
13680 2008-07-11 Jim Meyering <meyering@redhat.com>
13682 vc-list-files: make the last-resort awk code more portable
13683 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
13684 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
13685 does not support it.
13687 2008-07-10 Eric Blake <ebb9@byu.net>
13689 Work with tar's bootstrap.
13690 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
13691 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
13694 2008-07-09 Jim Meyering <meyering@redhat.com>
13696 posix-shell.m4: fix typo that made this test malfunction
13697 * m4/posix-shell.m4: Remove capitalization in variable name.
13699 2008-07-08 Bruno Haible <bruno@clisp.org>
13701 * m4/onceonly.m4: Update comments.
13702 Reported by Ben Pfaff <blp@cs.stanford.edu>.
13704 2008-07-04 Jim Meyering <meyering@redhat.com>
13706 * users.txt: Add vc-dwim.
13707 (bison, coreutils): Use the gitweb URL.
13709 2008-07-03 Jim Meyering <meyering@redhat.com>
13711 * users.txt: Add libffcall. From Sam Steingold.
13713 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
13715 getdate.y: do not ignore TZ with relative day, month or year offset
13716 * lib/getdate.y (get_date): Move the tz-handling block to follow the
13717 relative-date-handling, since otherwise, the latter would clobber the
13718 sole output (an updated Start value) of the tz-handling block.
13719 * tests/test-getdate.c: Tests for the fix
13721 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13723 Recognize 'foo_LIBRARIES += libgnu.a'.
13724 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
13725 makefile snippet has already specified an installation location,
13728 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
13730 getdate.y: factor out common actions
13731 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
13732 Use them in place of open-coded actions.
13734 2008-07-01 Simon Josefsson <simon@josefsson.org>
13736 Add self-test for getdate module.
13737 * modules/getdate-tests: New file.
13738 * tests/test-getdate.c: New file.
13740 2008-06-29 Bruno Haible <bruno@clisp.org>
13742 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
13744 Reported by Sylvain Beucler <beuc@beuc.net>.
13746 2008-06-29 Bruno Haible <bruno@clisp.org>
13748 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
13749 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
13751 2008-06-29 Bruno Haible <bruno@clisp.org>
13753 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
13755 Reported by Sylvain Beucler <beuc@beuc.net>.
13757 2008-06-26 Jim Meyering <meyering@redhat.com>
13759 make several modules depend on the "open" module
13760 This provides slightly increased consistency when opening-for-write
13761 the name of a non-directory spelled with a trailing slash.
13762 * modules/chdir-safer: Likewise.
13763 * modules/chown: Likewise.
13764 * modules/clean-temp: Likewise.
13765 * modules/copy-file: Likewise.
13766 * modules/fchdir: Likewise.
13767 * modules/fcntl-safer: Likewise.
13768 * modules/pipe: Likewise.
13769 * modules/utime: Likewise.
13770 Prompted by Eric Blake and Bruno Haible.
13772 2008-06-24 Andreas Schwab <schwab@suse.de>
13774 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
13775 literals can be used as initializers for global variables.
13777 2008-06-23 Eric Blake <ebb9@byu.net>
13779 Make gnulib-cache.m4 easier to diff.
13780 * gnulib-tool (func_import): Allow newlines when reading cached
13781 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
13783 2008-06-23 Bruno Haible <bruno@clisp.org>
13785 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
13786 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
13787 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
13788 m4/signalblocking.m4.
13789 (gl_PREREQ_SIGACTION): Don't invoke it.
13790 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
13791 gl_PREREQ_SIG_HANDLER_H.
13792 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13793 Don't check for sigaction here.
13795 2008-06-23 Bruno Haible <bruno@clisp.org>
13797 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
13798 (install_handlers): Don't set the SA_RESETHAND flag.
13800 2008-06-23 Bruno Haible <bruno@clisp.org>
13802 * m4/sigaction.m4: Comment fixes.
13803 * lib/signal.in.h: Likewise.
13805 2008-06-23 Eric Blake <ebb9@byu.net>
13808 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
13810 Avoid SA_ namespace.
13811 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
13812 Reported by Ralf Wildenhues.
13814 Avoid test failure due to SA_RESTORER.
13815 * tests/test-sigaction.c (SA_MASK): New macro.
13816 (main): Avoid failing due to extension flags being set.
13817 Reported by Jim Meyering.
13819 Revert use of sig-handler.h in sigprocmask.c.
13820 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
13821 it requires the existence of struct sigaction.
13822 * lib/sigprocmask.c (handler_t): Restore typedef.
13823 (rpl_signal, old_handlers): Use local type.
13825 2008-06-22 Bruno Haible <bruno@clisp.org>
13827 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
13829 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13831 2008-06-22 Bruno Haible <bruno@clisp.org>
13833 * doc/posix-functions/siginterrupt.texi: Move note.
13835 * lib/signal.in.h (SA_RESTART): New macro.
13836 * lib/sigaction.c: Update comment.
13838 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
13840 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
13841 (gl_PREREQ_SIGPROCMASK): Invoke it.
13842 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
13844 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
13846 * lib/sigprocmask.c: Update a comment.
13848 2008-06-21 Eric Blake <ebb9@byu.net>
13850 Use sigaction module rather than signal().
13851 * modules/c-stack (Depends-on): Add sigaction.
13852 * modules/fatal-signal (Depends-on): Likewise.
13853 * modules/nanosleep (Depends-on): Likewise.
13854 * modules/sigprocmask (Files): Add sig-handler.h.
13855 * modules/sigaction (Files): Likewise.
13856 * lib/sig-handler.h (get_handler): New file, suggested by Paul
13858 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
13859 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
13860 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
13861 (init_fatal_signals): Likewise.
13862 * lib/nanosleep.c (rpl_nanosleep): Likewise.
13863 (siginterrupt): Delete fallback.
13864 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
13866 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
13869 New module sigaction, for mingw.
13870 * modules/sigaction: New module...
13871 * modules/sigaction-tests: ...and its test.
13872 * m4/sigaction.m4: New file.
13873 * lib/sigaction.c: Likewise.
13874 * tests/test-sigaction.c: Likewise.
13875 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
13876 * modules/signal (Makefile.am): Likewise.
13877 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
13879 * doc/posix-headers/signal.texi (signal.h): Mention provided
13881 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
13882 that sigaction is preferable.
13883 * doc/posix-functions/sigaction.texi (sigaction): Mention new
13885 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13888 Improve robustness of sigprocmask by overriding signal.
13889 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
13891 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
13892 (SIGKILL, SIGSTOP): Provide fallbacks.
13893 (rpl_signal): Implement.
13894 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
13895 signal can be called inside handlers.
13897 Fix nanosleep module on mingw.
13898 * modules/nanosleep (Depends-on): Add sys_select.
13899 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
13901 Fix licensing of sigprocmask.
13902 * modules/raise (License): Relicense as LGPL.
13904 2008-06-21 Bruno Haible <bruno@clisp.org>
13906 * lib/propername.c (proper_name_utf8): Don't use the transliterated
13907 result if it contains question marks.
13908 Reported by Michael Geng <linux@michaelgeng.de>.
13910 2008-06-19 Bruno Haible <bruno@clisp.org>
13913 * doc/gnulib.texi: Include updated-stamp.texi.
13914 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
13915 (updated-stamp.texi): New rule.
13916 (gnulib.info): Depend on it.
13917 * doc/.gitignore: Add updated-stamp.texi.
13918 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
13920 2008-06-19 Bruno Haible <bruno@clisp.org>
13922 * doc/Makefile (gnulib.info): Update and simplify dependencies.
13923 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
13925 2008-06-19 Eric Blake <ebb9@byu.net>
13927 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
13928 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
13929 Reported by Stepan Kasal.
13931 2008-06-18 Bruno Haible <bruno@clisp.org>
13933 * lib/fatal-signal.c (init_fatal_signals): Add comment.
13934 Reported by Eric Blake.
13936 2008-06-18 Eric Blake <ebb9@byu.net>
13938 Work around cygwin 1.5.25 strsignal bug.
13939 * tests/test-strsignal.c: Allow for const char *.
13940 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
13942 2008-06-18 Simon Josefsson <simon@josefsson.org>
13944 * users.txt: Update URL to article and add author/date
13947 2008-06-17 Bruno Haible <bruno@clisp.org>
13949 New macro gl_DISABLE_THREADS.
13950 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
13951 if the user did not pass --enable-threads or --disable-threads option.
13952 (gl_DISABLE_THREADS): New macro.
13953 Reported by Eric Blake <ebb9@byu.net>.
13955 2008-06-17 Bruno Haible <bruno@clisp.org>
13957 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
13958 when the macro ignores it.
13959 Based on a patch by Eric Blake <ebb9@byu.net>.
13961 2008-06-17 Bruno Haible <bruno@clisp.org>
13963 * modules/tls (License): Change to LGPLv2+.
13964 Reported by Eric Blake.
13966 2008-06-17 Eric Blake <ebb9@byu.net>
13968 Simplify c-stack prerequisites.
13969 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
13970 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
13971 no longer requires <ucontext.h> to exist. Optimize setrlimit
13973 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
13976 Move c-stack test into testsuite.
13977 * modules/c-stack-tests: New file.
13978 * lib/c-stack.c [DEBUG]: Move test program...
13979 * tests/test-c-stack.c: ...into this new file. Skip rather than
13980 fail test if sigaltstack is lacking.
13981 * tests/test-c-stack.sh: New driver file.
13983 2008-06-16 Eric Blake <ebb9@byu.net>
13985 Use raise module consistently.
13986 * modules/fatal-signal (Depends-on): Add raise.
13987 * modules/sigprocmask (Depends-on): Likewise.
13988 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
13989 * lib/sigprocmask.c (sigprocmask): Likewise.
13990 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
13991 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
13993 Fix compliance bug in sigpending.
13994 * lib/sigprocmask.c (sigpending): Return pending array via
13995 parameter, not return value.
13997 2008-06-14 Eric Blake <ebb9@byu.net>
13999 Improve obstack-printf test code.
14000 * tests/test-obstack-printf.c (test_function): Fix comment, and
14001 simplify usage of obstack_* in macros. Add a test for coverage.
14002 Reported by Bruno Haible.
14004 2008-06-14 Bruno Haible <bruno@clisp.org>
14006 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
14007 array size as a constant, not as a const variable.
14008 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
14009 AC_USE_SYSTEM_EXTENSIONS.
14010 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14011 Test whether the obstack_printf function actually exists.
14012 * modules/obstack-printf (Depends-on): Add extensions.
14013 (Include): Remove obstack.h.
14014 * modules/obstack-printf-posix (Depends-on): Add extensions.
14015 (Include): Remove obstack.h.
14017 2008-06-13 Eric Blake <ebb9@byu.net>
14019 Add obstack-printf and obstack-printf-posix modules.
14020 * modules/obstack-printf: New file.
14021 * modules/obstack-printf-posix: Likewise.
14022 * MODULES.html.sh (Misc): Mention them.
14023 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
14025 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
14027 * modules/stdio (Makefile.am): Accomodate new modules.
14028 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14029 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
14031 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
14033 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
14034 (gl_REPLACE_OBSTACK_PRINTF): New macros
14035 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
14036 * tests/test-obstack-printf.c: New file.
14037 * modules/obstack-printf-tests: Likewise.
14038 * modules/obstack-printf-posix-tests: Likewise.
14040 2008-06-11 Bruno Haible <bruno@clisp.org>
14042 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
14043 * lib/open.c: Include errno.h.
14044 (open): Fail when attempting to write to a file that has a trailing
14046 * tests/test-open.c (main): Test against trailing slash bug.
14047 * doc/posix-functions/open.texi: Mention the trailing slash bug.
14049 2008-06-10 Bruno Haible <bruno@clisp.org>
14051 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
14052 for $? to work inside the trap command, with various /bin/sh-s.
14053 * tests/test-vc-list-files-cvs.sh: Likewise.
14055 2008-06-10 Bruno Haible <bruno@clisp.org>
14057 * lib/acl-internal.h: Don't include gettext.h here.
14058 * lib/set-mode-acl.c: Include gettext.h here.
14059 * lib/copy-acl.c: Likewise.
14061 2008-06-10 Bruno Haible <bruno@clisp.org>
14063 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
14064 * lib/wait-process.c (wait_subprocess): Likewise.
14065 * lib/execute.h (execute): Add termsigp argument.
14066 * lib/execute.c (execute): Likewise.
14067 * lib/csharpcomp.c (compile_csharp_using_pnet,
14068 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
14069 * lib/csharpexec.c (execute_csharp_using_pnet,
14070 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
14071 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
14072 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
14073 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
14074 is_jikes_present): Update.
14075 * lib/javaexec.c (execute_java_class): Update.
14076 * lib/javaversion.c (execute_and_read_line): Update.
14077 * NEWS: Document the changes.
14078 Reported by Eric Blake.
14080 2008-06-10 Eric Blake <ebb9@byu.net>
14082 Add missing include.
14083 * tests/test-strstr.c (includes): Add <signal.h>.
14084 * tests/test-strcasestr.c (includes): Likewise.
14085 * tests/test-memmem.c (includes): Likewise.
14087 2008-06-10 Bruno Haible <bruno@clisp.org>
14089 * lib/wait-process.c (wait_subprocess): Add an assertion.
14091 2008-06-10 Bruno Haible <bruno@clisp.org>
14093 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
14095 2008-06-10 Bruno Haible <bruno@clisp.org>
14097 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
14099 * tests/test-strcasestr.c (main): Likewise.
14100 * tests/test-strstr.c (main): Likewise.
14102 2008-06-09 Bruno Haible <bruno@clisp.org>
14104 Work around the Solaris 10 ACE ACLs ABI change.
14105 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
14106 declare if ACL_NO_TRIVIAL is present.
14107 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
14108 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
14109 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
14110 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
14111 define if ACL_NO_TRIVIAL is present.
14112 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
14113 and use the current ABI.
14114 (file_has_acl): Use same #if condition as elsewhere.
14115 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
14116 in use, and use the current ABI.
14117 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
14118 Reported by Jim Meyering.
14120 2008-06-09 Eric Blake <ebb9@byu.net>
14122 Work around environments that (stupidly) ignore SIGALRM.
14123 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
14124 before using alarm().
14125 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14126 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14127 Reported by Ian Beckwith <ianb@erislabs.net>.
14129 Produce autobuild blurb earlier in log.
14130 * modules/autobuild (configure.ac-early): Move AB_INIT here.
14132 2008-06-09 Jim Meyering <meyering@redhat.com>
14133 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
14135 utimens.c: correct kernel bug work-around
14136 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
14137 failure, not success, and the kernel bug we're trying to work
14138 around affects not just the utimensat call, but also the fallback
14140 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
14142 [HAVE_FUTIMENS]: Use the same work-around, here.
14144 2008-06-09 Jim Meyering <meyering@redhat.com>
14146 add more guards around definition of ACE_-related code
14147 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
14148 ALLOW and ACE_OWNER are also defined.
14150 2008-06-08 Bruno Haible <bruno@clisp.org>
14152 * lib/acl-internal.h: Add me as co-author.
14153 * lib/file-has-acl.c: Likewise.
14154 * lib/set-mode-acl.c: Likewise.
14155 * lib/copy-acl.c: Likewise.
14157 2008-06-08 Bruno Haible <bruno@clisp.org>
14159 Add support for AIX ACLs.
14160 * lib/acl-internal.h (acl_nontrivial): New declaration.
14161 * lib/file-has-acl.c (acl_nontrivial): New function.
14162 (file_has_acl): Add implementation using AIX 4 ACL API.
14163 * lib/set-mode-acl.c (qset_acl): Likewise.
14164 * lib/copy-acl.c (qcopy_acl): Likewise.
14166 2008-06-08 Bruno Haible <bruno@clisp.org>
14168 Add support for HP-UX ACLs.
14169 * lib/acl-internal.h (acl_nontrivial): New declaration.
14170 * lib/file-has-acl.c (acl_nontrivial): New function.
14171 (file_has_acl): Add implementation using HP-UX 11 ACL API.
14172 * lib/set-mode-acl.c (qset_acl): Likewise.
14173 * lib/copy-acl.c (qcopy_acl): Likewise.
14175 2008-06-08 Bruno Haible <bruno@clisp.org>
14177 Add support for Cygwin ACLs.
14178 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
14179 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
14180 the chmod_or_fchmod call.
14181 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
14183 2008-06-08 Bruno Haible <bruno@clisp.org>
14185 Fix bug with setuid modes in Solaris 10+ code.
14186 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
14187 succeeded, when the mode contains some special bits.
14189 2008-06-08 Bruno Haible <bruno@clisp.org>
14191 Add support for Solaris 7..10 ACLs.
14192 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
14194 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
14196 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
14197 * lib/set-mode-acl.c (qset_acl): Likewise.
14198 * lib/copy-acl.c (qcopy_acl): Likewise.
14200 2008-06-08 Bruno Haible <bruno@clisp.org>
14202 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
14204 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
14205 (acl_access_nontrivial): Remove MacOS X case.
14206 (file_has_acl): Use acl_extended_nontrivial.
14207 * lib/copy-acl.c (qcopy_acl): Likewise.
14209 2008-06-08 Bruno Haible <bruno@clisp.org>
14211 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
14213 2008-06-08 Jim Meyering <meyering@redhat.com>
14215 * modules/acl (Maintainer): Add Bruno Haible.
14217 2008-06-07 Bruno Haible <bruno@clisp.org>
14219 Improve support for Tru64 ACLs.
14220 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
14223 2008-06-07 Bruno Haible <bruno@clisp.org>
14225 Add support for MacOS X ACLs.
14226 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
14227 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
14228 * lib/set-mode-acl.c (qset_acl): Likewise.
14229 * lib/copy-acl.c (qcopy_acl): Likewise.
14231 2008-06-07 Bruno Haible <bruno@clisp.org>
14233 Fix memory leak introduced on 2008-05-22.
14234 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
14237 2008-06-07 Bruno Haible <bruno@clisp.org>
14239 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
14240 to construct an empty ACL.
14242 2008-06-07 Bruno Haible <bruno@clisp.org>
14244 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
14246 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
14248 2008-06-07 Bruno Haible <bruno@clisp.org>
14250 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
14251 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
14253 2008-06-07 Bruno Haible <bruno@clisp.org>
14255 * doc/posix-functions/_setjmp.texi: Explain the use of this function
14256 regardless of POSIX.
14257 * doc/posix-functions/_longjmp.texi: Likewise.
14258 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
14259 SystemV platform in this case.
14261 2008-06-06 Eric Blake <ebb9@byu.net>
14263 Document abort() bugs.
14264 * doc/posix-functions/abort.texi (abort): Mention anomalies.
14266 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
14267 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
14269 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
14270 siglongjmp, but only as a macro.
14271 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
14273 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
14275 Tweak documentation to cover cygwin argz bugs.
14276 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
14277 argz bug fix; no code change needed since no cygwin releases
14278 occurred between the last fix and the bug being tested.
14279 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
14280 module and recently fixed cygwin bugs.
14281 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
14282 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
14283 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
14284 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
14285 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
14287 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
14288 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
14289 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
14290 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
14291 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
14292 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
14295 Avoid gcc warning on cygwin.
14296 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
14297 !ACL_NO_TRIVIAL]: Avoid unused variable.
14299 2008-06-05 Eric Blake <ebb9@byu.net>
14301 Be tolerant of UNKNOWN version in gnulib-tool test dir.
14302 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
14303 git-version-gen fails to come up with a version.
14304 Reported by Simon Josefsson.
14306 2008-06-05 Jim Meyering <meyering@redhat.com>
14307 Paul Eggert <eggert@cs.ucla.edu>
14309 utimens.c: work around a probable Linux kernel bug
14310 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
14311 appears to be a kernel bug that causes utimensat to return 280
14312 instead of 0, indicating success.
14314 2008-06-04 Bruno Haible <bruno@clisp.org>
14316 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
14319 2008-06-04 Bruno Haible <bruno@clisp.org>
14321 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
14322 * lib/file-has-acl.c (acl_access_nontrivial): New function.
14323 (file_has_acl): Use it. Save errno afterwards.
14324 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
14326 2008-06-03 Bruno Haible <bruno@clisp.org>
14328 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
14329 draft code. Simplify #ifs.
14330 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
14331 Put Solaris code after POSIX-draft code. Fix comments regarding
14332 Solaris 10, HP-UX. Mention Cygwin.
14333 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
14335 2008-06-03 Eric Blake <ebb9@byu.net>
14337 Provide fallback for older kernels.
14338 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
14339 Provide runtime fallback if kernel lacks support.
14340 Reported by Mike Frysinger.
14342 2008-06-02 Bruno Haible <bruno@clisp.org>
14344 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
14347 2008-06-02 Bruno Haible <bruno@clisp.org>
14349 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
14350 * lib/copy-acl.c (qcopy_acl): Update comment.
14352 2008-06-02 Bruno Haible <bruno@clisp.org>
14354 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
14357 2008-06-02 Bruno Haible <bruno@clisp.org>
14359 * tests/test-file-has-acl.sh: Use different code for Cygwin.
14360 * tests/test-set-mode-acl.sh: Likewise.
14361 * tests/test-copy-acl.sh: Likewise.
14362 * tests/test-copy-file.sh: Likewise.
14364 2008-06-02 Bruno Haible <bruno@clisp.org>
14366 * tests/test-file-has-acl.sh: Remove unused code.
14368 2008-06-01 Bruno Haible <bruno@clisp.org>
14370 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
14371 (copy_acl): Just a wrapper around qcopy_acl that emits the error
14373 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
14375 2008-06-01 Bruno Haible <bruno@clisp.org>
14377 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
14378 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
14379 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
14381 * modules/acl-tests (configure.ac): Remove tests now contained in
14384 2008-06-02 Jim Meyering <meyering@redhat.com>
14386 announce-gen: use a better key-server host name
14387 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
14388 it may be more consistently reliable. Suggested by Werner Koch
14389 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
14391 2008-06-01 Bruno Haible <bruno@clisp.org>
14393 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
14394 Reported by Voroskoi Andras <voroskoi@gmail.com>.
14396 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
14398 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
14400 2008-06-01 Bruno Haible <bruno@clisp.org>
14403 * tests/test-file-has-acl.sh: New file.
14404 * tests/test-file-has-acl.c: New file.
14405 * tests/test-set-mode-acl.sh: New file.
14406 * tests/test-set-mode-acl.c: New file.
14407 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
14408 * tests/test-copy-acl.c: New file.
14409 * modules/acl-tests: New file, based on modules/copy-file-tests.
14410 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
14411 (Depends-on): Add acl-tests.
14412 (configure.ac): Remove checks.
14413 (Makefile.am): Don't create test-sameacls program here any more.
14415 2008-06-01 Bruno Haible <bruno@clisp.org>
14417 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
14418 * tests/test-sameacls.c: Include progname.h.
14419 (main): Invoke set_program_name. Portability fixes for MacOS X,
14422 2008-06-01 Bruno Haible <bruno@clisp.org>
14424 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
14426 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
14428 2008-06-01 Bruno Haible <bruno@clisp.org>
14430 * modules/rpmatch (Depends-on): Add strdup.
14432 2008-06-01 Bruno Haible <bruno@clisp.org>
14434 * lib/pipe.c: Include unistd-safer.h.
14435 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
14436 * modules/pipe (Depends-on): Add unistd-safer.
14438 2008-05-30 Simon Josefsson <simon@josefsson.org>
14440 * modules/autobuild (configure.ac): Call AB_INIT.
14442 2008-05-30 Simon Josefsson <simon@josefsson.org>
14444 * tests/test-getaddrinfo.c: Don't print debug messages by default.
14445 Suggested by Bruno Haible <bruno@clisp.org>.
14447 2008-05-30 Simon Josefsson <simon@josefsson.org>
14449 * tests/test-base64.c: Cast size_t to unsigned long when invoking
14450 printf. Use %lu instead of %d. Reported by Bruno Haible
14453 2008-05-29 Eric Blake <ebb9@byu.net>
14455 Prefer new POSIX 200x interfaces over futimesat.
14456 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
14457 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
14459 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
14461 2008-05-28 Bruno Haible <bruno@clisp.org>
14463 * modules/stpcpy (License): Change to LGPLv2+.
14464 Requested by David Lutterkort <dlutter@redhat.com>.
14466 2008-05-27 Bruno Haible <bruno@clisp.org>
14468 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
14470 Reported by Jose E. Marchesi <jemarch@gnu.org>.
14472 2008-05-27 Bruno Haible <bruno@clisp.org>
14474 * modules/iconv_open (Link): New section, from module 'iconv'.
14475 * modules/striconv (Link): Likewise.
14476 * modules/striconveh (Link): Likewise.
14477 * modules/xstriconv (Link): Likewise.
14478 * modules/unicodeio (Link): Likewise.
14479 * modules/propername (Link): Likewise.
14480 Reported by Jim Meyering.
14482 2008-05-26 Jim Meyering <meyering@redhat.com>
14484 sha256: do not artificially restrict buffer length to be < 2^32
14485 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
14486 uint32_t to size_t.
14487 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
14490 avoid unaligned access errors, e.g., on sparc
14491 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
14492 direct access through a possibly-unaligned uint64* pointer.
14493 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
14494 direct access through a possibly-unaligned uint32* pointer.
14495 Prompted by this patch from Tom "spot" Callaway:
14496 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
14498 sha512.c: fix typo in comment
14499 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
14501 2008-05-25 Bruno Haible <bruno@clisp.org>
14503 * lib/set-mode-acl.c: Renamed from lib/acl.c.
14504 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
14505 (Makefile.am): Update lib_SOURCES.
14507 2008-05-25 Bruno Haible <bruno@clisp.org>
14509 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
14511 2008-05-25 Jim Meyering <meyering@redhat.com>
14513 useless-if-before-free: freed expr may have white-space differences
14514 * build-aux/useless-if-before-free: Recognize cases in which the
14515 freed expression differs from the tested one in embedded white
14516 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
14517 $1 was used, so we can't make any regexp shy. Improved tests now
14520 useless-if-before-free: accept white space in the expression.
14521 * build-aux/useless-if-before-free: For now, any white space
14522 in the expression must be identical in the free argument.
14524 useless-if-before-free: efficiency tweak
14525 * build-aux/useless-if-before-free: Make the expression-matching
14527 Make the *outer* regexp shy, not the expr-matching one.
14529 update code-in-comment to accept cast of free arg
14530 * build-aux/useless-if-before-free: Update regexp.
14532 2008-05-25 Bruno Haible <bruno@clisp.org>
14534 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
14535 * modules/copy-file-tests (Files, Makefile.am): Update.
14536 * tests/test-copy-file.c (func_test_copy): Update.
14538 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
14540 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
14542 2008-05-23 Bruno Haible <bruno@clisp.org>
14544 Improve support for ACLs on OSF/1.
14545 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
14546 Remove fallback for unknown flavors of ACLs.
14548 2008-05-22 Bruno Haible <bruno@clisp.org>
14550 Add support for ACLs on OSF/1.
14551 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
14553 (acl_free_text): New macro fallback.
14554 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
14556 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
14557 acl_free_text function. Require AC_C_INLINE.
14559 2008-05-22 Bruno Haible <bruno@clisp.org>
14561 Make copy_acl work on MacOS X 10.5.
14562 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
14563 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
14564 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
14565 If MODE_INSIDE_ACL, don't assume that every system has the same text
14566 representation for ACLs as FreeBSD.
14567 * lib/copy-acl.c (copy_acl): Add support for platforms with
14569 * lib/file-has-acl.c (file_has_acl): Likewise.
14570 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
14571 FreeBSD, MacOS X, or IRIX, respectively.
14573 2008-05-22 Bruno Haible <bruno@clisp.org>
14575 * lib/acl.h: Don't include <sys/acl.h>.
14576 (GETACLCNT): Move fallback to lib/acl-internal.h.
14577 * lib/acl-internal.h: Include <sys/acl.h> here.
14578 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
14580 2008-05-22 Bruno Haible <bruno@clisp.org>
14582 Split off copy_acl function to separate file.
14583 * lib/copy-acl.c: New file, extracted from lib/acl.c.
14584 * lib/acl.c (copy_acl): Moved function to separate file.
14585 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
14586 * modules/acl (Files): Add lib/copy-acl.c.
14587 (Makefiles.am): Augment lib_SOURCES.
14589 2008-05-22 Bruno Haible <bruno@clisp.org>
14591 * modules/copy-file-tests: New file.
14592 * tests/test-copy-file.sh: New file.
14593 * tests/test-copy-file.c: New file.
14594 * tests/test-copy-file-sameacls.c: New file.
14596 2008-05-22 Eric Blake <ebb9@byu.net>
14599 * tests/test-memcmp.c (main): Pass NULL indirectly.
14601 2008-05-21 Bruno Haible <bruno@clisp.org>
14603 Add reference doc about ACLs.
14604 * doc/acl-resources.txt: New file.
14605 * doc/acl-cygwin.txt: New file.
14607 2008-05-21 Bruno Haible <bruno@clisp.org>
14609 Avoid one more warning from gcc.
14610 * lib/vasnprintf.c (IF_LINT): Update comments.
14611 (VASNPRINTF): Use it also for the 'prefix' array initializer.
14613 2008-05-21 Jim Meyering <meyering@redhat.com>
14615 avoid a warning from gcc
14616 * lib/vasnprintf.c (IF_LINT): Define.
14617 (scale10_round_decimal_long_double):
14618 Use it to avoid a "may be used uninitialized" warning.
14619 (scale10_round_decimal_double): Likewise.
14621 2008-05-21 Simon Josefsson <simon@josefsson.org>
14623 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
14626 2008-05-20 Bruno Haible <bruno@clisp.org>
14628 * tests/test-memcmp.c (main): Test also the sign of the result. Test
14629 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
14631 2008-05-20 Simon Josefsson <simon@josefsson.org>
14633 * modules/memcmp-tests: New file.
14634 * tests/test-memcmp.c: New file.
14636 2008-05-19 Bruno Haible <bruno@clisp.org>
14638 * modules/propername (Notice, configure.ac): Put quoted "..." into
14640 * lib/propername.h: Update comments accordingly.
14641 Reported by Eric Blake.
14643 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
14645 * modules/getpass-gnu (Depends-on): Add fseeko.
14647 2008-05-19 Simon Josefsson <simon@josefsson.org>
14649 * modules/base64-tests: New file.
14651 2008-05-19 Bo Borgerson <gigabo@gmail.com>
14653 * lib/base64.c (base64_decode_ctx): If a decode context structure
14654 was passed in use it to ignore newlines. If a context structure
14655 was _not_ passed in, continue to treat newlines as garbage (this
14656 is the historical behavior). Formerly base64_decode.
14657 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
14658 takes a decode context structure.
14659 * lib/base64.h (base64_decode): Macro for four-argument calls.
14660 (base64_decode_alloc): Likewise.
14661 * lib/base64.c (base64_decode_ctx): If a decode context structure
14662 was passed in use it to ignore newlines. If a context structure
14663 was _not_ passed in, continue to treat newlines as garbage (this
14664 is the historical behavior). Formerly base64_decode.
14665 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
14666 takes a decode context structure.
14667 * lib/base64.h (base64_decode): Macro for four-argument calls.
14668 (base64_decode_alloc): Likewise.
14670 2008-05-19 Jim Meyering <meyering@redhat.com>
14672 avoid a warning from gcc
14673 * lib/trim.c (IF_LINT): Define.
14674 (trim2): Use it to avoid a "may be used uninitialized" warning.
14677 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
14679 2008-05-19 Bruno Haible <bruno@clisp.org>
14681 * doc/glibc-functions/getpass.texi: Document limits of other
14684 2008-05-19 Simon Josefsson <simon@josefsson.org>
14685 Bruno Haible <bruno@clisp.org>
14687 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
14689 2008-05-18 Bruno Haible <bruno@clisp.org>
14691 * modules/propername: New file, from GNU gettext.
14692 * lib/propername.h: New file, from GNU gettext.
14693 * lib/propername.c: New file, from GNU gettext.
14694 * MODULES.html.sh (Internationalization functions): Add propername.
14696 2008-05-16 Jim Meyering <meyering@redhat.com>
14697 Bruno Haible <bruno@clisp.org>
14699 Avoid some warnings from "gcc -Wshadow".
14700 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
14702 2008-05-15 Eric Blake <ebb9@byu.net>
14704 Extend previous patch to cygwin 1.7.0.
14705 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
14706 fast implementation in cygwin >= 1.7.0.
14707 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14708 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14710 2008-05-15 Bruno Haible <bruno@clisp.org>
14712 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
14713 implementation in glibc >= 2.9.
14714 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14715 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14717 2008-05-15 Bruno Haible <bruno@clisp.org>
14719 * MODULES.html.sh (Internationalization functions): Remove linebreak.
14720 (Unicode string functions): Add unilbrk/*.
14721 Reported by Karl Berry.
14723 2008-05-15 Eric Blake <ebb9@byu.net>
14725 Fix violation of <stdbool.h> replacement in regex.
14726 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
14727 * lib/regexec.c (re_search_internal): Likewise.
14728 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
14730 2008-05-15 Jim Meyering <meyering@redhat.com>
14732 avoid distracting test output when git or cvs is not found
14733 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
14734 * tests/test-vc-list-files-git.sh: Likewise.
14736 2008-05-15 Eric Blake <ebb9@byu.net>
14738 Glibc finally accepted the memmem speedup code, bugzilla #5514.
14739 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
14741 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
14742 * doc/posix-functions/strstr.texi (strstr): Likewise.
14743 * lib/str-two-way.h (MAX): Sychronize with glibc.
14745 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
14747 * lib/regcomp.c (optimize_utf8): Add a note on why we test
14749 (calc_first): Initialize constraint field.
14750 (duplicate_node_closure): Use it instead of special casing ANCHORS.
14752 (duplicate_node): Merge constraint field for all node types.
14753 (calc_eclosure_iter): Look at constraint field for all node types.
14754 * lib/regex_internal.c (create_cd_newstate): Don't look at
14757 2008-05-14 Bruno Haible <bruno@clisp.org>
14759 Help GCC to do better code generation.
14760 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
14761 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
14762 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
14763 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
14764 Declare with attribute 'malloc' if supported.
14766 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
14768 use "echo STR|wc -c" rather than unportable "expr length STR"
14769 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
14770 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
14772 2008-05-14 Jim Meyering <meyering@redhat.com>
14774 use dd ibs=$n count=1 ... rather than less-portable head -c$n
14775 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
14776 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
14777 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
14780 2008-05-14 Eric Blake <ebb9@byu.net>
14782 Avoid quadratic growth in gl_LIBSOURCES.
14783 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
14784 Suggested by Bruno Haible.
14787 * modules/xmemdup0-tests: New file.
14788 * tests/test-xmemdup0.c: Likewise.
14790 2008-05-13 Eric Blake <ebb9@byu.net>
14792 Split xmemdup0 into its own module.
14793 * modules/xmemdup0: New file.
14794 * lib/xmemdup0.h: Likewise.
14795 * lib/xmemdup0.c: Likewise.
14796 * MODULES.html.sh (Memory management functions): Add xmemdup0.
14797 * lib/xalloc.h (xmemdup0): Remove.
14798 * lib/xmalloc.c (xmemdup0): Likewise.
14800 2008-05-13 Eric Blake <ebb9@byu.net>
14801 Bruno Haible <bruno@clisp.org>
14803 Reduce number of forks required during autoconf.
14804 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
14805 and gl_LIBSOURCES_DIR.
14806 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
14807 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
14808 m4_syscmd per file.
14809 <m4_foreach_w>: Move...
14810 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
14812 2008-05-13 Eric Blake <ebb9@byu.net>
14814 * gnulib-tool: Fix various comment typos.
14816 2008-05-12 Bruno Haible <bruno@clisp.org>
14818 Tailor the linebreaking algorithm.
14819 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
14821 2008-05-12 Bruno Haible <bruno@clisp.org>
14823 Update to Unicode 5.0.0.
14824 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
14825 LBP_JV, LBP_JT. Redistribute values.
14826 (unilbrk_table): Change size.
14827 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
14828 Unicode TR#14 rev. 22.
14829 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
14830 LBP_JV, LBP_JT. Redistribute values.
14831 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
14832 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
14834 * lib/unilbrk/lbrkprop1.h: Regenerated.
14835 * lib/unilbrk/lbrkprop2.h: Regenerated.
14836 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
14837 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
14838 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
14840 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
14842 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
14844 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
14845 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
14846 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
14847 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
14848 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
14849 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
14851 2008-05-11 Bruno Haible <bruno@clisp.org>
14853 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
14855 2008-05-11 Bruno Haible <bruno@clisp.org>
14857 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
14858 * modules/unilbrk/gen-lbrk: New file.
14860 2008-05-11 Bruno Haible <bruno@clisp.org>
14862 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
14863 * m4/sha512.m4 (gl_SHA512): Likewise.
14865 2008-05-11 Jim Meyering <meyering@redhat.com>
14867 New modules: crypto/sha256, crypto/sha512 (from coreutils)
14868 * modules/crypto/sha256: New file.
14869 * modules/crypto/sha512: Likewise.
14870 * lib/sha256.c: Likewise.
14871 * lib/sha256.h: Likewise.
14872 * lib/sha512.c: Likewise.
14873 * lib/sha512.h: Likewise.
14874 * lib/u64.h: Likewise.
14875 * m4/sha256.m4: Likewise.
14876 * m4/sha512.m4: Likewise.
14877 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
14879 2008-05-10 Bruno Haible <bruno@clisp.org>
14881 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
14882 (Input/Output <stdio.h>): Add xprintf.
14883 (Signal handling <signal.h>): Add strsignal.
14884 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
14885 (Core language properties): Add func.
14886 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
14887 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
14889 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
14890 (Input/output): New section.
14891 (File system functions): Add openat-die, stat-macros.
14892 (Networking functions): Add sockets.
14893 (Unicode string functions): Add unictype/*.
14894 (Support for building libraries and executables): Add gperf.
14895 (Support for building documentation): Add agpl-3.0.
14896 (Misc): Add nocrash.
14898 2008-05-10 Bruno Haible <bruno@clisp.org>
14900 * modules/unictype/gen-ctype: New file.
14902 2008-05-10 Jim Meyering <meyering@redhat.com>
14904 Make chdir-safer.c more efficient on a system with no symlinks.
14905 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
14906 also if ELOOP is zero. Suggested by Bruno Haible.
14908 Make chdir-safer.c slightly safer.
14909 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
14910 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
14912 Avoid compile failure on systems without ELOOP (like mingw).
14913 * lib/chdir-safer.c (ELOOP): Define if not already defined.
14914 Reported by Bruno Haible.
14916 2008-05-10 Bruno Haible <bruno@clisp.org>
14918 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
14919 (is_utf8_encoding): Use a case-insensitive comparison.
14920 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
14923 2008-05-10 Bruno Haible <bruno@clisp.org>
14925 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
14926 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
14927 * lib/unilbrk/ulc-common.h (iconv_string_length,
14928 iconv_string_keeping_offsets): Remove declarations.
14929 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
14930 Don't include <iconv.h>, streq.h, xsize.h.
14931 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
14933 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
14934 <iconv.h>, streq.h, xsize.h.
14935 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
14937 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
14938 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
14939 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
14940 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
14942 2008-05-10 Bruno Haible <bruno@clisp.org>
14944 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
14945 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
14947 * modules/unilbrk/u32-width-linebreaks-tests: New file.
14948 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
14950 * modules/unilbrk/u16-width-linebreaks-tests: New file.
14951 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
14953 * modules/unilbrk/u8-width-linebreaks-tests: New file.
14954 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
14956 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
14957 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
14959 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
14960 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
14962 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
14963 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
14965 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
14966 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
14968 2008-05-10 Bruno Haible <bruno@clisp.org>
14970 Split up 'linebreak' module.
14971 * lib/unilbrk.h: New file, based on lib/linebreak.h.
14972 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
14973 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
14975 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
14976 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
14977 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
14979 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
14981 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
14983 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
14984 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
14985 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
14987 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
14989 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
14991 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
14993 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
14995 * modules/unilbrk/base: New file.
14996 * modules/unilbrk/tables: New file.
14997 * modules/unilbrk/u8-possible-linebreaks: New file.
14998 * modules/unilbrk/u16-possible-linebreaks: New file.
14999 * modules/unilbrk/u32-possible-linebreaks: New file.
15000 * modules/unilbrk/ulc-common: New file.
15001 * modules/unilbrk/ulc-possible-linebreaks: New file.
15002 * modules/unilbrk/u8-width-linebreaks: New file.
15003 * modules/unilbrk/u16-width-linebreaks: New file.
15004 * modules/unilbrk/u32-width-linebreaks: New file.
15005 * modules/unilbrk/ulc-width-linebreaks: New file.
15006 * lib/linebreak.h: Remove file.
15007 * lib/linebreak.c: Remove file.
15008 * m4/linebreak.m4: Remove file.
15009 * modules/linebreak: Remove file.
15010 * NEWS: Mention the changes.
15012 2008-05-09 Eric Blake <ebb9@byu.net>
15015 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
15017 * lib/xmalloc.c (xmemdup0): New C implementation.
15019 2008-05-08 Bruno Haible <bruno@clisp.org>
15021 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
15023 2008-05-07 Eric Blake <ebb9@byu.net>
15025 Support cross-compilation of <wctype.h>.
15026 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
15029 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
15031 * build-aux/vc-list-files: Add support for bzr.
15033 2008-05-03 Jim Meyering <meyering@redhat.com>
15035 avoid failed assertion with tight malloc
15036 * tests/test-getndelim2.c: Correct an off-by-one assertion.
15038 2008-05-03 Simon Josefsson <simon@josefsson.org>
15040 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
15041 are needed from arpa/inet.h.
15042 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
15043 Reported by Bruno Haible.
15045 2008-05-02 Jim Meyering <meyering@redhat.com>
15047 avoid compilation error on FreeBSD 6
15048 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
15050 2008-05-01 Jim Meyering <meyering@redhat.com>
15052 useless-if-before-free: correct --help's exit status description
15053 * build-aux/useless-if-before-free (usage): Like grep, exit 0
15054 for one or more matches, etc. Reported by Bruno Haible.
15056 vc-list-files: make the stand-alone gnulib test work
15057 * modules/vc-list-files-tests (configure.ac):
15058 Define and AC_SUBST abs_aux_dir.
15059 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
15060 $(abs_top_srcdir) to each script and having each of them
15061 duplicate the work of setting PATH, set PATH here, using
15062 the new variable, abs_aux_dir instead.
15063 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
15064 * tests/test-vc-list-files-git.sh: Likewise.
15065 Reported by Bruno Haible.
15067 2008-05-01 Bruno Haible <bruno@clisp.org>
15069 * lib/getndelim2.c (getndelim2): Fix newsize computation during
15070 reallocation. Rename 'done' to 'found_delimiter'.
15072 2008-05-01 Jim Meyering <meyering@redhat.com>
15074 vc-list-files: accommodate /bin/sh like the one from Solaris 10
15075 * build-aux/vc-list-files: Use `...`, not $(...).
15077 2008-04-30 Jim Meyering <meyering@redhat.com>
15079 add tests for vc-list-files
15080 * modules/vc-list-files-tests: New module.
15081 * tests/test-vc-list-files-cvs.sh: New file.
15082 * tests/test-vc-list-files-git.sh: New file.
15084 avoid a warning from gcc
15085 * lib/getndelim2.c (IF_LINT): Define.
15086 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
15088 vc-list-files: work properly with build-aux/cvsu, too
15089 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
15090 to all cvs-based clauses.
15092 vc-list-files: work properly in the CVS+awk case, too
15093 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
15095 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
15096 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
15097 take more than one file argument, so . Add quotes, just in case $dir
15098 ever contains a shell meta-character. Prompted by Soren Hansen in
15099 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
15101 2008-04-29 Eric Blake <ebb9@byu.net>
15103 Optimize getndelim2 to use block operations when possible.
15104 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
15105 freadseek, and memchr2.
15106 * lib/getndelim2.c (getndelim2): Use them for block reads.
15108 2008-04-29 Bruno Haible <bruno@clisp.org>
15110 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
15111 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15112 * modules/inet_ntop (Depends-on): Add extensions.
15113 * modules/inet_pton (Depends-on): Likewise.
15114 Reported by Simon Josefsson.
15116 2008-04-29 Jim Meyering <meyering@redhat.com>
15118 When the is more than one match in a block, match all of them.
15119 * build-aux/useless-if-before-free: Iterate through each block
15120 until there are no more matches.
15122 Fix broken useless-if-before-free script.
15123 * build-aux/useless-if-before-free: Fix typo: missing "?" after
15124 the expression to match cast of argument to free-like function.
15126 2008-04-29 Eric Blake <ebb9@byu.net>
15129 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
15131 2008-04-29 Jim Meyering <meyering@redhat.com>
15133 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
15134 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
15135 by gnulib to exist and to declare e.g., inet_ntop.
15136 Don't include "inet_ntop.h", now removed.
15138 * m4/arpa_inet_h.m4: Remove trailing blanks.
15140 2008-04-29 Eric Blake <ebb9@byu.net>
15142 Silence valgrind on safe reads beyond potential array bounds.
15143 * lib/rawmemchr.valgrind: New file.
15144 * lib/strchrnul.valgrind: Likewise.
15145 * modules/rawmemchr (Files): Distribute new file.
15146 * modules/strchrnul (Files): Likewise.
15147 Suggested by Bruno Haible.
15149 2008-04-29 Bruno Haible <bruno@clisp.org>
15151 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
15152 (inet_ntop, inet_pton): Change portability warning's wording.
15153 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
15154 Invoke gl_CHECK_NEXT_HEADERS.
15155 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
15156 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
15158 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
15159 * modules/arpa_inet (Description): No longer only for systems that
15161 (Depends-on): Add include_next.
15162 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
15165 2008-04-29 Jim Meyering <meyering@redhat.com>
15167 * modules/mkdir (License): Re-license as LGPLv2+.
15169 2008-04-29 Bruno Haible <bruno@clisp.org>
15171 * modules/rawmemchr (Maintainer): Set to Eric.
15172 * modules/strchrnul (Maintainer): Likewise.
15174 2008-04-29 Simon Josefsson <simon@josefsson.org>
15176 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
15177 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
15179 * modules/arpa_inet (arpa/inet.h): Use them.
15181 2008-04-28 Eric Blake <ebb9@byu.net>
15184 * modules/getndelim2-tests: New file.
15185 * tests/test-getndelim2.c: Likewise.
15186 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
15188 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
15190 * MODULES.html.sh: Document new module.
15192 2008-04-20 Bruno Haible <bruno@clisp.org>
15194 * lib/c-stack.c (die): Use raise.
15195 * modules/c-stack (Depends-on): Add raise.
15197 2008-04-28 Bruno Haible <bruno@clisp.org>
15199 Expect rpmatch to be declared.
15200 * lib/yesno.c (rpmatch): Remove declaration.
15203 * lib/stdlib.in.h (rpmatch): New declaration.
15204 * lib/rpmatch.c: Include <stdlib.h> first.
15205 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
15206 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
15207 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
15209 * modules/rpmatch (Depends-on): Add stdlib, extensions.
15210 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
15211 (Include): Set to <stdlib.h>.
15212 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
15214 * NEWS: Document the change.
15216 2008-04-28 Bruno Haible <bruno@clisp.org>
15218 Change rpmatch to use nl_langinfo when appropriate.
15219 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
15221 (localized_pattern): New function/macro.
15222 (try): Remove match, nomatch arguments. Copy the pattern into safe
15223 memory before caching it.
15224 (rpmatch): Use localized_pattern. Add translator comments.
15225 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
15226 Suggested by Eric Blake.
15227 * modules/rpmatch (Depends-on): Add stdbool.
15229 2008-04-28 Eric Blake <ebb9@byu.net>
15231 Add rawmemchr module, matching glibc.
15232 * modules/string (Makefile.am): New indicator.
15233 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
15234 * lib/string.in.h (rawmemchr): Declare when appropriate.
15235 * modules/rawmemchr: New file.
15236 * m4/rawmemchr.m4: Likewise.
15237 * lib/rawmemchr.c: Likewise.
15238 * modules/rawmemchr-tests: Likewise.
15239 * tests/test-rawmemchr.c: Likewise.
15240 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
15242 * modules/strchrnul (Depends-on): Add rawmemchr.
15243 * lib/strchrnul.c (strchrnul): Optimize a corner case.
15245 Whitespace cleanup.
15246 * tests/test-strchrnul.c: Reindent.
15247 * lib/strchrnul.c: Likewise.
15249 Optimize and test strchrnul.
15250 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
15251 * modules/strchrnul-tests: New file.
15252 * tests/test-strchrnul.c: Likewise.
15254 Remove intprops dependency.
15255 * modules/memchr (Depends-on): Remove intprops.
15256 * modules/memrchr (Depends-on): Likewise.
15257 * modules/memchr2 (Depends-on): Likewise.
15258 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
15259 * lib/memrchr.c (__memrchr): Likewise.
15260 * lib/memrchr2.c (memchr2): Likewise.
15261 Reported by Simon Josefsson.
15263 2008-04-28 Simon Josefsson <simon@josefsson.org>
15265 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
15266 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15268 2008-04-28 Simon Josefsson <simon@josefsson.org>
15270 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
15272 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
15274 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
15276 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
15278 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
15280 * m4/inet_pton.m4: Don't check for header files.
15282 * m4/inet_ntop.m4: Don't check for header files.
15284 2008-04-28 Simon Josefsson <simon@josefsson.org>
15286 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
15287 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
15288 trigger for cygwin).
15289 Reported by Bruno Haible <bruno@clisp.org>.
15291 2008-04-28 Bruno Haible <bruno@clisp.org>
15293 * doc/posix-functions/strdup.texi: Mention mingw problem.
15295 2008-04-27 Bruno Haible <bruno@clisp.org>
15297 * modules/stat-time-tests (Depends-on): Add sleep.
15298 * tests/test-stat-time.c (force_unlink): New function.
15300 (test_mtime): Remove the ctime related tests.
15301 (test_ctime): New function, containing the ctime related tests.
15302 (main): Call test_ctime, except on native Windows platforms.
15304 2008-04-27 Bruno Haible <bruno@clisp.org>
15306 * lib/rpmatch.c (rpmatch): Add some comments.
15307 Reported by James Youngman <jay@gnu.org>.
15309 2008-04-27 Bruno Haible <bruno@clisp.org>
15311 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
15314 2008-04-27 Bruno Haible <bruno@clisp.org>
15316 Make test-yesno.sh work on mingw.
15317 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
15318 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
15319 (main): Set stdin to binary mode.
15320 * modules/yesno-tests (Depends-on): Add binary-io.
15322 2008-04-27 Bruno Haible <bruno@clisp.org>
15324 Fix 'isfinite' on x86, x86_64, ia64 platforms.
15325 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
15326 argument that lie outside the IEEE 854 domain.
15327 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
15328 (gl_ISFINITE): Use it.
15329 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
15331 2008-04-27 Bruno Haible <bruno@clisp.org>
15333 Allow local renaming in config.h.
15334 * lib/memrchr.c (memrchr): Don't undefine outside libc.
15336 2008-04-27 Bruno Haible <bruno@clisp.org>
15338 * lib/memchr.c (__memchr): Change type of 'i'.
15339 * lib/memchr2.c (memchr2): Likewise.
15341 2008-04-26 Eric Blake <ebb9@byu.net>
15342 and Bruno Haible <bruno@clisp.org>
15344 Optimize and test memrchr.
15345 * modules/memrchr (Depends-on): Add intprops.
15346 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
15347 * modules/memrchr-tests: New file.
15348 * tests/test-memrchr.c: New file.
15350 2008-04-26 Bruno Haible <bruno@clisp.org>
15352 Add tentative support for DragonFly BSD.
15353 * lib/stdio-impl.h: Add macros for DragonFly BSD.
15354 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
15356 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
15357 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
15358 * lib/fpurge.c (fpurge): Likewise.
15359 * lib/freadable.c (freaadable): Likewise.
15360 * lib/freadahead.c (freadahead): Likewise.
15361 * lib/freading.c (freading): Likewise.
15362 * lib/freadptr.c (freadptr): Likewise.
15363 * lib/freadseek.c (freadptrinc): Likewise.
15364 * lib/fseeko.c (fseeko): Likewise.
15365 * lib/fseterr.c (fseterr): Likewise.
15366 * lib/fwritable.c (fwritable): Likewise.
15367 * lib/fwriting.c (fwriting): Likewise.
15369 2008-04-26 Bruno Haible <bruno@clisp.org>
15371 * lib/stdio-impl.h: New file.
15372 * lib/fbufmode.c: Include stdio-impl.h.
15373 (fbufmode): Use fp_, remove redundant #defines.
15374 * lib/fflush.c: Include stdio-impl.h.
15375 (clear_ungetc_buffer): Remove redundant #defines.
15376 * lib/fpurge.c: Include stdio-impl.h.
15377 (fpurge): Remove redundant #defines.
15378 * lib/freadable.c: Include stdio-impl.h.
15379 (freadable): Remove redundant #defines.
15380 * lib/freadahead.c: Include stdio-impl.h.
15381 (freadahead): Remove redundant #defines.
15382 * lib/freading.c: Include stdio-impl.h.
15383 (freading): Remove redundant #defines.
15384 * lib/freadptr.c: Include stdio-impl.h.
15385 (freadptr): Remove redundant #defines.
15386 * lib/freadseek.c: Include stdio-impl.h.
15387 (freadptrinc): Remove redundant #defines.
15388 * lib/fseeko.c: Include stdio-impl.h.
15389 (rpl_fseeko): Remove redundant #defines.
15390 * lib/fseterr.c: Include stdio-impl.h.
15391 (fseterr): Remove redundant #defines.
15392 * lib/fwritable.c: Include stdio-impl.h.
15393 (fwritable: Remove redundant #defines.
15394 * lib/fwriting.c: Include stdio-impl.h.
15395 (fwriting): Remove redundant #defines.
15396 * modules/fbufmode (Files): Add lib/stdio-impl.h.
15397 * modules/fflush (Files): Likewise.
15398 * modules/fpurge (Files): Likewise.
15399 * modules/freadable (Files): Likewise.
15400 * modules/freadahead (Files): Likewise.
15401 * modules/freading (Files): Likewise.
15402 * modules/freadptr (Files): Likewise.
15403 * modules/freadseek (Files): Likewise.
15404 * modules/fseeko (Files): Likewise.
15405 * modules/fseterr (Files): Likewise.
15406 * modules/fwritable (Files): Likewise.
15407 * modules/fwriting (Files): Likewise.
15409 2008-04-26 Bruno Haible <bruno@clisp.org>
15411 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
15412 restore_seek_optimization, update_fpos_cache): New functions, extracted
15414 (rpl_fflush): Use them.
15415 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
15416 (gl_REPLACE_FFLUSH): Use it.
15418 2008-04-26 Bruno Haible <bruno@clisp.org>
15420 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
15422 * tests/test-xstrtoimax.sh: Likewise.
15423 * tests/test-xstrtoumax.sh: Likewise.
15424 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15426 2008-04-26 Bruno Haible <bruno@clisp.org>
15428 * modules/memchr-tests: New file.
15429 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
15431 2008-04-26 Eric Blake <ebb9@byu.net>
15432 Bruno Haible <bruno@clisp.org>
15434 * lib/memchr.c: Include intprops.h.
15435 (__memchr): Optimize parallel detection of matching bytes. Rename local
15436 variables. Add explanatory comments.
15438 2008-04-26 Bruno Haible <bruno@clisp.org>
15440 Fix module 'memchr', broken since 2000-10-28.
15441 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
15443 2008-04-26 Bruno Haible <bruno@clisp.org>
15445 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
15448 2008-04-25 Eric Blake <ebb9@byu.net>
15450 Use native fstatat on cygwin 1.7.0.
15451 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
15454 2008-04-23 Eric Blake <ebb9@byu.net>
15456 Improve memchr2 performance.
15457 * lib/memchr2.c (memchr2): Further optimize parallel detection of
15459 * modules/memchr2 (Depends-on): Use intprops.h.
15461 2008-04-23 Simon Josefsson <simon@josefsson.org>
15463 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
15464 an inline function instead of a CPP macro. Patch by Ben Pfaff
15465 <blp@cs.stanford.edu>.
15467 2008-04-23 Simon Josefsson <simon@josefsson.org>
15469 * lib/arpa_inet.in.h: New file.
15471 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
15472 (Makefile.am): Sed in substitute header file.
15474 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
15475 gl_ARPA_INET_MODULE_INDICATOR. Use them.
15477 * modules/inet_ntop (configure.ac): Use
15478 gl_ARPA_INET_MODULE_INDICATOR.
15480 * modules/inet_pton (configure.ac): Use
15481 gl_ARPA_INET_MODULE_INDICATOR.
15483 2008-04-22 Jim Meyering <meyering@redhat.com>
15485 * modules/verify (License): Re-license as LGPLv2+.
15487 2008-04-22 Simon Josefsson <simon@josefsson.org>
15489 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
15490 parameter to void* as per POSIX standard (MinGW uses char*).
15492 2008-04-21 Bruno Haible <bruno@clisp.org>
15494 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
15495 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
15496 Define to replacements if REPLACE_ISWCNTRL is 1.
15497 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
15498 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
15499 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
15500 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
15502 * doc/posix-functions/iswalpha.texi: Likewise.
15503 * doc/posix-functions/iswblank.texi: Likewise.
15504 * doc/posix-functions/iswcntrl.texi: Likewise.
15505 * doc/posix-functions/iswdigit.texi: Likewise.
15506 * doc/posix-functions/iswgraph.texi: Likewise.
15507 * doc/posix-functions/iswlower.texi: Likewise.
15508 * doc/posix-functions/iswprint.texi: Likewise.
15509 * doc/posix-functions/iswpunct.texi: Likewise.
15510 * doc/posix-functions/iswspace.texi: Likewise.
15511 * doc/posix-functions/iswupper.texi: Likewise.
15512 * doc/posix-functions/iswxdigit.texi: Likewise.
15513 Reported by Alain Guibert.
15515 2008-04-21 Bruno Haible <bruno@clisp.org>
15517 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
15518 Patch by Alain Guibert.
15520 2008-04-21 Bruno Haible <bruno@clisp.org>
15522 Fix test failures on mingw.
15523 * tests/test-xstrtol.c (print_no_progname): New function.
15524 (main): Install it in error_print_progname hook.
15525 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
15526 * tests/test-xstrtoimax.sh: Likewise.
15527 * tests/test-xstrtoumax.sh: Likewise.
15529 2008-04-21 Bruno Haible <bruno@clisp.org>
15531 Fix test failure on mingw.
15532 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
15534 2008-04-21 Bruno Haible <bruno@clisp.org>
15536 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
15537 Actually assign a value.
15539 2008-04-20 Bruno Haible <bruno@clisp.org>
15541 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
15543 * lib/canonicalize.c (canonicalize_file_name): Elide if the
15544 'canonicalize-lgpl' module is also used.
15545 * lib/canonicalize-lgpl.c: Undo last change.
15546 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
15548 2008-04-20 Bruno Haible <bruno@clisp.org>
15550 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
15551 config.h. Provide _mkdir based fallback for mingw.
15552 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
15553 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
15554 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
15555 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
15556 rather than defining mkdir in config.h.
15557 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
15558 (gl_SYS_STAT_H_DEFAULTS): New macro.
15559 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
15560 HAVE_IO_H any more.
15561 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
15562 HAVE_DECL_MKDIR and HAVE_IO_H.
15564 2008-04-20 Bruno Haible <bruno@clisp.org>
15566 * lib/isapipe.c: Port to native Windows platforms.
15568 2008-04-20 Bruno Haible <bruno@clisp.org>
15570 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
15572 2008-04-21 Eric Blake <ebb9@byu.net>
15574 Work around preprocessors that don't handle UINTMAX_MAX.
15575 * lib/memchr2.c (memchr2): Avoid embedded #if.
15576 Reported by Alain Guibert, fix suggested by Bruno Haible.
15578 2008-04-21 Simon Josefsson <simon@josefsson.org>
15580 * doc/posix-functions/strftime.texi (strftime): Explain better
15581 Windows incompatibility. Suggested by Micah Cowan
15582 <micah@cowan.name>.
15584 2008-04-20 Bruno Haible <bruno@clisp.org>
15586 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
15589 2008-04-20 Bruno Haible <bruno@clisp.org>
15591 Fix test failure on platforms with non-GNU iconv.
15592 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
15593 (U_TO_U8): Use it, rather than u16_to_u8.
15594 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
15595 units at the end of the input string.
15596 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
15598 2008-04-20 Bruno Haible <bruno@clisp.org>
15600 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
15601 when the resulting length is 0.
15602 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15604 2008-04-20 Bruno Haible <bruno@clisp.org>
15606 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
15608 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
15610 2008-04-20 Bruno Haible <bruno@clisp.org>
15612 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
15613 * modules/tsearch-tests (configure.ac): Test for initstate function.
15615 2008-04-20 Bruno Haible <bruno@clisp.org>
15617 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
15618 for nlink_t if missing.
15619 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
15621 2008-04-19 Bruno Haible <bruno@clisp.org>
15623 Work around snprintf bug on Linux libc5.
15624 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
15625 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15627 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15628 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
15630 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
15631 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
15632 * modules/snprintf (Files): Add m4/printf.m4.
15633 * modules/vsnprintf (Files): Likewise.
15634 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
15635 * doc/posix-functions/vsnprintf.texi: Likewise.
15637 2008-04-19 Bruno Haible <bruno@clisp.org>
15639 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
15640 from 0.0058 to less than 10^-7.
15642 2008-04-19 Bruno Haible <bruno@clisp.org>
15644 Fix rounding when a precision is given.
15645 * lib/vasnprintf.c (is_borderline): New function.
15646 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
15648 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
15650 * tests/test-vasprintf-posix.c (test_function): Likewise.
15651 * tests/test-snprintf-posix.h (test_function): Likewise.
15652 * tests/test-sprintf-posix.h (test_function): Likewise.
15653 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
15654 * tests/test-printf-posix.h (test_function): Likewise.
15655 * tests/test-printf-posix.output: Update.
15656 Reported by John Darrington <john@darrington.wattle.id.au> via
15657 Ben Pfaff <blp@cs.stanford.edu>.
15659 2008-04-18 Simon Josefsson <simon@josefsson.org>
15661 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
15662 Suggested by Bruno Haible <bruno@clisp.org>.
15664 2008-04-17 Bruno Haible <bruno@clisp.org>
15666 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
15667 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
15669 Patch by Bruce Merry <bmerry@gmail.com>.
15671 2008-04-17 Simon Josefsson <simon@josefsson.org>
15673 * doc/posix-functions/strftime.texi (strftime): Mention that %e
15674 doesn't work under Windows.
15676 2008-04-16 Bruno Haible <bruno@clisp.org>
15678 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
15680 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
15681 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
15682 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
15683 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
15684 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
15685 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
15686 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
15688 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
15689 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
15690 Northern Sotho, Uighur.
15692 2008-04-16 Bruno Haible <bruno@clisp.org>
15694 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
15695 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
15696 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
15697 Reported by Daniel Bergström <daniel@octocode.com>.
15699 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
15700 Bruno Haible <bruno@clisp.org>
15702 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
15704 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
15705 New functions, mostly extracted from gl_locale_name_default.
15706 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
15708 2008-04-16 Eric Blake <ebb9@byu.net>
15710 Adjust strtod detection to catch glibc 2.7 bug.
15711 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
15712 Reported by John Gatewood Ham.
15714 2008-04-16 Bruno Haible <bruno@clisp.org>
15716 Add tentative support for Linux libc5.
15717 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
15718 * lib/fpurge.c (fpurge): Likewise.
15719 * lib/freadable.c (freadable): Likewise.
15720 * lib/freadahead.c (freadahead): Likewise.
15721 * lib/freading.c (freading): Likewise.
15722 * lib/freadptr.c (freadptr): Likewise.
15723 * lib/freadseek.c (freadptrinc): Likewise.
15724 * lib/fseeko.c (rpl_fseeko): Likewise.
15725 * lib/fseterr.c (fseterr): Likewise.
15726 * lib/fwritable.c (fwritable): Likewise.
15727 * lib/fwriting.c (fwriting): Likewise.
15728 Reported by Alain Guibert <alguibert+bts@free.fr>.
15730 2008-04-15 Bruno Haible <bruno@clisp.org>
15732 * modules/mathl (configure.ac): Define module indicator.
15734 2008-04-15 Bruno Haible <bruno@clisp.org>
15736 * lib/logl.c (logl): Remove unused variables.
15738 2008-04-15 Bruno Haible <bruno@clisp.org>
15740 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
15743 2008-04-15 Bruno Haible <bruno@clisp.org>
15745 * lib/trim.c (trim2): Fix argument of isspace() macro.
15747 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
15749 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
15751 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
15753 2008-04-14 Bruno Haible <bruno@clisp.org>
15755 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
15756 AC_LANG_PROGRAM argument.
15757 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
15758 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
15759 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
15760 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
15761 * m4/math_h.m4 (gl_MATH_H): Likewise.
15762 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
15763 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15764 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
15765 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
15766 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15767 * m4/regex.m4 (gl_REGEX): Likewise.
15768 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
15769 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
15770 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15771 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
15772 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
15773 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15774 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
15775 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
15777 2008-04-14 Jim Meyering <meyering@redhat.com>
15779 test-strtod: fix typos: s/abs/fabs/
15780 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
15782 2008-04-13 Bruno Haible <bruno@clisp.org>
15784 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
15785 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
15786 module is also used and while not building the reloc-wrapper.
15788 2008-04-13 Bruno Haible <bruno@clisp.org>
15790 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
15792 2008-04-13 Bruno Haible <bruno@clisp.org>
15794 Fix AIX compilation failure introduced on 2008-04-02.
15795 * tests/test-frexp.c (exp): Undefine before redefining.
15796 * tests/test-frexpl.c (exp): Likewise.
15798 2008-04-13 Bruno Haible <bruno@clisp.org>
15800 Work around a HP-UX stdio bug.
15801 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
15802 * tests/test-ftello.c (main): Likewise.
15803 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
15804 * doc/posix-functions/ftello.texi: Likewise.
15806 2008-04-13 Bruno Haible <bruno@clisp.org>
15808 Make test-signbit pass on HP-UX/hppa.
15809 * tests/test-signbit.c (minus_zerol): New variable.
15810 (test_signbitl): Use it.
15812 2008-04-13 Bruno Haible <bruno@clisp.org>
15814 Make truncl work on OSF/1 4.0.
15815 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
15816 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
15817 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
15818 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
15820 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
15822 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
15824 2008-04-13 Bruno Haible <bruno@clisp.org>
15826 * lib/unictype.h: Remove trailing comma from enumeration definitions.
15828 2008-04-13 Bruno Haible <bruno@clisp.org>
15830 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
15831 expression, so as to avoid HP-UX 11 cc compiler bug.
15833 2008-04-13 Bruno Haible <bruno@clisp.org>
15835 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
15837 2008-04-13 Bruno Haible <bruno@clisp.org>
15839 * lib/git-merge-changelog.c: Remove empty declaration outside of
15842 2008-04-13 Bruno Haible <bruno@clisp.org>
15844 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
15846 2008-04-13 Bruno Haible <bruno@clisp.org>
15848 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
15849 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
15850 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
15851 also if it exists but lacks definitions of the SHUT_* macros.
15852 * modules/sys_socket (Description): Update.
15853 Reported by Elbert Pol <e.pol@chello.nl>.
15855 2008-04-13 Bruno Haible <bruno@clisp.org>
15857 * lib/localcharset.c (OS2): Don't redefine if already defined.
15858 Reported by Elbert Pol <e.pol@chello.nl>.
15860 2008-04-13 Bruno Haible <bruno@clisp.org>
15862 * lib/binary-io.h [__EMX__]: Include <io.h>.
15863 Reported by Elbert Pol <e.pol@chello.nl>.
15865 2008-04-12 Bruno Haible <bruno@clisp.org>
15867 * lib/fpucw.h: Enable the definitions also for x86_64.
15868 Needed for NetBSD/x86_64.
15869 Reported by Thomas Klausner <tk@giga.or.at>.
15871 2008-04-12 Bruno Haible <bruno@clisp.org>
15873 * tests/test-strtod.c: Include isnand.h.
15874 (main): Use isnand instead of isnan.
15875 Reported by Jim Meyering.
15877 2008-04-12 Bruno Haible <bruno@clisp.org>
15879 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
15880 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
15882 2008-04-12 Jim Meyering <meyering@redhat.com>
15884 * m4/math_h.m4 (gl_MATH_H): Fix typos.
15886 2008-04-12 Bruno Haible <bruno@clisp.org>
15888 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
15889 Reported by Elbert Pol <e.pol@chello.nl>.
15891 2008-04-12 Eric Blake <ebb9@byu.net>
15893 Work around Solaris 10 math.h bug.
15894 * m4/math_h.m4 (gl_MATH_H): Check for bug.
15895 (gl_MATH_H_DEFAULTS): Set up default.
15896 * modules/math (Makefile.am): Replace new indicators.
15897 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
15898 * tests/test-math.c (main): Test this.
15899 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
15900 * doc/posix-headers/math.texi (math.h): Mention bug.
15901 Reported by Nelson H. F. Beebe and Jim Meyering.
15903 2008-04-11 Bruno Haible <bruno@clisp.org>
15905 Adapt to future versions of Apple GCC.
15906 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
15907 Reported by Peter O'Gorman <peter@pogma.com>.
15909 2008-04-11 Bruno Haible <bruno@clisp.org>
15911 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
15913 2008-04-11 Bruno Haible <bruno@clisp.org>
15915 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
15917 * modules/getaddrinfo-tests (Makefile.am): Define
15918 test_getaddrinfo_LDADD.
15920 2008-04-11 Bruno Haible <bruno@clisp.org>
15922 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
15923 (init): Fix syntax error.
15924 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
15927 2008-04-11 Bruno Haible <bruno@clisp.org>
15929 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
15930 * modules/glob (Depends-on): Add stdbool.
15932 2008-04-11 Bruno Haible <bruno@clisp.org>
15934 * lib/trim.c: Include <string.h>.
15936 2008-04-11 Eric Blake <ebb9@byu.net>
15938 Avoid compile failure on OS/2.
15939 * lib/regex_internal.h (internal_function): Disable optimization
15940 on OS/2 (__EMX__), where it caused compiler error.
15941 Reported by Elbert Pol.
15943 2008-04-11 Bruno Haible <bruno@clisp.org>
15945 Flush the standard error stream before aborting. Needed on mingw.
15946 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
15947 * tests/test-array_list.c (ASSERT): Likewise.
15948 * tests/test-array_oset.c (ASSERT): Likewise.
15949 * tests/test-avltree_list.c (ASSERT): Likewise.
15950 * tests/test-avltree_oset.c (ASSERT): Likewise.
15951 * tests/test-avltreehash_list.c (ASSERT): Likewise.
15952 * tests/test-binary-io.c (ASSERT): Likewise.
15953 * tests/test-byteswap.c (ASSERT): Likewise.
15954 * tests/test-c-ctype.c (ASSERT): Likewise.
15955 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
15956 * tests/test-c-strcasestr.c (ASSERT): Likewise.
15957 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
15958 * tests/test-c-strstr.c (ASSERT): Likewise.
15959 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
15960 * tests/test-canonicalize.c (ASSERT): Likewise.
15961 * tests/test-carray_list.c (ASSERT): Likewise.
15962 * tests/test-ceilf1.c (ASSERT): Likewise.
15963 * tests/test-ceilf2.c (ASSERT): Likewise.
15964 * tests/test-ceill.c (ASSERT): Likewise.
15965 * tests/test-count-one-bits.c (ASSERT): Likewise.
15966 * tests/test-fbufmode.c (ASSERT): Likewise.
15967 * tests/test-fflush2.c (ASSERT): Likewise.
15968 * tests/test-floorf1.c (ASSERT): Likewise.
15969 * tests/test-floorf2.c (ASSERT): Likewise.
15970 * tests/test-floorl.c (ASSERT): Likewise.
15971 * tests/test-fopen.c (ASSERT): Likewise.
15972 * tests/test-fpending.c (ASSERT): Likewise.
15973 * tests/test-fprintf-posix.c (ASSERT): Likewise.
15974 * tests/test-fpurge.c (ASSERT): Likewise.
15975 * tests/test-freadable.c (ASSERT): Likewise.
15976 * tests/test-freadahead.c (ASSERT): Likewise.
15977 * tests/test-freading.c (ASSERT): Likewise.
15978 * tests/test-freadptr.c (ASSERT): Likewise.
15979 * tests/test-freadptr2.c (ASSERT): Likewise.
15980 * tests/test-freadseek.c (ASSERT): Likewise.
15981 * tests/test-freopen.c (ASSERT): Likewise.
15982 * tests/test-frexp.c (ASSERT): Likewise.
15983 * tests/test-frexpl.c (ASSERT): Likewise.
15984 * tests/test-fseek.c (ASSERT): Likewise.
15985 * tests/test-fseeko.c (ASSERT): Likewise.
15986 * tests/test-fstrcmp.c (ASSERT): Likewise.
15987 * tests/test-ftell.c (ASSERT): Likewise.
15988 * tests/test-ftello.c (ASSERT): Likewise.
15989 * tests/test-func.c (ASSERT): Likewise.
15990 * tests/test-fwritable.c (ASSERT): Likewise.
15991 * tests/test-fwriting.c (ASSERT): Likewise.
15992 * tests/test-getdelim.c (ASSERT): Likewise.
15993 * tests/test-getline.c (ASSERT): Likewise.
15994 * tests/test-i-ring.c (ASSERT): Likewise.
15995 * tests/test-iconv-utf.c (ASSERT): Likewise.
15996 * tests/test-iconv.c (ASSERT): Likewise.
15997 * tests/test-isfinite.c (ASSERT): Likewise.
15998 * tests/test-isnand.c (ASSERT): Likewise.
15999 * tests/test-isnanf.c (ASSERT): Likewise.
16000 * tests/test-isnanl.h (ASSERT): Likewise.
16001 * tests/test-ldexpl.c (ASSERT): Likewise.
16002 * tests/test-linked_list.c (ASSERT): Likewise.
16003 * tests/test-linkedhash_list.c (ASSERT): Likewise.
16004 * tests/test-localename.c (ASSERT): Likewise.
16005 * tests/test-lseek.c (ASSERT): Likewise.
16006 * tests/test-mbscasecmp.c (ASSERT): Likewise.
16007 * tests/test-mbscasestr1.c (ASSERT): Likewise.
16008 * tests/test-mbscasestr2.c (ASSERT): Likewise.
16009 * tests/test-mbscasestr3.c (ASSERT): Likewise.
16010 * tests/test-mbscasestr4.c (ASSERT): Likewise.
16011 * tests/test-mbschr.c (ASSERT): Likewise.
16012 * tests/test-mbscspn.c (ASSERT): Likewise.
16013 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
16014 * tests/test-mbspbrk.c (ASSERT): Likewise.
16015 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
16016 * tests/test-mbsrchr.c (ASSERT): Likewise.
16017 * tests/test-mbsspn.c (ASSERT): Likewise.
16018 * tests/test-mbsstr1.c (ASSERT): Likewise.
16019 * tests/test-mbsstr2.c (ASSERT): Likewise.
16020 * tests/test-mbsstr3.c (ASSERT): Likewise.
16021 * tests/test-memchr2.c (ASSERT): Likewise.
16022 * tests/test-memmem.c (ASSERT): Likewise.
16023 * tests/test-open.c (ASSERT): Likewise.
16024 * tests/test-printf-frexp.c (ASSERT): Likewise.
16025 * tests/test-printf-frexpl.c (ASSERT): Likewise.
16026 * tests/test-printf-posix.c (ASSERT): Likewise.
16027 * tests/test-quotearg.c (ASSERT): Likewise.
16028 * tests/test-rbtree_list.c (ASSERT): Likewise.
16029 * tests/test-rbtree_oset.c (ASSERT): Likewise.
16030 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
16031 * tests/test-round1.c (ASSERT): Likewise.
16032 * tests/test-roundf1.c (ASSERT): Likewise.
16033 * tests/test-roundl.c (ASSERT): Likewise.
16034 * tests/test-signbit.c (ASSERT): Likewise.
16035 * tests/test-sleep.c (ASSERT): Likewise.
16036 * tests/test-snprintf-posix.c (ASSERT): Likewise.
16037 * tests/test-snprintf.c (ASSERT): Likewise.
16038 * tests/test-sprintf-posix.c (ASSERT): Likewise.
16039 * tests/test-stat-time.c (ASSERT): Likewise.
16040 * tests/test-strcasestr.c (ASSERT): Likewise.
16041 * tests/test-strerror.c (ASSERT): Likewise.
16042 * tests/test-striconv.c (ASSERT): Likewise.
16043 * tests/test-striconveh.c (ASSERT): Likewise.
16044 * tests/test-striconveha.c (ASSERT): Likewise.
16045 * tests/test-strsignal.c (ASSERT): Likewise.
16046 * tests/test-strstr.c (ASSERT): Likewise.
16047 * tests/test-strtod.c (ASSERT): Likewise.
16048 * tests/test-trunc1.c (ASSERT): Likewise.
16049 * tests/test-trunc2.c (ASSERT): Likewise.
16050 * tests/test-truncf1.c (ASSERT): Likewise.
16051 * tests/test-truncf2.c (ASSERT): Likewise.
16052 * tests/test-truncl.c (ASSERT): Likewise.
16053 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
16054 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
16055 * tests/test-vasnprintf.c (ASSERT): Likewise.
16056 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
16057 * tests/test-vasprintf.c (ASSERT): Likewise.
16058 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
16059 * tests/test-vprintf-posix.c (ASSERT): Likewise.
16060 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
16061 * tests/test-vsnprintf.c (ASSERT): Likewise.
16062 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
16063 * tests/test-wcwidth.c (ASSERT): Likewise.
16064 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
16065 * tests/test-xprintf-posix.c (ASSERT): Likewise.
16066 * tests/test-xvasprintf.c (ASSERT): Likewise.
16067 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
16068 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
16069 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
16070 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
16071 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
16072 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
16073 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
16074 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
16075 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
16076 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
16077 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
16078 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
16079 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
16080 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
16081 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
16082 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
16083 * tests/unictype/test-block_list.c (ASSERT): Likewise.
16084 * tests/unictype/test-block_of.c (ASSERT): Likewise.
16085 * tests/unictype/test-block_test.c (ASSERT): Likewise.
16086 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
16087 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
16088 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
16089 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
16090 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
16091 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
16092 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
16093 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
16094 * tests/unictype/test-combining.c (ASSERT): Likewise.
16095 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
16096 * tests/unictype/test-digit.c (ASSERT): Likewise.
16097 * tests/unictype/test-mirror.c (ASSERT): Likewise.
16098 * tests/unictype/test-numeric.c (ASSERT): Likewise.
16099 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
16100 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
16101 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
16102 * tests/unictype/test-scripts.c (ASSERT): Likewise.
16103 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
16104 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
16105 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
16106 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
16107 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
16108 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
16109 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
16110 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
16111 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
16112 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
16113 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
16114 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
16115 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
16116 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
16117 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
16118 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
16119 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
16120 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
16121 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
16122 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
16123 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
16124 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
16125 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
16126 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
16127 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
16128 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
16129 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
16130 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
16131 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
16132 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
16133 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
16134 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
16135 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
16136 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
16137 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
16138 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
16139 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
16140 Reported by Eric Blake.
16142 2008-04-11 Bruno Haible <bruno@clisp.org>
16144 * lib/wchar.in.h: Tweak comment.
16146 2008-04-11 Bruno Haible <bruno@clisp.org>
16148 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
16149 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
16151 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
16153 2008-04-11 Bruno Haible <bruno@clisp.org>
16155 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
16157 2008-04-11 Simon Josefsson <simon@josefsson.org>
16159 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
16160 of attempting to use non-existing /dev/*random. Based on patch
16161 from Adam Strzelecki <ono@java.pl> in
16162 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
16164 2008-04-08 Bruno Haible <bruno@clisp.org>
16166 Add tentative support for emx+gcc.
16167 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
16168 * lib/fpurge.c (fpurge): Likewise.
16169 * lib/freadable.c (freadable): Likewise.
16170 * lib/freadahead.c (freadahead): Likewise.
16171 * lib/freading.c (freading): Likewise.
16172 * lib/freadptr.c (freadptr): Likewise.
16173 * lib/freadseek.c (freadptrinc): Likewise.
16174 * lib/fseeko.c (rpl_fseeko): Likewise.
16175 * lib/fseterr.c (fseterr): Likewise.
16176 * lib/fwritable.c (fwritable): Likewise.
16177 * lib/fwriting.c (fwriting): Likewise.
16178 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
16180 2008-04-09 Eric Blake <ebb9@byu.net>
16182 Avoid some autoconf warnings.
16183 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
16184 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
16185 * m4/afs.m4 (gl_AFS): Likewise.
16186 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
16187 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
16188 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16189 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
16190 (gl_INTEGER_TYPE_SUFFIX): Likewise.
16191 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
16192 (AC_CHECK_DECLS_ONCE): Likewise.
16194 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
16195 gnulib-tool requires autoconf 2.59 or better.
16196 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
16198 2008-04-08 Eric Blake <ebb9@byu.net>
16200 Use 'git describe --match' if present (added in git 1.5.5).
16201 * build-aux/git-version-gen: Limit result to tags that match 'v*'
16204 2008-04-08 Bruno Haible <bruno@clisp.org>
16206 Add tentative support for OpenServer.
16207 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
16209 * lib/fpurge.c (fpurge): Likewise.
16210 * lib/freadable.c (freadable): Likewise.
16211 * lib/freadahead.c (freadahead): Likewise.
16212 * lib/freading.c (freading): Likewise.
16213 * lib/freadptr.c (freadptr): Likewise.
16214 * lib/freadseek.c (freadptrinc): Likewise.
16215 * lib/fseeko.c (rpl_fseeko): Likewise.
16216 * lib/fseterr.c (fseterr): Likewise.
16217 * lib/fwritable.c (fwritable): Likewise.
16218 * lib/fwriting.c (fwriting): Likewise.
16219 Reported by Roger Cornelius <rac@tenzing.org> and
16220 Brian K. White <brian@aljex.com>.
16222 2008-04-06 Jim Meyering <meyering@redhat.com>
16224 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
16226 2008-04-06 Bruno Haible <bruno@clisp.org>
16228 Avoid possible error with non-ASCII bytes in UTF-8 locales.
16229 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
16230 * tests/test-printf-posix.sh: Likewise.
16231 * tests/test-vfprintf-posix.sh: Likewise.
16232 * tests/test-vprintf-posix.sh: Likewise.
16233 * tests/test-xprintf-posix.sh: Likewise.
16235 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16237 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
16238 hide error from 'ls', needed on OS/2.
16239 Report by Elbert Pol <elbert.pol@gmail.com>.
16241 2008-04-04 Eric Blake <ebb9@byu.net>
16243 Make test-fseeko.c failures meaningful.
16244 * tests/test-fseeko.c: Print line number on failure.
16245 * tests/test-fseek.c: Likewise.
16246 Reported by Nelson H. F. Beebe.
16248 Improve strtod bug detection check.
16249 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
16250 required for Solaris 10.
16251 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
16253 2008-04-04 Bruno Haible <bruno@clisp.org>
16255 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
16258 2008-04-03 Eric Blake <ebb9@byu.net>
16260 Ensure sane .version contents.
16261 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
16263 * build-aux/git-version-gen: Improve documentation.
16265 Make GNU make output nicer.
16266 * top/GNUmakefile [!_have-Makefile]: Add dependency on
16267 MAKECMDGOALS to enforce message for all command line targets. Set
16268 srcdir for use in maint.mk.
16270 Another maintainer tweak.
16271 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
16272 a target that regenerates version.
16274 2008-04-03 Jim Meyering <meyering@redhat.com>
16276 vc-list-files: don't cause coreutils "make po-check" failure
16277 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
16279 2008-04-03 Eric Blake <ebb9@byu.net>
16281 Allow VPATH usage of vc-list-files.
16282 * build-aux/vc-list-files (scriptversion): Add timestamp.
16283 (options): Add --help, --version, -C.
16284 (CVS): Support installed cvsu.
16286 2008-04-02 Bruno Haible <bruno@clisp.org>
16288 Avoid some "statement with no effect" warnings from gcc.
16289 * tests/test-wctype.c (main): Explicitly ignore unused values.
16290 Reported by Jim Meyering.
16292 2008-04-02 Jim Meyering <meyering@redhat.com>
16294 Avoid some warnings from "gcc -Wshadow".
16295 * tests/test-frexp.c (exp): Define to a different identifier.
16296 * tests/test-frexpl.c (exp): Likewise.
16298 2008-04-03 Jim Meyering <meyering@redhat.com>
16300 bootstrap: remove dangling *.[ch] symlinks from lib
16301 * build-aux/bootstrap [dangling symlink removal]: Move find's
16302 -depth option to precede all others, to avoid a warning.
16303 Remove *.[ch] files too, and from "$source_base" (usually lib/).
16305 2008-04-02 Bruno Haible <bruno@clisp.org>
16307 Avoid some warnings from "gcc -Wshadow".
16308 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
16309 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
16310 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
16311 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
16312 Reported by Jim Meyering.
16314 2008-04-01 Bruno Haible <bruno@clisp.org>
16316 Fix test to work on IRIX 6.5 with cc.
16317 * tests/test-math.c (numeric_equal): New function.
16320 2008-04-01 Bruno Haible <bruno@clisp.org>
16322 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
16324 2008-04-01 Bruno Haible <bruno@clisp.org>
16326 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
16327 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16328 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
16329 (Depends-on): Remove math.
16331 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
16332 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16333 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
16334 (Depends-on): Remove math.
16336 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
16337 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16338 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
16339 (Depends-on): Remove math.
16340 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
16341 (Depends-on): Remove math.
16343 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
16344 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
16345 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
16346 (Depends-on): Remove math.
16347 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
16348 (Depends-on): Remove math.
16350 * tests/test-round1.c: Include nan.h.
16351 (main): Use NaNd instead of NAN.
16352 * modules/round-tests (Files): Add tests/nan.h.
16354 * tests/test-trunc1.c: Include nan.h.
16355 (main): Use NaNd instead of NAN.
16356 * modules/trunc-tests (Files): Add tests/nan.h.
16358 * tests/test-roundf1.c: Include nan.h.
16359 (main): Use NaNf instead of NAN.
16360 * modules/roundf-tests (Files): Add tests/nan.h.
16362 * tests/test-truncf1.c: Include nan.h.
16363 (main): Use NaNf instead of NAN.
16364 * modules/truncf-tests (Files): Add tests/nan.h.
16366 * tests/test-ceilf1.c: Include nan.h.
16367 (main): Use NaNf instead of NAN.
16368 * modules/ceilf-tests (Files): Add tests/nan.h.
16370 * tests/test-floorf1.c: Include nan.h.
16371 (main): Use NaNf instead of NAN.
16372 * modules/floorf-tests (Files): Add tests/nan.h.
16374 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
16375 (main): Use NaNf instead of NAN.
16376 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
16378 * tests/test-isnand.c: Include nan.h instead of <math.h>.
16379 (main): Use NaNd instead of NAN.
16380 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
16382 * tests/test-frexp.c: Include nan.h.
16383 (main): Use NaNd instead of NAN.
16384 * modules/frexp-tests (Files): Add tests/nan.h.
16386 * lib/isnan.c: Don't include <math.h>.
16387 (FUNC): Don't use NAN macro.
16388 * modules/isnand-nolibm (Depends-on): Remove math.
16389 * modules/isnanf-nolibm (Depends-on): Remove math.
16390 * modules/isnanl (Depends-on): Remove math.
16391 * modules/isnanl-nolibm (Depends-on): Remove math.
16393 * tests/nan.h: New file.
16395 2008-04-01 Eric Blake <ebb9@byu.net>
16398 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
16399 values to be the right type.
16401 For now, cater to gnulib strtod inaccuracies.
16402 * tests/test-strtod.c (main): Allow 1-ulp error on expected
16403 fractional results. While not as nice from a QoI perspective, it
16404 is a quicker patch than correctly implementing decimal to binary
16407 2008-03-31 Eric Blake <ebb9@byu.net>
16409 Guarantee a definition of NAN.
16410 * lib/math.in.h (NAN): Define if missing.
16411 * tests/test-math.c (main): Test it.
16412 * doc/posix-headers/math.texi (math.h): Document this.
16413 * lib/isnan.c (rpl_isnand): Use it.
16414 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
16415 * tests/test-floorf1.c (NaN): Likewise.
16416 * tests/test-frexp.c (NaN): Likewise.
16417 * tests/test-isnand.c (NaN): Likewise.
16418 * tests/test-isnanf.c (NaN): Likewise.
16419 * tests/test-round1.c (NaN): Likewise.
16420 * tests/test-roundf1.c (NaN): Likewise.
16421 * tests/test-snprintf-posix.h (NaN): Likewise.
16422 * tests/test-sprintf-posix.h (NaN): Likewise.
16423 * tests/test-trunc1.c (NaN): Likewise.
16424 * tests/test-truncf1.c (NaN): Likewise.
16425 * tests/test-vasnprintf-posix.c (NaN): Likewise.
16426 * tests/test-vasprintf-posix.c (NaN): Likewise.
16427 * modules/isnand-nolibm (Depends-on): Add math.
16428 * modules/isnanf-nolibm (Depends-on): Likewise.
16429 * modules/isnanl (Depends-on): Likewise.
16430 * modules/isnanl-nolibm (Depends-on): Likewise.
16431 * modules/snprintf-posix-tests (Depends-on): Likewise.
16432 * modules/sprintf-posix-tests (Depends-on): Likewise.
16433 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
16434 * modules/vsprintf-posix-tests (Depends-on): Likewise.
16435 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
16436 * modules/vasprintf-posix-tests (Depends-on): Likewise.
16438 2008-03-31 Bruno Haible <bruno@clisp.org>
16440 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
16441 * doc/posix-functions/strtod.texi: Likewise.
16443 2008-03-31 Bruno Haible <bruno@clisp.org>
16445 * tests/test-strtod.c (main): Don't use C99 syntax.
16447 2008-03-31 Bruno Haible <bruno@clisp.org>
16449 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
16450 Reported by Eric Blake.
16452 2008-03-31 Jim Meyering <meyering@redhat.com>
16454 Don't compare actual signbit return values.
16455 * tests/test-strtod.c (main): Rather, compare only their
16456 zero/non-zero nature.
16458 2008-03-31 Eric Blake <ebb9@byu.net>
16460 More strtod documentation.
16461 * doc/posix-functions/strtod.texi (strtod): Interpret more test
16462 failures as distinct bugs.
16464 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
16466 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
16467 Problem reported by Erik Benada in
16468 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
16470 2008-03-30 Bruno Haible <bruno@clisp.org>
16472 * tests/test-strtod.c: Add comments about which assertion fails on which
16474 * doc/posix-functions/strtod.texi: Add info about many more platforms.
16476 2008-03-30 Eric Blake <ebb9@byu.net>
16478 Test signbit behavior on zeros.
16479 * tests/test-signbit.c (test_signbitf): Add tests for zero.
16480 (test_signbitd, test_signbitl): Likewise.
16482 More strtod touchups.
16483 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
16484 sign of negative underflow, for now. Use .5, not .1.
16485 * doc/posix-functions/strtod.texi (strtod): Mention these
16487 Reported by Jim Meyering.
16489 2008-03-30 Bruno Haible <bruno@clisp.org>
16491 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
16492 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
16494 2008-03-30 Bruno Haible <bruno@clisp.org>
16496 Avoid failure when attempting to return empty iconv results on some
16498 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
16499 allocation, don't report ENOMEM when the resulting string is empty.
16501 2008-03-30 Bruno Haible <bruno@clisp.org>
16503 Fix buffer overrun.
16504 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
16505 Don't consider the width for tmp_length. Check count against tmp_length
16506 before doing the padding. Ensure enough allocation during padding.
16508 2008-03-30 Eric Blake <ebb9@byu.net>
16511 * lib/strtod.c (strtod): Avoid compiler warnings.
16512 Reported by Jim Meyering.
16514 2008-03-30 Bruno Haible <bruno@clisp.org>
16516 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
16517 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
16518 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
16519 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
16520 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
16521 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
16522 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
16523 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
16525 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
16526 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
16527 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
16528 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
16529 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
16530 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
16531 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
16532 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
16534 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
16535 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
16536 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
16537 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
16538 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
16539 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
16540 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
16541 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
16543 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
16544 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
16546 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
16547 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
16549 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
16550 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
16552 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
16553 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
16554 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
16556 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
16557 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
16558 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
16560 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
16561 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
16562 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
16564 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
16565 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
16566 * modules/vasprintf (Depends-on): Add EOVERFLOW.
16568 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
16569 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
16570 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
16571 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
16572 (Depends-on): Add EOVERFLOW.
16573 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
16574 (Depends-on): Add EOVERFLOW.
16575 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
16576 (Depends-on): Add EOVERFLOW.
16577 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
16578 (Depends-on): Add EOVERFLOW.
16579 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
16580 (Depends-on): Add EOVERFLOW.
16581 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
16582 (Depends-on): Add EOVERFLOW.
16583 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
16584 (Depends-on): Add EOVERFLOW.
16585 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
16586 (Depends-on): Add EOVERFLOW.
16588 * lib/sprintf.c (EOVERFLOW): Remove fallback.
16589 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
16590 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
16592 * lib/snprintf.c (EOVERFLOW): Remove fallback.
16593 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
16594 * modules/snprintf (Depends-on): Add EOVERFLOW.
16596 * lib/poll.c (EOVERFLOW): Remove fallback.
16597 * modules/poll (Depends-on): Add EOVERFLOW.
16599 * lib/getugroups.c (EOVERFLOW): Remove fallback.
16600 * modules/getugroups (Depends-on): Add EOVERFLOW.
16602 * lib/getdelim.c (EOVERFLOW): Remove fallback.
16603 * modules/getdelim (Depends-on): Add EOVERFLOW.
16605 * lib/ftell.c (EOVERFLOW): Remove fallback.
16606 * modules/ftell (Depends-on): Add EOVERFLOW.
16608 * lib/fprintf.c (EOVERFLOW): Remove fallback.
16609 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
16610 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
16612 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
16614 * modules/EOVERFLOW-tests: New file.
16615 * tests/test-EOVERFLOW.c: New file.
16617 * modules/EOVERFLOW: New file.
16618 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
16620 2008-03-30 Bruno Haible <bruno@clisp.org>
16622 Fix bug introduced on 2007-06-10.
16623 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
16624 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
16626 2008-03-30 Bruno Haible <bruno@clisp.org>
16628 Improve freadseek's efficiency after ungetc.
16629 * lib/freadseek.c: Include freadahead.h.
16630 (freadptrinc): New function, extracted from freadseek.
16631 (freadseek): Use it in a loop. Use freadahead to determine the number
16632 of loop iterations.
16633 * modules/freadseek (Depends-on): Add freadahead.
16634 (configure.ac): Require AC_C_INLINE.
16636 2008-03-30 Bruno Haible <bruno@clisp.org>
16638 * lib/freadseek.c (freadseek): Don't ignore the return value of
16641 2008-03-29 Eric Blake <ebb9@byu.net>
16643 Add hex float support.
16644 * modules/strtod (Depends-on): Add c-ctype.
16645 (Link): Mention POW_LIB.
16646 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
16647 whitespace between 'e' and exponent.
16648 * tests/test-strtod.c (main): Enable hex float tests.
16649 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
16652 Document various strtod bugs, with some fixes.
16653 * doc/posix-functions/strtod.texi (strtod): Document bugs with
16654 "-0x", "inf", "nan", and hex constants.
16655 * doc/posix-functions/atof.texi (atof): Likewise.
16656 * modules/stdlib (Makefile.am): Support strtod.
16657 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
16658 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
16659 detect additional strtod bugs.
16660 * lib/stdlib.in.h (rpl_strtod): Add declarations.
16661 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
16662 bool where appropriate. Parse 'inf' and 'nan'.
16663 * tests/test-strtod.c: New file.
16664 * modules/strtod (Depends-on): Add stdbool, stdlib.
16665 (configure.ac): Turn on module indicator.
16666 * modules/strtod-tests: New module.
16668 2008-03-29 Eric Blake <ebb9@byu.net>
16670 Fix ftell on mingw.
16671 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
16672 * modules/ftell-tests (Depends-on): Add binary-io.
16673 * modules/ftello-tests (Depends-on): Likewise.
16674 * tests/test-ftell.c (main): Enhance test to cover behavior after
16675 ungetc. Enforce binary mode.
16676 * tests/test-ftello.c (main): Likewise.
16678 Pass test-freadseek on cygwin.
16679 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
16680 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
16683 * tests/test-fflush2.c (main): Fix typo.
16685 2008-03-29 Bruno Haible <bruno@clisp.org>
16687 * tests/test-fflush2.c (main): Temporarily disable the contents of
16689 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
16690 Reported by Eric Blake.
16692 2008-03-28 Simon Josefsson <simon@josefsson.org>
16694 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
16695 (GC_SHA224_DIGEST_SIZE): Add.
16697 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
16698 (gc_hash_digest_length): Likewise.
16699 (gc_hash_buffer): Likewise.
16701 2008-03-25 Bruno Haible <bruno@clisp.org>
16703 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
16704 detail which gettext release to use.
16705 Reported by Simon Josefsson.
16707 2008-03-26 Jim Meyering <meyering@redhat.com>
16709 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
16710 * modules/gnumakefile (clean-GNUmakefile): Also, use
16711 test ... && ... || : syntax rather than if-then ... fi.
16713 gnumakefile: Don't double-quote-expand $(VPATH) value.
16714 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
16716 2008-03-24 Eric Blake <ebb9@byu.net>
16718 Alter GNUmakefile to install into top directory.
16719 * modules/maintainer-makefile: Split, and add dependency...
16720 * modules/gnumakefile: to this new module.
16721 * build-aux/GNUmakefile: Move...
16722 * top/GNUmakefile: ...here.
16723 * build-aux/maint.mk: Move...
16724 * top/maint.mk: ...here.
16725 * MODULES.html.sh (Support for maintaining...): Document new
16728 2008-03-23 Bruno Haible <bruno@clisp.org>
16730 * gnulib-tool: New options --vc-files, --no-vc-files.
16731 (func_usage): Document them.
16732 (vc_files): New variable.
16733 (func_import): Consider vc_files.
16734 (func_create_testdir): Set vc_files to empty.
16735 Suggested by Jim Meyering and Karl Berry.
16737 2008-03-23 Bruno Haible <bruno@clisp.org>
16739 Fix regex compilation error on HP-UX 11.
16740 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
16741 * modules/regex (Files): Add m4/mbstate_t.m4.
16742 Reported by Ton Voon <ton.voon@altinity.com>.
16744 2008-03-23 Bruno Haible <bruno@clisp.org>
16746 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
16748 2008-03-23 Eric Blake <ebb9@byu.net>
16749 Bruno Haible <bruno@clisp.org>
16751 Install files from top/ in the destination directory.
16752 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
16753 augmentation also for the files from top/.
16754 (func_import, func_create_testdir): Rewrite file names:
16755 top/filename -> filename.
16757 2008-03-23 Bruno Haible <bruno@clisp.org>
16759 Tweak "gnulib --version" output.
16760 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
16762 2008-03-23 Bruno Haible <bruno@clisp.org>
16764 Tweak "gnulib --version" output.
16765 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
16766 rather than contents of ChangeLog, when possible.
16768 2008-03-21 Eric Blake <ebb9@byu.net>
16770 More --version tweaks.
16771 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
16772 date of last ChangeLog entry.
16774 2008-03-21 Jim Meyering <meyering@redhat.com>
16776 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
16778 2008-03-20 Eric Blake <ebb9@byu.net>
16781 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
16783 2008-03-20 Simon Josefsson <simon@josefsson.org>
16785 * build-aux/GNUmakefile: Make git-version-gen optional. Add
16786 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
16788 2008-03-20 Eric Blake <ebb9@byu.net>
16790 Sync GNUmakefile with coreutils.
16791 * build-aux/GNUmakefile (have-Makefile): Rename...
16792 (_have-Makefile): ...to this, for namespace consideration.
16793 (GNUmakefile.cfg): Include, if present.
16794 (_autoreconf): Define a default.
16795 (_is-dist-target): New rule for rebuilds to pick up intra-release
16797 (maint-cfg.mk): Rename...
16798 (cfg.mk): ...to this.
16800 2008-03-18 Jim Meyering <meyering@redhat.com>
16802 New script and module: mktempd
16803 * MODULES.html.sh (maint+release support): Add mktempd.
16804 * build-aux/mktempd: New file.
16805 * modules/mktempd: New file.
16807 2008-03-15 Jim Meyering <meyering@redhat.com>
16810 * lib/sha1.c, lib/md5.c: 63 != ~63.
16811 Reported by Andreas Schwab.
16813 sha1.c, md5.c: Hoist a redundant expression.
16814 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
16815 "ctx->buflen" only once, before calling *_process_block.
16816 * lib/md5.c (md5_process_bytes): Likewise.
16818 2008-03-14 Eric Blake <ebb9@byu.net>
16820 Bump copyright year in files generated by gnulib-tool.
16821 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
16822 gnulib-tool, rather than hard-coding it.
16824 Fix 'gnulib-tool --version' output to work with git.
16825 * gnulib-tool (func_gnulib_dir): New function, extracted from...
16826 (startup): ...here.
16827 (func_version): Use it to invoke git-version-gen, rather than
16828 relying on CVS keyword expansion. Modernize wording.
16829 (cvsdatestamp, last_checkin_date, version): Kill unused
16832 2008-03-12 Jim Meyering <meyering@redhat.com>
16834 Recognize optional cast of the argument to free.
16835 * build-aux/useless-if-before-free: Update regexps.
16837 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
16839 2008-03-11 Bruno Haible <bruno@clisp.org>
16841 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
16842 by a single package.
16843 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
16844 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
16845 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
16846 Reported by Sam Steingold <sds@gnu.org>.
16848 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
16850 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
16853 2008-03-11 Bruno Haible <bruno@clisp.org>
16855 Avoid conflicts between local macro definitions.
16856 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
16857 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
16859 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
16860 Bruno Haible <bruno@clisp.org>
16862 Make va_copy work with some version of xlc on AIX 5.1.
16863 * lib/stdarg.in.h: New file.
16864 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
16865 On AIX, use a <stdarg.h> file substitute.
16866 * modules/stdarg (Files): Add lib/stdarg.in.h.
16867 (Depends-on): Add include_next.
16868 (Makefile.am): Build a stdarg.h substitute if requested.
16869 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
16871 2008-03-10 Bruno Haible <bruno@clisp.org>
16873 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
16874 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
16875 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
16877 2008-03-10 Bruno Haible <bruno@clisp.org>
16879 * modules/stdlib (Depends-on): Add include_next, remove
16882 2008-03-09 Bruno Haible <bruno@clisp.org>
16884 * lib/freadahead.h (freadahead): Document more precisely.
16885 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
16886 the sum of both buffer sizes.
16887 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
16888 * NEWS: Document the change.
16890 2008-03-09 Bruno Haible <bruno@clisp.org>
16892 Extend freadptr to return also the buffer size.
16893 * lib/freadptr.h (freadptr): Add sizep argument.
16894 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
16895 (freadptr): Add sizep argument. Determine buffer size like freadahead
16897 * tests/test-freadptr.c: Don't include freadahead.h.
16898 (main): Adapt for new calling convention of freadptr.
16899 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
16900 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
16901 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
16902 tests/test-freadptr2.sh.
16903 (Depends): Remove freadahead.
16904 (TESTS): Add test-freadptr2.sh.
16905 (check_PROGRAMS): Add test-freadptr2.
16907 2008-03-09 Bruno Haible <bruno@clisp.org>
16909 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
16910 Report and solution by Simon Josefsson.
16912 2008-03-06 Bruno Haible <bruno@clisp.org>
16914 Make fflush after ungetc work on BSD platforms.
16915 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
16916 * tests/test-fflush2.c: New file.
16917 * tests/test-fflush2.sh: New file.
16918 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
16919 tests/test-fflush2.c.
16920 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
16921 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
16923 2008-03-06 Eric Blake <ebb9@byu.net>
16925 Likewise for ftello.
16926 * modules/ftello (Dependencies): Add extensions.
16927 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
16929 2008-03-06 Bruno Haible <bruno@clisp.org>
16931 * modules/fseeko (Dependencies): Add extensions.
16932 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
16933 Needed on glibc systems.
16935 2008-03-06 Bruno Haible <bruno@clisp.org>
16937 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
16939 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16941 2008-03-06 Bruno Haible <bruno@clisp.org>
16943 * users.txt: Add libgnupdf.
16945 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
16947 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
16948 (Header File Substitutes, Function Substitutes,
16949 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
16950 (Build robot for gnulib): Fix typo.
16952 2008-03-06 Bruno Haible <bruno@clisp.org>
16954 * doc/gnulib-tool.texi (VCS Issues): Small updates.
16955 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
16957 2008-03-06 Bruno Haible <bruno@clisp.org>
16959 * doc/func.texi: New file, extracted from doc/gnulib.texi.
16960 * doc/gnulib.texi: Include it.
16962 2008-03-06 Simon Josefsson <simon@josefsson.org>
16964 * modules/func (License): Change license to unlimited; there was
16965 no LGPL parts in the module anyway.
16967 2008-03-06 Simon Josefsson <simon@josefsson.org>
16969 * modules/__func__: Renamed to modules/func.
16970 * modules/__func__-tests: Renamed to modules/func-tests.
16971 * tests/test-__func__.c: Renamed to tests/test-func.c.
16972 * m4/__func__.m4: Renamed to m4/func.m4.
16973 * doc/gnulib.texi (__func__): Section renamed to func.
16974 Suggested by Eric Blake <ebb9@byu.net>.
16976 2008-03-06 Simon Josefsson <simon@josefsson.org>
16978 * doc/gnulib.texi (__func__): Use C99 terminology when talking
16979 about __func__. Make example self-contained. Suggested by Eric
16980 Blake <ebb9@byu.net>.
16982 * tests/test-__func__.c (main): Avoid extraneous () around __func.
16983 Suggested by Eric Blake <ebb9@byu.net>.
16985 2008-03-06 Simon Josefsson <simon@josefsson.org>
16987 * modules/__func__: New file.
16988 * modules/__func__-tests: New file.
16989 * tests/test-__func__.c: New file.
16990 * m4/__func__.m4: New file.
16991 * doc/gnulib.texi (__func__): Document __func__ module.
16993 2008-03-05 Simon Josefsson <simon@josefsson.org>
16995 * modules/byteswap (License): Re-license as LGPLv2+.
16997 2008-03-05 Simon Josefsson <simon@josefsson.org>
16999 * doc/Makefile: Add pdf target.
17001 2008-03-05 Simon Josefsson <simon@josefsson.org>
17003 * modules/inline (License): Use 'unlimited', since there are only
17004 *.m4 files in this module.
17006 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
17007 Bruno Haible <bruno@clisp.org>
17009 Add support for HP C 7.1 on OpenVMS 8.3.
17010 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
17012 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
17014 Update VMS specifics.
17015 * lib/getopt.c [VMS]: Remove include of unixlib.h.
17017 2008-03-02 Jim Meyering <meyering@redhat.com>
17019 Remove the last dependency on the "free" module.
17020 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
17021 Reported by Bob Proulx.
17023 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
17025 Remove useless "if" tests before free. Deprecate "free" module.
17026 * doc/posix-functions/free.texi: Mention that this
17027 module is no longer useful.
17028 * modules/free (Notice): Say this module is obsolete.
17029 * modules/readutmp (Depends-on): Remove free.
17030 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
17031 * lib/putenv.c (putenv): Likewise.
17032 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
17033 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
17034 * tests/test-c-strcasestr.c (main): Likewise.
17035 * tests/test-c-strstr.c (main): Likewise.
17036 * tests/test-mbscasestr1.c (main): Likewise.
17037 * tests/test-mbscasestr2.c (main): Likewise.
17038 * tests/test-mbsstr1.c (main): Likewise.
17039 * tests/test-mbsstr2.c (main): Likewise.
17040 * tests/test-memmem.c (main): Likewise.
17041 * tests/test-strcasestr.c (main): Likewise.
17042 * tests/test-striconv.c (main): Likewise.
17043 * tests/test-striconveh.c (main): Likewise.
17044 * tests/test-striconveha.c (main): Likewise.
17045 * tests/test-strstr.c (main): Likewise.
17047 * build-aux/git-version-gen: Adjust a comment and the Usage string.
17049 bootstrap: sync from coreutils again
17050 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
17052 2008-03-01 Jim Meyering <meyering@redhat.com>
17054 bootstrap: sync from coreutils
17055 * build-aux/bootstrap (update_po_files): Copy a .po file into place
17056 also when the target doesn't exist.
17058 2008-03-01 Eric Blake <ebb9@byu.net>
17060 Fix bugs in last patch.
17061 * lib/memchr2.c (memchr2): Fix typo.
17062 * tests/test-memchr2.c: Test previous bug, and don't use GNU
17064 Reported by Bruce Korb.
17066 New module 'memchr2'.
17067 * modules/memchr2: New file.
17068 * modules/memchr2-tests: Likewise.
17069 * lib/memchr2.h: Likewise.
17070 * lib/memchr2.c: Likewise, based on memchr.c.
17071 * tests/test-memchr2.c: New test.
17072 * MODULES.html.sh (String handling): Add memchr2.
17074 2008-02-29 Bruno Haible <bruno@clisp.org>
17076 * modules/freadseek-tests: New file.
17077 * tests/test-freadseek.sh: New file.
17078 * tests/test-freadseek.c: New file.
17080 New module 'freadseek'.
17081 * modules/freadseek: New file.
17082 * lib/freadseek.h: New file.
17083 * lib/freadseek.c: New file.
17084 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
17086 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
17088 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
17091 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
17092 program_invocation_name and program_invocation_short_name are
17095 2008-02-28 Bruno Haible <bruno@clisp.org>
17097 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
17098 * tests/test-freadptr.sh: Also test non-seekable stdin.
17100 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
17102 * build-aux/bootstrap (source_base, m4_base)
17103 (doc_base, tests_base): New variables.
17104 (gnulib_tool_options): Do not hardcode base directories, use
17105 the above variables instead.
17107 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
17109 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
17111 2008-02-28 Bruno Haible <bruno@clisp.org>
17113 * modules/freadptr-tests: New file.
17114 * tests/test-freadptr.sh: New file.
17115 * tests/test-freadptr.c: New file.
17117 New module 'freadptr'.
17118 * modules/freadptr: New file.
17119 * lib/freadptr.h: New file.
17120 * lib/freadptr.c: New file.
17121 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
17123 2008-02-26 Karl Berry <karl@freefriends.org>
17126 * libltdl/argz.c (argz_add, argz_count): New functions.
17127 * libltdl/argz.in.h: Declare them.
17128 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
17130 2008-02-22 Bruno Haible <bruno@clisp.org>
17132 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
17133 is a pointer type. Needed for HP-UX 10.
17134 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
17135 * doc/posix-functions/gmtime_r.texi: Likewise.
17136 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
17138 2008-02-24 Bruno Haible <bruno@clisp.org>
17140 * modules/environ-tests: New file.
17141 * tests/test-environ.c: New file.
17143 New module 'environ'.
17144 * modules/environ: New file.
17145 * lib/unistd.in.h (environ): New declaration.
17146 * m4/environ.m4: New file.
17147 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
17149 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
17151 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
17153 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
17154 wrong claim that 'environ' is missing on some systems.
17155 * modules/execute (Depends-on): Add environ.
17156 * lib/execute.c (environ): Remove fallback declaration.
17157 * modules/pipe (Depends-on): Add environ.
17158 * lib/pipe.c (environ): Remove fallback declaration.
17159 * modules/setenv (Depends-on): Add environ.
17160 * lib/setenv.c (environ): Remove fallback declaration.
17161 * modules/unsetenv (Depends-on): Add environ.
17162 * lib/unsetenv.c (environ): Remove fallback declaration.
17163 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
17165 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
17166 (gl_PREREQ_UNSETENV): Likewise.
17168 2008-02-24 Bruno Haible <bruno@clisp.org>
17170 * doc/posix-functions/environ.texi: Document the MacOS X problem.
17172 2008-02-20 Bob Proulx <bob@proulx.com>
17174 Enable use of older two part flavor 'git describe'.
17175 * build-aux/git-version-gen: If using the older two part flavor of
17176 git version then recreate the third part now present in the
17177 newer three part flavor of git describe.
17179 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
17181 * lib/fts.c (fts_build): Typo correction to comment.
17183 2008-02-17 Bruno Haible <bruno@clisp.org>
17185 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
17186 generating no-op conflicts.
17188 2008-02-17 Bruno Haible <bruno@clisp.org>
17191 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
17192 result_entries, rather than an index-based loop.
17194 2008-02-17 Bruno Haible <bruno@clisp.org>
17197 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
17199 (entry_create): New function.
17200 (entry_hashcode): Use the cached hashcode if possible.
17201 (read_changelog_file, try_split_merged_entry): Use entry_create.
17203 2008-02-17 Bruno Haible <bruno@clisp.org>
17205 Speed up from O(n^2) to O(n) for long ChangeLog files.
17206 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
17207 (read_changelog_file): Change implementation of entries_reversed list
17209 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
17211 2008-02-17 Bruno Haible <bruno@clisp.org>
17213 New option --split-merged-entry.
17214 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
17215 (find_paragraph_end, try_split_merged_entry): New functions.
17216 (long_options): Add option --split-merged-entry.
17217 (usage): Document option --split-merged-entry.
17218 (main): Implement option --split-merged-entry.
17219 Reported by Eric Blake.
17221 2008-02-17 Bruno Haible <bruno@clisp.org>
17223 * lib/git-merge-changelog.c: Include c-strstr.h.
17224 (main): Support the "git pull --rebase" situation.
17225 * modules/git-merge-changelog (Depends-on): Add c-strstr.
17226 Reported by Eric Blake.
17228 2008-02-16 Eric Blake <ebb9@byu.net>
17230 Avoid doubling \ in common case of "c-maybe" quoting style.
17231 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
17232 eliding outer quotes.
17233 * lib/quotearg.h: Document this.
17234 * tests/test-quotearg.c (result_strings, inputs, results_g)
17235 (flag_results, locale_results): Test it by adding a new string to
17237 (compare_strings): Test new string.
17239 2008-02-13 Eric Blake <ebb9@byu.net>
17241 Avoid trigraph quoting in default output.
17242 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
17243 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
17244 unless explicitly requested.
17245 * tests/test-quotearg.c (flag_results, main): Add additional tests.
17247 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
17249 Don't rely on signed integer overflowing to negative value.
17250 * lib/getugroups.c (getugroups): Include <limits.h>.
17251 Instead, compare against INT_MAX, and increment only if the test passes.
17253 2008-02-13 Jim Meyering <meyering@redhat.com>
17254 and Eric Blake <ebb9@byu.net>
17256 Avoid shadowing warning and compile errors on Linux.
17257 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
17258 forwarding macros on Linux.
17259 (dcgettext): Define a stub, for Linux.
17260 (results_g, main): Avoid warnings.
17262 2008-02-12 Eric Blake <ebb9@byu.net>
17264 Silence warning in last patch.
17265 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
17267 Quotearg part 4: add tests, fix c-maybe colon quoting.
17268 * lib/quotearg.h: Improve documentation.
17269 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
17270 escapes when adding outer quotes. When quoting trigraphs, use
17271 valid C notation. When quoting NUL, omit extra characters if next
17272 character is not digit. Alter prototype.
17273 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
17275 * modules/quotearg-tests: New module.
17276 * tests/test-quotearg.c: New test.
17278 2008-02-07 Eric Blake <ebb9@byu.net>
17280 Quotearg part 3: add flag to control outer quote elision.
17281 * lib/quotearg.h (c_maybe_quoting_style): New style.
17282 (enum quoting_flags): Better documentation of flags.
17283 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
17285 (quotearg_buffer_restyled): Handle new flag to elide outer
17288 Quotearg part 2: add flag that can control NUL elision.
17289 * lib/quotearg.h (set_quoting_flags): New prototype.
17290 * lib/quotearg.c (struct quoting_options): Add flag field.
17291 (set_quoting_flags): New function.
17292 (quotearg_buffer_restyled): Add flags parameter.
17293 (quotearg_alloc_mem): Set the flag if length cannot be returned.
17294 (quotearg_n_options): Set the flag, since length cannot be
17296 (quoting_options_from_style): Default flags correctly.
17298 Quotearg part 1: more wrappers, restore quotearg_char state.
17299 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
17300 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
17301 (quotearg_colon_mem): New wrappers.
17302 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
17303 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
17305 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
17306 (quotearg_colon_mem): New functions.
17308 2008-02-11 Bruno Haible <bruno@clisp.org>
17310 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
17311 library in the current directory: it does not work with parallel make.
17312 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17314 2008-02-11 Bruno Haible <bruno@clisp.org>
17316 * .gitattributes: New file.
17318 2008-02-11 Jim Meyering <meyering@redhat.com>
17320 useless-if-before-free: Fix reversed exit values.
17321 * build-aux/useless-if-before-free: Use correct values
17322 for EXIT_MATCH and EXIT_NO_MATCH.
17324 * build-aux/useless-if-before-free: Close stdout carefully.
17326 2008-02-10 Bruno Haible <bruno@clisp.org>
17328 New module 'git-merge-changelog'.
17329 * modules/git-merge-changelog: New file.
17330 * lib/git-merge-changelog.c: New file.
17332 2008-02-10 Jim Meyering <meyering@redhat.com>
17334 useless-if-before-free: New option: --list (-l).
17336 useless-if-before-free: Don't exit immediately upon open failure.
17337 * build-aux/useless-if-before-free: Exit 2 for errors.
17338 Upon failure to open a file, don't exit immediately.
17339 Rather, just warn and continue with any remaining files.
17341 2008-02-10 Bruno Haible <bruno@clisp.org>
17343 New abstract list operation 'node_set_value'.
17344 * lib/gl_list.h (gl_list_node_set_value): New function.
17345 (struct gl_list_implementation): New field node_set_value.
17346 * lib/gl_list.c (gl_list_node_set_value): New function.
17347 * lib/gl_array_list.c (gl_array_node_set_value): New function.
17348 (gl_array_list_implementation): Update.
17349 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
17350 (gl_carray_list_implementation): Update.
17351 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
17352 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
17353 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
17354 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
17355 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
17356 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
17357 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
17359 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
17360 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
17361 (gl_sublist_list_implementation): Update.
17363 2008-02-10 Bruno Haible <bruno@clisp.org>
17365 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
17366 Needed when ELEMENT is #defined to 'some_type *'.
17368 2008-02-10 Jim Meyering <meyering@redhat.com>
17370 New script and module: useless-if-before-free
17371 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
17372 * build-aux/useless-if-before-free: New file.
17373 * modules/useless-if-before-free: New file.
17375 * build-aux/gitlog-to-changelog: Use committer date, not author date.
17377 xstrtol_error: Fix typo.
17378 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
17379 s/exit_failure/exit_status/.
17381 2008-02-09 Jim Meyering <meyering@redhat.com>
17383 New script and module: gitlog-to-changelog
17384 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
17385 * modules/gitlog-to-changelog: New file.
17386 * build-aux/gitlog-to-changelog: New file.
17388 2008-02-08 Jim Meyering <meyering@redhat.com>
17390 Avoid two "parameter unused" warnings.
17391 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
17394 Use "git COMMAND", not "git-COMMAND".
17395 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
17396 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
17397 * build-aux/git-version-gen: Use "git status", not "git-status".
17399 2008-02-07 Bruno Haible <bruno@clisp.org>
17401 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
17402 Avoids a crash on Windows Vista.
17403 Reported by Adam Strzelecki <ono@java.pl> via
17404 Simon Josefsson <simon@josefsson.org>.
17406 2008-02-06 Bruno Haible <bruno@clisp.org>
17408 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
17409 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
17410 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
17411 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
17412 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
17413 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
17414 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
17415 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
17416 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
17417 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17418 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17419 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17420 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
17421 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17422 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17423 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
17425 * tests/test-snprintf-posix.h (test_function): Likewise.
17426 * tests/test-sprintf-posix.h (test_function): Likewise.
17427 * tests/test-vasprintf-posix.c (test_function): Likewise.
17428 * doc/posix-functions/fprintf.texi: Update.
17429 * doc/posix-functions/printf.texi: Update.
17430 * doc/posix-functions/snprintf.texi: Update.
17431 * doc/posix-functions/sprintf.texi: Update.
17432 * doc/posix-functions/vfprintf.texi: Update.
17433 * doc/posix-functions/vprintf.texi: Update.
17434 * doc/posix-functions/vsnprintf.texi: Update.
17435 * doc/posix-functions/vsprintf.texi: Update.
17436 Reported by Peter Fales <psfales@alcatel-lucent.com>.
17438 2008-02-06 Bruno Haible <bruno@clisp.org>
17440 Fix bug introduced on 2008-01-26.
17441 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
17443 2008-02-06 Bruno Haible <bruno@clisp.org>
17445 Fix bug introduced on 2007-06-10.
17446 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
17447 !NEED_PRINTF_FLAG_ZERO.
17449 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
17451 getloadavg: use libperfstat on AIX5
17452 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
17454 2008-02-03 Bruno Haible <bruno@clisp.org>
17456 * lib/diffseq.h: Add comments about required #includes.
17457 Reported by Michael Biggs <gnulib@doubleplum.net>.
17459 2008-02-01 Bruno Haible <bruno@clisp.org>
17461 * users.txt: Add gnuit.
17463 2008-01-31 Bruno Haible <bruno@clisp.org>
17465 * lib/md4.c (set_uint32): Mark as inline.
17466 * lib/md5.c (set_uint32): Likewise.
17467 * lib/sha1.c (set_uint32): Likewise.
17468 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
17469 * m4/md5.m4 (gl_MD5): Likewise.
17470 * m4/sha1.m4 (gl_SHA1): Likewise.
17472 2008-01-31 Jim Meyering <meyering@redhat.com>
17474 Use "sizeof VAR", rather than a literal "4".
17475 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
17476 * lib/md4.c (md4_read_ctx): Likewise.
17477 * lib/sha1.c (sha1_read_ctx): Likewise.
17479 2008-01-31 Simon Josefsson <simon@josefsson.org>
17481 * tests/test-sha1.c: New file, based on test-md5.c.
17483 * modules/crypto/sha1-tests: New file.
17485 2008-01-31 Simon Josefsson <simon@josefsson.org>
17487 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
17489 2008-01-31 Jim Meyering <meyering@redhat.com>
17491 Prefer "sizeof v" over the equivalent "4".
17492 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
17493 * lib/md5.c (set_uint32): Likewise.
17494 * lib/sha1.c (set_uint32): Likewise.
17496 2008-01-31 Simon Josefsson <simon@josefsson.org>
17498 * lib/sha1.c (set_uint32): Mark function as static.
17500 2008-01-31 Simon Josefsson <simon@josefsson.org>
17502 md2: clarify comments to say that alignment is not required.
17503 * lib/md2.h: Remove warning about alignment in comment.
17504 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
17505 never been required.
17507 2008-01-31 Simon Josefsson <simon@josefsson.org>
17509 md4: adapt alignment constraint fix from sha1.
17510 * lib/md4.c (set_uint32): New function, from sha1.c
17511 (md4_read_ctx): Use it.
17512 (md4_finish_ctx): Doc fix.
17513 * lib/md4.h: Doc fix.
17515 2008-01-31 Simon Josefsson <simon@josefsson.org>
17517 md5: adapt alignment constraint fix from sha1.
17518 * lib/md5.c (set_uint32): New function, from sha1.c
17519 (md5_read_ctx): Use it.
17520 (md5_finish_ctx): Doc fix.
17521 * lib/md5.h: Doc fix.
17523 2008-01-30 Peter Palfrader <weasel@debian.org>
17525 sha1: remove the result buffer alignment constraint
17526 * lib/sha1.c (set_uint32): New function.
17527 (sha1_read_ctx): Rewrite to remove the result buffer alignment
17529 (sha1_finish_ctx): Remove comment warning about alignment constraint.
17530 * lib/sha1.h: Likewise.
17532 2008-01-30 Andreas Schwab <schwab@suse.de>
17533 Bruno Haible <bruno@clisp.org>
17535 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
17536 correct definition of LDBL_MIN_EXP.
17538 2008-01-30 Karl Berry <karl@gnu.org>
17540 * config/srclist-update: try to preserve x bit on updates.
17541 * config/srclistvars.sh: update for karl.
17543 2008-01-29 Jim Meyering <meyering@redhat.com>
17545 vasnprintf.c: Avoid warning about unused label
17546 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
17547 "overflow" label definition and associated code with the
17548 same cpp condition that guards the sole use of that label.
17550 2008-01-26 Bruno Haible <bruno@clisp.org>
17552 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
17553 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
17554 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
17555 * lib/isnanl-nolibm.h (isnanl): Likewise.
17556 Reported by Paul Eggert <eggert@cs.ucla.edu>.
17558 2008-01-26 Bruno Haible <bruno@clisp.org>
17560 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
17561 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
17563 2008-01-26 Bruno Haible <bruno@clisp.org>
17565 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
17566 GCC >= 4.0 built-in.
17567 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
17569 2008-01-26 Bruno Haible <bruno@clisp.org>
17571 Rename isnan, applicable to 'double' only, to isnand.
17572 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
17573 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
17574 (configure.ac): Update.
17575 (Include): Replace "isnan.h" with "isnand.h".
17576 * m4/isnand.m4: Renamed from m4/isnan.m4.
17577 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
17578 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
17579 instead of isnan.c.
17580 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
17581 instead of HAVE_ISNAN_IN_LIBC.
17582 (isnand): Renamed from isnan.
17583 * lib/isnand.c: New file.
17584 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
17585 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
17586 (Makefile.am): Update.
17587 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
17588 Include isnand.h instead of isnan.h.
17589 (main): Test isnand instead of isnan.
17590 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
17592 * modules/frexp (Depends-on): Likewise.
17593 * modules/frexp-tests (Depends-on): Likewise.
17594 * modules/frexp-nolibm (Depends-on): Likewise.
17595 * modules/frexp-nolibm-tests (Depends-on): Likewise.
17596 * modules/isfinite (Depends-on): Likewise.
17597 * modules/round-tests (Depends-on): Likewise.
17598 * modules/signbit (Depends-on): Likewise.
17599 * modules/signbit-tests (Depends-on): Likewise.
17600 * modules/snprintf-posix (Depends-on): Likewise.
17601 * modules/sprintf-posix (Depends-on): Likewise.
17602 * modules/trunc-tests (Depends-on): Likewise.
17603 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
17604 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
17605 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
17606 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
17607 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
17608 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
17609 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
17610 * modules/vasnprintf-posix (Depends-on): Likewise.
17611 * modules/vasprintf-posix (Depends-on): Likewise.
17612 * modules/vfprintf-posix (Depends-on): Likewise.
17613 * modules/vsnprintf-posix (Depends-on): Likewise.
17614 * modules/vsprintf-posix (Depends-on): Likewise.
17615 * lib/frexp.c: Include isnand.h instead of isnan.h.
17616 (ISNAN): Set to isnand instead of isnan.
17617 * lib/isfinite.c: Include isnand.h instead of isnan.h.
17618 (gl_isfinited): Use isnand instead of isnan.
17619 * lib/signbitd.c: Include isnand.h instead of isnan.h.
17620 (gl_signbitd): Use isnand instead of isnan.
17621 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
17622 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
17623 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
17624 (main): Use isnand instead of isnan.
17625 * tests/test-round1.c: Include isnand.h.
17626 (main): Use isnand instead of isnan.
17627 * tests/test-round2.c: Include isnand.h instead of isnan.h.
17628 (ISNAN): Set to isnand instead of isnan.
17629 * tests/test-trunc1.c: Include isnand.h.
17630 (main): Use isnand instead of isnan.
17631 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
17632 (equal): Use isnand instead of isnan.
17633 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
17635 * NEWS: Mention the change.
17637 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
17638 Bruno Haible <bruno@clisp.org>
17640 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
17641 the GCC builtins for signbits are present and set
17642 REPLACE_SIGNBIT_USING_GCC if so.
17643 * lib/math.in.h (signbit): Define using GCC builtins if
17644 REPLACE_SIGNBIT_USING_GCC is set.
17645 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
17646 REPLACE_SIGNBIT_USING_GCC.
17647 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
17649 2008-01-25 Jim Meyering <meyering@redhat.com>
17651 Prefer <config.h> over "config.h". See autoconf doc for explanation.
17652 * lib/poll.c: Include <config.h>, not "config.h".
17653 * tests/test-getaddrinfo.c: Likewise.
17655 2008-01-25 Simon Josefsson <simon@josefsson.org>
17657 * modules/sockets-tests: New file.
17659 2008-01-24 Simon Josefsson <simon@josefsson.org>
17661 * modules/sockets: New module, can be used to call WSA_Startup and
17662 WSA_Cleanup when needed.
17664 * lib/sockets.h, lib/sockets.c: New files.
17666 * m4/sockets.m4: New file.
17668 * tests/test-sockets.c: New file.
17670 2008-01-19 Bruno Haible <bruno@clisp.org>
17672 * doc/posix-headers: Renamed from doc/headers.
17673 * doc/posix-functions: Renamed from doc/functions.
17674 * doc/gnulib.texi: Update.
17676 2008-01-19 Bruno Haible <bruno@clisp.org>
17678 * doc/glibc-functions/strcasestr.texi: Include contents of
17679 doc/functions/strcasestr.texi, fixing the list of platforms.
17680 * doc/functions/strcasestr.texi: Remove file.
17682 2008-01-19 Bruno Haible <bruno@clisp.org>
17684 * doc/glibc-functions/memmem.texi: Include contents of
17685 doc/functions/memmem.texi.
17686 * doc/functions/memmem.texi: Remove file.
17688 2008-01-18 Bruno Haible <bruno@clisp.org>
17690 * doc/glibc-functions/*.texi: New files.
17691 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
17692 to use the new files.
17694 2008-01-17 Bruno Haible <bruno@clisp.org>
17696 * tests/test-gethostname.c (main): Fix printf statement.
17698 2008-01-17 Simon Josefsson <simon@josefsson.org>
17700 * modules/gethostname-tests: New file.
17702 * tests/test-gethostname.c: New file.
17704 2008-01-17 Simon Josefsson <simon@josefsson.org>
17706 * lib/gethostname.c: Include string.h unconditionally, strncpy is
17707 used by the UNAME case. Reported by Bruno Haible
17710 2008-01-17 Eric Blake <ebb9@byu.net>
17712 Convert c-strcasestr to be more efficient.
17713 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
17714 (Depends-on): Add c-strcase, remove malloca, strnlen.
17715 * tests/test-c-strcasestr.c (main): Enhance test.
17716 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
17718 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
17720 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
17721 Use it in creating po/Makevars.
17723 2008-01-15 Simon Josefsson <simon@josefsson.org>
17725 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
17726 Applications that requires it should initialize libgcrypt
17729 2008-01-16 Simon Josefsson <simon@josefsson.org>
17731 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
17733 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
17735 Fix problem with getdate on mingw32 reported by Simon Josefsson
17736 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
17737 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
17738 tzname", when deciding whether to declare tzname.
17739 * lib/strftime.c (tzname): Likewise.
17741 2008-01-15 Bruno Haible <bruno@clisp.org>
17743 Work around a MacOS X 10.5 bug in frexpl().
17744 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
17745 * doc/functions/frexpl.texi: Document the bug.
17746 Reported by Elias Pipping <pipping@gentoo.org>.
17748 2008-01-14 Eric Blake <ebb9@byu.net>
17750 Touch up previous patch.
17751 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
17752 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
17754 Convert strcasestr module to use Two-Way algorithm.
17755 * modules/strcasestr-simple: New module, based on the old
17756 strcasestr, but with Two-Way rather than KMP.
17757 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
17758 * lib/string.in.h (rpl_strcasestr): Declare.
17759 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
17761 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
17762 * modules/string (Makefile.am): Support strcasestr.
17763 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
17764 * modules/strcasestr-tests (Depends-on): Check for alarm.
17765 * tests/test-strcasestr.c: Augment test.
17766 * lib/str-two-way.h: Clean up stray macro.
17767 * NEWS: Document new module.
17768 * MODULES.html.sh (string handling): Likewise.
17769 * doc/functions/strcasestr.texi: New file.
17770 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
17771 here, since it is not a POSIX function.
17773 2008-01-14 Colin Watson <cjwatson@debian.org>
17774 Bruno Haible <bruno@clisp.org>
17776 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
17777 works fine; if not, set REPLACE_STRSIGNAL.
17778 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
17779 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17781 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
17782 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
17783 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
17785 2008-01-14 Bruno Haible <bruno@clisp.org>
17787 * modules/strsignal (Include): Change to <string.h>.
17789 2008-01-14 Colin Watson <cjwatson@debian.org>
17791 * modules/argp (Notice): Add a notice recommending to change
17793 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
17795 2008-01-13 Colin Watson <cjwatson@debian.org>
17797 * modules/strsignal-tests: New file.
17798 * tests/test-strsignal.c: New file.
17800 * lib/strsignal.c: New file, from glibc with modifications.
17801 * lib/siglist.h: New file, from glibc with modifications.
17802 * lib/string.in.h (strsignal): New declaration.
17803 * m4/strsignal.m4: New file.
17804 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
17805 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
17806 * modules/strsignal: New file.
17807 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
17808 HAVE_DECL_STRSIGNAL.
17810 2008-01-13 Bruno Haible <bruno@clisp.org>
17812 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
17813 locale encoding is not ASCII. Needed for OpenBSD 4.0.
17814 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
17815 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
17817 2008-01-13 Bruno Haible <bruno@clisp.org>
17819 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
17820 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
17821 * lib/argp.h (__attribute__): Likewise.
17822 * lib/c-stack.c (__attribute__): Likewise.
17823 * lib/error.h (__attribute__): Likewise.
17824 * lib/fts.c (__attribute__): Likewise.
17825 * lib/openat.h (__attribute__): Likewise.
17826 * lib/stdio.in.h (__attribute__): Likewise.
17827 * lib/string.in.h (__attribute__): Likewise.
17828 * lib/utimens.c (__attribute__): Likewise.
17829 * lib/vasnprintf.h (__attribute__): Likewise.
17830 * lib/xalloc.h (__attribute__): Likewise.
17831 * lib/xprintf.h (__attribute__): Likewise.
17832 * lib/xstrtol.h (__attribute__): Likewise.
17833 * lib/xvasprintf.h (__attribute__): Likewise.
17835 2008-01-12 Bruno Haible <bruno@clisp.org>
17837 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
17838 * doc/glibc-headers/a.out.texi: New file.
17839 * doc/glibc-headers/aliases.texi: New file.
17840 * doc/glibc-headers/alloca.texi: New file.
17841 * doc/glibc-headers/ar.texi: New file.
17842 * doc/glibc-headers/argp.texi: New file.
17843 * doc/glibc-headers/argz.texi: New file.
17844 * doc/glibc-headers/byteswap.texi: New file.
17845 * doc/glibc-headers/crypt.texi: New file.
17846 * doc/glibc-headers/endian.texi: New file.
17847 * doc/glibc-headers/envz.texi: New file.
17848 * doc/glibc-headers/err.texi: New file.
17849 * doc/glibc-headers/error.texi: New file.
17850 * doc/glibc-headers/execinfo.texi: New file.
17851 * doc/glibc-headers/fpu_control.texi: New file.
17852 * doc/glibc-headers/fstab.texi: New file.
17853 * doc/glibc-headers/fts.texi: New file.
17854 * doc/glibc-headers/getopt.texi: New file.
17855 * doc/glibc-headers/ieee754.texi: New file.
17856 * doc/glibc-headers/ifaddrs.texi: New file.
17857 * doc/glibc-headers/libintl.texi: New file.
17858 * doc/glibc-headers/mcheck.texi: New file.
17859 * doc/glibc-headers/mntent.texi: New file.
17860 * doc/glibc-headers/obstack.texi: New file.
17861 * doc/glibc-headers/paths.texi: New file.
17862 * doc/glibc-headers/printf.texi: New file.
17863 * doc/glibc-headers/pty.texi: New file.
17864 * doc/glibc-headers/resolv.texi: New file.
17865 * doc/glibc-headers/shadow.texi: New file.
17866 * doc/glibc-headers/sysexits.texi: New file.
17867 * doc/glibc-headers/ttyent.texi: New file.
17869 2008-01-12 Jim Meyering <meyering@redhat.com>
17871 announce-gen: emit Gnulib's git-based version string.
17872 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
17873 New option --gnulib-version=V, where V is expected to be
17874 the output of running git describe in the gnulib directory.
17875 (get_tool_versions): Request feedback on xdelta. I suspect it's
17876 not useful, and plan to stop publishing an xdelta file with each
17879 * build-aux/announce-gen: Also check for lzma-compressed files.
17881 2008-01-11 Bruno Haible <bruno@clisp.org>
17883 * tests/test-memmem.c (main): Increase maximum allowed time.
17884 * tests/test-strstr.c (main): Likewise.
17886 2008-01-11 Bruno Haible <bruno@clisp.org>
17888 * doc/functions/memmem.texi: Add more precisions about platforms.
17889 * doc/functions/strstr.texi: Likewise.
17891 2008-01-10 Eric Blake <ebb9@byu.net>
17893 * m4/strstr.m4: Delete cruft from copy-n-paste.
17894 Reported by Bruno Haible.
17896 2008-01-10 Bruno Haible <bruno@clisp.org>
17898 Make c-strstr rely on strstr.
17899 * lib/c-strstr.c: Don't include str-kmp.h.
17900 (c_strstr): Define in terms of strstr.
17901 * modules/c-strstr (Files): Remove lib/str-kmp.h.
17902 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
17904 2008-01-10 Bruno Haible <bruno@clisp.org>
17906 * doc/gnulib.texi (String Functions in C Locale): New section.
17907 * doc/c-ctype.texi: New file.
17908 * doc/c-strcase.texi: New file.
17909 * doc/c-strcaseeq.texi: New file.
17910 * doc/c-strcasestr.texi: New file.
17911 * doc/c-strstr.texi: New file.
17912 * doc/c-strtod.texi: New file.
17913 * doc/c-strtold.texi: New file.
17915 2008-01-10 Eric Blake <ebb9@byu.net>
17917 * lib/relocatable.h: Fix a comment.
17919 2008-01-10 Eric Blake <ebb9@byu.net>
17921 Share two-way algorithm.
17922 * lib/str-two-way.h: New file, merged from...
17923 * lib/memmem.c: ...here...
17924 * lib/strstr.c: ...and here.
17925 * modules/memmem (Files): Use it.
17926 * modules/strstr (Files): Likewise.
17928 Avoid quadratic strstr implementations.
17929 * lib/strstr.c: New file.
17930 * m4/strstr.m4: Likewise.
17931 * modules/strstr: Likewise.
17932 * modules/strstr-tests: Likewise.
17933 * tests/test-strstr.c: Likewise.
17934 * lib/string.in.h (rpl_strstr): Declare.
17935 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
17936 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
17937 * modules/string (Makefile.am): Likewise.
17938 * MODULES.html.sh (string handling): Mention new module.
17939 * doc/functions/strstr.texi (strstr): Document the bug.
17941 2008-01-10 Bruno Haible <bruno@clisp.org>
17943 * lib/relocatable.h (relocate): State whether result is freshly
17945 * lib/relocatable.c (relocate): Return a freshly allocated string
17946 instead of a pointer to a privately held string.
17947 Reported by Sylvain Beucler <beuc@gnu.org>.
17949 2008-01-10 Colin Watson <cjwatson@debian.org>
17951 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
17952 s/S_ISNLK/S_ISLNK/.
17954 2008-01-09 Bruno Haible <bruno@clisp.org>
17956 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
17958 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
17959 if it's only a guess.
17960 * modules/memmem: Simplify by depending on memmem-simple.
17962 2008-01-09 Bruno Haible <bruno@clisp.org>
17964 Work around OpenBSD 4.0 tdelete() bug.
17965 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
17966 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
17967 macros and don't redefine the enum values.
17968 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
17969 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
17970 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
17972 2008-01-09 Bruno Haible <bruno@clisp.org>
17974 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
17975 (main): Don't perform the tests if setlocale did not install a UTF-8
17976 locale. Needed on OpenBSD 4.0.
17977 * modules/wcwidth-tests (Depends-on): Add localcharset.
17979 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
17981 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
17982 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
17983 * NEWS: announce this.
17984 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
17986 2008-01-09 Simon Josefsson <simon@josefsson.org>
17987 and Eric Blake <ebb9@byu.net>
17989 Add memmem-simple module.
17990 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
17991 (gl_FUNC_MEMMEM): Separate performance from presence checks.
17992 * modules/memmem-simple: New file.
17993 * modules/memmem (Description): Tweak.
17994 * MODULES.html.sh (string handling): Mention new module.
17995 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
17996 addressed by memmem-simple.
17997 * NEWS: Document the difference.
17999 2008-01-09 Eric Blake <ebb9@byu.net>
18001 Give gcc some memmem optimization hints.
18002 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
18003 (strcasestr): Declare as pure.
18004 * modules/memmem (Maintainer): Claim my implementation.
18006 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18008 Support AIX 6.1 and higher.
18009 * build-aux/config.libpath: Likewise.
18010 * build-aux/config.rpath: Likewise.
18012 2008-01-08 Jim Meyering <meyering@redhat.com>
18013 Bruno Haible <bruno@clisp.org>
18015 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
18016 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
18017 Reported by Peter Fales in
18018 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
18020 2008-01-08 Bruno Haible <bruno@clisp.org>
18022 * modules/unictype/category-of (Depends-on): Add
18023 unictype/category-none.
18024 * modules/unictype/category-and-tests (Depends-on): Add
18025 unictype/category-{L,N,Lu,Nd}.
18026 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
18027 * modules/unictype/category-or-tests (Depends-on): Add
18028 unictype/category-{L,N}.
18029 * modules/unictype/category-name-tests (Depends-on): Add
18030 unictype/category-{Z,Nl}.
18031 Reported by Simon Josefsson.
18033 2008-01-08 Bruno Haible <bruno@clisp.org>
18035 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
18037 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
18038 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
18039 Reported by Peter Miller <millerp@canb.auug.org.au>.
18041 2008-01-08 Eric Blake <ebb9@byu.net>
18043 Rewrite memmem to guarantee linear complexity without malloc.
18044 * lib/memmem.c (memmem): Use Two-Way rather than
18045 Knuth-Morris-Pratt, to allow O(1) space usage.
18046 (critical_factorization, two_way_short_needle)
18047 (two_way_long_needle): New functions.
18048 (knuth_morris_pratt): Delete.
18049 * modules/memmem (Depends-on): No longer need malloca or stdbool.
18051 * tests/test-memmem.c (main): Add tests for periodic needle and
18052 sublinear performance.
18053 * doc/functions/memmem.texi (memmem): Document other deficiencies
18054 in cygwin and older glibc.
18056 2008-01-08 Bruno Haible <bruno@clisp.org>
18058 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
18061 2008-01-08 Mike Frysinger <vapier@gentoo.org>
18063 Add a configure time option: --disable-acl.
18064 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
18065 AC_ARG_ENABLE(acl).
18067 2008-01-06 Simon Josefsson <simon@josefsson.org>
18069 * tests/test-localename.c: Don't include obsolete "setenv.h".
18071 * modules/localename-tests (Depends-on): Need unsetenv.
18073 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18075 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
18077 2008-01-06 Colin Watson <cjwatson@debian.org>
18079 * users.txt: Add man-db.
18081 2008-01-07 Bruno Haible <bruno@clisp.org>
18083 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
18084 previous section name.
18086 2008-01-07 Bruno Haible <bruno@clisp.org>
18088 * lib/progname.c (set_program_name): Don't strip off a leading
18089 "lt-" prefix outside a .libs directory.
18090 Suggested by Paul Eggert.
18092 2008-01-01 Sylvain Beucler <beuc@gnu.org>
18093 Bruno Haible <bruno@clisp.org>
18095 Improve memory cleanup in 'relocatable' module.
18096 * lib/relocatable.h (compute_curr_prefix): Change return type to
18098 * lib/relocatable.c (compute_curr_prefix): Change return type to
18099 'char *'. Free curr_installdir after use.
18100 (relocate): Free curr_prefix_better after use.
18101 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
18103 2008-01-01 Bruno Haible <bruno@clisp.org>
18105 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
18106 failure on older glibc systems.
18107 Reported by Peter Fales <psfales@alcatel-lucent.com>.
18109 2008-01-05 Eric Blake <ebb9@byu.net>
18111 Avoid quadratic system memmem.
18112 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
18113 Reported by Ralf Wildenhues.
18115 Fix memmem test for mingw.
18116 * modules/memmem-tests (configure.ac): Check for alarm.
18117 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
18119 * doc/functions/memmem.texi: New file.
18120 * doc/gnulib.texi (Function Substitutes): Add memmem.
18121 Reported by Bruno Haible.
18123 2008-01-04 Bruno Haible <bruno@clisp.org>
18125 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
18126 Require gl_HEADER_STRINGS_H_DEFAULTS, not
18127 gl_HEADER_STRING_H_DEFAULTS.
18129 2008-01-04 Eric Blake <ebb9@byu.net>
18131 Shorten duration of memmem test.
18132 * tests/test-memmem.c (main): Use alarm to declare failure if test
18133 is taking too long.
18134 Reported by Ralf Wildenhues.
18136 2007-12-21 Simon Josefsson <simon@josefsson.org>
18138 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
18139 string, needed by strerror.
18141 2008-01-03 Colin Watson <cjwatson@debian.org>
18142 Bruno Haible <bruno@clisp.org>
18144 * doc/gnulib-tool.texi (Localization): New section.
18146 2008-01-02 Bruno Haible <bruno@clisp.org>
18148 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
18149 variables to 'unsigned char *' type.
18150 Reported by Paul Eggert.
18152 2008-01-02 Jim Meyering <jim@meyering.net>
18154 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
18156 2007-12-31 Jim Meyering <jim@meyering.net>
18158 Avoid use of private FTS type name.
18159 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
18161 2007-12-30 Karl Berry <karl@gnu.org>
18163 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
18164 work around defect in Texinfo and/or the standalone Info browser.
18166 2007-12-30 Bruno Haible <bruno@clisp.org>
18168 Unify 5 copies of the KMP code.
18169 * lib/str-kmp.h: New file.
18170 * lib/c-strcasestr.c: Include str-kmp.h.
18171 (knuth_morris_pratt): Remove function.
18172 (c_strcasestr): Update.
18173 * lib/c-strstr.c: Include str-kmp.h.
18174 (knuth_morris_pratt): Remove function.
18175 (c_strcasestr): Update.
18176 * lib/mbscasestr.c: Include str-kmp.h.
18177 (knuth_morris_pratt_unibyte): Remove function.
18178 * lib/mbsstr.c: Include str-kmp.h.
18179 (knuth_morris_pratt_unibyte): Remove function.
18180 * lib/strcasestr.c: Include str-kmp.h.
18181 (knuth_morris_pratt): Remove function.
18182 (strcasestr): Update.
18183 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
18184 * modules/c-strstr (Files): Likewise.
18185 * modules/mbscasestr (Files): Likewise.
18186 * modules/mbsstr (Files): Likewise.
18187 * modules/strcasestr (Files): Likewise.
18188 Suggested by Paul Eggert.
18190 2007-12-30 Bruno Haible <bruno@clisp.org>
18192 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
18195 2007-12-30 Bruno Haible <bruno@clisp.org>
18197 * lib/xmalloca.h: Include xalloc.h.
18198 (xnmalloca): New macro.
18200 2007-12-30 Bruno Haible <bruno@clisp.org>
18202 * lib/malloca.h (nmalloca): New macro.
18203 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
18204 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
18205 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
18206 knuth_morris_pratt_multibyte): Likewise.
18207 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
18208 knuth_morris_pratt_multibyte): Likewise.
18209 * lib/memmem.c (knuth_morris_pratt): Likewise.
18210 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
18212 2007-12-25 Bruno Haible <bruno@clisp.org>
18214 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
18215 * lib/glob.c: Don't include openat.h.
18216 (link_exists2_p): Add back the code that deals with the
18217 !GLOB_ALTDIRFUNC case.
18218 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
18219 let it do the filename concatenation.
18220 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
18221 * modules/glob (Depends-on): Remove openat.
18223 2007-12-31 Bruno Haible <bruno@clisp.org>
18225 * modules/dirfd (License): Change to LGPLv2+.
18226 Approved by Jim Meyering.
18228 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
18230 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
18231 when multiplying M by sizeof (size_t).
18233 2007-12-10 Martin Lambers <marlam@marlam.de>
18235 Override getpagesize on mingw.
18236 * lib/getpagesize.c: New file.
18237 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
18238 * modules/getpagesize (Files): Add lib/getpagesize.c.
18239 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
18240 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18241 REPLACE_GETPAGESIZE.
18242 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
18244 2007-12-25 Bruno Haible <bruno@clisp.org>
18246 * modules/localcharset (Notice): New field.
18247 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
18248 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
18250 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
18251 Bruno Haible <bruno@clisp.org>
18253 Avoid using the syntax symbol() in formatted documentation.
18254 * MODULES.html.sh (func_module): When replacing symbol() with a
18255 hyperlink, remove the parentheses. Show an error if some remain.
18256 Recognize and render the '...' syntax.
18257 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
18258 Rework. Add paragraph about GCC's inlining.
18259 * doc/alloca.texi: Likewise.
18260 * doc/error.texi: Remove parentheses from symbol reference.
18261 * doc/gnulib-intro.texi: Likewise.
18262 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
18263 * modules/fnmatch (Description): Reword to say "the ... function".
18264 * modules/full-read (Description): Likewise.
18265 * modules/full-write (Description): Likewise.
18266 * modules/safe-read (Description): Likewise.
18267 * modules/safe-write (Description): Likewise.
18268 * modules/strchrnul (Description): Likewise.
18269 * modules/trim (Description): Likewise.
18270 * modules/error (Description): Remove parentheses from symbol
18272 * modules/verror (Description): Likewise.
18273 Reported by Karl Berry.
18275 2007-12-25 Bruno Haible <bruno@clisp.org>
18277 Fixup after 2007-10-16 commit.
18278 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
18280 2007-12-24 Bruno Haible <bruno@clisp.org>
18282 Make --enable-relocatable work with DESTDIR.
18283 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
18284 to compute installdir from destprog.
18285 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
18286 also set the RELOC_DESTDIR variable.
18287 Reported by Левашев Иван <octagram@bluebottle.com>.
18289 2007-12-24 Bruno Haible <bruno@clisp.org>
18291 Fix link error due to xalloc_die().
18292 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
18294 * lib/relocwrapper.c: Update comments.
18295 * build-aux/install-reloc: Remove xreadlink.c from file list.
18296 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
18298 Reported by Левашев Иван <octagram@bluebottle.com>.
18300 2007-12-24 Bruno Haible <bruno@clisp.org>
18302 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
18303 * lib/setenv.h: Remove file.
18304 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
18306 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
18307 (Depends-on): Add stdlib.
18308 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
18310 (Include): Replace setenv.h with <stdlib.h>.
18311 * modules/unsetenv: New file.
18312 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
18313 * lib/unsetenv.c: Include <stdlib.h> first.
18314 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
18315 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
18316 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
18317 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
18318 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
18319 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
18320 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
18321 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
18322 * doc/functions/unsetenv.texi: Update.
18323 * modules/xsetenv (Depends-on): Add unsetenv.
18324 * modules/getdate (Depends-on): Likewise.
18325 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
18326 * lib/xsetenv.c: Don't include setenv.h.
18327 * lib/getdate.y: Likewise.
18328 * lib/relocwrapper.c: Likewise.
18329 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
18330 (Depends-on): Add stdlib.
18331 * NEWS: Mention the changes.
18332 Reported by Левашев Иван <octagram@bluebottle.com>.
18334 2007-12-23 Bruno Haible <bruno@clisp.org>
18336 * lib/memmem.c (memmem): Use lowercase variable names. Tab
18339 2007-12-23 Bruno Haible <bruno@clisp.org>
18341 * lib/c-strcasestr.c: Add more comments.
18342 * lib/c-strstr.c: Likewise.
18343 * lib/mbscasestr.c: Likewise.
18344 * lib/mbsstr.c: Likewise.
18345 * lib/strcasestr.c: Likewise.
18346 * lib/memmem.c: Likewise.
18348 2007-12-23 Bruno Haible <bruno@clisp.org>
18350 * tests/test-memmem.c: Include <string.h> first.
18352 2007-12-22 Bruno Haible <bruno@clisp.org>
18354 * gnulib-tool (func_create_testdir): Change $auxdir while generating
18355 the contents of $testsbase.
18356 Reported by Ralf Wildenhues.
18358 2007-12-22 Bruno Haible <bruno@clisp.org>
18360 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
18361 two variables local_ldadd_before, local_ldadd_last.
18363 2007-12-20 Eric Blake <ebb9@byu.net>
18365 Work around circular library issue when cross-compiling.
18366 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
18367 that progname.o does not need to pull in rpl_memcmp.
18369 2007-12-19 Eric Blake <ebb9@byu.net>
18371 Fix memmem to avoid O(n^2) worst-case complexity.
18372 * lib/memmem.c (knuth_morris_pratt): New function.
18373 (memmem): Use it if first few naive iterations fail.
18374 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
18375 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
18376 * modules/memchr (License): Likewise.
18377 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
18379 * tests/test-memmem.c: Rewrite, borrowing ideas from
18380 test-mbsstr1.c; the old version wouldn't even compile!
18381 * modules/memmem-tests: New file.
18382 * lib/string.in.h (rpl_memmem): Add declaration.
18383 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
18384 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
18387 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
18389 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
18390 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
18391 before any system include files, and undef after them all. This
18392 should fix a problem on VMS reported by John E. Malmberg in
18393 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
18395 2007-12-17 Eric Blake <ebb9@byu.net>
18397 Revert addition of verify, for BSD/OS.
18398 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
18399 can't handle large files, for the sake of obsolete platforms.
18400 * modules/fseeko (Depends-on): Remove verify.
18401 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
18402 * doc/functions/ftello.texi (ftello): Likewise.
18403 * doc/functions/fgetpos.texi (fgetpos): Likewise.
18404 Reported by Larry Jones.
18406 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
18408 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
18409 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
18411 2007-12-17 Jim Meyering <meyering@redhat.com>
18413 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
18414 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
18415 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
18416 * modules/getcwd (Depends-on): Add openat.
18417 Reported by Petr Salinger.
18419 2007-12-17 Bruno Haible <bruno@clisp.org>
18421 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
18422 avoid a segmentation fault of the configure test on x86_64 systems.
18424 2007-12-15 Jim Meyering <meyering@redhat.com>
18426 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
18428 2007-12-13 Eric Blake <ebb9@byu.net>
18430 Another fseek test.
18431 * tests/test-fseek.c (main): Also test ungetc handling.
18432 * tests/test-fseeko.c (main): Likewise.
18433 * modules/fseeko (Depends-on): Add verify.
18434 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
18436 Reported by Larry Jones.
18438 Fix fseeko on mingw.
18439 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
18442 Beef up fseek tests.
18443 * tests/test-fseek.c (main): Also test eof handling.
18444 * tests/test-fseeko.c (main): Likewise.
18445 Reported by Larry Jones.
18447 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
18449 Fix fseeko on BSD-based platforms.
18450 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
18453 2007-12-12 Eric Blake <ebb9@byu.net>
18455 Allow circular dependency of separate libtests.a
18456 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
18459 2007-12-11 Eric Blake <ebb9@byu.net>
18461 Fix bug with -0.0L in previous patch.
18462 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
18463 * tests/test-isnan.c (main): Also test on zeroes.
18464 * tests/test-isnanf.c (main): Likewise.
18465 * tests/test-isnanl.h (main): Likewise.
18467 Detect pseudo-denormals on x86 even when cross-compiling.
18468 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
18469 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
18470 invalid bit patterns that happen to satisfy ==.
18472 Avoid link failures with separate libtests.a.
18473 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
18474 last, to satisfy circular dependencies.
18476 2007-12-11 Eric Blake <ebb9@byu.net>
18477 and Bruno Haible <bruno@clisp.org>
18479 Fix OpenBSD 4.0 <float.h> handling of long double.
18480 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
18481 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
18482 * doc/headers/float.texi (float.h): Document OpenBSD bug.
18484 2007-12-11 Jim Meyering <meyering@redhat.com>
18486 * users.txt: Add libvirt.
18488 Support versions of autoconf prior to 2.59c.
18489 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
18490 if it is not already defined.
18492 2007-12-09 Bruno Haible <bruno@clisp.org>
18494 Let 'gnulib-tool --import' collect sources needed for the tests in
18495 tests/ rather than in lib/.
18496 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
18497 argument. If true, add rules to generate libtests.a, and put libtests.a
18498 into $(LDADD). Consider source files in subdirectories and set
18500 (func_emit_initmacro_start, func_emit_initmacro_end,
18501 func_emit_initmacro_done): Pass all arguments explicitly.
18502 (func_import): Determine two module lists main_modules,
18503 testsrelated_modules. Determine use_libtests. Determine two variables
18504 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
18505 instead of just sed_transform_lib_file. Determine two variables
18506 main_files and testsrelated_files. Compute 'files' as the union of
18507 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
18508 func_add_or_update. In the generated gnulib-comp.m4, collect the
18509 object files for tests/ in different variables than those for lib/.
18510 Substitute LIBTESTS_LIBDEPS.
18511 (func_create_testdir): Combine the uses_subdirs results from
18512 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
18514 2007-12-09 Bruno Haible <bruno@clisp.org>
18516 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
18517 the build-aux directory.
18519 2007-12-09 Bruno Haible <bruno@clisp.org>
18521 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
18522 introduced on 2006-09-09.
18524 2007-12-07 Jim Meyering <meyering@redhat.com>
18526 Let these macros work also with autoconf-2.59.
18527 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
18528 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
18529 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
18531 2007-12-06 Jim Meyering <meyering@redhat.com>
18533 Avoid a configure-time syntax error in gl_FUNC_ACL.
18534 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
18535 function in each branch, before testing the cache variable.
18537 2007-12-04 Eric Blake <ebb9@byu.net>
18539 Make scripts executable.
18540 * build-aux/config.guess: Add execute permissions.
18541 * build-aux/config.sub: Likewise.
18542 * build-aux/gendocs.sh: Likewise.
18544 Fix frexp on mingw.
18545 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
18547 * doc/functions/frexp.texi (frexp): Document the bug.
18549 Make cygwin fseeko check more reliable.
18550 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
18551 version numbers, rather than unrelated feature check.
18552 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
18553 * doc/functions/ftello.texi (ftello): Likewise.
18554 Reported by Bruno Haible.
18556 * m4/strerror.m4: Bump version number.
18558 2007-12-03 Bruno Haible <bruno@clisp.org>
18560 * doc/functions/mprotect.texi: Mention the mingw problem.
18562 2007-12-03 Eric Blake <ebb9@byu.net>
18564 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
18565 REPLACE_STRERROR is initialized before this macro.
18567 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
18569 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
18570 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
18571 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
18572 put -lsec in even for programs other than 'ls'. This fixes a problem
18573 for gettext reported by Bruno Haible in
18574 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
18575 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
18576 Add support for Solaris 10. This isn't efficient, but should get the
18579 2007-12-03 James Youngman <jay@gnu.org>
18581 * doc/regexprops-generic.texi: change "an close-group" to "a
18582 close-group" and "illegal" to "not allowed".
18584 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18586 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
18587 pr_byname.h. Needed for the rare case when the maintainer has done
18588 "make maintainer-clean" in the source directory and then attempts a
18589 build outside the source directory.
18590 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
18593 2007-12-02 Martin Lambers <marlam@marlam.de>
18594 Bruno Haible <bruno@clisp.org>
18596 * lib/getpagesize.h: Remove file.
18597 * lib/unistd.in.h: Include declaration of getpagesize here.
18598 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
18599 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
18601 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
18602 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
18603 * modules/getpagesize (Files): Remove lib/getpagesize.h.
18604 (Depends-on): Add unistd.
18605 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18606 (Include): Use <unistd.h> instead of getpagesize.h.
18607 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
18608 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
18609 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
18610 gl_GETPAGESIZE invocation, already handled by module dependency.
18611 * lib/pagealign_alloc.c: Don't include getpagesize.h.
18613 2007-12-02 Bruno Haible <bruno@clisp.org>
18615 * modules/strings-tests: New file.
18616 * tests/test-strings.c: New file.
18618 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
18619 * lib/strings.in.h: New file.
18620 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
18621 * m4/strings_h.m4: New file.
18622 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
18623 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
18624 * modules/strings: New file.
18625 * modules/string (Makefile.am): Update.
18626 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
18627 Reported by Karl Berry.
18629 2007-12-01 Eric Blake <ebb9@byu.net>
18631 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
18632 accomodate fix in cygwin 1.5.25.
18634 2007-12-01 Jim Meyering <meyering@redhat.com>
18636 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
18637 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
18638 that would inhibit utf8-optimization of a regexp containing line-
18639 or buffer-anchors, e.g., `^', `$'.
18641 2007-11-30 Bruno Haible <bruno@clisp.org>
18643 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
18644 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
18645 glthread_recursive_lock_init.
18646 * lib/lock.c (glthread_recursive_lock_init)
18647 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
18648 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18650 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
18652 New function qset_acl, like set_acl but with syscall semantics.
18653 * lib/acl.h (qset_acl): New decl.
18654 * lib/acl.c (qset_acl): New function.
18655 (set_acl): Use new function. Use more-consistent diagnostics.
18657 2007-11-28 Jim Meyering <meyering@redhat.com>
18659 * modules/physmem (License): Change from GPL to LGPLv2+.
18661 2007-11-26 Bruno Haible <bruno@clisp.org>
18663 * lib/vasnprintf.c (decode_long_double): Don't abort if the
18664 'long double' type has excess precision.
18665 Reported by Jim Meyering in
18666 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
18668 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
18670 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
18671 Sync from <http://gnu.org/licenses>.
18672 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
18673 with license text from same location.
18674 * doc/maintain.texi, doc/standards.texi: Sync from
18675 <http://savannah.gnu.org/projects/gnustandards>.
18677 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
18678 and Jim Meyering <meyering@redhat.com>
18680 Adjust getdate' grammar to accept a slightly more regular language.
18681 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
18682 Before, the former was rejected.
18683 * lib/getdate.y (digits_to_date_time): New function, factored
18685 (number): ...here. Just call digits_to_date_time.
18686 (hybrid): New non-terminal to handle an <unsigned number,
18687 signed relative offset> sequence consistently.
18689 2007-11-18 Jim Meyering <meyering@redhat.com>
18691 Pull my changes from coreutils:
18692 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
18693 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
18694 use of $gnulib_tool_option_extras, so that it's separated from the
18695 preceding argument.
18697 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
18698 * build-aux/bootstrap (cp_mark_as_generated): Create any required
18699 parent destination directories before copying a file into place.
18701 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
18703 bootstrap: work also with 4-argument variant of AC_INIT
18704 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
18706 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
18708 Port test-getaddrinfo to Solaris.
18709 Problem reported by Bruno Haible in
18710 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
18711 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
18712 explanation of setting 'hints'.
18713 Don't reject an implementation merely because it returns EAI_SERVICE.
18714 (EAI_SERVICE): Define to 0 if not defined.
18716 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
18718 The license of gnu-make and posix-shell is now "GPLed build tool".
18719 * modules/gnu-make (License): Likewise.
18720 * modules/posix-shell (License): Likewise.
18722 New module posix-shell, for determining a POSIX shell
18723 or perhaps something that is close enough to a POSIX shell.
18724 * m4/posix-shell.m4: New file.
18725 * modules/posix-shell: New file.
18727 * MODULES.html.sh: Mention new module.
18729 New module gnu-make, for determining whether we're using GNU Make.
18730 * m4/gnu-make.m4: New file.
18731 * modules/gnu-make: New file.
18732 * MODULES.html.sh: Mention new module.
18734 2007-11-14 Jim Meyering <meyering@redhat.com>
18736 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
18737 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
18738 use this macro to create a function _definition_.
18739 Remove useless "#undef ARGMATCH_DIE".
18741 2007-11-14 Bruno Haible <bruno@clisp.org>
18743 * lib/config.charset: Update for OpenBSD 4.1.
18744 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
18746 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
18748 Document 64-bit #if problems in stdint.texi.
18749 * doc/headers/stdint.texi (stdint.h): Mention problems with
18750 64-bit-#if, and how to work around them.
18752 Don't insist on 'long long int' support in the preprocessor. It
18753 breaks too many things. For example, PRIdMAX still uses a 'long
18754 long int' format with the latest Sun compiler, even though
18755 HAVE_LONG_LONG_INT isn't defined due to that compiler's
18756 preprocessor problem. This causes the latest coreutils to dump
18757 core on Solaris 10 sparc with the Sun C compiler.
18758 Instead, fix the 2007-10-16 problem in a different way, by evaluating
18759 the troublesome expressions at configure-time, not at #if-time.
18760 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
18762 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
18763 compile-time C checks, done at 'configure'-time.
18764 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
18765 * modules/inttypes (Makefile): Substitute the new symbols that
18766 gl_INTTYPES_H now generates.
18767 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
18769 2007-11-12 Bruno Haible <bruno@clisp.org>
18771 Tests for Unicode character classification functions.
18773 * modules/unictype/bidicategory-byname-tests: New file.
18774 * modules/unictype/bidicategory-name-tests: New file.
18775 * modules/unictype/bidicategory-of-tests: New file.
18776 * modules/unictype/bidicategory-test-tests: New file.
18777 * modules/unictype/block-list-tests: New file.
18778 * modules/unictype/block-of-tests: New file.
18779 * modules/unictype/block-test-tests: New file.
18780 * modules/unictype/category-C-tests: New file.
18781 * modules/unictype/category-Cc-tests: New file.
18782 * modules/unictype/category-Cf-tests: New file.
18783 * modules/unictype/category-Cn-tests: New file.
18784 * modules/unictype/category-Co-tests: New file.
18785 * modules/unictype/category-Cs-tests: New file.
18786 * modules/unictype/category-L-tests: New file.
18787 * modules/unictype/category-Ll-tests: New file.
18788 * modules/unictype/category-Lm-tests: New file.
18789 * modules/unictype/category-Lo-tests: New file.
18790 * modules/unictype/category-Lt-tests: New file.
18791 * modules/unictype/category-Lu-tests: New file.
18792 * modules/unictype/category-M-tests: New file.
18793 * modules/unictype/category-Mc-tests: New file.
18794 * modules/unictype/category-Me-tests: New file.
18795 * modules/unictype/category-Mn-tests: New file.
18796 * modules/unictype/category-N-tests: New file.
18797 * modules/unictype/category-Nd-tests: New file.
18798 * modules/unictype/category-Nl-tests: New file.
18799 * modules/unictype/category-No-tests: New file.
18800 * modules/unictype/category-P-tests: New file.
18801 * modules/unictype/category-Pc-tests: New file.
18802 * modules/unictype/category-Pd-tests: New file.
18803 * modules/unictype/category-Pe-tests: New file.
18804 * modules/unictype/category-Pf-tests: New file.
18805 * modules/unictype/category-Pi-tests: New file.
18806 * modules/unictype/category-Po-tests: New file.
18807 * modules/unictype/category-Ps-tests: New file.
18808 * modules/unictype/category-S-tests: New file.
18809 * modules/unictype/category-Sc-tests: New file.
18810 * modules/unictype/category-Sk-tests: New file.
18811 * modules/unictype/category-Sm-tests: New file.
18812 * modules/unictype/category-So-tests: New file.
18813 * modules/unictype/category-Z-tests: New file.
18814 * modules/unictype/category-Zl-tests: New file.
18815 * modules/unictype/category-Zp-tests: New file.
18816 * modules/unictype/category-Zs-tests: New file.
18817 * modules/unictype/category-and-not-tests: New file.
18818 * modules/unictype/category-and-tests: New file.
18819 * modules/unictype/category-byname-tests: New file.
18820 * modules/unictype/category-name-tests: New file.
18821 * modules/unictype/category-none-tests: New file.
18822 * modules/unictype/category-of-tests: New file.
18823 * modules/unictype/category-or-tests: New file.
18824 * modules/unictype/category-test-withtable-tests: New file.
18825 * modules/unictype/combining-class-tests: New file.
18826 * modules/unictype/ctype-alnum-tests: New file.
18827 * modules/unictype/ctype-alpha-tests: New file.
18828 * modules/unictype/ctype-blank-tests: New file.
18829 * modules/unictype/ctype-cntrl-tests: New file.
18830 * modules/unictype/ctype-digit-tests: New file.
18831 * modules/unictype/ctype-graph-tests: New file.
18832 * modules/unictype/ctype-lower-tests: New file.
18833 * modules/unictype/ctype-print-tests: New file.
18834 * modules/unictype/ctype-punct-tests: New file.
18835 * modules/unictype/ctype-space-tests: New file.
18836 * modules/unictype/ctype-upper-tests: New file.
18837 * modules/unictype/ctype-xdigit-tests: New file.
18838 * modules/unictype/decimal-digit-tests: New file.
18839 * modules/unictype/digit-tests: New file.
18840 * modules/unictype/mirror-tests: New file.
18841 * modules/unictype/numeric-tests: New file.
18842 * modules/unictype/property-alphabetic-tests: New file.
18843 * modules/unictype/property-ascii-hex-digit-tests: New file.
18844 * modules/unictype/property-bidi-arabic-digit-tests: New file.
18845 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
18846 * modules/unictype/property-bidi-block-separator-tests: New file.
18847 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
18848 * modules/unictype/property-bidi-common-separator-tests: New file.
18849 * modules/unictype/property-bidi-control-tests: New file.
18850 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
18851 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
18852 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
18853 * modules/unictype/property-bidi-european-digit-tests: New file.
18854 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
18855 * modules/unictype/property-bidi-left-to-right-tests: New file.
18856 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
18857 * modules/unictype/property-bidi-other-neutral-tests: New file.
18858 * modules/unictype/property-bidi-pdf-tests: New file.
18859 * modules/unictype/property-bidi-segment-separator-tests: New file.
18860 * modules/unictype/property-bidi-whitespace-tests: New file.
18861 * modules/unictype/property-byname-tests: New file.
18862 * modules/unictype/property-combining-tests: New file.
18863 * modules/unictype/property-composite-tests: New file.
18864 * modules/unictype/property-currency-symbol-tests: New file.
18865 * modules/unictype/property-dash-tests: New file.
18866 * modules/unictype/property-decimal-digit-tests: New file.
18867 * modules/unictype/property-default-ignorable-code-point-tests: New file.
18868 * modules/unictype/property-deprecated-tests: New file.
18869 * modules/unictype/property-diacritic-tests: New file.
18870 * modules/unictype/property-extender-tests: New file.
18871 * modules/unictype/property-format-control-tests: New file.
18872 * modules/unictype/property-grapheme-base-tests: New file.
18873 * modules/unictype/property-grapheme-extend-tests: New file.
18874 * modules/unictype/property-grapheme-link-tests: New file.
18875 * modules/unictype/property-hex-digit-tests: New file.
18876 * modules/unictype/property-hyphen-tests: New file.
18877 * modules/unictype/property-id-continue-tests: New file.
18878 * modules/unictype/property-id-start-tests: New file.
18879 * modules/unictype/property-ideographic-tests: New file.
18880 * modules/unictype/property-ids-binary-operator-tests: New file.
18881 * modules/unictype/property-ids-trinary-operator-tests: New file.
18882 * modules/unictype/property-ignorable-control-tests: New file.
18883 * modules/unictype/property-iso-control-tests: New file.
18884 * modules/unictype/property-join-control-tests: New file.
18885 * modules/unictype/property-left-of-pair-tests: New file.
18886 * modules/unictype/property-line-separator-tests: New file.
18887 * modules/unictype/property-logical-order-exception-tests: New file.
18888 * modules/unictype/property-lowercase-tests: New file.
18889 * modules/unictype/property-math-tests: New file.
18890 * modules/unictype/property-non-break-tests: New file.
18891 * modules/unictype/property-not-a-character-tests: New file.
18892 * modules/unictype/property-numeric-tests: New file.
18893 * modules/unictype/property-other-alphabetic-tests: New file.
18894 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
18895 * modules/unictype/property-other-grapheme-extend-tests: New file.
18896 * modules/unictype/property-other-id-continue-tests: New file.
18897 * modules/unictype/property-other-id-start-tests: New file.
18898 * modules/unictype/property-other-lowercase-tests: New file.
18899 * modules/unictype/property-other-math-tests: New file.
18900 * modules/unictype/property-other-uppercase-tests: New file.
18901 * modules/unictype/property-paired-punctuation-tests: New file.
18902 * modules/unictype/property-paragraph-separator-tests: New file.
18903 * modules/unictype/property-pattern-syntax-tests: New file.
18904 * modules/unictype/property-pattern-white-space-tests: New file.
18905 * modules/unictype/property-private-use-tests: New file.
18906 * modules/unictype/property-punctuation-tests: New file.
18907 * modules/unictype/property-quotation-mark-tests: New file.
18908 * modules/unictype/property-radical-tests: New file.
18909 * modules/unictype/property-sentence-terminal-tests: New file.
18910 * modules/unictype/property-soft-dotted-tests: New file.
18911 * modules/unictype/property-space-tests: New file.
18912 * modules/unictype/property-terminal-punctuation-tests: New file.
18913 * modules/unictype/property-test-tests: New file.
18914 * modules/unictype/property-titlecase-tests: New file.
18915 * modules/unictype/property-unassigned-code-value-tests: New file.
18916 * modules/unictype/property-unified-ideograph-tests: New file.
18917 * modules/unictype/property-uppercase-tests: New file.
18918 * modules/unictype/property-variation-selector-tests: New file.
18919 * modules/unictype/property-white-space-tests: New file.
18920 * modules/unictype/property-xid-continue-tests: New file.
18921 * modules/unictype/property-xid-start-tests: New file.
18922 * modules/unictype/property-zero-width-tests: New file.
18923 * modules/unictype/scripts-tests: New file.
18924 * modules/unictype/syntax-c-ident-tests: New file.
18925 * modules/unictype/syntax-c-whitespace-tests: New file.
18926 * modules/unictype/syntax-java-ident-tests: New file.
18927 * modules/unictype/syntax-java-whitespace-tests: New file.
18928 * tests/unictype/test-bidi_byname.c: New file.
18929 * tests/unictype/test-bidi_name.c: New file.
18930 * tests/unictype/test-bidi_of.c: New file.
18931 * tests/unictype/test-bidi_test.c: New file.
18932 * tests/unictype/test-block_list.c: New file.
18933 * tests/unictype/test-block_of.c: New file.
18934 * tests/unictype/test-block_test.c: New file.
18935 * tests/unictype/test-categ_and.c: New file.
18936 * tests/unictype/test-categ_and_not.c: New file.
18937 * tests/unictype/test-categ_byname.c: New file.
18938 * tests/unictype/test-categ_name.c: New file.
18939 * tests/unictype/test-categ_none.c: New file.
18940 * tests/unictype/test-categ_of.c: New file.
18941 * tests/unictype/test-categ_or.c: New file.
18942 * tests/unictype/test-categ_test_withtable.c: New file.
18943 * tests/unictype/test-combining.c: New file.
18944 * tests/unictype/test-decdigit.c: New file.
18945 * tests/unictype/test-digit.c: New file.
18946 * tests/unictype/test-mirror.c: New file.
18947 * tests/unictype/test-numeric.c: New file.
18948 * tests/unictype/test-pr_byname.c: New file.
18949 * tests/unictype/test-pr_test.c: New file.
18950 * tests/unictype/test-predicate-part1.h: New file.
18951 * tests/unictype/test-predicate-part2.h: New file.
18952 * tests/unictype/test-scripts.c: New file.
18953 * tests/unictype/test-sy_c_ident.c: New file.
18954 * tests/unictype/test-sy_java_ident.c: New file.
18956 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
18958 * tests/unictype/test-categ_Cc.c: Likewise.
18959 * tests/unictype/test-categ_Cf.c: Likewise.
18960 * tests/unictype/test-categ_Cn.c: Likewise.
18961 * tests/unictype/test-categ_Co.c: Likewise.
18962 * tests/unictype/test-categ_Cs.c: Likewise.
18963 * tests/unictype/test-categ_L.c: Likewise.
18964 * tests/unictype/test-categ_Ll.c: Likewise.
18965 * tests/unictype/test-categ_Lm.c: Likewise.
18966 * tests/unictype/test-categ_Lo.c: Likewise.
18967 * tests/unictype/test-categ_Lt.c: Likewise.
18968 * tests/unictype/test-categ_Lu.c: Likewise.
18969 * tests/unictype/test-categ_M.c: Likewise.
18970 * tests/unictype/test-categ_Mc.c: Likewise.
18971 * tests/unictype/test-categ_Me.c: Likewise.
18972 * tests/unictype/test-categ_Mn.c: Likewise.
18973 * tests/unictype/test-categ_N.c: Likewise.
18974 * tests/unictype/test-categ_Nd.c: Likewise.
18975 * tests/unictype/test-categ_Nl.c: Likewise.
18976 * tests/unictype/test-categ_No.c: Likewise.
18977 * tests/unictype/test-categ_P.c: Likewise.
18978 * tests/unictype/test-categ_Pc.c: Likewise.
18979 * tests/unictype/test-categ_Pd.c: Likewise.
18980 * tests/unictype/test-categ_Pe.c: Likewise.
18981 * tests/unictype/test-categ_Pf.c: Likewise.
18982 * tests/unictype/test-categ_Pi.c: Likewise.
18983 * tests/unictype/test-categ_Po.c: Likewise.
18984 * tests/unictype/test-categ_Ps.c: Likewise.
18985 * tests/unictype/test-categ_S.c: Likewise.
18986 * tests/unictype/test-categ_Sc.c: Likewise.
18987 * tests/unictype/test-categ_Sk.c: Likewise.
18988 * tests/unictype/test-categ_Sm.c: Likewise.
18989 * tests/unictype/test-categ_So.c: Likewise.
18990 * tests/unictype/test-categ_Z.c: Likewise.
18991 * tests/unictype/test-categ_Zl.c: Likewise.
18992 * tests/unictype/test-categ_Zp.c: Likewise.
18993 * tests/unictype/test-categ_Zs.c: Likewise.
18994 * tests/unictype/test-ctype_alnum.c: Likewise.
18995 * tests/unictype/test-ctype_alpha.c: Likewise.
18996 * tests/unictype/test-ctype_blank.c: Likewise.
18997 * tests/unictype/test-ctype_cntrl.c: Likewise.
18998 * tests/unictype/test-ctype_digit.c: Likewise.
18999 * tests/unictype/test-ctype_graph.c: Likewise.
19000 * tests/unictype/test-ctype_lower.c: Likewise.
19001 * tests/unictype/test-ctype_print.c: Likewise.
19002 * tests/unictype/test-ctype_punct.c: Likewise.
19003 * tests/unictype/test-ctype_space.c: Likewise.
19004 * tests/unictype/test-ctype_upper.c: Likewise.
19005 * tests/unictype/test-ctype_xdigit.c: Likewise.
19006 * tests/unictype/test-decdigit.h: Likewise.
19007 * tests/unictype/test-digit.h: Likewise.
19008 * tests/unictype/test-numeric.h: Likewise.
19009 * tests/unictype/test-pr_alphabetic.c: Likewise.
19010 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
19011 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19012 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
19013 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
19014 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
19015 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
19016 * tests/unictype/test-pr_bidi_control.c: Likewise.
19017 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
19018 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
19019 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19020 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
19021 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19022 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19023 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19024 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19025 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
19026 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
19027 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
19028 * tests/unictype/test-pr_combining.c: Likewise.
19029 * tests/unictype/test-pr_composite.c: Likewise.
19030 * tests/unictype/test-pr_currency_symbol.c: Likewise.
19031 * tests/unictype/test-pr_dash.c: Likewise.
19032 * tests/unictype/test-pr_decimal_digit.c: Likewise.
19033 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
19034 * tests/unictype/test-pr_deprecated.c: Likewise.
19035 * tests/unictype/test-pr_diacritic.c: Likewise.
19036 * tests/unictype/test-pr_extender.c: Likewise.
19037 * tests/unictype/test-pr_format_control.c: Likewise.
19038 * tests/unictype/test-pr_grapheme_base.c: Likewise.
19039 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19040 * tests/unictype/test-pr_grapheme_link.c: Likewise.
19041 * tests/unictype/test-pr_hex_digit.c: Likewise.
19042 * tests/unictype/test-pr_hyphen.c: Likewise.
19043 * tests/unictype/test-pr_id_continue.c: Likewise.
19044 * tests/unictype/test-pr_id_start.c: Likewise.
19045 * tests/unictype/test-pr_ideographic.c: Likewise.
19046 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
19047 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
19048 * tests/unictype/test-pr_ignorable_control.c: Likewise.
19049 * tests/unictype/test-pr_iso_control.c: Likewise.
19050 * tests/unictype/test-pr_join_control.c: Likewise.
19051 * tests/unictype/test-pr_left_of_pair.c: Likewise.
19052 * tests/unictype/test-pr_line_separator.c: Likewise.
19053 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
19054 * tests/unictype/test-pr_lowercase.c: Likewise.
19055 * tests/unictype/test-pr_math.c: Likewise.
19056 * tests/unictype/test-pr_non_break.c: Likewise.
19057 * tests/unictype/test-pr_not_a_character.c: Likewise.
19058 * tests/unictype/test-pr_numeric.c: Likewise.
19059 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
19060 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
19061 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
19062 * tests/unictype/test-pr_other_id_continue.c: Likewise.
19063 * tests/unictype/test-pr_other_id_start.c: Likewise.
19064 * tests/unictype/test-pr_other_lowercase.c: Likewise.
19065 * tests/unictype/test-pr_other_math.c: Likewise.
19066 * tests/unictype/test-pr_other_uppercase.c: Likewise.
19067 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
19068 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
19069 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
19070 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
19071 * tests/unictype/test-pr_private_use.c: Likewise.
19072 * tests/unictype/test-pr_punctuation.c: Likewise.
19073 * tests/unictype/test-pr_quotation_mark.c: Likewise.
19074 * tests/unictype/test-pr_radical.c: Likewise.
19075 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
19076 * tests/unictype/test-pr_soft_dotted.c: Likewise.
19077 * tests/unictype/test-pr_space.c: Likewise.
19078 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
19079 * tests/unictype/test-pr_titlecase.c: Likewise.
19080 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
19081 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
19082 * tests/unictype/test-pr_uppercase.c: Likewise.
19083 * tests/unictype/test-pr_variation_selector.c: Likewise.
19084 * tests/unictype/test-pr_white_space.c: Likewise.
19085 * tests/unictype/test-pr_xid_continue.c: Likewise.
19086 * tests/unictype/test-pr_xid_start.c: Likewise.
19087 * tests/unictype/test-pr_zero_width.c: Likewise.
19088 * tests/unictype/test-sy_c_whitespace.c: Likewise.
19089 * tests/unictype/test-sy_java_whitespace.c: Likewise.
19091 2007-11-12 Bruno Haible <bruno@clisp.org>
19093 Unicode character classification functions.
19094 * lib/unictype.h: New file.
19095 * modules/unictype/base: New file.
19096 * modules/unictype/category-L: New file.
19097 * modules/unictype/category-Lu: New file.
19098 * modules/unictype/category-Ll: New file.
19099 * modules/unictype/category-Lt: New file.
19100 * modules/unictype/category-Lm: New file.
19101 * modules/unictype/category-Lo: New file.
19102 * modules/unictype/category-M: New file.
19103 * modules/unictype/category-Mn: New file.
19104 * modules/unictype/category-Mc: New file.
19105 * modules/unictype/category-Me: New file.
19106 * modules/unictype/category-N: New file.
19107 * modules/unictype/category-Nd: New file.
19108 * modules/unictype/category-Nl: New file.
19109 * modules/unictype/category-No: New file.
19110 * modules/unictype/category-P: New file.
19111 * modules/unictype/category-Pc: New file.
19112 * modules/unictype/category-Pd: New file.
19113 * modules/unictype/category-Ps: New file.
19114 * modules/unictype/category-Pe: New file.
19115 * modules/unictype/category-Pi: New file.
19116 * modules/unictype/category-Pf: New file.
19117 * modules/unictype/category-Po: New file.
19118 * modules/unictype/category-S: New file.
19119 * modules/unictype/category-Sm: New file.
19120 * modules/unictype/category-Sc: New file.
19121 * modules/unictype/category-Sk: New file.
19122 * modules/unictype/category-So: New file.
19123 * modules/unictype/category-Z: New file.
19124 * modules/unictype/category-Zs: New file.
19125 * modules/unictype/category-Zl: New file.
19126 * modules/unictype/category-Zp: New file.
19127 * modules/unictype/category-C: New file.
19128 * modules/unictype/category-Cc: New file.
19129 * modules/unictype/category-Cf: New file.
19130 * modules/unictype/category-Cs: New file.
19131 * modules/unictype/category-Co: New file.
19132 * modules/unictype/category-Cn: New file.
19133 * modules/unictype/category-or: New file.
19134 * modules/unictype/category-of: New file.
19135 * modules/unictype/category-test: New file.
19136 * modules/unictype/category-test-withtable: New file.
19137 * modules/unictype/category-byname: New file.
19138 * modules/unictype/category-none: New file.
19139 * modules/unictype/category-and: New file.
19140 * modules/unictype/category-and-not: New file.
19141 * modules/unictype/category-name: New file.
19142 * modules/unictype/combining-class: New file.
19143 * modules/unictype/category-all: New file.
19144 * modules/unictype/bidicategory-all: New file.
19145 * modules/unictype/bidicategory-byname: New file.
19146 * modules/unictype/bidicategory-name: New file.
19147 * modules/unictype/bidicategory-of: New file.
19148 * modules/unictype/bidicategory-test: New file.
19149 * modules/unictype/decimal-digit: New file.
19150 * modules/unictype/digit: New file.
19151 * modules/unictype/numeric: New file.
19152 * modules/unictype/mirror: New file.
19153 * modules/unictype/property-white-space: New file.
19154 * modules/unictype/property-alphabetic: New file.
19155 * modules/unictype/property-other-alphabetic: New file.
19156 * modules/unictype/property-not-a-character: New file.
19157 * modules/unictype/property-default-ignorable-code-point: New file.
19158 * modules/unictype/property-other-default-ignorable-code-point: New
19160 * modules/unictype/property-deprecated: New file.
19161 * modules/unictype/property-logical-order-exception: New file.
19162 * modules/unictype/property-variation-selector: New file.
19163 * modules/unictype/property-private-use: New file.
19164 * modules/unictype/property-unassigned-code-value: New file.
19165 * modules/unictype/property-uppercase: New file.
19166 * modules/unictype/property-other-uppercase: New file.
19167 * modules/unictype/property-lowercase: New file.
19168 * modules/unictype/property-other-lowercase: New file.
19169 * modules/unictype/property-titlecase: New file.
19170 * modules/unictype/property-soft-dotted: New file.
19171 * modules/unictype/property-id-start: New file.
19172 * modules/unictype/property-other-id-start: New file.
19173 * modules/unictype/property-id-continue: New file.
19174 * modules/unictype/property-other-id-continue: New file.
19175 * modules/unictype/property-xid-start: New file.
19176 * modules/unictype/property-xid-continue: New file.
19177 * modules/unictype/property-pattern-white-space: New file.
19178 * modules/unictype/property-pattern-syntax: New file.
19179 * modules/unictype/property-join-control: New file.
19180 * modules/unictype/property-grapheme-base: New file.
19181 * modules/unictype/property-grapheme-extend: New file.
19182 * modules/unictype/property-other-grapheme-extend: New file.
19183 * modules/unictype/property-grapheme-link: New file.
19184 * modules/unictype/property-bidi-control: New file.
19185 * modules/unictype/property-bidi-left-to-right: New file.
19186 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
19187 * modules/unictype/property-bidi-arabic-right-to-left: New file.
19188 * modules/unictype/property-bidi-european-digit: New file.
19189 * modules/unictype/property-bidi-eur-num-separator: New file.
19190 * modules/unictype/property-bidi-eur-num-terminator: New file.
19191 * modules/unictype/property-bidi-arabic-digit: New file.
19192 * modules/unictype/property-bidi-common-separator: New file.
19193 * modules/unictype/property-bidi-block-separator: New file.
19194 * modules/unictype/property-bidi-segment-separator: New file.
19195 * modules/unictype/property-bidi-whitespace: New file.
19196 * modules/unictype/property-bidi-non-spacing-mark: New file.
19197 * modules/unictype/property-bidi-boundary-neutral: New file.
19198 * modules/unictype/property-bidi-pdf: New file.
19199 * modules/unictype/property-bidi-embedding-or-override: New file.
19200 * modules/unictype/property-bidi-other-neutral: New file.
19201 * modules/unictype/property-hex-digit: New file.
19202 * modules/unictype/property-ascii-hex-digit: New file.
19203 * modules/unictype/property-ideographic: New file.
19204 * modules/unictype/property-unified-ideograph: New file.
19205 * modules/unictype/property-radical: New file.
19206 * modules/unictype/property-ids-binary-operator: New file.
19207 * modules/unictype/property-ids-trinary-operator: New file.
19208 * modules/unictype/property-zero-width: New file.
19209 * modules/unictype/property-space: New file.
19210 * modules/unictype/property-non-break: New file.
19211 * modules/unictype/property-iso-control: New file.
19212 * modules/unictype/property-format-control: New file.
19213 * modules/unictype/property-dash: New file.
19214 * modules/unictype/property-hyphen: New file.
19215 * modules/unictype/property-punctuation: New file.
19216 * modules/unictype/property-line-separator: New file.
19217 * modules/unictype/property-paragraph-separator: New file.
19218 * modules/unictype/property-quotation-mark: New file.
19219 * modules/unictype/property-sentence-terminal: New file.
19220 * modules/unictype/property-terminal-punctuation: New file.
19221 * modules/unictype/property-currency-symbol: New file.
19222 * modules/unictype/property-math: New file.
19223 * modules/unictype/property-other-math: New file.
19224 * modules/unictype/property-paired-punctuation: New file.
19225 * modules/unictype/property-left-of-pair: New file.
19226 * modules/unictype/property-combining: New file.
19227 * modules/unictype/property-composite: New file.
19228 * modules/unictype/property-decimal-digit: New file.
19229 * modules/unictype/property-numeric: New file.
19230 * modules/unictype/property-diacritic: New file.
19231 * modules/unictype/property-extender: New file.
19232 * modules/unictype/property-ignorable-control: New file.
19233 * modules/unictype/property-test: New file.
19234 * modules/unictype/property-byname: New file.
19235 * modules/unictype/property-all: New file.
19236 * modules/unictype/scripts: New file.
19237 * modules/unictype/scripts-all: New file.
19238 * modules/unictype/block-of: New file.
19239 * modules/unictype/block-test: New file.
19240 * modules/unictype/block-list: New file.
19241 * modules/unictype/block-all: New file.
19242 * modules/unictype/syntax-c-whitespace: New file.
19243 * modules/unictype/syntax-java-whitespace: New file.
19244 * modules/unictype/syntax-c-ident: New file.
19245 * modules/unictype/syntax-java-ident: New file.
19246 * modules/unictype/ctype-alnum: New file.
19247 * modules/unictype/ctype-alpha: New file.
19248 * modules/unictype/ctype-cntrl: New file.
19249 * modules/unictype/ctype-digit: New file.
19250 * modules/unictype/ctype-graph: New file.
19251 * modules/unictype/ctype-lower: New file.
19252 * modules/unictype/ctype-print: New file.
19253 * modules/unictype/ctype-punct: New file.
19254 * modules/unictype/ctype-space: New file.
19255 * modules/unictype/ctype-upper: New file.
19256 * modules/unictype/ctype-xdigit: New file.
19257 * modules/unictype/ctype-blank: New file.
19258 * lib/unictype/bidi_byname.c: New file.
19259 * lib/unictype/bidi_name.c: New file.
19260 * lib/unictype/bidi_of.c: New file.
19261 * lib/unictype/bidi_test.c: New file.
19262 * lib/unictype/bitmap.h: New file.
19263 * lib/unictype/block_test.c: New file.
19264 * lib/unictype/blocks.c: New file.
19265 * lib/unictype/categ_C.c: New file.
19266 * lib/unictype/categ_Cc.c: New file.
19267 * lib/unictype/categ_Cf.c: New file.
19268 * lib/unictype/categ_Cn.c: New file.
19269 * lib/unictype/categ_Co.c: New file.
19270 * lib/unictype/categ_Cs.c: New file.
19271 * lib/unictype/categ_L.c: New file.
19272 * lib/unictype/categ_Ll.c: New file.
19273 * lib/unictype/categ_Lm.c: New file.
19274 * lib/unictype/categ_Lo.c: New file.
19275 * lib/unictype/categ_Lt.c: New file.
19276 * lib/unictype/categ_Lu.c: New file.
19277 * lib/unictype/categ_M.c: New file.
19278 * lib/unictype/categ_Mc.c: New file.
19279 * lib/unictype/categ_Me.c: New file.
19280 * lib/unictype/categ_Mn.c: New file.
19281 * lib/unictype/categ_N.c: New file.
19282 * lib/unictype/categ_Nd.c: New file.
19283 * lib/unictype/categ_Nl.c: New file.
19284 * lib/unictype/categ_No.c: New file.
19285 * lib/unictype/categ_P.c: New file.
19286 * lib/unictype/categ_Pc.c: New file.
19287 * lib/unictype/categ_Pd.c: New file.
19288 * lib/unictype/categ_Pe.c: New file.
19289 * lib/unictype/categ_Pf.c: New file.
19290 * lib/unictype/categ_Pi.c: New file.
19291 * lib/unictype/categ_Po.c: New file.
19292 * lib/unictype/categ_Ps.c: New file.
19293 * lib/unictype/categ_S.c: New file.
19294 * lib/unictype/categ_Sc.c: New file.
19295 * lib/unictype/categ_Sk.c: New file.
19296 * lib/unictype/categ_Sm.c: New file.
19297 * lib/unictype/categ_So.c: New file.
19298 * lib/unictype/categ_Z.c: New file.
19299 * lib/unictype/categ_Zl.c: New file.
19300 * lib/unictype/categ_Zp.c: New file.
19301 * lib/unictype/categ_Zs.c: New file.
19302 * lib/unictype/categ_and.c: New file.
19303 * lib/unictype/categ_and_not.c: New file.
19304 * lib/unictype/categ_byname.c: New file.
19305 * lib/unictype/categ_name.c: New file.
19306 * lib/unictype/categ_none.c: New file.
19307 * lib/unictype/categ_of.c: New file.
19308 * lib/unictype/categ_or.c: New file.
19309 * lib/unictype/categ_test.c: New file.
19310 * lib/unictype/combining.c: New file.
19311 * lib/unictype/ctype_alnum.c: New file.
19312 * lib/unictype/ctype_alpha.c: New file.
19313 * lib/unictype/ctype_blank.c: New file.
19314 * lib/unictype/ctype_cntrl.c: New file.
19315 * lib/unictype/ctype_digit.c: New file.
19316 * lib/unictype/ctype_graph.c: New file.
19317 * lib/unictype/ctype_lower.c: New file.
19318 * lib/unictype/ctype_print.c: New file.
19319 * lib/unictype/ctype_punct.c: New file.
19320 * lib/unictype/ctype_space.c: New file.
19321 * lib/unictype/ctype_upper.c: New file.
19322 * lib/unictype/ctype_xdigit.c: New file.
19323 * lib/unictype/decdigit.c: New file.
19324 * lib/unictype/digit.c: New file.
19325 * lib/unictype/identsyntaxmap.h: New file.
19326 * lib/unictype/mirror.c: New file.
19327 * lib/unictype/numeric.c: New file.
19328 * lib/unictype/pr_alphabetic.c: New file.
19329 * lib/unictype/pr_ascii_hex_digit.c: New file.
19330 * lib/unictype/pr_bidi_arabic_digit.c: New file.
19331 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
19332 * lib/unictype/pr_bidi_block_separator.c: New file.
19333 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
19334 * lib/unictype/pr_bidi_common_separator.c: New file.
19335 * lib/unictype/pr_bidi_control.c: New file.
19336 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
19337 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
19338 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
19339 * lib/unictype/pr_bidi_european_digit.c: New file.
19340 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
19341 * lib/unictype/pr_bidi_left_to_right.c: New file.
19342 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
19343 * lib/unictype/pr_bidi_other_neutral.c: New file.
19344 * lib/unictype/pr_bidi_pdf.c: New file.
19345 * lib/unictype/pr_bidi_segment_separator.c: New file.
19346 * lib/unictype/pr_bidi_whitespace.c: New file.
19347 * lib/unictype/pr_byname.c: New file.
19348 * lib/unictype/pr_byname.gperf: New file.
19349 * lib/unictype/pr_combining.c: New file.
19350 * lib/unictype/pr_composite.c: New file.
19351 * lib/unictype/pr_currency_symbol.c: New file.
19352 * lib/unictype/pr_dash.c: New file.
19353 * lib/unictype/pr_decimal_digit.c: New file.
19354 * lib/unictype/pr_default_ignorable_code_point.c: New file.
19355 * lib/unictype/pr_deprecated.c: New file.
19356 * lib/unictype/pr_diacritic.c: New file.
19357 * lib/unictype/pr_extender.c: New file.
19358 * lib/unictype/pr_format_control.c: New file.
19359 * lib/unictype/pr_grapheme_base.c: New file.
19360 * lib/unictype/pr_grapheme_extend.c: New file.
19361 * lib/unictype/pr_grapheme_link.c: New file.
19362 * lib/unictype/pr_hex_digit.c: New file.
19363 * lib/unictype/pr_hyphen.c: New file.
19364 * lib/unictype/pr_id_continue.c: New file.
19365 * lib/unictype/pr_id_start.c: New file.
19366 * lib/unictype/pr_ideographic.c: New file.
19367 * lib/unictype/pr_ids_binary_operator.c: New file.
19368 * lib/unictype/pr_ids_trinary_operator.c: New file.
19369 * lib/unictype/pr_ignorable_control.c: New file.
19370 * lib/unictype/pr_iso_control.c: New file.
19371 * lib/unictype/pr_join_control.c: New file.
19372 * lib/unictype/pr_left_of_pair.c: New file.
19373 * lib/unictype/pr_line_separator.c: New file.
19374 * lib/unictype/pr_logical_order_exception.c: New file.
19375 * lib/unictype/pr_lowercase.c: New file.
19376 * lib/unictype/pr_math.c: New file.
19377 * lib/unictype/pr_non_break.c: New file.
19378 * lib/unictype/pr_not_a_character.c: New file.
19379 * lib/unictype/pr_numeric.c: New file.
19380 * lib/unictype/pr_other_alphabetic.c: New file.
19381 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
19382 * lib/unictype/pr_other_grapheme_extend.c: New file.
19383 * lib/unictype/pr_other_id_continue.c: New file.
19384 * lib/unictype/pr_other_id_start.c: New file.
19385 * lib/unictype/pr_other_lowercase.c: New file.
19386 * lib/unictype/pr_other_math.c: New file.
19387 * lib/unictype/pr_other_uppercase.c: New file.
19388 * lib/unictype/pr_paired_punctuation.c: New file.
19389 * lib/unictype/pr_paragraph_separator.c: New file.
19390 * lib/unictype/pr_pattern_syntax.c: New file.
19391 * lib/unictype/pr_pattern_white_space.c: New file.
19392 * lib/unictype/pr_private_use.c: New file.
19393 * lib/unictype/pr_punctuation.c: New file.
19394 * lib/unictype/pr_quotation_mark.c: New file.
19395 * lib/unictype/pr_radical.c: New file.
19396 * lib/unictype/pr_sentence_terminal.c: New file.
19397 * lib/unictype/pr_soft_dotted.c: New file.
19398 * lib/unictype/pr_space.c: New file.
19399 * lib/unictype/pr_terminal_punctuation.c: New file.
19400 * lib/unictype/pr_test.c: New file.
19401 * lib/unictype/pr_titlecase.c: New file.
19402 * lib/unictype/pr_unassigned_code_value.c: New file.
19403 * lib/unictype/pr_unified_ideograph.c: New file.
19404 * lib/unictype/pr_uppercase.c: New file.
19405 * lib/unictype/pr_variation_selector.c: New file.
19406 * lib/unictype/pr_white_space.c: New file.
19407 * lib/unictype/pr_xid_continue.c: New file.
19408 * lib/unictype/pr_xid_start.c: New file.
19409 * lib/unictype/pr_zero_width.c: New file.
19410 * lib/unictype/scripts.c: New file.
19411 * lib/unictype/sy_c_ident.c: New file.
19412 * lib/unictype/sy_c_whitespace.c: New file.
19413 * lib/unictype/sy_java_ident.c: New file.
19414 * lib/unictype/sy_java_whitespace.c: New file.
19416 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
19418 * lib/unictype/blocks.h: Likewise.
19419 * lib/unictype/categ_C.h: Likewise.
19420 * lib/unictype/categ_Cc.h: Likewise.
19421 * lib/unictype/categ_Cf.h: Likewise.
19422 * lib/unictype/categ_Cn.h: Likewise.
19423 * lib/unictype/categ_Co.h: Likewise.
19424 * lib/unictype/categ_Cs.h: Likewise.
19425 * lib/unictype/categ_L.h: Likewise.
19426 * lib/unictype/categ_Ll.h: Likewise.
19427 * lib/unictype/categ_Lm.h: Likewise.
19428 * lib/unictype/categ_Lo.h: Likewise.
19429 * lib/unictype/categ_Lt.h: Likewise.
19430 * lib/unictype/categ_Lu.h: Likewise.
19431 * lib/unictype/categ_M.h: Likewise.
19432 * lib/unictype/categ_Mc.h: Likewise.
19433 * lib/unictype/categ_Me.h: Likewise.
19434 * lib/unictype/categ_Mn.h: Likewise.
19435 * lib/unictype/categ_N.h: Likewise.
19436 * lib/unictype/categ_Nd.h: Likewise.
19437 * lib/unictype/categ_Nl.h: Likewise.
19438 * lib/unictype/categ_No.h: Likewise.
19439 * lib/unictype/categ_P.h: Likewise.
19440 * lib/unictype/categ_Pc.h: Likewise.
19441 * lib/unictype/categ_Pd.h: Likewise.
19442 * lib/unictype/categ_Pe.h: Likewise.
19443 * lib/unictype/categ_Pf.h: Likewise.
19444 * lib/unictype/categ_Pi.h: Likewise.
19445 * lib/unictype/categ_Po.h: Likewise.
19446 * lib/unictype/categ_Ps.h: Likewise.
19447 * lib/unictype/categ_S.h: Likewise.
19448 * lib/unictype/categ_Sc.h: Likewise.
19449 * lib/unictype/categ_Sk.h: Likewise.
19450 * lib/unictype/categ_Sm.h: Likewise.
19451 * lib/unictype/categ_So.h: Likewise.
19452 * lib/unictype/categ_Z.h: Likewise.
19453 * lib/unictype/categ_Zl.h: Likewise.
19454 * lib/unictype/categ_Zp.h: Likewise.
19455 * lib/unictype/categ_Zs.h: Likewise.
19456 * lib/unictype/categ_of.h: Likewise.
19457 * lib/unictype/combining.h: Likewise.
19458 * lib/unictype/ctype_alnum.h: Likewise.
19459 * lib/unictype/ctype_alpha.h: Likewise.
19460 * lib/unictype/ctype_blank.h: Likewise.
19461 * lib/unictype/ctype_cntrl.h: Likewise.
19462 * lib/unictype/ctype_digit.h: Likewise.
19463 * lib/unictype/ctype_graph.h: Likewise.
19464 * lib/unictype/ctype_lower.h: Likewise.
19465 * lib/unictype/ctype_print.h: Likewise.
19466 * lib/unictype/ctype_punct.h: Likewise.
19467 * lib/unictype/ctype_space.h: Likewise.
19468 * lib/unictype/ctype_upper.h: Likewise.
19469 * lib/unictype/ctype_xdigit.h: Likewise.
19470 * lib/unictype/decdigit.h: Likewise.
19471 * lib/unictype/digit.h: Likewise.
19472 * lib/unictype/mirror.h: Likewise.
19473 * lib/unictype/numeric.h: Likewise.
19474 * lib/unictype/pr_alphabetic.h: Likewise.
19475 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
19476 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
19477 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
19478 * lib/unictype/pr_bidi_block_separator.h: Likewise.
19479 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
19480 * lib/unictype/pr_bidi_common_separator.h: Likewise.
19481 * lib/unictype/pr_bidi_control.h: Likewise.
19482 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
19483 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
19484 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
19485 * lib/unictype/pr_bidi_european_digit.h: Likewise.
19486 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
19487 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
19488 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
19489 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
19490 * lib/unictype/pr_bidi_pdf.h: Likewise.
19491 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
19492 * lib/unictype/pr_bidi_whitespace.h: Likewise.
19493 * lib/unictype/pr_combining.h: Likewise.
19494 * lib/unictype/pr_composite.h: Likewise.
19495 * lib/unictype/pr_currency_symbol.h: Likewise.
19496 * lib/unictype/pr_dash.h: Likewise.
19497 * lib/unictype/pr_decimal_digit.h: Likewise.
19498 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
19499 * lib/unictype/pr_deprecated.h: Likewise.
19500 * lib/unictype/pr_diacritic.h: Likewise.
19501 * lib/unictype/pr_extender.h: Likewise.
19502 * lib/unictype/pr_format_control.h: Likewise.
19503 * lib/unictype/pr_grapheme_base.h: Likewise.
19504 * lib/unictype/pr_grapheme_extend.h: Likewise.
19505 * lib/unictype/pr_grapheme_link.h: Likewise.
19506 * lib/unictype/pr_hex_digit.h: Likewise.
19507 * lib/unictype/pr_hyphen.h: Likewise.
19508 * lib/unictype/pr_id_continue.h: Likewise.
19509 * lib/unictype/pr_id_start.h: Likewise.
19510 * lib/unictype/pr_ideographic.h: Likewise.
19511 * lib/unictype/pr_ids_binary_operator.h: Likewise.
19512 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
19513 * lib/unictype/pr_ignorable_control.h: Likewise.
19514 * lib/unictype/pr_iso_control.h: Likewise.
19515 * lib/unictype/pr_join_control.h: Likewise.
19516 * lib/unictype/pr_left_of_pair.h: Likewise.
19517 * lib/unictype/pr_line_separator.h: Likewise.
19518 * lib/unictype/pr_logical_order_exception.h: Likewise.
19519 * lib/unictype/pr_lowercase.h: Likewise.
19520 * lib/unictype/pr_math.h: Likewise.
19521 * lib/unictype/pr_non_break.h: Likewise.
19522 * lib/unictype/pr_not_a_character.h: Likewise.
19523 * lib/unictype/pr_numeric.h: Likewise.
19524 * lib/unictype/pr_other_alphabetic.h: Likewise.
19525 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
19526 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
19527 * lib/unictype/pr_other_id_continue.h: Likewise.
19528 * lib/unictype/pr_other_id_start.h: Likewise.
19529 * lib/unictype/pr_other_lowercase.h: Likewise.
19530 * lib/unictype/pr_other_math.h: Likewise.
19531 * lib/unictype/pr_other_uppercase.h: Likewise.
19532 * lib/unictype/pr_paired_punctuation.h: Likewise.
19533 * lib/unictype/pr_paragraph_separator.h: Likewise.
19534 * lib/unictype/pr_pattern_syntax.h: Likewise.
19535 * lib/unictype/pr_pattern_white_space.h: Likewise.
19536 * lib/unictype/pr_private_use.h: Likewise.
19537 * lib/unictype/pr_punctuation.h: Likewise.
19538 * lib/unictype/pr_quotation_mark.h: Likewise.
19539 * lib/unictype/pr_radical.h: Likewise.
19540 * lib/unictype/pr_sentence_terminal.h: Likewise.
19541 * lib/unictype/pr_soft_dotted.h: Likewise.
19542 * lib/unictype/pr_space.h: Likewise.
19543 * lib/unictype/pr_terminal_punctuation.h: Likewise.
19544 * lib/unictype/pr_titlecase.h: Likewise.
19545 * lib/unictype/pr_unassigned_code_value.h: Likewise.
19546 * lib/unictype/pr_unified_ideograph.h: Likewise.
19547 * lib/unictype/pr_uppercase.h: Likewise.
19548 * lib/unictype/pr_variation_selector.h: Likewise.
19549 * lib/unictype/pr_white_space.h: Likewise.
19550 * lib/unictype/pr_xid_continue.h: Likewise.
19551 * lib/unictype/pr_xid_start.h: Likewise.
19552 * lib/unictype/pr_zero_width.h: Likewise.
19553 * lib/unictype/scripts.h: Likewise.
19554 * lib/unictype/scripts_byname.gperf: Likewise.
19555 * lib/unictype/sy_c_ident.h: Likewise.
19556 * lib/unictype/sy_c_whitespace.h: Likewise.
19557 * lib/unictype/sy_java_ident.h: Likewise.
19558 * lib/unictype/sy_java_whitespace.h: Likewise.
19560 * lib/unictype/Makefile: New file.
19561 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
19563 * lib/unictype/3level.h: New file, copied from glibc.
19564 * lib/unictype/3levelbit.h: New file.
19566 2007-11-11 Bruno Haible <bruno@clisp.org>
19568 * modules/gperf: New file.
19569 * modules/iconv_open (Depends-on): Add it.
19570 (Makefile.am): Remove the GPERF definition.
19572 2007-11-11 Bruno Haible <bruno@clisp.org>
19574 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
19575 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
19577 2007-11-11 Bruno Haible <bruno@clisp.org>
19579 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
19580 (usage): Remove function.
19582 2007-11-11 Bruno Haible <bruno@clisp.org>
19584 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
19585 gl_FUNC_CEILF_LIBS.
19586 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
19588 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
19589 gl_FUNC_CEILL_LIBS.
19590 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
19591 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
19592 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
19594 2007-11-11 Bruno Haible <bruno@clisp.org>
19596 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
19597 roundf were declared but do not exist on functions.
19598 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
19599 roundl were declared but do not exist on functions.
19600 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
19601 HAVE_FLOORL_AND_CEILL, respectively.
19602 Needed for Sun C on Solaris 10.
19604 2007-11-11 Bruno Haible <bruno@clisp.org>
19606 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
19607 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
19608 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
19609 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
19610 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
19611 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
19612 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
19614 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
19615 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
19616 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
19617 of HAVE_DECL_ROUND*.
19618 * modules/math (Makefile.am): Update.
19620 2007-11-10 Bruno Haible <bruno@clisp.org>
19622 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
19623 ptrdiff_t as m4/intl.m4.
19625 2007-11-10 Jim Meyering <meyering@redhat.com>
19627 Avoid link failure for the argmatch test.
19628 * tests/test-argmatch.c (usage): Define function to avoid a link
19629 failure: argmatch_die requires a usage function.
19631 2007-11-09 Bruno Haible <bruno@clisp.org>
19633 * doc/functions/snprintf.texi: Mention BeOS deficiency.
19634 * doc/functions/vsnprintf.texi: Likewise.
19635 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
19636 with a size argument < 2.
19638 2007-11-09 Bruno Haible <bruno@clisp.org>
19640 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
19641 buffer. Fixes an inefficiency introduced on 2007-11-03.
19643 2007-11-09 Bruno Haible <bruno@clisp.org>
19645 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
19646 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
19648 2007-11-08 Jim Meyering <meyering@redhat.com>
19650 Change cache variable name prefix "jm_" to "gl_" everywhere.
19651 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
19652 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
19653 * m4/uptime.m4: s/gl_/jm_/
19655 2007-11-07 Bruno Haible <bruno@clisp.org>
19657 Update to GNU gettext 0.17.
19658 * m4/intl.m4: Update to GNU gettext 0.17.
19659 * m4/po.m4: Likewise.
19660 * modules/gettext (Files): Remove m4/ulonglong.m4.
19661 (configure.ac): Require gettext infrastructure from version 0.17.
19663 2007-11-06 Bruno Haible <bruno@clisp.org>
19665 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
19666 symbolic values are not defined in a public header.
19667 * lib/freadable.c (freadable) [QNX]: Likewise.
19668 * lib/freadahead.c (freadahead) [QNX]: Likewise.
19669 * lib/freading.c (freading) [QNX]: Likewise.
19670 * lib/fseterr.c (fseterr) [QNX]: Likewise.
19671 * lib/fwritable.c (fwritable) [QNX]: Likewise.
19672 * lib/fwriting.c (fwriting) [QNX]: Likewise.
19673 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
19674 Reported by Alain Magloire.
19676 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
19678 2007-11-05 Bruno Haible <bruno@clisp.org>
19680 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
19681 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
19682 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
19683 Reported by Eric Blake.
19685 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19686 Bruno Haible <bruno@clisp.org>
19688 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
19689 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
19690 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
19691 (malloc): Undefine also before including <stdlib.h>.
19692 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
19693 Needed on OSF/1 4.0.
19695 2007-11-05 Jim Meyering <meyering@redhat.com>
19697 git-version-gen: sync from coreutils.
19698 * build-aux/git-version-gen: Add comments.
19699 Change the first '-' to '.' in the snapshot version string,
19700 e.g., 6.9-377-08144 -> 6.9.377-08144
19701 Remove first parameter.
19702 Don't declare a version "-dirty" merely because a time
19705 2007-11-04 Bruno Haible <bruno@clisp.org>
19707 * lib/lock.h: Protect all macro definitions containing an 'if'
19708 statement through a "do { ... } while (0)".
19709 * lib/tls.h: Likewise.
19711 2007-11-04 Bruno Haible <bruno@clisp.org>
19713 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
19715 2007-11-04 Bruno Haible <bruno@clisp.org>
19717 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
19718 * modules/fprintf-posix (Depends-on): Add nocrash.
19719 * modules/snprintf-posix (Depends-on): Likewise.
19720 * modules/sprintf-posix (Depends-on): Likewise.
19721 * modules/vasnprintf-posix (Depends-on): Likewise.
19722 * modules/vasprintf-posix (Depends-on): Likewise.
19723 * modules/vfprintf-posix (Depends-on): Likewise.
19724 * modules/vsnprintf-posix (Depends-on): Likewise.
19725 * modules/vsprintf-posix (Depends-on): Likewise.
19726 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
19727 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
19728 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
19729 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
19730 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
19731 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
19732 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
19734 2007-11-04 Bruno Haible <bruno@clisp.org>
19736 * modules/nocrash: New file.
19737 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
19738 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
19740 2007-11-04 Bruno Haible <bruno@clisp.org>
19742 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
19743 precision handling.
19744 * tests/test-vasprintf-posix.c (test_function): Likewise.
19745 * tests/test-snprintf-posix.h (test_function): Likewise.
19746 * tests/test-sprintf-posix.h (test_function): Likewise.
19748 Fix *printf behaviour for large precisions on mingw and BeOS.
19749 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
19750 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
19751 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
19752 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19753 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19754 gl_PRINTF_PRECISION and test its result. Invoke
19755 gl_PREREQ_VASNPRINTF_PRECISION.
19756 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19757 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19758 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19759 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19760 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19761 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19762 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19763 * doc/functions/fprintf.texi: Update.
19764 * doc/functions/printf.texi: Update.
19765 * doc/functions/snprintf.texi: Update.
19766 * doc/functions/sprintf.texi: Update.
19767 * doc/functions/vfprintf.texi: Update.
19768 * doc/functions/vprintf.texi: Update.
19769 * doc/functions/vsnprintf.texi: Update.
19770 * doc/functions/vsprintf.texi: Update.
19772 2007-11-04 Bruno Haible <bruno@clisp.org>
19774 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
19776 2007-11-04 Bruno Haible <bruno@clisp.org>
19778 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
19779 Reported by Sylvain Beucler <beuc@gnu.org>.
19781 2007-11-03 Bruno Haible <bruno@clisp.org>
19783 * tests/test-fprintf-posix2.sh: New file.
19784 * tests/test-fprintf-posix2.c: New file.
19785 * modules/fprintf-posix-tests (Files): Add them.
19786 (TESTS): Add test-fprintf-posix2.sh.
19787 (configure.ac): Check for getrlimit and setrlimit.
19788 (check_PROGRAMS): Add test-fprintf-posix2.
19790 * tests/test-printf-posix2.sh: New file.
19791 * tests/test-printf-posix2.c: New file.
19792 * modules/printf-posix-tests (Files): Add them.
19793 (TESTS): Add test-printf-posix2.sh.
19794 (configure.ac): Check for getrlimit and setrlimit.
19795 (check_PROGRAMS): Add test-printf-posix2.
19797 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
19798 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
19799 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
19800 (decode_double): New function, copied from decode_long_double.
19801 (scale10_round_decimal_decoded): New function, extracted from
19802 scale10_round_decimal_long_double.
19803 (scale10_round_decimal_long_double): Use it.
19804 (scale10_round_decimal_double): New function.
19805 (floorlog10): New function.
19806 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
19807 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
19808 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
19809 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
19810 gl_PRINTF_ENOMEM and test its result. Invoke
19811 gl_PREREQ_VASNPRINTF_ENOMEM.
19812 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
19813 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
19814 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
19815 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
19816 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
19817 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
19818 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
19819 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
19820 * modules/snprintf-posix (Depends-on): Likewise.
19821 * modules/sprintf-posix (Depends-on): Likewise.
19822 * modules/vasnprintf-posix (Depends-on): Likewise.
19823 * modules/vasprintf-posix (Depends-on): Likewise.
19824 * modules/vfprintf-posix (Depends-on): Likewise.
19825 * modules/vsnprintf-posix (Depends-on): Likewise.
19826 * modules/vsprintf-posix (Depends-on): Likewise.
19827 * doc/functions/fprintf.texi: Update.
19828 * doc/functions/printf.texi: Update.
19829 * doc/functions/snprintf.texi: Update.
19830 * doc/functions/sprintf.texi: Update.
19831 * doc/functions/vfprintf.texi: Update.
19832 * doc/functions/vprintf.texi: Update.
19833 * doc/functions/vsnprintf.texi: Update.
19834 * doc/functions/vsprintf.texi: Update.
19836 2007-11-03 Bruno Haible <bruno@clisp.org>
19838 * modules/frexp-nolibm-tests: New file.
19840 * modules/frexp-nolibm: New file.
19841 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
19843 2007-11-03 Bruno Haible <bruno@clisp.org>
19845 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
19846 value is C99 compliant.
19847 Needed for OSF/1 5.1.
19849 2007-11-03 Bruno Haible <bruno@clisp.org>
19851 Fix out-of-memory handling of vasnprintf.
19852 * lib/printf-parse.c: Include <errno.h>.
19853 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
19854 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
19857 2007-11-02 Eric Blake <ebb9@byu.net>
19859 Fix tests on cygwin.
19860 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
19862 2007-11-01 Bruno Haible <bruno@clisp.org>
19864 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
19866 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
19867 needed for POSIX compatibility.
19869 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
19871 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
19872 for compatibility with GNU.
19874 2007-11-01 Bruno Haible <bruno@clisp.org>
19876 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
19877 (putenv): Renamed from rpl_putenv. Change argument type from
19878 'const char *' to 'char *'.
19879 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
19880 of defining putenv in config.h, just set REPLACE_PUTENV.
19881 * modules/putenv (Depends-on): Add stdlib.
19882 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
19883 (Include): Use <stdlib.h>.
19884 * lib/stdlib.in.h (putenv): New declaration.
19885 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
19887 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
19889 Needed for MacOS X 10.5.0.
19890 Reported by Peter O'Gorman <peter@pogma.com>.
19892 2007-11-01 Jim Meyering <meyering@redhat.com>
19894 Treat an empty date string exactly like "0".
19895 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
19896 if the remaining date string (to be parsed) is empty, use "0".
19897 Reported by Mischa Molhoek and discussed in this thread:
19898 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
19900 2007-10-31 Bruno Haible <bruno@clisp.org>
19902 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
19903 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
19904 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
19905 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
19906 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
19907 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
19909 2007-10-31 Bruno Haible <bruno@clisp.org>
19911 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
19912 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
19913 (AC_TYPE_LONG_LONG_INT): Use it.
19914 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
19916 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
19918 * modules/stdint (Files): Remove m4/ulonglong.m4.
19919 * modules/strtoull (Files): Use m4/longlong.m4 instead of
19921 * modules/strtoumax (Files): Likewise.
19923 2007-10-30 Bruno Haible <bruno@clisp.org>
19925 * modules/xvasprintf-posix: New file.
19926 Suggested by Eric Blake.
19928 2007-10-30 Bruno Haible <bruno@clisp.org>
19930 * modules/xprintf-posix-tests: New file.
19931 * tests/test-xprintf-posix.sh: New file.
19932 * tests/test-xprintf-posix.c: New file.
19933 * tests/test-xfprintf-posix.c: New file.
19935 * modules/xprintf-posix: New file.
19937 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
19939 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
19940 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
19941 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
19943 2007-10-29 Bruno Haible <bruno@clisp.org>
19945 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
19946 contain the special marker '_cv_'.
19947 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
19948 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
19949 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
19950 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
19951 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
19952 Reported by Ralf Wildenhues.
19954 2007-10-29 Bruno Haible <bruno@clisp.org>
19956 * gnulib-tool (func_import): When --lgpl is not specified, set
19957 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
19959 Reported by Simon Josefsson.
19961 2007-10-28 Bruno Haible <bruno@clisp.org>
19963 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
19964 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
19965 HAVE_DECL_ISFINITE.
19966 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
19967 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
19968 HAVE_DECL_ISFINITE.
19970 2007-10-28 Bruno Haible <bruno@clisp.org>
19972 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
19973 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
19975 2007-10-28 Bruno Haible <bruno@clisp.org>
19977 Fix link errors with Sun C 5.0 on Solaris 10.
19978 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
19979 function is declared but not present in the compiler's libm.
19980 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
19981 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
19982 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
19983 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
19984 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
19985 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
19986 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
19987 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
19988 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
19989 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
19990 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
19993 2007-10-28 Bruno Haible <bruno@clisp.org>
19995 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
19996 gl_FUNC_FLOORL. Cache the result.
19997 (gl_FUNC_FLOORL): Use it.
19998 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
19999 gl_FUNC_CEILL. Cache the result.
20000 (gl_FUNC_CEILL): Use it.
20002 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
20003 gl_FUNC_FLOOR. Cache the result.
20004 (gl_FUNC_FLOOR): Use it.
20005 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
20006 gl_FUNC_CEIL. Cache the result.
20007 (gl_FUNC_CEIL): Use it.
20009 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
20010 gl_FUNC_FLOORF. Cache the result.
20011 (gl_FUNC_FLOORF): Use it.
20012 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
20013 gl_FUNC_CEILF. Cache the result.
20014 (gl_FUNC_CEILF): Use it.
20016 2007-10-28 Bruno Haible <bruno@clisp.org>
20018 * gnulib-tool: Allow specifying the LGPL version number through
20019 --lgpl=2 or --lgpl=3.
20020 (func_usage): Document --lgpl with argument.
20021 Handle --lgpl=... arguments.
20022 (func_import): Recognize also gl_LGPL calls with an argument. When
20023 --lgpl=2 is used and the module's license is just LGPL, report an
20024 error. Set sed_transform_lib_file according to the lgpl variable. In
20025 the generated files, use --lgpl or gl_LGPL invocations with argument,
20027 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
20029 * doc/gnulib-tool.texi (Modified imports): Update explanation of
20032 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20033 Bruno Haible <bruno@clisp.org>
20035 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
20036 (u16_uctomb_aux): Likewise.
20037 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
20039 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
20041 2007-10-28 Bruno Haible <bruno@clisp.org>
20043 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
20044 Invoke AM_GETTEXT_OPTION if it exists.
20045 * modules/vasprintf: Likewise.
20046 * modules/verror: Likewise.
20047 * modules/xprintf: Likewise.
20048 * modules/xvasprintf: Likewise.
20050 2007-10-27 Ben Pfaff <blp@gnu.org>
20052 * lib/math.in.h: Define isfinite macro and prototypes for
20053 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
20055 * m4/math_h.m4: New substitutions for isfinite module.
20056 * lib/isfinite.c: New file.
20057 * m4/isfinite.m4: New file.
20058 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
20059 * modules/isfinite: New file.
20060 * modules/isfinite-tests: New file.
20061 * tests/tests-isfinite.c: New file.
20062 * doc/functions/isfinite.texi: Mention isfinite module.
20063 * MODULES.html.sh: Mention new module.
20065 2007-10-27 Ben Pfaff <blp@gnu.org>
20067 Ralf Wildenhues reported that Tru64 4.0D declares the round
20068 functions but does not have definitions.
20069 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
20070 cannot be found in any library, set the output variable to
20071 "missing" instead of "".
20072 * m4/round.m4: Also use our substitute if we cannot find round in
20073 any library, even if it is declared.
20074 * m4/roundf.m4: Likewise for roundf.
20075 * m4/roundl.m4: Likewise for roundl.
20076 * lib/math.in.h: Undefine roundf, round, roundl before defining
20077 their replacements, to allow for hypothetical systems where these
20078 may be defined as macros but not available in libraries.
20080 2007-10-27 Bruno Haible <bruno@clisp.org>
20082 * doc/gnulib.texi: Invoke @firstparagraphindent.
20083 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
20085 (Source changes): New section.
20087 2007-10-26 Bruno Haible <bruno@clisp.org>
20089 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
20090 borrowed from autoconf.
20092 2007-10-26 Bruno Haible <bruno@clisp.org>
20094 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
20095 strerror returned the empty string. Needed on HP-UX 11.00.
20097 2007-10-24 Micah Cowan <micah@cowan.name>
20099 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
20100 * build-aux/bootstrap: Remove support for now-unnecessary option,
20101 --cvs-user, and envvars CVS_USER, CVS_RSH.
20103 2007-10-24 Jim Meyering <meyering@redhat.com>
20105 Avoid diagnostics from sha1sum when there is no cached checksum.
20106 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
20107 if the po.s1 file hasn't been created yet.
20109 * build-aux/bootstrap: Sync from coreutils:
20110 2007-10-24 Jim Meyering <meyering@redhat.com>
20111 Get gnulib from the git repository, not from an obsolete cvs one.
20112 * build-aux/bootstrap: Suggestion from Micah Cowan.
20113 2007-10-04 Jim Meyering <jim@meyering.net>
20114 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
20115 (update_po_files): Work also when there are no .po files in po/.
20117 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
20119 * README: Append ".git" to git and cg examples.
20120 Problem reported by Benoit Sigoure.
20122 2007-10-23 Micah Cowan <micah@cowan.name>
20124 * users.txt: Add wget.
20126 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20128 Fix linking of some unistdio tests on FreeBSD.
20129 * modules/unistdio/u16-vsnprintf-tests
20130 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
20131 * modules/unistdio/u16-vsprintf-tests
20132 (test_u16_vsnprintf1_LDADD): Likewise.
20133 * modules/unistdio/u32-vsnprintf-tests
20134 (test_u32_vsnprintf1_LDADD): Likewise.
20135 * modules/unistdio/u32-vsprintf-tests
20136 (test_u32_vsprintf1_LDADD): Likewise.
20137 * modules/unistdio/u8-vsnprintf-tests
20138 (test_u8_vsnprintf1_LDADD): Likewise.
20139 * modules/unistdio/u8-vsprintf-tests
20140 (test_u8_vsprintf1_LDADD): Likewise.
20141 * modules/unistdio/ulc-vsnprintf-tests
20142 (test_ulc_vsnprintf1_LDADD): Likewise.
20143 * modules/unistdio/ulc-vsprintf-tests
20144 (test_ulc_vsprintf1_LDADD): Likewise.
20146 Fix linking of some uniconv tests on FreeBSD.
20147 * modules/uniconv/u16-conv-from-enc-tests
20148 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
20149 * modules/uniconv/u16-conv-to-enc-tests
20150 (test_u16_conv_to_enc_LDADD): Likewise.
20151 * modules/uniconv/u16-strconv-from-enc-tests
20152 (test_u16_strconv_from_enc_LDADD): Likewise.
20153 * modules/uniconv/u16-strconv-to-enc-tests
20154 (test_u16_strconv_to_enc_LDADD): Likewise.
20155 * modules/uniconv/u32-conv-from-enc-tests
20156 (test_u32_conv_from_enc_LDADD): Likewise.
20157 * modules/uniconv/u32-conv-to-enc-tests
20158 (test_u32_conv_to_enc_LDADD): Likewise.
20159 * modules/uniconv/u32-strconv-from-enc-tests
20160 (test_u32_strconv_from_enc_LDADD): Likewise.
20161 * modules/uniconv/u32-strconv-to-enc-tests
20162 (test_u32_strconv_to_enc_LDADD): Likewise.
20163 * modules/uniconv/u8-conv-from-enc-tests
20164 (test_u8_conv_from_enc_LDADD): Likewise.
20165 * modules/uniconv/u8-conv-to-enc-tests
20166 (test_u8_conv_to_enc_LDADD): Likewise.
20167 * modules/uniconv/u8-strconv-from-enc-tests
20168 (test_u8_strconv_from_enc_LDADD): Likewise.
20169 * modules/uniconv/u8-strconv-to-enc-tests
20170 (test_u8_strconv_to_enc_LDADD): Likewise.
20172 2007-10-22 Bruno Haible <bruno@clisp.org>
20174 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
20177 2007-10-22 Eric Blake <ebb9@byu.net>
20179 Tweak x*printf documentation.
20180 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
20181 variable name and comments.
20182 Suggested by Bruno Haible.
20184 2007-10-22 Bruno Haible <bruno@clisp.org>
20186 * lib/acl.c (copy_acl): Fix file name in comment.
20188 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
20190 Fix Tru64 problem with stdbool.h.
20191 * lib/stdbool.in.h (false, true):
20192 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
20193 Don't declare as an enum in this situation; it runs afoul of Tru64.
20194 Problem reported by Steven M. Schweda in
20195 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
20197 2007-10-22 Eric Blake <ebb9@byu.net>
20199 Also wrap vf?printf.
20200 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
20201 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
20202 (xvprintf, xvfprintf): New functions.
20204 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20206 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
20207 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
20209 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
20210 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
20212 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
20214 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
20217 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20220 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
20221 Undef `sys' after including sys/table.h, for Tru64 4.0D.
20223 * tests/test-i-ring.c: Work for C89.
20225 2007-10-22 Bruno Haible <bruno@clisp.org>
20227 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
20228 -1u, in preprocessor expression, so that we don't test for the bug
20229 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
20230 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
20232 2007-10-22 Eric Blake <ebb9@byu.net>
20234 * tests/test-yesno.sh: Silence stderr during test.
20236 2007-10-22 Simon Josefsson <simon@josefsson.org>
20238 * modules/crypto/gc-camellia: New file.
20240 * m4/gc-camellia.m4: New file.
20242 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
20244 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
20246 2007-10-22 Simon Josefsson <simon@josefsson.org>
20248 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
20249 --help to stdout. Reported by sms@antinode.org (Steven
20252 2007-10-22 Simon Josefsson <simon@josefsson.org>
20254 * users.txt: Fix link to libksba.
20256 2007-10-21 Ben Pfaff <blp@gnu.org>
20258 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
20259 round.c roundf implementation that depends on floorf and ceilf to
20260 be tested unconditionally.
20262 2007-10-21 Ben Pfaff <blp@gnu.org>
20264 * m4/check-libm-func.m4: Removed.
20265 * m4/check-math-lib.m4: New file.
20266 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
20267 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
20268 definition and lack of AC_LIBOBJ([roundf]).
20269 * m4/roundl.m4: Ditto, and similarly for roundl.
20270 * modules/round: Reference new m4 file.
20271 * modules/roundf: Ditto.
20272 * modules/roundl: Ditto.
20273 * tests/test-round2.c (main): Use ROUND instead of round.
20274 Bug report from Bruno Haible.
20276 2007-10-21 Bruno Haible <bruno@clisp.org>
20278 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
20281 2007-10-21 Bruno Haible <bruno@clisp.org>
20283 * tests/test-wcwidth.c (main): Allow negative result for some control
20286 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
20287 Needed on OSF/1 5.1.
20289 2007-10-21 Bruno Haible <bruno@clisp.org>
20291 * tests/test-floorf1.c: Include isnanf.h.
20292 (main): Use isnanf() instead of isnan().
20293 * tests/test-ceilf1.c: Include isnanf.h.
20294 (main): Use isnanf() instead of isnan().
20295 * tests/test-truncf1.c: Include isnanf.h.
20296 (main): Use isnanf() instead of isnan().
20297 * tests/test-roundf1.c: Include isnanf.h.
20298 (main): Use isnanf() instead of isnan().
20300 2007-10-21 Eric Blake <ebb9@byu.net>
20302 * users.txt: Update URL for m4.
20304 2007-10-21 Bruno Haible <bruno@clisp.org>
20306 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
20308 2007-10-21 Bruno Haible <bruno@clisp.org>
20310 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
20311 Git's management files if the CVS files are not present.
20313 2007-10-20 Bruno Haible <bruno@clisp.org>
20315 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
20318 2007-10-20 Ben Pfaff <blp@gnu.org>
20320 * lib/math.in.h: Declare round, roundf, roundl if we are providing
20322 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
20323 * lib/round.c: New file.
20324 * lib/roundf.c: New file.
20325 * lib/roundl.c: New file.
20326 * m4/round.m4: New file.
20327 * m4/roundf.m4: New file.
20328 * m4/roundl.m4: New file.
20329 * m4/check-libm-func-m4: New file.
20330 * modules/math: Replace round, roundf, roundl related @VARS@ in
20332 * modules/round: New file.
20333 * modules/round-tests: New file.
20334 * modules/roundf: New file.
20335 * modules/roundf-tests: New file.
20336 * modules/roundl: New file.
20337 * modules/roundl-tests: New file.
20338 * tests/test-round1.c: New file.
20339 * tests/test-round2.c: New file.
20340 * tests/test-roundf1.c: New file.
20341 * tests/test-roundf2.c: New file.
20342 * tests/test-roundl.c: New file.
20343 * doc/functions/round.texi: Mention round module.
20344 * doc/functions/roundf.texi: Mention roundf module.
20345 * doc/functions/roundl.texi: Mention roundl module.
20346 * MODULES.html.sh: Mention new modules.
20347 Thanks to Bruno Haible for suggestions.
20349 2007-10-20 Jim Meyering <meyering@redhat.com>
20351 * lib/xprintf.c: Include <config.h> unconditionally.
20353 Change xprintf's license to GPL.
20354 * modules/xprintf (License): s/LGPL/GPL/, since this module
20355 depends on modules (exit and exitfail) which are GPL.
20356 Suggestion from Bruno Haible.
20359 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
20360 Use a clearer diagnostic.
20361 Patch from Bruno Haible.
20363 2007-10-20 Bruno Haible <bruno@clisp.org>
20365 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
20366 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
20367 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20369 2007-10-20 Bruno Haible <bruno@clisp.org>
20371 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
20372 precision in the comparison result > x - 1 or similar.
20373 * tests/test-ceilf2.c (correct_result_p): Likewise.
20374 * tests/test-truncf2.c (correct_result_p): Likewise.
20375 * tests/test-trunc2.c (correct_result_p): Likewise.
20376 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
20378 2007-10-20 Bruno Haible <bruno@clisp.org>
20380 * modules/ceil: New file.
20381 * m4/ceil.m4: New file.
20382 * doc/functions/ceil.texi: Mention the 'ceil' module.
20384 2007-10-20 Bruno Haible <bruno@clisp.org>
20386 * modules/floor: New file.
20387 * m4/floor.m4: New file.
20388 * doc/functions/floor.texi: Mention the 'floor' module.
20390 2007-10-20 Bruno Haible <bruno@clisp.org>
20392 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
20394 * modules/floorf-tests (Depends-on): Likewise.
20395 * modules/truncf-tests (Depends-on): Likewise.
20396 * modules/trunc-tests (Depends-on): Likewise.
20397 Reported by Ben Pfaff.
20399 2007-10-19 Jim Meyering <meyering@redhat.com>
20401 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
20402 Don't bother testing specific errno values. Just test ferror.
20404 New module: xprintf
20405 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
20407 2007-10-19 Bruno Haible <bruno@clisp.org>
20409 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
20411 * modules/javaexec (Makefile.am): Likewise.
20412 * modules/relocatable-prog (Makefile.am): Likewise.
20413 Suggested by Jim Meyering.
20415 2007-10-18 Bruno Haible <bruno@clisp.org>
20417 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
20418 Reported by Jim Meyering.
20420 2007-10-18 Eric Blake <ebb9@byu.net>
20422 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
20424 2007-10-18 Bruno Haible <bruno@clisp.org>
20426 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
20427 the format string into writable memory. Needed in Fortify conditions.
20429 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
20430 Bruno Haible <bruno@clisp.org>
20432 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
20433 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
20434 * modules/trim (Depends-on): Add mbchar.
20435 (configure.ac): Add gl_FUNC_MBRTOWC.
20436 (Makefile.am): Augment lib_SOURCES.
20438 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
20440 Modify glob.c to use fstatat and dirfd, to simplify it.
20441 Suggested by Eric Blake.
20442 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
20443 Don't include <stdbool.h>; not used.
20444 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
20445 (link_exists_p): Simplify implementation, since we can now assume
20447 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
20449 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20451 * gnulib-tool (func_get_dependencies): Fix sed script to
20454 2007-10-17 Bruno Haible <bruno@clisp.org>
20456 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
20457 allow locale names without encoding suffix.
20458 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20459 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20461 2007-10-16 Bruno Haible <bruno@clisp.org>
20463 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
20464 * lib/getgroups.c (getgroups): Likewise.
20465 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
20467 2007-10-16 Bruno Haible <bruno@clisp.org>
20469 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
20470 * modules/malloc-posix (License): Likewise.
20471 * modules/realloc-posix (License): Likewise.
20472 * modules/calloc-posix (License): Likewise.
20473 * modules/intprops (License): Change from GPL to LGPL, with
20474 Paul Eggert's approval.
20476 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
20478 Merge glibc changes into lib/glob.c.
20480 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
20481 2007-10-15 04:59:03 UTC. Here are the changes:
20483 2007-10-14 Ulrich Drepper <drepper@redhat.com>
20485 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
20487 * lib/glob.c: Add some branch prediction throughout.
20489 2007-10-07 Ulrich Drepper <drepper@redhat.com>
20492 * lib/glob.c (glob): Recognize patterns starting \/.
20494 2007-02-14 Jakub Jelinek <jakub@redhat.com>
20497 * lib/glob.c (attribute_hidden): Define if not defined.
20498 (glob): Unescape dirname, filename or username when needed and not
20499 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
20500 is NULL. Handle unescaped [ in pattern without closing ].
20501 Don't pass GLOB_CHECK down to recursive glob for directories.
20502 (__glob_pattern_type): New function.
20503 (__glob_pattern_p): Implement using __glob_pattern_type.
20504 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
20505 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
20506 Remove unreachable code.
20508 2006-09-30 Ulrich Drepper <drepper@redhat.com>
20510 * lib/glob.c (glob_in_dir): Add some comments and asserts to
20511 explain why there are no leaks.
20513 2006-09-25 Jakub Jelinek <jakub@redhat.com>
20516 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
20517 time, rather allocate increasingly bigger arrays of pointers, if
20518 possible with alloca, if too large with malloc.
20520 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
20522 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
20523 Problem reported by H.Merijn Brand in
20524 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
20525 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
20526 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
20528 2007-10-15 Bruno Haible <bruno@clisp.org>
20530 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
20531 with explicit rpl_ prefix.
20532 * lib/fopen.c (fopen): Likewise.
20533 * lib/freopen.c (freopen): Likewise.
20534 * lib/iconv.c (iconv): Likewise.
20535 * lib/iconv_close.c (iconv_close): Likewise.
20537 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20539 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
20541 2007-10-15 Bruno Haible <bruno@clisp.org>
20543 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
20544 <stddef.h> instead of <stdlib.h> since we only need NULL.
20545 Reported by Ben Pfaff <blp@cs.stanford.edu>.
20547 2007-10-15 Bruno Haible <bruno@clisp.org>
20549 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
20550 Replace paragraph talking about LIBOBJS.
20551 Reported by Colin Watson <cjwatson@debian.org>.
20553 2007-10-15 Bruno Haible <bruno@clisp.org>
20555 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
20556 <stdlib.h> before using NULL.
20558 2007-10-15 Simon Josefsson <simon@josefsson.org>
20560 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
20561 Reported by Albert Chin <china@thewrittenword.com>.
20563 2007-10-14 Bruno Haible <bruno@clisp.org>
20565 * modules/iconv_open-utf-tests: New file.
20566 * tests/test-iconv-utf.c: New file.
20568 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
20569 * modules/iconv_open-utf: New file.
20570 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
20571 (iconv, iconv_close): New declarations.
20572 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
20574 (iconv_open): Add special handling of conversion between UTF-8 and
20575 UTF-{16,32}{BE,LE}.
20576 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
20577 * lib/iconv_close.c: New file.
20578 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
20579 gl_FUNC_ICONV_OPEN.
20580 (gl_FUNC_ICONV_OPEN): Use it.
20581 (gl_FUNC_ICONV_OPEN_UTF): New macro.
20582 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
20583 and REPLACE_ICONV_UTF.
20584 * modules/iconv_open (Depends-on): Add c-strcase.
20585 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
20587 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
20589 2007-10-13 Albert Chin <china@thewrittenword.com>
20590 Bruno Haible <bruno@clisp.org>
20592 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
20593 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
20595 2007-10-13 Bruno Haible <bruno@clisp.org>
20597 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
20598 defined, use the ISO C99 inline semantics.
20599 * lib/argp.h (ARGP_EI): Likewise.
20601 2007-10-13 Bruno Haible <bruno@clisp.org>
20603 Handle 'inline' change in gcc 4.3.0.
20604 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
20605 argp_fmtstream_write, argp_fmtstream_set_lmargin,
20606 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
20607 argp_fmtstream_point): Disable 'extern' declaration if the function
20608 definition is going to be provided inline.
20609 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
20610 semantics, not the ISO C99 inline semantics.
20611 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
20612 'extern' declaration if the function definition is going to be provided
20614 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
20615 the GNU C inline semantics, not the ISO C99 inline semantics. With
20616 GCC 4.2, avoid a warning.
20618 2007-10-13 Bruno Haible <bruno@clisp.org>
20620 * lib/freading.h (freading): Enable the use of __freading for
20622 * lib/freading.c (freading): Likewise.
20624 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
20626 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
20627 "warning: C99 inline functions are not supported; using GNU89".
20629 2007-10-12 Bruno Haible <bruno@clisp.org>
20631 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
20633 * tests/test-ceilf2.c: New file.
20634 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
20636 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
20637 * modules/ceilf-tests: Update.
20639 2007-10-12 Bruno Haible <bruno@clisp.org>
20641 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
20643 * tests/test-floorf2.c: New file.
20644 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
20646 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
20647 * modules/floorf-tests: Update.
20649 2007-10-12 Bruno Haible <bruno@clisp.org>
20651 * tests/test-trunc2.c: New file.
20652 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
20654 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
20655 * modules/trunc-tests: Update.
20657 2007-10-12 Bruno Haible <bruno@clisp.org>
20659 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
20661 * tests/test-truncf2.c: New file.
20662 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
20664 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
20665 * modules/truncf-tests: Update.
20667 2007-10-11 Eric Blake <ebb9@byu.net>
20669 Don't claim strerror is broken on Interix.
20670 * doc/functions/strerror.texi (strerror): Known broken systems are
20671 now Solaris 8, and not Interix.
20672 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
20673 Interix on cross-compile.
20674 Reported by Martin Koeppe in
20675 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
20677 2007-10-11 Bruno Haible <bruno@clisp.org>
20679 * modules/i-ring-tests: New file.
20680 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
20683 2007-10-11 Bruno Haible <bruno@clisp.org>
20685 * modules/filenamecat-tests: New file.
20686 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
20687 * lib/filenamecat.c: Remove test code.
20689 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
20691 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
20693 * lib/strerror.c: Include <string.h> always, to test interface,
20694 and to remove the need for the dummy.
20695 Include intprops.h to compute width instead of doing it ourselves
20696 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
20697 (strerror): Define it to return NULL if there's no system strerror.
20698 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
20699 Omit !HAVE_STRERROR code. We don't need to worry about supporting
20700 ancient pre-strerror Unix systems well any more. Saying "unknown
20701 system error" is enough.
20702 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
20703 simpler strerror.c implementation.
20704 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
20705 Simplify the tests to reflect the simpler strerror implementation.
20706 * modules/strerror (Depends-on): Add intprops.
20708 2007-10-09 Eric Blake <ebb9@byu.net>
20710 Silence test-fpending.
20711 * modules/fpending-tests (Files): Add wrapper script.
20712 * tests/test-fpending.sh: New file.
20714 2007-10-09 Bruno Haible <bruno@clisp.org>
20716 * MODULES.html.sh (func_module): Don't create a hyperlink for
20717 function names like 'printf_frexp'.
20718 (Misc): Add crc, memxor.
20719 (Characteristics of floating types): New section.
20720 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
20721 isnanf-nolibm, signbit, trunc, truncf, truncl.
20722 (Enhancements for ISO C 99 functions): New subsection Input/output.
20723 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
20724 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
20725 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
20726 (Compatibility checks for POSIX:2001 functions): Add clock-time.
20727 (Enhancements for POSIX:2001 functions): Add chdir-long.
20728 (File system functions): Add areadlink, chdir-safer, read-file.
20729 Remove cycle-check.
20730 (File system as inode set): New section.
20731 (Date and time): Add gethrxtime.
20732 (Multithreading): Add openmp.
20733 (Internationalization functions): Add localename.
20734 (Unicode string functions): Add unistr/u*-mbsnlen.
20735 (Support for maintaining and releasing projects): Add git-version-gen.
20736 (Lone files): Remove directories.
20738 2007-10-08 Ben Pfaff <blp@gnu.org>
20740 * lib/xmalloca.h: Fix typo in comment.
20742 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
20744 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
20745 when avoiding problems with integer overflow. Use a portable test
20748 2007-10-08 Simon Josefsson <simon@josefsson.org>
20750 * modules/dummy (License): Change to LGPLv2+.
20751 * modules/float (License): Likewise
20752 * modules/realloc (License): Likewise
20753 * modules/stdlib (License): Likewise
20755 2007-10-07 Bruno Haible <bruno@clisp.org>
20757 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
20758 * floor.c (TWO_MANT_DIG): Likewise.
20759 * ceil.c (TWO_MANT_DIG): Likewise.
20760 Reported by Ben Pfaff.
20762 2007-10-07 Bruno Haible <bruno@clisp.org>
20764 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
20765 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
20766 * lib/frexp.c (FUNC): Likewise.
20767 * lib/printf-frexp.h (printf_frexp): Likewise.
20768 * lib/printf-frexpl.h (printf_frexpl): Likewise.
20769 * lib/printf-frexp.c (FUNC): Likewise.
20770 Suggested by Jim Meyering.
20772 2007-10-07 Jim Meyering <meyering@redhat.com>
20774 Make xnanosleep's integer overflow test more robust.
20775 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
20776 so that gcc-4.3.0 doesn't optimize away this test for overflow.
20778 2007-10-07 Bruno Haible <bruno@clisp.org>
20780 * NEWS: Mention the license change.
20782 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
20783 abbreviations in the modules files.
20785 Change copyright notice from GPLv2+ to GPLv3+.
20786 * README: Change copyright notice.
20787 * MODULES.html.sh: Likewise.
20788 * build-aux/bootstrap.conf: Likewise.
20789 * build-aux/config.libpath: Likewise.
20790 * build-aux/csharpcomp.sh.in: Likewise.
20791 * build-aux/csharpexec.sh.in: Likewise.
20792 * build-aux/install-reloc: Likewise.
20793 * build-aux/javacomp.sh.in: Likewise.
20794 * build-aux/javaexec.sh.in: Likewise.
20795 * build-aux/ldd.sh.in: Likewise.
20796 * build-aux/reloc-ldflags: Likewise.
20797 * build-aux/relocatable.sh.in: Likewise.
20798 * build-aux/x-to-1.in: Likewise.
20799 * check-module: Likewise.
20800 * config/srclistvars.sh: Likewise.
20801 * gnulib-tool: Likewise.
20802 * lib/acl-internal.h: Likewise.
20803 * lib/acl.c: Likewise.
20804 * lib/acl.h: Likewise.
20805 * lib/acl_entries.c: Likewise.
20806 * lib/areadlink-with-size.c: Likewise.
20807 * lib/areadlink.c: Likewise.
20808 * lib/areadlink.h: Likewise.
20809 * lib/argmatch.c: Likewise.
20810 * lib/argmatch.h: Likewise.
20811 * lib/argp-ba.c: Likewise.
20812 * lib/argp-eexst.c: Likewise.
20813 * lib/argp-fmtstream.c: Likewise.
20814 * lib/argp-fmtstream.h: Likewise.
20815 * lib/argp-fs-xinl.c: Likewise.
20816 * lib/argp-help.c: Likewise.
20817 * lib/argp-namefrob.h: Likewise.
20818 * lib/argp-parse.c: Likewise.
20819 * lib/argp-pin.c: Likewise.
20820 * lib/argp-pv.c: Likewise.
20821 * lib/argp-pvh.c: Likewise.
20822 * lib/argp-xinl.c: Likewise.
20823 * lib/argp.h: Likewise.
20824 * lib/at-func.c: Likewise.
20825 * lib/atanl.c: Likewise.
20826 * lib/backupfile.c: Likewise.
20827 * lib/backupfile.h: Likewise.
20828 * lib/basename.c: Likewise.
20829 * lib/binary-io.h: Likewise.
20830 * lib/byteswap.in.h: Likewise.
20831 * lib/c-stack.c: Likewise.
20832 * lib/c-stack.h: Likewise.
20833 * lib/c-strcasestr.c: Likewise.
20834 * lib/c-strcasestr.h: Likewise.
20835 * lib/c-strstr.c: Likewise.
20836 * lib/c-strstr.h: Likewise.
20837 * lib/c-strtod.c: Likewise.
20838 * lib/calloc.c: Likewise.
20839 * lib/canon-host.c: Likewise.
20840 * lib/canon-host.h: Likewise.
20841 * lib/canonicalize-lgpl.c: Likewise.
20842 * lib/canonicalize.c: Likewise.
20843 * lib/canonicalize.h: Likewise.
20844 * lib/ceil.c: Likewise.
20845 * lib/ceilf.c: Likewise.
20846 * lib/ceill.c: Likewise.
20847 * lib/chdir-long.c: Likewise.
20848 * lib/chdir-long.h: Likewise.
20849 * lib/chdir-safer.c: Likewise.
20850 * lib/chdir-safer.h: Likewise.
20851 * lib/chown.c: Likewise.
20852 * lib/classpath.c: Likewise.
20853 * lib/classpath.h: Likewise.
20854 * lib/clean-temp.c: Likewise.
20855 * lib/clean-temp.h: Likewise.
20856 * lib/cloexec.c: Likewise.
20857 * lib/close-stream.c: Likewise.
20858 * lib/closein.c: Likewise.
20859 * lib/closein.h: Likewise.
20860 * lib/closeout.c: Likewise.
20861 * lib/closeout.h: Likewise.
20862 * lib/concat-filename.c: Likewise.
20863 * lib/copy-file.c: Likewise.
20864 * lib/copy-file.h: Likewise.
20865 * lib/count-one-bits.h: Likewise.
20866 * lib/crc.c: Likewise.
20867 * lib/crc.h: Likewise.
20868 * lib/creat-safer.c: Likewise.
20869 * lib/csharpcomp.c: Likewise.
20870 * lib/csharpcomp.h: Likewise.
20871 * lib/csharpexec.c: Likewise.
20872 * lib/csharpexec.h: Likewise.
20873 * lib/cycle-check.c: Likewise.
20874 * lib/cycle-check.h: Likewise.
20875 * lib/diacrit.c: Likewise.
20876 * lib/diacrit.h: Likewise.
20877 * lib/diffseq.h: Likewise.
20878 * lib/dirchownmod.c: Likewise.
20879 * lib/dirent.in.h: Likewise.
20880 * lib/dirfd.c: Likewise.
20881 * lib/dirfd.h: Likewise.
20882 * lib/dirname.c: Likewise.
20883 * lib/dirname.h: Likewise.
20884 * lib/dummy.c: Likewise.
20885 * lib/dup-safer.c: Likewise.
20886 * lib/dup2.c: Likewise.
20887 * lib/eealloc.h: Likewise.
20888 * lib/error.c: Likewise.
20889 * lib/error.h: Likewise.
20890 * lib/euidaccess.c: Likewise.
20891 * lib/exclude.c: Likewise.
20892 * lib/exclude.h: Likewise.
20893 * lib/execute.c: Likewise.
20894 * lib/execute.h: Likewise.
20895 * lib/exitfail.c: Likewise.
20896 * lib/exitfail.h: Likewise.
20897 * lib/expl.c: Likewise.
20898 * lib/fatal-signal.c: Likewise.
20899 * lib/fatal-signal.h: Likewise.
20900 * lib/fbufmode.c: Likewise.
20901 * lib/fbufmode.h: Likewise.
20902 * lib/fchdir.c: Likewise.
20903 * lib/fchmodat.c: Likewise.
20904 * lib/fchownat.c: Likewise.
20905 * lib/fcntl--.h: Likewise.
20906 * lib/fcntl-safer.h: Likewise.
20907 * lib/fcntl.in.h: Likewise.
20908 * lib/fd-safer.c: Likewise.
20909 * lib/fflush.c: Likewise.
20910 * lib/file-has-acl.c: Likewise.
20911 * lib/file-set.c: Likewise.
20912 * lib/file-type.c: Likewise.
20913 * lib/file-type.h: Likewise.
20914 * lib/fileblocks.c: Likewise.
20915 * lib/filemode.c: Likewise.
20916 * lib/filemode.h: Likewise.
20917 * lib/filename.h: Likewise.
20918 * lib/filenamecat.c: Likewise.
20919 * lib/filenamecat.h: Likewise.
20920 * lib/findprog.c: Likewise.
20921 * lib/findprog.h: Likewise.
20922 * lib/float.in.h: Likewise.
20923 * lib/floor.c: Likewise.
20924 * lib/floorf.c: Likewise.
20925 * lib/floorl.c: Likewise.
20926 * lib/fopen-safer.c: Likewise.
20927 * lib/fopen.c: Likewise.
20928 * lib/fpending.c: Likewise.
20929 * lib/fpending.h: Likewise.
20930 * lib/fprintf.c: Likewise.
20931 * lib/fprintftime.h: Likewise.
20932 * lib/fpucw.h: Likewise.
20933 * lib/fpurge.c: Likewise.
20934 * lib/fpurge.h: Likewise.
20935 * lib/freadable.c: Likewise.
20936 * lib/freadable.h: Likewise.
20937 * lib/freadahead.c: Likewise.
20938 * lib/freadahead.h: Likewise.
20939 * lib/freading.c: Likewise.
20940 * lib/freading.h: Likewise.
20941 * lib/free.c: Likewise.
20942 * lib/freopen.c: Likewise.
20943 * lib/frexp.c: Likewise.
20944 * lib/frexpl.c: Likewise.
20945 * lib/fseek.c: Likewise.
20946 * lib/fseterr.c: Likewise.
20947 * lib/fseterr.h: Likewise.
20948 * lib/fstatat.c: Likewise.
20949 * lib/fstrcmp.c: Likewise.
20950 * lib/fstrcmp.h: Likewise.
20951 * lib/fsusage.c: Likewise.
20952 * lib/fsusage.h: Likewise.
20953 * lib/ftell.c: Likewise.
20954 * lib/ftello.c: Likewise.
20955 * lib/fts-cycle.c: Likewise.
20956 * lib/fts.c: Likewise.
20957 * lib/fts_.h: Likewise.
20958 * lib/full-read.c: Likewise.
20959 * lib/full-read.h: Likewise.
20960 * lib/full-write.c: Likewise.
20961 * lib/full-write.h: Likewise.
20962 * lib/fwritable.c: Likewise.
20963 * lib/fwritable.h: Likewise.
20964 * lib/fwriteerror.c: Likewise.
20965 * lib/fwriteerror.h: Likewise.
20966 * lib/fwriting.c: Likewise.
20967 * lib/fwriting.h: Likewise.
20968 * lib/gcd.c: Likewise.
20969 * lib/gcd.h: Likewise.
20970 * lib/getcwd.c: Likewise.
20971 * lib/getdate.h: Likewise.
20972 * lib/getdate.y: Likewise.
20973 * lib/getdomainname.c: Likewise.
20974 * lib/getdomainname.h: Likewise.
20975 * lib/getgroups.c: Likewise.
20976 * lib/gethostname.c: Likewise.
20977 * lib/gethrxtime.c: Likewise.
20978 * lib/gethrxtime.h: Likewise.
20979 * lib/getloadavg.c: Likewise.
20980 * lib/getndelim2.c: Likewise.
20981 * lib/getndelim2.h: Likewise.
20982 * lib/getnline.c: Likewise.
20983 * lib/getnline.h: Likewise.
20984 * lib/getopt.c: Likewise.
20985 * lib/getopt.in.h: Likewise.
20986 * lib/getopt1.c: Likewise.
20987 * lib/getopt_int.h: Likewise.
20988 * lib/getpagesize.h: Likewise.
20989 * lib/getsubopt.c: Likewise.
20990 * lib/gettime.c: Likewise.
20991 * lib/getugroups.c: Likewise.
20992 * lib/getugroups.h: Likewise.
20993 * lib/getusershell.c: Likewise.
20994 * lib/gl_anyavltree_list1.h: Likewise.
20995 * lib/gl_anyavltree_list2.h: Likewise.
20996 * lib/gl_anyhash_list1.h: Likewise.
20997 * lib/gl_anyhash_list2.h: Likewise.
20998 * lib/gl_anylinked_list1.h: Likewise.
20999 * lib/gl_anylinked_list2.h: Likewise.
21000 * lib/gl_anyrbtree_list1.h: Likewise.
21001 * lib/gl_anyrbtree_list2.h: Likewise.
21002 * lib/gl_anytree_list1.h: Likewise.
21003 * lib/gl_anytree_list2.h: Likewise.
21004 * lib/gl_anytree_oset.h: Likewise.
21005 * lib/gl_anytreehash_list1.h: Likewise.
21006 * lib/gl_anytreehash_list2.h: Likewise.
21007 * lib/gl_array_list.c: Likewise.
21008 * lib/gl_array_list.h: Likewise.
21009 * lib/gl_array_oset.c: Likewise.
21010 * lib/gl_array_oset.h: Likewise.
21011 * lib/gl_avltree_list.c: Likewise.
21012 * lib/gl_avltree_list.h: Likewise.
21013 * lib/gl_avltree_oset.c: Likewise.
21014 * lib/gl_avltree_oset.h: Likewise.
21015 * lib/gl_avltreehash_list.c: Likewise.
21016 * lib/gl_avltreehash_list.h: Likewise.
21017 * lib/gl_carray_list.c: Likewise.
21018 * lib/gl_carray_list.h: Likewise.
21019 * lib/gl_linked_list.c: Likewise.
21020 * lib/gl_linked_list.h: Likewise.
21021 * lib/gl_linkedhash_list.c: Likewise.
21022 * lib/gl_linkedhash_list.h: Likewise.
21023 * lib/gl_list.c: Likewise.
21024 * lib/gl_list.h: Likewise.
21025 * lib/gl_oset.c: Likewise.
21026 * lib/gl_oset.h: Likewise.
21027 * lib/gl_rbtree_list.c: Likewise.
21028 * lib/gl_rbtree_list.h: Likewise.
21029 * lib/gl_rbtree_oset.c: Likewise.
21030 * lib/gl_rbtree_oset.h: Likewise.
21031 * lib/gl_rbtreehash_list.c: Likewise.
21032 * lib/gl_rbtreehash_list.h: Likewise.
21033 * lib/gl_sublist.c: Likewise.
21034 * lib/gl_sublist.h: Likewise.
21035 * lib/group-member.c: Likewise.
21036 * lib/group-member.h: Likewise.
21037 * lib/hard-locale.c: Likewise.
21038 * lib/hard-locale.h: Likewise.
21039 * lib/hash-pjw.c: Likewise.
21040 * lib/hash-pjw.h: Likewise.
21041 * lib/hash-triple.c: Likewise.
21042 * lib/hash.c: Likewise.
21043 * lib/hash.h: Likewise.
21044 * lib/human.c: Likewise.
21045 * lib/human.h: Likewise.
21046 * lib/i-ring.c: Likewise.
21047 * lib/i-ring.h: Likewise.
21048 * lib/idcache.c: Likewise.
21049 * lib/imaxabs.c: Likewise.
21050 * lib/imaxdiv.c: Likewise.
21051 * lib/inet_pton.c: Likewise.
21052 * lib/inet_pton.h: Likewise.
21053 * lib/intprops.h: Likewise.
21054 * lib/inttostr.c: Likewise.
21055 * lib/inttostr.h: Likewise.
21056 * lib/inttypes.in.h: Likewise.
21057 * lib/isapipe.c: Likewise.
21058 * lib/isdir.c: Likewise.
21059 * lib/isnan.c: Likewise.
21060 * lib/isnan.h: Likewise.
21061 * lib/isnanf.c: Likewise.
21062 * lib/isnanf.h: Likewise.
21063 * lib/isnanl-nolibm.h: Likewise.
21064 * lib/isnanl.c: Likewise.
21065 * lib/isnanl.h: Likewise.
21066 * lib/javacomp.c: Likewise.
21067 * lib/javacomp.h: Likewise.
21068 * lib/javaexec.c: Likewise.
21069 * lib/javaexec.h: Likewise.
21070 * lib/javaversion.c: Likewise.
21071 * lib/javaversion.h: Likewise.
21072 * lib/javaversion.java: Likewise.
21073 * lib/lbrkprop.h: Likewise.
21074 * lib/lchmod.h: Likewise.
21075 * lib/lchown.c: Likewise.
21076 * lib/ldexpl.c: Likewise.
21077 * lib/linebreak.c: Likewise.
21078 * lib/linebreak.h: Likewise.
21079 * lib/linebuffer.c: Likewise.
21080 * lib/linebuffer.h: Likewise.
21081 * lib/locale.in.h: Likewise.
21082 * lib/logl.c: Likewise.
21083 * lib/long-options.c: Likewise.
21084 * lib/long-options.h: Likewise.
21085 * lib/lstat.c: Likewise.
21086 * lib/lstat.h: Likewise.
21087 * lib/math.in.h: Likewise.
21088 * lib/mbchar.c: Likewise.
21089 * lib/mbchar.h: Likewise.
21090 * lib/mbfile.h: Likewise.
21091 * lib/mbiter.h: Likewise.
21092 * lib/mbscasecmp.c: Likewise.
21093 * lib/mbscasestr.c: Likewise.
21094 * lib/mbschr.c: Likewise.
21095 * lib/mbscspn.c: Likewise.
21096 * lib/mbslen.c: Likewise.
21097 * lib/mbsncasecmp.c: Likewise.
21098 * lib/mbsnlen.c: Likewise.
21099 * lib/mbspbrk.c: Likewise.
21100 * lib/mbspcasecmp.c: Likewise.
21101 * lib/mbsrchr.c: Likewise.
21102 * lib/mbssep.c: Likewise.
21103 * lib/mbsspn.c: Likewise.
21104 * lib/mbsstr.c: Likewise.
21105 * lib/mbstok_r.c: Likewise.
21106 * lib/mbswidth.c: Likewise.
21107 * lib/mbswidth.h: Likewise.
21108 * lib/mbuiter.h: Likewise.
21109 * lib/memcasecmp.c: Likewise.
21110 * lib/memcasecmp.h: Likewise.
21111 * lib/memchr.c: Likewise.
21112 * lib/memcmp.c: Likewise.
21113 * lib/memcoll.c: Likewise.
21114 * lib/memcoll.h: Likewise.
21115 * lib/memcpy.c: Likewise.
21116 * lib/memrchr.c: Likewise.
21117 * lib/mkancesdirs.c: Likewise.
21118 * lib/mkdir-p.c: Likewise.
21119 * lib/mkdir-p.h: Likewise.
21120 * lib/mkdir.c: Likewise.
21121 * lib/mkdirat.c: Likewise.
21122 * lib/mkdtemp.c: Likewise.
21123 * lib/mkstemp-safer.c: Likewise.
21124 * lib/mkstemp.c: Likewise.
21125 * lib/modechange.c: Likewise.
21126 * lib/modechange.h: Likewise.
21127 * lib/mountlist.c: Likewise.
21128 * lib/mountlist.h: Likewise.
21129 * lib/mpsort.c: Likewise.
21130 * lib/nanosleep.c: Likewise.
21131 * lib/obstack.c: Likewise.
21132 * lib/obstack.h: Likewise.
21133 * lib/open-safer.c: Likewise.
21134 * lib/open.c: Likewise.
21135 * lib/openat-die.c: Likewise.
21136 * lib/openat-priv.h: Likewise.
21137 * lib/openat-proc.c: Likewise.
21138 * lib/openat.c: Likewise.
21139 * lib/openat.h: Likewise.
21140 * lib/pagealign_alloc.c: Likewise.
21141 * lib/pagealign_alloc.h: Likewise.
21142 * lib/physmem.c: Likewise.
21143 * lib/physmem.h: Likewise.
21144 * lib/pipe-safer.c: Likewise.
21145 * lib/pipe.c: Likewise.
21146 * lib/pipe.h: Likewise.
21147 * lib/posixtm.c: Likewise.
21148 * lib/posixtm.h: Likewise.
21149 * lib/posixver.c: Likewise.
21150 * lib/printf-frexp.c: Likewise.
21151 * lib/printf-frexp.h: Likewise.
21152 * lib/printf-frexpl.c: Likewise.
21153 * lib/printf-frexpl.h: Likewise.
21154 * lib/printf.c: Likewise.
21155 * lib/progname.c: Likewise.
21156 * lib/progname.h: Likewise.
21157 * lib/progreloc.c: Likewise.
21158 * lib/putenv.c: Likewise.
21159 * lib/quote.c: Likewise.
21160 * lib/quote.h: Likewise.
21161 * lib/quotearg.c: Likewise.
21162 * lib/quotearg.h: Likewise.
21163 * lib/raise.c: Likewise.
21164 * lib/readline.c: Likewise.
21165 * lib/readline.h: Likewise.
21166 * lib/readlink.c: Likewise.
21167 * lib/readtokens.c: Likewise.
21168 * lib/readtokens.h: Likewise.
21169 * lib/readtokens0.c: Likewise.
21170 * lib/readtokens0.h: Likewise.
21171 * lib/readutmp.c: Likewise.
21172 * lib/readutmp.h: Likewise.
21173 * lib/realloc.c: Likewise.
21174 * lib/relocwrapper.c: Likewise.
21175 * lib/rename-dest-slash.c: Likewise.
21176 * lib/rename.c: Likewise.
21177 * lib/rmdir.c: Likewise.
21178 * lib/rpmatch.c: Likewise.
21179 * lib/safe-read.c: Likewise.
21180 * lib/safe-read.h: Likewise.
21181 * lib/safe-write.c: Likewise.
21182 * lib/safe-write.h: Likewise.
21183 * lib/same-inode.h: Likewise.
21184 * lib/same.c: Likewise.
21185 * lib/same.h: Likewise.
21186 * lib/save-cwd.c: Likewise.
21187 * lib/save-cwd.h: Likewise.
21188 * lib/savedir.c: Likewise.
21189 * lib/savedir.h: Likewise.
21190 * lib/savewd.c: Likewise.
21191 * lib/savewd.h: Likewise.
21192 * lib/search.in.h: Likewise.
21193 * lib/setenv.c: Likewise.
21194 * lib/setenv.h: Likewise.
21195 * lib/settime.c: Likewise.
21196 * lib/sh-quote.c: Likewise.
21197 * lib/sh-quote.h: Likewise.
21198 * lib/sig2str.c: Likewise.
21199 * lib/sig2str.h: Likewise.
21200 * lib/signal.in.h: Likewise.
21201 * lib/signbitd.c: Likewise.
21202 * lib/signbitf.c: Likewise.
21203 * lib/signbitl.c: Likewise.
21204 * lib/sigprocmask.c: Likewise.
21205 * lib/sincosl.c: Likewise.
21206 * lib/sleep.c: Likewise.
21207 * lib/sprintf.c: Likewise.
21208 * lib/sqrtl.c: Likewise.
21209 * lib/stat-time.h: Likewise.
21210 * lib/stdio--.h: Likewise.
21211 * lib/stdio-safer.h: Likewise.
21212 * lib/stdlib--.h: Likewise.
21213 * lib/stdlib-safer.h: Likewise.
21214 * lib/stdlib.in.h: Likewise.
21215 * lib/stpcpy.c: Likewise.
21216 * lib/stpncpy.c: Likewise.
21217 * lib/strchrnul.c: Likewise.
21218 * lib/strcspn.c: Likewise.
21219 * lib/strerror.c: Likewise.
21220 * lib/strftime.c: Likewise.
21221 * lib/strftime.h: Likewise.
21222 * lib/striconveh.c: Likewise.
21223 * lib/striconveh.h: Likewise.
21224 * lib/striconveha.c: Likewise.
21225 * lib/striconveha.h: Likewise.
21226 * lib/stripslash.c: Likewise.
21227 * lib/strnlen1.c: Likewise.
21228 * lib/strnlen1.h: Likewise.
21229 * lib/strtod.c: Likewise.
21230 * lib/strtoimax.c: Likewise.
21231 * lib/strtok_r.c: Likewise.
21232 * lib/strtol.c: Likewise.
21233 * lib/strtoll.c: Likewise.
21234 * lib/strtoul.c: Likewise.
21235 * lib/strtoull.c: Likewise.
21236 * lib/sysexits.in.h: Likewise.
21237 * lib/tempname.c: Likewise.
21238 * lib/tempname.h: Likewise.
21239 * lib/timespec.h: Likewise.
21240 * lib/tls.c: Likewise.
21241 * lib/tls.h: Likewise.
21242 * lib/tmpdir.c: Likewise.
21243 * lib/tmpdir.h: Likewise.
21244 * lib/tmpfile-safer.c: Likewise.
21245 * lib/tmpfile.c: Likewise.
21246 * lib/trigl.c: Likewise.
21247 * lib/trigl.h: Likewise.
21248 * lib/trim.c: Likewise.
21249 * lib/trim.h: Likewise.
21250 * lib/trunc.c: Likewise.
21251 * lib/truncf.c: Likewise.
21252 * lib/truncl.c: Likewise.
21253 * lib/tsearch.c: Likewise.
21254 * lib/unicodeio.c: Likewise.
21255 * lib/unicodeio.h: Likewise.
21256 * lib/unistd--.h: Likewise.
21257 * lib/unistd-safer.h: Likewise.
21258 * lib/unistdio/ulc-fprintf.c: Likewise.
21259 * lib/unistdio/ulc-vfprintf.c: Likewise.
21260 * lib/unlinkdir.c: Likewise.
21261 * lib/unlinkdir.h: Likewise.
21262 * lib/unlocked-io.h: Likewise.
21263 * lib/unsetenv.c: Likewise.
21264 * lib/userspec.c: Likewise.
21265 * lib/utime.c: Likewise.
21266 * lib/utimecmp.c: Likewise.
21267 * lib/utimecmp.h: Likewise.
21268 * lib/utimens.c: Likewise.
21269 * lib/verify.h: Likewise.
21270 * lib/verror.c: Likewise.
21271 * lib/verror.h: Likewise.
21272 * lib/version-etc-fsf.c: Likewise.
21273 * lib/version-etc.c: Likewise.
21274 * lib/version-etc.h: Likewise.
21275 * lib/vfprintf.c: Likewise.
21276 * lib/vprintf.c: Likewise.
21277 * lib/vsprintf.c: Likewise.
21278 * lib/w32spawn.h: Likewise.
21279 * lib/wait-process.c: Likewise.
21280 * lib/wait-process.h: Likewise.
21281 * lib/wcwidth.c: Likewise.
21282 * lib/write-any-file.c: Likewise.
21283 * lib/xalloc-die.c: Likewise.
21284 * lib/xalloc.h: Likewise.
21285 * lib/xasprintf.c: Likewise.
21286 * lib/xgetcwd.c: Likewise.
21287 * lib/xgetcwd.h: Likewise.
21288 * lib/xgetdomainname.c: Likewise.
21289 * lib/xgetdomainname.h: Likewise.
21290 * lib/xgethostname.c: Likewise.
21291 * lib/xmalloc.c: Likewise.
21292 * lib/xmalloca.c: Likewise.
21293 * lib/xmalloca.h: Likewise.
21294 * lib/xmemcoll.c: Likewise.
21295 * lib/xnanosleep.c: Likewise.
21296 * lib/xreadlink.c: Likewise.
21297 * lib/xreadlink.h: Likewise.
21298 * lib/xsetenv.c: Likewise.
21299 * lib/xsetenv.h: Likewise.
21300 * lib/xstriconv.c: Likewise.
21301 * lib/xstriconv.h: Likewise.
21302 * lib/xstrndup.c: Likewise.
21303 * lib/xstrndup.h: Likewise.
21304 * lib/xstrtod.c: Likewise.
21305 * lib/xstrtod.h: Likewise.
21306 * lib/xstrtol-error.c: Likewise.
21307 * lib/xstrtol.c: Likewise.
21308 * lib/xstrtol.h: Likewise.
21309 * lib/xtime.h: Likewise.
21310 * lib/xvasprintf.c: Likewise.
21311 * lib/xvasprintf.h: Likewise.
21312 * lib/yesno.c: Likewise.
21313 * lib/yesno.h: Likewise.
21314 * posix-modules: Likewise.
21315 * tests/test-alloca-opt.c: Likewise.
21316 * tests/test-arcfour.c: Likewise.
21317 * tests/test-arctwo.c: Likewise.
21318 * tests/test-argmatch.c: Likewise.
21319 * tests/test-argp-2.sh: Likewise.
21320 * tests/test-argp.c: Likewise.
21321 * tests/test-arpa_inet.c: Likewise.
21322 * tests/test-array_list.c: Likewise.
21323 * tests/test-array_oset.c: Likewise.
21324 * tests/test-atexit.c: Likewise.
21325 * tests/test-avltree_list.c: Likewise.
21326 * tests/test-avltree_oset.c: Likewise.
21327 * tests/test-avltreehash_list.c: Likewise.
21328 * tests/test-base64.c: Likewise.
21329 * tests/test-binary-io.c: Likewise.
21330 * tests/test-byteswap.c: Likewise.
21331 * tests/test-c-ctype.c: Likewise.
21332 * tests/test-c-strcasecmp.c: Likewise.
21333 * tests/test-c-strcasestr.c: Likewise.
21334 * tests/test-c-strncasecmp.c: Likewise.
21335 * tests/test-c-strstr.c: Likewise.
21336 * tests/test-canonicalize-lgpl.c: Likewise.
21337 * tests/test-canonicalize.c: Likewise.
21338 * tests/test-carray_list.c: Likewise.
21339 * tests/test-ceilf.c: Likewise.
21340 * tests/test-ceill.c: Likewise.
21341 * tests/test-count-one-bits.c: Likewise.
21342 * tests/test-crc.c: Likewise.
21343 * tests/test-dirname.c: Likewise.
21344 * tests/test-fbufmode.c: Likewise.
21345 * tests/test-fcntl.c: Likewise.
21346 * tests/test-fflush.c: Likewise.
21347 * tests/test-floorf.c: Likewise.
21348 * tests/test-floorl.c: Likewise.
21349 * tests/test-fopen.c: Likewise.
21350 * tests/test-fprintf-posix.c: Likewise.
21351 * tests/test-fprintf-posix.h: Likewise.
21352 * tests/test-fpurge.c: Likewise.
21353 * tests/test-freadable.c: Likewise.
21354 * tests/test-freadahead.c: Likewise.
21355 * tests/test-freading.c: Likewise.
21356 * tests/test-freopen.c: Likewise.
21357 * tests/test-frexp.c: Likewise.
21358 * tests/test-frexpl.c: Likewise.
21359 * tests/test-fseek.c: Likewise.
21360 * tests/test-fseeko.c: Likewise.
21361 * tests/test-fseterr.c: Likewise.
21362 * tests/test-fstrcmp.c: Likewise.
21363 * tests/test-ftell.c: Likewise.
21364 * tests/test-ftello.c: Likewise.
21365 * tests/test-fwritable.c: Likewise.
21366 * tests/test-fwriting.c: Likewise.
21367 * tests/test-getaddrinfo.c: Likewise.
21368 * tests/test-getpass.c: Likewise.
21369 * tests/test-gettimeofday.c: Likewise.
21370 * tests/test-hmac-md5.c: Likewise.
21371 * tests/test-hmac-sha1.c: Likewise.
21372 * tests/test-iconv.c: Likewise.
21373 * tests/test-iconvme.c: Likewise.
21374 * tests/test-inttypes.c: Likewise.
21375 * tests/test-isnan.c: Likewise.
21376 * tests/test-isnanf.c: Likewise.
21377 * tests/test-isnanl-nolibm.c: Likewise.
21378 * tests/test-isnanl.c: Likewise.
21379 * tests/test-isnanl.h: Likewise.
21380 * tests/test-ldexpl.c: Likewise.
21381 * tests/test-linked_list.c: Likewise.
21382 * tests/test-linkedhash_list.c: Likewise.
21383 * tests/test-locale.c: Likewise.
21384 * tests/test-localename.c: Likewise.
21385 * tests/test-lock.c: Likewise.
21386 * tests/test-lseek.c: Likewise.
21387 * tests/test-malloca.c: Likewise.
21388 * tests/test-math.c: Likewise.
21389 * tests/test-mbscasecmp.c: Likewise.
21390 * tests/test-mbscasestr1.c: Likewise.
21391 * tests/test-mbscasestr2.c: Likewise.
21392 * tests/test-mbscasestr3.c: Likewise.
21393 * tests/test-mbscasestr4.c: Likewise.
21394 * tests/test-mbschr.c: Likewise.
21395 * tests/test-mbscspn.c: Likewise.
21396 * tests/test-mbsncasecmp.c: Likewise.
21397 * tests/test-mbspbrk.c: Likewise.
21398 * tests/test-mbspcasecmp.c: Likewise.
21399 * tests/test-mbsrchr.c: Likewise.
21400 * tests/test-mbsspn.c: Likewise.
21401 * tests/test-mbsstr1.c: Likewise.
21402 * tests/test-mbsstr2.c: Likewise.
21403 * tests/test-mbsstr3.c: Likewise.
21404 * tests/test-md5.c: Likewise.
21405 * tests/test-memmem.c: Likewise.
21406 * tests/test-netinet_in.c: Likewise.
21407 * tests/test-open.c: Likewise.
21408 * tests/test-printf-frexp.c: Likewise.
21409 * tests/test-printf-frexpl.c: Likewise.
21410 * tests/test-printf-posix.c: Likewise.
21411 * tests/test-printf-posix.h: Likewise.
21412 * tests/test-rbtree_list.c: Likewise.
21413 * tests/test-rbtree_oset.c: Likewise.
21414 * tests/test-rbtreehash_list.c: Likewise.
21415 * tests/test-read-file.c: Likewise.
21416 * tests/test-rijndael.c: Likewise.
21417 * tests/test-search.c: Likewise.
21418 * tests/test-signbit.c: Likewise.
21419 * tests/test-sleep.c: Likewise.
21420 * tests/test-snprintf-posix.c: Likewise.
21421 * tests/test-snprintf-posix.h: Likewise.
21422 * tests/test-snprintf.c: Likewise.
21423 * tests/test-sprintf-posix.c: Likewise.
21424 * tests/test-sprintf-posix.h: Likewise.
21425 * tests/test-stat-time.c: Likewise.
21426 * tests/test-stdbool.c: Likewise.
21427 * tests/test-stdint.c: Likewise.
21428 * tests/test-stdio.c: Likewise.
21429 * tests/test-stdlib.c: Likewise.
21430 * tests/test-stpncpy.c: Likewise.
21431 * tests/test-strcasestr.c: Likewise.
21432 * tests/test-striconv.c: Likewise.
21433 * tests/test-striconveh.c: Likewise.
21434 * tests/test-striconveha.c: Likewise.
21435 * tests/test-string.c: Likewise.
21436 * tests/test-sys_select.c: Likewise.
21437 * tests/test-sys_socket.c: Likewise.
21438 * tests/test-sys_stat.c: Likewise.
21439 * tests/test-sys_time.c: Likewise.
21440 * tests/test-sysexits.c: Likewise.
21441 * tests/test-time.c: Likewise.
21442 * tests/test-tls.c: Likewise.
21443 * tests/test-trunc.c: Likewise.
21444 * tests/test-truncf.c: Likewise.
21445 * tests/test-truncl.c: Likewise.
21446 * tests/test-unistd.c: Likewise.
21447 * tests/test-vasnprintf-posix.c: Likewise.
21448 * tests/test-vasnprintf-posix2.c: Likewise.
21449 * tests/test-vasnprintf.c: Likewise.
21450 * tests/test-vasprintf-posix.c: Likewise.
21451 * tests/test-vasprintf.c: Likewise.
21452 * tests/test-verify.c: Likewise.
21453 * tests/test-vfprintf-posix.c: Likewise.
21454 * tests/test-vprintf-posix.c: Likewise.
21455 * tests/test-vsnprintf-posix.c: Likewise.
21456 * tests/test-vsnprintf.c: Likewise.
21457 * tests/test-vsprintf-posix.c: Likewise.
21458 * tests/test-wchar.c: Likewise.
21459 * tests/test-wctype.c: Likewise.
21460 * tests/test-wcwidth.c: Likewise.
21461 * tests/test-xstrtol.c: Likewise.
21462 * tests/test-xvasprintf.c: Likewise.
21463 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
21464 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
21465 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
21466 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
21467 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
21468 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
21469 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
21470 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
21471 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
21472 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
21473 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
21474 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
21475 * tests/uniname/test-uninames.c: Likewise.
21476 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
21477 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
21478 * tests/unistdio/test-u16-printf1.h: Likewise.
21479 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
21480 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
21481 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
21482 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
21483 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
21484 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
21485 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
21486 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
21487 * tests/unistdio/test-u32-printf1.h: Likewise.
21488 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
21489 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
21490 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
21491 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
21492 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
21493 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
21494 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
21495 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
21496 * tests/unistdio/test-u8-printf1.h: Likewise.
21497 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
21498 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
21499 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
21500 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
21501 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
21502 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
21503 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
21504 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
21505 * tests/unistdio/test-ulc-printf1.h: Likewise.
21506 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
21507 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
21508 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
21509 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
21510 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
21511 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
21512 * tests/uniwidth/test-u16-strwidth.c: Likewise.
21513 * tests/uniwidth/test-u16-width.c: Likewise.
21514 * tests/uniwidth/test-u32-strwidth.c: Likewise.
21515 * tests/uniwidth/test-u32-width.c: Likewise.
21516 * tests/uniwidth/test-u8-strwidth.c: Likewise.
21517 * tests/uniwidth/test-u8-width.c: Likewise.
21518 * tests/uniwidth/test-uc_width.c: Likewise.
21519 * config/srclist-update: Likewise.
21520 (fixlicense): Update to GPLv3+.
21522 Change copyright notice from LGPLv2.1+ to LGPLv3+.
21523 * tests/test-tsearch.c: Change copyright notice.
21525 Change copyright notice from LGPLv2.0+ to LGPLv3+.
21526 * lib/c-strcaseeq.h: Change copyright notice.
21527 * lib/streq.h: Likewise.
21528 * lib/uniconv.h: Likewise.
21529 * lib/uniconv/u-conv-from-enc.h: Likewise.
21530 * lib/uniconv/u-conv-to-enc.h: Likewise.
21531 * lib/uniconv/u-strconv-from-enc.h: Likewise.
21532 * lib/uniconv/u-strconv-to-enc.h: Likewise.
21533 * lib/uniconv/u16-conv-from-enc.c: Likewise.
21534 * lib/uniconv/u16-conv-to-enc.c: Likewise.
21535 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
21536 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
21537 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
21538 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
21539 * lib/uniconv/u32-conv-from-enc.c: Likewise.
21540 * lib/uniconv/u32-conv-to-enc.c: Likewise.
21541 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
21542 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
21543 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
21544 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
21545 * lib/uniconv/u8-conv-from-enc.c: Likewise.
21546 * lib/uniconv/u8-conv-to-enc.c: Likewise.
21547 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
21548 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
21549 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
21550 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
21551 * lib/uniname.h: Likewise.
21552 * lib/uniname/uniname.c: Likewise.
21553 * lib/unistdio.h: Likewise.
21554 * lib/unistdio/u-asnprintf.h: Likewise.
21555 * lib/unistdio/u-asprintf.h: Likewise.
21556 * lib/unistdio/u-printf-args.c: Likewise.
21557 * lib/unistdio/u-printf-args.h: Likewise.
21558 * lib/unistdio/u-printf-parse.h: Likewise.
21559 * lib/unistdio/u-snprintf.h: Likewise.
21560 * lib/unistdio/u-sprintf.h: Likewise.
21561 * lib/unistdio/u-vasprintf.h: Likewise.
21562 * lib/unistdio/u-vsnprintf.h: Likewise.
21563 * lib/unistdio/u-vsprintf.h: Likewise.
21564 * lib/unistdio/u16-asnprintf.c: Likewise.
21565 * lib/unistdio/u16-asprintf.c: Likewise.
21566 * lib/unistdio/u16-printf-parse.c: Likewise.
21567 * lib/unistdio/u16-snprintf.c: Likewise.
21568 * lib/unistdio/u16-sprintf.c: Likewise.
21569 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
21570 * lib/unistdio/u16-u16-asprintf.c: Likewise.
21571 * lib/unistdio/u16-u16-snprintf.c: Likewise.
21572 * lib/unistdio/u16-u16-sprintf.c: Likewise.
21573 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
21574 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
21575 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
21576 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
21577 * lib/unistdio/u16-vasnprintf.c: Likewise.
21578 * lib/unistdio/u16-vasprintf.c: Likewise.
21579 * lib/unistdio/u16-vsnprintf.c: Likewise.
21580 * lib/unistdio/u16-vsprintf.c: Likewise.
21581 * lib/unistdio/u32-asnprintf.c: Likewise.
21582 * lib/unistdio/u32-asprintf.c: Likewise.
21583 * lib/unistdio/u32-printf-parse.c: Likewise.
21584 * lib/unistdio/u32-snprintf.c: Likewise.
21585 * lib/unistdio/u32-sprintf.c: Likewise.
21586 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
21587 * lib/unistdio/u32-u32-asprintf.c: Likewise.
21588 * lib/unistdio/u32-u32-snprintf.c: Likewise.
21589 * lib/unistdio/u32-u32-sprintf.c: Likewise.
21590 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
21591 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
21592 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
21593 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
21594 * lib/unistdio/u32-vasnprintf.c: Likewise.
21595 * lib/unistdio/u32-vasprintf.c: Likewise.
21596 * lib/unistdio/u32-vsnprintf.c: Likewise.
21597 * lib/unistdio/u32-vsprintf.c: Likewise.
21598 * lib/unistdio/u8-asnprintf.c: Likewise.
21599 * lib/unistdio/u8-asprintf.c: Likewise.
21600 * lib/unistdio/u8-printf-parse.c: Likewise.
21601 * lib/unistdio/u8-snprintf.c: Likewise.
21602 * lib/unistdio/u8-sprintf.c: Likewise.
21603 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
21604 * lib/unistdio/u8-u8-asprintf.c: Likewise.
21605 * lib/unistdio/u8-u8-snprintf.c: Likewise.
21606 * lib/unistdio/u8-u8-sprintf.c: Likewise.
21607 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
21608 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
21609 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
21610 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
21611 * lib/unistdio/u8-vasnprintf.c: Likewise.
21612 * lib/unistdio/u8-vasprintf.c: Likewise.
21613 * lib/unistdio/u8-vsnprintf.c: Likewise.
21614 * lib/unistdio/u8-vsprintf.c: Likewise.
21615 * lib/unistdio/ulc-asnprintf.c: Likewise.
21616 * lib/unistdio/ulc-asprintf.c: Likewise.
21617 * lib/unistdio/ulc-printf-parse.c: Likewise.
21618 * lib/unistdio/ulc-snprintf.c: Likewise.
21619 * lib/unistdio/ulc-sprintf.c: Likewise.
21620 * lib/unistdio/ulc-vasnprintf.c: Likewise.
21621 * lib/unistdio/ulc-vasprintf.c: Likewise.
21622 * lib/unistdio/ulc-vsnprintf.c: Likewise.
21623 * lib/unistdio/ulc-vsprintf.c: Likewise.
21624 * lib/unistr.h: Likewise.
21625 * lib/unistr/u-cpy-alloc.h: Likewise.
21626 * lib/unistr/u-cpy.h: Likewise.
21627 * lib/unistr/u-endswith.h: Likewise.
21628 * lib/unistr/u-move.h: Likewise.
21629 * lib/unistr/u-set.h: Likewise.
21630 * lib/unistr/u-startswith.h: Likewise.
21631 * lib/unistr/u-stpcpy.h: Likewise.
21632 * lib/unistr/u-stpncpy.h: Likewise.
21633 * lib/unistr/u-strcat.h: Likewise.
21634 * lib/unistr/u-strcpy.h: Likewise.
21635 * lib/unistr/u-strcspn.h: Likewise.
21636 * lib/unistr/u-strdup.h: Likewise.
21637 * lib/unistr/u-strlen.h: Likewise.
21638 * lib/unistr/u-strncat.h: Likewise.
21639 * lib/unistr/u-strncpy.h: Likewise.
21640 * lib/unistr/u-strnlen.h: Likewise.
21641 * lib/unistr/u-strpbrk.h: Likewise.
21642 * lib/unistr/u-strspn.h: Likewise.
21643 * lib/unistr/u-strstr.h: Likewise.
21644 * lib/unistr/u-strtok.h: Likewise.
21645 * lib/unistr/u16-check.c: Likewise.
21646 * lib/unistr/u16-chr.c: Likewise.
21647 * lib/unistr/u16-cmp.c: Likewise.
21648 * lib/unistr/u16-cpy-alloc.c: Likewise.
21649 * lib/unistr/u16-cpy.c: Likewise.
21650 * lib/unistr/u16-endswith.c: Likewise.
21651 * lib/unistr/u16-mblen.c: Likewise.
21652 * lib/unistr/u16-mbsnlen.c: Likewise.
21653 * lib/unistr/u16-mbtouc-aux.c: Likewise.
21654 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
21655 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
21656 * lib/unistr/u16-mbtouc.c: Likewise.
21657 * lib/unistr/u16-mbtoucr.c: Likewise.
21658 * lib/unistr/u16-move.c: Likewise.
21659 * lib/unistr/u16-next.c: Likewise.
21660 * lib/unistr/u16-prev.c: Likewise.
21661 * lib/unistr/u16-set.c: Likewise.
21662 * lib/unistr/u16-startswith.c: Likewise.
21663 * lib/unistr/u16-stpcpy.c: Likewise.
21664 * lib/unistr/u16-stpncpy.c: Likewise.
21665 * lib/unistr/u16-strcat.c: Likewise.
21666 * lib/unistr/u16-strchr.c: Likewise.
21667 * lib/unistr/u16-strcmp.c: Likewise.
21668 * lib/unistr/u16-strcpy.c: Likewise.
21669 * lib/unistr/u16-strcspn.c: Likewise.
21670 * lib/unistr/u16-strdup.c: Likewise.
21671 * lib/unistr/u16-strlen.c: Likewise.
21672 * lib/unistr/u16-strmblen.c: Likewise.
21673 * lib/unistr/u16-strmbtouc.c: Likewise.
21674 * lib/unistr/u16-strncat.c: Likewise.
21675 * lib/unistr/u16-strncmp.c: Likewise.
21676 * lib/unistr/u16-strncpy.c: Likewise.
21677 * lib/unistr/u16-strnlen.c: Likewise.
21678 * lib/unistr/u16-strpbrk.c: Likewise.
21679 * lib/unistr/u16-strrchr.c: Likewise.
21680 * lib/unistr/u16-strspn.c: Likewise.
21681 * lib/unistr/u16-strstr.c: Likewise.
21682 * lib/unistr/u16-strtok.c: Likewise.
21683 * lib/unistr/u16-to-u32.c: Likewise.
21684 * lib/unistr/u16-to-u8.c: Likewise.
21685 * lib/unistr/u16-uctomb-aux.c: Likewise.
21686 * lib/unistr/u16-uctomb.c: Likewise.
21687 * lib/unistr/u32-check.c: Likewise.
21688 * lib/unistr/u32-chr.c: Likewise.
21689 * lib/unistr/u32-cmp.c: Likewise.
21690 * lib/unistr/u32-cpy-alloc.c: Likewise.
21691 * lib/unistr/u32-cpy.c: Likewise.
21692 * lib/unistr/u32-endswith.c: Likewise.
21693 * lib/unistr/u32-mblen.c: Likewise.
21694 * lib/unistr/u32-mbsnlen.c: Likewise.
21695 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
21696 * lib/unistr/u32-mbtouc.c: Likewise.
21697 * lib/unistr/u32-mbtoucr.c: Likewise.
21698 * lib/unistr/u32-move.c: Likewise.
21699 * lib/unistr/u32-next.c: Likewise.
21700 * lib/unistr/u32-prev.c: Likewise.
21701 * lib/unistr/u32-set.c: Likewise.
21702 * lib/unistr/u32-startswith.c: Likewise.
21703 * lib/unistr/u32-stpcpy.c: Likewise.
21704 * lib/unistr/u32-stpncpy.c: Likewise.
21705 * lib/unistr/u32-strcat.c: Likewise.
21706 * lib/unistr/u32-strchr.c: Likewise.
21707 * lib/unistr/u32-strcmp.c: Likewise.
21708 * lib/unistr/u32-strcpy.c: Likewise.
21709 * lib/unistr/u32-strcspn.c: Likewise.
21710 * lib/unistr/u32-strdup.c: Likewise.
21711 * lib/unistr/u32-strlen.c: Likewise.
21712 * lib/unistr/u32-strmblen.c: Likewise.
21713 * lib/unistr/u32-strmbtouc.c: Likewise.
21714 * lib/unistr/u32-strncat.c: Likewise.
21715 * lib/unistr/u32-strncmp.c: Likewise.
21716 * lib/unistr/u32-strncpy.c: Likewise.
21717 * lib/unistr/u32-strnlen.c: Likewise.
21718 * lib/unistr/u32-strpbrk.c: Likewise.
21719 * lib/unistr/u32-strrchr.c: Likewise.
21720 * lib/unistr/u32-strspn.c: Likewise.
21721 * lib/unistr/u32-strstr.c: Likewise.
21722 * lib/unistr/u32-strtok.c: Likewise.
21723 * lib/unistr/u32-to-u16.c: Likewise.
21724 * lib/unistr/u32-to-u8.c: Likewise.
21725 * lib/unistr/u32-uctomb.c: Likewise.
21726 * lib/unistr/u8-check.c: Likewise.
21727 * lib/unistr/u8-chr.c: Likewise.
21728 * lib/unistr/u8-cmp.c: Likewise.
21729 * lib/unistr/u8-cpy-alloc.c: Likewise.
21730 * lib/unistr/u8-cpy.c: Likewise.
21731 * lib/unistr/u8-endswith.c: Likewise.
21732 * lib/unistr/u8-mblen.c: Likewise.
21733 * lib/unistr/u8-mbsnlen.c: Likewise.
21734 * lib/unistr/u8-mbtouc-aux.c: Likewise.
21735 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
21736 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
21737 * lib/unistr/u8-mbtouc.c: Likewise.
21738 * lib/unistr/u8-mbtoucr.c: Likewise.
21739 * lib/unistr/u8-move.c: Likewise.
21740 * lib/unistr/u8-next.c: Likewise.
21741 * lib/unistr/u8-prev.c: Likewise.
21742 * lib/unistr/u8-set.c: Likewise.
21743 * lib/unistr/u8-startswith.c: Likewise.
21744 * lib/unistr/u8-stpcpy.c: Likewise.
21745 * lib/unistr/u8-stpncpy.c: Likewise.
21746 * lib/unistr/u8-strcat.c: Likewise.
21747 * lib/unistr/u8-strchr.c: Likewise.
21748 * lib/unistr/u8-strcmp.c: Likewise.
21749 * lib/unistr/u8-strcpy.c: Likewise.
21750 * lib/unistr/u8-strcspn.c: Likewise.
21751 * lib/unistr/u8-strdup.c: Likewise.
21752 * lib/unistr/u8-strlen.c: Likewise.
21753 * lib/unistr/u8-strmblen.c: Likewise.
21754 * lib/unistr/u8-strmbtouc.c: Likewise.
21755 * lib/unistr/u8-strncat.c: Likewise.
21756 * lib/unistr/u8-strncmp.c: Likewise.
21757 * lib/unistr/u8-strncpy.c: Likewise.
21758 * lib/unistr/u8-strnlen.c: Likewise.
21759 * lib/unistr/u8-strpbrk.c: Likewise.
21760 * lib/unistr/u8-strrchr.c: Likewise.
21761 * lib/unistr/u8-strspn.c: Likewise.
21762 * lib/unistr/u8-strstr.c: Likewise.
21763 * lib/unistr/u8-strtok.c: Likewise.
21764 * lib/unistr/u8-to-u16.c: Likewise.
21765 * lib/unistr/u8-to-u32.c: Likewise.
21766 * lib/unistr/u8-uctomb-aux.c: Likewise.
21767 * lib/unistr/u8-uctomb.c: Likewise.
21768 * lib/unitypes.h: Likewise.
21769 * lib/uniwidth.h: Likewise.
21770 * lib/uniwidth/cjk.h: Likewise.
21771 * lib/uniwidth/u16-strwidth.c: Likewise.
21772 * lib/uniwidth/u16-width.c: Likewise.
21773 * lib/uniwidth/u32-strwidth.c: Likewise.
21774 * lib/uniwidth/u32-width.c: Likewise.
21775 * lib/uniwidth/u8-strwidth.c: Likewise.
21776 * lib/uniwidth/u8-width.c: Likewise.
21777 * lib/uniwidth/width.c: Likewise.
21779 2007-10-07 Bruno Haible <bruno@clisp.org>
21781 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
21782 The file is still under LGPL (see modules/inttypes).
21784 2007-10-06 Bruno Haible <bruno@clisp.org>
21786 * modules/trunc (Dependencies): Add 'extensions'.
21787 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
21788 Reported by Ben Pfaff <blp@gnu.org>.
21790 2007-10-06 Bruno Haible <bruno@clisp.org>
21792 * modules/freopen-tests: New file.
21793 * tests/test-freopen.c: New file.
21795 * modules/fopen-tests: New file.
21796 * tests/test-fopen.c: New file.
21798 * modules/fopen: New file.
21799 * lib/fopen.c: New file.
21800 * m4/fopen.m4: New file.
21801 * modules/freopen: New file.
21802 * lib/freopen.c: New file.
21803 * m4/freopen.m4: New file.
21804 * lib/stdio.in.h (fopen, freopen): New declarations.
21805 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
21806 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
21807 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
21808 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
21809 * doc/functions/fopen.texi: Mention the 'fopen' module.
21810 * doc/functions/freopen.texi: Mention the 'freopen' module.
21812 2007-10-06 Bruno Haible <bruno@clisp.org>
21814 * modules/open-tests: New file.
21815 * tests/test-open.c: New file.
21817 * modules/open: New file.
21818 * lib/open.c: New file.
21819 * m4/open.m4: New file.
21820 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
21822 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
21823 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
21825 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
21826 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
21828 * doc/functions/open.texi: Mention the 'open' module.
21830 2007-10-04 Bruno Haible <bruno@clisp.org>
21832 * modules/ceill-tests: New file.
21833 * tests/test-ceill.c: New file.
21835 * modules/ceill: New file.
21836 * lib/ceill.c: Replace entire file.
21837 * m4/ceill.m4: New file.
21838 * lib/math.in.h (ceill): Replace declaration.
21839 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
21840 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
21841 * doc/functions/ceill.texi: Mention the 'ceill' module.
21842 * modules/mathl (Files): Remove lib/ceill.c.
21843 (Depends-on): Add ceill.
21845 2007-10-04 Bruno Haible <bruno@clisp.org>
21847 * modules/ceilf-tests: New file.
21848 * tests/test-ceilf.c: New file.
21850 * modules/ceilf: New file.
21851 * lib/ceil.c: New file.
21852 * lib/ceilf.c: New file.
21853 * m4/ceilf.m4: New file.
21854 * lib/math.in.h (ceilf): New declaration.
21855 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
21857 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
21859 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
21861 2007-10-04 Bruno Haible <bruno@clisp.org>
21863 * modules/floorl-tests: New file.
21864 * tests/test-floorl.c: New file.
21866 * modules/floorl: New file.
21867 * lib/floorl.c: Replace entire file.
21868 * m4/floorl.m4: New file.
21869 * lib/math.in.h (floorl): Replace declaration.
21870 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
21871 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
21872 * doc/functions/floorl.texi: Mention the 'floorl' module.
21873 * modules/mathl (Files): Remove lib/floorl.c.
21874 (Depends-on): Add floorl.
21876 2007-10-04 Bruno Haible <bruno@clisp.org>
21878 * modules/floorf-tests: New file.
21879 * tests/test-floorf.c: New file.
21881 * modules/floorf: New file.
21882 * lib/floor.c: New file.
21883 * lib/floorf.c: New file.
21884 * m4/floorf.m4: New file.
21885 * lib/math.in.h (floorf): New declaration.
21886 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
21888 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
21890 * doc/functions/floorf.texi: Mention the 'floorf' module.
21892 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
21893 Bruno Haible <bruno@clisp.org>
21895 Advertise for the Git server instead of the CVS server.
21896 * doc/gnulib-intro.texi (Steady Development): Mention the Git
21897 repository instead of the CVS one.
21898 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
21899 about all VCS systems generically.
21900 * doc/gnulib.texi (Introduction): Capitalize `Git'.
21902 2007-10-04 Bruno Haible <bruno@clisp.org>
21904 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
21906 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
21908 2007-10-04 Bruno Haible <bruno@clisp.org>
21910 * modules/truncl-tests: New file.
21911 * tests/test-truncl.c: New file.
21913 * modules/truncl: New file.
21914 * lib/truncl.c: New file.
21915 * m4/truncl.m4: New file.
21916 * lib/math.in.h (truncl): New declaration.
21917 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
21919 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
21921 * doc/functions/truncl.texi: Mention the 'truncl' module.
21923 2007-10-04 Bruno Haible <bruno@clisp.org>
21925 * modules/truncf-tests: New file.
21926 * tests/test-truncf.c: New file.
21928 * modules/truncf: New file.
21929 * lib/trunc.c: Make paramerizable through USE_* macros.
21930 * lib/truncf.c: New file.
21931 * m4/truncf.m4: New file.
21932 * lib/math.in.h (truncf): New declaration.
21933 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
21935 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
21937 * doc/functions/truncf.texi: Mention the 'truncf' module.
21939 2007-10-03 Bruno Haible <bruno@clisp.org>
21941 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
21942 augmentation also for tests modules.
21943 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
21944 * modules/atexit-tests (Makefile.am): Likewise.
21945 * modules/binary-io-tests (Makefile.am): Likewise.
21946 * modules/c-strcase-tests (Makefile.am): Likewise.
21947 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
21948 * modules/canonicalize-tests (Makefile.am): Likewise.
21949 * modules/closein-tests (Makefile.am): Likewise.
21950 * modules/fprintf-posix-tests (Makefile.am): Likewise.
21951 * modules/freadahead-tests (Makefile.am): Likewise.
21952 * modules/fseek-tests (Makefile.am): Likewise.
21953 * modules/fseeko-tests (Makefile.am): Likewise.
21954 * modules/ftell-tests (Makefile.am): Likewise.
21955 * modules/ftello-tests (Makefile.am): Likewise.
21956 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
21957 * modules/isnanl-tests (Makefile.am): Likewise.
21958 * modules/lseek-tests (Makefile.am): Likewise.
21959 * modules/mbscasecmp-tests (Makefile.am): Likewise.
21960 * modules/mbscasestr-tests (Makefile.am): Likewise.
21961 * modules/mbschr-tests (Makefile.am): Likewise.
21962 * modules/mbscspn-tests (Makefile.am): Likewise.
21963 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
21964 * modules/mbspbrk-tests (Makefile.am): Likewise.
21965 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
21966 * modules/mbsrchr-tests (Makefile.am): Likewise.
21967 * modules/mbsspn-tests (Makefile.am): Likewise.
21968 * modules/mbsstr-tests (Makefile.am): Likewise.
21969 * modules/printf-posix-tests (Makefile.am): Likewise.
21970 * modules/snprintf-posix-tests (Makefile.am): Likewise.
21971 * modules/sprintf-posix-tests (Makefile.am): Likewise.
21972 * modules/tsearch-tests (Makefile.am): Likewise.
21973 * modules/uniname/uniname-tests (Makefile.am): Likewise.
21974 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
21975 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
21976 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
21977 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
21978 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
21979 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
21980 * modules/vprintf-posix-tests (Makefile.am): Likewise.
21981 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
21982 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
21983 * modules/xstrtoimax-tests (Makefile.am): Likewise.
21984 * modules/xstrtol-tests (Makefile.am): Likewise.
21985 * modules/xstrtoumax-tests (Makefile.am): Likewise.
21986 * modules/yesno-tests (Makefile.am): Likewise.
21988 2007-10-03 Bruno Haible <bruno@clisp.org>
21990 * modules/trunc-tests: New file.
21991 * tests/test-trunc.c: New file.
21993 * modules/trunc: New file.
21994 * lib/trunc.c: New file.
21995 * m4/trunc.m4: New file.
21996 * lib/math.in.h (trunc): New declaration.
21997 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
21999 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
22001 * doc/functions/trunc.texi: Mention the 'trunc' module.
22003 2007-10-03 Bruno Haible <bruno@clisp.org>
22005 * tests/test-fpending.c: New file, mostly copied
22006 from coreutils/lib/t-fpending.c.
22007 * modules/fpending-tests: New file.
22009 2007-10-03 Bruno Haible <bruno@clisp.org>
22011 Port the stdio extensions to QNX (untested).
22012 * lib/fseterr.c (fseterr): Add support for QNX.
22013 * lib/fbufmode.c (fbufmode): Likewise.
22014 * lib/freadable.c (freadable): Likewise.
22015 * lib/fwritable.c (fwritable): Likewise.
22016 * lib/freading.c (freading): Likewise.
22017 * lib/fwriting.c (fwriting): Likewise.
22018 * lib/freadahead.c (freadahed): Likewise.
22019 * lib/fpurge.c (fpurge): Likewise.
22020 * lib/fseeko.c (rpl_fseeko): Likewise.
22022 2007-10-03 Bruno Haible <bruno@clisp.org>
22023 Jim Meyering <jim@meyering.net>
22024 Eric Blake <ebb9@byu.net>
22026 * doc/relocatable.texi: Use @command instead of @program.
22028 2007-10-02 Jim Meyering <jim@meyering.net>
22030 Perform one more "_.h" -> ".in.h" substitution.
22031 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
22032 instead of unistd_.h here, too.
22034 2007-10-01 Bruno Haible <bruno@clisp.org>
22036 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
22037 Needed for the alloca-opt module.
22039 2007-09-30 Bruno Haible <bruno@clisp.org>
22041 * lib/alloca.in.h: Renamed from lib/alloca_.h.
22042 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
22044 * lib/argz.in.h: Renamed from lib/argz_.h.
22045 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
22046 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
22047 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
22049 * lib/dirent.in.h: Renamed from lib/dirent_.h.
22050 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
22052 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
22053 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
22055 * lib/float.in.h: Renamed from lib/float_.h.
22056 * modules/float (Files, Makefile.am): Use float.in.h instead of
22058 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
22059 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
22061 * lib/getopt.in.h: Renamed from lib/getopt_.h.
22062 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
22064 * lib/glob.in.h: Renamed from lib/glob_.h.
22065 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
22066 * lib/iconv.in.h: Renamed from lib/iconv_.h.
22067 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
22069 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
22070 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
22072 * lib/locale.in.h: Renamed from lib/locale_.h.
22073 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
22075 * lib/math.in.h: Renamed from lib/math_.h.
22076 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
22077 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
22078 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
22079 of netinet_in_.h. Add dependency.
22080 * lib/poll.in.h: Renamed from lib/poll_.h.
22081 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
22082 * lib/search.in.h: Renamed from lib/search_.h.
22083 * modules/search (Files, Makefile.am): Use search.in.h instead of
22085 * lib/signal.in.h: Renamed from lib/signal_.h.
22086 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
22088 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
22089 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
22091 * lib/stdint.in.h: Renamed from lib/stdint_.h.
22092 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
22094 * lib/stdio.in.h: Renamed from lib/stdio_.h.
22095 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
22097 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
22098 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
22100 * lib/string.in.h: Renamed from lib/string_.h.
22101 * modules/string (Files, Makefile.am): Use string.in.h instead of
22103 * doc/gnulib-tool.texi (Initial import): Update.
22104 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
22105 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
22106 of sys_select_.h. Add dependency.
22107 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
22108 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
22110 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
22111 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
22113 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
22114 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
22116 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
22117 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
22119 * lib/time.in.h: Renamed from lib/time_.h.
22120 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
22121 * lib/unistd.in.h: Renamed from lib/unistd_.h.
22122 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
22124 * lib/wchar.in.h: Renamed from lib/wchar_.h.
22125 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
22127 * lib/wctype.in.h: Renamed from lib/wctype_.h.
22128 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
22130 * build-aux/bootstrap (slurp): Update.
22131 * lib/.cppi-disable: Update.
22133 2007-09-30 Bruno Haible <bruno@clisp.org>
22135 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
22138 2007-09-30 Bruno Haible <bruno@clisp.org>
22140 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
22142 2007-09-29 Bruno Haible <bruno@clisp.org>
22144 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
22146 2007-09-29 Bruno Haible <bruno@clisp.org>
22148 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
22149 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
22150 * build-aux/install-reloc: Compile also areadlink.c.
22151 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
22153 2007-09-29 Bruno Haible <bruno@clisp.org>
22155 * gnulib-tool (func_emit_initmacro_done): Indentation.
22157 2007-09-29 Bruno Haible <bruno@clisp.org>
22159 * README: Add CVS checkout update instructions.
22160 Info from Bob Proulx <bob@proulx.com>.
22162 2007-09-28 Eric Blake <ebb9@byu.net>
22164 Provide move-if-change.
22165 * build-aux/move-if-change: New file, based on best practice
22166 rather than any canonical upstream location.
22168 2007-09-28 Jim Meyering <jim@meyering.net>
22170 Fix canonicalize loop-detection corner case.
22171 Do not attempt to stat the symlink values stored via seen_triple.
22172 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
22173 on linux-2.6.18, (but not 2.6.22).
22174 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
22175 triple_compare. The former compares dev,ino,filename, while the latter
22176 would actually stat dirname(filename) when dev and ino were equal.
22177 * lib/hash-triple.c: Install <string.h>.
22179 (triple_compare_ino_str): New function.
22180 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
22182 2007-09-28 Eric Blake <ebb9@byu.net>
22184 Enforce that AC_REPLACE_FUNCS files exist.
22185 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
22186 override check for typos.
22188 Fix test-closein on Solaris 10.
22189 * tests/test-closein.c (main): Don't assume stdin can be inherited
22190 closed on all systems.
22191 * tests/test-closein.sh: Likewise.
22192 Reported by Piotr Tarnowski.
22194 2007-09-28 Jim Meyering <jim@meyering.net>
22196 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
22198 2007-09-27 Jim Meyering <jim@meyering.net>
22200 canonicalize: Avoid a false-positive cycle failure.
22201 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
22202 Sort. Remove cycle-check.
22203 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
22205 (seen_triple): New function.
22206 (canonicalize_filename_mode): Use it instead of cycle-check.
22207 * tests/test-canonicalize.c: Add a test for this bug.
22208 * tests/test-canonicalize.sh: Set up and run the test.
22210 New module, file-set, from coreutils.
22211 * modules/file-set: Define it.
22212 * lib/file-set.c, lib/file-set.h: Implement.
22214 New module, hash-triple, from coreutils.
22215 * modules/hash-triple: Define it.
22216 * lib/hash-triple.c, lib/hash-triple.h: Implement.
22218 2007-09-25 Eric Blake <ebb9@byu.net>
22220 Fix strerror on Interix.
22221 * lib/string_.h (strerror): Declare replacement.
22222 * doc/functions/strerror.texi (strerror): Document the Interix
22224 * modules/string (Makefile.am): Support new hooks.
22225 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
22226 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
22227 gl_FUNC_STRERROR_SEPARATE.
22228 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
22229 * lib/strerror.c (rpl_strerror): Provide replacement.
22230 * modules/strerror (Depends-on): Add string.
22231 (configure.ac): Detect use of module.
22232 * tests/test-strerror.c: New file.
22233 * modules/strerror-tests: New test module.
22234 * modules/argp (Depends-on): Add strerror.
22235 * modules/error (Depends-on): Likewise.
22236 Reported by Martin Koeppe.
22238 2007-09-24 Bruno Haible <bruno@clisp.org>
22240 * README: Update git instructions.
22242 2007-09-24 Eric Blake <ebb9@byu.net>
22244 Revert fpending breakage from 2007-09-08.
22245 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
22248 2007-09-24 Jim Meyering <jim@meyering.net>
22250 filenamecat.c: Add a test.
22251 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
22252 showing how the function works when DIR is the empty string.
22254 2007-09-21 Simon Josefsson <simon@josefsson.org>
22256 * tests/test-canonicalize.sh: Turn on executable bit.
22258 2007-09-19 Eric Blake <ebb9@byu.net>
22260 * README: Update CVS instructions.
22262 2007-09-18 Bruno Haible <bruno@clisp.org>
22264 * modules/areadlink: New file.
22265 * lib/areadlink.h (areadlink): New declaration.
22266 * lib/areadlink.c: New file, based on lib/xreadlink.c.
22268 2007-09-17 Jim Meyering <jim@meyering.net>
22270 * lib/savewd.c (ESTALE) [!defined]: Define.
22271 Reported to be required on Interix by Martin Koeppe.
22273 2007-09-17 Bruno Haible <bruno@clisp.org>
22275 * gnulib-tool (func_version): Use $version.
22277 2007-09-16 Bruno Haible <bruno@clisp.org>
22279 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
22280 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
22281 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
22282 Reported by Greg Schafer <gschafer@zip.com.au>.
22284 2007-09-15 Bruno Haible <bruno@clisp.org>
22286 * gnulib-tool (sed): Try a little harder to make bash understand the
22288 Reported by Bruce Korb <bruce.korb@gmail.com>.
22290 2007-09-13 Eric Blake <ebb9@byu.net>
22292 * ChangeLog: Remove conflict markers.
22294 2007-09-13 Simon Josefsson <simon@josefsson.org>
22296 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
22297 Reported by Bruno Haible <bruno@clisp.org>.
22299 2007-09-12 Bruno Haible <bruno@clisp.org>
22301 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
22302 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
22305 2007-09-12 Eric Blake <ebb9@byu.net>
22307 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
22308 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
22309 Autoconf definition.
22310 * modules/euidaccess (Depends-on): Add extensions, for
22311 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
22312 * modules/fnmatch (Depends-on): Likewise.
22313 * modules/getaddrinfo (Depends-on): Likewise.
22314 * modules/getdelim (Depends-on): Likewise.
22315 * modules/getline (Depends-on): Likewise.
22316 * modules/getsubopt (Depends-on): Likewise.
22317 * modules/gettext (Depends-on): Likewise.
22318 * modules/group-member (Depends-on): Likewise.
22319 * modules/mbchar (Depends-on): Likewise.
22320 * modules/memmem (Depends-on): Likewise.
22321 * modules/mempcpy (Depends-on): Likewise.
22322 * modules/memrchr (Depends-on): Likewise.
22323 * modules/pagealign_alloc (Depends-on): Likewise.
22324 * modules/readutmp (Depends-on): Likewise.
22325 * modules/stpcpy (Depends-on): Likewise.
22326 * modules/stpncpy (Depends-on): Likewise.
22327 * modules/strchrnul (Depends-on): Likewise.
22328 * modules/strndup (Depends-on): Likewise.
22329 * modules/strsep (Depends-on): Likewise.
22330 * modules/strverscmp (Depends-on): Likewise.
22331 * modules/vasprintf (Depends-on): Likewise.
22332 * modules/wcwidth (Depends-on): Likewise.
22333 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
22334 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
22335 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
22336 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
22337 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
22338 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22339 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
22340 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
22341 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
22342 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
22343 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22344 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
22345 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
22346 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
22347 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
22348 * m4/readutmp.m4 (gl_READUTMP): Likewise.
22349 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22350 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
22351 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22352 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
22353 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
22354 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
22355 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
22356 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
22357 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
22358 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22359 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
22360 so that lock.m4 can be used in gettext without extensions module.
22362 2007-09-11 Bruno Haible <bruno@clisp.org>
22364 * m4/isc-posix.m4: Remove file.
22365 Suggested by Eric Blake.
22367 2007-09-11 Eric Blake <ebb9@byu.net>
22369 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
22371 2007-09-10 Bruno Haible <bruno@clisp.org>
22373 * posix-modules: Fix typo in error message.
22374 Reported by Matt <mkraai@beckman.com>.
22376 2007-09-09 Bruno Haible <bruno@clisp.org>
22378 * doc/functions/getdelim.texi: Update list of platforms lacking the
22380 * doc/functions/getline.texi: Likewise.
22382 2007-09-09 Jim Meyering <jim@meyering.net>
22384 * lib/hash.c (hash_initialize): Detect calloc failure.
22385 Reported by Bruno Haible.
22387 2007-09-09 Bruno Haible <bruno@clisp.org>
22389 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
22390 malloc or realloc fails.
22392 2007-09-09 Bruno Haible <bruno@clisp.org>
22394 * modules/getcwd (Depends-on): Add malloc-posix.
22395 * modules/glob (Depends-on): Likewise.
22396 * modules/putenv (Depends-on): Likewise.
22397 * modules/strdup (Depends-on): Likewise.
22398 * modules/getdelim (Depends-on): Add realloc-posix.
22399 * modules/read-file (Depends-on): Likewise.
22401 2007-09-09 Bruno Haible <bruno@clisp.org>
22403 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
22404 (gl_FUNC_MALLOC_POSIX): Require it.
22405 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
22406 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
22407 * modules/realloc (Files): Add m4/malloc.m4.
22408 * modules/calloc (Files): Likewise.
22410 2007-09-09 Bruno Haible <bruno@clisp.org>
22412 * modules/malloc-posix: New file.
22413 * modules/malloc (Depends-on): Add malloc-posix.
22414 * lib/malloc.c: Include errno.h.
22415 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
22416 and a POSIX-compatible malloc into a single function. Set ENOMEM
22417 when returning NULL.
22418 * m4/malloc.m4: New file.
22419 * doc/functions/malloc.texi: Mention the malloc-posix module.
22420 * lib/stdlib_.h (malloc): New declaration.
22421 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22422 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
22423 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
22424 and HAVE_MALLOC_POSIX.
22426 2007-09-09 Bruno Haible <bruno@clisp.org>
22428 * modules/realloc-posix: New file.
22429 * modules/realloc (Depends-on): Add realloc-posix.
22430 * lib/realloc.c: Include errno.h.
22431 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
22432 and a POSIX-compatible realloc into a single function. Set ENOMEM
22433 when returning NULL.
22434 * m4/realloc.m4: New file.
22435 * doc/functions/realloc.texi: Mention the realloc-posix module.
22436 * lib/stdlib_.h (realloc): New declaration.
22437 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22438 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
22439 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
22440 and HAVE_REALLOC_POSIX.
22442 2007-09-09 Bruno Haible <bruno@clisp.org>
22444 * modules/calloc-posix: New file.
22445 * modules/calloc (Depends-on): Add calloc-posix.
22446 * lib/calloc.c: Include errno.h.
22447 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
22448 and a POSIX-compatible calloc into a single function. Set ENOMEM
22449 when returning NULL.
22450 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
22451 * doc/functions/calloc.texi: Mention the calloc-posix module.
22452 * lib/stdlib_.h (calloc): New declaration.
22453 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
22454 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
22455 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
22456 and HAVE_CALLOC_POSIX.
22458 2007-09-09 Bruno Haible <bruno@clisp.org>
22460 Allow for modules to show an arbitrary notice.
22461 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
22462 * gnulib-tool: New option --extract-notice.
22463 (func_usage): Document it.
22464 (sed_extract_prog): Update.
22465 (func_get_notice): New function.
22466 (func_modules_notice): New function.
22467 (func_import, func_create_testdir): Invoke it.
22468 Suggested by Jim Meyering.
22470 2007-09-09 Bruno Haible <bruno@clisp.org>
22472 * gnulib-tool: New options --verbose, --quiet.
22473 (func_usage): Document them.
22474 (verbose): New variable.
22475 (func_execute_command): New function.
22476 (func_import): Don't show the module list and the file list if
22478 (func_create_testdir): Likewise. Use func_execute_command.
22479 (func_create_megatestdir): Use func_execute_command.
22481 2007-09-08 Bruno Haible <bruno@clisp.org>
22483 * gnulib-tool (func_import): Prefer rsync over wget when available,
22484 for fetching the PO files.
22486 2007-09-08 Bruno Haible <bruno@clisp.org>
22488 * posix-modules: New file. Portions copied from gnulib-tool.
22489 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
22491 2007-09-08 Jim Meyering <jim@meyering.net>
22493 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
22494 * lib/fpending.h: Rename from __fpending.h.
22495 * lib/fpending.c: Rename from __fpending.c.
22496 Include "fpending.h", not "__fpending.h".
22497 * lib/__fpending.h, lib/__fpending.c: Remove files.
22498 * modules/fpending (Files): Reflect new file names.
22499 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
22501 2007-09-08 Bruno Haible <bruno@clisp.org>
22503 * m4/inttypes-h.m4: Remove stub file.
22505 2007-09-07 Simon Josefsson <simon@josefsson.org>
22507 * doc/headers/stdint.texi: Discuss #include_next issue.
22509 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
22511 * build-aux/bootstrap: Remove obsolete comment about wget --help.
22513 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
22515 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
22518 2007-09-03 Jim Meyering <jim@meyering.net>
22520 New module: git-version-gen.
22521 * modules/git-version-gen: New file.
22523 Import changes from coreutils for bootstrap script.
22525 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
22527 bootstrap: uses rsync to download the .po files
22528 * build-aux/bootstrap (po_download_command_format): New global.
22529 (download_po_files): Use rsync.
22530 (update_po_files): Don't remove .po files after download,
22531 so future rsync runs can take advantage of the copies.
22533 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
22535 Solve the unnecessary-.po-file-regeneration problem once and for all.
22536 * build-aux/bootstrap (download_po_files): New function, renamed from
22537 get_translations. Now, downloads, but doesn't update LINGUAS.
22538 (update_po_files): New function.
22540 bootstrap: Ignore more.
22541 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
22542 uniwidth to e.g., lib/.gitignore.
22543 (slurp): Handle the sys_stat_.h -> sys mapping, too.
22545 * build-aux/bootstrap: New setting: vc_ignore.
22546 (insert_sorted_if_absent): Create $file if absent.
22547 Adapt to new, possibly empty, list: $vc_ignore.
22549 bootstrap: generate more ignorable names
22550 * build-aux/bootstrap (slurp): When generating ignorable names,
22551 also map .sin to .sed, .gperf to .c, and .y to .c.
22553 2007-09-03 Jim Meyering <jim@meyering.net>
22555 * build-aux/git-version-gen: New file, from coreutils. For details, see
22556 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
22558 2007-09-02 Bruno Haible <bruno@clisp.org>
22560 Fix mis-recognition of 'mcs' on QNX 6.
22561 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
22562 output contains the string "Mono".
22563 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
22564 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
22566 2007-09-01 Bruno Haible <bruno@clisp.org>
22568 Fix collision between uniwidth/* and linebreak modules.
22569 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
22570 u32_width): Remove declarations.
22571 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
22572 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
22573 streq3, streq2, streq1, streq0): Remove functions.
22574 (STREQ): Remove macro.
22575 (is_cjk_encoding): Remove function.
22576 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
22577 (uc_width, u8_width, u16_width, u32_width): Remove functions.
22578 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
22579 * NEWS: Document the change.
22581 2007-09-01 Bruno Haible <bruno@clisp.org>
22583 * lib/streq.h: Add double-inclusion guard.
22585 2007-09-01 Karl Berry <karl@gnu.org>
22587 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
22589 2007-08-28 Jim Meyering <jim@meyering.net>
22591 Rename mreadlink_with_size to areadlink_with_size.
22592 * NEWS: Document the change.
22593 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
22594 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
22595 * lib/mreadlink.h: Rename this to...
22596 * lib/areadlink.h: ...this.
22597 * modules/mreadlink-with-size: Rename this to...
22598 * modules/areadlink-with-size: ...this.
22599 * lib/canonicalize.c: Reflect the renaming.
22600 * modules/canonicalize: Likewise.
22602 2007-08-26 Bruno Haible <bruno@clisp.org>
22604 * gnulib-tool (func_import): When deciding which files to remove,
22605 consider also dangling symbolic links.
22606 Reported by Eric Blake.
22608 2007-08-26 Bruno Haible <bruno@clisp.org>
22610 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
22612 2007-08-23 Simon Josefsson <simon@josefsson.org>
22614 * lib/readline.c: Don't include getline.h, the prototype is now
22617 2007-08-23 Jim Meyering <jim@meyering.net>
22620 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
22621 around the funlockfile call, since funlockfile never sets errno.
22622 Don't set errno upon failed realloc.
22624 2007-08-22 Eric Blake <ebb9@byu.net>
22627 * lib/getdelim.c (getdelim): Revert regression that required *n to
22628 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
22629 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
22630 getdelim, rather than whether implementation is missing.
22631 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
22632 * lib/stdio_.h (getline): Also declare if replacement is
22634 * doc/functions/getdelim.texi: New file.
22635 * doc/functions/getline.texi: Likewise.
22636 * doc/gnulib.texi (Function Substitutes): Add new files.
22637 Reported by Bruno Haible.
22639 2007-08-22 Ludovic Courtès <ludo@gnu.org>
22641 * users.txt: Add Guile.
22643 2007-08-22 Eric Blake <ebb9@byu.net>
22645 * tests/test-getdelim.c (main): Use remove, not unlink.
22646 * tests/test-getline.c (main): Likewise.
22648 Move getline and getdelim into stdio.h, per POSIX 200x.
22649 * modules/getline (Files): Remove getline.h.
22650 (Depends-on): Add stdio.
22651 (configure.ac): Add module indicator.
22652 * modules/getdelim (Files): Remove getdelim.h.
22653 (Depends-on): Add stdio.
22654 (configure.ac): Add module indicator.
22655 * modules/stdio (Makefile.am): Work with new indicators.
22656 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
22657 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
22658 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
22659 * lib/getdelim.h: Delete.
22660 * lib/getline.h: Delete.
22661 * lib/stdio_.h (getdelim, getline): Declare.
22662 * modules/getdelim-tests: New module.
22663 * modules/getline-tests: Likewise.
22664 * tests/test-getdelim.c: New file.
22665 * tests/test-getline.c: Likewise.
22666 * NEWS: Document the change.
22667 * lib/getline.c: Update choice of header.
22668 * lib/csharpcomp.c: Likewise.
22669 * lib/getpass.c: Likewise.
22670 * lib/javacomp.c: Likewise.
22671 * lib/javaversion.c: Likewise.
22672 * lib/yesno.c: Likewise.
22673 * lib/getdelim.c: Likewise.
22674 (getdelim): Set errno on failure, and avoid memory leak.
22676 2007-08-19 Bruno Haible <bruno@clisp.org>
22678 * modules/closein (Depends-on): Add freadahead.
22679 * lib/closein.c: Include freadahead.h.
22680 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
22683 2007-08-19 Bruno Haible <bruno@clisp.org>
22685 * modules/freadahead-tests: New file.
22686 * tests/test-freadahead.sh: New file.
22687 * tests/test-freadahead.c: New file.
22689 * modules/freadahead: New file.
22690 * lib/freadahead.h: New file.
22691 * lib/freadahead.c: New file.
22692 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
22693 fbufmode, fpurge, freadable, fwritable.
22695 2007-08-19 Eric Blake <ebb9@byu.net>
22697 Test yesno in combination with closein.
22698 * lib/yesno.c (yesno): Document use of stdin.
22699 * modules/yesno-tests (Files): New module.
22700 * tests/test-yesno.c (main): New file.
22701 * tests/test-yesno.sh: Likewise.
22703 2007-08-19 Bruno Haible <bruno@clisp.org>
22705 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
22706 * lib/fseeko.c (rpl_fseeko): Likewise.
22707 * lib/fseterr.c (fseterr): Likewise.
22709 2007-08-19 Bruno Haible <bruno@clisp.org>
22711 * tests/test-lseek.c (main): Disable a test for BeOS.
22712 * doc/functions/lseek.texi: Document the BeOS bug.
22714 2007-08-19 Bruno Haible <bruno@clisp.org>
22715 Eric Blake <ebb9@byu.net>
22717 * lib/lseek.c: Include <sys/stat.h>.
22718 (rpl_lseek): Add workaround code also for Unix platforms.
22720 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
22721 * doc/functions/lseek.texi: Document BeOS definiency.
22723 2007-08-18 Bruno Haible <bruno@clisp.org>
22725 * modules/fstrcmp-tests: New file.
22726 * tests/test-fstrcmp.c: New file.
22728 2007-08-18 Bruno Haible <bruno@clisp.org>
22730 * modules/fstrcmp: New file, from GNU gettext with modifications.
22731 * lib/fstrcmp.h: New file, from GNU gettext.
22732 * lib/fstrcmp.c: New file, from GNU gettext.
22733 * MODULES.html.sh (String handling): Add fstrcmp.
22735 2007-08-18 Bruno Haible <bruno@clisp.org>
22737 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
22739 (diag, compareseq): Remove const from the ctxt argument.
22740 (USE_HEURISTIC): Undefine at the end.
22742 2007-08-18 Jim Meyering <jim@meyering.net>
22744 New file: lib/idcache.h
22745 * NEWS: Mention the addition.
22746 * modules/idcache (Files): Add lib/idcache.h
22747 * lib/idcache.c: Include "idcache.h".
22748 Don't include <sys/types.h>.
22749 Add a FIXME comment.
22750 Move file-scoped "static" declarations to the top.
22751 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
22753 2007-08-17 Bruno Haible <bruno@clisp.org>
22754 and Paul Eggert <eggert@cs.ucla.edu>
22756 * MODULES.html.sh: Add diffseq.
22757 * modules/diffseq: New file.
22758 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
22759 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
22761 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
22763 Import changes from coreutils for bootstrap script.
22765 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
22767 * build-aux/bootstrap (slurp): Work even in environments where
22768 "ls" defaults to "ls -A". Put in a FIXME, though, since the
22769 current code does not slurp files whose names start with ".", and
22770 this looks like it might be a troublesome area.
22772 2007-07-11 Jim Meyering <jim@meyering.net>
22774 If there's a GPL vN copyright comment, require that N == 3.
22776 2007-07-08 Jim Meyering <jim@meyering.net>
22778 Run the coreutils-specific code only if tests/Makefile.am.in exists.
22779 * build-aux/bootstrap (mam_template): Move definition out of loop.
22781 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
22783 * build-aux/bootstrap (symlink_to_dir): Rename function from
22784 symlink_to_gnulib. Add a directory parameter. Update all
22786 (cp_mark_as_generated): Also check for -- and link to -- files in
22789 2007-07-08 Jim Meyering <jim@meyering.net>
22791 Adapt to deeper hierarchy in gnulib.
22792 * build-aux/bootstrap (symlink_to_dir): If the destination
22793 directory doesn't exist, create it. This is required at least for
22794 "lib/uniwidth/cjk.h".
22796 2007-05-15 Jim Meyering <jim@meyering.net>
22798 * build-aux/bootstrap: Now that generated Makefile.am files
22799 are no longer under version control, they must be created at
22802 2007-08-14 Ben Pfaff <blp@gnu.org>
22804 * lib/count-one-bits.h: Add comments. From Bruno Haible.
22806 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
22808 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
22809 given the changes below.
22810 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
22811 even on hosts that have padding bits beyond the supported 64.
22813 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
22815 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
22816 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
22817 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
22819 (xstrtol_error): Remove.
22820 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
22821 but with a different signature.
22822 (ATTRIBUTE_NORETURN, __attribute__): New macros.
22823 * lib/xstrtol-error.c: Include exitfail.h.
22824 (xstrtol_fatal): New function, with a different signature from the
22825 old xstrtol_error, so that the caller need not worry about passing
22826 in an exit status, or about storage management of the option argument.
22827 (xstrtol_error): Now a static function. Redo signature to
22828 implement xstrtol_fatal. Output the correct number of hyphens in
22829 front of the option so that the caller need not worry about
22830 storage management.
22832 (_): Remove; not used now.
22833 * modules/xstrtol: Depend on getopt.
22834 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
22835 of old STRTOL_FATAL_ERROR macro.
22836 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
22838 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
22839 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
22841 2007-08-08 Eric Blake <ebb9@byu.net>
22843 * lib/xstrtol-error.c: Add missing include.
22845 Move xstrtol messages into gnulib domain, when --pobase is used.
22846 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
22847 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
22848 * modules/xstrtol (Files): Distribute new file.
22849 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
22850 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
22851 * tests/test-xstrtol.c: ...into new file.
22852 * tests/test-xstrtoul.c: Also test xstrtoul.
22853 * tests/test-xstrtoimax.c: Also test xstrtoimax.
22854 * tests/test-xstrtoumax.c: Also test xstrtoumax.
22855 * tests/test-xstrtol.sh: Drive the tests.
22856 * tests/test-xstrtoimax.sh: Likewise.
22857 * tests/test-xstrtoumax.sh: Likewise.
22858 * modules/xstrtol-tests: New module.
22859 * modules/xstrtoimax-tests: Likewise.
22860 * modules/xstrtoumax-tests: Likewise.
22862 2007-08-08 Jim Meyering <jim@meyering.net>
22864 New function: mfile_name_concat.
22865 * lib/filenamecat.c (mfile_name_concat): New function, just like
22866 file_name_concat, but return NULL upon failure rather than exiting
22868 * lib/filenamecat.h: Declare it.
22870 2007-08-07 Bruno Haible <bruno@clisp.org>
22872 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
22873 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
22875 Reported by Eric Blake.
22877 2007-08-07 Simon Josefsson <simon@josefsson.org>
22879 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
22880 * modules/crypto/arcfour (License): Likewise.
22881 * modules/crypto/des-tests (License): Likewise.
22882 * modules/crypto/gc-arctwo-tests (License): Likewise.
22883 * modules/crypto/gc-des-tests (License): Likewise.
22884 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
22885 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
22886 * modules/crypto/gc-md2-tests (License): Likewise.
22887 * modules/crypto/gc-md4-tests (License): Likewise.
22888 * modules/crypto/gc-md5-tests (License): Likewise.
22889 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
22890 * modules/crypto/gc-rijndael-tests (License): Likewise.
22891 * modules/crypto/gc-sha1-tests (License): Likewise.
22892 * modules/crypto/gc-tests (License): Likewise.
22893 * modules/crypto/hmac-md5 (License): Likewise.
22894 * modules/crypto/hmac-sha1 (License): Likewise.
22895 * modules/crypto/md2-tests (License): Likewise.
22896 * modules/crypto/md4-tests (License): Likewise.
22897 * modules/crypto/md5 (License): Likewise.
22898 * modules/crypto/rijndael (License): Likewise.
22899 * modules/crypto/sha1 (License): Likewise.
22900 * modules/memxor (License): Likewise.
22902 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
22903 and Bruno Haible <bruno@clisp.org>
22905 * NEWS: Describe interface changes to human, xstrtol.
22906 * lib/human.h: Include <xstrtol.h>.
22907 (human_options): Return enum strtol_error, not int. Remove
22908 bool arg; take int * instead.
22909 * lib/human.c: Don't include "gettext.h".
22910 (_): Remove; no longer used.
22911 Don't include <xstrtol.h>, since human.h does it.
22912 (human_options): Adjust to abovementioned interface changes.
22913 Do not report error to stderr; that's now the caller's
22915 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
22917 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
22918 Str, Argument_type_string. All uses changed. Put " argument"
22919 in diagnostics to make them clearer. Change wording of suffix
22920 message for clarity.
22921 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
22922 Argument_type_string.
22923 (STRTOL_FATAL_WARN): Remove; no longer used.
22924 * modules/human (Depends-on): Remove gettext-h.
22926 2007-08-06 Simon Josefsson <simon@josefsson.org>
22928 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
22930 2007-07-31 Bruno Haible <bruno@clisp.org>
22932 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
22933 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
22934 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
22936 2007-07-31 Bruno Haible <bruno@clisp.org>
22938 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
22939 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
22941 2007-07-30 Bruno Haible <bruno@clisp.org>
22943 * modules/base64 (License): Use the synonymous term "LGPLv2+".
22944 * modules/c-ctype (License): Likewise.
22945 * modules/c-strcase (License): Likewise.
22946 * modules/check-version (License): Likewise.
22947 * modules/iconv (License): Likewise.
22948 * modules/iconv_open (License): Likewise.
22949 * modules/read-file (License): Likewise.
22950 * modules/striconv (License): Likewise.
22951 * modules/strverscmp (License): Likewise.
22952 * modules/vasprintf (License): Likewise.
22953 * modules/crypto/des (License): Likewise.
22954 * modules/crypto/gc (License): Likewise.
22955 * modules/crypto/gc-arcfour (License): Likewise.
22956 * modules/crypto/gc-arctwo (License): Likewise.
22957 * modules/crypto/gc-des (License): Likewise.
22958 * modules/crypto/gc-hmac-md5 (License): Likewise.
22959 * modules/crypto/gc-hmac-sha1 (License): Likewise.
22960 * modules/crypto/gc-md2 (License): Likewise.
22961 * modules/crypto/gc-md4 (License): Likewise.
22962 * modules/crypto/gc-md5 (License): Likewise.
22963 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
22964 * modules/crypto/gc-random (License): Likewise.
22965 * modules/crypto/gc-rijndael (License): Likewise.
22966 * modules/crypto/gc-sha1 (License): Likewise.
22967 * modules/crypto/md2 (License): Likewise.
22968 * modules/crypto/md4 (License): Likewise.
22970 2007-07-30 Jim Meyering <jim@meyering.net>
22972 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
22973 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
22974 it has valid stat data. This bug would cause du not to count the
22975 sizes of inaccessible directories.
22976 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
22977 in <http://bugzilla.redhat.com/250077>.
22979 2007-07-25 Peter O'Gorman <peter@pogma.com>
22980 Bruno Haible <bruno@clisp.org>
22982 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
22983 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
22984 #include_next, gives a diagnostic about it, but reports no error in
22986 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
22988 2007-07-24 Ben Pfaff <blp@gnu.org>
22990 Improve name: "count-one-bits" is better than "popcount".
22991 * MODULES.html.sh: Update name.
22992 * lib/popcount.h: Renamed lib/count-one-bits.h.
22993 (popcount): Renamed count_one_bits.
22994 (popcountl): Renamed count_one_bits_l.
22995 (popcountll): Renamed count_one_bits_ll.
22996 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
22997 * modules/popcount: Renamed module/count-one-bits.
22998 * modules/popcount-tests: Renamed module/count-one-bits-tests.
22999 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
23001 2007-07-23 Ben Pfaff <blp@gnu.org>
23003 * lib/popcount.h (popcount32): Reduce size of constants, to allow
23004 better code generation, and add U to large constants to avoid
23005 warnings, in non-GCC case.
23006 Suggested by Bruno Haible.
23008 2007-07-23 Ben Pfaff <blp@gnu.org>
23010 * lib/popcount.h: Use verify_true instead of if...abort.
23011 * modules/popcount: Depend on verify module.
23012 Suggested by Jim Meyering.
23014 2007-07-23 Bruno Haible <bruno@clisp.org>
23016 * gnulib-tool (func_import): Create a .cvsignore file also when the
23017 directory is not yet in CVS but the toplevel directory is. When
23018 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
23019 Reported by Karl Berry.
23021 2007-07-22 Ben Pfaff <blp@gnu.org>
23023 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
23025 Suggested by Eric Blake.
23027 2007-07-22 Ben Pfaff <blp@gnu.org>
23029 New module: popcount.
23030 * MODULES.html.sh: Add popcount.
23031 * modules/popcount: New file.
23032 * modules/popcount-tests: New file.
23033 * tests/test-popcount.c: New file.
23034 * lib/popcount.h: New file.
23035 * m4/popcount.m4: New file.
23037 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
23039 * build-aux/announce-gen: Update to GPLv3.
23041 * build-aux/config.guess: Update from config.
23043 2007-07-21 Bruno Haible <bruno@clisp.org>
23045 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
23046 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
23048 2007-07-20 Jim Meyering <jim@meyering.net>
23050 * check-module: Diagnose a self-dependency.
23052 2007-07-19 Bruno Haible <bruno@clisp.org>
23054 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
23056 Reported by Eric Blake.
23058 2007-07-18 Bruno Haible <bruno@clisp.org>
23060 * gnulib-tool: New options --po-base, --po-domain.
23061 (func_usage): Document them.
23062 (pobase, po_domain): New variables.
23063 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
23064 DEFAULT_TEXT_DOMAIN.
23065 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
23066 (func_import): Consider pobase and po_domain. Create a po/ directory.
23067 (func_create_testdir): Set pobase and po_domain to empty.
23068 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
23069 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
23071 2007-07-18 Bruno Haible <bruno@clisp.org>
23073 * gnulib-tool (func_get_automake_snippet): Synthesize also an
23074 EXTRA_DIST augmentation for files in build-aux/.
23076 2007-07-16 Bruno Haible <bruno@clisp.org>
23078 * modules/lseek (License): Use the synonymous term "LGPLv2+".
23079 * modules/getdelim (License): Likewise.
23081 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
23083 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
23084 * modules/d-type (License): Likewise.
23085 * modules/extensions (License): Likewise.
23086 * modules/fnmatch (License): Likewise.
23087 * modules/fseeko (License): Likewise.
23088 * modules/getaddrinfo (License): Likewise.
23089 * modules/getline (License): Likewise.
23090 * modules/getlogin_r (License): Likewise.
23091 * modules/getpass (License): Likewise.
23092 * modules/gettimeofday (License): Likewise.
23093 * modules/glob (License): Likewise.
23094 * modules/inet_ntop (License): Likewise.
23095 * modules/malloc (License): Likewise.
23096 * modules/malloca (License): Likewise.
23097 * modules/memmem (License): Likewise.
23098 * modules/mempcpy (License): Likewise.
23099 * modules/memset (License): Likewise.
23100 * modules/minmax (License): Likewise.
23101 * modules/mktime (License): Likewise.
23102 * modules/netinet_in (License): Likewise.
23103 * modules/pathmax (License): Likewise.
23104 * modules/poll (License): Likewise.
23105 * modules/regex (License): Likewise.
23106 * modules/snprintf (License): Likewise.
23107 * modules/stdbool (License): Likewise.
23108 * modules/stdint (License): Likewise.
23109 * modules/stdio (License): Likewise.
23110 * modules/strcase (License): Likewise.
23111 * modules/strcasestr (License): Likewise.
23112 * modules/strdup (License): Likewise.
23113 * modules/string (License): Likewise.
23114 * modules/strndup (License): Likewise.
23115 * modules/strnlen (License): Likewise.
23116 * modules/strpbrk (License): Likewise.
23117 * modules/strptime (License): Likewise.
23118 * modules/strsep (License): Likewise.
23119 * modules/sys_select (License): Likewise.
23120 * modules/sys_socket (License): Likewise.
23121 * modules/sys_stat (License): Likewise.
23122 * modules/sys_time (License): Likewise.
23123 * modules/time (License): Likewise.
23124 * modules/time_r (License): Likewise.
23125 * modules/timegm (License): Likewise.
23126 * modules/unistd (License): Likewise.
23127 * modules/vsnprintf (License): Likewise.
23128 * modules/wctype (License): Likewise.
23130 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23132 * modules/argz (License): LGPLv2+.
23134 2007-07-15 Karl Berry <karl@gnu.org>
23136 * doc/gnulib.texi: revise node structure per new fdl.texi.
23138 2007-07-14 Bruno Haible <bruno@clisp.org>
23140 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
23142 * lib/uniname/uninames.h: Regenerated.
23144 2007-07-14 Karl Berry <karl@gnu.org>
23146 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
23147 omitting sectioning and index commands.
23149 2007-07-13 Bruno Haible <bruno@clisp.org>
23151 New gnulib-tool option --more-symlinks.
23152 * gnulib-tool (func_usage): Document --more-symlinks.
23153 (do_copyrights): New variable.
23154 Recognize option --more-symlinks.
23155 (func_import): Don't add a copyright notice transform to
23156 sed_transform_lib_file if do_copyrights is empty.
23158 2007-07-13 Bruno Haible <bruno@clisp.org>
23160 * lib/vasnprintf.c (decimal_point_char): Define also if
23161 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
23162 && !NEED_PRINTF_DIRECTIVE_A.
23163 Reported by Clemens Koller <clemens.koller@anagramm.de> via
23164 Gary V. Vaughan <gary@gnu.org>.
23166 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
23168 * lib/inttypes_.h: Undo previous change, since it was fixed
23169 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
23171 2007-07-13 Bruno Haible <bruno@clisp.org>
23173 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
23174 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
23176 2007-07-13 Jim Meyering <jim@meyering.net>
23178 df: Don't fail for Tru64's "file-on-file mount".
23179 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
23180 so we fall through and use statfs instead. Details here:
23181 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
23182 Reported by Albert Chin.
23184 2007-07-13 Bruno Haible <bruno@clisp.org>
23186 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
23187 * modules/configmake (License): Likewise.
23188 * modules/gettext (License): Likewise.
23189 * modules/gettext-h (License): Likewise.
23190 * modules/include_next (License): Likewise.
23191 * modules/link-warning (License): Likewise.
23192 * modules/localcharset (License): Likewise.
23193 * modules/localename (License): Likewise.
23194 * modules/lock (License): Likewise.
23195 * modules/relocatable-lib-lgpl (License): Likewise.
23196 * modules/size_max (License): Likewise.
23197 * modules/vasnprintf (License): Likewise.
23198 * modules/wchar (License): Likewise.
23199 * modules/xsize (License): Likewise.
23201 2007-07-13 Bruno Haible <bruno@clisp.org>
23203 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
23204 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
23206 2007-07-12 Bruno Haible <bruno@clisp.org>
23208 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
23209 in the modules files.
23211 2007-07-11 Karl Berry <karl@gnu.org>
23213 * MODULES.html.sh (func_module): use
23214 sed -e '\|^'"${includefile}"'$|d'
23215 instead of /.../d, to avoid errors on $includefile's containing /.
23217 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
23219 * gnulib-tool (func_import): Avoid duplication of --avoid
23221 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
23222 names to `_' in variable names.
23224 2007-07-10 Eric Blake <ebb9@byu.net>
23226 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
23227 * NEWS: Document this change.
23229 2007-07-08 Bruno Haible <bruno@clisp.org>
23231 Update to Unicode 5.0.
23232 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
23233 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
23234 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
23235 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
23236 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
23237 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
23238 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
23239 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
23240 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
23241 U+10A3F, U+1D242..U+1D244.
23242 (nonspacing_table_ind): Update.
23243 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
23244 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
23246 2007-07-08 Bruno Haible <bruno@clisp.org>
23248 Update to Unicode 5.0.
23249 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
23250 code transform. Extend the name index field of unicode_name_to_code and
23251 unicode_code_to_name from 16 to 24 bits.
23252 * lib/uniname/uniname.c (unicode_character_name,
23253 unicode_name_character): Add the range 0x12xxx to the code transform.
23254 * lib/uniname/uninames.h: Regenerated.
23255 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
23257 2007-07-07 Bruno Haible <bruno@clisp.org>
23259 * modules/wcwidth-tests: New file.
23260 * tests/test-wcwidth.c: New file.
23262 Work around MacOS X wcwidth() bug.
23263 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
23264 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
23265 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
23266 original wcwidth in non-UTF-8 locales.
23267 * modules/wcwidth (Depends-on): Add localcharset, streq,
23269 * doc/functions/wcwidth.texi: Update.
23271 2007-07-07 Bruno Haible <bruno@clisp.org>
23273 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
23274 (wcwidth): New declaration.
23275 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
23277 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
23278 here. Prepare for creating <wchar.h> unconditionally.
23279 * modules/wchar (Depends-on): Add link-warning.
23280 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
23281 REPLACE_WCWIDTH, and GL_LINK_WARNING.
23282 * lib/wcwidth.h: Remove file.
23283 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
23284 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
23285 * modules/wcwidth (Files): Remove lib/wcwidth.h.
23286 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
23287 (Include): Replace wcwidth.h with <wchar.h>.
23288 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
23289 * lib/mbchar.h: Don't include wcwidth.h.
23290 * lib/mbswidth.c: Likewise.
23291 * NEWS: Mention the change.
23293 2007-07-07 Bruno Haible <bruno@clisp.org>
23295 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
23296 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
23297 definition with an external declaration.
23298 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
23299 defined as a function. Remove AC_C_INLINE requirement.
23300 * modules/wcwidth (Files): Add lib/wcwidth.c.
23301 (Makefile.am): Remove redundant statement.
23303 2007-07-07 Bruno Haible <bruno@clisp.org>
23305 * MODULES.html.sh (Unicode string functions): Add the new modules.
23307 * tests/uniwidth/test-u32-strwidth.c: New file.
23308 * modules/uniwidth/u32-strwidth-tests: New file.
23310 * lib/uniwidth/u32-strwidth.c: New file.
23311 * modules/uniwidth/u32-strwidth: New file.
23313 * tests/uniwidth/test-u16-strwidth.c: New file.
23314 * modules/uniwidth/u16-strwidth-tests: New file.
23316 * lib/uniwidth/u16-strwidth.c: New file.
23317 * modules/uniwidth/u16-strwidth: New file.
23319 * tests/uniwidth/test-u8-strwidth.c: New file.
23320 * modules/uniwidth/u8-strwidth-tests: New file.
23322 * lib/uniwidth/u8-strwidth.c: New file.
23323 * modules/uniwidth/u8-strwidth: New file.
23325 * tests/uniwidth/test-u32-width.c: New file.
23326 * modules/uniwidth/u32-width-tests: New file.
23328 * lib/uniwidth/u32-width.c: New file.
23329 * modules/uniwidth/u32-width: New file.
23331 * tests/uniwidth/test-u16-width.c: New file.
23332 * modules/uniwidth/u16-width-tests: New file.
23334 * lib/uniwidth/u16-width.c: New file.
23335 * modules/uniwidth/u16-width: New file.
23337 * tests/uniwidth/test-u8-width.c: New file.
23338 * modules/uniwidth/u8-width-tests: New file.
23340 * lib/uniwidth/u8-width.c: New file.
23341 * modules/uniwidth/u8-width: New file.
23343 * tests/uniwidth/test-uc_width.c: New file.
23344 * modules/uniwidth/width-tests: New file.
23346 * lib/uniwidth/width.c: New file, from GNU libiconv.
23347 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
23348 * modules/uniwidth/width: New file.
23350 * lib/uniwidth.h: New file, from GNU libiconv.
23351 * modules/uniwidth/base: New file.
23353 2007-07-07 Bruno Haible <bruno@clisp.org>
23355 * lib/uniname.h: New file, from GNU gettext.
23356 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
23357 * lib/uniname/uninames.h: New file, from GNU gettext.
23358 * lib/uniname/uniname.c: New file, from GNU gettext.
23359 * tests/uniname/test-uninames.sh: New file.
23360 * tests/uniname/test-uninames.c: New file, from GNU gettext.
23361 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
23362 * modules/uniname/base: New file.
23363 * modules/uniname/uniname: New file.
23364 * modules/uniname/uniname-tests: New file.
23365 * MODULES.html.sh (Unicode string functions): Add the new modules.
23367 2007-07-06 Bruno Haible <bruno@clisp.org>
23369 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
23371 2007-07-06 Bruno Haible <bruno@clisp.org>
23373 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
23374 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
23375 includes <cygwin/sys_time.h> which includes <sys/select.h> which
23376 include <sys/time.h>.
23377 Reported by Eric Blake.
23379 2007-07-06 Eric Blake <ebb9@byu.net>
23381 Fix testing canonicalize on cygwin.
23382 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
23383 Revert patch from 2007-06-19.
23384 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
23385 canonicalize module is also in use.
23386 * tests/test-canonicalize.c: New file.
23387 * tests/test-canonicalize.sh: Likewise.
23388 * modules/canonicalize-tests: Likewise.
23390 2007-07-06 Jim Meyering <jim@meyering.net>
23392 * lib/getugroups.c (getugroups): Detect getgrent failure.
23393 Adjust comment to reflect reality: this function may return -1.
23395 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
23397 * build-aux/bootstrap (TP_URL,get_translations): Update to use
23398 the new TP address.
23400 (gnulib_mk): New variable.
23402 2007-07-05 Jim Meyering <jim@meyering.net>
23404 Don't let endgrent clobber errno, no matter how improbable.
23405 * lib/getugroups.c (getugroups): Save and restore errno around
23408 Close the group DB even when failing with 2^31 or more members.
23409 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
23411 2007-07-04 Jim Meyering <jim@meyering.net>
23413 * lib/getugroups.h: New file.
23414 * lib/getugroups.c: Include "getugroups.h".
23415 Remove uses of "register" keyword.
23416 Move local variable, "cp", down into scope where used.
23417 Give "username" parameter the "const" attribute.
23418 * modules/getugroups (Files): Add lib/getugroups.h
23420 2007-07-04 Karl Berry <karl@gnu.org>
23422 * MODULES.html.sh (func_all_modules): Complete rename of
23423 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
23425 2007-07-02 Bruno Haible <bruno@clisp.org>
23427 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
23428 mode, when inttypes.h comes from gnulib.
23429 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
23431 2007-07-02 Simon Josefsson <simon@josefsson.org>
23433 * NEWS: Mention lgpl module name change.
23435 * modules/lgpl-2.1: Renamed from lgpl.
23437 * NEWS: Mention gpl module name change.
23439 * modules/gpl-3.0: New file, based on gpl-2.0.
23441 * modules/gpl-2.0: Renamed from gpl.
23443 * modules/gpl: Fix filename, doc/gpl.texi is now found at
23446 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
23448 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
23449 #define __STDC_LIMIT_MACROS temporarily while including
23450 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
23451 Problem reported by Joel E. Denny in
23452 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
23454 2007-07-01 Bruno Haible <bruno@clisp.org>
23456 * lib/unistdio.h: New file.
23457 * lib/unistdio/u-asnprintf.h: New file.
23458 * lib/unistdio/u-asprintf.h: New file.
23459 * lib/unistdio/u-printf-args.c: New file.
23460 * lib/unistdio/u-printf-args.h: New file.
23461 * lib/unistdio/u-printf-parse.h: New file.
23462 * lib/unistdio/u-snprintf.h: New file.
23463 * lib/unistdio/u-sprintf.h: New file.
23464 * lib/unistdio/u-vasprintf.h: New file.
23465 * lib/unistdio/u-vsnprintf.h: New file.
23466 * lib/unistdio/u-vsprintf.h: New file.
23467 * lib/unistdio/ulc-asnprintf.c: New file.
23468 * lib/unistdio/ulc-asprintf.c: New file.
23469 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
23470 * lib/unistdio/ulc-printf-parse.c: New file.
23471 * lib/unistdio/ulc-snprintf.c: New file.
23472 * lib/unistdio/ulc-sprintf.c: New file.
23473 * lib/unistdio/ulc-vasnprintf.c: New file.
23474 * lib/unistdio/ulc-vasprintf.c: New file.
23475 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
23476 * lib/unistdio/ulc-vsnprintf.c: New file.
23477 * lib/unistdio/ulc-vsprintf.c: New file.
23478 * lib/unistdio/u8-asnprintf.c: New file.
23479 * lib/unistdio/u8-asprintf.c: New file.
23480 * lib/unistdio/u8-printf-parse.c: New file.
23481 * lib/unistdio/u8-snprintf.c: New file.
23482 * lib/unistdio/u8-sprintf.c: New file.
23483 * lib/unistdio/u8-vasnprintf.c: New file.
23484 * lib/unistdio/u8-vasprintf.c: New file.
23485 * lib/unistdio/u8-vsnprintf.c: New file.
23486 * lib/unistdio/u8-vsprintf.c: New file.
23487 * lib/unistdio/u8-u8-asnprintf.c: New file.
23488 * lib/unistdio/u8-u8-asprintf.c: New file.
23489 * lib/unistdio/u8-u8-snprintf.c: New file.
23490 * lib/unistdio/u8-u8-sprintf.c: New file.
23491 * lib/unistdio/u8-u8-vasnprintf.c: New file.
23492 * lib/unistdio/u8-u8-vasprintf.c: New file.
23493 * lib/unistdio/u8-u8-vsnprintf.c: New file.
23494 * lib/unistdio/u8-u8-vsprintf.c: New file.
23495 * lib/unistdio/u16-asnprintf.c: New file.
23496 * lib/unistdio/u16-asprintf.c: New file.
23497 * lib/unistdio/u16-printf-parse.c: New file.
23498 * lib/unistdio/u16-snprintf.c: New file.
23499 * lib/unistdio/u16-sprintf.c: New file.
23500 * lib/unistdio/u16-vasnprintf.c: New file.
23501 * lib/unistdio/u16-vasprintf.c: New file.
23502 * lib/unistdio/u16-vsnprintf.c: New file.
23503 * lib/unistdio/u16-vsprintf.c: New file.
23504 * lib/unistdio/u16-u16-asnprintf.c: New file.
23505 * lib/unistdio/u16-u16-asprintf.c: New file.
23506 * lib/unistdio/u16-u16-snprintf.c: New file.
23507 * lib/unistdio/u16-u16-sprintf.c: New file.
23508 * lib/unistdio/u16-u16-vasnprintf.c: New file.
23509 * lib/unistdio/u16-u16-vasprintf.c: New file.
23510 * lib/unistdio/u16-u16-vsnprintf.c: New file.
23511 * lib/unistdio/u16-u16-vsprintf.c: New file.
23512 * lib/unistdio/u32-asnprintf.c: New file.
23513 * lib/unistdio/u32-asprintf.c: New file.
23514 * lib/unistdio/u32-printf-parse.c: New file.
23515 * lib/unistdio/u32-snprintf.c: New file.
23516 * lib/unistdio/u32-sprintf.c: New file.
23517 * lib/unistdio/u32-vasnprintf.c: New file.
23518 * lib/unistdio/u32-vasprintf.c: New file.
23519 * lib/unistdio/u32-vsnprintf.c: New file.
23520 * lib/unistdio/u32-vsprintf.c: New file.
23521 * lib/unistdio/u32-u32-asnprintf.c: New file.
23522 * lib/unistdio/u32-u32-asprintf.c: New file.
23523 * lib/unistdio/u32-u32-snprintf.c: New file.
23524 * lib/unistdio/u32-u32-sprintf.c: New file.
23525 * lib/unistdio/u32-u32-vasnprintf.c: New file.
23526 * lib/unistdio/u32-u32-vasprintf.c: New file.
23527 * lib/unistdio/u32-u32-vsnprintf.c: New file.
23528 * lib/unistdio/u32-u32-vsprintf.c: New file.
23529 * tests/unistdio/test-ulc-asnprintf1.c: New file.
23530 * tests/unistdio/test-ulc-asnprintf1.h: New file.
23531 * tests/unistdio/test-ulc-printf1.h: New file.
23532 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
23533 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
23534 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
23535 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
23536 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
23537 * tests/unistdio/test-ulc-vasprintf1.c: New file.
23538 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
23539 * tests/unistdio/test-ulc-vsprintf1.c: New file.
23540 * tests/unistdio/test-u8-asnprintf1.c: New file.
23541 * tests/unistdio/test-u8-asnprintf1.h: New file.
23542 * tests/unistdio/test-u8-printf1.h: New file.
23543 * tests/unistdio/test-u8-vasnprintf1.c: New file.
23544 * tests/unistdio/test-u8-vasnprintf2.c: New file.
23545 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
23546 * tests/unistdio/test-u8-vasnprintf3.c: New file.
23547 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
23548 * tests/unistdio/test-u8-vasprintf1.c: New file.
23549 * tests/unistdio/test-u8-vsnprintf1.c: New file.
23550 * tests/unistdio/test-u8-vsprintf1.c: New file.
23551 * tests/unistdio/test-u16-asnprintf1.c: New file.
23552 * tests/unistdio/test-u16-asnprintf1.h: New file.
23553 * tests/unistdio/test-u16-printf1.h: New file.
23554 * tests/unistdio/test-u16-vasnprintf1.c: New file.
23555 * tests/unistdio/test-u16-vasnprintf2.c: New file.
23556 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
23557 * tests/unistdio/test-u16-vasnprintf3.c: New file.
23558 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
23559 * tests/unistdio/test-u16-vasprintf1.c: New file.
23560 * tests/unistdio/test-u16-vsnprintf1.c: New file.
23561 * tests/unistdio/test-u16-vsprintf1.c: New file.
23562 * tests/unistdio/test-u32-asnprintf1.c: New file.
23563 * tests/unistdio/test-u32-asnprintf1.h: New file.
23564 * tests/unistdio/test-u32-printf1.h: New file.
23565 * tests/unistdio/test-u32-vasnprintf1.c: New file.
23566 * tests/unistdio/test-u32-vasnprintf2.c: New file.
23567 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
23568 * tests/unistdio/test-u32-vasnprintf3.c: New file.
23569 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
23570 * tests/unistdio/test-u32-vasprintf1.c: New file.
23571 * tests/unistdio/test-u32-vsnprintf1.c: New file.
23572 * tests/unistdio/test-u32-vsprintf1.c: New file.
23573 * modules/unistdio/base: New file.
23574 * modules/unistdio/u-printf-args: New file.
23575 * modules/unistdio/ulc-asnprintf: New file.
23576 * modules/unistdio/ulc-asprintf: New file.
23577 * modules/unistdio/ulc-fprintf: New file.
23578 * modules/unistdio/ulc-printf-parse: New file.
23579 * modules/unistdio/ulc-snprintf: New file.
23580 * modules/unistdio/ulc-sprintf: New file.
23581 * modules/unistdio/ulc-vasnprintf: New file.
23582 * modules/unistdio/ulc-vasprintf: New file.
23583 * modules/unistdio/ulc-vfprintf: New file.
23584 * modules/unistdio/ulc-vsnprintf: New file.
23585 * modules/unistdio/ulc-vsprintf: New file.
23586 * modules/unistdio/u8-asnprintf: New file.
23587 * modules/unistdio/u8-asprintf: New file.
23588 * modules/unistdio/u8-printf-parse: New file.
23589 * modules/unistdio/u8-snprintf: New file.
23590 * modules/unistdio/u8-sprintf: New file.
23591 * modules/unistdio/u8-vasnprintf: New file.
23592 * modules/unistdio/u8-vasprintf: New file.
23593 * modules/unistdio/u8-vsnprintf: New file.
23594 * modules/unistdio/u8-vsprintf: New file.
23595 * modules/unistdio/u8-u8-asnprintf: New file.
23596 * modules/unistdio/u8-u8-asprintf: New file.
23597 * modules/unistdio/u8-u8-snprintf: New file.
23598 * modules/unistdio/u8-u8-sprintf: New file.
23599 * modules/unistdio/u8-u8-vasnprintf: New file.
23600 * modules/unistdio/u8-u8-vasprintf: New file.
23601 * modules/unistdio/u8-u8-vsnprintf: New file.
23602 * modules/unistdio/u8-u8-vsprintf: New file.
23603 * modules/unistdio/u16-asnprintf: New file.
23604 * modules/unistdio/u16-asprintf: New file.
23605 * modules/unistdio/u16-printf-parse: New file.
23606 * modules/unistdio/u16-snprintf: New file.
23607 * modules/unistdio/u16-sprintf: New file.
23608 * modules/unistdio/u16-vasnprintf: New file.
23609 * modules/unistdio/u16-vasprintf: New file.
23610 * modules/unistdio/u16-vsnprintf: New file.
23611 * modules/unistdio/u16-vsprintf: New file.
23612 * modules/unistdio/u16-u16-asnprintf: New file.
23613 * modules/unistdio/u16-u16-asprintf: New file.
23614 * modules/unistdio/u16-u16-snprintf: New file.
23615 * modules/unistdio/u16-u16-sprintf: New file.
23616 * modules/unistdio/u16-u16-vasnprintf: New file.
23617 * modules/unistdio/u16-u16-vasprintf: New file.
23618 * modules/unistdio/u16-u16-vsnprintf: New file.
23619 * modules/unistdio/u16-u16-vsprintf: New file.
23620 * modules/unistdio/u32-asnprintf: New file.
23621 * modules/unistdio/u32-asprintf: New file.
23622 * modules/unistdio/u32-printf-parse: New file.
23623 * modules/unistdio/u32-snprintf: New file.
23624 * modules/unistdio/u32-sprintf: New file.
23625 * modules/unistdio/u32-vasnprintf: New file.
23626 * modules/unistdio/u32-vasprintf: New file.
23627 * modules/unistdio/u32-vsnprintf: New file.
23628 * modules/unistdio/u32-vsprintf: New file.
23629 * modules/unistdio/u32-u32-asnprintf: New file.
23630 * modules/unistdio/u32-u32-asprintf: New file.
23631 * modules/unistdio/u32-u32-snprintf: New file.
23632 * modules/unistdio/u32-u32-sprintf: New file.
23633 * modules/unistdio/u32-u32-vasnprintf: New file.
23634 * modules/unistdio/u32-u32-vasprintf: New file.
23635 * modules/unistdio/u32-u32-vsnprintf: New file.
23636 * modules/unistdio/u32-u32-vsprintf: New file.
23637 * modules/unistdio/ulc-asnprintf-tests: New file.
23638 * modules/unistdio/ulc-vasnprintf-tests: New file.
23639 * modules/unistdio/ulc-vasprintf-tests: New file.
23640 * modules/unistdio/ulc-vsnprintf-tests: New file.
23641 * modules/unistdio/ulc-vsprintf-tests: New file.
23642 * modules/unistdio/u8-asnprintf-tests: New file.
23643 * modules/unistdio/u8-vasnprintf-tests: New file.
23644 * modules/unistdio/u8-vasprintf-tests: New file.
23645 * modules/unistdio/u8-vsnprintf-tests: New file.
23646 * modules/unistdio/u8-vsprintf-tests: New file.
23647 * modules/unistdio/u16-asnprintf-tests: New file.
23648 * modules/unistdio/u16-vasnprintf-tests: New file.
23649 * modules/unistdio/u16-vasprintf-tests: New file.
23650 * modules/unistdio/u16-vsnprintf-tests: New file.
23651 * modules/unistdio/u16-vsprintf-tests: New file.
23652 * modules/unistdio/u32-asnprintf-tests: New file.
23653 * modules/unistdio/u32-vasnprintf-tests: New file.
23654 * modules/unistdio/u32-vasprintf-tests: New file.
23655 * modules/unistdio/u32-vsnprintf-tests: New file.
23656 * modules/unistdio/u32-vsprintf-tests: New file.
23657 * MODULES.html.sh (Unicode string functions): Add the new modules.
23659 2007-07-01 Bruno Haible <bruno@clisp.org>
23661 * lib/sprintf.c (sprintf): Limit the available length estimation,
23662 to avoid address wraparound.
23663 * lib/vsprintf.c (vsprintf): Likewise.
23664 * modules/sprintf-posix (Dependencies): Add stdint.
23665 * modules/vsprintf-posix (Dependencies): Likewise.
23667 2007-07-01 Bruno Haible <bruno@clisp.org>
23669 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
23670 Windows PATH as well. Conservative double-quoting. Comments.
23672 2007-07-01 Bruno Haible <bruno@clisp.org>
23673 Eric Blake <ebb9@byu.net>
23674 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23676 * gnulib-tool (self_abspathname): Fix algorithm to cope with
23677 empty components in $PATH, denoting '.'.
23679 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23681 * gnulib-tool: Fix indentation.
23682 (func_create_megatestdir): Likewise.
23683 Report by Bruno Haible.
23685 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23687 Sync from Automake.
23688 * build-aux/gnupload: Fix shell portability issues with for loops.
23689 Report by Karl Berry.
23691 2007-06-29 Simon Josefsson <simon@josefsson.org>
23693 * build-aux/maint.mk (POURL): Use translationproject.org.
23695 2007-06-27 Simon Josefsson <simon@josefsson.org>
23696 Bruno Haible <bruno@clisp.org>
23698 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
23699 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
23700 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
23701 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
23702 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
23704 2007-06-27 Bruno Haible <bruno@clisp.org>
23706 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
23707 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
23709 2007-06-26 Karl Berry <karl@gnu.org>
23711 * MODULES.html.sh: remove xreadlink-with-size.
23713 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
23715 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
23716 method that I hope also handles the double-include problem noted
23718 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
23720 2007-06-23 Bruno Haible <bruno@clisp.org>
23722 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23723 Don't let the 'mostlyclean' target fail if the last subdirectory could
23725 Reported by Karl Berry.
23727 2007-06-23 Bruno Haible <bruno@clisp.org>
23729 * gnulib-tool (echo): Add a speedier workaround for ksh.
23730 * tests/test-echo.sh: Likewise.
23732 2007-06-23 Bruno Haible <bruno@clisp.org>
23734 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
23735 * tests/test-echo.sh: Likewise.
23737 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23739 * gnulib-tool (IFS): Initialize early, so we don't set it to
23741 (self_abspathname): Rewrite algorithm to set it, reindent.
23742 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
23743 (func_create_megatestdir): Merge some sed scripts.
23745 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
23747 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
23748 exposed by Sun Studio 11 cc on Solaris 8.
23750 2007-06-22 Bruno Haible <bruno@clisp.org>
23752 * gnulib-tool (echo): Ensure the echo primitive does not interpret
23754 * tests/test-echo.sh: New file.
23756 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23758 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
23759 simplify `sed_replace_build_aux' scripts, they are portable but
23760 echoing them with `echo' is not.
23761 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
23763 2007-06-21 Karl Berry <karl@gnu.org>
23765 * config/srclist.txt: guess we can't handle the licenses via
23766 srclist at the moment.
23768 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
23770 * MODULES.html.sh: Add include_next.
23771 * modules/include_next: New file.
23773 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
23775 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
23777 (gl_CHECK_NEXT_HEADERS): New macro.
23778 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
23779 the obsolescent gl_ABSOLUTE_HEADER.
23780 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
23781 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
23782 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
23783 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23784 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
23785 * m4/math_h.m4 (gl_MATH_H): Likewise.
23786 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
23787 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23788 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
23789 * m4/stdint.m4 (gl_STDINT_H): Likewise.
23790 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
23791 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
23792 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
23793 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23794 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23795 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
23796 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
23797 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
23798 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
23799 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23800 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
23801 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
23802 * m4/inttypes.m4 (gl_INTTYPES_H): Define
23803 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
23804 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
23805 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
23806 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
23807 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
23808 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
23809 * lib/float_.h: Likewise.
23810 * lib/inttypes_.h: Likewise.
23811 * lib/math_.h: Likewise.
23812 * lib/search_.h: Likewise.
23813 * lib/signal_.h: Likewise.
23814 * lib/stdint_.h: Likewise.
23815 * lib/stdio_.h: Likewise.
23816 * lib/stdlib_.h: Likewise.
23817 * lib/string_.h: Likewise.
23818 * lib/sys_stat_.h: Likewise.
23819 * lib/sys_time_.h: Likewise.
23820 * lib/time_.h: Likewise.
23821 * lib/unistd_.h: Likewise.
23822 * lib/wchar_.h: Likewise.
23823 * lib/wctype_.h: Likewise.
23824 * lib/dirent_.h: Likewise.
23825 * lib/iconv_.h: Likewise.
23826 * lib/locale_.h: Likewise.
23827 * lib/netinet_in_.h: Likewise.
23828 * lib/sys_select_.h: Likewise.
23829 * lib/sys_socket_.h: Likewise.
23830 * lib/sysexits_.h: Likewise.
23831 * modules/fcntl (Depends-on): Depend on include_next, not
23833 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
23834 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
23835 * modules/fchdir: Likewise.
23836 * modules/float: Likewise.
23837 * modules/iconv_open: Likewise.
23838 * modules/inttypes: Likewise.
23839 * modules/locale: Likewise.
23840 * modules/math: Likewise.
23841 * modules/netinet_in: Likewise.
23842 * modules/search: Likewise.
23843 * modules/signal: Likewise.
23844 * modules/stdint: Likewise.
23845 * modules/stdio: Likewise.
23846 * modules/stdlib: Likewise.
23847 * modules/string: Likewise.
23848 * modules/sys_select: Likewise.
23849 * modules/sys_socket: Likewise.
23850 * modules/sys_stat: Likewise.
23851 * modules/sys_time: Likewise.
23852 * modules/sysexits: Likewise.
23853 * modules/time: Likewise.
23854 * modules/unistd: Likewise.
23855 * modules/wchar: Likewise.
23856 * modules/wctype: Likewise.
23857 * modules/sys_stat: Change maintainer to "all".
23858 * modules/unistd: Likewise.
23860 2007-06-20 Karl Berry <karl@gnu.org>
23862 * config/srclist.txt: track www changes in license files.
23864 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
23866 * build-aux/bootstrap: Remove stray dot.
23867 Make sure build_aux settings are honored when linking
23868 gnulib_extra_files.
23870 2007-06-19 Eric Blake <ebb9@byu.net>
23872 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
23873 Allow compilation on cygwin.
23875 2007-06-19 Jim Meyering <jim@meyering.net>
23877 xreadlink-with-size: Remove module. No longer used.
23878 Ex-callers now use xreadlink or mreadlink-with-size.
23879 * modules/xreadlink-with-size: Remove module.
23880 * lib/xreadlink-with-size.c: Remove file.
23881 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
23882 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
23883 just before the function definition *is* accurate.
23885 Eliminate one way canonicalize_filename_mode could exit.
23886 * lib/canonicalize.c (canonicalize_filename_mode):
23887 Use mreadlink_with_size, not xreadlink_with_size.
23889 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
23891 Detect porting problems to FreeBSD/arm, which has time_t wider than
23892 long int. Original problem reported for GNU diff by Xin Li in
23893 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
23894 * modules/getdate (Depends-on): Add intprops, verify.
23895 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
23896 is an integer type no wider than long int.
23898 2007-06-18 Jim Meyering <jim@meyering.net>
23900 New module: mreadlink-with-size.
23901 * MODULES.html.sh: Add mreadlink-with-size.
23902 * modules/mreadlink-with-size: New module
23903 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
23904 not xreadlink-with-size.
23905 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
23907 2007-06-16 Bruno Haible <bruno@clisp.org>
23909 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
23910 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
23911 Reported by Gary V. Vaughan <gary@gnu.org>.
23913 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
23915 Revamp lchown so that it lives in unistd.h where it belongs.
23916 * lib/lchown.h: Remove.
23917 * lib/dirchownmod.c: Don't include lib/lchown.h.
23918 * lib/fchownat.c: Likewise.
23919 * lib/openat.c: Likewise.
23920 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
23921 does not follow symlinks.
23922 (EOPNOTSUPP): Define if not defined.
23923 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
23925 (lchown): New decl.
23926 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
23927 Do not check for lchown decl.
23928 Set REPLACE_LCHOWN.
23929 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
23931 * modules/chown: Make it clear it follows symlinks.
23932 * modules/lchown: Make it clear it doesn't follow symlinks.
23933 (Files): Remove lib/lchown.h
23934 (Depends-on): Add unistd.
23935 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
23936 (Include): Include <unistd.h>, not "lchown.h".
23937 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
23940 2007-06-15 Jim Meyering <jim@meyering.net>
23942 Change license (GPL to LGPL) of fsusage and dependents.
23943 * modules/fsusage (License): Change to LGPL.
23944 * modules/full-read (License): Likewise.
23945 * modules/full-write (License): Likewise.
23946 * modules/safe-read (License): Likewise.
23947 * modules/safe-write (License): Likewise.
23949 2007-06-14 Ben Pfaff <blp@gnu.org>
23951 Missing part of allocsa -> malloca transition.
23952 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
23955 2007-06-12 Bruno Haible <bruno@clisp.org>
23957 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
23958 to ia64, x86_64, i386.
23959 Reported by Eric Blake.
23961 2007-06-12 Bruno Haible <bruno@clisp.org>
23963 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
23964 cross-compiling to x86_64.
23966 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
23968 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
23969 glitch reported by Ralf Wildenhues in
23970 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
23972 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
23975 2007-06-11 Bruno Haible <bruno@clisp.org>
23977 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
23978 replacement string.
23979 Reported by Eric Blake.
23981 2007-06-10 Bruno Haible <bruno@clisp.org>
23983 Prepare vasnprintf code for use with Unicode strings.
23984 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
23985 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
23987 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
23988 a_u32_string variants.
23989 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
23990 * lib/printf-args.c: Don't include config.h and the specification
23991 header if PRINTF_FETCHARGS is already defined.
23992 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
23993 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
23994 TYPE_U16_STRING, TYPE_U32_STRING.
23995 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
23996 u16_directive, u16_directives, u32_directive, u32_directives): New
23998 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
24000 * lib/printf-parse.c: Don't include config.h and the specification
24001 header if PRINTF_PARSE is already defined. Eliminate the set of
24002 parameters for WIDE_CHAR_VERSION; the user of this file must provide
24003 them now. Include c-ctype.h.
24004 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
24005 directive and CHAR_T_ONLY_ASCII.
24006 * lib/vasnprintf.c: Don't include config.h and the specification header
24007 if VASNPRINTF is already defined.
24008 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
24009 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
24010 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
24011 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
24012 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
24013 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
24015 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
24016 pad_ourselves also in this case, with the 'c' and 's' directives, and
24017 with a different notion of "width".
24018 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
24020 2007-06-10 Bruno Haible <bruno@clisp.org>
24022 * modules/unistr/u32-mbsnlen: New file.
24023 * lib/unistr/u32-mbsnlen.c: New file.
24025 * modules/unistr/u16-mbsnlen: New file.
24026 * lib/unistr/u16-mbsnlen.c: New file.
24028 * modules/unistr/u8-mbsnlen: New file.
24029 * lib/unistr/u8-mbsnlen.c: New file.
24031 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
24034 2007-06-10 Bruno Haible <bruno@clisp.org>
24036 * lib/string_.h (mbsnlen): New declaration.
24037 * lib/mbsnlen.c: New file.
24038 * m4/mbsnlen.m4: New file.
24039 * modules/mbsnlen: New file.
24040 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
24041 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
24042 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
24044 2007-06-10 Bruno Haible <bruno@clisp.org>
24046 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
24048 2007-06-10 Bruno Haible <bruno@clisp.org>
24050 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
24051 * lib/mbuiter.h: Likewise.
24053 2007-06-10 Bruno Haible <bruno@clisp.org>
24055 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
24058 2007-06-10 Karl Berry <karl@gnu.org>
24060 * config/srclist.txt: remove gettext entries, Bruno prefers
24061 to update individually.
24063 2007-06-10 Bruno Haible <bruno@clisp.org>
24065 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
24066 'maxlen'. Ensure only length + width bytes are allocated, not
24067 length + 1 + width.
24069 2007-06-09 Bruno Haible <bruno@clisp.org>
24071 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
24072 (CHAR_T): Remove macro.
24073 (VASNPRINTF): Update.
24075 2007-06-09 Bruno Haible <bruno@clisp.org>
24077 * MODULES.html.sh (Unicode string functions): Add the new modules.
24079 * modules/uniconv/u32-conv-to-enc: New file.
24080 * lib/uniconv/u32-conv-to-enc.c: New file.
24081 * modules/uniconv/u32-conv-to-enc-tests: New file.
24082 * tests/uniconv/test-u32-conv-to-enc.c: New file.
24084 * modules/uniconv/u16-conv-to-enc: New file.
24085 * lib/uniconv/u16-conv-to-enc.c: New file.
24086 * lib/uniconv/u-conv-to-enc.h: New file.
24087 * modules/uniconv/u16-conv-to-enc-tests: New file.
24088 * tests/uniconv/test-u16-conv-to-enc.c: New file.
24090 * modules/uniconv/u8-conv-to-enc: New file.
24091 * lib/uniconv/u8-conv-to-enc.c: New file.
24092 * modules/uniconv/u8-conv-to-enc-tests: New file.
24093 * tests/uniconv/test-u8-conv-to-enc.c: New file.
24095 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
24096 u32_conv_to_encoding): New declarations.
24098 2007-06-09 Bruno Haible <bruno@clisp.org>
24100 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
24102 2007-06-09 Bruno Haible <bruno@clisp.org>
24104 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
24105 * modules/malloca: Renamed from modules/allocsa, updated.
24106 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
24107 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
24108 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
24109 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
24110 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
24111 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
24112 * modules/xmalloca: Renamed from modules/xallocsa, updated.
24113 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
24114 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
24115 * modules/c-strcasestr (Depends-on): Update.
24116 * lib/c-strcasestr.c: Update.
24117 * modules/c-strstr (Depends-on): Update.
24118 * lib/c-strstr.c: Update.
24119 * modules/canonicalize-lgpl (Depends-on): Update.
24120 * lib/canonicalize-lgpl.c: Update.
24121 * modules/clean-temp (Depends-on): Update.
24122 * lib/clean-temp.c: Update.
24123 * modules/csharpcomp (Depends-on): Update.
24124 * lib/csharpcomp.c: Update.
24125 * modules/csharpexec (Depends-on): Update.
24126 * lib/csharpexec.c: Update.
24127 * modules/javacomp (Depends-on): Update.
24128 * lib/javacomp.c: Update.
24129 * modules/javaexec (Depends-on): Update.
24130 * lib/javaexec.c: Update.
24131 * modules/mbscasestr (Depends-on): Update.
24132 * lib/mbscasestr.c: Update.
24133 * modules/mbsstr (Depends-on): Update.
24134 * lib/mbsstr.c: Update.
24135 * modules/setenv (Depends-on): Update.
24136 * lib/setenv.c: Update.
24137 * modules/strcasestr (Depends-on): Update.
24138 * lib/strcasestr.c: Update.
24139 * modules/striconveha (Depends-on): Update.
24140 * lib/striconveha.c: Update.
24141 * modules/relocatable-prog-wrapper (Files): Update.
24142 * lib/relocwrapper.c: Update.
24143 * build-aux/install-reloc: Update.
24144 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
24146 2007-06-08 Bruno Haible <bruno@clisp.org>
24149 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
24150 * lib/fpurge.c (fpurge): Likewise.
24151 * lib/freading.c (freading): Likewise.
24152 * lib/fseeko.c (rpl_fseeko): Likewise.
24153 * lib/fseterr.c (fseterr): Likewise.
24154 * lib/fwriting.c (fwriting): Likewise.
24155 * tests/test-fflush.c (main): Avoid a failure on uClibc.
24157 2007-06-08 Bruno Haible <bruno@clisp.org>
24159 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
24160 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
24161 * modules/gettext (Files): Add m4/intlmacosx.m4.
24163 2007-06-07 Bruno Haible <bruno@clisp.org>
24165 * modules/localename-tests: New file.
24166 * tests/test-localename.c: New file.
24168 New module 'localename'.
24169 * lib/localename.h: New file.
24170 * lib/localename.c: New file, from GNU gettext.
24171 * m4/localename.m4: New file.
24172 * modules/localename: New file.
24174 2007-06-07 Bruno Haible <bruno@clisp.org>
24176 Work around the lack of <wchar.h> on some builds of uClibc.
24177 * doc/headers/wchar.texi: Update.
24178 * lib/wchar_.h: Include <wchar.h> only if it exists.
24179 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
24180 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
24181 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
24183 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
24184 * modules/mbfile (Depends-on): Add wchar.
24185 * modules/mbiter (Depends-on): Likewise.
24186 * modules/mbuiter (Depends-on): Likewise.
24187 Reported by Simon Josefsson.
24189 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
24191 Work around problem reported by Steven M. Schweda in
24192 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
24193 Tru64 5.1B with the Compaq compiler environment installed declares
24194 an 'isblank' function but does not define it in the C library.
24195 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
24196 * lib/regex_internal.h (isblank): Likewise.
24197 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
24198 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
24200 2007-06-05 Bruno Haible <bruno@clisp.org>
24202 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
24204 * modules/printf-safe: New file.
24205 * modules/fprintf-posix (Depends-on): Add printf-safe.
24206 * modules/printf-posix (Depends-on): Likewise.
24207 * modules/snprintf-posix (Depends-on): Likewise.
24208 * modules/sprintf-posix (Depends-on): Likewise.
24209 * modules/vasnprintf-posix (Depends-on): Likewise.
24210 * modules/vasprintf-posix (Depends-on): Likewise.
24211 * modules/vfprintf-posix (Depends-on): Likewise.
24212 * modules/vprintf-posix (Depends-on): Likewise.
24213 * modules/vsnprintf-posix (Depends-on): Likewise.
24214 * modules/vsprintf-posix (Depends-on): Likewise.
24215 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
24216 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
24217 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
24218 "no" on i386, x86_64, ia64.
24219 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
24220 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24221 on i386, x86_64, ia64.
24222 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
24223 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24224 on i386, x86_64, ia64.
24225 * tests/test-vasnprintf-posix.c: Include float.h.
24226 (LDBL80_WORDS): New macro.
24227 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24228 on i386, x86_64, ia64.
24229 * tests/test-vasprintf-posix.c: Include float.h.
24230 (LDBL80_WORDS): New macro.
24231 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
24232 on i386, x86_64, ia64.
24233 * tests/test-snprintf-posix.c: Include float.h.
24234 * tests/test-sprintf-posix.c: Likewise.
24235 * tests/test-vsnprintf-posix.c: Likewise.
24236 * tests/test-vsprintf-posix.c: Likewise.
24238 2007-06-05 Bruno Haible <bruno@clisp.org>
24240 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
24241 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
24242 non-IEEE numbers on i386, x86_64, ia64.
24243 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
24244 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
24245 * tests/test-isnanl.h: Include float.h.
24246 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
24248 2007-06-05 Bruno Haible <bruno@clisp.org>
24250 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
24251 also the %a / %A. Handle the %a / %A code before this extra handling.
24253 2007-06-05 Bruno Haible <bruno@clisp.org>
24255 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
24256 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
24258 2007-06-05 Bruno Haible <bruno@clisp.org>
24260 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
24261 typo in variable name.
24263 2007-06-05 Eric Blake <ebb9@byu.net>
24265 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
24266 Reported by Simon Josefsson.
24268 2007-06-04 Bruno Haible <bruno@clisp.org>
24270 Avoid test failures on some PowerPC platforms.
24271 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
24272 Define differently for PowerPC.
24273 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
24274 Reported by Gary V. Vaughan <gary@gnu.org>.
24276 2007-06-02 Bruno Haible <bruno@clisp.org>
24278 Fix test-stdint failure on FreeBSD/ia64.
24279 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
24280 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
24281 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
24282 * doc/headers/stdint.texi: Update.
24284 2007-06-01 Bruno Haible <bruno@clisp.org>
24286 * tests/test-binary-io.c (main): Pass a third argument to open().
24287 Reported by Gary V. Vaughan <gary@gnu.org>.
24289 2007-06-01 Bruno Haible <bruno@clisp.org>
24291 * doc/functions/frexpl.texi: Update for mingw.
24293 2007-06-01 Bruno Haible <bruno@clisp.org>
24295 * tests/test-lseek.c (main): Disable test of errno for invalid third
24297 * doc/functions/lseek.texi: Update.
24298 Reported by Gary V. Vaughan <gary@gnu.org>.
24300 2007-05-28 Bruno Haible <bruno@clisp.org>
24302 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
24304 2007-05-31 Eric Blake <ebb9@byu.net>
24306 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
24309 2007-05-30 Eric Blake <ebb9@byu.net>
24310 and Bruno Haible <bruno@clisp.org>
24312 Work around mingw test failures exposed by m4-1.4.9b.
24313 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
24314 * tests/test-unistd.c: Disable uid_t and git_t tests for the
24317 2007-05-30 Bruno Haible <bruno@clisp.org>
24319 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
24320 assuming that they are closed. Needed on HP-UX 11.
24322 2007-05-29 Bruno Haible <bruno@clisp.org>
24324 Fix a problem with #include_next.
24325 * lib/dirent_.h: Split the double-inclusion guard.
24326 * lib/fcntl_.h: Likewise.
24327 * lib/float_.h: Likewise.
24328 * lib/iconv_.h: Likewise.
24329 * lib/inttypes_.h: Likewise.
24330 * lib/locale_.h: Likewise.
24331 * lib/math_.h: Likewise.
24332 * lib/netinet_in_.h: Likewise.
24333 * lib/search_.h: Likewise.
24334 * lib/signal_.h: Likewise.
24335 * lib/stdint_.h: Likewise.
24336 * lib/stdio_.h: Likewise.
24337 * lib/stdlib_.h: Likewise.
24338 * lib/string_.h: Likewise.
24339 * lib/sys_select_.h: Likewise.
24340 * lib/sys_socket_.h: Likewise.
24341 * lib/sys_stat_.h: Likewise.
24342 * lib/sys_time_.h: Likewise.
24343 * lib/sysexits_.h: Likewise.
24344 * lib/time_.h: Likewise.
24345 * lib/unistd_.h: Likewise.
24346 * lib/wchar_.h: Likewise.
24347 * lib/wctype_.h: Likewise.
24349 2007-05-29 Bruno Haible <bruno@clisp.org>
24351 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
24354 2007-05-29 Bruno Haible <bruno@clisp.org>
24356 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
24358 Reported by Eric Blake.
24360 2007-05-29 Bruno Haible <bruno@clisp.org>
24362 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
24365 2007-05-29 Eric Blake <ebb9@byu.net>
24366 Bruno Haible <bruno@clisp.org>
24368 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
24371 2007-05-28 Eric Blake <ebb9@byu.net>
24373 * modules/closein-tests (test_closein_LDADD): Support test on
24374 cygwin with libtool.
24376 2007-05-28 Bruno Haible <bruno@clisp.org>
24378 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
24379 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
24380 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
24381 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
24382 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
24383 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
24384 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
24385 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
24386 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
24388 2007-05-28 Eric Blake <ebb9@byu.net>
24390 Unconditionally include <config.h> in unit tests.
24391 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
24392 * tests/test-allocsa.c, tests/test-arcfour.c,
24393 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
24394 tests/test-array_list.c, tests/test-array_oset.c,
24395 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
24396 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
24397 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
24398 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
24399 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
24400 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
24401 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
24402 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
24403 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
24404 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
24405 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
24406 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
24407 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
24408 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
24409 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
24410 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
24411 test-md5.c, test-memmem.c, test-printf-posix.c,
24412 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
24413 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
24414 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
24415 test-strcasestr.c, test-striconv.c, test-striconveh.c,
24416 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
24417 test-vasnprintf-posix2.c, test-vasnprintf.c,
24418 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
24419 test-vfprintf-posix.c, test-vprintf-posix.c,
24420 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
24421 test-xvasprintf.c: Likewise.
24423 2007-05-28 Bruno Haible <bruno@clisp.org>
24425 * gnulib-tool (func_import): Remember the --with-tests command-line
24426 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
24427 Reported by Eric Blake.
24429 2007-05-28 Bruno Haible <bruno@clisp.org>
24431 * modules/ftell-tests: New file.
24432 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
24433 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
24435 * lib/ftell.c: New file.
24436 * modules/ftell: New file.
24437 * m4/ftell.m4: New file.
24438 * doc/functions/ftell.texi: Update.
24439 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
24441 * lib/stdio_.h (rpl_ftell): New declaration.
24442 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
24445 2007-05-28 Eric Blake <ebb9@byu.net>
24447 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
24449 2007-05-28 Bruno Haible <bruno@clisp.org>
24451 * modules/fseek-tests: New file.
24452 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
24453 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
24455 * lib/fseek.c: New file.
24456 * modules/fseek: New file.
24457 * m4/fseek.m4: New file.
24458 * doc/functions/fseek.texi: Update.
24459 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
24461 * lib/stdio_.h (rpl_fseek): New declaration.
24462 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
24465 2007-05-28 Bruno Haible <bruno@clisp.org>
24467 * lib/stdio_.h (fflush): More comments.
24469 2007-05-28 Bruno Haible <bruno@clisp.org>
24471 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
24474 2007-05-28 Eric Blake <ebb9@byu.net>
24476 Improve lseek module.
24477 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
24478 * lib/unistd_.h (lseek): Scale back link warning message.
24479 * tests/test-lseek.c: Beef up test.
24480 * tests/test-lseek.sh: Exercise more facets of lseek.
24481 Reported by Bruno Haible.
24483 2007-05-28 Bruno Haible <bruno@clisp.org>
24485 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
24488 2007-05-27 Bruno Haible <bruno@clisp.org>
24490 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
24492 2007-05-27 Bruno Haible <bruno@clisp.org>
24494 * modules/openmp: New file.
24495 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
24498 2007-05-26 Bruno Haible <bruno@clisp.org>
24500 * modules/chdir-long (Depends-on): Add fchdir.
24501 * modules/chdir-safer (Depends-on): Likewise.
24502 * modules/fts (Depends-on): Likewise.
24503 * modules/fts-lgpl (Depends-on): Likewise.
24504 * modules/openat (Depends-on): Likewise.
24505 * modules/savewd (Depends-on): Likewise.
24507 2007-05-24 Eric Blake <ebb9@byu.net>
24509 Fix lseek on mingw.
24510 * modules/lseek: New module.
24511 * m4/lseek.m4: New file.
24512 * lib/lseek.c: New file.
24513 * modules/lseek-tests: New file.
24514 * tests/test-lseek.c: New file.
24515 * tests/test-lseek.sh: New file.
24516 * MODULES.html.sh: Document lseek module.
24517 * modules/fflush (Depends-on): Add lseek, fseeko.
24518 * modules/fseeko (Depends-on): Likewise.
24519 * modules/ftello (Depends-on): Likewise.
24520 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
24522 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
24524 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
24525 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
24526 * lib/ftello.c (rpl_ftello): Likewise.
24527 * tests/test-fseeko.c (main): Test this.
24528 * tests/test-fseeko.sh: Likewise.
24529 * tests/test-ftello.c (main): Likewise.
24530 * tests/test-ftello.sh: Likewise.
24531 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
24532 implies replacing fseek.
24533 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
24535 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
24536 * modules/unistd (Makefile.am): Likewise.
24537 * lib/unistd_.h (lseek): Declare a replacement.
24538 * doc/functions/lseek.texi (lseek): Document this fix.
24539 * doc/functions/fseek.texi (fseek): Likewise.
24540 * doc/functions/ftell.texi (ftell): Likewise.
24542 2007-05-24 Bruno Haible <bruno@clisp.org>
24544 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
24545 in the printed representation of a NaN.
24546 * tests/test-vasprintf-posix.c (test_function): Likewise.
24547 * tests/test-snprintf-posix.h (test_function): Likewise.
24548 * tests/test-sprintf-posix.h (test_function): Likewise.
24549 Reported by Eric Blake.
24551 2007-05-23 Eric Blake <ebb9@byu.net>
24553 Fix fseeko/ftello on cygwin 1.5.24.
24554 * doc/functions/fseeko.texi (fseeko): Document the fix.
24555 * doc/functions/ftello.texi (ftello): Document the fix.
24556 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
24557 * doc/functions/stdout.text (stdout): New file.
24558 * doc/functions/stderr.text (stderr): New file.
24559 * doc/gnulib.texi (Function Substitutes): Use new files.
24560 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
24562 * tests/test-ftello.c (main): Likewise for ftello.
24563 * tests/test-fseeko.sh: New file.
24564 * tests/test-ftello.sh: New file.
24565 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
24566 with seekable stdin.
24567 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
24568 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
24569 (gl_REPLACE_FSEEKO): New macro.
24570 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
24571 * modules/fseeko (Files): Distribute fseeko.c.
24572 * modules/ftello (Files): Distribute ftello.c.
24573 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
24575 * lib/ftello.c (rpl_ftello): New file.
24576 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
24578 (gl_STDIN_LARGE_OFFSET): New macro.
24579 * modules/stdio (Makefile.am): Perform the replacement.
24580 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
24582 2007-05-23 Bruno Haible <bruno@clisp.org>
24584 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
24585 GNULIB_POSIXCHECK is defined.
24587 2007-05-21 Bruno Haible <bruno@clisp.org>
24589 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
24590 Check also the output for NaN arguments. When cross-compiling, guess
24592 * lib/vasnprintf.c: Update comments.
24593 * tests/test-vasnprintf-posix.c (strisnan): New function.
24594 (test_function): Use it.
24595 * tests/test-vasprintf-posix.c (strisnan): New function.
24596 (test_function): Use it.
24597 * tests/test-snprintf-posix.h (strisnan): New function.
24598 (test_function): Use it.
24599 * tests/test-sprintf-posix.h (strisnan): New function.
24600 (test_function): Use it.
24601 Reported by Eric Blake.
24603 2007-05-20 Bruno Haible <bruno@clisp.org>
24605 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
24606 numbers that fails on BeOS.
24607 * doc/functions/frexpl.texi: Update.
24609 2007-05-20 Jim Meyering <jim@meyering.net>
24611 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
24612 forced upon us by glibc-2.6.
24614 2007-05-20 Bruno Haible <bruno@clisp.org>
24616 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
24617 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
24618 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
24619 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
24620 NEED_PRINTF_INFINITE.
24621 (is_infinitel): New function.
24622 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
24623 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
24624 gl_PREREQ_VASNPRINTF_INFINITE.
24625 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
24626 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24627 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
24628 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
24629 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
24630 gl_PREREQ_VASNPRINTF_INFINITE.
24631 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24632 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24633 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24634 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24635 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24636 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24637 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24638 * doc/functions/fprintf.texi: Update.
24639 * doc/functions/printf.texi: Update.
24640 * doc/functions/snprintf.texi: Update.
24641 * doc/functions/sprintf.texi: Update.
24642 * doc/functions/vfprintf.texi: Update.
24643 * doc/functions/vprintf.texi: Update.
24644 * doc/functions/vsnprintf.texi: Update.
24645 * doc/functions/vsprintf.texi: Update.
24647 2007-05-20 Bruno Haible <bruno@clisp.org>
24649 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
24650 was not found in libc.
24651 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
24653 2007-05-20 Bruno Haible <bruno@clisp.org>
24655 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
24656 printed as "-nan" instead of "nan".
24657 * tests/test-vasprintf-posix.c (test_function): Likewise.
24658 * tests/test-snprintf-posix.h (test_function): Likewise.
24659 * tests/test-sprintf-posix.h (test_function): Likewise.
24660 Needed for HP-UX 11.
24662 2007-05-20 Jim Meyering <jim@meyering.net>
24664 Fix buggy test for the fchownat-deref bug.
24665 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
24666 symlink required for the run-test. Without it, this test would
24667 always declare that fchownat doesn't work, and client code would
24668 unnecessarily use the replacement function with fixed libc.
24669 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
24670 Reported by Greg Schafer.
24672 2007-05-19 Bruno Haible <bruno@clisp.org>
24674 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
24675 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
24676 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
24677 Needed for IRIX 6.5 and Solaris 2.5.1.
24679 2007-05-19 Bruno Haible <bruno@clisp.org>
24681 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
24682 (test_function): Skip tests involving -0.0 on platforms where
24684 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
24685 (test_function): Skip tests involving -0.0 on platforms where
24687 * tests/test-snprintf-posix.h (have_minus_zero): New function.
24688 (test_function): Skip tests involving -0.0 on platforms where
24690 * tests/test-sprintf-posix.h (have_minus_zero): New function.
24691 (test_function): Skip tests involving -0.0 on platforms where
24693 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
24695 * tests/test-printf-posix.h (test_function): Likewise.
24696 * tests/test-printf-posix.output: Remove all -0.0 related results.
24697 Needed for IRIX 6.5.
24699 2007-05-19 Bruno Haible <bruno@clisp.org>
24701 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
24702 printed as "nan0x7fffffff" instead of "nan".
24703 * tests/test-vasprintf-posix.c (test_function): Likewise.
24704 * tests/test-snprintf-posix.h (test_function): Likewise.
24705 * tests/test-sprintf-posix.h (test_function): Likewise.
24706 * tests/test-fprintf-posix.h (NaN): Remove macro.
24707 (test_function): Remove all NaN related tests.
24708 * tests/test-printf-posix.h (NaN): Remove macro.
24709 (test_function): Remove all NaN related tests.
24710 * tests/test-printf-posix.output: Remove all NaN related results.
24711 Needed for IRIX 6.5.
24713 2007-05-19 Bruno Haible <bruno@clisp.org>
24715 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
24716 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
24718 2007-05-19 Bruno Haible <bruno@clisp.org>
24720 * lib/float_.h: New file.
24721 * m4/float_h.m4: New file.
24722 * modules/float: New file.
24723 * modules/isnanl (Dependencies): Add float.
24724 * modules/isnanl-nolibm (Dependencies): Likewise.
24725 * modules/mathl (Dependencies): Likewise.
24726 * modules/printf-frexpl (Dependencies): Likewise.
24727 * modules/signbit (Dependencies): Likewise.
24728 * modules/vasnprintf (Dependencies): Likewise.
24729 * doc/headers/float.texi: Update.
24731 2007-05-19 Jim Meyering <jim@meyering.net>
24733 * lib/utimens.c (gl_futimens): Rename from futimens,
24734 now that glibc-2.6 declares futimens.
24735 * lib/utimens.h: Likewise.
24737 2007-05-19 Bruno Haible <bruno@clisp.org>
24739 Avoid test failures on mingw.
24740 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
24741 * tests/test-printf-posix.sh: Likewise.
24742 * tests/test-vfprintf-posix.sh: Likewise.
24743 * tests/test-vprintf-posix.sh: Likewise.
24745 2007-05-19 Bruno Haible <bruno@clisp.org>
24747 Fix *printf result for NaN, Inf, -0.0 on mingw.
24748 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
24749 * lib/vasnprintf.c: Include math.h and isnan.h.
24750 (is_infinite_or_zero): New function.
24751 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
24752 values in the %f, %F, %e, %E, %g, %G directives.
24753 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
24754 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24755 gl_PRINTF_INFINITE and test its result. Invoke
24756 gl_PREREQ_VASNPRINTF_INFINITE.
24757 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24758 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24759 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24760 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24761 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24762 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24763 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24764 * doc/functions/fprintf.texi: Update.
24765 * doc/functions/printf.texi: Update.
24766 * doc/functions/snprintf.texi: Update.
24767 * doc/functions/sprintf.texi: Update.
24768 * doc/functions/vfprintf.texi: Update.
24769 * doc/functions/vprintf.texi: Update.
24770 * doc/functions/vsnprintf.texi: Update.
24771 * doc/functions/vsprintf.texi: Update.
24773 2007-05-19 Bruno Haible <bruno@clisp.org>
24775 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
24776 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
24777 Instead of multiplying with 10^k, set extra_zeroes to k.
24778 (scale10_round_long_double): Remove function.
24780 2007-05-18 Bruno Haible <bruno@clisp.org>
24782 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
24783 introduced on 2007-05-06.
24785 2007-05-18 Bruno Haible <bruno@clisp.org>
24787 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
24789 * tests/test-vasprintf-posix.c (test_function): Likewise.
24790 * tests/test-snprintf-posix.h (test_function): Likewise.
24791 * tests/test-sprintf-posix.h (test_function): Likewise.
24793 2007-05-18 Bruno Haible <bruno@clisp.org>
24795 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
24796 (strmatch): New function.
24797 (test_function): Test the %f directive on numbers of various exponents.
24798 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
24799 (strmatch): New function.
24800 (test_function): Test the %f directive on numbers of various exponents.
24801 * tests/test-snprintf-posix.h (strmatch): New function.
24802 (test_function): Test the %f directive on numbers of various exponents.
24803 * tests/test-sprintf-posix.h (strmatch): New function.
24804 (test_function): Test the %f directive on numbers of various exponents.
24805 * tests/test-snprintf-posix.c (SIZEOF): New macro.
24806 * tests/test-sprintf-posix.c (SIZEOF): New macro.
24807 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
24808 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
24810 2007-05-18 Bruno Haible <bruno@clisp.org>
24812 Add support for 'long double' number output.
24813 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
24814 * lib/vasnprintf.c: Include math.h and float+.h.
24815 (mp_limb_t): New type.
24816 (GMP_LIMB_BITS): New macro.
24817 (mp_twolimb_t): New type.
24818 (GMP_TWOLIMB_BITS): New macro.
24820 (multiply, divide, convert_to_decimal, decode_long_double,
24821 scale10_round_long_double, scale10_round_decimal_long_double,
24822 floorlog10l): New functions.
24823 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
24824 for the %f, %F, %e, %E, %g, %G directives.
24825 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
24826 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24827 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
24828 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
24829 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
24830 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
24831 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
24832 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
24833 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
24834 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
24835 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
24836 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
24837 * modules/snprintf-posix (Depends-on): Likewise.
24838 * modules/sprintf-posix (Depends-on): Likewise.
24839 * modules/vasnprintf-posix (Depends-on): Likewise.
24840 * modules/vasprintf-posix (Depends-on): Likewise.
24841 * modules/vfprintf-posix (Depends-on): Likewise.
24842 * modules/vsnprintf-posix (Depends-on): Likewise.
24843 * modules/vsprintf-posix (Depends-on): Likewise.
24844 * modules/vasnprintf (Files): Add lib/float+.h.
24845 * doc/functions/fprintf.texi: Update.
24846 * doc/functions/printf.texi: Update.
24847 * doc/functions/snprintf.texi: Update.
24848 * doc/functions/sprintf.texi: Update.
24849 * doc/functions/vfprintf.texi: Update.
24850 * doc/functions/vprintf.texi: Update.
24851 * doc/functions/vsnprintf.texi: Update.
24852 * doc/functions/vsprintf.texi: Update.
24854 2007-05-18 Bruno Haible <bruno@clisp.org>
24856 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
24858 2007-05-18 Bruno Haible <bruno@clisp.org>
24860 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
24861 for printing 64-bit integers. Needed for mingw.
24863 2007-05-18 Bruno Haible <bruno@clisp.org>
24865 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
24866 gl_FUNC_FREXPL_WORKS.
24867 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
24869 2007-05-18 Bruno Haible <bruno@clisp.org>
24871 * modules/frexpl-nolibm-tests: New file.
24873 * modules/frexpl-nolibm: New file.
24874 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
24876 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
24878 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
24879 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
24880 GCC 4.2, which otherwise issues a lot of warnings.
24881 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
24882 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
24884 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
24885 * modules/iconv_open (iconv.h): Likewise.
24886 * modules/locale (locale.h): Likewise.
24887 * modules/netinet_in (netinet/in.h): Likewise.
24888 * modules/sys_select (sys_select.h): Likewise.
24889 * modules/sys_socket (sys/socket.h): Likewise.
24890 * modules/sys_stat (sys/stat.h): Likewise.
24891 * modules/sysexits (sysexits.h): Likewise.
24892 * modules/unistd (unistd.h): Likewise.
24894 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24896 * modules/closein-tests (Makefile.am): Distribute
24899 2007-05-17 Bruno Haible <bruno@clisp.org>
24901 * tests/test-printf-posix.output: Renamed from
24902 tests/test-fprintf-posix.out.
24903 * modules/fprintf-posix-tests: Update.
24904 * modules/printf-posix-tests: Update.
24905 * modules/vfprintf-posix-tests: Update.
24906 * modules/vprintf-posix-tests: Update.
24907 * tests/test-fprintf-posix.sh: Update.
24908 * tests/test-printf-posix.sh: Update.
24909 * tests/test-vfprintf-posix.sh: Update.
24910 * tests/test-vprintf-posix.sh: Update.
24911 Reported by Ralf Wildenhues.
24913 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
24915 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
24916 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
24917 GCC 4.2, which otherwise issues a lot of warnings.
24918 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
24919 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
24920 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
24921 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
24922 it should no longer be needed.
24923 * lib/string_.h: Likewise.
24924 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
24925 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
24926 * modules/inttypes (inttypes.h): Likewise.
24927 * modules/math (math.h): Likewise.
24928 * modules/search (search.h): Likewise.
24929 * modules/signal (signal.h): Likewise.
24930 * modules/stdint (stdint.h): Likewise.
24931 * modules/stdio (stdio.h): Likewise.
24932 * modules/stdlib (stdlib.h): Likewise.
24933 * modules/string (string.h): Likewise.
24934 * modules/sys_time (sys/time.h): Likewise.
24935 * modules/time (time.h): Likewise.
24936 * modules/wchar (wchar.h): Likewise.
24937 * modules/wctype (wtype.h): Likewise.
24939 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
24941 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
24943 2007-05-13 Bruno Haible <bruno@clisp.org>
24945 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
24946 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
24947 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
24948 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
24949 (gl_PREREQ_STRTOK_R): Don't require it here.
24951 2007-05-13 Bruno Haible <bruno@clisp.org>
24953 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
24954 when used in C++ mode.
24956 2007-05-12 Bruno Haible <bruno@clisp.org>
24958 * lib/linebuffer.h: Tweak doc.
24959 * lib/linebuffer.c: Likewise.
24961 2007-05-12 James Youngman <jay@gnu.org>
24963 * lib/linebuffer.c (readlinebuffer_delim): New function,
24964 like readlinebuffer, but use a caller-specified delimiter.
24965 (readlinebuffer): Just call readlinebuffer_delim with '\n'
24967 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
24969 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
24971 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
24972 * modules/openat (Files): Remove openat-die.c.
24973 (Depends-on): Add openat-die.
24974 * modules/openat-die: New module.
24976 2007-05-06 Bruno Haible <bruno@clisp.org>
24978 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
24979 Update with info about Cygwin.
24980 * doc/functions/fprintf.texi: Update.
24981 * doc/functions/printf.texi: Update.
24982 * doc/functions/snprintf.texi: Update.
24983 * doc/functions/sprintf.texi: Update.
24984 * doc/functions/vfprintf.texi: Update.
24985 * doc/functions/vprintf.texi: Update.
24986 * doc/functions/vsnprintf.texi: Update.
24987 * doc/functions/vsprintf.texi: Update.
24988 Reported by Eric Blake.
24990 2007-05-06 Bruno Haible <bruno@clisp.org>
24992 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
24993 padding ourselves for the floating-point directives.
24994 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
24995 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
24996 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24997 gl_PRINTF_FLAG_ZERO and test its result. Invoke
24998 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
24999 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25000 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
25001 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25002 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25003 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25004 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25005 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25006 * tests/test-snprintf-posix.h (test_function): Also check the width
25007 and some flags in the %f directive.
25008 * tests/test-sprintf-posix.h (test_function): Likewise.
25009 * tests/test-vasnprintf-posix.c (test_function): Likewise.
25010 * tests/test-vasprintf-posix.c (test_function): Likewise.
25011 * doc/functions/fprintf.texi: Update.
25012 * doc/functions/printf.texi: Update.
25013 * doc/functions/snprintf.texi: Update.
25014 * doc/functions/sprintf.texi: Update.
25015 * doc/functions/vfprintf.texi: Update.
25016 * doc/functions/vprintf.texi: Update.
25017 * doc/functions/vsnprintf.texi: Update.
25018 * doc/functions/vsprintf.texi: Update.
25020 2007-05-06 Bruno Haible <bruno@clisp.org>
25022 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
25023 pass the ' flag character to sprintf or snprintf.
25024 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
25025 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
25026 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25027 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
25028 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
25029 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25030 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
25031 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25032 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25033 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25034 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25035 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25036 * tests/test-snprintf-posix.h (test_function): Also check the grouping
25038 * tests/test-sprintf-posix.h (test_function): Likewise.
25039 * tests/test-vasnprintf-posix.c (test_function): Likewise.
25040 * tests/test-vasprintf-posix.c (test_function): Likewise.
25041 * doc/functions/fprintf.texi: Update.
25042 * doc/functions/printf.texi: Update.
25043 * doc/functions/snprintf.texi: Update.
25044 * doc/functions/sprintf.texi: Update.
25045 * doc/functions/vfprintf.texi: Update.
25046 * doc/functions/vprintf.texi: Update.
25047 * doc/functions/vsnprintf.texi: Update.
25048 * doc/functions/vsprintf.texi: Update.
25050 2007-05-01 Bruno Haible <bruno@clisp.org>
25052 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
25054 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
25056 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
25057 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
25059 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
25061 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
25062 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
25063 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
25065 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
25067 * lib/argp-help.c (struct hol_entry): New member `ord'.
25068 (HOL_ENTRY_PTRCMP): Use ord for comparison
25069 (hol_sort): Initialize ord.
25071 2007-05-01 Bruno Haible <bruno@clisp.org>
25073 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
25074 Reported by Eric Blake.
25075 * doc/gnulib.texi (Function Substitutes): Update.
25077 2007-05-01 Bruno Haible <bruno@clisp.org>
25079 * doc/functions.texi: Remove file, now redundant through
25080 doc/functions/*.texi.
25082 2007-05-01 Bruno Haible <bruno@clisp.org>
25084 * modules/argp (Depends-on): Add sleep.
25086 2007-05-01 Bruno Haible <bruno@clisp.org>
25088 * modules/sleep-tests: New file.
25089 * tests/test-sleep.c: New file.
25091 * modules/sleep: New file.
25092 * lib/sleep.c: New file.
25093 * m4/sleep.m4: New file.
25094 * lib/unistd_.h (sleep): New declaration.
25095 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
25097 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
25098 * doc/functions/sleep.texi: Document the sleep module.
25100 2007-05-01 Bruno Haible <bruno@clisp.org>
25102 * lib/sigprocmask.h: Remove file.
25103 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
25104 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
25105 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
25106 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
25107 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
25108 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
25109 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
25110 HAVE_SIGSET_T as a shell variable.
25111 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
25112 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
25113 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
25114 (Depends-on): Add signal. Remove verify.
25115 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
25116 (Include): Mention <signal.h> instead of sigprocmask.h.
25117 * NEWS: Mention the change.
25118 * lib/fatal-signal.c: Don't include sigprocmask.h.
25120 2007-05-01 Bruno Haible <bruno@clisp.org>
25122 * modules/signal: New file.
25123 * lib/signal_.h: New file.
25124 * m4/signal_h.m4: New file.
25126 2007-05-01 Bruno Haible <bruno@clisp.org>
25128 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
25129 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
25130 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
25131 HAVE_WCTYPE_CTMP_BUG into wctype.h.
25133 2007-05-01 Bruno Haible <bruno@clisp.org>
25135 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
25137 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
25138 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
25139 * modules/sys_stat (Makefile.am): Substitute their values into
25142 2007-05-01 Bruno Haible <bruno@clisp.org>
25144 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
25145 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
25146 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
25148 2007-05-01 Bruno Haible <bruno@clisp.org>
25150 * doc/header/assert.texi: Undo last change: don't mention the gnulib
25151 'assert' module here.
25153 2007-05-01 Bruno Haible <bruno@clisp.org>
25155 * doc/functions/*.texi: New files.
25156 * doc/functions/google-ranking.txt: New file.
25157 * doc/gnulib.texi (Function Substitutes): New chapter.
25158 (ctime, inet_ntoa): Remove sections.
25159 * doc/ctime.texi: Remove file.
25160 * doc/inet_ntoa.texi: Remove file.
25161 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
25163 (%.info): New rule, specifying a --reference-limit.
25165 2007-05-01 Bruno Haible <bruno@clisp.org>
25167 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
25169 2007-05-01 Bruno Haible <bruno@clisp.org>
25171 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
25172 the portability of 'mkdir' to mingw systems.
25174 2007-05-01 Bruno Haible <bruno@clisp.org>
25176 * doc/headers/google-ranking.txt: New file.
25178 2007-04-30 Eric Blake <ebb9@byu.net>
25180 Prefer fseeko to fseek.
25181 * modules/getpass (Depends-on): Add fseeko.
25182 * lib/getpass.c (getpass): Use fseeko, not fseek.
25184 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
25186 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
25187 assumes the sorting is stable, while most qsort implementations
25188 are not. Use argument addresses to ensure they never compare as
25191 * tests/test-argp-2.sh (usage-indent test): Fix output
25192 (func_compare): Restore diff options
25193 * tests/test-argp.c: Restore #include "progname.h"
25195 2007-04-29 Bruno Haible <bruno@clisp.org>
25197 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
25198 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25199 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
25200 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25201 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
25202 (configure.ac): Define CHECK_SNPRINTF_POSIX.
25203 (TESTS, check_PROGRAMS): Add test-snprintf.
25204 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
25205 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
25206 (TESTS, check_PROGRAMS): Add test-vsnprintf.
25207 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
25208 assertions that fail on HP-UX, OSF/1, or IRIX.
25209 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
25211 2007-04-29 Bruno Haible <bruno@clisp.org>
25213 * MODULES.html.sh (posix_functions): Remove 'contents'.
25215 2007-04-29 Karl Berry <karl@gnu.org>
25217 * config/srclist.txt (gendocs_template_min): new entry.
25219 2007-04-29 Bruno Haible <bruno@clisp.org>
25221 Work around fpurge bug on BSD systems.
25222 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
25223 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
25224 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
25225 fpurge to rpl_fpurge if the system already has this function.
25226 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
25227 the case where the system already has this function. Correct invariants
25229 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
25232 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
25234 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
25235 proposed by Sven Verdoolaege.
25237 * tests/test-argp.c: Fix option ordering. Test deeply clustered
25239 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
25240 (usage and help tests): Update
25242 2007-04-29 Bruno Haible <bruno@clisp.org>
25244 * tests/test-fflush.c (main): Use a file of size 17, not 10.
25245 Print more information in case of failure. Disable a test on BeOS.
25247 2007-04-29 Bruno Haible <bruno@clisp.org>
25249 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
25250 This helps debugging on systems on which no gdb is available.
25252 2007-04-29 Bruno Haible <bruno@clisp.org>
25254 * lib/freading.h: Improve comments.
25255 * lib/fwriting.h: Likewise.
25256 * tests/test-freading.c (main): Don't check freading immediately after
25257 repositioning. Needed for glibc.
25259 2007-04-29 Bruno Haible <bruno@clisp.org>
25261 * lib/freading.c (freading): Trivial simplification.
25263 2007-04-28 Bruno Haible <bruno@clisp.org>
25265 * tests/test-fwriting.c (main): Also test the interaction between
25266 fflush and fwriting.
25267 * modules/fwriting-tests (Depends-on): Add fflush.
25269 * tests/test-freading.c (main): Also test the interaction between
25270 fflush and freading.
25271 * modules/freading-tests (Depends-on): Add fflush.
25273 2007-04-28 Bruno Haible <bruno@clisp.org>
25275 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
25277 Suggested by Eric Blake.
25279 2007-04-28 Jim Meyering <jim@meyering.net>
25281 Avoid false-negative in gl_STDINT_H's C99 conformance test.
25282 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
25283 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
25285 2007-04-27 Eric Blake <ebb9@byu.net>
25287 * doc/headers/assert.texi (assert.h): Document assert module use.
25289 2007-04-27 Bruno Haible <bruno@clisp.org>
25291 * doc/headers/*.texi: New files.
25292 * doc/gnulib.texi (Header File Substitutes): New chapter.
25293 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
25295 (standards.info ,standards.html, standards.dvi): Update dependencies.
25296 (mostlyclean, clean): New targets.
25298 2007-04-27 Bruno Haible <bruno@clisp.org>
25300 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
25301 * modules/sysexits (Files, Makefile.am): Update.
25303 * lib/sys_socket_.h: Renamed from lib/socket_.h.
25304 * modules/sys_socket (Files, Makefile.am): Update.
25306 * lib/sys_stat_.h: Renamed from lib/stat_.h.
25307 * modules/sys_stat (Files, Makefile.am): Update.
25309 2007-04-27 Eric Blake <ebb9@byu.net>
25311 * lib/freading.h: Improve comments.
25312 * lib/fwriting.h: Likewise.
25313 * lib/fflush.c: Likewise.
25315 Fix closein for mingw.
25316 * modules/closein-tests: Add tests for closein.
25317 * tests/test-closein.c: New file.
25318 * tests/test-closein.sh: Likewise.
25319 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
25320 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
25322 2007-04-27 Bruno Haible <bruno@clisp.org>
25324 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
25326 * lib/math_.h [__DECC]: Likewise.
25327 * lib/stdio_.h [__DECC]: Likewise.
25328 * lib/stdlib_.h [__DECC]: Likewise.
25329 * lib/string_.h [__DECC]: Likewise.
25330 * lib/time_.h [__DECC]: Likewise.
25331 * lib/wchar_.h [__DECC]: Likewise.
25332 * lib/wctype_.h [__DECC]: Likewise.
25334 2007-04-27 Bruno Haible <bruno@clisp.org>
25336 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
25338 2007-04-27 Bruno Haible <bruno@clisp.org>
25340 * lib/fflush.c: Add comments.
25341 * modules/fpurge-tests (Depends-on): Add fflush.
25342 * modules/freadable-tests (Depends-on): Likewise.
25343 * modules/fwritable-tests (Depends-on): Likewise.
25345 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
25347 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
25348 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
25349 Report by Bruno Haible <bruno@clisp.org>.
25351 2007-04-26 Eric Blake <ebb9@byu.net>
25353 Fix fflush on mingw.
25354 * modules/fflush (Depends-on): Add freading.
25355 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
25358 2007-04-26 Eric Blake <ebb9@byu.net>
25359 and Bruno Haible <bruno@clisp.org>
25361 Implement freading and fwriting.
25362 * lib/freading.c: New file.
25363 * lib/freading.h: Likewise.
25364 * m4/freading.m4: Likewise.
25365 * modules/freading: Likewise.
25366 * modules/freading-tests: Likewise.
25367 * tests/test-freading.c: Likewise.
25368 * lib/fwriting.c: New file.
25369 * lib/fwriting.h: Likewise.
25370 * m4/fwriting.m4: Likewise.
25371 * modules/fwriting: Likewise.
25372 * modules/fwriting-tests: Likewise.
25373 * tests/test-fwriting.c: Likewise.
25374 * MODULES.html.sh (File stream based Input/Output): Mention them.
25376 2007-04-26 Bruno Haible <bruno@clisp.org>
25378 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
25379 'long' when we assume it.
25380 Suggested by Eric Blake.
25382 2007-04-26 Bruno Haible <bruno@clisp.org>
25384 Ensure fseeko, ftello are declared on glibc systems.
25385 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
25386 * modules/fseeko (configure.ac-early): Likewise.
25387 * modules/ftello (configure.ac-early): Likewise.
25388 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
25389 AC_FUNC_FSEEKO for this.
25390 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
25391 (gl_CHECK_FSEEKO): Remove macro.
25393 2007-04-26 Bruno Haible <bruno@clisp.org>
25395 * tests/test-fflush.c (main): Also check the ftell result after
25396 fflush and fseek/fseeko.
25397 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
25398 file descriptor position cache in the stream.
25399 * lib/fseeko.c (rpl_fseeko): Likewise.
25401 2007-04-26 Bruno Haible <bruno@clisp.org>
25403 * modules/fflush-tests (Depends-on): Add fseeko.
25405 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
25406 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25408 * lib/argz_.h: ensure error_t definition is obtained in same
25409 mechanism system argz.h would have.
25410 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
25411 argz facilities are known bad. Err on the side of caution if
25414 2007-04-25 Eric Blake <ebb9@byu.net>
25416 * lib/fpurge.c (includes): Use stdlib.h for free.
25417 * tests/test-fflush.c (main): Also test fflush-fseeko.
25419 2007-04-25 Bruno Haible <bruno@clisp.org>
25421 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
25422 * lib/fseeko.c: New file.
25423 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
25424 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
25425 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
25427 (gl_FUNC_FSEEKO): Invoke it.
25428 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
25429 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
25430 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
25432 2007-04-25 Bruno Haible <bruno@clisp.org>
25434 * modules/fflush (Depends-on): Add ftello.
25436 2007-04-25 Bruno Haible <bruno@clisp.org>
25438 * modules/ftello-tests: New file.
25439 * tests/test-ftello.c: New file.
25441 * modules/ftello: New file.
25442 * m4/ftello.m4: New file.
25443 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
25445 * lib/stdio_.h (ftello): New declaration.
25446 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
25449 2007-04-25 Bruno Haible <bruno@clisp.org>
25451 * modules/fseeko-tests: New file.
25452 * tests/test-fseeko.c: New file.
25454 * modules/fseeko: New file.
25455 * m4/fseeko.m4: New file.
25456 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
25458 * lib/stdio_.h (fseeko): New declaration.
25459 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
25462 2007-04-25 Bruno Haible <bruno@clisp.org>
25464 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
25466 2007-04-25 Bruno Haible <bruno@clisp.org>
25468 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
25469 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
25470 * tests/test-unistd.c: Likewise.
25471 * tests/test-fcntl.c: Likewise.
25473 2007-04-23 Eric Blake <ebb9@byu.net>
25475 * lib/fflush.c: Fix missing include.
25476 Reported by Bruno Haible.
25478 2007-04-23 Bruno Haible <bruno@clisp.org>
25480 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
25481 Reported by Eric Blake.
25483 2007-04-23 Bruno Haible <bruno@clisp.org>
25485 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
25487 2007-04-23 Bruno Haible <bruno@clisp.org>
25489 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
25491 2007-04-23 Bruno Haible <bruno@clisp.org>
25493 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
25494 Needed on HP-UX 11.
25496 2007-04-16 Eric Blake <ebb9@byu.net>
25498 Make fflush rely on fpurge.
25499 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
25500 open coding all variants.
25501 * modules/fflush (Depends-on): Add fpurge and unistd.
25502 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
25503 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
25505 Fix --with-tests compilation on cygwin.
25506 * modules/argmatch-tests (Makefile.am): List gnulib library first
25508 * modules/argp-tests (Makefile.am): Likewise.
25509 * modules/array-list-tests (Makefile.am): Likewise.
25510 * modules/array-oset-tests (Makefile.am): Likewise.
25511 * modules/avltree-list-tests (Makefile.am): Likewise.
25512 * modules/avltree-oset-tests (Makefile.am): Likewise.
25513 * modules/avltreehash-list-tests (Makefile.am): Likewise.
25514 * modules/carray-list-tests (Makefile.am): Likewise.
25515 * modules/dirname-tests (Makefile.am): Likewise.
25516 * modules/frexp-tests (Makefile.am): Likewise.
25517 * modules/isnanl-tests (Makefile.am): Likewise.
25518 * modules/linked-list-tests (Makefile.am): Likewise.
25519 * modules/linkedhash-list-tests (Makefile.am): Likewise.
25520 * modules/lock-tests (Makefile.am): Likewise.
25521 * modules/rbtree-list-tests (Makefile.am): Likewise.
25522 * modules/rbtree-oset-tests (Makefile.am): Likewise.
25523 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
25524 * modules/tls-tests (Makefile.am): Likewise.
25525 * modules/tsearch-tests (Makefile.am): Likewise.
25526 * modules/xvasprintf-tests (Makefile.am): Likewise.
25528 Fix fpurge for cygwin.
25529 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
25531 * modules/fpurge-tests (Depends-on): Clean up trash.
25533 2007-04-16 Simon Josefsson <simon@josefsson.org>
25535 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
25537 * m4/autobuild.m4: Re-indent.
25539 2007-04-13 Bruno Haible <bruno@clisp.org>
25541 * modules/fpurge-tests: New file.
25542 * tests/test-fpurge.c: New file.
25544 * modules/fpurge: New file.
25545 * lib/fpurge.h: New file.
25546 * lib/fpurge.c: New file.
25547 * m4/fpurge.m4: New file.
25549 2007-04-13 Bruno Haible <bruno@clisp.org>
25551 * modules/fbufmode-tests: New file.
25552 * tests/test-fbufmode.c: New file.
25554 * modules/fbufmode: New file.
25555 * lib/fbufmode.h: New file.
25556 * lib/fbufmode.c: New file.
25557 * m4/fbufmode.m4: New file.
25559 2007-04-13 Bruno Haible <bruno@clisp.org>
25561 * modules/fwritable-tests: New file.
25562 * tests/test-fwritable.c: New file.
25564 * modules/fwritable: New file.
25565 * lib/fwritable.h: New file.
25566 * lib/fwritable.c: New file.
25567 * m4/fwritable.m4: New file.
25569 2007-04-13 Bruno Haible <bruno@clisp.org>
25571 * modules/freadable-tests: New file.
25572 * tests/test-freadable.c: New file.
25574 * modules/freadable: New file.
25575 * lib/freadable.h: New file.
25576 * lib/freadable.c: New file.
25577 * m4/freadable.m4: New file.
25579 2007-04-13 Bruno Haible <bruno@clisp.org>
25581 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
25584 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
25586 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
25587 gzip bootstrap.conf to avoid dragging in i18n machinery.
25588 (gnulib_tool_option): Use it.
25590 2007-04-13 Bruno Haible <bruno@clisp.org>
25592 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
25594 * tests/test-vasprintf-posix.c (test_function): Likewise.
25595 * tests/test-snprintf-posix.h (test_function): Likewise.
25596 * tests/test-sprintf-posix.h (test_function): Likewise.
25597 * tests/test-fprintf-posix.h (test_function): Likewise.
25598 * tests/test-printf-posix.h (test_function): Likewise.
25599 * tests/test-fprintf-posix.out: Likewise.
25601 2007-04-13 Bruno Haible <bruno@clisp.org>
25603 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
25604 * modules/tls-tests (configure.ac): Likewise.
25605 Reported by Arto C. Nirkko <anirkko@insel.ch>.
25607 2007-04-13 Bruno Haible <bruno@clisp.org>
25609 * lib/tls.c (glthread_tls_get): Fix return type.
25610 Patch by Arto C. Nirkko <anirkko@insel.ch>.
25612 2007-04-12 Eric Blake <ebb9@byu.net>
25614 * modules/gettime (Depends-on): Remove gettime.
25615 Reported by Dmitry V. Levin.
25617 2007-04-12 Bruno Haible <bruno@clisp.org>
25619 * modules/fflush (Include): Mention <stdio.h>.
25620 * modules/strtoimax (Include): Mention <inttypes.h>.
25621 * modules/strtoumax (Include): Likewise.
25623 2007-04-12 Eric Blake <ebb9@byu.net>
25625 * .cvsignore: New file.
25626 * .gitignore: Likewise.
25628 2007-04-12 Bruno Haible <bruno@clisp.org>
25630 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
25631 not before, since $(LDADD) often contains libgnu.a.
25632 * modules/striconv-tests (test_striconv_LDADD): Likewise.
25633 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
25634 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
25637 2007-04-12 Eric Blake <ebb9@byu.net>
25639 Work around glibc's failure to flush stdin on fclose.
25640 * lib/closein.c (close_stdin): Flush stdin before closing.
25642 Work around glibc's failure to reset seekable stdin on exit.
25643 * modules/closein: New module.
25644 * lib/closein.c: New file.
25645 * lib/closein.h: Likewise.
25646 * m4/closein.m4: Likewise.
25647 * MODULES.html.sh (File stream based Input/Output): Document it.
25649 2007-04-12 Simon Josefsson <simon@josefsson.org>
25651 * gnulib-tool: Rename generated 'autobuild' script to
25652 'do-autobuild' in --create-megatestdir output.
25654 * doc/gnulib.texi (Build robot for gnulib): Fix.
25656 2007-04-12 Simon Josefsson <simon@josefsson.org>
25658 * modules/sysexits (Depends-on): Add absolute-header.
25660 2007-04-12 Eric Blake <ebb9@byu.net>
25662 No need to preserve errno on success.
25663 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
25664 Reported by Bruno Haible.
25666 2007-04-12 Simon Josefsson <simon@josefsson.org>
25668 * MODULES.html.sh (Support for maintaining and releasing
25669 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
25671 2007-04-12 Simon Josefsson <simon@josefsson.org>
25673 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
25675 2007-04-12 Simon Josefsson <simon@josefsson.org>
25677 * modules/autobuild: New module.
25679 * m4/autobuild.m4: New file.
25681 2007-04-11 Bruno Haible <bruno@clisp.org>
25683 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
25684 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
25685 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
25686 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
25687 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25688 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25689 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25690 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25691 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25692 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25693 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
25694 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25695 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25696 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
25697 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25698 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25699 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
25700 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25701 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25702 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
25703 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25704 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25705 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
25706 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25707 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25708 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
25709 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
25710 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
25711 Reported by Eric Blake.
25713 2007-04-11 Bruno Haible <bruno@clisp.org>
25715 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
25717 2007-04-10 Bruno Haible <bruno@clisp.org>
25719 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
25720 for NaN and Infinity. Needed on FreeBSD 6.1.
25721 * tests/test-vasnprintf-posix.c (test_function): Undo last change
25722 regarding results for "%010a" of Infinity and NaN.
25723 * tests/test-vasprintf-posix.c (test_function): Likewise.
25724 * tests/test-snprintf-posix.h (test_function): Likewise.
25725 * tests/test-sprintf-posix.h (test_function): Likewise.
25726 * tests/test-fprintf-posix.h (test_function): Likewise.
25727 * tests/test-printf-posix.h (test_function): Likewise.
25728 * tests/test-fprintf-posix.out: Likewise.
25730 2007-04-10 Bruno Haible <bruno@clisp.org>
25732 * modules/locale-tests: New file.
25733 * tests/test-locale.c: New file.
25735 * modules/locale: New file.
25736 * lib/locale_.h: New file.
25737 * m4/locale_h.m4: New file.
25739 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
25740 Bruno Haible <bruno@clisp.org>
25742 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
25743 be determined, test for availability of the copysignf, copysign,
25744 copysignl functions.
25745 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
25746 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
25747 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
25749 2007-04-09 Eric Blake <ebb9@byu.net>
25751 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
25752 * modules/stdio (Makefile.am): Support fflush.
25753 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
25754 * modules/fflush: New file.
25755 * lib/fflush.c: Likewise.
25756 * m4/fflush.m4: Likewise.
25757 * modules/fflush-tests: New test.
25758 * tests/test-fflush.c: Likewise.
25759 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
25761 2007-04-06 Bruno Haible <bruno@clisp.org>
25763 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
25764 (VASNPRINTF): Use signbit for faster determination whether to print a
25766 * modules/vasnprintf (Files): Remove lib/float+.h.
25767 * modules/fprintf-posix (Depends-on): Add signbit.
25768 * modules/snprintf-posix (Depends-on): Likewise.
25769 * modules/sprintf-posix (Depends-on): Likewise.
25770 * modules/vasnprintf-posix (Depends-on): Likewise.
25771 * modules/vasprintf-posix (Depends-on): Likewise.
25772 * modules/vfprintf-posix (Depends-on): Likewise.
25773 * modules/vsnprintf-posix (Depends-on): Likewise.
25774 * modules/vsprintf-posix (Depends-on): Likewise.
25776 2007-04-06 Bruno Haible <bruno@clisp.org>
25778 * tests/test-frexp.c (main): Test also the sign bit of zero results.
25779 * tests/test-frexpl.c (main): Likewise.
25780 * tests/test-ldexpl.c (main): Likewise.
25781 * modules/frexp-tests (Depends-on): Add signbit.
25782 * modules/frexpl-tests (Depdends-on): Likewise.
25783 * modules/ldexpl-tests (Depdends-on): Likewise.
25785 2007-04-06 Bruno Haible <bruno@clisp.org>
25787 * modules/signbit-tests: New file.
25788 * tests/test-signbit.c: New file.
25790 * modules/signbit: New file.
25791 * lib/signbitf.c: New file.
25792 * lib/signbitd.c: New file.
25793 * lib/signbitl.c: New file.
25794 * m4/signbit.m4: New file.
25795 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
25796 (signbit): New macro.
25797 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
25799 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
25800 REPLACE_FREXPL into math.h.
25802 2007-04-06 Bruno Haible <bruno@clisp.org>
25804 * modules/isnanf-nolibm-tests: New file.
25805 * tests/test-isnanf.c: New file.
25807 * modules/isnanf-nolibm: New file.
25808 * lib/isnanf.h: New file.
25809 * lib/isnanf.c: New file.
25810 * lib/isnan.c: Consider the USE_FLOAT macro.
25811 * m4/isnanf.m4: New file.
25813 2007-04-06 Bruno Haible <bruno@clisp.org>
25815 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
25816 (Link): New section.
25818 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
25820 2007-04-06 Bruno Haible <bruno@clisp.org>
25822 Assume the 'long double' type.
25823 * m4/longdouble.m4: Remove file.
25824 * config/srclist.txt: Don't mention longdouble.m4.
25825 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
25826 * lib/float+.h: Likewise.
25827 * lib/frexp.c: Likewise.
25828 * lib/printf-args.h: Likewise.
25829 * lib/printf-args.c: Likewise.
25830 * lib/printf-frexp.c: Likewise.
25831 * lib/printf-parse.c: Likewise.
25832 * lib/vasnprintf.c: Likewise.
25833 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
25834 * m4/intl.m4: Likewise.
25835 * m4/isnanl.m4: Likewise.
25836 * m4/printf.m4: Likewise.
25837 * m4/printf-frexpl.m4: Likewise.
25838 * m4/vasnprintf.m4: Likewise.
25839 * modules/allocsa (Files): Remove m4/longdouble.m4.
25840 * modules/gettext (Files): Likewise.
25841 * modules/relocatable-prog-wrapper (Files): Likewise.
25842 * modules/vasnprintf (Files): Likewise.
25843 * modules/isnanl (Files): Likewise.
25844 (Include): Simplify.
25845 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
25846 (Include): Simplify.
25847 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
25848 (Include): Simplify.
25849 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
25850 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25851 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
25852 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25853 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
25854 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25855 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
25856 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25857 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
25858 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25859 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
25860 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
25861 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
25862 * tests/test-isnanl.c: Likewise.
25863 * tests/test-snprintf-posix.h: Likewise.
25864 * tests/test-sprintf-posix.h: Likewise.
25865 * tests/test-vasnprintf-posix.c: Likewise.
25866 * tests/test-vasnprintf-posix2.c: Likewise.
25867 * tests/test-vasprintf-posix.c: Likewise.
25869 2007-04-06 Bruno Haible <bruno@clisp.org>
25871 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
25872 * lib/math_.h [__DECC]: Include the overridden include file through
25873 #include_next, outside the double-inclusion guard.
25874 * lib/stdio_.h [__DECC]: Likewise.
25875 * lib/stdlib_.h [__DECC]: Likewise.
25876 * lib/string_.h [__DECC]: Likewise.
25877 * lib/time_.h [__DECC]: Likewise.
25878 * lib/wchar_.h [__DECC]: Likewise.
25879 * lib/wctype_.h [__DECC]: Likewise.
25880 * lib/inttypes_.h [__DECC]: Likewise.
25881 Reported by Albert Chin <china@thewrittenword.com> in
25882 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
25884 2007-04-04 Eric Blake <ebb9@byu.net>
25886 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
25889 2007-04-04 Bruno Haible <bruno@clisp.org>
25891 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
25892 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
25894 2007-04-04 Bruno Haible <bruno@clisp.org>
25896 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
25897 results for "%010a" of Infinity and NaN.
25898 * tests/test-vasprintf-posix.c (test_function): Likewise.
25899 * tests/test-snprintf-posix.h (test_function): Likewise.
25900 * tests/test-sprintf-posix.h (test_function): Likewise.
25901 * tests/test-fprintf-posix.h (test_function): Remove these tests.
25902 * tests/test-printf-posix.h (test_function): Likewise.
25903 * tests/test-fprintf-posix.out: Update.
25904 Needed for FreeBSD 6.1.
25906 2007-04-04 Bruno Haible <bruno@clisp.org>
25908 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
25909 directly used by the gnulib modules nor by gnulib-tool.
25911 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
25913 * DEPENDENCIES: Give overall description of version dependency
25914 desirability. Use more-typical names for apps.
25915 Add shell, coreutils, diffutils, grep, tar, gzip.
25917 2007-04-04 Simon Josefsson <simon@josefsson.org>
25919 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
25921 2007-04-04 Karl Berry <karl@gnu.org>
25923 * MODULES.html.sh (func_module): missing '.
25925 2007-04-03 Bruno Haible <bruno@clisp.org>
25927 * modules/argmatch-tests (Makefile.am): New variable
25928 test_argmatch_LDADD.
25929 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
25930 * modules/array-list-tests (Makefile.am): New variable
25931 test_array_list_LDADD.
25932 * modules/array-oset-tests (Makefile.am): New variable
25933 test_array_oset_LDADD.
25934 * modules/avltree-list-tests (Makefile.am): New variable
25935 test_avltree_list_LDADD.
25936 * modules/avltree-oset-tests (Makefile.am): New variable
25937 test_avltree_oset_LDADD.
25938 * modules/avltreehash-list-tests (Makefile.am): New variable
25939 test_avltreehash_list_LDADD.
25940 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
25941 test_canonicalize_lgpl_LDADD.
25942 * modules/carray-list-tests (Makefile.am): New variable
25943 test_carray_list_LDADD.
25944 * modules/dirname-tests (Makefile.am): New variable
25945 test_dirname_LDADD.
25946 * modules/linked-list-tests (Makefile.am): New variable
25947 test_linked_list_LDADD.
25948 * modules/linkedhash-list-tests (Makefile.am): New variable
25949 test_linkedhash_list_LDADD.
25950 * modules/rbtree-list-tests (Makefile.am): New variable
25951 test_rbtree_list_LDADD.
25952 * modules/rbtree-oset-tests (Makefile.am): New variable
25953 test_rbtree_oset_LDADD.
25954 * modules/rbtreehash-list-tests (Makefile.am): New variable
25955 test_rbtreehash_list_LDADD.
25956 * modules/xvasprintf-tests (Makefile.am): New variable
25957 test_xvasprintf_LDADD.
25958 Reported by Eric Blake.
25960 2007-04-03 Eric Blake <ebb9@byu.net>
25962 * DEPENDENCIES: Weaken m4 requirements.
25964 2007-04-03 Bruno Haible <bruno@clisp.org>
25966 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
25967 * modules/isnanl-tests (configure.ac): Likewise.
25969 2007-04-03 Ben Pfaff <blp@gnu.org>
25971 * modules/iconv_open: Add $(srcdir)/ to source directory
25972 references in Makefile fragments that call gperf, to fix VPATH
25975 2007-04-03 Bruno Haible <bruno@clisp.org>
25977 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
25978 * lib/ldexpl.c: Undo last change.
25980 2007-04-03 Bruno Haible <bruno@clisp.org>
25982 * modules/printf-frexpl (Depends-on): Undo last change.
25983 (Files): Add m4/ldexpl.m4.
25985 2007-04-03 Bruno Haible <bruno@clisp.org>
25987 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
25988 * modules/isnanl (Link): New section.
25990 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
25991 * modules/frexp (Link): New section.
25993 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
25994 * modules/frexpl (Link): New section.
25996 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
25997 * modules/ldexpl (Link): New section.
25999 2007-04-03 Bruno Haible <bruno@clisp.org>
26001 * modules/TEMPLATE-EXTENDED: New file.
26002 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
26004 2007-04-03 Bruno Haible <bruno@clisp.org>
26006 * DEPENDENCIES: New file.
26007 Suggested by Simon Josefsson.
26009 2007-04-03 Bruno Haible <bruno@clisp.org>
26011 * doc/gnulib.texi: Escape @.
26013 2007-04-03 James Youngman <jay@gnu.org>
26014 and Paul Eggert <eggert@cs.ucla.edu>
26016 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
26017 birthtime on all systems that have birthtime, not just those which
26018 use st_birthtimensec rather than st_birthtim. Putting zero in
26019 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
26020 that the birth time is not available for files on an NFS mount.
26022 2007-04-03 Simon Josefsson <simon@josefsson.org>
26024 * modules/memxor: Move back from crypto/, suggested by Bruno.
26025 * modules/crypto/hmac-sha1: Fix memxor dependency.
26027 * modules/crypto/gc: Moved from ../.
26029 2007-04-02 Eric Blake <ebb9@byu.net>
26031 * lib/ldexpl.c (includes): Avoid libm.
26033 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
26035 2007-04-02 Bruno Haible <bruno@clisp.org>
26037 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
26040 2007-04-02 Bruno Haible <bruno@clisp.org>
26042 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
26043 x86 or x86_64 platforms running MacOS X.
26044 Reported by Ryan Schmidt <@ryandesign.com>.
26046 2007-04-02 Bruno Haible <bruno@clisp.org>
26048 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
26051 2007-04-01 Simon Josefsson <simon@josefsson.org>
26053 * modules/crypto/arcfour: Moved from ../.
26054 * modules/crypto/arcfour-tests: Moved from ../.
26055 * modules/crypto/arctwo: Moved from ../.
26056 * modules/crypto/arctwo-tests: Moved from ../.
26057 * modules/crypto/des: Moved from ../.
26058 * modules/crypto/des-tests: Moved from ../.
26059 * modules/crypto/gc-arcfour: Moved from ../.
26060 * modules/crypto/gc-arcfour-tests: Moved from ../.
26061 * modules/crypto/gc-arctwo: Moved from ../.
26062 * modules/crypto/gc-arctwo-tests: Moved from ../.
26063 * modules/crypto/gc-des: Moved from ../.
26064 * modules/crypto/gc-des-tests: Moved from ../.
26065 * modules/crypto/gc-hmac-md5: Moved from ../.
26066 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
26067 * modules/crypto/gc-hmac-sha1: Moved from ../.
26068 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
26069 * modules/crypto/gc-md2: Moved from ../.
26070 * modules/crypto/gc-md2-tests: Moved from ../.
26071 * modules/crypto/gc-md4: Moved from ../.
26072 * modules/crypto/gc-md4-tests: Moved from ../.
26073 * modules/crypto/gc-md5: Moved from ../.
26074 * modules/crypto/gc-md5-tests: Moved from ../.
26075 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
26076 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
26077 * modules/crypto/gc-random: Moved from ../.
26078 * modules/crypto/gc-rijndael: Moved from ../.
26079 * modules/crypto/gc-rijndael-tests: Moved from ../.
26080 * modules/crypto/gc-sha1: Moved from ../.
26081 * modules/crypto/gc-sha1-tests: Moved from ../.
26082 * modules/crypto/gc-tests: Moved from ../.
26083 * modules/crypto/hmac-md5: Moved from ../.
26084 * modules/crypto/hmac-md5-tests: Moved from ../.
26085 * modules/crypto/hmac-sha1: Moved from ../.
26086 * modules/crypto/hmac-sha1-tests: Moved from ../.
26087 * modules/crypto/md2: Moved from ../.
26088 * modules/crypto/md2-tests: Moved from ../.
26089 * modules/crypto/md4: Moved from ../.
26090 * modules/crypto/md4-tests: Moved from ../.
26091 * modules/crypto/md5: Moved from ../.
26092 * modules/crypto/md5-tests: Moved from ../.
26093 * modules/crypto/memxor: Moved from ../.
26094 * modules/crypto/rijndael: Moved from ../.
26095 * modules/crypto/rijndael-tests: Moved from ../.
26096 * modules/crypto/sha1: Moved from ../.
26098 2007-03-30 James Youngman <jay@gnu.org>
26100 * tests/test-stat-time.c (prepare_test): use chmod() rather than
26101 rename() to change the ctime of a file (because ctime is unaffected
26102 by rename on jfs2 on AIX 5.1).
26103 (main): Start by doing cleanup, in case a previous run failed leaving
26106 2007-03-31 Bruno Haible <bruno@clisp.org>
26108 Support old proprietary implementations of iconv.
26109 * modules/iconv_open: New file.
26110 * lib/iconv_.h: New file.
26111 * m4/iconv_h.m4: New file.
26112 * lib/iconv_open.c: New file.
26113 * lib/iconv_open-aix.gperf: New file.
26114 * lib/iconv_open-hpux.gperf: New file.
26115 * lib/iconv_open-irix.gperf: New file.
26116 * lib/iconv_open-osf.gperf: New file.
26117 * m4/iconv_open.m4: New file.
26118 * modules/linebreak (Depends-on): Add iconv_open.
26119 * modules/striconv (Depends-on): Likewise.
26120 * modules/striconveh (Depends-on): Likewise.
26121 * modules/unicodeio (Depends-on): Likewise.
26122 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
26124 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
26125 conversion if cd is (iconv_t)(-1).
26126 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
26129 2007-03-31 Bruno Haible <bruno@clisp.org>
26131 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
26132 work on Solaris either. Protect also second use of "autodetect_jp".
26134 2007-03-31 Bruno Haible <bruno@clisp.org>
26136 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
26137 the function is not present.
26139 2007-03-31 Bruno Haible <bruno@clisp.org>
26141 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
26142 the function is not present.
26144 2007-03-31 Bruno Haible <bruno@clisp.org>
26146 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
26147 a bug in HP-UX iconv_open().
26149 2007-03-31 Bruno Haible <bruno@clisp.org>
26151 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
26152 (Mathematics <math.h>): New section, add fpieee.
26153 (Input/output <stdio.h>): Add fseterr.
26154 (Mathematics <math.h>): New section, add printf-frexp.
26155 (Container data structures): Add sublist.
26156 (Core language properties): Add fpucw, inline.
26157 (Functions for greatest-width integer types <inttypes.h>): Add
26158 imaxabs, imaxdiv, inttypes.
26159 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
26160 isnanl-nolibm, ldexp.
26161 (Mathematics <math.h>): New section, add printf-frexpl.
26162 (Support for systems lacking POSIX:2001): Add fprintf-posix,
26163 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
26164 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
26165 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
26166 (Unicode string functions): Add unistr/u*-mbtoucr.
26167 (Java): Add javacomp-script, javaexec-script.
26168 (C#): Add csharpcomp-script, csharpexec-script.
26169 (Support for building libraries and executables): Add havelib,
26171 (Support for maintaining and releasing projects): Renamed from
26172 'Support for maintaining and release projects'. Add announce-gen.
26174 2007-03-31 Bruno Haible <bruno@clisp.org>
26176 * README: Talk primarily about git.
26177 (git and CVS): Renamed from CVS.
26178 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
26179 gnulib is available through git.
26180 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
26182 2007-03-30 Bruno Haible <bruno@clisp.org>
26184 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
26185 * lib/poll_.h: Likewise.
26186 * lib/stat_.h: Likewise.
26187 * lib/sys_time_.h: Likewise.
26188 * lib/sysexit_.h: Likewise.
26189 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
26190 * lib/stdbool_.h: Likewise.
26191 * lib/byteswap_.h: Add double-inclusion guard.
26193 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
26195 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
26197 2007-03-30 Karl Berry <karl@gnu.org>
26199 * config/srclist-update: double space after USA in the license
26200 substitution, since that's how it's usually (?) written.
26202 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
26204 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
26205 reported by Bruno Haible.
26207 2007-03-29 Bruno Haible <bruno@clisp.org>
26209 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
26210 a bug in AIX iconv().
26212 2007-03-29 Bruno Haible <bruno@clisp.org>
26214 * modules/ldexpl-tests: New file.
26215 * tests/test-ldexpl.c: New file.
26217 2007-03-29 Bruno Haible <bruno@clisp.org>
26219 * lib/ldexpl.c: Include fpucw.h.
26220 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
26222 * modules/ldexpl (Depends-on): Add fpucw.
26224 2007-03-29 Bruno Haible <bruno@clisp.org>
26226 * modules/ldexpl: New file.
26227 * m4/ldexpl.m4: New file.
26228 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
26230 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
26232 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
26234 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
26235 gl_FUNC_LDEXPL_WORKS.
26236 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
26237 * modules/mathl (Files): Remove lib/ldexpl.c.
26238 (Depends-on): Add ldexpl.
26240 2007-03-29 Bruno Haible <bruno@clisp.org>
26242 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
26244 2007-03-29 Bruno Haible <bruno@clisp.org>
26246 * tests/test-striconveh.c (main): Don't assume that a direct conversion
26247 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
26248 and possibly also HP-UX.
26249 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
26250 work on AIX, IRIX, HP-UX, OSF/1.
26251 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
26252 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
26253 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
26254 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
26255 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
26256 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
26258 2007-03-29 Bruno Haible <bruno@clisp.org>
26260 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
26262 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
26264 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
26265 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
26267 2007-03-29 Eric Blake <ebb9@byu.net>
26269 * lib/acl-internal.h: Remove redundant include.
26270 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
26271 Cygwin when a file is locked.
26273 2007-03-29 Bruno Haible <bruno@clisp.org>
26275 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
26277 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
26279 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
26281 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
26282 try to remove a parent directory if the child couldn't be removed
26283 (except for the first rmdir, which could fail because the child
26284 doesn't exist). Problem reported by Jeff Blaine in
26285 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
26287 2007-03-28 Bruno Haible <bruno@clisp.org>
26289 * lib/striconveh.c (utf8conv_carefully): New function.
26290 (mem_cd_iconveh_internal): Invoke it.
26292 2007-03-28 Bruno Haible <bruno@clisp.org>
26294 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
26295 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
26297 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
26298 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
26301 2007-03-28 Bruno Haible <bruno@clisp.org>
26303 * modules/unistr/u8-mbtoucr: New file.
26304 * lib/unistr/u8-mbtoucr.c: New file.
26305 * modules/unistr/u16-mbtoucr: New file.
26306 * lib/unistr/u16-mbtoucr.c: New file.
26307 * modules/unistr/u16-mbtoucr: New file.
26308 * lib/unistr/u16-mbtoucr.c: New file.
26309 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
26311 2007-03-27 Simon Josefsson <simon@josefsson.org>
26312 Bruno Haible <bruno@clisp.org>
26314 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
26315 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
26316 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
26318 * m4/stdio_h.m4: Add stubs for vasprintf too.
26320 * modules/stdio: Support vasprintf in sed command.
26322 * modules/vasprintf: Depend on stdio for prototypes. Remove
26323 vasprintf.h. Add stdio module indicator.
26325 * lib/stdio_.h: Declare asprintf and vasprintf, based on
26328 * lib/vasprintf.h: File removed.
26330 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
26331 * lib/vasprintf.c: Ditto.
26332 * lib/xvasprintf.c: Ditto.
26333 * tests/test-vasprintf-posix.c: Ditto.
26334 * tests/test-vasprintf.c: Ditto.
26336 2007-03-27 Bruno Haible <bruno@clisp.org>
26338 Make vasnprintf multithread-safe.
26339 * lib/vasnprintf.c (decimal_point_char): New function.
26340 (VASNPRINTF): Use it.
26341 Suggested by Simon Josefsson.
26343 2007-03-27 Eric Blake <ebb9@byu.net>
26345 Support sub-second birthtime on cygwin.
26346 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
26347 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
26348 (get_stat_birthtime): Also work with st_birthtim.
26350 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
26352 * lib/stat-time.h (USE_BIRTHTIME): Remove.
26353 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
26354 (get_stat_birthtime_ns): Do not try to use "spare" fields.
26355 (get_stat_birthtime_ns): Simplify compile-time tests.
26356 (get_stat_birthtime): Change the API to look like
26357 get_stat_mtime etc., except return a negative tv_nsec on error.
26358 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
26359 Don't check for "spare" fields.
26360 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
26361 or for struct stat.st_birthtime, as these tests aren't used.
26362 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
26364 2007-03-27 Bruno Haible <bruno@clisp.org>
26366 * lib/stat-time.h: Include <sys/stat.h>.
26368 2007-03-27 James Youngman <jay@gnu.org>
26370 * lib/stat-time.h (get_stat_birthtime): New function for
26371 retrieving st_birthtime as provided by UFS2 (hence *BSD).
26372 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
26374 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
26375 * modules/stat-time-test: New file.
26376 * tests/test-stat-time.c: New test, devised by Bruno Haible.
26378 2007-03-26 Bruno Haible <bruno@clisp.org>
26380 Better support of signalling NaNs.
26381 * lib/atanl.c: Include isnanl.h.
26382 (atanl): Perform test for NaN at the beginning of the function and
26383 through a call to isnanl.
26384 * lib/cosl.c: Include isnanl.h.
26385 (cosl): Perform test for NaN at the beginning of the function and
26386 through a call to isnanl.
26387 * lib/ldexpl.c: Include isnanl.h.
26388 (ldexpl): Perform test for NaN through a call to isnanl.
26389 * lib/logl.c: Include isnanl.h.
26390 (logl): Perform test for NaN at the beginning of the function and
26391 through a call to isnanl.
26392 * lib/sinl.c: Include isnanl.h.
26393 (sinl): Perform test for NaN at the beginning of the function and
26394 through a call to isnanl.
26395 * lib/sqrtl.c: Include isnanl.h.
26396 (sqrtl): Perform test for NaN at the beginning of the function and
26397 through a call to isnanl.
26398 * lib/tanl.c: Include isnanl.h.
26399 (tanl): Perform test for NaN at the beginning of the function and
26400 through a call to isnanl.
26401 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
26402 * modules/mathl (Depends-on): Add isnanl.
26404 2007-03-26 Eric Blake <ebb9@byu.net>
26406 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
26407 regression in logic sense of previous patch.
26409 2007-03-26 Bruno Haible <bruno@clisp.org>
26411 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
26412 unportable shell command "if ! ...".
26413 Reported by Ralf Wildenhues.
26415 2007-03-25 Bruno Haible <bruno@clisp.org>
26417 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
26418 <sysexits.h> file, and only add EX_CONFIG.
26419 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
26420 absolute file name and whether it is sufficient. Substitute also
26421 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
26422 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
26423 ABSOLUTE_SYSEXITS_H into sysexits.h.
26425 2007-03-25 Bruno Haible <bruno@clisp.org>
26427 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
26430 2007-03-25 Bruno Haible <bruno@clisp.org>
26432 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
26433 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
26435 2007-03-25 Bruno Haible <bruno@clisp.org>
26437 * lib/vasnprintf.c: Include langinfo.h.
26438 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
26440 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
26441 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
26442 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
26443 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
26444 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
26445 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
26446 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
26447 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
26448 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
26449 Reported by Simon Josefsson.
26451 2007-03-25 Bruno Haible <bruno@clisp.org>
26453 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
26454 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
26455 * modules/vasnprintf (Depends-on): Add stdint.
26457 2007-03-25 Bruno Haible <bruno@clisp.org>
26459 * modules/fpieee: New file.
26460 * m4/fpieee.m4: New file.
26461 * modules/isnan-nolibm (Depends-on): Add fpieee.
26462 * modules/isnanl-nolibm (Depends-on): Add fpieee.
26463 * modules/isnanl (Depends-on): Add fpieee.
26465 2007-03-25 Bruno Haible <bruno@clisp.org>
26467 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
26469 2007-03-25 Bruno Haible <bruno@clisp.org>
26471 Avoid test failures on IRIX 6.5.
26472 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
26474 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
26478 2007-03-25 Bruno Haible <bruno@clisp.org>
26480 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
26481 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
26482 exists but doesn't work.
26483 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
26484 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
26485 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
26486 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
26488 2007-03-25 Bruno Haible <bruno@clisp.org>
26490 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
26491 returns inf. Needed on IRIX 6.5.
26493 2007-03-25 Bruno Haible <bruno@clisp.org>
26495 * tests/test-frexpl.c: Include isnanl-nolibm.h.
26496 (main): Use isnanl instead of x != x idiom.
26497 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
26499 * tests/test-frexp.c: Include isnan.h.
26500 (main): Use isnan instead of x != x idiom.
26501 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
26503 2007-03-25 Bruno Haible <bruno@clisp.org>
26505 * tests/test-frexp.c (NaN): New function/macro.
26506 (main): Use it instead of 0.0 / 0.0.
26507 * tests/test-isnan.c (NaN): New function/macro.
26508 (main): Use it instead of 0.0 / 0.0.
26509 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
26510 (test_function): Use it instead of 0.0 / 0.0.
26511 * tests/test-vasprintf-posix.c (NaN): New function/macro.
26512 (test_function): Use it instead of 0.0 / 0.0.
26513 * tests/test-snprintf-posix.h (NaN): New function/macro.
26514 (test_function): Use it instead of 0.0 / 0.0.
26515 * tests/test-sprintf-posix.h (NaN): New function/macro.
26516 (test_function): Use it instead of 0.0 / 0.0.
26517 * tests/test-fprintf-posix.h (NaN): New function/macro.
26518 (test_function): Use it instead of 0.0 / 0.0.
26519 * tests/test-printf-posix.h (NaN): New function/macro.
26520 (test_function): Use it instead of 0.0 / 0.0.
26522 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
26524 2007-03-25 Bruno Haible <bruno@clisp.org>
26526 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
26528 2007-03-25 Bruno Haible <bruno@clisp.org>
26530 * lib/regexec.c (merge_state_with_log): Make static.
26532 2007-03-25 Bruno Haible <bruno@clisp.org>
26534 * lib/trigl.c (kernel_rem_pio2): Make static.
26536 2007-03-25 Bruno Haible <bruno@clisp.org>
26538 * lib/sincosl.c (sincosl_table): Make static.
26540 2007-03-25 Bruno Haible <bruno@clisp.org>
26542 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
26543 if the compiler does not support C99.
26545 2007-03-25 Bruno Haible <bruno@clisp.org>
26547 * modules/time (Makefile.am): Ensure all rule action lines start with a
26550 2007-03-24 Bruno Haible <bruno@clisp.org>
26552 * modules/tsearch-tests: New file.
26553 * tests/test-tsearch.sh: New file.
26554 * tests/test-tsearch.c: New file, mostly copied from glibc.
26556 * modules/search-tests: New file.
26557 * tests/test-search.c: New file.
26559 * modules/search: New file.
26560 * lib/search_.h: New file, incorporating lib/tsearch.h.
26561 * m4/search_h.m4: New file.
26562 * lib/tsearch.h: Remove file.
26563 * lib/tsearch.c: Include search.h instead of tsearch.h.
26564 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
26566 * modules/tsearch (Files): Remove lib/tsearch.h.
26567 (Depends-on): Add search.
26568 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
26569 (Include): Change tsearch.h into search.h.
26571 2007-03-24 Bruno Haible <bruno@clisp.org>
26573 * modules/fpucw: New file.
26574 * lib/fpucw.h: New file.
26575 * lib/frexp.c: Include fpucw.h.
26576 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
26578 * lib/printf-frexp.c: Include fpucw.h.
26579 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
26581 * lib/vasnprintf.c: Include fpucw.h.
26582 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
26583 'long double' calculations.
26584 * tests/test-frexpl.c: Include fpucw.h.
26585 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
26586 * tests/test-printf-frexpl.c: Include fpucw.h.
26587 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
26588 * modules/frexpl (Depends-on): Add fpucw.
26589 * modules/printf-frexpl (Depends-on): Likewise.
26590 * modules/fprintf-posix (Depends-on): Likewise.
26591 * modules/snprintf-posix (Depends-on): Likewise.
26592 * modules/sprintf-posix (Depends-on): Likewise.
26593 * modules/vasnprintf-posix (Depends-on): Likewise.
26594 * modules/vasprintf-posix (Depends-on): Likewise.
26595 * modules/vfprintf-posix (Depends-on): Likewise.
26596 * modules/vsnprintf-posix (Depends-on): Likewise.
26597 * modules/vsprintf-posix (Depends-on): Likewise.
26598 * modules/frexpl-tests (Depends-on): Likewise.
26599 * modules/printf-frexpl-tests (Depends-on): Likewise.
26601 2007-03-24 Bruno Haible <bruno@clisp.org>
26603 * lib/float+.h: New file.
26604 * lib/isnan.c: Include float+.h.
26606 (FUNC): Compare only SIZE bytes of the value.
26607 * lib/vasnprintf.c: Include float+.h.
26608 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
26609 SIZEOF_LDBL or SIZEOF_DBL bytes.
26610 * modules/isnan-nolibm (Files): Add lib/float+.h.
26611 * modules/isnanl-nolibm (Files): Add lib/float+.h.
26612 * modules/isnanl (Files): Add lib/float+.h.
26613 * modules/vasnprintf (Files): Add lib/float+.h.
26615 2007-03-24 Bruno Haible <bruno@clisp.org>
26617 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
26618 include isnanl-nolibm.h.
26620 2007-03-24 Bruno Haible <bruno@clisp.org>
26622 * tests/test-read-file.c (main): Don't produce spurious output for
26623 expected situations. Make the test fail if it encountered unexpected
26626 2007-03-24 Bruno Haible <bruno@clisp.org>
26628 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
26629 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
26631 2007-03-24 Bruno Haible <bruno@clisp.org>
26633 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
26635 2007-03-24 Bruno Haible <bruno@clisp.org>
26637 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
26638 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
26640 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
26641 * modules/utf8-ucs4: Turn into a symbolic link to module
26644 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
26646 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
26647 unistr/u8-mbtouc-unsafe.
26649 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
26650 * modules/utf16-ucs4: Turn into a symbolic link to module
26653 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
26655 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
26656 unistr/u16-mbtouc-unsafe.
26658 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
26659 * modules/ucs4-utf8: Turn into a symbolic link to module
26662 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
26663 * modules/ucs4-utf16: Turn into a symbolic link to module
26666 2007-03-24 Bruno Haible <bruno@clisp.org>
26668 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
26669 Enable the function only if HAVE_INLINE.
26670 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
26671 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
26672 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
26673 Enable the function only if HAVE_INLINE.
26674 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
26675 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
26676 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
26677 Enable the function only if HAVE_INLINE.
26678 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
26679 Enable the function only if HAVE_INLINE.
26680 * modules/utf8-ucs4: Update.
26681 * modules/utf8-ucs4-unsafe: Update.
26682 * modules/utf16-ucs4: Update.
26683 * modules/utf16-ucs4-unsafe: Update.
26684 * modules/ucs4-utf8: Update.
26685 * modules/ucs4-utf16: Update.
26687 2007-03-24 Bruno Haible <bruno@clisp.org>
26689 * lib/utf8-ucs4.h: Remove file.
26690 * lib/utf8-ucs4-unsafe.h: Remove file.
26691 * lib/utf16-ucs4.h: Remove file.
26692 * lib/utf16-ucs4-unsafe.h: Remove file.
26693 * lib/ucs4-utf8.h: Remove file.
26694 * lib/ucs4-utf16.h: Remove file.
26695 * lib/unistr.h: Include their previous contents.
26696 * m4/utf-ucs4.m4: Remove file.
26697 * m4/ucs4-utf.m4: Remove file.
26698 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
26699 (Depends-on): Add unistr/base.
26700 (configure.ac): Remove gl_UTF_UCS4.
26701 (Makefile.am): Update.
26702 (Include): Change to unistr.h.
26703 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
26704 (Depends-on): Add unistr/base.
26705 (configure.ac): Remove gl_UTF_UCS4.
26706 (Makefile.am): Update.
26707 (Include): Change to unistr.h.
26708 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
26709 (Depends-on): Add unistr/base.
26710 (configure.ac): Remove gl_UTF_UCS4.
26711 (Makefile.am): Update.
26712 (Include): Change to unistr.h.
26713 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
26714 (Depends-on): Add unistr/base.
26715 (configure.ac): Remove gl_UTF_UCS4.
26716 (Makefile.am): Update.
26717 (Include): Change to unistr.h.
26718 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
26719 (Depends-on): Add unistr/base.
26720 (configure.ac): Remove gl_UCS4_UTF.
26721 (Makefile.am): Update.
26722 (Include): Change to unistr.h.
26723 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
26724 (Depends-on): Add unistr/base.
26725 (configure.ac): Remove gl_UCS4_UTF.
26726 (Makefile.am): Update.
26727 (Include): Change to unistr.h.
26728 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
26729 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
26730 utf8-ucs4-unsafe.h.
26731 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
26732 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
26733 utf16-ucs4-unsafe.h.
26734 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
26735 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
26736 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
26737 * lib/unistr/u8-strchr.c: Likewise.
26738 * lib/unistr/u8-strrchr.c: Likewise.
26739 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
26740 * lib/unistr/u16-strchr.c: Likewise.
26741 * lib/unistr/u16-strrchr.c: Likewise.
26742 * lib/striconveh.c: Update.
26743 * lib/linebreak.c: Update.
26745 2007-03-24 Bruno Haible <bruno@clisp.org>
26747 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
26748 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
26750 2007-03-22 Bruno Haible <bruno@clisp.org>
26752 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
26754 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
26756 * MODULES.html.sh (File system functions): New module write-any-file.
26757 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
26758 * m4/write-any-file.m4: New files.
26760 2007-03-23 Eric Blake <ebb9@byu.net>
26762 * gnulib-tool: Rearrange space-tab sequences, since some editors
26765 2007-03-23 Eric Blake <ebb9@byu.net>
26767 * lib/version-etc.c (version_etc_va): Update license wording to
26768 be more concise. Recommended by Richard Stallman.
26770 2007-03-22 Bruno Haible <bruno@clisp.org>
26772 * lib/poll.c (MSG_PEEK): New fallback definition.
26774 2007-03-22 Bruno Haible <bruno@clisp.org>
26776 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
26777 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
26779 Fixes a compilation error on BeOS.
26781 2007-03-22 Bruno Haible <bruno@clisp.org>
26783 * modules/frexpl-tests: New file.
26784 * tests/test-frexpl.c: New file.
26786 * modules/frexpl: New file.
26787 * m4/frexpl.m4: New file.
26788 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
26789 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
26790 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
26791 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
26792 (Depends-on): Add frexpl. Remove isnanl-nolibm.
26793 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
26795 2007-03-22 Bruno Haible <bruno@clisp.org>
26797 * lib/frexpl.c: Share code with lib/frexp.c.
26798 * modules/mathl (Files): Add lib/frexp.c.
26799 (Depends-on): Add isnanl-nolibm.
26801 2007-03-22 Bruno Haible <bruno@clisp.org>
26803 * modules/printf-frexp (Files): Add m4/frexp.m4.
26804 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
26805 only if the found frexp function actually works.
26807 2007-03-22 Bruno Haible <bruno@clisp.org>
26809 * lib/frexp.c: Remove older implementation that uses divisions.
26811 2007-03-21 Bruno Haible <bruno@clisp.org>
26813 * modules/frexp-tests: New file.
26814 * tests/test-frexp.c: New file.
26816 * modules/frexp: New file.
26817 * lib/frexp.c: New file.
26818 * m4/frexp.m4: New file.
26819 * lib/math_.h (frexp): New declaration.
26820 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
26822 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
26824 2007-03-21 Bruno Haible <bruno@clisp.org>
26826 * modules/isnanl-tests: New file.
26827 * tests/test-isnanl.c: New file.
26829 * modules/isnanl: New file.
26830 * lib/isnanl.h: New file.
26831 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
26832 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
26833 gl_FUNC_ISNANL_WORKS.
26834 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
26837 2007-03-21 Bruno Haible <bruno@clisp.org>
26839 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
26842 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
26843 * lib/vasnprintf.c: Update.
26844 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
26845 tests/test-isnanl.h, remove tests/test-isnanl.c.
26846 (Makefile.am): Update.
26847 * tests/test-isnanl-nolibm.c: New file.
26848 * tests/test-isnanl.h: New file.
26849 * tests/test-isnanl.c: Remove file.
26851 2007-03-21 Jim Meyering <jim@meyering.net>
26853 When trying to open ".", treat ESTALE like EACCES.
26854 * lib/savewd.c (savewd_save): Resort to forking not just upon
26855 failure with EACCES, but also when errno is ESTALE.
26857 2007-03-20 Bruno Haible <bruno@clisp.org>
26859 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
26860 Needed on AIX 5.1. Reported by Matthew Woehlke.
26862 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
26864 Suggestions by Bruno Haible:
26865 * lib/acl-internal.h: Include "gettext.h" rather than rolling
26867 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
26868 * modules/acl (Depends-on): Add gettext.
26870 2007-03-19 Bruno Haible <bruno@clisp.org>
26872 * modules/iconvme: Remove file.
26873 * lib/iconvme.h: Remove file.
26874 * lib/iconvme.c: Remove file.
26875 * m4/iconvme.m4: Remove file.
26877 2007-03-19 Bruno Haible <bruno@clisp.org>
26879 * doc/relocatable-maint.texi: Break long shell script line.
26880 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
26882 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
26884 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
26885 handle file_has_acl.
26886 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
26887 * lib/acl.c: Move header inclusions and related macro defns into
26888 lib/acl-internal.h.
26889 (S_ISLNK): Remove defn, since that's now done for us.
26890 (file_has_acl): Move to lib/file-has-acl.c.
26891 Call acl_trivial if available. This is the crucial part of the fix.
26892 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
26893 shared within the library. Rewrite a bit, partly to make it compatible
26894 with the GNU coding style.
26895 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
26896 Remove unnecessary double-quotes.
26897 Don't test for acl_to_text; the build will catch that.
26898 Replace acl_entries if it doesn't exist and it is needed.
26899 Check for -lsec and acl_trivial (as used on Solaris 10).
26900 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
26901 lib/file-has-acl.c.
26902 (Depends-on): Add sys_stat, for S_ISLNK.
26904 2007-03-19 Ben Pfaff <blp@gnu.org>
26906 * doc/gnulib.texi: Fix typos.
26907 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
26909 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
26911 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
26912 If size is zero here, buf must be zero.
26914 2007-03-19 Simon Josefsson <simon@josefsson.org>
26916 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
26919 2007-03-18 Bruno Haible <bruno@clisp.org>
26921 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
26922 Suggested by Eric Blake.
26924 2007-03-18 Ben Pfaff <blp@gnu.org>
26926 * doc/relocatable.texi: Recommend using as prefix a directory
26927 that does not exist and will never be created. Based on
26928 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
26931 2007-03-17 Bruno Haible <bruno@clisp.org>
26933 * lib/fchownat.c: Include lchown.h.
26935 2007-03-17 Bruno Haible <bruno@clisp.org>
26937 Fix endless loop when the given allocated size was > INT_MAX.
26938 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
26939 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
26940 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
26941 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
26942 * lib/sprintf.c (sprintf): Likewise.
26944 2007-03-17 Bruno Haible <bruno@clisp.org>
26946 * tests/test-argp-2.sh (func_compare): Output a context diff.
26948 2007-03-17 Bruno Haible <bruno@clisp.org>
26950 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
26951 locale's decimal-point character.
26953 2007-03-17 Bruno Haible <bruno@clisp.org>
26955 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
26956 before comparing it. Needed because on some platforms (e.g. x86) a
26957 'long double' occupies less bytes than sizeof (long double).
26959 2007-03-17 Bruno Haible <bruno@clisp.org>
26961 * tests/test-crc.c (main): Make printf statements 64-bit clean.
26962 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
26963 * tests/test-getaddrinfo.c (simple): Likewise.
26964 * tests/test-read-file.c (main): Likewise.
26966 2007-03-17 Bruno Haible <bruno@clisp.org>
26968 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
26970 2007-03-17 Bruno Haible <bruno@clisp.org>
26972 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
26975 2007-03-17 Bruno Haible <bruno@clisp.org>
26977 * tests/test-c-strcasecmp.c: Include c-strcase.h.
26978 * tests/test-c-strncasecmp.c: Likewise.
26980 2007-03-17 Bruno Haible <bruno@clisp.org>
26982 * modules/stdlib (Depends-on): Add unistd.
26983 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
26984 Needed for MacOS X 10.3.
26986 2007-03-17 Bruno Haible <bruno@clisp.org>
26988 * lib/unistr/u-strdup.h: Include <stdlib.h>.
26990 2007-03-17 Bruno Haible <bruno@clisp.org>
26992 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
26994 2007-03-17 Bruno Haible <bruno@clisp.org>
26996 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
26997 to reflect files copied from gnulib (with or without modifications).
26998 Suggested by Jim Meyering.
27000 2007-03-17 Eric Blake <ebb9@byu.net>
27002 * NEWS: Document stdlib change from 2007-02-18.
27004 2007-03-17 Jim Meyering <jim@meyering.net>
27006 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
27007 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
27008 someone uses a name containing shell meta-characters.
27009 Reported by Alfred M. Szmidt.
27011 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
27013 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
27015 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
27016 and copy gettext configuration files only if configure.ac contains
27017 a use of AM_GNU_GETTEXT_VERSION.
27019 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
27021 * build-aux/bootstrap (gnulib_name): New variable.
27022 (gnulib_tool_options): Use it.
27024 2007-03-13 Simon Josefsson <simon@josefsson.org>
27026 * tests/test-des.c: Use new namespace.
27028 2007-03-15 Bruno Haible <bruno@clisp.org>
27030 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
27031 Reported by James Youngman <jay@gnu.org>.
27033 2007-03-15 Bruno Haible <bruno@clisp.org>
27035 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
27036 declared prototype. Needed with cc on OSF/1 5.1.
27038 2007-03-15 Bruno Haible <bruno@clisp.org>
27040 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
27041 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
27042 (struct gl_list_implementation): Add dispose_fn argument to the
27043 'create_empty', 'create' methods.
27044 (struct gl_list_impl_base): Add field 'dispose_fn'.
27045 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
27047 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
27048 dispose_fn argument.
27049 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
27050 dispose_fn on the dropped values.
27051 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
27052 dispose_fn argument.
27053 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
27055 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
27056 (gl_tree_remove_node): Call dispose_fn on the dropped value.
27057 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
27058 (gl_tree_remove_node): Call dispose_fn on the dropped value.
27059 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
27061 (gl_tree_list_free): Call dispose_fn on the dropped values.
27062 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
27063 the dropped values.
27064 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
27065 Add dispose_fn argument.
27066 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
27067 Call dispose_fn on the dropped values.
27068 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
27069 Add dispose_fn argument.
27070 (gl_sublist_create): Initialize the 'dispose_fn' field.
27071 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
27072 * tests/test-array_list.c (main): Update.
27073 * tests/test-carray_list.c (main): Update.
27074 * tests/test-avltree_list.c (main): Update.
27075 * tests/test-rbtree_list.c (main): Update.
27076 * tests/test-avltreehash_list.c (main): Update.
27077 * tests/test-rbtreehash_list.c (main): Update.
27078 * tests/test-linked_list.c (main): Update.
27079 * tests/test-linkedhash_list.c (main): Update.
27080 * tests/test-array_oset.c (main): Update.
27082 2007-03-15 Bruno Haible <bruno@clisp.org>
27084 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
27085 (gl_oset_create_empty): Add dispose_fn argument.
27086 (struct gl_oset_implementation): Add dispose_fn argument to
27087 'create_empty' method.
27088 (struct gl_oset_impl_base): Add dispose_fn field.
27089 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
27090 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
27091 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
27093 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
27094 (gl_tree_oset_free): Call dispose_fn on the dropped values.
27095 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
27097 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
27099 * tests/test-array_oset.c (main): Update.
27100 * tests/test-avltree_oset.c (main): Update.
27101 * tests/test-rbtree_oset.c (main): Update.
27102 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
27104 2007-03-13 Bruno Haible <bruno@clisp.org>
27106 * tests/test-stdbool.c (i): Update after last patch.
27108 2007-03-12 Bruno Haible <bruno@clisp.org>
27110 * lib/quotearg.c: Include <wctype.h> early, before the definition of
27111 the iswprint macro. Needed on Solaris 2.5.1.
27113 2007-03-12 Bruno Haible <bruno@clisp.org>
27115 * tests/test-printf-frexp.c (main): Declare x as volatile.
27117 2007-03-12 Simon Josefsson <simon@josefsson.org>
27119 * doc/gnulib.texi (Build robot for gnulib): New section.
27121 2007-03-12 Jim Meyering <jim@meyering.net>
27123 * build-aux/bootstrap: New file.
27124 * build-aux/bootstrap.conf: New file, from coreutils.
27126 2007-03-11 Bruno Haible <bruno@clisp.org>
27128 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
27130 2007-03-12 Simon Josefsson <simon@josefsson.org>
27132 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
27133 avoid collisions with 'des_setkey'. Reported by Bruno Haible
27134 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
27136 2007-03-11 Bruno Haible <bruno@clisp.org>
27138 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
27139 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
27141 2007-03-11 Bruno Haible <bruno@clisp.org>
27143 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
27144 formula. Needed for SunPRO C 5.0.
27146 2007-03-11 Bruno Haible <bruno@clisp.org>
27148 * modules/long-options (Depends-on): Add getopt.
27150 2007-03-11 Bruno Haible <bruno@clisp.org>
27152 * modules/modechange (Depends-on): Add stdbool.
27154 2007-03-11 Bruno Haible <bruno@clisp.org>
27156 * modules/i-ring (Depends-on): Add stdbool.
27158 2007-03-11 Bruno Haible <bruno@clisp.org>
27160 * modules/gc-des (Depends-on): Add stdbool.
27162 2007-03-11 Bruno Haible <bruno@clisp.org>
27164 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
27166 2007-03-11 Bruno Haible <bruno@clisp.org>
27168 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
27170 2007-03-11 Bruno Haible <bruno@clisp.org>
27172 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
27174 2007-03-11 Bruno Haible <bruno@clisp.org>
27176 * lib/vasnprintf.c (sprintf): Undefine.
27178 2007-03-11 Bruno Haible <bruno@clisp.org>
27180 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
27181 initializers in SunPRO C and Compaq C compilers.
27183 2007-03-11 Bruno Haible <bruno@clisp.org>
27185 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
27186 decrementing code ANSI C compliant.
27188 2007-03-11 Bruno Haible <bruno@clisp.org>
27190 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
27191 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
27193 2007-03-11 Bruno Haible <bruno@clisp.org>
27195 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
27196 <stdbool.h> substitute doesn't pass.
27198 2007-03-11 Bruno Haible <bruno@clisp.org>
27200 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
27202 2007-03-11 Bruno Haible <bruno@clisp.org>
27204 * gnulib-tool (func_create_megatestdir): Create also an autobuild
27205 script, for submission to autobuild.josefsson.org.
27207 2007-03-10 Bruno Haible <bruno@clisp.org>
27209 * modules/canonicalize-lgpl-tests: New file.
27210 * tests/test-canonicalize-lgpl.sh: New file.
27211 * tests/test-canonicalize-lgpl.c: New file.
27213 * modules/c-strcase-tests: New file.
27214 * tests/test-c-strcase.sh: New file.
27215 * tests/test-c-strcasecmp.c: New file.
27216 * tests/test-c-strncasecmp.c: New file.
27218 * modules/atexit-tests: New file.
27219 * tests/test-atexit.sh: New file.
27220 * tests/test-atexit.c: New file.
27222 2007-03-10 Bruno Haible <bruno@clisp.org>
27224 * tests/test-binary-io.sh: Use temporary filenames that are not so
27225 likely to clash with those of other tests (in a parallel make).
27226 * tests/test-binary-io.c: Likewise.
27228 2007-03-10 Bruno Haible <bruno@clisp.org>
27230 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
27231 fallback; use #error instead.
27232 Suggested by Simon Josefsson.
27234 2007-03-10 Bruno Haible <bruno@clisp.org>
27236 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
27237 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
27238 first and the last.
27240 2007-03-10 Bruno Haible <bruno@clisp.org>
27242 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
27244 2007-03-10 Bruno Haible <bruno@clisp.org>
27246 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
27248 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
27249 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
27250 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
27252 2007-03-10 Bruno Haible <bruno@clisp.org>
27254 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
27256 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
27259 2007-03-09 Eric Blake <ebb9@byu.net>
27260 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
27262 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
27263 types are not being provided by gnulib.
27264 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
27265 types are supported.
27267 2007-03-10 Bruno Haible <bruno@clisp.org>
27269 * lib/stdio_.h (__attribute__): New macro.
27270 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
27271 vsprintf): Specify __attribute__ __format__ for GCC.
27272 Suggested by Eric Blake.
27274 2007-03-09 Bruno Haible <bruno@clisp.org>
27276 * modules/printf-posix-tests: New file.
27277 * tests/test-printf-posix.sh: New file.
27278 * tests/test-printf-posix.c: New file.
27280 * modules/printf-posix: New file.
27281 * lib/printf.c: New file.
27282 * m4/printf-posix-rpl.m4: New file.
27283 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
27285 * lib/stdio_.h (printf): New declaration.
27286 (format, __format__, ____printf____, ____scanf____, ____strftime____,
27287 ____strfmon____): New macros.
27288 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
27291 2007-03-09 Bruno Haible <bruno@clisp.org>
27293 * tests/test-vasnprintf-posix2.sh: New file.
27294 * tests/test-vasnprintf-posix2.c: New file.
27295 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
27296 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
27297 (Makefile.am): Activate test-vasnprintf-posix2.sh.
27299 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
27300 a locale dependent decimal point, rather than always '.'.
27302 2007-03-09 Eric Blake <ebb9@byu.net>
27304 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
27305 spite of platforms like Tandem/NSK that define it to -1.
27307 2007-03-08 Bruno Haible <bruno@clisp.org>
27309 * modules/vprintf-posix-tests: New file.
27310 * tests/test-vprintf-posix.sh: New file.
27311 * tests/test-vprintf-posix.c: New file.
27312 * tests/test-printf-posix.h: New file.
27314 * modules/vprintf-posix: New file.
27315 * lib/vprintf.c: New file.
27316 * m4/vprintf-posix.m4: New file.
27317 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
27319 * lib/stdio_.h (vprintf): New declaration.
27320 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
27323 2007-03-08 Bruno Haible <bruno@clisp.org>
27325 * modules/fprintf-posix-tests: New file.
27326 * tests/test-fprintf-posix.sh: New file.
27327 * tests/test-fprintf-posix.c: New file.
27329 * modules/fprintf-posix: New file.
27330 * lib/fprintf.c: New file.
27331 * m4/fprintf-posix.m4: New file.
27332 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
27334 * lib/stdio_.h (fprintf): New declaration.
27335 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
27338 2007-03-08 Bruno Haible <bruno@clisp.org>
27340 * modules/vfprintf-posix-tests: New file.
27341 * tests/test-vfprintf-posix.sh: New file.
27342 * tests/test-vfprintf-posix.c: New file.
27343 * tests/test-fprintf-posix.h: New file.
27344 * tests/test-fprintf-posix.out: New file.
27346 * modules/vfprintf-posix: New file.
27347 * lib/vfprintf.c: New file.
27348 * m4/vfprintf-posix.m4: New file.
27349 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
27351 * lib/stdio_.h (vfprintf): New declaration.
27352 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
27355 2007-03-08 Bruno Haible <bruno@clisp.org>
27357 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
27359 2007-03-08 Bruno Haible <bruno@clisp.org>
27361 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
27362 instead of 'expr' invocations.
27363 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27364 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27365 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27366 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27367 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27368 Suggested by Paul Eggert.
27370 2007-03-08 Bruno Haible <bruno@clisp.org>
27372 * modules/fseterr-tests: New file.
27373 * tests/test-fseterr.c: New file.
27375 * modules/fseterr: New file.
27376 * lib/fseterr.h: New file.
27377 * lib/fseterr.c: New file.
27379 2007-03-08 Bruno Haible <bruno@clisp.org>
27381 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
27382 * lib/getopt_.h: Likewise.
27383 * lib/mbswidth.h: Likewise.
27384 * lib/setenv.h: Likewise.
27385 * lib/vasnprintf.h: Likewise.
27386 * lib/vasprintf.h: Likewise.
27387 * lib/verror.h: Likewise.
27388 * lib/xsetenv.h: Likewise.
27389 * lib/xvasprintf.h: Likewise.
27391 2007-03-08 Jim Meyering <jim@meyering.net>
27393 * users.txt: Add parted.
27395 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
27397 2007-03-07 Bruno Haible <bruno@clisp.org>
27399 * m4/printf.m4: Make the shell script snippets copy&pastable.
27401 2007-03-02 Bruno Haible <bruno@clisp.org>
27403 * lib/netinet_in_.h: New file.
27404 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
27405 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
27406 * modules/netinet_in (Files): Add lib/netinet_in_.h.
27407 (Depends-on): Add absolute-header.
27408 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
27411 2007-03-03 Bruno Haible <bruno@clisp.org>
27413 * lib/sys_select_.h: New file.
27414 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
27415 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
27416 * modules/sys_select (Files): Add lib/sys_select_.h.
27417 (Depends-on): Add absolute-header.
27418 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
27421 2007-03-02 Bruno Haible <bruno@clisp.org>
27423 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
27424 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
27426 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
27427 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
27428 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
27429 * modules/sys_socket (Depends-on): Add absolute-header.
27430 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
27431 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
27432 (Include): Remove requirement of inclusion of <sys/types.h>.
27434 2007-03-02 Bruno Haible <bruno@clisp.org>
27436 * lib/byteswap_.h (bswap_32): Fix formula.
27438 2007-03-06 Bruno Haible <bruno@clisp.org>
27440 * modules/sprintf-posix-tests: New file.
27441 * tests/test-sprintf-posix.c: New file.
27443 * modules/sprintf-posix: New file.
27444 * lib/sprintf.c: New file.
27445 * m4/sprintf-posix.m4: New file.
27446 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
27448 * lib/stdio_.h (sprintf): New declaration.
27449 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
27452 2007-03-06 Bruno Haible <bruno@clisp.org>
27454 * modules/vsprintf-posix-tests: New file.
27455 * tests/test-vsprintf-posix.c: New file.
27456 * tests/test-sprintf-posix.h: New file.
27458 * modules/vsprintf-posix: New file.
27459 * lib/vsprintf.c: New file.
27460 * m4/vsprintf-posix.m4: New file.
27461 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
27463 * lib/stdio_.h (vsprintf): New declaration.
27464 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
27467 2007-03-06 Bruno Haible <bruno@clisp.org>
27469 * modules/vsnprintf (Depend-on): Remove minmax.
27471 2007-03-06 Bruno Haible <bruno@clisp.org>
27473 * modules/snprintf-posix-tests: New file.
27474 * tests/test-snprintf-posix.c: New file.
27476 * modules/snprintf-posix: New file.
27477 * m4/snprintf-posix.m4: New file.
27478 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
27480 (gl_FUNC_SNPRINTF): Invoke it.
27481 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
27482 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
27484 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
27486 2007-03-06 Bruno Haible <bruno@clisp.org>
27488 * modules/vsnprintf-posix-tests: New file.
27489 * tests/test-vsnprintf-posix.c: New file.
27490 * tests/test-snprintf-posix.h: New file.
27492 * modules/vsnprintf-posix: New file.
27493 * m4/vsnprintf-posix.m4: New file.
27494 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
27496 (gl_FUNC_VSNPRINTF): Invoke it.
27497 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
27498 * lib/stdio_.h (vsnprintf): Define as a replacement if
27499 REPLACE_VSNPRINTF is set.
27500 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
27502 2007-03-06 Bruno Haible <bruno@clisp.org>
27504 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
27505 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
27507 2007-03-06 Bruno Haible <bruno@clisp.org>
27509 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
27510 (asinl): Declare also if HAVE_DECL_ASINL is set.
27511 (atanl): Declare also if HAVE_DECL_ATANL is set.
27512 (ceill): Declare also if HAVE_DECL_CEILL is set.
27513 (cosl): Declare also if HAVE_DECL_COSL is set.
27514 (expl): Declare also if HAVE_DECL_EXPL is set.
27515 (floorl): Declare also if HAVE_DECL_FLOORL is set.
27516 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
27517 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
27518 (logl): Declare also if HAVE_DECL_LOGL is set.
27519 (sinl): Declare also if HAVE_DECL_SINL is set.
27520 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
27521 (tanl): Declare also if HAVE_DECL_TANL is set.
27522 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
27523 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
27524 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
27525 declaration of frexpl, ldexpl.
27526 * modules/printf-frexpl (Depends-on): Add math.
27527 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
27529 2007-03-05 Bruno Haible <bruno@clisp.org>
27531 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
27532 frexpl and ldexpl are declared.
27533 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
27535 2007-03-05 Bruno Haible <bruno@clisp.org>
27537 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
27538 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
27540 2007-03-05 Bruno Haible <bruno@clisp.org>
27542 * lib/stdio_.h: Include <stddef.h>.
27544 2007-03-05 Bruno Haible <bruno@clisp.org>
27546 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
27548 2007-03-05 Bruno Haible <bruno@clisp.org>
27550 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
27551 NetBSD 4, from Ralf Wildenhues.
27553 2007-03-04 Bruno Haible <bruno@clisp.org>
27555 * lib/vasprintf.h: Update #if logic for the case when the functions
27556 exist but are overridden.
27558 2007-03-04 Bruno Haible <bruno@clisp.org>
27560 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
27561 implementations: glibc-2.4 and MacOS X 10.3.
27562 * tests/test-vasnprintf-posix.c (test_function): Test also the case
27563 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
27564 * tests/test-vasprintf-posix.c (test_function): Likewise.
27566 2007-03-04 Bruno Haible <bruno@clisp.org>
27568 * modules/vasprintf-posix-tests: New file.
27569 * tests/test-vasprintf-posix.c: New file.
27571 * modules/vasprintf-posix: New file.
27572 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
27574 * m4/vasprintf-posix.m4: New file.
27575 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
27577 (gl_FUNC_VASPRINTF): Invoke it.
27578 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
27580 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
27582 2007-03-04 Bruno Haible <bruno@clisp.org>
27584 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
27585 REPLACE_GETTIMEOFDAY.
27586 * modules/sys_time (Makefile.am): Likewise.
27587 * m4/sys_time_h.m4: Likewise.
27588 * m4/gettimeofday.m4: Likewise.
27590 2007-03-04 Bruno Haible <bruno@clisp.org>
27592 * modules/vasnprintf-posix-tests: New file.
27593 * tests/test-vasnprintf-posix.c: New file.
27595 * modules/vasnprintf-posix: New file.
27596 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
27598 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
27599 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
27600 REPLACE_VASNPRINTF is defined.
27601 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
27602 gl_FUNC_VASNPRINTF.
27603 (gl_FUNC_VASNPRINTF): Invoke it.
27604 * m4/vasnprintf-posix.m4: New file.
27605 * m4/printf.m4: New file.
27607 2007-03-04 Bruno Haible <bruno@clisp.org>
27609 Compile progreloc.c only if --enable-relocatable is specified.
27610 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
27611 if --enable-relocatable was specified.
27612 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
27615 2007-03-04 Jim Meyering <jim@meyering.net>
27617 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
27618 Use it consistently, rather than enumerating errno constants.
27620 2007-03-04 Bruno Haible <bruno@clisp.org>
27622 * modules/xvasprintf-tests: New file.
27623 * tests/test-xvasprintf.c: New file.
27625 * modules/vasprintf-tests: New file.
27626 * tests/test-vasprintf.c: New file.
27628 * modules/vasnprintf-tests: New file.
27629 * tests/test-vasnprintf.c: New file.
27631 * modules/vsnprintf-tests: New file.
27632 * tests/test-vsnprintf.c: New file.
27634 * modules/snprintf-tests: New file.
27635 * tests/test-snprintf.c: New file.
27637 2007-03-04 Bruno Haible <bruno@clisp.org>
27639 Compile relocatable.c only if --enable-relocatable is specified.
27640 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
27641 gl_RELOCATABLE_LIBRARY.
27642 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
27643 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
27644 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
27645 gl_RELOCATABLE_LIBRARY.
27646 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
27647 (Makefile.am): Remove lib_SOURCES.
27648 * modules/relocatable-lib-lgpl (configure.ac): Invoke
27649 gl_RELOCATABLE_LIBRARY.
27650 (Makefile.am): Remove lib_SOURCES.
27651 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
27653 * modules/relocatable-prog-wrapper (configure.ac): Invoke
27654 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
27656 2007-03-04 Bruno Haible <bruno@clisp.org>
27658 * modules/argmatch-tests: New file.
27659 * tests/test-argmatch.c: New file.
27661 * tests/test-allocsa.c (main): Halve the number of loop runs.
27663 * modules/alloca-opt-tests: New file.
27664 * tests/test-alloca-opt.c: New file.
27666 2007-03-04 Jim Meyering <jim@meyering.net>
27668 Work around difference between Linux ACLs and Solaris 10 ZFS.
27669 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
27672 2007-03-03 Bruno Haible <bruno@clisp.org>
27674 * modules/relocatable-prog (Depends-on): Add back progreloc's
27675 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
27677 2007-03-03 Bruno Haible <bruno@clisp.org>
27679 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
27680 * modules/relocatable-lib: New file.
27682 2007-03-03 Bruno Haible <bruno@clisp.org>
27684 * modules/relocatable-prog: Renamed from modules/relocatable.
27685 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
27687 2007-03-03 Bruno Haible <bruno@clisp.org>
27689 * modules/relocatable-script (Files): Add doc/relocatable.texi,
27690 m4/relocatable-lib.m4.
27691 (Depends-on): Remove 'relocatable'.
27692 (configure.ac): Add gl_RELOCATABLE_NOP.
27694 2007-03-03 Bruno Haible <bruno@clisp.org>
27696 * modules/relocatable-prog-wrapper: New file.
27697 * modules/relocatable (Depends-on): Add it. Remove all other
27698 dependencies except progname.
27699 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
27701 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
27702 (gl_FUNC_STRERROR): Nop.
27703 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
27705 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
27706 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
27708 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
27709 (gl_FUNC_READLINK): Update.
27711 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
27713 2007-03-03 Bruno Haible <bruno@clisp.org>
27715 * lib/xreadlink.c: Include <unistd.h> unconditionally.
27716 * modules/xreadlink (Depends-on): Add unistd.
27717 * modules/xreadlink-with-size (Depends-on): Likewise.
27719 2007-03-03 Bruno Haible <bruno@clisp.org>
27721 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
27722 extracted from gt_FUNC_SETENV.
27723 (gt_FUNC_SETENV): Remove macro.
27724 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
27725 remove gt_FUNC_SETENV.
27727 2007-03-03 Bruno Haible <bruno@clisp.org>
27729 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
27730 ENABLE_RELOCATABLE here.
27731 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
27733 2007-03-03 Bruno Haible <bruno@clisp.org>
27735 * modules/rbtreehash-list-tests (Depends-on): Add progname.
27736 * tests/test-rbtreehash_list.c: Include progname.h.
27737 (main): Call set_program_name.
27739 * modules/rbtree-oset-tests (Depends-on): Add progname.
27740 * tests/test-rbtree_oset.c: Include progname.h.
27741 (main): Call set_program_name.
27743 * modules/rbtree-list-tests (Depends-on): Add progname.
27744 * tests/test-rbtree_list.c: Include progname.h.
27745 (main): Call set_program_name.
27747 * modules/linked-list-tests (Depends-on): Add progname.
27748 * tests/test-linked_list.c: Include progname.h.
27749 (main): Call set_program_name.
27751 2007-03-03 Bruno Haible <bruno@clisp.org>
27753 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
27754 All uses of __restrict changed to _Restrict_.
27755 * lib/glob_.h (__restrict): Remove macro.
27757 2007-03-02 Bruno Haible <bruno@clisp.org>
27759 * modules/gettext (configure.ac): Require gettext infrastructure
27760 from version 0.16.1.
27762 2007-03-02 Bruno Haible <bruno@clisp.org>
27764 * modules/linkedhash-list-tests (Depends-on): Add progname.
27765 * tests/test-linkedhash_list.c: Include progname.h.
27766 (main): Call set_program_name.
27768 * modules/carray-list-tests (Depends-on): Add progname.
27769 * tests/test-carray_list.c: Include progname.h.
27770 (main): Call set_program_name.
27772 * modules/avltreehash-list-tests (Depends-on): Add progname.
27773 * tests/test-avltreehash_list.c: Include progname.h.
27774 (main): Call set_program_name.
27776 * modules/avltree-oset-tests (Depends-on): Add progname.
27777 * tests/test-avltree_oset.c: Include progname.h.
27778 (main): Call set_program_name.
27780 * modules/avltree-list-tests (Depends-on): Add progname.
27781 * tests/test-avltree_list.c: Include progname.h.
27782 (main): Call set_program_name.
27784 * modules/array-oset-tests (Depends-on): Add progname.
27785 * tests/test-array_oset.c: Include progname.h.
27786 (main): Call set_program_name.
27788 * modules/array-list-tests (Depends-on): Add progname.
27789 * tests/test-array_list.c: Include progname.h.
27790 (main): Call set_program_name.
27792 * modules/argp-tests (Depends-on): Add progname.
27793 * tests/test-argp.c: Include argp.h first. Include progname.h.
27794 (main): Call set_program_name.
27796 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
27798 * doc/gnulib-tool.texi (Initial import): Reword description of
27799 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
27800 limited effect even if defined after the first system include.
27802 2007-03-01 Bruno Haible <bruno@clisp.org>
27804 * build-aux/config.libpath: Update to libtool-1.5.22.
27805 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27807 2007-03-01 Bruno Haible <bruno@clisp.org>
27809 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
27811 Reported by Ralf Wildenhues.
27813 2007-03-01 Bruno Haible <bruno@clisp.org>
27815 * build-aux/install-reloc: Remove object files left over by some
27817 Reported by Ralf Wildenhues.
27819 2007-03-01 Bruno Haible <bruno@clisp.org>
27821 * build-aux/install-reloc: Break long lines.
27823 2007-03-01 Bruno Haible <bruno@clisp.org>
27825 * doc/relocatable.texi: Document that it may not work on OpenBSD.
27826 Reported by Ralf Wildenhues.
27828 2007-03-01 Bruno Haible <bruno@clisp.org>
27830 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
27831 include ordering constraints.
27833 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
27835 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
27836 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
27837 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
27838 as another example.
27839 * lib/time_.h: Fix misspelling.
27840 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
27841 Require gl_HEADER_TIME_H_DEFAULTS.
27842 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
27843 * m4/time_r.m4 (gl_TIME_R): Likewise.
27844 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
27846 2007-03-01 Bruno Haible <bruno@clisp.org>
27848 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
27849 * m4/utimens.m4 (gl_UTIMENS): Likewise.
27851 2007-03-01 Jim Meyering <jim@meyering.net>
27853 * modules/xreadlink (Maintainer): Add my name.
27854 * modules/xreadlink-with-size (Depends-on): Alphabetize.
27856 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
27857 Bruno Haible <bruno@clisp.org>
27859 * build-aux/install-reloc: Compile also c-ctype.c.
27860 * build-aux/relocatable.sh.in: New file.
27861 * doc/relocatable.texi: New file.
27862 * doc/relocatable-maint.texi: New file.
27863 * doc/gnulib.texi: Include relocatable-maint.texi.
27864 * lib/progreloc.c: Include unistd.h unconditionally.
27865 * lib/relocwrapper.c: Include unistd.h unconditionally.
27867 (add_dotbin): Use c_tolower.
27868 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
27869 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
27870 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
27871 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
27872 to m4/relocatable-lib.m4.
27873 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
27874 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
27875 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
27876 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
27877 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
27878 * modules/relocatable: New file.
27879 * modules/relocatable-lib: New file.
27880 * modules/relocatable-script: New file.
27882 2007-02-28 Bruno Haible <bruno@clisp.org>
27884 Import --enable-relocatable infrastructure.
27885 * build-aux/config.libpath: New file, from GNU gettext.
27886 * build-aux/install-reloc: New file, from GNU gettext.
27887 * build-aux/reloc-ldflags: New file, from GNU gettext.
27888 * lib/relocatable.h: New file, from GNU gettext.
27889 * lib/relocatable.c: New file, from GNU gettext.
27890 * lib/relocwrapper.c: New file, from GNU gettext.
27891 * m4/relocatable.m4: New file, from GNU gettext.
27893 2007-02-28 Bruno Haible <bruno@clisp.org>
27895 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
27897 * modules/xreadlink: New file, from GNU gettext with modifications.
27898 * lib/xreadlink.c: New file, from GNU gettext.
27899 * lib/xreadlink.h: Add comments.
27900 (xreadlink): New declaration.
27902 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
27903 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
27904 lib/xreadlink-with-size.c.
27905 (configure.ac): Remove gl_XREADLINK invocation.
27906 (Makefile.am): Augment lib_SOURCES.
27907 * m4/xreadlink.m4: Remove file.
27908 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
27909 (xreadlink_with_size): Renamed from xreadink.
27910 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
27911 * modules/canonicalize (Depends-on): Replace xreadlink with
27912 xreadlink-with-size.
27913 * lib/canonicalize.c (canonicalize_filename_mode): Update.
27915 2007-02-25 Jim Meyering <jim@meyering.net>
27917 * build-aux/announce-gen: When complaining about excess arguments,
27920 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
27922 * README: Document signed integer overflow situation more
27925 2007-02-25 Bruno Haible <bruno@clisp.org>
27927 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
27928 'a' or 'A' conversion.
27930 2007-02-25 Bruno Haible <bruno@clisp.org>
27932 * modules/filename: Renamed from modules/pathname.
27933 (Files): Replace lib/pathname.h with lib/filename.h. Replace
27934 lib/concatpath.c with lib/concat-filename.c.
27935 (Makefile.am): Update.
27936 (Include): Replace pathname.h with filename.h.
27937 * lib/filename.h: Renamed from lib/pathname.h.
27938 (concatenated_filename): Renamed from concatenated_pathname.
27939 * lib/concat-filename.c: Renamed from lib/concatpath.c.
27940 (concatenated_filename): Renamed from concatenated_pathname.
27941 * lib/findprog.c: Include filename.h instead of pathname.h.
27942 (find_in_path): Update.
27943 * lib/javacomp.c: Include filename.h instead of pathname.h.
27944 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
27945 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
27946 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
27947 is_oldgcj_14_13_usable, is_javac_usable): Update.
27948 * lib/javaexec.c: Include filename.h instead of pathname.h.
27949 (execute_java_class): Update.
27950 * modules/findprog: Update.
27951 * modules/javacomp: Update.
27952 * modules/javaexec: Update.
27953 * MODULES.html.sh (File system functions): Add 'filename', remove
27956 2007-02-25 Bruno Haible <bruno@clisp.org>
27958 * modules/printf-frexpl-tests: New file.
27959 * tests/test-printf-frexpl.c: New file.
27961 * modules/printf-frexpl: New file.
27962 * lib/printf-frexpl.h: New file.
27963 * lib/printf-frexpl.c: New file.
27964 * m4/printf-frexpl.m4: New file.
27966 2007-02-25 Bruno Haible <bruno@clisp.org>
27968 * modules/printf-frexp-tests: New file.
27969 * tests/test-printf-frexp.c: New file.
27971 * modules/printf-frexp: New file.
27972 * lib/printf-frexp.h: New file.
27973 * lib/printf-frexp.c: New file.
27974 * m4/printf-frexp.m4: New file.
27976 2007-02-25 Bruno Haible <bruno@clisp.org>
27978 Assume automake >= 1.10 for the tests.
27979 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
27980 * modules/arctwo-tests: Likewise.
27981 * modules/argp-tests: Likewise.
27982 * modules/avltree-list-tests: Likewise.
27983 * modules/avltree-oset-tests: Likewise.
27984 * modules/avltreehash-list-tests: Likewise.
27985 * modules/carray-list-tests: Likewise.
27986 * modules/crc-tests: Likewise.
27987 * modules/des-tests: Likewise.
27988 * modules/gc-arcfour-tests: Likewise.
27989 * modules/gc-arctwo-tests: Likewise.
27990 * modules/gc-des-tests: Likewise.
27991 * modules/gc-hmac-md5-tests: Likewise.
27992 * modules/gc-hmac-sha1-tests: Likewise.
27993 * modules/gc-md2-tests: Likewise.
27994 * modules/gc-md4-tests: Likewise.
27995 * modules/gc-md5-tests: Likewise.
27996 * modules/gc-pbkdf2-sha1-tests: Likewise.
27997 * modules/gc-rijndael-tests: Likewise.
27998 * modules/gc-sha1-tests: Likewise.
27999 * modules/gc-tests: Likewise.
28000 * modules/getaddrinfo-tests: Likewise.
28001 * modules/hmac-md5-tests: Likewise.
28002 * modules/hmac-sha1-tests: Likewise.
28003 * modules/linked-list-tests: Likewise.
28004 * modules/linkedhash-list-tests: Likewise.
28005 * modules/lock-tests: Likewise.
28006 * modules/md2-tests: Likewise.
28007 * modules/md4-tests: Likewise.
28008 * modules/md5-tests: Likewise.
28009 * modules/rbtree-list-tests: Likewise.
28010 * modules/rbtree-oset-tests: Likewise.
28011 * modules/rbtreehash-list-tests: Likewise.
28012 * modules/read-file-tests: Likewise.
28013 * modules/rijndael-tests: Likewise.
28014 * modules/stdint-tests: Likewise.
28015 * modules/tls-tests: Likewise.
28017 2007-02-24 Bruno Haible <bruno@clisp.org>
28019 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
28020 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
28021 function; instead check whether isnan with a double argument links.
28022 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
28023 function; instead check whether isnan with a 'long double' argument
28025 Reported by Eric Blake <ebb9@byu.net>.
28027 2007-02-24 Bruno Haible <bruno@clisp.org>
28029 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
28031 * lib/isnanl.c: Remove all code. Just include isnan.c.
28032 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
28034 2007-02-25 Jim Meyering <jim@meyering.net>
28036 Avoid conflicting types for 'unsetenv' on FreeBSD.
28037 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
28038 conflicting with FreeBSD's (5.0 and 6.1) function declaration
28041 2007-02-24 Bruno Haible <bruno@clisp.org>
28043 * modules/isnanl-nolibm-tests: New file.
28044 * tests/test-isnanl.c: New file.
28046 * modules/isnanl-nolibm: New file.
28047 * lib/isnanl.h: New file.
28048 * lib/isnanl.c: New file.
28049 * m4/isnanl.m4: New file.
28051 2007-02-24 Bruno Haible <bruno@clisp.org>
28053 * modules/isnan-nolibm-tests: New file.
28054 * tests/test-isnan.c: New file.
28056 * modules/isnan-nolibm: New file.
28057 * lib/isnan.h: New file.
28058 * lib/isnan.c: New file.
28059 * m4/isnan.m4: New file.
28061 2007-02-24 Bruno Haible <bruno@clisp.org>
28063 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
28064 assume that an exponent fits in 20 bits.
28066 2007-02-24 Jim Meyering <jim@meyering.net>
28068 * m4/regex.m4: Update the description of the configure-time option,
28069 --without-included-regex, to state accurately what the defaults are,
28070 and perhaps to give people an idea why using this option is risky.
28072 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
28074 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
28075 loops on small arguments. This attempts to avoid the problem
28076 Bruno Haible reported for AIX 4.3.2 in
28077 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
28079 2007-02-23 Bruno Haible <bruno@clisp.org>
28081 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
28082 Needed for help2man.
28084 2007-02-23 Karl Berry <karl@gnu.org>
28086 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
28087 exists, foo.h should be cvs-ignored, not committed.
28089 2007-02-23 Eric Blake <ebb9@byu.net>
28091 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
28092 * lib/stat-time.h (includes): Likewise.
28093 * lib/utimecmp.c (includes): Likewise.
28094 * lib/utimens.h (includes): Likewise.
28095 * lib/getdate.y (includes): Also include "timespec.h" for use
28096 internal to the module.
28097 * modules/utimens (Depends-on): Revert yesterday's patch.
28098 * modules/nanosleep (Depends-on): Add missing dependency.
28100 2007-02-22 Bruno Haible <bruno@clisp.org>
28102 * lib/glob.c: Don't include getlogin_r.h.
28104 2007-02-22 Jim Meyering <jim@meyering.net>
28106 * modules/utimens (Depends-on): Add timespec, required for
28107 utimens.h's inclusion of timespec.h.
28109 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
28111 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
28112 long unreadable paths in GNU/Linux. Problem reported by Andreas
28114 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
28115 I'll try to think of a better way to fix the Solaris problem.
28117 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
28118 like glibc; on Solaris 10, it fails with errno == EINVAL.
28119 POSIX says the behavior is unspecified if the first argument is NULL,
28120 so play it safe and never pass NULL to the system getcwd.
28122 2007-02-21 Jim Meyering <jim@meyering.net>
28124 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
28125 of gettimeofday. It would conflict with the one now always
28126 provided via sys_time_.h. Reported by Matthew Woehlke, as
28127 an IRIX 6.5 build failure.
28129 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
28131 Minor fixups to port to Solaris 10 with Sun C 5.8.
28132 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
28133 * modules/getcwd (Depends-on): Add dirfd.
28134 * lib/putenv.c (putenv): #undef it.
28135 (rpl_putenv): New decl.
28136 (malloc, free): Include <stdlib.h> rather than prototyping separately.
28138 2007-02-20 Bruno Haible <bruno@clisp.org>
28140 * modules/stdio-tests: New file.
28141 * tests/test-stdio.c: New file.
28143 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
28144 (Depends-on): Add stdio.
28145 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
28146 (Include): Use <stdio.h> instead of vsnprintf.h.
28147 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
28148 HAVE_DECL_VSNPRINTF.
28149 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
28151 * modules/snprintf (Files): Remove lib/snprintf.h.
28152 (Depends-on): Add stdio.
28153 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
28154 (Include): Use <stdio.h> instead of snprintf.h.
28155 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
28156 HAVE_DECL_SNPRINTF.
28157 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
28158 * lib/getaddrinfo.c: Likewise.
28160 * modules/stdio: New file.
28161 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
28162 * lib/snprintf.h: Remove file.
28163 * lib/vsnprintf.h: Remove file.
28164 * lib/.cppi-disable: Remove snprintf.h.
28165 * m4/stdio_h.m4: New file.
28166 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
28168 2007-02-20 Jim Meyering <jim@meyering.net>
28170 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
28171 used by e.g., mingw. From Bruno Haible.
28173 2007-02-19 Bruno Haible <bruno@clisp.org>
28175 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
28177 Reported by Ben Pfaff <blp@cs.stanford.edu>.
28179 2007-02-19 Bruno Haible <bruno@clisp.org>
28181 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
28184 2007-02-19 Bruno Haible <bruno@clisp.org>
28186 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
28188 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
28190 2007-02-19 Jim Meyering <jim@meyering.net>
28192 Don't use FD after a successful "fdopendir (fd)".
28193 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
28194 Reset it by calling dirfd on the just-obtained DIR*.
28196 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
28197 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
28199 2007-02-18 Bruno Haible <bruno@clisp.org>
28201 * lib/readlink.c: Include <unistd.h>.
28202 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
28204 * modules/readlink (Depends-on): Add unistd.
28205 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28206 (Include): Add <unistd.h>.
28208 * lib/getlogin_r.h: Remove file.
28209 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
28210 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
28211 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
28212 HAVE_DECL_GETLOGIN_R.
28213 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
28214 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28215 (Include): Use <unistd.h> instead of getlogin_r.h.
28217 * lib/getcwd.h: Remove file.
28218 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
28219 * lib/xgetcwd.c: Likewise.
28220 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
28221 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
28222 * modules/getcwd (Files): Remove lib/getcwd.h.
28223 (Depends-on): Add unistd.
28224 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28225 (Include): Use <unistd.h> instad of getcwd.h.
28227 * lib/ftruncate.c: Include <unistd.h> first.
28228 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
28229 Set HAVE_FTRUNCATE.
28230 * modules/ftruncate (Depends-on): Add unistd.
28231 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28233 * lib/fchdir.c: Include <unistd.h> first.
28234 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
28235 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
28236 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
28237 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28238 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
28240 * lib/dup2.c: Include <unistd.h> first.
28241 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
28243 * modules/dup2 (Depends-on): Add unistd.
28244 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28246 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
28247 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
28248 REPLACE_CHOWN. Don't define chown as a macro here.
28249 * modules/chown (Depends-on): Add unistd.
28250 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
28252 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
28253 Add definition for GL_LINK_WARNING.
28254 (chown, dup2): New declarations.
28255 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
28257 (ftruncate): New declaration.
28258 (getcwd): New declaration, taken from old getcwd.h.
28259 (getlogin_r): New declaration, taken from old getlogin_r.h.
28260 (readlink): New declaration.
28261 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
28262 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
28263 (gl_PREREQ_UNISTD): Remove macro.
28264 (gl_UNISTD_MODULE_INDICATOR): New macro.
28265 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
28266 many new variables. Don't set UNISTD_H.
28267 * modules/unistd (Description): Change.
28268 (Depends-on): Add link-warning.
28269 (configure.ac): Update.
28270 (Makefile.am): Create unistd.h always. Substitute many new variables
28273 2007-02-18 Bruno Haible <bruno@clisp.org>
28275 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
28276 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
28278 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
28279 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
28280 * lib/getsubopt.h: Remove file.
28281 * modules/getsubopt (Files): Remove lib/getsubopt.h.
28282 (Depends-on): Add stdlib.
28283 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28284 (Includes): Use <stdlib.h> instead of getsubopt.h.
28285 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
28286 Set HAVE_GETSUBOPT.
28287 * lib/getsubopt.c: Don't include getsubopt.h.
28289 2007-02-18 Bruno Haible <bruno@clisp.org>
28291 * modules/fchdir (Depends-on): Add dup2.
28293 2007-02-18 Bruno Haible <bruno@clisp.org>
28295 * lib/stdlib_.h: Handle glibc's special invocation convention
28298 2007-02-18 Bruno Haible <bruno@clisp.org>
28300 * modules/stdlib-tests: New file.
28301 * tests/test-stdlib.c: New file.
28303 * modules/mkstemp (Files): Remove lib/mkstemp.h.
28304 (Depends-on): Add stdlib.
28305 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28306 (Includes): Use <stdlib.h> instead of mkstemp.h.
28307 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
28308 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
28309 * lib/mkstemp.c: Don't include mkstemp.h.
28310 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
28311 * lib/stdlib--.h: Don't include mkstemp.h.
28313 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
28314 (Depends-on): Add stdlib.
28315 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
28316 (Includes): Use <stdlib.h> instead of mkdtemp.h.
28317 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
28319 * lib/mkdtemp.c: Don't include mkdtemp.h.
28320 * lib/clean-temp.c: Don't include mkdtemp.h.
28322 * modules/exit (Files): Remove lib/exit.h.
28323 (Depends-on): Add stdlib.
28324 (Makefile.am): Remove lib_SOURCES.
28325 (Include): Use <stdlib.h> instead of exit.h.
28326 * lib/argmatch.c: Don't include exit.h.
28327 * lib/execute.c: Likewise.
28328 * lib/pagealign_alloc.c: Likewise.
28329 * lib/pipe.c: Likewise.
28330 * lib/wait-process.c: Likewise.
28331 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
28332 * lib/exitfail.c: Likewise.
28333 * lib/savewd.c: Likewise.
28334 * lib/xsetenv.c: Likewise.
28336 * modules/stdlib: New file.
28337 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
28338 and extra comments about mkstemp().
28339 * lib/exit.h: Remove file.
28340 * lib/mkdtemp.h: Remove file.
28341 * lib/mkstemp.h: Remove file.
28342 * m4/stdlib_h.m4: New file.
28343 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
28345 2007-02-18 Bruno Haible <bruno@clisp.org>
28347 * modules/math-tests: New file.
28348 * tests/test-math.c: New file.
28350 * modules/math: New file.
28351 * modules/mathl (Files): Remove lib/mathl.h.
28352 (Depends-on): Add math.
28353 (Makefile.am): Don't mention mathl.h.
28354 (Include): Use <math.h> instead of mathl.h.
28355 * lib/math_.h: New file.
28356 * lib/mathl.h: Remove file.
28357 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
28359 * lib/asinl.c: Likewise.
28360 * lib/atanl.c: Likewise.
28361 * lib/ceill.c: Likewise.
28362 * lib/cosl.c: Likewise.
28363 * lib/expl.c: Likewise.
28364 * lib/floorl.c: Likewise.
28365 * lib/frexpl.c: Likewise.
28366 * lib/ldexpl.c: Likewise.
28367 * lib/logl.c: Likewise.
28368 * lib/sincosl.c: Likewise.
28369 * lib/sinl.c: Likewise.
28370 * lib/sqrtl.c: Likewise.
28371 * lib/tanl.c: Likewise.
28372 * lib/trigl.c: Likewise.
28373 * m4/math_h.m4: New file.
28374 * MODULES.html.sh (Mathematics): Add math.
28376 2007-02-17 Bruno Haible <bruno@clisp.org>
28378 * modules/wctype-tests: New file.
28379 * tests/test-wctype.c: New file.
28381 * modules/wchar-tests: New file.
28382 * tests/test-wchar.c: New file.
28384 * modules/unistd-tests: New file.
28385 * tests/test-unistd.c: New file.
28387 * modules/time-tests: New file.
28388 * tests/test-time.c: New file.
28390 * modules/sysexits-tests: New file.
28391 * tests/test-sysexits.c: New file.
28393 * modules/sys_time-tests: New file.
28394 * tests/test-sys_time.c: New file.
28396 * modules/sys_stat-tests: New file.
28397 * tests/test-sys_stat.c: New file.
28399 * modules/sys_socket-tests: New file.
28400 * tests/test-sys_socket.c: New file.
28402 * modules/sys_select-tests: New file.
28403 * tests/test-sys_select.c: New file.
28405 * modules/string-tests: New file.
28406 * tests/test-string.c: New file.
28408 * modules/stdbool-tests: New file.
28409 * tests/test-stdbool.c: New file.
28411 * modules/netinet_in-tests: New file.
28412 * tests/test-netinet_in.c: New file.
28414 * modules/inttypes-tests: New file.
28415 * tests/test-inttypes.c: New file.
28417 * modules/fcntl-tests: New file.
28418 * tests/test-fcntl.c: New file.
28420 * modules/byteswap-tests: New file.
28421 * tests/test-byteswap.c: New file.
28423 * modules/arpa_inet-tests: New file.
28424 * tests/test-arpa_inet.c: New file.
28426 2007-02-17 Bruno Haible <bruno@clisp.org>
28428 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
28429 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
28430 if the corresponding module is not enabled. Emit link warnings if
28431 the function is used nevertheless.
28432 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
28433 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
28434 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
28435 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
28436 * modules/inttypes (Depends-on): Add link-warning.
28437 (Makefile.am): Copy the contents of build-aux/link-warning.h into
28438 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
28439 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
28440 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
28441 * modules/imaxdiv (configure.ac): Likewise.
28442 * modules/strtoimax (configure.ac): Likewise.
28443 * modules/strtoumax (configure.ac): Likewise.
28445 2007-02-17 Bruno Haible <bruno@clisp.org>
28447 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
28448 gl_STRING_MODULE_INDICATOR_DEFAULTS.
28449 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
28450 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
28452 2007-02-17 Bruno Haible <bruno@clisp.org>
28454 * modules/link-warning: New file.
28455 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
28456 * lib/string_.h (GL_LINK_WARNING): Remove definition.
28457 * modules/string (Depends-on): Add link-warning.
28458 (Makefile.am): Copy the contents of build-aux/link-warning.h into
28460 * MODULES.html.sh (Support for building libraries and executables): Add
28463 2007-02-17 Bruno Haible <bruno@clisp.org>
28465 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
28466 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
28467 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
28470 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
28471 Bruno Haible <bruno@clisp.org>
28473 * modules/tmpfile: New file.
28474 * lib/tmpfile.c: New file.
28475 * m4/tmpfile.m4: New file.
28476 * MODULES.html.sh (func_all_modules): New section "Input/output".
28478 2007-02-15 Bruno Haible <bruno@clisp.org>
28480 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
28481 (supports_delete_on_close): New function.
28482 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
28484 2007-02-14 Bruno Haible <bruno@clisp.org>
28486 * modules/mbspcasecmp-tests: New file.
28487 * tests/test-mbspcasecmp.sh: New file.
28488 * tests/test-mbspcasecmp.c: New file.
28490 New module mbspcasecmp.
28491 * modules/mbspcasecmp: New file.
28492 * lib/mbspcasecmp.c: New file.
28493 * lib/string_.h (strncasecmp): Change warning message.
28494 (mbspcasecmp): New declaration.
28495 * m4/mbspcasecmp.m4: New file.
28496 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28497 GNULIB_MBSPCASECMP.
28498 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
28499 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
28501 2007-02-14 Bruno Haible <bruno@clisp.org>
28503 * modules/mbsncasecmp-tests: New file.
28504 * tests/test-mbsncasecmp.sh: New file.
28505 * tests/test-mbsncasecmp.c: New file.
28507 New module mbsncasecmp.
28508 * modules/mbsncasecmp: New file.
28509 * lib/mbsncasecmp.c: New file.
28510 * lib/string_.h (mbsncasecmp): New declaration.
28511 * m4/mbsncasecmp.m4: New file.
28512 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28513 GNULIB_MBSNCASECMP.
28514 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
28515 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
28517 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
28519 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
28520 Verify that it doesn't overlap with our flags.
28521 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
28522 do not have the desired effect in multibyte locales; instead, use
28524 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
28525 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
28526 we don't require GNU fnmatch ourselves (if our users require it, they
28527 should do so explicitly).
28529 Fix regex code so it doesn't rely on strcasecmp.
28530 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
28531 Otherwise, include gnulib's langinfo.h.
28532 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
28533 undesirable behavior in non-C locales. Instead, rely on localecharset.
28534 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
28535 * modules/regex (FILES): Remove m4/codeset.m4.
28536 (Depends-on): Add localcharset. Remove strcase.
28538 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28540 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
28541 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
28543 2007-02-13 Bruno Haible <bruno@clisp.org>
28545 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
28546 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28548 2007-02-12 Bruno Haible <bruno@clisp.org>
28550 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
28551 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
28552 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
28553 time warning rather than a link error.
28555 2007-02-12 Bruno Haible <bruno@clisp.org>
28557 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
28558 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28559 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28561 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
28563 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
28566 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
28568 New module 'time', so that apps can include <time.h> as per
28569 POSIX and GNU instead of separate include files like time_r.h
28570 and timegm.h. This implementation tries out a simpler approach
28571 for replacing decls in standard include files (as compared to
28572 the string module), somewhat as an experiment.
28574 * config/srclist.txt: Comment out mktime.c for now.
28575 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
28576 since it doesn't apply any more. Use generic wording instead.
28577 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
28579 * lib/time_.h, m4/time_h.m4, modules/time: New files.
28580 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
28581 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
28582 Don't include <sys/types.h>; no longer needed since we assume C89.
28583 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
28584 * lib/strftime.c: Likewise.
28585 * lib/time_r.c: Likewise.
28586 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
28587 * lib/nanosleep.c: Include <time.h> first, to check interface.
28588 * lib/strptime.c: Likewise.
28589 * lib/time_r.c: Likewise.
28590 * lib/timegm.c: Likewise.
28591 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
28593 * lib/timegm.c: Don't include timegm.h; no longer needed.
28594 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
28595 time.h now handles any problems in that area.
28596 (struct timespec, nanosleep): Remove; time.h now arranges for these.
28597 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
28598 that time.h defines struct timespec.
28599 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
28600 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
28602 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
28603 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
28604 needed. Set REPLACE_LOCALTIME.
28605 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
28606 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
28607 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
28608 nanosleep; time_h.m4 now does that. Don't require
28609 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
28610 module handles this now.
28611 * modules/getdate (Depends-on): Remove timespec. Add time.
28612 * modules/nanosleep (Depends-on): Likewise.
28613 * modules/stat-time (Depends-on): Likewise.
28614 * modules/nanosleep (Include): Include time.h, not timespec.h.
28615 * modules/strptime (Files): Remove lib/strptime.h.
28616 (Depends-on): Add extensions, time.
28617 (Include): Include time.h, not strptime.h.
28618 * modules/time_r (Files): Remove lib/time_r.h.
28619 (Depends-on): Add time.
28620 (Include): Include time.h, not time_r.h.
28621 * modules/timegm: Likewise.
28622 * modules/timespec (Description): Now does timespec-related decls
28623 of our own, instead of struct timespec itself.
28624 (Depends-on): Add time; remove extensions.
28625 (Maintainer): Add self.
28626 * modules/utimecmp (Depends-on): Add time; remove timespec.
28627 * modules/utimens (Depends-on): Likewise.
28628 * modules/xnanosleep (Depends-on): Likewise.
28630 2007-02-11 Bruno Haible <bruno@clisp.org>
28632 * lib/c-strstr.c: Include allocsa.h.
28633 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
28634 * lib/c-strcasestr.c: Include allocsa.h.
28635 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
28636 * lib/strcasestr.c: Include allocsa.h.
28637 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
28638 * lib/mbsstr.c: Include allocsa.h.
28639 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
28640 allocsa/freesa instead of malloc/free.
28641 * lib/mbscasestr.c: Include allocsa.h.
28642 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
28643 allocsa/freesa instead of malloc/free.
28644 * modules/c-strstr (Depends-on): Add allocsa.
28645 * modules/c-strcasestr (Depends-on): Likewise.
28646 * modules/strcasestr (Depends-on): Likewise.
28647 * modules/mbsstr (Depends-on): Likewise.
28648 * modules/mbscasestr (Depends-on): Likewise.
28650 2007-02-11 Bruno Haible <bruno@clisp.org>
28652 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
28654 * modules/mbsspn-tests: New file.
28655 * tests/test-mbsspn.sh: New file.
28656 * tests/test-mbsspn.c: New file.
28658 2007-02-11 Bruno Haible <bruno@clisp.org>
28660 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
28662 * modules/mbspbrk-tests: New file.
28663 * tests/test-mbspbrk.sh: New file.
28664 * tests/test-mbspbrk.c: New file.
28666 2007-02-11 Bruno Haible <bruno@clisp.org>
28668 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
28671 * modules/mbscspn-tests: New file.
28672 * tests/test-mbscspn.sh: New file.
28673 * tests/test-mbscspn.c: New file.
28675 2007-02-11 Bruno Haible <bruno@clisp.org>
28677 * modules/mbscasecmp-tests: New file.
28678 * tests/test-mbscasecmp.sh: New file.
28679 * tests/test-mbscasecmp.c: New file.
28681 2007-02-11 Bruno Haible <bruno@clisp.org>
28683 Ensure O(n) worst-case complexity of mbscasestr.
28684 * lib/mbscasestr.c: Include stdbool.h.
28685 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
28687 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
28688 the bookkeeping indicates that it's worth it.
28689 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
28691 * modules/mbscasestr-tests: New file.
28692 * tests/test-mbscasestr1.c: New file.
28693 * tests/test-mbscasestr2.sh: New file.
28694 * tests/test-mbscasestr2.c: New file.
28695 * tests/test-mbscasestr3.sh: New file.
28696 * tests/test-mbscasestr3.c: New file.
28697 * tests/test-mbscasestr4.sh: New file.
28698 * tests/test-mbscasestr4.c: New file.
28699 * m4/locale-tr.m4: New file.
28701 2007-02-11 Bruno Haible <bruno@clisp.org>
28703 Ensure O(n) worst-case complexity of mbsstr.
28704 * lib/mbsstr.c: Include stdbool.h.
28705 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
28707 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
28708 bookkeeping indicates that it's worth it.
28709 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
28711 * modules/mbsstr-tests: New file.
28712 * tests/test-mbsstr1.c: New file.
28713 * tests/test-mbsstr2.sh: New file.
28714 * tests/test-mbsstr2.c: New file.
28715 * tests/test-mbsstr3.sh: New file.
28716 * tests/test-mbsstr3.c: New file.
28717 * m4/locale-fr.m4: New file.
28719 2007-02-11 Bruno Haible <bruno@clisp.org>
28721 * lib/mbsrchr.c (mbsrchr): Fix bug.
28723 * modules/mbsrchr-tests: New file.
28724 * tests/test-mbsrchr.sh: New file.
28725 * tests/test-mbsrchr.c: New file.
28727 2007-02-11 Bruno Haible <bruno@clisp.org>
28729 * lib/mbschr.c (mbschr): Fix bug.
28731 * modules/mbschr-tests: New file.
28732 * tests/test-mbschr.sh: New file.
28733 * tests/test-mbschr.c: New file.
28734 * m4/locale-zh.m4: New file.
28736 2007-02-11 Bruno Haible <bruno@clisp.org>
28738 Support for copying multibyte string iterators.
28739 * lib/mbiter.h: Include <string.h>.
28740 (mbiter_multi_copy): New function.
28741 (mbi_copy): New macro.
28742 * lib/mbuiter.h: Include <string.h>.
28743 (mbuiter_multi_copy): New function.
28744 (mbui_copy): New macro.
28746 2007-02-11 Bruno Haible <bruno@clisp.org>
28749 * modules/mbslen: New file.
28750 * lib/mbslen.c: New file.
28751 * lib/string_.h (mbslen): New declaration.
28752 * m4/mbslen.m4: New file.
28753 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28755 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
28756 * MODULES.html.sh (Internationalization functions): Add mbslen.
28758 2007-02-11 Bruno Haible <bruno@clisp.org>
28760 Ensure O(n) worst-case complexity of strcasestr substitute.
28761 * lib/strcasestr.c: Include stdbool.h.
28762 (knuth_morris_pratt): New function.
28763 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
28764 bookkeeping indicates that it's worth it.
28765 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
28767 * modules/strcasestr-tests: New file.
28768 * tests/test-strcasestr.c: New file.
28770 2007-02-11 Bruno Haible <bruno@clisp.org>
28772 Ensure O(n) worst-case complexity of c_strcasestr.
28773 * lib/c-strcasestr.c: Include stdbool.h, string.h.
28774 (knuth_morris_pratt): New function.
28775 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
28776 the bookkeeping indicates that it's worth it.
28777 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
28779 * modules/c-strcasestr-tests: New file.
28780 * tests/test-c-strcasestr.c: New file.
28782 2007-02-11 Bruno Haible <bruno@clisp.org>
28784 Ensure O(n) worst-case complexity of c_strstr.
28785 * lib/c-strstr.c: Include stdbool.h, string.h.
28786 (knuth_morris_pratt): New function.
28787 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
28788 bookkeeping indicates that it's worth it.
28789 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
28791 * lib/c-strstr.c: Complete rewrite for maintainability.
28793 * modules/c-strstr-tests: New file.
28794 * tests/test-c-strstr.c: New file.
28796 2007-02-11 Bruno Haible <bruno@clisp.org>
28798 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
28799 5.2.1 and earlier, whereby \055 was treated just like the range
28801 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
28803 2007-02-08 Bruno Haible <bruno@clisp.org>
28805 * modules/regex (Depends-on): Add stdbool.
28806 Reported by Dalibor Topic <robilad@kaffe.org>.
28808 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
28810 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
28811 Prefer returning from main to exiting from it.
28812 Remove unnecessary parens after sizeof.
28814 2007-02-05 Bruno Haible <bruno@clisp.org>
28817 * modules/mbssep: New file.
28818 * lib/mbssep.c: New file.
28819 * lib/string_.h (strsep): Add a conditional link warning.
28820 (mbssep): New declaration.
28821 * m4/mbssep.m4: New file.
28822 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28824 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
28825 * MODULES.html.sh (Internationalization functions): Add mbssep.
28827 2007-02-05 Bruno Haible <bruno@clisp.org>
28829 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
28830 Optimize search in case of 1 delimiter.
28832 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
28834 * lib/acl.h: Include sys/types.h before sys/acl.h.
28836 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
28838 Merge upstream fix for glibc bugzilla #3957:
28840 2007-02-05 Jakub Jelinek <jakub@redhat.com>
28842 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
28843 bit for RE_HAT_LISTS_NOT_NEWLINE.
28844 (build_charclass_op): Remove bogus comment.
28846 2007-02-05 Simon Josefsson <simon@josefsson.org>
28848 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
28850 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
28852 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
28853 * lib/memmem.c [!defined _LIBC]: Include config.h.
28855 2007-02-04 Bruno Haible <bruno@clisp.org>
28857 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
28860 2007-02-04 Bruno Haible <bruno@clisp.org>
28862 New module mbstok_r.
28863 * modules/mbstok_r: New file.
28864 * lib/mbstok_r.c: New file.
28865 * lib/string_.h (strtok_r): Change argument names to match the
28866 comments. Add a conditional link warning.
28867 (mbstok_r): New declaration.
28868 * m4/mbstok_r.m4: New file.
28869 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28871 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
28872 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
28874 2007-02-04 Bruno Haible <bruno@clisp.org>
28877 * modules/mbsspn: New file.
28878 * lib/mbsspn.c: New file.
28879 * lib/string_.h (strspn): Add a conditional link warning.
28880 (mbsspn): New declaration.
28881 * m4/mbsspn.m4: New file.
28882 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28884 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
28885 * MODULES.html.sh (Internationalization functions): Add mbsspn.
28887 2007-02-04 Bruno Haible <bruno@clisp.org>
28889 New module mbspbrk.
28890 * modules/mbspbrk: New file.
28891 * lib/mbspbrk.c: New file.
28892 * lib/string_.h (strpbrk): Add a conditional link warning.
28893 (mbspbrk): New declaration.
28894 * m4/mbspbrk.m4: New file.
28895 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28897 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
28898 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
28900 2007-02-04 Bruno Haible <bruno@clisp.org>
28902 New module mbscspn.
28903 * modules/mbscspn: New file.
28904 * lib/mbscspn.c: New file.
28905 * lib/string_.h (strcspn): Add a conditional link warning.
28906 (mbscspn): New declaration.
28907 * m4/mbscspn.m4: New file.
28908 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28910 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
28911 * MODULES.html.sh (Internationalization functions): Add mbscspn.
28913 2007-02-04 Bruno Haible <bruno@clisp.org>
28915 New module mbscasestr, reduced goal of strcasestr.
28916 * modules/mbscasestr: New file.
28917 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
28918 (mbscasestr): Renamed from strcasestr.
28919 * lib/strcasestr.c: Don't include mbuiter.h.
28920 (strcasestr): Remove support for multibyte locales.
28921 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
28922 Change the conditional link warning.
28923 (mbscasestr): New declaration.
28924 * m4/mbscasestr.m4: New file.
28925 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
28926 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
28927 REPLACE_STRCASESTR.
28928 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
28929 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28930 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
28931 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
28932 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
28933 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
28934 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
28935 (Depends-on): Remove mbuiter.
28936 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
28938 2007-02-04 Bruno Haible <bruno@clisp.org>
28940 Simplify handling of strncasecmp.
28941 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
28942 the conditional link warning.
28943 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
28944 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
28945 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
28946 * modules/strcase (configure.ac): Don't invoke
28947 gl_STRING_MODULE_INDICATOR.
28948 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
28950 2007-02-04 Bruno Haible <bruno@clisp.org>
28952 New module mbscasecmp, reduced goal of strcasecmp.
28953 * modules/mbscasecmp: New file.
28954 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
28955 (mbscasecmp): Renamed from strcasecmp.
28956 * lib/strcasecmp.c: Don't include mbuiter.h.
28957 (strcasecmp): Remove support for multibyte locales.
28958 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
28959 Change the conditional link warning.
28960 (mbscasecmp): New declaration.
28961 * m4/mbscasecmp.m4: New file.
28962 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
28963 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
28964 REPLACE_STRCASECMP.
28965 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
28966 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
28968 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
28969 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
28970 * modules/strcase (Files): Remove m4/mbrtowc.m4.
28971 (Depends-on): Remove mbuiter.
28972 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
28974 2007-02-04 Bruno Haible <bruno@clisp.org>
28976 New module mbsstr. Remove module strstr.
28977 * modules/mbsstr: New file.
28978 * modules/strstr: Remove file.
28979 * lib/mbsstr.c: Renamed from lib/strstr.c.
28980 (mbsstr): Renamed from strstr.
28981 * lib/string_.h (strstr): Remove declaration. Change the conditional
28983 (mbsstr): New declaration.
28984 * m4/mbsstr.m4: New file.
28985 * m4/strstr.m4: Remove file.
28986 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
28988 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
28989 Don't initialize GNULIB_STRSTR.
28990 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
28991 substitute GNULIB_STRSTR and REPLACE_STRSTR.
28992 * MODULES.html.sh (Internationalization functions): Add mbsstr.
28993 (Support for systems lacking ANSI C 89): Remove strstr.
28995 2007-02-04 Bruno Haible <bruno@clisp.org>
28997 New module mbsrchr.
28998 * modules/mbsrchr: New file.
28999 * lib/mbsrchr.c: New file.
29000 * lib/string_.h (strrchr): Add a conditional link warning.
29001 (mbsrchr): New declaration.
29002 * m4/mbsrchr.m4: New file.
29003 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29005 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
29006 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
29008 2007-02-04 Bruno Haible <bruno@clisp.org>
29011 * modules/mbschr: New file.
29012 * lib/mbschr.c: New file.
29013 * lib/string_.h (strchr): Add a conditional link warning.
29014 (mbschr): New declaration.
29015 * m4/mbschr.m4: New file.
29016 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29018 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
29019 * MODULES.html.sh (Internationalization functions): Add mbschr.
29021 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
29023 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
29025 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
29027 2007-02-04 Bruno Haible <bruno@clisp.org>
29029 New module description section 'configure.ac-early'.
29030 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
29031 (func_get_autoconf_early_snippet): New function.
29032 (func_import, func_create_testdir): Use it. Remove special cases for
29033 modules 'extensions' and 'lock'.
29034 * modules/extensions (configure.ac-early): Require
29035 gl_USE_SYSTEM_EXTENSIONS.
29036 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
29038 2007-02-04 Bruno Haible <bruno@clisp.org>
29040 Make use of gcj-4.3's -fsource and -ftarget option.
29041 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
29042 and if so try the options -fsource and -ftarget.
29043 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
29044 source_version, ftarget_option, target_version arguments.
29045 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
29046 (is_envjavac_oldgcj_14_14_usable): Renamed from
29047 is_envjavac_gcj_14_14_usable.
29048 (is_envjavac_oldgcj_14_13_usable): Renamed from
29049 is_envjavac_gcj_14_13_usable.
29050 (is_gcj_present): Update.
29051 (is_gcj_43, is_gcj43_usable): New functions.
29052 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
29053 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
29054 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
29055 try the options -fsource and -ftarget.
29057 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
29059 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
29060 checking code. Set N = ceil (1.5 * N) rather than to a slightly
29063 2007-02-03 Jim Meyering <jim@meyering.net>
29065 Give tools a better chance to allocate space for very large buffers.
29066 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
29068 Make pwd and readlink work also when run with an unreadable parent dir
29069 on systems with openat support.
29070 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
29071 provided getcwd function, even when we have openat support.
29072 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
29074 2007-02-02 Bruno Haible <bruno@clisp.org>
29076 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
29077 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
29078 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
29079 portability problems if one of these functions is only used on specific
29081 Reported by Paul Eggert.
29083 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
29085 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
29086 is causing more trouble than it's curing.
29087 * lib/regex_internal.h (__mempcpy): Remove.
29088 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
29089 (and make the code a tad smaller to boot).
29090 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
29092 2007-02-02 Jim Meyering <jim@meyering.net>
29094 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
29095 section, not in the Makefile.am: one.
29097 2007-02-02 Eric Blake <ebb9@byu.net>
29099 * lib/strchrnul.c: Always include config.h first.
29101 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
29102 gnulib strstr is not necessary here.
29104 2007-02-02 Simon Josefsson <simon@josefsson.org>
29106 * m4/socklen.m4: Fix typo.
29108 2007-02-02 Eric Blake <ebb9@byu.net>
29110 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
29111 * modules/netinet_in (Makefile.am): Likewise.
29113 2007-02-01 Bruno Haible <bruno@clisp.org>
29115 * lib/string_.h (GL_LINK_WARNING): New macro.
29116 (strcasecmp, strstr, strcasestr): If provided by the system,
29117 conditionally define as a macro that leads to a warning instead of to
29119 (strncasecmp): Conditionally define as a macro that leads to a warning.
29121 2007-02-01 Karl Berry <karl@gnu.org>
29123 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
29125 2007-02-01 Bruno Haible <bruno@clisp.org>
29127 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
29130 2007-02-01 Eric Blake <ebb9@byu.net>
29132 * modules/regex (Depends-on): Revert dependence on mempcpy.
29133 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
29134 module's definition of mempcpy.
29135 Reported by Paul Eggert.
29137 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
29139 * lib/string_.h: If the gnulib module XYZ is not present, undefine
29140 the symbol XYZ before redefining it. This fixes a problem with
29141 programs that don't use XYZ, when compiled on systems that define
29142 XYZ to something else.
29144 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
29146 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
29147 occurs when "mkdir -m foo" creates a setgid directory that is (1)
29148 writeable to group or other and (2) is intended to have a special
29149 mode bit that is set or cleared. In such a case, the directory
29150 should be neither group- nor other-writeable until the special
29151 mode bits are right.
29153 2007-01-31 Eric Blake <ebb9@byu.net>
29155 * modules/mountlist (Depends-on): Add strstr.
29157 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
29159 * modules/string (Makefile.am): Remove redundant replacement.
29160 * modules/regex (Depends-on): Add mempcpy.
29162 2007-01-31 Bruno Haible <bruno@clisp.org>
29164 New module description field 'Link'.
29165 * gnulib-tool (func_usage): Document --extract-link-directive.
29166 (sed_extract_prog): Recognize 'Link' directive.
29167 (func_get_link_directive): New function.
29168 (func_import): Show summary of link directives.
29169 Handle --extract-link-directive option.
29170 * modules/acl (Link): New section.
29171 * modules/clock-time (Link): New section.
29172 * modules/euidaccess (Link): New section.
29173 * modules/gettext (Link): New section.
29174 * modules/iconv (Link): New section.
29175 * modules/lock (Link): New section.
29176 * modules/nanosleep (Link): New section.
29177 * modules/readline (Link): New section.
29179 2007-01-27 Bruno Haible <bruno@clisp.org>
29181 Enforce the use of gnulib modules for unportable <string.h> functions.
29182 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
29183 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
29184 (gl_HEADER_STRING_H_BODY): Require it.
29185 * lib/string_.h: If the gnulib module XYZ is not present, redefine
29186 the symbol XYZ to one that gives a link error.
29187 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
29188 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
29189 * modules/mempcpy (configure.ac): Likewise.
29190 * modules/memrchr (configure.ac): Likewise.
29191 * modules/stpcpy (configure.ac): Likewise.
29192 * modules/stpncpy (configure.ac): Likewise.
29193 * modules/strcase (configure.ac): Likewise.
29194 * modules/strcasestr (configure.ac): Likewise.
29195 * modules/strchrnul (configure.ac): Likewise.
29196 * modules/strdup (configure.ac): Likewise.
29197 * modules/strndup (configure.ac): Likewise.
29198 * modules/strnlen (configure.ac): Likewise.
29199 * modules/strpbrk (configure.ac): Likewise.
29200 * modules/strsep (configure.ac): Likewise.
29201 * modules/strstr (configure.ac): Likewise.
29202 * modules/strtok_r (configure.ac): Likewise.
29204 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
29206 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
29208 2007-01-30 Jim Meyering <jim@meyering.net>
29210 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
29212 2007-01-29 Bruno Haible <bruno@clisp.org>
29214 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
29215 * lib/execute.c: Likewise.
29216 * lib/pipe.c: Likewise.
29217 * lib/printf-args.h: Likewise.
29218 * lib/printf-args.c: Likewise.
29219 * lib/printf-parse.c: Likewise.
29220 * lib/vasnprintf.c: Likewise.
29222 2007-01-29 Eric Blake <ebb9@byu.net>
29224 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
29227 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
29229 * lib/strptime.h (strptime): Use 'restrict' for args where
29230 POSIX requires this.
29231 * lib/strptime.c (strptime): Likewise.
29232 Change license notice from LGPL to GPL, since gnulib-tool will
29233 change this as needed.
29234 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
29236 Include "strptime.h" first, to check interface.
29237 Do not #undef _LIBC and _NL_CURRENT.
29238 Do not include <stdlib.h>; no longer needed.
29239 Include "time_r.h" and declare ptime_locale_status
29240 only if _LIBC is not defined.
29241 (__P): Remove unused macro.
29242 (match_string): Bring back glibc version, but use it only if _LIBC
29244 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
29245 Remove unnecessary assertion and abort() call.
29246 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
29247 * m4/strptime.m4: Fix serial number comment.
29248 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
29249 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
29250 (Depends-on): Add time_r.
29252 2007-01-29 Bruno Haible <bruno@clisp.org>
29254 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
29256 * modules/strptime (Depends-on): Add stdbool.
29257 * lib/strptime.h: Include <time.h> always. Add comments.
29259 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
29261 * modules/strptime: New file.
29262 * lib/strptime.h: New file.
29263 * lib/strptime.c: New file.
29264 * m4/strptime.m4: New file.
29266 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
29268 * MODULES.html.sh: New module mpsort.
29269 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
29271 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
29272 a circularity problem with HP-UX ia64 reported by Bob Proulx in
29273 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
29275 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
29277 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
29279 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
29280 the parameter matches the prototype.
29282 2007-01-28 Jim Meyering <jim@meyering.net>
29284 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
29285 sys/time.h here, reverting that part of the previous patch:
29286 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
29288 2007-01-28 Bruno Haible <bruno@clisp.org>
29290 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
29291 value of $(SYS_TIME_H).
29292 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
29293 remove it conditionally, too. [added by Jim Meyering]
29294 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
29295 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
29296 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
29297 GETTIMEOFDAY_REPLACEMENT to 1.
29299 2007-01-28 Bruno Haible <bruno@clisp.org>
29301 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
29302 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
29303 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
29304 Set UNISTD_H instead of UNISTD_H2.
29305 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
29307 2007-01-28 Bruno Haible <bruno@clisp.org>
29309 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
29310 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
29312 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29314 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
29315 (func_create_testdir): Ensure C locale for `grep' and `tr'
29317 (func_create_megatestdir): Avoid one `grep'. Fix bug in
29318 ACLOCAL_AMFLAGS parsing state machine.
29320 2007-01-27 Bruno Haible <bruno@clisp.org>
29322 * modules/unistr/base: Update.
29324 2007-01-27 Bruno Haible <bruno@clisp.org>
29326 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
29327 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
29328 * modules/unistr/u32-mbtouc-unsafe: Renamed from
29329 modules/unistr/u32-mbtouc.
29330 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
29331 * lib/unistr.h: Update.
29332 * lib/linebreak.c: Update.
29333 * modules/unistr/u32-mbtouc: Renamed from
29334 modules/unistr/u32-mbtouc-safe.
29335 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
29336 * lib/unistr.h: Update.
29337 * lib/unistr/u32-to-u8.c: Update.
29338 * lib/unistr/u32-to-u16.c: Update.
29340 2007-01-27 Bruno Haible <bruno@clisp.org>
29342 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
29343 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
29344 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
29345 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
29346 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
29347 * modules/unistr/u16-mbtouc-unsafe: Renamed from
29348 modules/unistr/u16-mbtouc.
29349 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
29350 * lib/unistr.h: Update.
29351 * lib/linebreak.c: Update.
29352 * modules/linebreak: Update.
29353 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
29354 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
29355 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
29356 * modules/unistr/u16-mbtouc: Renamed from
29357 modules/unistr/u16-mbtouc-safe.
29358 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
29359 * lib/unistr.h: Update.
29360 * lib/unistr/u16-to-u8.c: Update.
29361 * modules/unistr/u16-to-u8: Update.
29362 * lib/unistr/u16-to-u32.c: Update.
29363 * modules/unistr/u16-to-u32: Update.
29365 2007-01-27 Bruno Haible <bruno@clisp.org>
29367 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
29368 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
29369 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
29370 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
29371 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
29372 * modules/unistr/u8-mbtouc-unsafe: Renamed from
29373 modules/unistr/u8-mbtouc.
29374 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
29375 * lib/unistr.h: Update.
29376 * lib/striconveh.c: Update.
29377 * modules/striconveh: Update.
29378 * lib/linebreak.c: Update.
29379 * modules/linebreak: Update.
29380 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
29381 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
29382 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
29383 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
29384 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
29385 * lib/unistr.h: Update.
29386 * lib/striconveh.c: Update.
29387 * modules/striconveh: Update.
29388 * lib/unistr/u8-to-u16.c: Update.
29389 * modules/unistr/u8-to-u16: Update.
29390 * lib/unistr/u8-to-u32.c: Update.
29391 * modules/unistr/u8-to-u32: Update.
29393 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29396 * lib/argz.c: Do not include strings.h nor memory.h, include
29397 string.h unconditionally. Patch by Simon Josefsson.
29399 2007-01-27 Bruno Haible <bruno@clisp.org>
29401 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
29402 from gl_HEADER_STRING_H_BODY.
29403 (gl_HEADER_STRING_H_BODY): Require it.
29404 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
29405 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
29406 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
29407 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
29408 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29409 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
29410 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29411 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
29412 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
29413 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
29414 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
29415 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
29416 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
29417 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
29418 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
29420 2007-01-27 Bruno Haible <bruno@clisp.org>
29422 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
29423 check_PROGRAMS into noinst_PROGRAMS.
29424 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
29425 check_PROGRAMS in this case.
29426 (func_import): Set for_test to false.
29427 (func_create_testdir): Set for_test to true.
29429 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29430 Bruno Haible <bruno@clisp.org>
29432 * modules/strcasestr (Files): Remove lib/strcasestr.h.
29433 (Depends-on): Add string.
29434 (Includes): Use <string.h> instead of strcasestr.h.
29435 * modules/string (Makefile.am): Also substitute the value of
29436 REPLACE_STRCASESTR.
29437 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
29438 assume strcasestr is declared in <string.h> not <strings.h>. Also
29439 set REPLACE_STRCASESTR.
29440 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
29441 REPLACE_STRCASESTR.
29442 * lib/strcasestr.h: Remove file.
29443 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
29444 * lib/string_.h (strcasestr): New declaration.
29446 2007-01-27 Bruno Haible <bruno@clisp.org>
29448 * lib/string_.h: Use 'extern'.
29450 2007-01-27 Jim Meyering <jim@meyering.net>
29452 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
29453 of set-but-not-used local, "q".
29455 * lib/mempcpy.c: Include <config.h> before <string.h>.
29456 This fixes a compilation error on HP-UX, due to the system's
29457 "restrict"-using mempcpy prototype.
29459 2007-01-26 Bruno Haible <bruno@clisp.org>
29461 Small optimization.
29462 * lib/javacomp.c: Include c-strstr.h.
29463 (is_envjavac_gcj): Use c_strstr instead of strstr.
29464 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
29466 2007-01-26 Bruno Haible <bruno@clisp.org>
29468 * MODULES.html.sh (Unicode string functions): Add the new modules.
29470 * modules/uniconv/u32-strconv-to-locale: New file.
29471 * lib/uniconv/u32-strconv-to-locale.c: New file.
29473 * modules/uniconv/u16-strconv-to-locale: New file.
29474 * lib/uniconv/u16-strconv-to-locale.c: New file.
29476 * modules/uniconv/u8-strconv-to-locale: New file.
29477 * lib/uniconv/u8-strconv-to-locale.c: New file.
29479 * modules/uniconv/u32-strconv-from-locale: New file.
29480 * lib/uniconv/u32-strconv-from-locale.c: New file.
29482 * modules/uniconv/u16-strconv-from-locale: New file.
29483 * lib/uniconv/u16-strconv-from-locale.c: New file.
29485 * modules/uniconv/u8-strconv-from-locale: New file.
29486 * lib/uniconv/u8-strconv-from-locale.c: New file.
29488 * modules/uniconv/u32-strconv-to-enc: New file.
29489 * lib/uniconv/u32-strconv-to-enc.c: New file.
29490 * modules/uniconv/u32-strconv-to-enc-tests: New file.
29491 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
29493 * modules/uniconv/u16-strconv-to-enc: New file.
29494 * lib/uniconv/u16-strconv-to-enc.c: New file.
29495 * lib/uniconv/u-strconv-to-enc.h: New file.
29496 * modules/uniconv/u16-strconv-to-enc-tests: New file.
29497 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
29499 * modules/uniconv/u8-strconv-to-enc: New file.
29500 * lib/uniconv/u8-strconv-to-enc.c: New file.
29501 * modules/uniconv/u8-strconv-to-enc-tests: New file.
29502 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
29504 * modules/uniconv/u32-strconv-from-enc: New file.
29505 * lib/uniconv/u32-strconv-from-enc.c: New file.
29506 * modules/uniconv/u32-strconv-from-enc-tests: New file.
29507 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
29509 * modules/uniconv/u16-strconv-from-enc: New file.
29510 * lib/uniconv/u16-strconv-from-enc.c: New file.
29511 * modules/uniconv/u16-strconv-from-enc-tests: New file.
29512 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
29514 * modules/uniconv/u8-strconv-from-enc: New file.
29515 * lib/uniconv/u8-strconv-from-enc.c: New file.
29516 * lib/uniconv/u-strconv-from-enc.h: New file.
29517 * modules/uniconv/u8-strconv-from-enc-tests: New file.
29518 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
29520 * modules/uniconv/u32-conv-from-enc: New file.
29521 * lib/uniconv/u32-conv-from-enc.c: New file.
29522 * modules/uniconv/u32-conv-from-enc-tests: New file.
29523 * tests/uniconv/test-u32-conv-from-enc.c: New file.
29525 * modules/uniconv/u16-conv-from-enc: New file.
29526 * lib/uniconv/u16-conv-from-enc.c: New file.
29527 * lib/uniconv/u-conv-from-enc.h: New file.
29528 * modules/uniconv/u16-conv-from-enc-tests: New file.
29529 * tests/uniconv/test-u16-conv-from-enc.c: New file.
29531 * modules/uniconv/u8-conv-from-enc: New file.
29532 * lib/uniconv/u8-conv-from-enc.c: New file.
29533 * modules/uniconv/u8-conv-from-enc-tests: New file.
29534 * tests/uniconv/test-u8-conv-from-enc.c: New file.
29536 * modules/uniconv/base: New file.
29537 * lib/uniconv.h: New file.
29539 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
29541 * doc/gnulib-tool.texi (Initial import): Update to match current
29542 behavior with strdup module.
29543 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
29544 * lib/memmem.h: Remove; all uses removed. This is now done
29546 * lib/mempcpy.h: Likewise.
29547 * lib/memrchr.h: Likewise.
29548 * lib/stpcpy.h: Likewise.
29549 * lib/stpncpy.h: Likewise.
29550 * lib/strcase.h: Likewise.
29551 * lib/strchrnul.h: Likewise.
29552 * lib/strdup.h: Likewise.
29553 * lib/strndup.h: Likewise.
29554 * lib/strnlen.h: Likewise.
29555 * lib/strpbrk.h: Likewise.
29556 * lib/strsep.h: Likewise.
29557 * lib/strstr.h: Likewise.
29558 * lib/strtok_r.h: Likewise.
29559 * lib/string_.h: New file.
29560 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
29561 Rely on <string.h> instead.
29562 * lib/canon-host.c: Likewise.
29563 * lib/chdir-long.c: Likewise.
29564 * lib/concatpath.c: Likewise.
29565 * lib/exclude.c: Likewise.
29566 * lib/fchdir.c: Likewise.
29567 * lib/getaddrinfo.c: Likewise.
29568 * lib/getcwd.c: Likewise.
29569 * lib/getsubopt.c: Likewise.
29570 * lib/glob.c: Likewise.
29571 * lib/hard-locale.c: Likewise.
29572 * lib/iconvme.c: Likewise.
29573 * lib/javacomp.c: Likewise.
29574 * lib/mempcpy.c: Likewise.
29575 * lib/memrchr.c: Likewise.
29576 * lib/regex_internal.h: Likewise.
29577 * lib/stpncpy.c: Likewise.
29578 * lib/strcasecmp.c: Likewise.
29579 * lib/strchrnul.c: Likewise.
29580 * lib/strdup.c: Likewise.
29581 * lib/striconv.c: Likewise.
29582 * lib/striconveh.c: Likewise.
29583 * lib/striconveha.c: Likewise.
29584 * lib/strncasecmp.c: Likewise.
29585 * lib/strndup.c: Likewise.
29586 * lib/strnlen.c: Likewise.
29587 * lib/strsep.c: Likewise.
29588 * lib/strstr.c: Likewise.
29589 * lib/strtok_r.c: Likewise.
29590 * lib/userspec.c: Likewise.
29591 * lib/w32spawn.h: Likewise.
29592 * lib/xstrndup.c: Likewise.
29593 * lib/mountlist.c (strstr): Remove decl.
29594 * m4/string_h.m4: New file.
29595 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
29596 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
29597 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
29598 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
29599 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
29600 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
29601 Set REPLACE_STRCASECMP if necessary.
29602 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
29603 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
29604 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
29605 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
29606 HAVE_DECL_STRDUP if necessary.
29607 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
29608 since gl_FUNC_STRNDUP does that now.
29609 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
29610 Check for decl here...
29611 (gl_PREREQ_STRNLEN): ... not here.
29612 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
29613 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
29614 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
29615 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
29617 * modules/string: New file.
29618 * modules/memmem (Files): Remove special-purpose include file.
29619 (Depends-on): Add string.
29620 (Include): Include <string.h>, not the removed file.
29621 * modules/mempcpy: Likewise.
29622 * modules/memrchr: Likewise.
29623 * modules/stpcpy: Likewise.
29624 * modules/stpncpy: Likewise.
29625 * modules/strcase: Likewise.
29626 * modules/strchrnul: Likewise.
29627 * modules/strdup: Likewise.
29628 * modules/strndup: Likewise.
29629 * modules/strnlen: Likewise.
29630 * modules/strpbrk: Likewise.
29631 * modules/strsep: Likewise.
29632 * modules/strstr: Likewise.
29633 * modules/strtok_r: Likewise.
29634 * tests/test-dirname.c: Don't include "strdup.h", since
29635 <string.h> now suffices.
29636 * tests/test-memmem.c: Don't include "memmem.h", since
29637 <string.h> now suffices.
29639 2007-01-25 Bruno Haible <bruno@clisp.org>
29641 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
29644 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
29645 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
29646 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
29647 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
29649 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
29650 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
29651 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
29652 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
29653 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
29654 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
29656 2007-01-24 Bruno Haible <bruno@clisp.org>
29658 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
29659 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
29660 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
29661 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
29663 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
29664 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
29665 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29666 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
29667 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
29668 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
29670 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
29672 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
29673 Reported by Ralf Wildenhues.
29675 2007-01-24 Bruno Haible <bruno@clisp.org>
29677 Drop AC_REQUIRE calls that are redundant with the module dependencies.
29678 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
29680 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
29681 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
29682 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
29684 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
29686 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
29687 Don't use 'exit'; just return from 'main'.
29688 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
29690 * lib/fnmatch_.h: Readjust white space and comments to match
29691 glibc, to avoid spurious diffs.
29693 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
29695 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
29696 2004-12-01 change by Jakub Jelinek, since this code won't compile
29697 if !LIBC. Problem reported by Bob Proulx.
29699 2007-01-23 Bruno Haible <bruno@clisp.org>
29701 * lib/striconveh.c: Include c-strcaseeq.h.
29702 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
29703 * modules/striconveh (Depends-on): Add c-strcaseeq.
29705 2007-01-23 Bruno Haible <bruno@clisp.org>
29707 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
29709 * modules/c-strcaseeq: New file.
29710 * lib/c-strcaseeq.h: New file.
29712 * modules/streq: New file.
29713 * lib/streq.h: New file.
29715 2007-01-23 Bruno Haible <bruno@clisp.org>
29717 * modules/striconveha-tests: New file.
29718 * tests/test-striconveha.c: New file.
29720 * lib/striconveha.h: Include <stdbool.h>.
29721 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
29722 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
29723 (mem_iconveha_notranslit): Renamed from mem_iconveha.
29724 (mem_iconveha): New function.
29725 (str_iconveha_notranslit): Renamed from str_iconveha.
29726 (str_iconveha): New function.
29727 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
29730 2007-01-23 Bruno Haible <bruno@clisp.org>
29732 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
29733 encodings without forgiving before trying any encoding with handler.
29734 (str_iconveha): Try all encodings without forgiving before trying any
29735 encoding with handler.
29737 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
29739 Import the following changes from libc.
29741 2005-10-14 Ulrich Drepper <drepper@redhat.com>
29743 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
29745 2004-12-01 Jakub Jelinek <jakub@redhat.com>
29747 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
29748 normal_bracket label.
29750 2004-09-01 Jakub Jelinek <jakub@redhat.com>
29753 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
29754 to normal_bracket after fetching the next character.
29756 2007-01-22 Bruno Haible <bruno@clisp.org>
29758 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
29760 * lib/striconveh.c (iconv_carefully_1): New function.
29761 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
29763 (str_cd_iconveh): Update.
29764 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
29765 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
29766 * tests/test-striconveh.c (MAGIC): New macro.
29767 (new_offsets): New function.
29768 (main): Test call with and without offsets.
29770 2007-01-22 Bruno Haible <bruno@clisp.org>
29772 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
29773 * modules/sys_select (Makefile.am): Likewise.
29774 * modules/sys_socket (Makefile.am): Likewise.
29775 * modules/sys_time (Makefile.am): Likewise.
29777 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
29779 * modules/gettimeofday (License): Change from GPL to LGPL, since
29780 gettimeofday is a library function.
29782 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29784 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
29786 2007-01-21 Bruno Haible <bruno@clisp.org>
29788 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
29790 2007-01-21 Bruno Haible <bruno@clisp.org>
29792 * modules/striconveha: New file.
29793 * lib/striconveha.h: New file.
29794 * lib/striconveha.c: New file.
29795 * MODULES.html.sh (Internationalization functions): Add striconveha.
29796 * lib/striconv.c (str_iconv): Optimize the case of an empty input
29798 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
29800 2007-01-21 Bruno Haible <bruno@clisp.org>
29802 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
29803 * lib/striconveh.c (str_iconveh): Likewise.
29805 2007-01-21 Bruno Haible <bruno@clisp.org>
29807 * lib/striconveh.h (mem_iconveh): New declaration.
29808 * lib/striconveh.c (mem_iconveh): New function.
29809 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
29811 2007-01-21 Bruno Haible <bruno@clisp.org>
29813 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
29815 * lib/striconveh.h (mem_cd_iconveh): Change specification.
29816 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
29817 original result buffer.
29818 (str_cd_iconveh): Update.
29819 * tests/test-striconveh.c (main): Update.
29821 * lib/striconv.h (mem_cd_iconv): Change specification.
29822 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
29824 (str_cd_iconv): Update.
29825 * tests/test-striconv.c (main): Update.
29827 2007-01-21 Bruno Haible <bruno@clisp.org>
29829 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
29831 2007-01-20 Jim Meyering <jim@meyering.net>
29833 * lib/userspec.c (parse_with_separator): If a user or group string
29834 starts with "+", skip the corresponding name-to-ID look-up, since
29835 such a look-up must fail: user and group names may not include "+".
29837 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
29839 * lib/poll.c: Include sys/time.h and time.h unconditionally,
29840 since we now assume the sys_time module.
29841 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
29842 check for sys/time.h; no longer needed.
29843 * modules/poll (Depends-on): Depend on sys_time.
29845 2007-01-18 Bruno Haible <bruno@clisp.org>
29847 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
29848 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
29850 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
29853 * tests/test-gettimeofday.c: Include <time.h>.
29854 (dummy): Remove variable.
29856 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
29857 gl_HEADER_SYS_TIME_H.
29858 (gl_HEADER_SYS_TIME_H): New macro.
29860 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
29861 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29862 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
29863 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
29864 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29865 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
29866 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
29867 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29868 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
29869 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
29870 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29872 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
29873 last change; it caused a compilation error when cross-compiling to
29876 2007-01-18 Jim Meyering <jim@meyering.net>
29878 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
29879 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
29880 than the race-prone "test -d sys || mkdir sys".
29881 (configure.ac): Use AC_PROG_MKDIR_P.
29882 * modules/sys_select: Likewise.
29883 * modules/sys_socket: Likewise.
29884 * modules/sys_time: Likewise.
29886 2007-01-18 Eric Blake <ebb9@byu.net>
29888 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
29889 replace gettimeofday.
29890 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
29891 name, to avoid infinite recursion.
29893 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
29895 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
29897 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
29898 assume timespec.h defines struct timeval.
29899 * lib/settime.c: Likewise.
29900 * lib/utimens.c: Likewise.
29901 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
29902 since we now assume the gettimeofday module.
29903 * lib/tempname.c (__gen_tempname): Likewise.
29904 * lib/gettimeofday.h: Remove.
29905 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
29906 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
29907 Include <time.h>, for 'time()'.
29908 (localtime_buffer_addr): Also use this workaround if
29909 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
29910 to simplify the uses. All uses changed.
29911 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
29912 that #undef is inside {}, and 'const' follows type name consistently.
29913 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
29914 (gettimeofday): Do not use the maximum possible value for
29915 tv->tv_usec, since that might break usages other than ls.c.
29916 Instead, we'll leave ls.c alone. This undoes today's patch
29917 by Bruno. Add a compile-time warning for 1s-clock resolution;
29918 we've never observed the problem but might as well keep the
29920 * lib/nanosleep.c: Include timespec.h first, for interface check.
29921 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
29922 now assume the sys_time module.
29923 * lib/tempname.c: Likewise.
29924 * lib/timespec.h: Likewise.
29925 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
29927 * lib/strftime.c: Likewise.
29928 * lib/timespec.h: Likewise.
29929 * lib/posixtm.c: Include posixtm.h first, for interface check.
29930 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
29931 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
29932 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
29933 * lib/sys_time_.h: New file.
29934 * lib/timespec.h (struct timespec): Use long int, not long.
29935 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
29936 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
29937 Remove obsolescent call to AC_HEADER_TIME.
29938 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
29939 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
29940 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
29941 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
29943 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
29944 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
29945 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
29946 into the sys_time module. Check for gettimeofday just once.
29947 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
29948 for gettimeofday signature to just check the signature. Merely
29949 compile it, since linking doesn't test signature. Improve test for
29950 whether gettimeofday.o is actually needed.
29951 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
29952 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
29953 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
29954 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
29955 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
29956 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
29957 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
29958 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
29959 than worrying about sys/time.h.
29960 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
29961 Don't bother worrying about TIME_WITH_SYS_TIME.
29962 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
29963 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
29964 * m4/sys_time_h.m4: New file.
29965 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
29966 Don't include sys/time.h. Return from main rather than exiting.
29967 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
29969 * modules/gethrxtime (Depends-on): Add sys_time.
29970 * modules/gettime (Depends-on): Likewise.
29971 * modules/gettimeofday (Depends-on): Likewise.
29972 * modules/nanosleep (Depends-on): Likewise.
29973 * modules/settime (Depends-on): Likewise.
29974 * modules/tempname (Depends-on): Likewise.
29975 * modules/utimens (Depends-on): Likewise.
29976 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
29977 (Include:) Change back to <sys/time.h>.
29978 (Maintainer:) Add self.
29979 * modules/sys_time: New file.
29980 * modules/tempname (Depends-on): Add gettimeofday.
29981 * tests/test-gettimeofday.c: Include <sys/time.h>
29982 rather than gettimeofday.h.
29984 2007-01-17 Bruno Haible <bruno@clisp.org>
29986 * gnulib-tool (func_get_license): Revert last patch. Instead, let
29987 the license default to GPL.
29988 (func_create_testdir): Don't complain if a module is LGPL and its
29989 tests module depends on GPLed modules.
29991 2007-01-17 Bruno Haible <bruno@clisp.org>
29993 * lib/gettimeofday.c (gettimeofday): Add code for the case
29994 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
29995 maximum possible value for tv->tv_usec, rather than the minimum one.
29997 2005-10-08 Martin Lambers <marlam@marlam.de>
29998 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
29999 2007-01-16 Bruno Haible <bruno@clisp.org>
30001 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
30002 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
30003 gl_FUNC_GETTIMEOFDAY.
30004 (Include): Add gettimeofday.h.
30005 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
30006 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
30007 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
30008 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
30009 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
30010 * lib/gettimeofday.h: New file.
30011 * lib/gettimeofday.c: Include <sys/timeb.h>.
30012 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
30013 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30014 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
30015 fall back on time().
30017 * tests/test-gettimeofday.c: New file.
30018 * modules/gettimeofday-tests: New file.
30020 2007-01-16 Eric Blake <ebb9@byu.net>
30022 * modules/fnmatch (Depends-on): Depend on wchar.
30023 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
30024 * m4/fnmatch.m4: Likewise.
30025 * modules/mbchar (Makefile.am): Assume <wchar.h>.
30026 * m4/mbchar.m4: Likewise.
30027 * modules/mbswidth (Depends-on): Depend on wchar.
30028 * lib/mbswidth.c: Assume <wchar.h>.
30029 * m4/mbswidth.m4: Likewise.
30030 * modules/quotearg (Depends-on): Depend on wchar.
30031 * lib/quotearg.c: Assume <wchar.h>.
30032 * m4/quotearg.m4: Likewise.
30033 * modules/regex (Depends-on): Depend on wchar.
30034 * lib/regex_internal.h: Assume <wchar.h>.
30035 * m4/regex.m4: Likewise.
30036 * modules/stdint (Depends-on): Depend on wchar.
30037 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
30038 * m4/stdint.m4: Likewise.
30039 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
30040 * modules/strftime (Depends-on): Depend on wchar.
30041 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
30042 * modules/strtol (Depends-on): Depend on wchar.
30043 * lib/strtol.c: Assume <wchar.h>.
30044 * modules/wcwidth (Depends-on): Depend on wchar.
30045 * lib/wcwidth.h: Assume <wchar.h>.
30046 * m4/wcwidth.m4: Likewise.
30048 2007-01-16 Bruno Haible <bruno@clisp.org>
30050 * modules/csharpexec-script: New, created from...
30051 * modules/csharpexec: ... this.
30053 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
30055 * modules/javaexec-script: New, created from...
30056 * modules/javaexec: ... this.
30058 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30060 * modules/poll (Dependencies): Add sys_select.
30062 2007-01-15 Jim Meyering <jim@meyering.net>
30064 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
30065 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
30066 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
30067 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
30069 2007-01-15 Bruno Haible <bruno@clisp.org>
30071 * modules/striconveh: New file.
30072 * lib/striconveh.h: New file.
30073 * lib/striconveh.c: New file.
30074 * MODULES.html.sh (Internationalization functions): Add striconveh.
30076 * modules/striconveh-tests: New file.
30077 * tests/test-striconveh.c: New file.
30079 2007-01-15 Bruno Haible <bruno@clisp.org>
30081 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
30082 not from GNU libiconv or GNU libc.
30084 2007-01-15 Bruno Haible <bruno@clisp.org>
30086 * doc/gnulib-intro.texi (Copyright): Explain the different license
30087 terms for module descriptions, autoconf macros, tests, documentation.
30089 2007-01-14 Bruno Haible <bruno@clisp.org>
30091 * modules/striconv-tests: New file.
30092 * tests/test-striconv.c: New file.
30094 2007-01-14 Bruno Haible <bruno@clisp.org>
30096 * modules/iconv-tests: New file.
30097 * tests/test-iconv.c: New file.
30099 2007-01-14 Bruno Haible <bruno@clisp.org>
30101 * gnulib-tool (func_get_license): For test modules, use the license of
30104 2007-01-14 Bruno Haible <bruno@clisp.org>
30106 * modules/iconv (Include): Clarify that <iconv.h> can only be included
30107 if iconv is found to exist.
30109 2007-01-14 Bruno Haible <bruno@clisp.org>
30111 * modules/c-ctype-tests: New file.
30112 * tests/test-c-ctype.c: New file.
30114 2007-01-14 Bruno Haible <bruno@clisp.org>
30116 * modules/binary-io-tests: New file.
30117 * tests/test-binary-io.sh: New file.
30118 * tests/test-binary-io.c: New file.
30120 2007-01-14 Bruno Haible <bruno@clisp.org>
30122 * modules/array-oset-tests: New file.
30123 * tests/test-array_oset.c: New file.
30125 2007-01-14 Bruno Haible <bruno@clisp.org>
30127 * modules/array-list-tests: New file.
30128 * tests/test-array_list.c: New file.
30130 2007-01-14 Bruno Haible <bruno@clisp.org>
30132 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
30134 Reported by Simon Josefsson in
30135 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
30137 2007-01-14 Bruno Haible <bruno@clisp.org>
30139 * modules/allocsa-tests: New file.
30140 * tests/test-allocsa.c: New file.
30142 2007-01-14 Bruno Haible <bruno@clisp.org>
30144 * modules/fchdir (Depends-on): Add absolute-header.
30145 * modules/unistd (Depends-on): Likewise.
30147 2006-12-30 Bruno Haible <bruno@clisp.org>
30149 * modules/fchdir: New file.
30150 * modules/unistd (Files): Add lib/unistd_.h.
30151 (Makefile.am): Generate unistd.h from unistd_.h.
30152 * lib/fchdir.c: New file.
30153 * lib/dirent_.h: New file.
30154 * lib/unistd_.h: New file.
30155 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
30156 * m4/fchdir.m4: New file.
30157 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
30158 (gl_HEADER_UNISTD): Invoke it.
30159 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
30161 * lib/backupfile.c (opendir, closedir): Undefine.
30162 * lib/chown.c (open, close): Undefine.
30163 * lib/clean-temp.c (open, close): Undefine.
30164 * lib/copy-file.c (open, close): Undefine.
30165 * lib/execute.c (open, close): Undefine.
30166 * lib/fsusage.c (open, close): Undefine.
30167 * lib/gc-gnulib.c (open, close): Undefine.
30168 * lib/getcwd.c (opendir, closedir): Undefine.
30169 * lib/glob.c (opendir, closedir): Undefine.
30170 * lib/javacomp.c (open, close): Undefine.
30171 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
30172 * lib/openat-proc.c (open, close): Undefine.
30173 * lib/pagealign_alloc.c (open, close): Undefine.
30174 * lib/pipe.c (open, close): Undefine.
30175 * lib/progreloc.c (open, close): Undefine.
30176 * lib/savedir.c (opendir, closedir): Undefine.
30177 * lib/utime.c (open, close): Undefine.
30178 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
30180 2007-01-10 Bruno Haible <bruno@clisp.org>
30182 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
30184 2007-01-12 Eric Blake <ebb9@byu.net>
30186 Provide a robust <wchar.h>. Further simplifications are now
30187 possible in other modules, but not included here.
30188 * modules/wchar: New module.
30189 * m4/wchar.m4: New file.
30190 * lib/wchar_.h: Likewise.
30191 * modules/mbchar (Depends-on): Depend on wchar, as the first use
30193 * MODULES.html.sh (Extended multibyte and wide character utilities):
30196 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
30198 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
30199 to a reasonable default for memory allocation.
30200 (xreadlink): Don't allocate a huge buffer, to work around a buggy
30201 file system that reports garbage st_size values for symlinks.
30202 Problem reported by Liyang Hu.
30204 2007-01-11 Simon Josefsson <simon@josefsson.org>
30206 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
30207 Emacs .#* auto-save files).
30209 2007-01-11 Bruno Haible <bruno@clisp.org>
30211 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
30214 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
30216 Use @...@ consistently in lib/wctype_.h.
30217 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
30218 on it being set to 1 or 0.
30219 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
30220 go back to AC_SUBSTing it.
30221 * modules/wctype (Makefile.am): Undo previous change.
30223 2007-01-10 Eric Blake <ebb9@byu.net>
30225 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
30226 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
30227 * modules/wctype (Makefile.am): Likewise.
30228 Reported by Chris McGuire.
30230 2007-01-10 Jim Meyering <jim@meyering.net>
30232 fts.c: a small readability/maintainability improvement
30233 * lib/fts.c (fts_read): Make this code slightly more readable and
30234 maintainable by hoisting the "sp->fts_cur = p" assignments to
30235 immediately follow the statements that set P. Derived from
30236 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
30238 2007-01-10 Eric Blake <ebb9@byu.net>
30240 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
30241 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
30242 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30243 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
30244 Reported by Chris McGuire.
30246 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30248 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
30251 2007-01-09 Bruno Haible <bruno@clisp.org>
30253 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
30254 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
30256 (func_module): Use them.
30258 2007-01-09 Bruno Haible <bruno@clisp.org>
30260 * modules/unistr/base: New file.
30261 * lib/unistr.h: New file.
30263 * modules/unistr/u8-to-u16: New file.
30264 * lib/unistr/u8-to-u16.c: New file.
30266 * modules/unistr/u8-to-u32: New file.
30267 * lib/unistr/u8-to-u32.c: New file.
30269 * modules/unistr/u16-to-u8: New file.
30270 * lib/unistr/u16-to-u8.c: New file.
30272 * modules/unistr/u16-to-u32: New file.
30273 * lib/unistr/u16-to-u32.c: New file.
30275 * modules/unistr/u32-to-u8: New file.
30276 * lib/unistr/u32-to-u8.c: New file.
30278 * modules/unistr/u32-to-u16: New file.
30279 * lib/unistr/u32-to-u16.c: New file.
30281 * modules/unistr/u8-check: New file.
30282 * modules/unistr/u16-check: New file.
30283 * modules/unistr/u32-check: New file.
30284 * lib/unistr/u8-check.c: New file.
30285 * lib/unistr/u16-check.c: New file.
30286 * lib/unistr/u32-check.c: New file.
30288 * modules/unistr/u8-chr: New file.
30289 * modules/unistr/u16-chr: New file.
30290 * modules/unistr/u32-chr: New file.
30291 * lib/unistr/u8-chr.c: New file.
30292 * lib/unistr/u16-chr.c: New file.
30293 * lib/unistr/u32-chr.c: New file.
30295 * modules/unistr/u8-cmp: New file.
30296 * modules/unistr/u16-cmp: New file.
30297 * modules/unistr/u32-cmp: New file.
30298 * lib/unistr/u8-cmp.c: New file.
30299 * lib/unistr/u16-cmp.c: New file.
30300 * lib/unistr/u32-cmp.c: New file.
30302 * modules/unistr/u8-cpy: New file.
30303 * modules/unistr/u16-cpy: New file.
30304 * modules/unistr/u32-cpy: New file.
30305 * lib/unistr/u8-cpy.c: New file.
30306 * lib/unistr/u16-cpy.c: New file.
30307 * lib/unistr/u32-cpy.c: New file.
30308 * lib/unistr/u-cpy.h: New file.
30310 * modules/unistr/u8-cpy-alloc: New file.
30311 * modules/unistr/u16-cpy-alloc: New file.
30312 * modules/unistr/u32-cpy-alloc: New file.
30313 * lib/unistr/u8-cpy-alloc.c: New file.
30314 * lib/unistr/u16-cpy-alloc.c: New file.
30315 * lib/unistr/u32-cpy-alloc.c: New file.
30316 * lib/unistr/u-cpy-alloc.h: New file.
30318 * modules/unistr/u8-endswith: New file.
30319 * modules/unistr/u16-endswith: New file.
30320 * modules/unistr/u32-endswith: New file.
30321 * lib/unistr/u8-endswith.c: New file.
30322 * lib/unistr/u16-endswith.c: New file.
30323 * lib/unistr/u32-endswith.c: New file.
30324 * lib/unistr/u-endswith.h: New file.
30326 * modules/unistr/u8-mblen: New file.
30327 * modules/unistr/u16-mblen: New file.
30328 * modules/unistr/u32-mblen: New file.
30329 * lib/unistr/u8-mblen.c: New file.
30330 * lib/unistr/u16-mblen.c: New file.
30331 * lib/unistr/u32-mblen.c: New file.
30333 * modules/unistr/u8-mbtouc: New file.
30334 * modules/unistr/u16-mbtouc: New file.
30335 * modules/unistr/u32-mbtouc: New file.
30336 * lib/unistr/u8-mbtouc.c: New file.
30337 * lib/unistr/u16-mbtouc.c: New file.
30338 * lib/unistr/u32-mbtouc.c: New file.
30340 * modules/unistr/u8-mbtouc-safe: New file.
30341 * modules/unistr/u16-mbtouc-safe: New file.
30342 * modules/unistr/u32-mbtouc-safe: New file.
30343 * lib/unistr/u8-mbtouc-safe.c: New file.
30344 * lib/unistr/u16-mbtouc-safe.c: New file.
30345 * lib/unistr/u32-mbtouc-safe.c: New file.
30347 * modules/unistr/u8-move: New file.
30348 * modules/unistr/u16-move: New file.
30349 * modules/unistr/u32-move: New file.
30350 * lib/unistr/u8-move.c: New file.
30351 * lib/unistr/u16-move.c: New file.
30352 * lib/unistr/u32-move.c: New file.
30353 * lib/unistr/u-move.h: New file.
30355 * modules/unistr/u8-next: New file.
30356 * modules/unistr/u16-next: New file.
30357 * modules/unistr/u32-next: New file.
30358 * lib/unistr/u8-next.c: New file.
30359 * lib/unistr/u16-next.c: New file.
30360 * lib/unistr/u32-next.c: New file.
30362 * modules/unistr/u8-prev: New file.
30363 * modules/unistr/u16-prev: New file.
30364 * modules/unistr/u32-prev: New file.
30365 * lib/unistr/u8-prev.c: New file.
30366 * lib/unistr/u16-prev.c: New file.
30367 * lib/unistr/u32-prev.c: New file.
30369 * modules/unistr/u8-set: New file.
30370 * modules/unistr/u16-set: New file.
30371 * modules/unistr/u32-set: New file.
30372 * lib/unistr/u8-set.c: New file.
30373 * lib/unistr/u16-set.c: New file.
30374 * lib/unistr/u32-set.c: New file.
30375 * lib/unistr/u-set.h: New file.
30377 * modules/unistr/u8-startswith: New file.
30378 * modules/unistr/u16-startswith: New file.
30379 * modules/unistr/u32-startswith: New file.
30380 * lib/unistr/u8-startswith.c: New file.
30381 * lib/unistr/u16-startswith.c: New file.
30382 * lib/unistr/u32-startswith.c: New file.
30383 * lib/unistr/u-startswith.h: New file.
30385 * modules/unistr/u8-stpcpy: New file.
30386 * modules/unistr/u16-stpcpy: New file.
30387 * modules/unistr/u32-stpcpy: New file.
30388 * lib/unistr/u8-stpcpy.c: New file.
30389 * lib/unistr/u16-stpcpy.c: New file.
30390 * lib/unistr/u32-stpcpy.c: New file.
30391 * lib/unistr/u-stpcpy.h: New file.
30393 * modules/unistr/u8-stpncpy: New file.
30394 * modules/unistr/u16-stpncpy: New file.
30395 * modules/unistr/u32-stpncpy: New file.
30396 * lib/unistr/u8-stpncpy.c: New file.
30397 * lib/unistr/u16-stpncpy.c: New file.
30398 * lib/unistr/u32-stpncpy.c: New file.
30399 * lib/unistr/u-stpncpy.h: New file.
30401 * modules/unistr/u8-strcat: New file.
30402 * modules/unistr/u16-strcat: New file.
30403 * modules/unistr/u32-strcat: New file.
30404 * lib/unistr/u8-strcat.c: New file.
30405 * lib/unistr/u16-strcat.c: New file.
30406 * lib/unistr/u32-strcat.c: New file.
30407 * lib/unistr/u-strcat.h: New file.
30409 * modules/unistr/u8-strchr: New file.
30410 * modules/unistr/u16-strchr: New file.
30411 * modules/unistr/u32-strchr: New file.
30412 * lib/unistr/u8-strchr.c: New file.
30413 * lib/unistr/u16-strchr.c: New file.
30414 * lib/unistr/u32-strchr.c: New file.
30416 * modules/unistr/u8-strcmp: New file.
30417 * modules/unistr/u16-strcmp: New file.
30418 * modules/unistr/u32-strcmp: New file.
30419 * lib/unistr/u8-strcmp.c: New file.
30420 * lib/unistr/u16-strcmp.c: New file.
30421 * lib/unistr/u32-strcmp.c: New file.
30423 * modules/unistr/u8-strcpy: New file.
30424 * modules/unistr/u16-strcpy: New file.
30425 * modules/unistr/u32-strcpy: New file.
30426 * lib/unistr/u8-strcpy.c: New file.
30427 * lib/unistr/u16-strcpy.c: New file.
30428 * lib/unistr/u32-strcpy.c: New file.
30429 * lib/unistr/u-strcpy.h: New file.
30431 * modules/unistr/u8-strcspn: New file.
30432 * modules/unistr/u16-strcspn: New file.
30433 * modules/unistr/u32-strcspn: New file.
30434 * lib/unistr/u8-strcspn.c: New file.
30435 * lib/unistr/u16-strcspn.c: New file.
30436 * lib/unistr/u32-strcspn.c: New file.
30437 * lib/unistr/u-strcspn.h: New file.
30439 * modules/unistr/u8-strdup: New file.
30440 * modules/unistr/u16-strdup: New file.
30441 * modules/unistr/u32-strdup: New file.
30442 * lib/unistr/u8-strdup.c: New file.
30443 * lib/unistr/u16-strdup.c: New file.
30444 * lib/unistr/u32-strdup.c: New file.
30445 * lib/unistr/u-strdup.h: New file.
30447 * modules/unistr/u8-strlen: New file.
30448 * modules/unistr/u16-strlen: New file.
30449 * modules/unistr/u32-strlen: New file.
30450 * lib/unistr/u8-strlen.c: New file.
30451 * lib/unistr/u16-strlen.c: New file.
30452 * lib/unistr/u32-strlen.c: New file.
30453 * lib/unistr/u-strlen.h: New file.
30455 * modules/unistr/u8-strmblen: New file.
30456 * modules/unistr/u16-strmblen: New file.
30457 * modules/unistr/u32-strmblen: New file.
30458 * lib/unistr/u8-strmblen.c: New file.
30459 * lib/unistr/u16-strmblen.c: New file.
30460 * lib/unistr/u32-strmblen.c: New file.
30462 * modules/unistr/u8-strmbtouc: New file.
30463 * modules/unistr/u16-strmbtouc: New file.
30464 * modules/unistr/u32-strmbtouc: New file.
30465 * lib/unistr/u8-strmbtouc.c: New file.
30466 * lib/unistr/u16-strmbtouc.c: New file.
30467 * lib/unistr/u32-strmbtouc.c: New file.
30469 * modules/unistr/u8-strncat: New file.
30470 * modules/unistr/u16-strncat: New file.
30471 * modules/unistr/u32-strncat: New file.
30472 * lib/unistr/u8-strncat.c: New file.
30473 * lib/unistr/u16-strncat.c: New file.
30474 * lib/unistr/u32-strncat.c: New file.
30475 * lib/unistr/u-strncat.h: New file.
30477 * modules/unistr/u8-strncmp: New file.
30478 * modules/unistr/u16-strncmp: New file.
30479 * modules/unistr/u32-strncmp: New file.
30480 * lib/unistr/u8-strncmp.c: New file.
30481 * lib/unistr/u16-strncmp.c: New file.
30482 * lib/unistr/u32-strncmp.c: New file.
30484 * modules/unistr/u8-strncpy: New file.
30485 * modules/unistr/u16-strncpy: New file.
30486 * modules/unistr/u32-strncpy: New file.
30487 * lib/unistr/u8-strncpy.c: New file.
30488 * lib/unistr/u16-strncpy.c: New file.
30489 * lib/unistr/u32-strncpy.c: New file.
30490 * lib/unistr/u-strncpy.h: New file.
30492 * modules/unistr/u8-strnlen: New file.
30493 * modules/unistr/u16-strnlen: New file.
30494 * modules/unistr/u32-strnlen: New file.
30495 * lib/unistr/u8-strnlen.c: New file.
30496 * lib/unistr/u16-strnlen.c: New file.
30497 * lib/unistr/u32-strnlen.c: New file.
30498 * lib/unistr/u-strnlen.h: New file.
30500 * modules/unistr/u8-strpbrk: New file.
30501 * modules/unistr/u16-strpbrk: New file.
30502 * modules/unistr/u32-strpbrk: New file.
30503 * lib/unistr/u8-strpbrk.c: New file.
30504 * lib/unistr/u16-strpbrk.c: New file.
30505 * lib/unistr/u32-strpbrk.c: New file.
30506 * lib/unistr/u-strpbrk.h: New file.
30508 * modules/unistr/u8-strrchr: New file.
30509 * modules/unistr/u16-strrchr: New file.
30510 * modules/unistr/u32-strrchr: New file.
30511 * lib/unistr/u8-strrchr.c: New file.
30512 * lib/unistr/u16-strrchr.c: New file.
30513 * lib/unistr/u32-strrchr.c: New file.
30515 * modules/unistr/u8-strspn: New file.
30516 * modules/unistr/u16-strspn: New file.
30517 * modules/unistr/u32-strspn: New file.
30518 * lib/unistr/u8-strspn.c: New file.
30519 * lib/unistr/u16-strspn.c: New file.
30520 * lib/unistr/u32-strspn.c: New file.
30521 * lib/unistr/u-strspn.h: New file.
30523 * modules/unistr/u8-strstr: New file.
30524 * modules/unistr/u16-strstr: New file.
30525 * modules/unistr/u32-strstr: New file.
30526 * lib/unistr/u8-strstr.c: New file.
30527 * lib/unistr/u16-strstr.c: New file.
30528 * lib/unistr/u32-strstr.c: New file.
30529 * lib/unistr/u-strstr.h: New file.
30531 * modules/unistr/u8-strtok: New file.
30532 * modules/unistr/u16-strtok: New file.
30533 * modules/unistr/u32-strtok: New file.
30534 * lib/unistr/u8-strtok.c: New file.
30535 * lib/unistr/u16-strtok.c: New file.
30536 * lib/unistr/u32-strtok.c: New file.
30537 * lib/unistr/u-strtok.h: New file.
30539 * modules/unistr/u8-uctomb: New file.
30540 * modules/unistr/u16-uctomb: New file.
30541 * modules/unistr/u32-uctomb: New file.
30542 * lib/unistr/u8-uctomb.c: New file.
30543 * lib/unistr/u16-uctomb.c: New file.
30544 * lib/unistr/u32-uctomb.c: New file.
30546 * MODULES.html.sh (Unicode string functions): Add the new modules.
30548 2007-01-08 Bruno Haible <bruno@clisp.org>
30550 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
30551 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
30554 2007-01-08 Karl Berry <karl@gnu.org>
30556 * doc/error.texi: mention that main() fns must set program_name
30557 when progname is used.
30559 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
30561 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
30562 WCTYPE_H is empty, for the benefit of builds from non-distclean
30563 directories. Problem reported by Eric Blake in
30564 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
30566 2007-01-08 Bruno Haible <bruno@clisp.org>
30568 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
30569 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
30570 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
30571 PROVIDE_CANONICALIZE_FILENAME_MODE.
30572 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
30574 2007-01-08 Bruno Haible <bruno@clisp.org>
30576 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
30577 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
30578 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
30579 * lib/fts.c: Likewise.
30580 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
30582 2006-12-25 Bruno Haible <bruno@clisp.org>
30584 * modules/utf8-ucs4-safe: New file.
30585 * lib/utf8-ucs4-safe.h: New file.
30586 * lib/unistr/utf8-ucs4-safe.c: New file.
30588 * modules/utf16-ucs4-safe: New file.
30589 * lib/utf16-ucs4-safe.h: New file.
30590 * lib/unistr/utf16-ucs4-safe.c: New file.
30592 * MODULES.html.sh (Unicode string functions): Add the new modules.
30594 2007-01-08 Bruno Haible <bruno@clisp.org>
30596 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
30597 (Depends-on): Add unitypes.
30598 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
30599 (u8_mbtouc_aux): Move out to separate file.
30600 (u8_mbtouc): Use ucs4_t, uint8_t types.
30601 * lib/unistr/utf8-ucs4.c: New file.
30603 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
30604 (Depends-on): Add unitypes.
30605 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
30606 (u16_mbtouc_aux): Move out to separate file.
30607 (u16_mbtouc): Use ucs4_t, uint16_t types.
30608 * lib/unistr/utf16-ucs4.c: New file.
30610 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
30611 (Depends-on): Add unitypes.
30612 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
30613 (u8_uctomb_aux): Move out to separate file.
30614 (u8_uctomb): Use ucs4_t, uint8_t types.
30615 * lib/unistr/ucs4-utf8.c: New file.
30617 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
30618 (Depends-on): Add unitypes.
30619 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
30620 (u16_uctomb_aux): Move out to separate file.
30621 (u16_uctomb): Use ucs4_t, uint16_t types.
30622 * lib/unistr/ucs4-utf16.c: New file.
30624 2006-12-25 Bruno Haible <bruno@clisp.org>
30626 * modules/unitypes: New file.
30627 * lib/unitypes.h: New file.
30628 * MODULES.html.sh (func_all_modules): New section "Unicode string
30629 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
30630 this section. Add unitypes.
30632 2007-01-08 Bruno Haible <bruno@clisp.org>
30634 Avoid variable names that conflict with those from libtool.
30635 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
30636 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
30637 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
30638 library_names_spec to acl_library_names_spec, hardcode_* to
30640 Reported by Ralf Wildenhues.
30642 2007-01-08 Bruno Haible <bruno@clisp.org>
30644 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
30646 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
30648 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
30649 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
30651 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
30653 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
30654 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
30655 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
30656 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
30658 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
30660 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
30661 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
30662 GC_USE_<algorithm>.
30663 * lib/gc-libgcrypt.c: Likewise.
30664 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
30665 * modules/gc-arctwo (configure.ac): Likewise.
30666 * modules/gc-des (configure.ac): Likewise.
30667 * modules/gc-hmac-md5 (configure.ac): Likewise.
30668 * modules/gc-hmac-sha1 (configure.ac): Likewise.
30669 * modules/gc-md2 (configure.ac): Likewise.
30670 * modules/gc-md4 (configure.ac): Likewise.
30671 * modules/gc-md5 (configure.ac): Likewise.
30672 * modules/gc-random (configure.ac): Likewise.
30673 * modules/gc-rijndael (configure.ac): Likewise.
30674 * modules/gc-sha1 (configure.ac): Likewise.
30676 2007-01-08 Bruno Haible <bruno@clisp.org>
30678 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
30680 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
30682 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
30684 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
30685 * modules/fcntl-safer (configure.ac): Likewise.
30686 * modules/fopen-safer (configure.ac): Likewise.
30687 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
30688 GNULIB_FWRITEERROR macro definition.
30690 2007-01-08 Bruno Haible <bruno@clisp.org>
30692 * m4/gnulib-common.m4: New file.
30693 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
30694 (func_get_filelist): Add m4/gnulib-common.m4.
30696 2007-01-08 Bruno Haible <bruno@clisp.org>
30698 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
30701 2007-01-08 Jim Meyering <jim@meyering.net>
30703 Use a more robust test for a "can't happen" condition.
30704 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
30705 narrowed the st_size value. Presuming the "can't happen" condition
30706 is true, that narrowing could conceivably convert an invalid st_size
30707 value into a valid one. Instead, use a change based on Matthew
30708 Woehlke's original patch.
30710 Slight readability improvement: use an assert-like macro
30711 in place of literal "abort ()" uses.
30712 * lib/fts.c (fts_assert): Define.
30713 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
30714 Use this macro instead of a bare 'abort'.
30716 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
30718 Don't worry about using IRIX 5.3's wctype.h broken definitions;
30719 simply work around them.
30720 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
30721 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
30722 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
30724 Don't bother to define as macros, since the standard doesn't require it.
30725 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
30726 longer worry about IRIX 5.3.
30727 (HAVE_WCTYPE_CTMP_BUG): Remove.
30729 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
30731 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
30732 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
30733 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
30734 Problems reported by Georg Schwarz for IRIX 5.3.
30736 * gnulib-tool (autoconf_minversion): Take the maximum version number
30737 found, not the minimum. Problem reported by James Youngman.
30739 2007-01-03 Karl Berry <karl@gnu.org>
30741 * doc/error.texi: new file, explaining interaction with progname.
30742 * doc/gnulib.texi: include it. Update copyright.
30744 2007-01-03 Simon Josefsson <simon@josefsson.org>
30746 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
30747 AC_CANONICAL_HOST, to improve autobuild outputs.
30749 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
30750 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30752 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
30753 sockets, server sockets, and other file descriptors. Count errors
30754 to compute the return value. Reorder the code a bit to be easier
30755 to follow. Don't set event bits that were not requested (except
30756 POLLERR and POLLHUP).
30758 2007-01-01 Bruno Haible <bruno@clisp.org>
30760 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
30762 2007-01-03 Jim Meyering <jim@meyering.net>
30764 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
30766 2007-01-02 Bruno Haible <bruno@clisp.org>
30768 * modules/settime (Include): Require timespec.h.
30769 * modules/nanosleep (Include): Likewise.
30771 2007-01-01 Bruno Haible <bruno@clisp.org>
30773 * gnulib-tool (func_emit_copyright_notice): Bump year.
30774 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
30776 2007-01-01 Bruno Haible <bruno@clisp.org>
30778 Improve support for OpenBSD.
30779 * build-aux/config.rpath (libname_spec): Export.
30780 (library_names_spec): New variable. Export.
30781 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
30782 library_names_spec from the config.rpath output. Locate shared library
30783 through the name pattern in library_names_spec.
30785 2007-01-01 Eric Blake <ebb9@byu.net>
30787 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
30789 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
30791 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
30792 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
30793 assume the C locale, and avoid an "eval" that could cause trouble.
30794 Problem with SORT reported by Bob Proulx.
30796 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
30797 Define. Trivial patch from Henning Nielsen Lund, originally
30798 sent to bug-grep@gnu.org today.
30800 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
30802 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
30803 struct stat. Problem reported by Henning Nielsen Lund.
30804 * lib/acl.c: Include acl.h first, to check interface. Don't
30805 bother to include sys/types.h and sys/stat.h again.
30807 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
30809 Import the following change from libc; problem reported by
30812 2005-10-13 Ulrich Drepper <drepper@redhat.com>
30815 * lib/argp.h: Remove __NTH for __argp_usage inline function.
30817 2006-12-28 Jim Meyering <jim@meyering.net>
30819 * build-aux/announce-gen: Do not assume that the package
30820 builds any of tar.gz, tar.bz2, and .xdelta files.
30821 Suggestion from Simon Josefsson.
30823 2006-12-28 Simon Josefsson <simon@josefsson.org>
30825 * modules/announce-gen: New file.
30827 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
30829 * lib/mbchar.h: Just include <wctype.h>; the wctype module
30830 handles its gotchas now.
30831 * lib/mbswidth.c: Likewise.
30832 * lib/wcwidth.h: Likewise.
30833 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
30834 and iswcntrl; the wctype module does this stuff now.
30835 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
30836 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30837 * modules/mbchar (Depends-on): Add wctype.
30838 * modules/mbswidth (Depends-on): Likewise.
30839 * modules/wcwidth (Depends-on): Likewise.
30841 2006-12-27 Eric Blake <ebb9@byu.net>
30843 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
30844 module uses more than what <wctype.h> is required to provide.
30846 2006-12-26 Eric Blake <ebb9@byu.net>
30848 * gnulib-tool (sed_extract_prog): Avoid space-tab.
30850 2006-12-26 Eric Blake <ebb9@byu.net>
30852 * modules/absolute-header: New module.
30853 * modules/fcntl (Depends-on): Depend on it.
30854 * modules/inttypes (Depends-on): Likewise.
30855 * modules/stdint (Depends-on): Likewise.
30856 * modules/sys_stat (Depends-on): Likewise.
30857 * modules/wctype (Depends-on): Likewise.
30858 * MODULES.html.sh (Support for building libraries and
30859 executables): Document it.
30861 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
30863 * gnulib-tool (SED): Remove, undoing previous change.
30864 The problem was that it broke coreutils on Solaris, because
30865 "sed --posix" leaked into a makefile.
30866 (sed): New alias, if 'alias' and GNU sed.
30868 2006-12-24 Jim Meyering <jim@meyering.net>
30870 Work around an fchownat bug in glibc-2.4:
30871 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
30872 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
30873 in spite of the -P option.
30874 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
30876 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
30877 * modules/openat (Files): Add lib/fchownat.c.
30878 * lib/openat.c (fchownat): Don't define here. Move to...
30879 * lib/fchownat.c: ...this new file.
30881 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
30883 Fix bug reported by Bruno Haible in
30884 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
30885 where quotearg.c didn't compile on Mac OS X 10.2 because it
30886 lacks <wchar.h> and wint_t.
30887 * lib/wctype_.h (__wctype_wint_t): New type.
30888 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
30889 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
30890 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
30891 Arg is now of type __wctype_wint_t, not wint_t.
30892 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
30893 substitute HAVE_WINT_T.
30894 * modules/wctype (Files): Add m4/wint_t.m4.
30895 (wctype.h): Substitute HAVE_WINT_T.
30897 2006-12-23 Bruno Haible <bruno@clisp.org>
30899 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
30901 2006-12-23 Bruno Haible <bruno@clisp.org>
30903 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
30905 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
30908 2006-12-22 Bruno Haible <bruno@clisp.org>
30910 * lib/copy-file.c: Include acl.h.
30911 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
30912 Close the file descriptors only after being done with copy_acl.
30913 * modules/copy-file (Depends-on): Add acl.
30915 2006-12-22 Bruno Haible <bruno@clisp.org>
30917 * gnulib-tool (SED): New variable.
30918 Use $SED instead of sed everywhere.
30920 2006-12-22 Bruno Haible <bruno@clisp.org>
30922 * modules/no-c++: New file.
30923 * m4/no-c++.m4: New file.
30924 * MODULES.html.sh (Support for building libraries and executables):
30927 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
30929 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
30930 Include <limits.h>, and use its INT_MAX to rewrite the
30931 j loop so that it does not overflow 'int'. Problem reported by
30933 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
30934 Play it safe by shifting left by 1 rather than multiplying by 2,
30935 as GCC is less likely to optimize this away when the value
30936 is signed (when it assumes overflow leads to undefined behavior).
30937 Also, don't assume time_t uses two's complement.
30939 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
30941 * MODULES.html.sh: New module wctype.
30942 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
30943 * lib/fnmatch.c: Don't bother to include <wchar.h> before
30944 <wctype.h>, since the new wctype module should fix this.
30945 * lib/quotearg.c: Include <wctype.h> unconditionally, since
30946 the wctype module should arrange for it.
30947 * lib/regex_internal.h: Likewise.
30948 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
30949 since the wctype module should handle this now.
30950 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
30951 * modules/fnmatch (Depends-on): Add wctype.
30952 * modules/quotearg (Depends-on): Likewise.
30953 * modules/regex (Depends-on): Likewise.
30955 2006-12-19 Bruno Haible <bruno@clisp.org>
30957 * lib/strdup.h [C++]: Wrap definitions in extern "C".
30958 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
30960 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30962 * modules/savewd (Depends-on): Fix dependency on fcntl.
30964 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
30966 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
30967 conforms to C99, rather than relying on the user's environment
30968 setting of STDINT_H.
30970 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
30971 and Eric Blake <ebb9@byu.net>
30973 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
30974 This is more consistent with the other defines here.
30975 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
30976 Port to z/OS. Problem reported by Paul Gilmartin.
30977 Change local vars to use gl_ prefix rather than ac_.
30978 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
30979 with other defines.
30980 * modules/double-slash-root: New module.
30981 * modules/dirname (Files): Remove m4/double-slash-root.m4.
30982 (Depends-on): Add double-slash-root.
30983 * MODULES.html.sh (File system functions): Mention new module.
30985 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
30987 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
30988 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
30989 This is for the benefit of gzip, which doesn't do i18n.
30991 2006-12-12 Jim Meyering <jim@meyering.net>
30993 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
30994 Reported by Andreas Schwab <schwab@suse.de>.
30996 2006-12-12 Bruno Haible <bruno@clisp.org>
30998 Merge these changes.
30999 2006-09-05 Bruno Haible <bruno@clisp.org>
31000 * lib/iconvme.c (iconv_string): No need to save and restore errno when
31001 iconv_alloc succeeded.
31002 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
31003 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
31004 test for " && dest " at the end - dest is always != NULL there. Call
31005 iconv with 4xNULL arguments initially, to reset the state. Call iconv
31006 with 2xNULL arguments, also to flush the state storage. Handle the
31007 IRIX iconv behaviour. Realloc the final result, to throw away unused
31010 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
31012 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
31013 and fchmodat unconditionally, since glibc 2.4 has them.
31014 Problem reported by Arkadiusz Miskiewicz.
31016 2006-12-10 Bruno Haible <bruno@clisp.org>
31018 * gnulib-tool (func_import): Show the include files only for those
31019 modules that are copied and specified.
31020 Reported by Karl Berry.
31022 2006-12-08 Jim Meyering <jim@meyering.net>
31024 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
31025 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
31027 * build-aux/announce-gen: Add two new options, both optional:
31028 --bootstrap-tools=TOOL_LIST
31029 a comma-separated list of tools, e.g.,
31030 autoconf,automake,bison,gnulib
31031 --gnulib-snapshot-date=DATE
31032 if gnulib is in the bootstrap tool list,
31033 then report this as the snapshot date.
31034 If not specified, use the current date/time.
31035 If you specify a date here, be sure it's UTC.
31037 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31039 * tests/test-argp-2.sh: Fix test to match actual output.
31040 (func_compare): Fix sed script to be portable.
31042 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
31044 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
31045 workaround for this case. It is not autoconfigured now; offhand
31046 it's hard to see how to autoconfigure it.
31048 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
31050 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
31051 a directory that is about to be chowned. Such a directory's
31052 initial file permissions should permit the owner only and this
31053 should not be changed until after the chown, since the group and
31054 other bits would be incorrect if they granted permission before
31057 Fix porting problem for iswctype reported by Georg Schwarz in:
31058 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
31059 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
31060 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
31061 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
31062 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31064 2006-12-03 Jim Meyering <jim@meyering.net>
31066 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
31067 p->fts_statp may not yet be defined.
31068 (fts_read): Instead, set it in the caller, once p->fts_statp is
31069 sure to be defined, and corresponds to a top-level directory.
31070 This bug made du -x fail. Here's the coreutils test case:
31071 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
31072 Reported by Mike Frysinger.
31074 2006-12-01 Jim Meyering <jim@meyering.net>
31076 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
31077 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
31078 Reported by Simon Josefsson.
31080 2006-11-30 Jim Meyering <jim@meyering.net>
31082 * m4/warning.m4: Use the all-permissive copyright notice
31083 recommended by RMS (rather than LGPL).
31084 * m4/vararrays.m4: Likewise.
31085 * m4/flexmember.m4: Likewise.
31087 2006-11-29 Bruno Haible <bruno@clisp.org>
31089 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
31090 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
31092 Reported by Simon Josefsson <simon@josefsson.org>.
31094 2006-11-28 James Youngman <jay@gnu.org>
31096 * README: Advise users that they might find the bug-gnulib@gnu.org
31097 and autotools-announce@gnu.org mailing lists useful.
31099 2006-11-28 Bruno Haible <bruno@clisp.org>
31101 * m4/ptrdiff_max.m4: Remove file.
31103 2006-11-21 Bruno Haible <bruno@clisp.org>
31105 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
31107 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31108 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
31110 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31111 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
31113 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31115 2006-11-28 Jim Meyering <jim@meyering.net>
31117 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
31118 warning from "gcc -Wshadow" about shadowing the builtin.
31120 2006-11-27 Bruno Haible <bruno@clisp.org>
31122 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
31124 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
31126 2006-11-27 Bruno Haible <bruno@clisp.org>
31127 Paul Eggert <eggert@cs.ucla.edu>
31129 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
31131 2006-11-26 Bruno Haible <bruno@clisp.org>
31133 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
31134 noinst_LTLIBRARIES.
31136 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
31137 Bruno Haible <bruno@clisp.org>
31139 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
31140 if compiling with "gcc -ansi".
31142 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
31144 Fix some incompatibilities with gcc -ansi -pedantic.
31145 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
31146 if compiling pedantically with GCC, unless it's C99 or later.
31147 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
31148 it mishandles gcc -ansi -pedantic as well.
31149 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
31151 * lib/regexec.c (check_node_accept_bytes): Don't use auto
31152 initializers for struct if -pedantic, unless it's C99 or later.
31154 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
31156 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
31157 Don't close an fd more than once. Identical atimes indicate
31158 success, not failure.
31160 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
31162 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
31164 2006-11-23 Jim Meyering <jim@meyering.net>
31166 * build-aux/announce-gen: New file. From coreutils.
31168 2006-11-22 Jim Meyering <jim@meyering.net>
31170 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
31171 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
31172 (fts_read): Use a temporary to narrow the overused st_size member
31173 before using it in a switch statement. Reported by Matthew Woehlke.
31175 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
31176 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
31178 2006-11-20 Bruno Haible <bruno@clisp.org>
31180 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
31181 changequote instead of pairs of brackets.
31182 Reported by Andreas Schwab <schwab@suse.de>.
31184 2006-11-21 Jim Meyering <jim@meyering.net>
31186 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
31187 so as to remain compatible with older compilers.
31188 Patch from Michael Deutschmann.
31190 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
31192 * MODULES.html.sh (File system functions): Add openat.
31194 * lib/openat.h (rpl_fstatat): New macro, if
31195 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
31196 (fstatat): Define to rpl_fstatat under the same conditions,
31197 unless COMPILING_FSTATAT.
31198 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
31199 seems to have the bug.
31200 * lib/fstatat.c: New file.
31201 * modules/openat (Files): Add it.
31203 2006-11-20 Bruno Haible <bruno@clisp.org>
31205 * Makefile: New file.
31207 2006-11-20 Jim Meyering <jim@meyering.net>
31209 The beginnings of syntax-related checks for gnulib.
31210 * lib/Makefile: New file.
31211 * lib/t-idcache: New script. Ensure that the two halves of
31212 idcache.c stay in sync.
31214 * lib/idcache.c: Adjust comments in user- and group- portions to
31215 be more accurate, and to be consistent with one another.
31217 2006-11-20 Jim Meyering <jim@meyering.net>
31219 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
31220 continue using the flexible array member (thus, this module performs
31221 half as many malloc calls), with the addition that...
31222 (getgroup, getuser): Consistently record a non-match via an empty
31223 "name" string, and map an empty string match to a NULL return value.
31224 * modules/idcache (Depends-on): Re-add flexmember.
31226 * lib/idcache.c (getuser): Remove all uses of the register keyword.
31227 (getuidbyname, getgroup, getgidbyname): Likewise.
31229 Use cleaner syntax: NULL rather than 0.
31230 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
31232 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
31234 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
31235 It mishandled the case where the group was missing.
31236 Problem reported by Greg Schafer.
31237 * modules/idcache: Likewise.
31239 2006-11-18 Jim Meyering <jim@meyering.net>
31241 * check-module (%exempt_header): Add exception for some
31242 conditionally-included headers.
31244 * modules/i-ring (Depends-on): Add verify.
31245 (License): Change to LGPL.
31247 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
31249 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
31250 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
31251 and inttostr.h. Use snprintf rather than uinttostr, so that
31252 LGPLed code doesn't depend on GPLed.
31254 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
31256 * modules/inline (License): Change from GPL to LGPL.
31258 2006-11-17 Jim Meyering <jim@meyering.net>
31260 * modules/d-type (License): Switch to LGPL.
31262 2006-11-15 Bruno Haible <bruno@clisp.org>
31264 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
31266 2006-11-15 Eric Blake <ebb9@byu.net>
31268 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
31269 the module dependency.
31271 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31272 Bruno Haible <bruno@clisp.org>
31274 * gnulib-tool (func_create_testdir): Add license consistency check.
31276 2006-11-15 Eric Blake <ebb9@byu.net>
31278 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
31279 random "(cached)" in configure output.
31281 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31283 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
31284 test for conforming inttypes.h is both announced and cached.
31286 * MODULES.html.sh (seen_modules, seen_files): New variables.
31287 (func_module): Rewrite to use a few less gnulib-tool and sed
31288 invocations. Avoid a couple of quadratic algorithms for ...
31289 (missed_modules, missed_files): ... these, with ...
31290 (func_append, func_tmpdir): ... these new functions, from
31291 gnulib-tool. Analogously, install traps for cleanup.
31293 * tests/test-gc.c (main): Remove unused variables.
31294 * tests/test-read-file.c: Include stdlib.h, for 'free'.
31296 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
31298 * modules/inttostr (License): Change to LGPL.
31300 2006-11-14 Eric Blake <ebb9@byu.net>
31302 * modules/tempname (License): Change to LGPL.
31304 2006-11-14 Eric Blake <ebb9@byu.net>
31306 * doc/functions.texi (Function Portability): *printf functions on
31307 Cygwin now understand all POSIX size specifiers.
31309 2006-11-14 Bruno Haible <bruno@clisp.org>
31311 * modules/c-ctype (License): Change to LGPL.
31313 2006-11-12 Bruno Haible <bruno@clisp.org>
31315 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
31316 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
31317 for GNOME libraries, for which the include files are installed in
31318 subdirectories of $prefix/include.
31320 2006-11-12 Bruno Haible <bruno@clisp.org>
31322 * m4/lib-link.m4: Require at least autoconf-2.54.
31323 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
31324 name to underscores for the --with option.
31326 2006-11-13 Bruno Haible <bruno@clisp.org>
31328 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
31329 the tests directory.
31330 Reported by Ralf Wildenhues.
31332 2006-11-13 Bruno Haible <bruno@clisp.org>
31334 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
31335 (func_emit_initmacro_end): Undo the override here.
31336 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
31337 Works around the famous automake error in coreutils.
31339 2006-11-13 Eric Blake <ebb9@byu.net>
31341 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
31342 element, not its node.
31344 2006-11-12 Bruno Haible <bruno@clisp.org>
31346 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
31347 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
31349 2006-11-12 Bruno Haible <bruno@clisp.org>
31351 * gnulib-tool: New option --local-symlink.
31352 (func_usage): Document it.
31353 (lsymbolic): New variable.
31354 (func_import, func_create_testdir): If --symlink was not specified,
31355 test whether --local-symlink was specified and the file comes from
31356 the local_gnulib_dir.
31358 2006-11-12 Bruno Haible <bruno@clisp.org>
31360 * gnulib-tool (func_ln): New function.
31361 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
31363 2006-11-12 Bruno Haible <bruno@clisp.org>
31365 Finish support for source files in subdirectories.
31366 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
31367 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
31369 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
31371 2006-11-12 Bruno Haible <bruno@clisp.org>
31373 * gnulib-tool (func_get_automake_snippet): Synthesize also an
31374 EXTRA_lib_SOURCES augmentation.
31375 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
31377 2006-11-12 Jim Meyering <jim@meyering.net>
31379 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
31380 file descriptors. This also averts a failure on systems with
31381 native openat support when a traversed directory lacks "x" access.
31382 * lib/fts_.h: Include "i-ring.h"
31383 (struct FTS) [fts_fd_ring]: New member.
31384 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
31385 (FCHDIR): Add parentheses.
31386 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
31387 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
31388 When descending, rather than simply closing the previous
31389 fts_cwd_fd value, push that file descriptor onto the ring.
31390 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
31391 (fts_open): Initialize the new fd_ring member.
31392 (fts_close): Clear the ring.
31393 (fts_safe_changedir): When possible, use our new fd_ring to skip
31394 the diropen and fstat and dev/ino comparison that would normally
31395 accompany a virtual `chdir ("..")'.
31397 * modules/fts (Depends-on): Add i-ring.
31398 * modules/i-ring: New module.
31399 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
31400 * m4/i-ring.m4: New file.
31402 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31404 * gnulib-tool (func_create_testdir): Fix replacement of
31405 `build-aux' in configure.ac. Run autotools in gltests
31407 (func_create_testdir, func_create_megatestdir, test): There is
31408 no need for '--force' in most autotool invocations in a new
31409 tree. Actually fail the whole test if any of the tools, or the
31410 configure or make stages fail.
31412 Sync from Automake.
31413 * build-aux/gnupload: Revert last change. Add pointer to upload
31414 instructions of the GNU Maintenance Instructions.
31415 Suggestion by Karl Berry.
31417 2006-11-10 Jim Meyering <jim@meyering.net>
31419 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
31421 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
31423 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
31424 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
31425 (bind_textdomain_codeset) [! ENABLE_NLS]:
31426 Evaluate all the arguments. That way, callers get compatible behavior
31427 if the arguments have side effects. Also, it avoids some GCC
31428 diagnostics in some cases; Joel E. Denny reported problems when Bison
31429 was configured with --enable-gcc-warnigs.
31431 2006-11-10 Jim Meyering <jim@meyering.net>
31433 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
31434 relevant options in CFLAGS (like -O, -fno-inline) are taken into
31437 2006-11-10 Jim Meyering <jim@meyering.net>
31439 * modules/inline: New file/module.
31440 * modules/xalloc (Files): Remove m4/inline.m4.
31441 (Depends-on): Add inline, instead.
31442 * modules/oset: Likewise.
31443 * modules/list: Likewise.
31445 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
31447 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
31448 Problem reported by Matthew Woehlke.
31450 2006-11-09 Bruno Haible <bruno@clisp.org>
31452 * lib/tempname.c (gen_tempname): Remove variant that invokes
31454 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
31457 2006-11-08 Bruno Haible <bruno@clisp.org>
31459 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
31460 to 'yes' instead of 'cross-compiling'.
31462 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
31464 * lib/quotearg.h (quotearg_free): New decl.
31465 * lib/quotearg.c (quotearg_free): New function.
31466 (slot0, nslots, slotvec0, slotvec):
31467 Now file-scope so that quotearg_free can get at them.
31469 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31471 Sync from Automake.
31472 * build-aux/gnupload: Add missing 'gnu' to example URL.
31473 Report by Karl Berry.
31475 2006-11-08 Bruno Haible <bruno@clisp.org>
31477 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
31478 Suggested by Paul Eggert.
31480 2006-11-08 Jim Meyering <jim@meyering.net>
31482 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
31483 It's already included if !_LIBC.
31484 (fts_safe_changedir): Add a comment.
31486 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
31488 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
31489 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
31492 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
31493 definitions up, to avoid colliding with change below.
31494 (static_inline) [HAVE_INLINE]: New macro.
31495 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
31496 Provide extern decls when !HAVE_INLINE. Do not define unless
31497 static_inline is defined, either by us or by xmalloc.c. Use
31498 static_inline rather than static inline.
31499 (XCALLOC): Optimize sizeof(T) = 1 case.
31500 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
31502 2006-11-07 Bruno Haible <bruno@clisp.org>
31504 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
31505 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
31507 * modules/xalloc (Files): Add m4/inline.m4.
31509 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31511 * README: Fix typo.
31512 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
31513 (Miscellanous Notes): ...from this.
31515 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
31517 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
31518 Mention that offsetof should be used instead of sizeof.
31521 2006-11-07 Bruno Haible <bruno@clisp.org>
31523 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
31525 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
31527 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
31528 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
31529 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
31530 (gl_tree_add_before, gl_tree_add_after):
31531 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
31532 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
31533 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
31534 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
31535 (gl_linked_add_after, gl_linked_add_at): Likewise.
31536 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
31537 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
31538 (gl_tree_add_before, gl_tree_add_after): Likewise.
31539 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
31540 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
31541 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
31543 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31545 * lib/gl_oset.h: Use C comment style, not C++ comment style.
31547 2006-11-06 Bruno Haible <bruno@clisp.org>
31549 * m4/inline.m4: New file.
31550 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
31551 * modules/list (Files): Add m4/inline.m4.
31552 * modules/oset (Files): Likewise.
31554 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
31556 * lib/idcache.c: Include <stddef.h>, for offsetof.
31557 (struct userid.name): Change from char * to a flexible array member.
31559 * modules/idcache (Depends-on): Add flexmember.
31561 * MODULES.html.sh (Core language properties): New module flexmember.
31562 * modules/flexmember, m4/flexmember.m4: New files.
31564 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
31565 inline functions that are identical with the old xnmalloc_inline,
31566 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
31567 that we can avoid some unnecessary integer multiplications and
31568 divisions in the common case where the element size is known at
31570 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
31572 (xnboundedmalloc): Remove.
31573 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
31574 arguments, for consistency with rest of this header.
31575 (xcharalloc): Rewrite using XNMALLOC.
31576 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
31577 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
31578 versions have been moved to lib/xalloc.h and renamed to be the
31579 non-*_inline versions.
31580 (xmalloc, xrealloc): Implement without reference to the xnmalloc
31581 and xnrealloc functions, since those functions are now inline and
31583 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
31584 renaming described above.
31585 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
31586 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
31587 captures the dependency in AC_C_INLINE.
31589 New module canonicalize-lgpl, proposed by Charles Wilson in
31590 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
31591 with a few small changes afterwards.
31592 * MODULES.html.sh (File system functions): New module
31594 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
31595 and canonicalize_file_name.
31596 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
31597 * modules/canonicalize-lgpl: New files.
31599 2006-11-05 Bruno Haible <bruno@clisp.org>
31601 * gnulib-tool (func_import, func_create_testdir): Create directories
31602 also for files in subdirectories of lib/.
31604 2006-11-05 Bruno Haible <bruno@clisp.org>
31606 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
31609 2006-11-03 Bruno Haible <bruno@clisp.org>
31611 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
31612 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
31613 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
31614 (xnboundedmalloc): New inline function.
31615 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
31616 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
31618 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
31620 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
31621 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
31622 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
31624 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
31625 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
31627 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
31628 gl_tree_add_after): Use XMALLOC instead of xmalloc.
31629 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
31631 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
31632 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
31633 gl_tree_add_after): Use XMALLOC instead of xmalloc.
31634 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
31635 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
31636 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
31637 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
31639 2006-11-03 Bruno Haible <bruno@clisp.org>
31641 * lib/c-ctype.h [C++]: Define functions without name mangling.
31642 * lib/fwriteerror.h [C++]: Likewise.
31643 * lib/gcd.h [C++]: Likewise.
31644 * lib/linebreak.h [C++]: Likewise.
31646 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
31648 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
31649 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
31650 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
31651 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
31652 Check for functions and headers just once.
31653 Check for declaration of canonicalize_file_name.
31654 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
31656 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
31658 * gnulib-tool (func_import): Fix typo in actioncmd.
31660 2006-11-02 Bruno Haible <bruno@clisp.org>
31662 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
31663 newline sequence in the Makefile.am snippet as a space, like "make"
31665 Reported by Roger Persson <perrog@gmail.com>.
31667 2006-11-01 Bruno Haible <bruno@clisp.org>
31669 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
31670 already declared in <string.h>.
31671 * lib/strcase.h (strncasecmp): Don't declare it if yes.
31673 2006-11-01 Bruno Haible <bruno@clisp.org>
31675 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
31676 * lib/strcase.h: Include <string.h>.
31677 (strcasecmp): Define to rpl_strcasecmp here.
31679 2006-11-01 Bruno Haible <bruno@clisp.org>
31681 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
31683 2006-11-01 Eric Blake <ebb9@byu.net>
31685 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
31687 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
31689 2006-10-29 Bruno Haible <bruno@clisp.org>
31691 Make it compile in C++ mode.
31692 * lib/full-write.c (full_rw): Add a cast.
31694 2006-11-01 Bruno Haible <bruno@clisp.org>
31696 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
31697 be POSIX compliant.
31698 Reported by Roger Persson <perrog@gmail.com>.
31700 2006-11-01 Eric Blake <ebb9@byu.net>
31702 * lib/getopt_.h: Fix comments.
31704 2006-10-31 Eric Blake <ebb9@byu.net>
31706 * modules/tmpdir (Depends-on): Add sys_stat.
31707 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
31708 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
31709 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
31710 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
31713 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
31715 Avoid some C++ diagnostics reported by Bruno Haible.
31716 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
31718 (quotearg_alloc): Use xcharalloc rather than xmalloc.
31719 (struct slotvec): Move to top level.
31720 (quotearg_n_options): Rewrite to avoid xmalloc.
31721 * lib/xalloc.h (xcharalloc): New function.
31722 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
31723 [defined __cplusplus]: Add function template that provides result
31724 type propagation. This part of the change is from Bruno Haible.
31726 2006-10-29 Bruno Haible <bruno@clisp.org>
31728 Make it compile in C++ mode.
31729 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
31730 * lib/strnlen1.c (strnlen1): Cast memchr result.
31731 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
31732 * lib/clean-temp.c (string_equals, string_hash): Add casts.
31733 (create_temp_dir): Rename local variable 'template'.
31734 (compile_csharp_using_sscli): Add cast.
31735 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
31736 * lib/findprog.c (find_in_path): Likewise.
31737 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
31738 * lib/wait-process.c (register_slave_subprocess): Likewise.
31740 2006-10-22 Bruno Haible <bruno@clisp.org>
31742 * modules/tsearch: New file.
31743 * lib/tsearch.h: New file.
31744 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
31745 * m4/tsearch.m4: New file.
31746 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
31748 2006-10-29 Eric Blake <ebb9@byu.net>
31750 * lib/arcfour.c: Assume config.h.
31751 * lib/arctwo.c: Likewise.
31752 * lib/base64.c: Likewise.
31753 * lib/check-version.c: Likewise.
31754 * lib/crc.c: Likewise.
31755 * lib/des.c: Likewise.
31756 * lib/gc-gnulib.c: Likewise.
31757 * lib/gc-libgcrypt.c: Likewise.
31758 * lib/gc-pbkdf2-sha1.c: Likewise.
31759 * lib/getaddrinfo.c: Likewise.
31760 * lib/getdelim.c: Likewise.
31761 * lib/getline.c: Likewise.
31762 * lib/hmac-md5.c: Likewise.
31763 * lib/hmac-sha1.c: Likewise.
31764 * lib/iconvme.c: Likewise.
31765 * lib/md2.c: Likewise.
31766 * lib/md4.c: Likewise.
31767 * lib/memxor.c: Likewise.
31768 * lib/read-file.c: Likewise.
31769 * lib/readline.c: Likewise.
31770 * lib/rijndael-alg-fst.c: Likewise.
31771 * lib/rijndael-api-fst.c: Likewise.
31772 * lib/xgetdomainname.c: Likewise.
31774 2006-10-28 Eric Blake <ebb9@byu.net>
31776 * lib/xstrndup.c: Assume config.h.
31778 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
31780 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
31781 stat-macros.h is now for our own macros, whereas stat_h is for
31782 macros in the <sys/stat.h> name space.
31783 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
31784 (STAT_MACROS_H): Remove.
31785 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
31786 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
31787 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
31788 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
31789 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
31790 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
31791 Move these macros to ...
31792 * lib/stat_.h: here. Don't include stat-macros.h.
31793 * lib/canonicalize.c: Don't include stat-macros.h.
31794 * lib/chown.c: Likewise.
31795 * lib/euidaccess.c: Likewise.
31796 * lib/file-type.c: Likewise.
31797 * lib/filemode.c: Likewise.
31798 * lib/glob.c: Likewise.
31799 * lib/isapipe.c: Likewise.
31800 * lib/lchown.c: Likewise.
31801 * lib/lstat.c: Likewise.
31802 * lib/mkdir-p.c: Likewise.
31803 * lib/rmdir.c: Likewise.
31804 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
31805 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
31806 unless mkdir isn't declared, to speed up 'configure'.
31807 Always create sys/stat.h, since it's unlikely any real sys/stat.h
31808 would define all the S_* symbols.
31809 * modules/canonicalize (Depends-on):
31810 Depend on sys_stat, not stat-macros.
31811 * modules/chown: Likewise.
31812 * modules/euidaccess: Likewise.
31813 * modules/filemode: Likewise.
31814 * modules/file-type: Likewise.
31815 * modules/glob: Likewise.
31816 * modules/isapipe: Likewise.
31817 * modules/lchown: Likewise.
31818 * modules/lstat: Likewise.
31819 * modules/mkancesdirs: Likewise.
31820 * modules/rmdir: Likewise.
31821 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
31822 * modules/modechange: Likewise.
31823 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
31824 (configure.ac): Remove gl_STAT_MACROS.
31825 * modules/sys_stat (Depends-on): Remove stat-macros.
31827 2006-10-27 Bruno Haible <bruno@clisp.org>
31829 * m4/signed.m4: Remove file.
31830 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
31832 * modules/vasnprintf (Files): Remove m4/signed.m4.
31834 2006-10-27 Bruno Haible <bruno@clisp.org>
31836 Update to GNU gettext 0.16.
31837 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
31838 m4/inttypes-h.m4, m4/signed.m4.
31839 * m4/gettext.m4: Update to GNU gettext 0.16.
31840 * m4/intl.m4: New file, from GNU gettext.
31841 * m4/intldir.m4: New file, from GNU gettext.
31842 * config/srclist.txt: Update
31844 2006-10-27 Eric Blake <ebb9@byu.net>
31846 * MODULES.html.sh: Document tempname.
31847 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
31849 (Files): Move lib/tempname.c...
31850 * modules/tempname: ...to this new module.
31851 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
31852 (gl_PREREQ_TEMPNAME): Move...
31853 * m4/tempname.m4: ...to this new file.
31854 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
31855 * modules/sys_stat (Depends-on): Add stat-macros.
31856 * lib/stat_.h (includes): Pick up stat macros.
31857 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
31858 if stat macros are broken.
31859 * lib/tempname.c (includes): No need to include "stat-macros.h".
31860 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
31861 (direxists, __path_search) [!_LIBC]: Don't compile these in
31862 gnulib; the tmpdir module covers that.
31863 * lib/tempname.h: New file.
31865 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
31867 * COPYING: Explain how gnulib-tool converts licence headers.
31868 Almost all wording by Eric Blake.
31870 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
31872 * lib/mbchar.h (is_basic_table): Make read-only.
31873 * lib/mbchar.c (is_basic_table): Likewise.
31874 Reported by John Darrington.
31876 2006-10-25 Bruno Haible <bruno@clisp.org>
31878 * lib/progname.h (set_program_name): Undefine before defining.
31880 2006-10-25 Bruno Haible <bruno@clisp.org>
31882 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
31883 false for non-gcc C++ compilers.
31884 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31886 2006-10-24 Bruno Haible <bruno@clisp.org>
31888 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
31889 iconv implementations like Irix iconv.
31891 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
31893 * modules/vararrays: New file.
31894 * m4/vararrays.m4: New file, taken from diffutils.
31895 * MODULES.html.sh: New module vararrays.
31897 2006-10-24 Karl Berry <karl@gnu.org>
31899 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
31900 Don't call GNU Unix.
31902 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31904 * users.txt: Add Libtool.
31908 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
31910 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
31911 to gnulib's policy of including config.h unconditionally.
31913 2006-10-24 Bruno Haible <bruno@clisp.org>
31915 * modules/wcwidth (Files): Add m4/wint_t.m4.
31916 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
31917 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
31919 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
31921 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
31922 to pacify GCC with some -W flags enabled. Problem reported by
31925 2006-10-24 Jim Meyering <jim@meyering.net>
31927 * MODULES.html.sh: Remove uinttostr. It's not a module.
31928 Reported by Karl Berry.
31930 2006-10-23 Bruno Haible <bruno@clisp.org>
31932 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
31934 2006-10-24 Bruno Haible <bruno@clisp.org>
31936 * lib/gl_list.h: Use C comment style, not C++ comment style.
31938 2006-10-23 Eric Blake <ebb9@byu.net>
31940 * lib/getaddrinfo.c (includes): Add missing include.
31942 2006-10-23 Bruno Haible <bruno@clisp.org>
31943 Paul Eggert <eggert@cs.ucla.edu>
31945 Ability to rename obstack_free.
31946 * lib/obstack.h (__obstack_free): New macro. Declare instead of
31948 (obstack_free): Invoke the __obstack_free macro.
31949 * lib/obstack.c (obstack_free): Use __obstack_free macro.
31951 2006-10-23 Bruno Haible <bruno@clisp.org>
31952 Paul Eggert <eggert@cs.ucla.edu>
31954 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
31955 __argc, __argv from the declaration. (They are defined as macros on
31958 2006-10-22 Bruno Haible <bruno@clisp.org>
31960 * doc/gnulib-intro.texi: New file.
31961 * doc/gnulib.texi: Include it.
31963 2006-10-21 Bruno Haible <bruno@clisp.org>
31965 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
31966 "Introduction", "Miscellanous Notes", "Particular Modules".
31968 2006-10-21 Bruno Haible <bruno@clisp.org>
31970 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31971 Change mostlyclean-local rule to avoid sh syntax error from bash
31972 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
31974 2006-10-23 Jim Meyering <jim@meyering.net>
31976 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
31977 in place of snprintf.
31979 * modules/inttostr (Files): Add lib/uinttostr.c.
31980 * lib/uinttostr.c (inttostr): New file/function.
31981 * lib/inttostr.h (uinttostr): Declare.
31982 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
31983 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
31985 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
31987 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
31989 * lib/canonicalize.c (ELOOP): Define if not already defined.
31990 Problem reported by Bruno Haible in
31991 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
31993 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
31995 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
31996 Problem reported by Perry Smith and Ville Laurikari.
31998 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
32001 2006-10-19 Bruno Haible <bruno@clisp.org>
32003 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
32006 2006-10-19 Bruno Haible <bruno@clisp.org>
32008 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
32011 2006-10-19 Bruno Haible <bruno@clisp.org>
32013 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
32015 2006-10-19 Bruno Haible <bruno@clisp.org>
32017 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
32020 2006-10-19 Bruno Haible <bruno@clisp.org>
32022 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
32025 2006-10-19 Bruno Haible <bruno@clisp.org>
32027 * gnulib-tool (func_create_testdir): Don't include ftruncate and
32028 mountlist by default.
32030 2006-10-16 Bruno Haible <bruno@clisp.org>
32032 * lib/c-strstr.c: Include c-strstr.h.
32034 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
32036 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
32039 2006-10-18 Bruno Haible <bruno@clisp.org>
32041 * lib/lock.h [C++]: Wrap definitions in extern "C".
32043 2006-10-18 Bruno Haible <bruno@clisp.org>
32045 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
32048 2006-10-18 Bruno Haible <bruno@clisp.org>
32050 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
32052 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
32054 * lib/xstrtol.h: Include gettext.h.
32055 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
32056 Problem reported by Eric Blake.
32057 * modules/xstrtol (Depends-on): Add gettext-h.
32059 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
32061 * lib/strftime.c (advance): New macro.
32062 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
32063 incomplete type, so you can't add 0 to it. Problem and patch
32064 reported by Eelco Dolstra for dietlibc.
32066 2006-10-18 Jim Meyering <jim@meyering.net>
32068 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
32069 type for a local, and rename it: s/up/user_proc/.
32071 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
32073 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
32074 READ_UTMP_USER_PROCESS.
32075 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
32077 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
32079 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
32080 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
32082 2006-10-17 Eric Blake <ebb9@byu.net>
32084 * lib/sigprocmask.c (sigprocmask): Fix typo.
32086 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
32088 * modules/clean-temp (Makefile.am): Don't add to make output...
32089 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
32092 2006-10-17 Bruno Haible <bruno@clisp.org>
32094 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
32095 differently if DEFAULT_TEXT_DOMAIN is set.
32097 2006-10-16 Bruno Haible <bruno@clisp.org>
32099 * lib/clean-temp.c: Include fwriteerror.h.
32101 2006-10-16 Bruno Haible <bruno@clisp.org>
32103 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
32105 2006-10-16 Bruno Haible <bruno@clisp.org>
32107 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
32108 * lib/sigprocmask.h: Include <sys/types.h>.
32109 (sigset_t): Use the system's definition if present.
32111 2006-10-17 Eric Blake <ebb9@byu.net>
32113 * lib/xvasprintf.c (includes): Assume config.h.
32114 * lib/xasprintf.c (includes): Likewise.
32116 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
32118 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
32119 at least as wide as intmax_t.
32121 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
32123 (Imported from Automake.)
32124 * build-aux/gnupload: Update to version 1.1 of directive file.
32126 2006-10-16 Eric Blake <ebb9@byu.net>
32128 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
32129 match Automake 1.10a.
32131 2006-10-14 Bruno Haible <bruno@clisp.org>
32133 * modules/sigprocmask: New file.
32134 * lib/sigprocmask.h: New file.
32135 * lib/sigprocmask.c: New file.
32136 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
32137 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
32138 request sigprocmask.o.
32139 (gl_PREREQ_SIGPROCMASK): New macro.
32140 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
32141 (Depends-on): Add sigprocmask.
32142 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
32143 gt_SIGNALBLOCKING. Test for 'raise' only once.
32144 * lib/fatal-signal.c: Include sigprocmask.h.
32145 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
32146 unblock_fatal_signals): Define always.
32147 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32150 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
32152 Sync from Automake.
32153 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
32154 which incorrectly sets the mode of an existing destination
32155 directory. In some cases the unpatched install-sh could do the
32156 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
32157 system. We hope this is rare in practice, but it's clearly worth
32158 fixing. Problem reported by Alex Unleashed in
32159 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
32160 Also, don't bother to check for -m bugs unless we're using -m;
32161 suggested by Stepan Kasal.
32163 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32165 Sync from Automake.
32166 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
32167 `-c' flag, so they appear at the same position as in %FASTDEP%
32168 mode in depend2.am. Fixes build failure for FreeBSD's c89,
32169 which ignores unknown options only after the first non-option.
32170 Bug report against M4 by Nelson H. F. Beebe.
32172 2006-10-13 Jim Meyering <jim@meyering.net>
32174 Fix a bug in yesterday's change.
32175 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
32176 p->fts_statp->st_dev would be used uninitialized.
32177 Ensures that we always call fts_stat on the very first entry.
32178 Miklos Szeredi reported that find -xdev stopped working.
32180 2006-10-12 Bruno Haible <bruno@clisp.org>
32182 * gnulib-tool (func_get_automake_snippet): Append an automatically
32183 computed EXTRA_DIST augmentation.
32184 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
32185 * modules/alloca-opt (Makefile.am): Likewise.
32186 * modules/allocsa (Makefile.am): Likewise.
32187 * modules/arcfour (Makefile.am): Likewise.
32188 * modules/arctwo (Makefile.am): Likewise.
32189 * modules/argmatch (Makefile.am): Likewise.
32190 * modules/argz (Makefile.am): Likewise.
32191 * modules/atexit (Makefile.am): Likewise.
32192 * modules/backupfile (Makefile.am): Likewise.
32193 * modules/byteswap (Makefile.am): Likewise.
32194 * modules/c-strtod (Makefile.am): Likewise.
32195 * modules/c-strtold (Makefile.am): Likewise.
32196 * modules/calloc (Makefile.am): Likewise.
32197 * modules/canon-host (Makefile.am): Likewise.
32198 * modules/canonicalize (Makefile.am): Likewise.
32199 * modules/chdir-long (Makefile.am): Likewise.
32200 * modules/chdir-safer (Makefile.am): Likewise.
32201 * modules/check-version (Makefile.am): Likewise.
32202 * modules/chown (Makefile.am): Likewise.
32203 * modules/cloexec (Makefile.am): Likewise.
32204 * modules/close-stream (Makefile.am): Likewise.
32205 * modules/closeout (Makefile.am): Likewise.
32206 * modules/crc (Makefile.am): Likewise.
32207 * modules/csharpexec (Makefile.am): Likewise.
32208 * modules/cycle-check (Makefile.am): Likewise.
32209 * modules/des (Makefile.am): Likewise.
32210 * modules/dev-ino (Makefile.am): Likewise.
32211 * modules/dirfd (Makefile.am): Likewise.
32212 * modules/dirname (Makefile.am): Likewise.
32213 * modules/dup2 (Makefile.am): Likewise.
32214 * modules/eealloc (Makefile.am): Likewise.
32215 * modules/error (Makefile.am): Likewise.
32216 * modules/euidaccess (Makefile.am): Likewise.
32217 * modules/exclude (Makefile.am): Likewise.
32218 * modules/exitfail (Makefile.am): Likewise.
32219 * modules/fcntl-safer (Makefile.am): Likewise.
32220 * modules/fcntl (Makefile.am): Likewise.
32221 * modules/file-type (Makefile.am): Likewise.
32222 * modules/fileblocks (Makefile.am): Likewise.
32223 * modules/filemode (Makefile.am): Likewise.
32224 * modules/filenamecat (Makefile.am): Likewise.
32225 * modules/fnmatch (Makefile.am): Likewise.
32226 * modules/fopen-safer (Makefile.am): Likewise.
32227 * modules/fpending (Makefile.am): Likewise.
32228 * modules/fprintftime (Makefile.am): Likewise.
32229 * modules/free (Makefile.am): Likewise.
32230 * modules/fsusage (Makefile.am): Likewise.
32231 * modules/ftruncate (Makefile.am): Likewise.
32232 * modules/fts (Makefile.am): Likewise.
32233 * modules/gc-arcfour (Makefile.am): Likewise.
32234 * modules/gc-des (Makefile.am): Likewise.
32235 * modules/gc-hmac-md5 (Makefile.am): Likewise.
32236 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
32237 * modules/gc-md4 (Makefile.am): Likewise.
32238 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
32239 * modules/gc-sha1 (Makefile.am): Likewise.
32240 * modules/gc (Makefile.am): Likewise.
32241 * modules/getaddrinfo (Makefile.am): Likewise.
32242 * modules/getcwd (Makefile.am): Likewise.
32243 * modules/getdelim (Makefile.am): Likewise.
32244 * modules/getdomainname (Makefile.am): Likewise.
32245 * modules/getgroups (Makefile.am): Likewise.
32246 * modules/gethostname (Makefile.am): Likewise.
32247 * modules/gethrxtime (Makefile.am): Likewise.
32248 * modules/getline (Makefile.am): Likewise.
32249 * modules/getloadavg (Makefile.am): Likewise.
32250 * modules/getlogin_r (Makefile.am): Likewise.
32251 * modules/getndelim2 (Makefile.am): Likewise.
32252 * modules/getopt (Makefile.am): Likewise.
32253 * modules/getpagesize (Makefile.am): Likewise.
32254 * modules/getpass-gnu (Makefile.am): Likewise.
32255 * modules/getpass (Makefile.am): Likewise.
32256 * modules/getsubopt (Makefile.am): Likewise.
32257 * modules/gettime (Makefile.am): Likewise.
32258 * modules/gettimeofday (Makefile.am): Likewise.
32259 * modules/getugroups (Makefile.am): Likewise.
32260 * modules/getusershell (Makefile.am): Likewise.
32261 * modules/glob (Makefile.am): Likewise.
32262 * modules/group-member (Makefile.am): Likewise.
32263 * modules/hard-locale (Makefile.am): Likewise.
32264 * modules/hash (Makefile.am): Likewise.
32265 * modules/hmac-md5 (Makefile.am): Likewise.
32266 * modules/hmac-sha1 (Makefile.am): Likewise.
32267 * modules/human (Makefile.am): Likewise.
32268 * modules/idcache (Makefile.am): Likewise.
32269 * modules/imaxabs (Makefile.am): Likewise.
32270 * modules/imaxdiv (Makefile.am): Likewise.
32271 * modules/inet_ntop (Makefile.am): Likewise.
32272 * modules/inet_pton (Makefile.am): Likewise.
32273 * modules/intprops (Makefile.am): Likewise.
32274 * modules/inttostr (Makefile.am): Likewise.
32275 * modules/inttypes (Makefile.am): Likewise.
32276 * modules/isapipe (Makefile.am): Likewise.
32277 * modules/javaversion (Makefile.am): Likewise.
32278 * modules/lchmod (Makefile.am): Likewise.
32279 * modules/lchown (Makefile.am): Likewise.
32280 * modules/localcharset (Makefile.am): Likewise.
32281 * modules/long-options (Makefile.am): Likewise.
32282 * modules/lstat (Makefile.am): Likewise.
32283 * modules/malloc (Makefile.am): Likewise.
32284 * modules/mathl (Makefile.am): Likewise.
32285 * modules/mbchar (Makefile.am): Likewise.
32286 * modules/md2 (Makefile.am): Likewise.
32287 * modules/md4 (Makefile.am): Likewise.
32288 * modules/md5 (Makefile.am): Likewise.
32289 * modules/memcasecmp (Makefile.am): Likewise.
32290 * modules/memchr (Makefile.am): Likewise.
32291 * modules/memcmp (Makefile.am): Likewise.
32292 * modules/memcoll (Makefile.am): Likewise.
32293 * modules/memcpy (Makefile.am): Likewise.
32294 * modules/memmem (Makefile.am): Likewise.
32295 * modules/memmove (Makefile.am): Likewise.
32296 * modules/mempcpy (Makefile.am): Likewise.
32297 * modules/memrchr (Makefile.am): Likewise.
32298 * modules/memset (Makefile.am): Likewise.
32299 * modules/memxor (Makefile.am): Likewise.
32300 * modules/mkancesdirs (Makefile.am): Likewise.
32301 * modules/mkdir-p (Makefile.am): Likewise.
32302 * modules/mkdir (Makefile.am): Likewise.
32303 * modules/mkdtemp (Makefile.am): Likewise.
32304 * modules/mkstemp (Makefile.am): Likewise.
32305 * modules/mktime (Makefile.am): Likewise.
32306 * modules/modechange (Makefile.am): Likewise.
32307 * modules/mountlist (Makefile.am): Likewise.
32308 * modules/nanosleep (Makefile.am): Likewise.
32309 * modules/obstack (Makefile.am): Likewise.
32310 * modules/openat (Makefile.am): Likewise.
32311 * modules/pagealign_alloc (Makefile.am): Likewise.
32312 * modules/pathmax (Makefile.am): Likewise.
32313 * modules/physmem (Makefile.am): Likewise.
32314 * modules/poll (Makefile.am): Likewise.
32315 * modules/posixtm (Makefile.am): Likewise.
32316 * modules/posixver (Makefile.am): Likewise.
32317 * modules/putenv (Makefile.am): Likewise.
32318 * modules/quote (Makefile.am): Likewise.
32319 * modules/quotearg (Makefile.am): Likewise.
32320 * modules/raise (Makefile.am): Likewise.
32321 * modules/read-file (Makefile.am): Likewise.
32322 * modules/readline (Makefile.am): Likewise.
32323 * modules/readlink (Makefile.am): Likewise.
32324 * modules/readtokens (Makefile.am): Likewise.
32325 * modules/readutmp (Makefile.am): Likewise.
32326 * modules/realloc (Makefile.am): Likewise.
32327 * modules/regex (Makefile.am): Likewise.
32328 * modules/rename-dest-slash (Makefile.am): Likewise.
32329 * modules/rename (Makefile.am): Likewise.
32330 * modules/rijndael (Makefile.am): Likewise.
32331 * modules/rmdir (Makefile.am): Likewise.
32332 * modules/rpmatch (Makefile.am): Likewise.
32333 * modules/safe-read (Makefile.am): Likewise.
32334 * modules/safe-write (Makefile.am): Likewise.
32335 * modules/same-inode (Makefile.am): Likewise.
32336 * modules/same (Makefile.am): Likewise.
32337 * modules/save-cwd (Makefile.am): Likewise.
32338 * modules/savedir (Makefile.am): Likewise.
32339 * modules/setenv (Makefile.am): Likewise.
32340 * modules/settime (Makefile.am): Likewise.
32341 * modules/sha1 (Makefile.am): Likewise.
32342 * modules/sig2str (Makefile.am): Likewise.
32343 * modules/snprintf (Makefile.am): Likewise.
32344 * modules/stat-macros (Makefile.am): Likewise.
32345 * modules/stat-time (Makefile.am): Likewise.
32346 * modules/stdbool (Makefile.am): Likewise.
32347 * modules/stdint (Makefile.am): Likewise.
32348 * modules/stdlib-safer (Makefile.am): Likewise.
32349 * modules/stpcpy (Makefile.am): Likewise.
32350 * modules/stpncpy (Makefile.am): Likewise.
32351 * modules/strcase (Makefile.am): Likewise.
32352 * modules/strcasestr (Makefile.am): Likewise.
32353 * modules/strchrnul (Makefile.am): Likewise.
32354 * modules/strcspn (Makefile.am): Likewise.
32355 * modules/strdup (Makefile.am): Likewise.
32356 * modules/strerror (Makefile.am): Likewise.
32357 * modules/strftime (Makefile.am): Likewise.
32358 * modules/strndup (Makefile.am): Likewise.
32359 * modules/strnlen (Makefile.am): Likewise.
32360 * modules/strpbrk (Makefile.am): Likewise.
32361 * modules/strsep (Makefile.am): Likewise.
32362 * modules/strstr (Makefile.am): Likewise.
32363 * modules/strtod (Makefile.am): Likewise.
32364 * modules/strtoimax (Makefile.am): Likewise.
32365 * modules/strtok_r (Makefile.am): Likewise.
32366 * modules/strtol (Makefile.am): Likewise.
32367 * modules/strtoll (Makefile.am): Likewise.
32368 * modules/strtoul (Makefile.am): Likewise.
32369 * modules/strtoull (Makefile.am): Likewise.
32370 * modules/strtoumax (Makefile.am): Likewise.
32371 * modules/strverscmp (Makefile.am): Likewise.
32372 * modules/sys_socket (Makefile.am): Likewise.
32373 * modules/sys_stat (Makefile.am): Likewise.
32374 * modules/sysexits (Makefile.am): Likewise.
32375 * modules/time_r (Makefile.am): Likewise.
32376 * modules/timegm (Makefile.am): Likewise.
32377 * modules/timespec (Makefile.am): Likewise.
32378 * modules/tmpfile-safer (Makefile.am): Likewise.
32379 * modules/trim (Makefile.am): Likewise.
32380 * modules/unistd-safer (Makefile.am): Likewise.
32381 * modules/unlinkdir (Makefile.am): Likewise.
32382 * modules/unlocked-io (Makefile.am): Likewise.
32383 * modules/userspec (Makefile.am): Likewise.
32384 * modules/utime (Makefile.am): Likewise.
32385 * modules/utimecmp (Makefile.am): Likewise.
32386 * modules/utimens (Makefile.am): Likewise.
32387 * modules/vasnprintf (Makefile.am): Likewise.
32388 * modules/vasprintf (Makefile.am): Likewise.
32389 * modules/vsnprintf (Makefile.am): Likewise.
32390 * modules/xalloc (Makefile.am): Likewise.
32391 * modules/xgetcwd (Makefile.am): Likewise.
32392 * modules/xnanosleep (Makefile.am): Likewise.
32393 * modules/xreadlink (Makefile.am): Likewise.
32394 * modules/xstrtod (Makefile.am): Likewise.
32395 * modules/xstrtol (Makefile.am): Likewise.
32396 * modules/xstrtold (Makefile.am): Likewise.
32397 * modules/yesno (Makefile.am): Likewise.
32398 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
32400 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
32402 * modules/error (Makefile.am): Distribute files through
32403 EXTRA_DIST, not lib_SOURCES.
32405 2006-10-12 Eric Blake <ebb9@byu.net>
32407 * modules/error (Makefile.am): Distribute files in /lib.
32408 * modules/obstack (Makefile.am): Likewise.
32410 2006-10-12 Bruno Haible <bruno@clisp.org>
32412 * modules/acl (Makefile.am): Distribute all files in lib/ through
32414 * modules/arcfour (Makefile.am): Likewise.
32415 * modules/arctwo (Makefile.am): Likewise.
32416 * modules/argmatch (Makefile.am): Likewise.
32417 * modules/argz (Makefile.am): Likewise.
32418 * modules/atexit (Makefile.am): Likewise.
32419 * modules/backupfile (Makefile.am): Likewise.
32420 * modules/c-strtod (Makefile.am): Likewise.
32421 * modules/c-strtold (Makefile.am): Likewise.
32422 * modules/calloc (Makefile.am): Likewise.
32423 * modules/canon-host (Makefile.am): Likewise.
32424 * modules/canonicalize (Makefile.am): Likewise.
32425 * modules/chdir-long (Makefile.am): Likewise.
32426 * modules/chdir-safer (Makefile.am): Likewise.
32427 * modules/check-version (Makefile.am): Likewise.
32428 * modules/chown (Makefile.am): Likewise.
32429 * modules/cloexec (Makefile.am): Likewise.
32430 * modules/close-stream (Makefile.am): Likewise.
32431 * modules/closeout (Makefile.am): Likewise.
32432 * modules/crc (Makefile.am): Likewise.
32433 * modules/cycle-check (Makefile.am): Likewise.
32434 * modules/des (Makefile.am): Likewise.
32435 * modules/dirfd (Makefile.am): Likewise.
32436 * modules/dirname (Makefile.am): Likewise.
32437 * modules/dup2 (Makefile.am): Likewise.
32438 * modules/euidaccess (Makefile.am): Likewise.
32439 * modules/exclude (Makefile.am): Likewise.
32440 * modules/exitfail (Makefile.am): Likewise.
32441 * modules/fcntl-safer (Makefile.am): Likewise.
32442 * modules/file-type (Makefile.am): Likewise.
32443 * modules/fileblocks (Makefile.am): Likewise.
32444 * modules/filemode (Makefile.am): Likewise.
32445 * modules/filenamecat (Makefile.am): Likewise.
32446 * modules/fnmatch (Makefile.am): Likewise.
32447 * modules/fopen-safer (Makefile.am): Likewise.
32448 * modules/fpending (Makefile.am): Likewise.
32449 * modules/fprintftime (Makefile.am): Likewise.
32450 * modules/free (Makefile.am): Likewise.
32451 * modules/fsusage (Makefile.am): Likewise.
32452 * modules/ftruncate (Makefile.am): Likewise.
32453 * modules/fts (Makefile.am): Likewise.
32454 * modules/gc (Makefile.am): Likewise.
32455 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
32456 * modules/getaddrinfo (Makefile.am): Likewise.
32457 * modules/getcwd (Makefile.am): Likewise.
32458 * modules/getdelim (Makefile.am): Likewise.
32459 * modules/getdomainname (Makefile.am): Likewise.
32460 * modules/getgroups (Makefile.am): Likewise.
32461 * modules/gethostname (Makefile.am): Likewise.
32462 * modules/gethrxtime (Makefile.am): Likewise.
32463 * modules/getline (Makefile.am): Likewise.
32464 * modules/getloadavg (Makefile.am): Likewise.
32465 * modules/getlogin_r (Makefile.am): Likewise.
32466 * modules/getopt (Makefile.am): Likewise.
32467 * modules/getpass (Makefile.am): Likewise.
32468 * modules/getpass-gnu (Makefile.am): Likewise.
32469 * modules/getsubopt (Makefile.am): Likewise.
32470 * modules/gettime (Makefile.am): Likewise.
32471 * modules/gettimeofday (Makefile.am): Likewise.
32472 * modules/getugroups (Makefile.am): Likewise.
32473 * modules/getusershell (Makefile.am): Likewise.
32474 * modules/glob (Makefile.am): Likewise.
32475 * modules/group-member (Makefile.am): Likewise.
32476 * modules/hard-locale (Makefile.am): Likewise.
32477 * modules/hash (Makefile.am): Likewise.
32478 * modules/hmac-md5 (Makefile.am): Likewise.
32479 * modules/hmac-sha1 (Makefile.am): Likewise.
32480 * modules/human (Makefile.am): Likewise.
32481 * modules/idcache (Makefile.am): Likewise.
32482 * modules/imaxabs (Makefile.am): Likewise.
32483 * modules/imaxdiv (Makefile.am): Likewise.
32484 * modules/inet_ntop (Makefile.am): Likewise.
32485 * modules/inet_pton (Makefile.am): Likewise.
32486 * modules/inttostr (Makefile.am): Likewise.
32487 * modules/isapipe (Makefile.am): Likewise.
32488 * modules/lchown (Makefile.am): Likewise.
32489 * modules/long-options (Makefile.am): Likewise.
32490 * modules/lstat (Makefile.am): Likewise.
32491 * modules/malloc (Makefile.am): Likewise.
32492 * modules/mathl (Makefile.am): Likewise.
32493 * modules/mbchar (Makefile.am): Likewise.
32494 * modules/md2 (Makefile.am): Likewise.
32495 * modules/md4 (Makefile.am): Likewise.
32496 * modules/md5 (Makefile.am): Likewise.
32497 * modules/memcasecmp (Makefile.am): Likewise.
32498 * modules/memchr (Makefile.am): Likewise.
32499 * modules/memcmp (Makefile.am): Likewise.
32500 * modules/memcoll (Makefile.am): Likewise.
32501 * modules/memcpy (Makefile.am): Likewise.
32502 * modules/memmem (Makefile.am): Likewise.
32503 * modules/memmove (Makefile.am): Likewise.
32504 * modules/mempcpy (Makefile.am): Likewise.
32505 * modules/memrchr (Makefile.am): Likewise.
32506 * modules/memset (Makefile.am): Likewise.
32507 * modules/memxor (Makefile.am): Likewise.
32508 * modules/mkancesdirs (Makefile.am): Likewise.
32509 * modules/mkdir (Makefile.am): Likewise.
32510 * modules/mkdir-p (Makefile.am): Likewise.
32511 * modules/mkdtemp (Makefile.am): Likewise.
32512 * modules/mkstemp (Makefile.am): Likewise.
32513 * modules/mktime (Makefile.am): Likewise.
32514 * modules/modechange (Makefile.am): Likewise.
32515 * modules/mountlist (Makefile.am): Likewise.
32516 * modules/nanosleep (Makefile.am): Likewise.
32517 * modules/openat (Makefile.am): Likewise.
32518 * modules/pagealign_alloc (Makefile.am): Likewise.
32519 * modules/physmem (Makefile.am): Likewise.
32520 * modules/poll (Makefile.am): Likewise.
32521 * modules/posixtm (Makefile.am): Likewise.
32522 * modules/posixver (Makefile.am): Likewise.
32523 * modules/putenv (Makefile.am): Likewise.
32524 * modules/quote (Makefile.am): Likewise.
32525 * modules/quotearg (Makefile.am): Likewise.
32526 * modules/raise (Makefile.am): Likewise.
32527 * modules/read-file (Makefile.am): Likewise.
32528 * modules/readline (Makefile.am): Likewise.
32529 * modules/readlink (Makefile.am): Likewise.
32530 * modules/readtokens (Makefile.am): Likewise.
32531 * modules/readutmp (Makefile.am): Likewise.
32532 * modules/realloc (Makefile.am): Likewise.
32533 * modules/regex (Makefile.am): Likewise.
32534 * modules/rename (Makefile.am): Likewise.
32535 * modules/rename-dest-slash (Makefile.am): Likewise.
32536 * modules/rijndael (Makefile.am): Likewise.
32537 * modules/rmdir (Makefile.am): Likewise.
32538 * modules/rpmatch (Makefile.am): Likewise.
32539 * modules/safe-read (Makefile.am): Likewise.
32540 * modules/safe-write (Makefile.am): Likewise.
32541 * modules/same (Makefile.am): Likewise.
32542 * modules/save-cwd (Makefile.am): Likewise.
32543 * modules/savedir (Makefile.am): Likewise.
32544 * modules/setenv (Makefile.am): Likewise.
32545 * modules/settime (Makefile.am): Likewise.
32546 * modules/sha1 (Makefile.am): Likewise.
32547 * modules/sig2str (Makefile.am): Likewise.
32548 * modules/snprintf (Makefile.am): Likewise.
32549 * modules/stdlib-safer (Makefile.am): Likewise.
32550 * modules/stpcpy (Makefile.am): Likewise.
32551 * modules/stpncpy (Makefile.am): Likewise.
32552 * modules/strcase (Makefile.am): Likewise.
32553 * modules/strcasestr (Makefile.am): Likewise.
32554 * modules/strchrnul (Makefile.am): Likewise.
32555 * modules/strcspn (Makefile.am): Likewise.
32556 * modules/strdup (Makefile.am): Likewise.
32557 * modules/strerror (Makefile.am): Likewise.
32558 * modules/strftime (Makefile.am): Likewise.
32559 * modules/strndup (Makefile.am): Likewise.
32560 * modules/strnlen (Makefile.am): Likewise.
32561 * modules/strpbrk (Makefile.am): Likewise.
32562 * modules/strsep (Makefile.am): Likewise.
32563 * modules/strstr (Makefile.am): Likewise.
32564 * modules/strtod (Makefile.am): Likewise.
32565 * modules/strtoimax (Makefile.am): Likewise.
32566 * modules/strtok_r (Makefile.am): Likewise.
32567 * modules/strtol (Makefile.am): Likewise.
32568 * modules/strtoll (Makefile.am): Likewise.
32569 * modules/strtoul (Makefile.am): Likewise.
32570 * modules/strtoull (Makefile.am): Likewise.
32571 * modules/strtoumax (Makefile.am): Likewise.
32572 * modules/strverscmp (Makefile.am): Likewise.
32573 * modules/time_r (Makefile.am): Likewise.
32574 * modules/timegm (Makefile.am): Likewise.
32575 * modules/tmpfile-safer (Makefile.am): Likewise.
32576 * modules/unistd-safer (Makefile.am): Likewise.
32577 * modules/unlinkdir (Makefile.am): Likewise.
32578 * modules/userspec (Makefile.am): Likewise.
32579 * modules/utime (Makefile.am): Likewise.
32580 * modules/utimecmp (Makefile.am): Likewise.
32581 * modules/utimens (Makefile.am): Likewise.
32582 * modules/vasnprintf (Makefile.am): Likewise.
32583 * modules/vasprintf (Makefile.am): Likewise.
32584 * modules/vsnprintf (Makefile.am): Likewise.
32585 * modules/xalloc (Makefile.am): Likewise.
32586 * modules/xgetcwd (Makefile.am): Likewise.
32587 * modules/xnanosleep (Makefile.am): Likewise.
32588 * modules/xreadlink (Makefile.am): Likewise.
32589 * modules/xstrtod (Makefile.am): Likewise.
32590 * modules/xstrtol (Makefile.am): Likewise.
32591 * modules/xstrtold (Makefile.am): Likewise.
32592 * modules/yesno (Makefile.am): Likewise.
32594 2006-10-12 Jim Meyering <jim@meyering.net>
32596 * m4/getloadavg.m4: Revert the change below.
32598 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
32599 lib/getloadavg.c using "ls -L", not "test -f". The latter would
32600 fail with a symlink, which is what coreutils' ./bootstrap now
32601 creates by default.
32603 2006-10-12 Bruno Haible <bruno@clisp.org>
32605 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
32607 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
32608 MSVC and mingw explicitly.
32610 2006-10-11 Simon Josefsson <jas@extundo.com>
32611 Bruno Haible <bruno@clisp.org>
32613 Add support for multiple gnulib-tool invocations in the scope of a
32614 single configure.ac file.
32615 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
32616 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
32617 with the same contents as the _LIBADD variable.
32618 (func_emit_initmacro_start, func_emit_initmacro_end,
32619 func_emit_initmacro_done): New functions.
32620 (func_import, func_create_testdir): Invoke them. Allow the identifiers
32621 gl_LIBOBJS and gl_LTLIBOBJS.
32623 2006-10-11 Bruno Haible <bruno@clisp.org>
32625 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
32626 (func_create_testdir): Don't create po/Makefile.am, don't invoke
32627 autoreconf. Instead, invoke autopoint explicitly but move back the
32628 *.m4 files from gnulib.
32630 2006-10-11 Bruno Haible <bruno@clisp.org>
32632 * gnulib-tool (func_usage): Make module names after --create-testdir
32634 (func_create_testdir): If no module was specified, use nearly all
32637 2006-10-12 Jim Meyering <jim@meyering.net>
32639 Big performance improvement for fts-based tools that use FTS_NOSTAT.
32640 Avoid spurious inode-mismatch problems on non-POSIX file systems.
32641 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
32642 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
32643 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
32644 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
32645 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
32646 (fts_set_stat_required): New function.
32647 (fts_open): Defer the calls to fts_stat, if possible or requested.
32648 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
32649 into fts_stat itself.
32650 (fts_read): Perform any required (deferred) fts_stat call.
32651 (fts_build): Likewise, for the directory we're about to open and read.
32652 In the readdir loop, carefully decide whether each entry will require
32653 an eventual call to fts_stat, using dirent.d_type info if available.
32654 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
32655 a command line argument into this function. Update all callers.
32656 Map a return value of FTS_DOT to FTS_D for a command line argument.
32657 * modules/fts (Depends-on): Add d-type. Alphabetize.
32658 Thanks to Miklos Szeredi for his tenacity and for the initial
32659 bug report about "find" failing on a FUSE-based file system.
32661 * lib/fts.c (fts_open): Use consistent indentation.
32663 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
32665 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
32666 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
32667 reported by Jim Meyering. All uses of cache variables renamed
32668 to match Autoconf's.
32669 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
32672 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
32673 Fix misspelling in diagnostic.
32675 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
32677 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
32678 defined. Problem reported by Matthew Woehlke.
32680 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
32681 Add support for Tandem NonStop R series.
32682 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
32685 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
32686 (has_trailing_slash): Omit size arg; all callers changed.
32687 Omit 'inline', since it doesn't help performance and we'd
32688 need to configure it.
32689 Don't count //, ///, etc. as having a trailing slash.
32690 As a side effect, this removes a C99ism reported by Matthew Woehlke.
32691 (rpl_rename_dest_slash): On failure, use rename's errno rather
32692 than (in some cases) an incorrect or junk errno.
32693 Simplify code by removing need to compute length; this does
32694 cause it to make two passes instead of one over the file name,
32697 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
32698 change, since Autoconf's version may no longer be appropriate now
32699 that we are using CVS Autoconf's version. Add support for Tandem.
32701 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
32702 Bruno Haible <bruno@clisp.org>
32704 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
32705 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
32706 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
32707 gl_AC_TYPE_LONG_LONG.
32709 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
32710 instead of HAVE_LONG_LONG.
32711 * lib/printf-args.c (printf_fetchargs): Likewise.
32712 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
32713 * lib/vasnprintf.c (VASNPRINTF): Likewise.
32714 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
32715 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
32716 gl_AC_TYPE_LONG_LONG.
32718 2006-10-11 Bruno Haible <bruno@clisp.org>
32720 * m4/longlong.m4: Add comments.
32721 * m4/ulonglong.m4: Likewise.
32723 2006-10-10 Bruno Haible <bruno@clisp.org>
32725 Make it possible to #define stpcpy, strdup to aliases.
32726 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
32727 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
32729 2006-10-10 Bruno Haible <bruno@clisp.org>
32731 Make it possible to #define gcd to an alias.
32732 * lib/gcd.c: Include config.h.
32734 2006-10-10 Bruno Haible <bruno@clisp.org>
32736 Make it possible to #define c_isascii to an alias.
32737 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
32738 defined. Undefine the macros before defining them, to avoid gcc
32740 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
32741 define NO_C_CTYPE_MACROS early.
32743 2006-10-10 Bruno Haible <bruno@clisp.org>
32745 Make it possible to #define set_program_name to an alias.
32746 * lib/progname.c: Don't undefine set_program_name; instead, undefine
32747 ENABLE_RELOCATABLE early.
32749 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
32751 Port to Tandem NSK OSS, which has 64-bit signed int but at most
32752 32-bit unsigned int. Problem reported by Matthew Woehlke in:
32753 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
32754 More generally, don't assume that 64-bit signed int is available
32755 if unsigned int is, and vice versa.
32756 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
32757 unsigned symbols, not on their signed counterparts.
32758 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
32759 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
32760 (UINT64_C, UINTMAX_C):
32762 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
32763 unsigned counterparts.
32764 (Have_long_long, Unsigned): New macros.
32765 (Int): Renamed from INT.
32766 (strtoimax): Use the new macros.
32767 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
32768 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
32769 * modules/inttypes (inttypes.h): Substitute
32770 HAVE_UNSIGNED_LONG_LONG_INT.
32771 * modules/stdint (stdint.h): Likewise.
32772 (Files): Add m4/ulonglong.m4.
32774 2006-10-10 Bruno Haible <bruno@clisp.org>
32776 Fix a gcc -Wshadow warning.
32777 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
32779 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
32780 gl_linked_indexof_from_to): Likewise.
32781 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
32783 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
32785 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
32786 Reported by Eric Blake.
32788 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
32790 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
32791 for NetBSD. Problem reported by Bruno Haible.
32793 2006-10-09 Jim Meyering <jim@meyering.net>
32795 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
32796 Patch from Bruno Haible.
32798 2006-10-09 Jim Meyering <jim@meyering.net>
32800 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
32801 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
32802 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
32804 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
32806 Don't include <config.h> twice; this doesn't work in some cases,
32807 e.g., when config.h has "#define intmax_t long long int" and
32808 we include <config.h>, <inttypes.h>, <config.h> in that order.
32809 Problem reported by Matthew Woehlke in:
32810 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
32811 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
32812 * lib/fts-cycle.c: Don't include config.h.
32813 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
32814 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
32815 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
32816 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
32818 * lib/xstrtoumax.c: Likewise.
32819 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
32820 __strtol and the like, so that this module is more like its siblings.
32821 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
32822 Remove; no longer needed now that we assume gnulib inttypes.h.
32824 2006-10-08 Bruno Haible <bruno@clisp.org>
32826 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
32829 2006-10-07 Jim Meyering <jim@meyering.net>
32831 * modules/inttypes (inttypes.h): Revert what seems to have been
32832 an inadvertent part of today's change: use "|", not "/" in the
32833 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
32835 2006-10-07 Bruno Haible <bruno@clisp.org>
32837 * modules/sublist: New file.
32839 2006-10-07 Bruno Haible <bruno@clisp.org>
32841 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
32842 * modules/argz (argz.h): Likewise.
32843 * modules/arpa_inet (arpa/inet.h): Likewise.
32844 * modules/byteswap (byteswap.h): Likewise.
32845 * modules/configmake (configmake.h): Likewise.
32846 * modules/fcntl (fcntl.h): Likewise.
32847 * modules/fnmatch (fnmatch.h): Likewise.
32848 * modules/getopt (getopt.h): Likewise.
32849 * modules/glob (glob.h): Likewise.
32850 * modules/inttypes (inttypes.h): Likewise.
32851 * modules/netinet_in (netinet/in.h): Likewise.
32852 * modules/poll (poll.h): Likewise.
32853 * modules/stdbool (stdbool.h): Likewise.
32854 * modules/stdint (stdint.h): Likewise.
32855 * modules/sys_select (sys/select.h): Likewise.
32856 * modules/sys_socket (sys/socket.h): Likewise.
32857 * modules/sys_stat (sys/stat.h): Likewise.
32858 * modules/sysexits (sysexits.h): Likewise.
32859 * modules/unistd (unistd.h): Likewise.
32860 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32861 Add a "DO NOT EDIT" comment to the generated file.
32862 (func_import): Likewise for gnulib-comp.m4.
32864 2006-10-07 Bruno Haible <bruno@clisp.org>
32866 * lib/gl_sublist.h: New file.
32867 * lib/gl_sublist.c: New file.
32869 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
32871 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
32872 name (relative to the original working directory) and the file
32873 name component (relative to the temporary working directory). All
32875 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
32876 * lib/mkdir-p.c (make_dir_parents): Likewise.
32877 * lib/mkdir-p.h (make_dir_parents): Likewise.
32879 2006-10-06 Eric Blake <ebb9@byu.net>
32881 Define several macros for use by the clean-temp module.
32882 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
32883 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
32884 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
32886 * lib/clean-temp.h (close_stream_temp): New declaration.
32887 * lib/clean-temp.c (includes): Pull in headers according to what
32888 other modules are in use.
32889 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
32891 2006-10-06 Bruno Haible <bruno@clisp.org>
32893 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
32894 instead of fopen, fwriteerror.
32896 2006-10-06 Bruno Haible <bruno@clisp.org>
32898 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
32899 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
32901 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
32902 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
32903 Return an error indicator.
32904 Suggested by Eric Blake.
32906 2006-10-06 Bruno Haible <bruno@clisp.org>
32908 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
32909 Reported by Eric Blake.
32911 2006-10-06 Bruno Haible <bruno@clisp.org>
32913 * modules/closeout (Description): Mention stderr too.
32915 2006-10-06 Bruno Haible <bruno@clisp.org>
32916 and Paul Eggert <eggert@cs.ucla.edu>
32918 * lib/closeout.c (close_stdout): Also close stderr.
32919 * lib/closeout.h: Update comment.
32921 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
32923 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
32924 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
32925 * lib/dirchownmod.c: Include lchown.h.
32926 * lib/lchown.c: Don't include files that lchown.h now includes.
32927 Don't declare chown, since lchown.h now does that.
32928 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
32929 (lchown): Define to rpl_chown if lchown is declared but
32930 does not exist. Declare using a prototype if lchown is not
32931 declared. Add a copyright notice.
32932 * lib/mkstemp.h: Include <unistd.h>.
32933 * lib/openat.c: Include lchown.h.
32935 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
32936 we now test for that separately.
32937 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
32938 rather than O_NOFOLLOW, when testing whether it's possible to
32939 avoid a race condition reliably.
32940 * lib/savewd.c (savewd_chdir): Likewise.
32942 Remove macros that are no longer needed now that stdint.h is
32944 * lib/fsusage.c (UINTMAX_MAX): Remove.
32945 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
32946 * lib/utimecmp.c (SIZE_MAX): Remove.
32948 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
32950 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
32951 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
32954 2006-10-05 Bruno Haible <bruno@clisp.org>
32956 * lib/gl_list.h (gl_sortedlist_search_from_to,
32957 gl_sortedlist_indexof_from_to): New declarations.
32958 (gl_list_implementation): New fields sortedlist_search_from_to,
32959 sortedlist_indexof_from_to.
32960 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
32962 * lib/gl_list.c (gl_sortedlist_search_from_to,
32963 gl_sortedlist_indexof_from_to): New functions.
32964 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
32966 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
32967 (gl_array_sortedlist_search_from_to): New function.
32968 (gl_array_list_implementation): Update.
32969 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
32971 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
32972 (gl_carray_sortedlist_search_from_to): New function.
32973 (gl_carray_list_implementation): Update.
32974 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
32975 gl_linked_sortedlist_indexof_from_to): New functions.
32976 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
32977 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
32978 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
32979 gl_tree_sortedlist_indexof_from_to): New functions.
32980 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
32981 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
32983 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
32984 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
32987 2006-10-05 Bruno Haible <bruno@clisp.org>
32989 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
32990 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
32991 (struct gl_list_implementation): Add fields search_from_to,
32992 indexof_from_to. Remove fields search, indexof.
32993 (gl_list_search): Use the search_from_to method.
32994 (gl_list_search_from, gl_list_search_from_to): New functions.
32995 (gl_list_indexof): Use the indexof_from_to method.
32996 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
32997 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
32998 (gl_list_search_from, gl_list_search_from_to): New functions.
32999 (gl_list_indexof): Use the indexof_from_to method.
33000 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
33001 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
33002 gl_array_indexof. Add start_index, end_index arguments.
33003 (gl_array_search_from_to): Renamed from gl_array_search. Add
33004 start_index, end_index arguments.
33005 (gl_array_remove, gl_array_list_implementation): Update.
33006 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
33007 gl_carray_indexof. Add start_index, end_index arguments.
33008 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
33009 start_index, end_index arguments.
33010 (gl_carray_remove, gl_carray_list_implementation): Update.
33011 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
33012 gl_linked_search. Add start_index, end_index arguments.
33013 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
33014 start_index, end_index arguments.
33015 (gl_linked_remove): Update.
33016 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33017 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33018 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
33020 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
33021 gl_tree_search. Add start_index, end_index arguments.
33022 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
33023 start_index, end_index arguments.
33024 (gl_tree_remove): Update.
33025 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33026 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33027 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
33029 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
33030 gl_tree_search. Add start_index, end_index arguments.
33031 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
33032 start_index, end_index arguments.
33033 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33035 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33037 2006-10-05 Bruno Haible <bruno@clisp.org>
33039 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
33041 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
33042 fwriteerror_temp): New declarations.
33043 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
33044 (descriptors): New variable.
33045 (cleanup): First, close the descriptors.
33046 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
33047 fclose_temp, fwriteerror_temp): New functions.
33049 2006-10-04 Jim Meyering <jim@meyering.net>
33051 * lib/fts.c (fts_open): Tiny comment change.
33053 2006-10-04 Bruno Haible <bruno@clisp.org>
33055 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
33056 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
33058 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
33059 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
33060 gl_LOCK_EARLY_BODY.
33061 (gl_LOCK): Require gl_LOCK_BODY.
33063 2006-10-04 Bruno Haible <bruno@clisp.org>
33065 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
33066 (gl_oset_search_atleast): New declaration.
33067 (struct gl_oset_implementation): Add field 'search_atleast'.
33068 (gl_oset_search_atleast): New inline function.
33069 * lib/gl_oset.c (gl_oset_search_atleast): New function.
33070 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
33071 (gl_array_oset_implementation): Update.
33072 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
33073 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
33074 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
33076 2006-10-04 Bruno Haible <bruno@clisp.org>
33078 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
33080 2006-10-03 Bruno Haible <bruno@clisp.org>
33082 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
33083 from gl_avltreehash_list_implementation.
33085 2006-10-03 Bruno Haible <bruno@clisp.org>
33087 * lib/gl_oset.c (gl_oset_add): Fix return type.
33089 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
33091 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
33093 2006-10-02 Eric Blake <ebb9@byu.net>
33095 * modules/strnlen (Depends-on): Add extensions.
33097 2006-10-02 Eric Blake <ebb9@byu.net>
33099 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
33100 definition in 2.60+.
33102 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
33104 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
33107 2006-10-02 Bruno Haible <bruno@clisp.org>
33109 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
33110 to the AUTOMAKE_OPTIONS.
33111 Reported by Jim Meyering.
33113 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
33115 Work around bug in Solaris 10 /proc file system:
33116 /proc/self/fd/NNN/.. isn't the parent directory of
33117 the directory whose file descriptor is NNN. This needs to
33118 be worked around at run time, not compile time, since a
33119 program might be built on Solaris 8, where things work, and
33121 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
33122 to use the following interface instead:
33123 (OPENAT_BUFFER_SIZE): New macro.
33124 (openat_proc_name): New function.
33125 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
33126 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
33128 * lib/openat-proc.c: New file.
33129 * modules/openat (Files): Add lib/openat-proc.c.
33130 (Depends-on): Add same-inode, stdbool.
33131 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
33133 2006-09-29 Bruno Haible <bruno@clisp.org>
33135 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
33136 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
33137 argument. Set stdout_closed before testing for ferror, not after.
33138 (fwriteerror, fwriteerror_no_ebadf): New functions.
33140 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33142 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
33144 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
33146 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
33147 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
33149 2006-09-28 Jim Meyering <jim@meyering.net>
33151 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
33152 Include <unistd.h>.
33154 2006-09-28 Bruno Haible <bruno@clisp.org>
33156 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
33157 * modules/linkedhash-list (Depends-on): Likewise.
33158 * modules/rbtreehash-list (Depends-on): Likewise.
33160 2006-09-28 Bruno Haible <bruno@clisp.org>
33162 * lib/strndup.h: Simplify the redefinition of strndup.
33163 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
33164 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
33166 2006-09-28 Bruno Haible <bruno@clisp.org>
33168 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
33169 * lib/gl_linkedhash_list.c: Likewise.
33170 * lib/gl_rbtreehash_list.c: Likewise.
33172 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
33174 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
33177 * lib/__fpending.h: Don't include <stdio_ext.h> unless
33178 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
33179 it causes <stdio_ext.h> to cause a compile-time error.
33180 Problem reported by Nelson H. F. Beebe.
33181 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
33182 of HAVE_DECL___PENDING.
33184 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
33185 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
33188 2006-09-27 Jim Meyering <jim@meyering.net>
33190 This file could end up with a definition for a function
33191 named __strndup, rather than rpl_strndup on a system with
33192 incomplete weak_alias support.
33193 * lib/strndup.c (strndup): Rename from __strndup.
33194 Remove #defines that used to map __strndup to strndup.
33195 Don't use K&R prototypes.
33196 Remove LIBC-related code, since this file is not sync'd with glibc.
33197 * lib/strndup.h: Revamp, accordingly.
33198 * m4/strndup.m4: Modernize.
33200 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
33202 * modules/savewd (Depends-on): Add 'raise'.
33203 * lib/savewd.c: Include <signal.h>, for 'raise'.
33205 2006-09-26 Jim Meyering <jim@meyering.net>
33207 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
33208 when we detect Darwin 8.7.0's acl_get_file bug.
33209 Rearrange to perform the new (below) run-test while $LIBS
33210 contains any acl-related library. Set USE_ACL at the end.
33211 (gl_ACL_GET_FILE): New function.
33213 2006-09-26 Eric Blake <ebb9@byu.net>
33215 * lib/verror.c: Include <config.h> unconditionally.
33217 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
33219 * modules/clock-time (Maintainer): Add self.
33220 * modules/getlogin_r (Depends-on): Add extensions.
33222 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33224 * modules/clock-time: New module.
33225 * modules/nanosleep (Depends-on): Add clock-time.
33226 * modules/gethrxtime (Depends-on): Likewise.
33227 * modules/gettime (Depends-on): Likewise.
33228 * modules/settime (Depends-on): Likewise.
33230 * modules/fts-lgpl: Depend on openat.
33231 * modules/mkancesdirs: Depend on savewd.
33232 * modules/mkdir-p: Likewise.
33234 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33236 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
33238 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
33239 `gl_have_arbitrary_file_name_length_limit' to
33240 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
33241 actually works between configure runs.
33243 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33244 Bruno Haible <bruno@clisp.org>
33246 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
33248 2006-09-25 Jim Meyering <jim@meyering.net>
33250 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
33251 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
33253 2006-09-25 Eric Blake <ebb9@byu.net>
33255 * gnulib-tool (func_import, func_create_testdir): Fix typos in
33256 exec's in 2006-09-18 patch when shuffling fds.
33258 2006-09-25 Bruno Haible <bruno@clisp.org>
33260 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
33261 Reported by Jim Meyering.
33263 2006-09-24 Jim Meyering <jim@meyering.net>
33265 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
33266 compare a pointer against a literal "0". That caused failures with
33267 at least HP-UX's hpcc.
33269 2006-09-22 Simon Josefsson <jas@extundo.com>
33273 * modules/gc-hmac-sha1:
33274 * modules/gc-hmac-md5:
33276 * modules/gc-arcfour: Distribute more files.
33278 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33280 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
33281 (gl_linked_iterator_from_to): Initialize struct completely.
33282 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
33283 (gl_tree_iterator_from_to): Likewise
33284 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
33285 * lib/gl_array_list.c [lint] (gl_array_iterator)
33286 (gl_array_iterator_from_to): Likewise.
33287 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
33288 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
33289 (gl_carray_iterator_from_to): Likewise.
33291 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
33292 * lib/md4.c (md4_process_block): Remove unused variable.
33293 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
33294 parentheses for clarity.
33296 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33298 * modules/bison-i18n (Depends-on): Add gettext.
33300 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33302 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
33303 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
33304 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
33305 also add missing comma that caused broken test.
33306 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
33307 stdlib.h, for `abort'.
33308 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
33310 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
33311 include unistd.h if present, for `rmdir'.
33312 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
33314 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
33315 in the process include standard headers for prototypes.
33316 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
33317 gets declared on GNU/Linux.
33318 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
33319 unistd.h, for `rmdir'.
33320 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
33322 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
33324 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
33326 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
33328 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33330 * gnulib-tool (func_version): Create output all at once. This
33331 may help avoid triggering unnecessary SIGPIPEs, and at any
33332 rate it doesn't hurt.
33334 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33335 Bruno Haible <bruno@clisp.org>
33337 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
33338 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
33339 * m4/signed.m4 (bh_C_SIGNED): Likewise.
33341 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
33342 (gl_FUNC_VASPRINTF): Invoke it.
33344 2006-09-22 Bruno Haible <bruno@clisp.org>
33346 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
33347 getloadavg.c as first argument.
33349 2006-09-22 Bruno Haible <bruno@clisp.org>
33351 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
33352 at the beginning of the gl_INIT macro.
33353 * modules/getloadavg (configure.ac): Pass $gl_source_base to
33356 2006-09-22 Bruno Haible <bruno@clisp.org>
33358 * gnulib-tool (func_create_megatestdir): Don't include the config-h
33360 Suggested by Ralf Wildenhues.
33362 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
33364 Import this patch from libc:
33366 2006-09-06 Jakub Jelinek <jakub@redhat.com>
33368 * lib/regex_internal.c (re_string_reconstruct): Handle
33369 offset < pstr->valid_raw_len && pstr->offsets_needed case.
33370 Ensure no bytes read before raw_mbs array. Pass a saved copy of
33371 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
33372 re_string_context_at.
33374 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
33376 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
33377 gl_REGEX now does it for us.
33378 (gl_REGEX): Add test taken from
33379 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
33381 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
33382 Check that large offsets work. Modernize Autoconf usages.
33383 Prefer "yes" to mean a good thing rather than a bad.
33384 Don't put "#define mkstemp" in config.h, as this might interfere
33385 with standard system headers that "#define mkstemp mkstemp64".
33387 * modules/mkstemp (Depends-on): Add extensions, so that
33388 mkstemp is visible on some platforms.
33389 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
33390 (Include): Change to "mkstemp.h" from <stdlib.h>.
33391 (Files): Add mkstemp.h.
33393 * lib/mkstemp.h: New file, since some standard headers
33395 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
33396 Include "mkstemp.h".
33397 Make the _LIBC code resemble glibc original more,
33398 e.g., use K&R style.
33399 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
33400 (mkstemp): Remove, since mkstemp.h does this for us.
33401 * lib/stdlib--.h: Include mkstemp.h.
33403 Import this patch from libc:
33405 2006-04-07 Ulrich Drepper <drepper@redhat.com>
33407 * lib/tempname.c (__gen_tempname): Change attempts_min
33408 into a macro. Use preprocessor to decide how to initialize
33409 attempts [Coverity CID 67].
33411 2006-09-20 Bruno Haible <bruno@clisp.org>
33413 * lib/mkdtemp.c: Import from libc.
33414 2006-04-07 Ulrich Drepper <drepper@redhat.com>
33415 * sysdeps/posix/tempname.c (__gen_tempname): Change
33416 attempts_min into a macro. Use preprocessor to decide how to
33417 initialize attempts [Coverity CID 67].
33418 2001-11-27 Paul Eggert <eggert@twinsun.com>
33419 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
33420 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
33422 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33424 * gnulib-tool (func_exit): New function, to allow to pass the
33425 exit status portably through the trap. Use everywhere.
33426 (--help, --version): Signal a write error.
33427 (trap): catch SIGPIPE, for write errors.
33428 Exit at the end of the trap, with the correct exit status.
33430 2006-09-19 Karl Berry <karl@gnu.org>
33432 * doc/gnulib.texi: note about the license texinfo files.
33434 2006-09-19 Eric Blake <ebb9@byu.net>
33436 * gnulib-tool: Avoid space-tab.
33438 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
33440 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
33441 that prevented coreutils 6.1 from building. Problem reported
33442 by Petter Reinholdtsen.
33444 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
33446 * gnulib-tool (avoidlist): Fix typo that broke options like
33447 --avoid=lock that are used by coreutils bootstrap.
33449 2006-09-18 Mark D. Baushke <mdb@gnu.org>
33451 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
33452 more systematically.
33454 2006-09-18 Jim Meyering <jim@meyering.net>
33456 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
33458 2006-09-18 Bruno Haible <bruno@clisp.org>
33460 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
33462 2006-09-18 Bruno Haible <bruno@clisp.org>
33464 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
33465 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
33466 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
33467 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
33468 * m4/gettext.m4: Require autoconf >= 2.52.
33469 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
33470 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
33471 of gl_cv_header_inttypes_h.
33473 2006-09-18 Bruno Haible <bruno@clisp.org>
33475 * lib/javaversion.c: Include configmake.h.
33477 2006-09-18 Bruno Haible <bruno@clisp.org>
33479 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
33480 avoid that the while loops be executed in a subshell.
33482 2006-09-18 Bruno Haible <bruno@clisp.org>
33484 * MODULES.html.sh (func_module): Break long lines.
33485 Suggested by Bruce Korb <bkorb@gnu.org>.
33487 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33489 Speed up by a factor of 1.12.
33490 * gnulib-tool (nl): New variable.
33491 (func_import): Rewrite include directive extraction to only read each
33494 2006-09-17 Bruno Haible <bruno@clisp.org>
33496 * modules/javaversion (Makefile.am): Remove DEFS setting.
33497 (Depends-on): Add configmake, for PKGDATADIR definition.
33499 2006-09-17 Bruno Haible <bruno@clisp.org>
33501 * gnulib-tool (func_create_testdir): Rewrite all files at once.
33503 2006-09-17 Bruno Haible <bruno@clisp.org>
33505 * gnulib-tool (func_append): New function, stolen from libtool.m4.
33506 (func_modules_transitive_closure, func_modules_add_dummy,
33507 func_modules_to_filelist, func_import, func_create_testdir,
33508 func_create_megatestdir, ...): Use it wherever possible.
33509 Suggested by Ralf Wildenhues.
33511 2006-09-16 Karl Berry <karl@gnu.org>
33513 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
33514 to avoid sectioning errors.
33515 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
33516 [ifinfo]: blank line after @center-ed titles.
33517 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
33518 Spell FSF address consistently with others.
33519 (These changes approved by rms.)
33521 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33523 Speed up by a factor of 1.61.
33524 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
33525 already checked module names again.
33527 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33529 Speed up by a factor of 1.13.
33530 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
33531 for new_files, and the input to func_add_or_update.
33533 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33535 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
33536 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
33538 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
33540 * modules/mkancesdirs (Depends-on): Add fcntl.
33541 * modules/savewd: New file.
33542 * MODULES.html.sh (File system functions): Add savewd.
33544 * modules/configmake (Makefile.am): Add support for the
33545 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
33547 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
33549 * m4/savewd.m4: New file.
33551 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
33553 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
33554 (dirchownmod): New arg FD. All callers changed.
33555 Use FD rather than opening the directory ourself, as opening is
33556 now the caller's responsibility.
33557 * lib/dirchownmod.h: Likewise.
33558 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
33559 hosts that require <sys/types.h> before <sys/stat.h>. Include
33560 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
33561 (test_dir): Remove.
33562 (mkancesdirs): Return length of prefix of FILE that has already
33563 been made, or -2 if there is a child doing the work. Redo
33564 algorithm so that it is O(N) rather than O(N**2). Optimize away
33565 ".", and treat ".." specially since it might stray back into
33566 already-created areas. Use a subprocess if necessary. New arg
33567 WD; all users changed. MAKE_DIR function should now return 1
33568 if it creates a directory that is not readable. Return -2 if
33569 a child process is spun off.
33570 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
33571 Adjust signature to match code.
33572 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
33573 (make_dir_parents): Use a subprocess if necessary. New arg WD;
33575 * lib/savewd.c, lib/savewd.h: New files.
33577 2006-09-15 Jim Meyering <jim@meyering.net>
33579 * modules/rename-dest-slash: New module.
33580 * MODULES.html.sh (posix_compat): Add it here.
33582 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
33584 2006-09-15 Jim Meyering <jim@meyering.net>
33586 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
33589 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
33591 2006-09-15 Jim Meyering <jim@meyering.net>
33593 * lib/rename-dest-slash.c (has_trailing_slash): Use
33594 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
33595 (rpl_rename_dest_slash): Perform the cheaper trailing slash
33596 test before testing whether SRC is a directory.
33597 Suggestions from Bruno Haible.
33599 Avoid a warning about an unused variable.
33600 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
33601 into the #ifdef block where it's used.
33603 * lib/rename-dest-slash.c: New file.
33605 2006-09-14 Bruno Haible <bruno@clisp.org>
33607 * lib/allocsa.c: Include <config.h> unconditionally.
33608 * lib/asnprintf.c: Likewise.
33609 * lib/asprintf.c: Likewise.
33610 * lib/c-strcasecmp.c: Likewise.
33611 * lib/c-strcasestr.c: Likewise.
33612 * lib/c-strncasecmp.c: Likewise.
33613 * lib/c-strstr.c: Likewise.
33614 * lib/classpath.c: Likewise.
33615 * lib/clean-temp.c: Likewise.
33616 * lib/concatpath.c: Likewise.
33617 * lib/copy-file.c: Likewise.
33618 * lib/csharpcomp.c: Likewise.
33619 * lib/csharpexec.c: Likewise.
33620 * lib/execute.c: Likewise.
33621 * lib/fatal-signal.c: Likewise.
33622 * lib/findprog.c: Likewise.
33623 * lib/fwriteerror.c: Likewise.
33624 * lib/gl_array_list.c: Likewise.
33625 * lib/gl_array_oset.c: Likewise.
33626 * lib/gl_avltree_list.c: Likewise.
33627 * lib/gl_avltree_oset.c: Likewise.
33628 * lib/gl_avltreehash_list.c: Likewise.
33629 * lib/gl_carray_list.c: Likewise.
33630 * lib/gl_linked_list.c: Likewise.
33631 * lib/gl_linkedhash_list.c: Likewise.
33632 * lib/gl_list.c: Likewise.
33633 * lib/gl_oset.c: Likewise.
33634 * lib/gl_rbtree_list.c: Likewise.
33635 * lib/gl_rbtree_oset.c: Likewise.
33636 * lib/gl_rbtreehash_list.c: Likewise.
33637 * lib/imaxabs.c: Likewise.
33638 * lib/imaxdiv.c: Likewise.
33639 * lib/javacomp.c: Likewise.
33640 * lib/javaexec.c: Likewise.
33641 * lib/javaversion.c: Likewise.
33642 * lib/linebreak.c: Likewise.
33643 * lib/localcharset.c: Likewise.
33644 * lib/lock.c: Likewise.
33645 * lib/mbchar.c: Likewise.
33646 * lib/mbswidth.c: Likewise.
33647 * lib/mkdtemp.c: Likewise.
33648 * lib/pipe.c: Likewise.
33649 * lib/printf-args.c: Likewise.
33650 * lib/printf-parse.c: Likewise.
33651 * lib/progname.c: Likewise.
33652 * lib/progreloc.c: Likewise.
33653 * lib/readlink.c: Likewise.
33654 * lib/sh-quote.c: Likewise.
33655 * lib/stpcpy.c: Likewise.
33656 * lib/stpncpy.c: Likewise.
33657 * lib/strcasecmp.c: Likewise.
33658 * lib/strcasestr.c: Likewise.
33659 * lib/strcspn.c: Likewise.
33660 * lib/striconv.c: Likewise.
33661 * lib/strncasecmp.c: Likewise.
33662 * lib/strnlen1.c: Likewise.
33663 * lib/strstr.c: Likewise.
33664 * lib/strtok_r.c: Likewise.
33665 * lib/tls.c: Likewise.
33666 * lib/tmpdir.c: Likewise.
33667 * lib/unicodeio.c: Likewise.
33668 * lib/unsetenv.c: Likewise.
33669 * lib/vasnprintf.c: Likewise.
33670 * lib/vasprintf.c: Likewise.
33671 * lib/wait-process.c: Likewise.
33672 * lib/xallocsa.c: Likewise.
33673 * lib/xsetenv.c: Likewise.
33674 * lib/xstriconv.c: Likewise.
33676 2006-09-13 Simon Josefsson <jas@extundo.com>
33678 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
33679 that internally, suggested by Ralf Wildenhues
33680 <Ralf.Wildenhues@gmx.de>.
33682 2006-09-13 Simon Josefsson <jas@extundo.com>
33684 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
33686 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
33688 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
33690 * lib/_fpending.c: Include <config.h> unconditionally, since we no
33691 longer worry about uses that don't define HAVE_CONFIG_H.
33692 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
33693 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
33694 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
33695 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
33696 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
33697 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
33698 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
33699 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
33700 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
33701 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
33702 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
33703 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
33704 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
33705 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
33706 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
33707 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
33708 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
33709 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
33710 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
33711 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
33712 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
33713 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
33714 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
33715 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
33716 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
33717 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
33718 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
33719 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
33720 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
33721 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
33722 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
33723 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
33724 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
33725 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
33726 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
33727 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
33728 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
33729 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
33730 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
33731 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
33732 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
33735 2006-09-13 Eric Blake <ebb9@byu.net>
33737 * lib/getopt.c: Fix typo in last commit.
33739 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
33741 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
33744 2006-09-12 Jim Meyering <jim@meyering.net>
33746 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
33747 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
33748 Reported by Nelson H. F. Beebe.
33750 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
33752 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
33753 program_invocation_name and program_invocation_short_name are
33755 * lib/argp-namefrob.h: Move declarations of program_invocation_name
33756 and program_invocation_short_name to argp.h, so they are visible
33758 * lib/argp.h: Likewise
33760 2006-09-10 Bruno Haible <bruno@clisp.org>
33762 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
33763 m4/inttypes_h.m4, m4/uintmax_t.m4.
33765 2006-09-10 Bruno Haible <bruno@clisp.org>
33767 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
33768 gl_AC_TYPE_UINTMAX_T.
33770 2006-09-10 Bruno Haible <bruno@clisp.org>
33772 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
33774 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
33776 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
33777 convention. Text proposed by Bruno Haible.
33778 (struct argp_option): Document the use of N_() wrappers.
33780 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
33781 '\v', and translate the two parts separately, instead of feeding
33782 the whole string to gettext. This allows to exclude
33783 '\v' from the strings visible to the translator by writing doc
33784 strings as N_("..") "\v" N_("..").
33786 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
33788 * config/srclist.txt: Undo latest change; the bug was fixed.
33790 2006-09-09 Bruno Haible <bruno@clisp.org>
33792 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
33793 assignments if building a library without libtool.
33794 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
33795 in func_emit_lib_Makefile_am.
33796 (func_import): When building a static library libfoo.a, arrange to
33797 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
33798 (func_create_testdir): Likewise.
33799 * modules/gc (configure.ac, Makefile.am): If building statically,
33800 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
33801 * modules/iconvme (configure.ac, Makefile.am): Likewise.
33802 * modules/striconv (configure.ac, Makefile.am): Likewise.
33803 Based on a suggestion by Ralf Wildenhues.
33805 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
33807 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
33808 Check for unistd.h too, since Autoconf doesn't assume POSIX.
33811 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
33812 Add year_2050_test to catch glibc bug 2821
33813 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
33815 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
33816 Prefer #ifdef to #if.
33818 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
33819 Return from 'main' instead of calling 'exit'.
33821 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
33823 * lib/mktime.c (guess_time_tm): Fix bug where mktime
33824 returned the maximum time_t value rather than (time_t) -1.
33825 Problem originally reported by William Bardwell
33826 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
33828 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
33830 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
33833 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
33835 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
33838 2006-09-08 Jim Meyering <jim@meyering.net>
33840 Don't make generated files read-only. That would bother too many
33841 people. However, do retain the ability to work when targets are
33842 read-only: remove the destination and temporary files before writing
33843 them (when generated via sed or echo), or by using the -f option for
33844 both cp and mv commands. Suggestion to use -f from Paul Eggert.
33845 * modules/alloca-opt, modules/argz, modules/arpa_inet:
33846 * modules/byteswap, modules/configmake, modules/fcntl:
33847 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
33848 * modules/localcharset, modules/netinet_in, modules/poll:
33849 * modules/stdbool, modules/stdint, modules/sys_select:
33850 * modules/sys_socket, modules/sys_stat, modules/sysexits:
33852 2006-09-08 Jim Meyering <jim@meyering.net>
33854 Avoid new build failure on FreeBSD 6.0.
33855 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
33856 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
33857 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
33859 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33861 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
33863 2006-09-07 Jim Meyering <jim@meyering.net>
33865 Fix global typo in last change: use chmod u-w, not chmod u-x.
33866 Spotted by Paul Eggert and Bruce Korb.
33867 * modules/alloca-opt, modules/argz, modules/arpa_inet:
33868 * modules/byteswap, modules/configmake, modules/fcntl:
33869 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
33870 * modules/localcharset, modules/netinet_in, modules/poll:
33871 * modules/stdbool, modules/stdint, modules/sys_select:
33872 * modules/sys_socket, modules/sys_stat, modules/sysexits:
33874 2006-09-06 Jim Meyering <jim@meyering.net>
33876 Make generated files be read-only.
33877 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
33878 Ensure that each generated file is now read-only.
33879 * modules/argz: Likewise.
33880 * modules/arpa_inet: Likewise.
33881 * modules/byteswap: Likewise.
33882 * modules/configmake: Likewise.
33883 * modules/fcntl: Likewise.
33884 * modules/fnmatch: Likewise.
33885 * modules/getopt: Likewise.
33886 * modules/glob: Likewise.
33887 * modules/inttypes: Likewise.
33888 * modules/netinet_in: Likewise.
33889 * modules/poll: Likewise.
33890 * modules/stdbool: Likewise.
33891 * modules/stdint: Likewise.
33892 * modules/sys_select: Likewise.
33893 * modules/sys_socket: Likewise.
33894 * modules/sys_stat: Likewise.
33895 * modules/sysexits: Likewise.
33896 * modules/localcharset: Same as above, but continue using temporary
33897 file named "t-$@" (why different?) rather than the "$@-t" used
33900 * modules/sysexits (Makefile.am): Replace literal occurrences
33901 of "sysexit.h" more readable, and more consistent, "$@".
33903 2006-09-06 Bruno Haible <bruno@clisp.org>
33905 * modules/striconv: New file.
33906 * modules/xstriconv: New file.
33907 * MODULES.html.sh (Internationalization functions): Add striconv,
33910 2006-09-06 Bruno Haible <bruno@clisp.org>
33912 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
33913 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
33914 not using libtool correctly.
33916 2006-09-06 Bruno Haible <bruno@clisp.org>
33918 * lib/striconv.h: New file.
33919 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
33921 * lib/xstriconv.h: New file.
33922 * lib/xstriconv.c: New file.
33924 2006-09-06 Bruno Haible <bruno@clisp.org>
33926 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
33929 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33931 * lib/argz_.h: Sync from Libtool.
33933 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
33934 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33936 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
33938 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
33940 * modules/trim: New file.
33942 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
33944 * lib/trim.h: New file.
33945 * lib/trim.c: New file.
33947 2006-09-05 Bruno Haible <bruno@clisp.org>
33949 * MODULES.html.sh (String handling): Add trim.
33951 2006-09-04 Karl Berry <karl@gnu.org>
33953 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
33954 until next release.
33956 2006-09-03 Bruno Haible <bruno@clisp.org>
33958 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
33961 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
33963 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
33964 not gl_GETLOADAVG. Omit unneeded semicolons.
33965 Problems reported by Ralf Wildenhues in
33966 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
33967 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
33968 at the end, which is the usual gnulib style.
33970 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
33971 of doing all the work ourselves.
33972 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
33973 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
33975 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
33977 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
33978 Problem reported by Ralf Wildenhues in
33979 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
33981 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
33982 HAVE_STRUCT_STATFS_F_FSTYPENAME.
33984 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
33986 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
33987 yesterday's patch by changing test -n to test -z.
33989 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
33991 * modules/getloadavg (Files): Add m4/getloadavg.m4.
33992 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
33993 the former is now obsolescent.
33995 * modules/chdir-long (Depends-on): Add fcntl.
33997 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
33999 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
34000 obsolescent, and programs should use gnulib instead.
34001 * m4/getloadavg.m4: New file, with contents taken from Autoconf
34002 but with prefixes changed.
34004 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
34006 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
34007 or stdbool.h, because they might not exist while configuring.
34009 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
34010 Don't include unistd.h or limits.h; not needed, since chdir-long.h
34012 (O_DIRECTORY): Remove.
34014 2006-08-31 Eric Blake <ebb9@byu.net>
34016 * gnulib-tool: Don't let emacs change spaces to TAB.
34018 2006-08-31 Bruno Haible <bruno@clisp.org>
34020 * gnulib-tool: When calling func_import more than once, do it in a
34022 Reported by Eric Blake <ebb9@byu.net>.
34024 2006-08-31 Bruno Haible <bruno@clisp.org>
34026 * gnulib-tool (nl): Remove variable.
34027 (sed_transform_lib_file): Use more robust test for config-h module.
34028 (func_import): Fix typo in 2006-08-25 patch.
34030 2006-08-31 Bruno Haible <bruno@clisp.org>
34032 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
34033 specified, augment Makefile.am variables instead of assigning them.
34035 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
34037 Work around a bug in both the Linux and SunOS 64-bit kernels:
34038 nanosleep mishandles sleeps for longer than 2**31 seconds.
34039 Problem reported by Frank v Waveren in
34040 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
34041 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
34042 Check for nanosleep bug.
34043 (LIB_NANOSLEEP): Append clock_gettime library if needed.
34045 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
34047 Work around a bug in both the Linux and SunOS 64-bit kernels:
34048 nanosleep mishandles sleeps for longer than 2**31 seconds.
34049 Problem reported by Frank v Waveren in
34050 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
34051 * lib/nanosleep.c (BILLION): New constant.
34052 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
34053 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
34056 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
34058 * modules/nanosleep (Depends-on): Add gettime.
34060 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
34061 and Simon Josefsson <jas@extundo.com>
34062 and Oskar Liljeblad <oskar@osk.mine.nu>
34064 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
34065 * gnulib-tool (func_import): New license type 'unmodifiable license
34067 * modules/fdl: Use it. Longer description.
34068 * module/gpl, module/lgpl: New files.
34070 2006-08-30 Jim Meyering <jim@meyering.net>
34072 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
34073 shadowing the parameter.
34075 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34079 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34081 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
34082 sharing with gnulib. Report by Eric Blake.
34084 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
34086 * modules/isapipe: New file.
34087 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
34089 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
34091 * modules/configmake (Makefile.am): Add a comment, and omit
34092 the CONFIGMAKE_ prefix from generated macro names. Suggested
34095 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
34097 * m4/isapipe.m4: New file.
34099 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
34101 * lib/isapipe.c, lib/isapipe.h: New files.
34103 2006-08-29 Jim Meyering <jim@meyering.net>
34105 * modules/configmake (Makefile.am): Make configmake.h depend on
34106 Makefile. Otherwise, a stale configmake.h could hang around.
34108 2006-08-29 Eric Blake <ebb9@byu.net>
34110 * lib/error.c (error_at_line, print_errno_message): Match libc, after
34111 resolution of upstream bug 3044.
34113 2006-08-29 Bruno Haible <bruno@clisp.org>
34115 * modules/localcharset (Depends-on): Add configmake.
34116 (Makefile.am): Remove setting of LIBDIR through DEFS.
34118 2006-08-29 Bruno Haible <bruno@clisp.org>
34120 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
34123 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
34125 * modules/fcntl: New file.
34126 * modules/chdir-safer (Depends-on): Add fcntl.
34127 * modules/fts: Likewise.
34128 * modules/mkdir-p: Likewise.
34130 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
34131 This undoes the most recent change, since we're now addressing the
34132 problem in a different way.
34134 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
34135 into output, since the output might be called Makefile.am even
34136 if $makefile_name is something different.
34137 (func_import): Use $makefile_am rather than
34138 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
34141 * modules/inttypes (Files): Add m4/inttypes-h.m4.
34143 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
34145 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
34146 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
34147 recent change to stdint.m4, since we're now addressing the problem in a
34150 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
34152 * m4/fcntl_h.m4: New file.
34154 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
34156 * lib/fcntl_.h: New file.
34157 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
34159 * lib/dirchownmod.c: Likewise.
34160 * lib/fts.c: Likewise.
34162 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
34163 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
34164 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
34165 just before including <inttypes.h>, to avoid circular inclusion.
34167 2006-08-28 Jim Meyering <jim@meyering.net>
34169 * doc/visibility.texi: Actually read and correct the grammar of the
34170 sentence affected by yesterday's change.
34172 2006-08-28 Eric Blake <ebb9@byu.net>
34174 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
34177 2006-08-28 Eric Blake <ebb9@byu.net>
34179 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
34181 2006-08-28 Eric Blake <ebb9@byu.net>
34183 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
34185 2006-08-28 Bruno Haible <bruno@clisp.org>
34187 * modules/c-strstr: New file, from GNU gettext.
34188 * MODULES.html.sh (String handling): Add c-strstr.
34190 2006-08-28 Bruno Haible <bruno@clisp.org>
34192 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
34194 Reported by Eric Blake.
34196 2006-08-28 Bruno Haible <bruno@clisp.org>
34198 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
34199 (VASNPRINTF): Return a string of length > INT_MAX without failing.
34200 * lib/vasprintf.c: Include errno.h, limits.h.
34201 (EOVERFLOW): New fallback definition.
34202 (vasprintf): Test here whether the string length is > INT_MAX.
34203 * lib/vsnprintf.c: Include errno.h, limits.h.
34204 (EOVERFLOW): New fallback definition.
34205 (vsnprintf): Fix bug when generated string was too long for the buffer.
34206 Test here whether the string length is > INT_MAX.
34208 2006-08-28 Bruno Haible <bruno@clisp.org>
34210 * lib/inttypes_.h (SCNX*): Remove definitions.
34211 Reported by Eric Blake.
34213 2006-08-28 Bruno Haible <bruno@clisp.org>
34215 * lib/c-strstr.h: New file, from GNU gettext.
34216 * lib/c-strstr.c: New file, from GNU gettext.
34218 2006-08-28 Bruno Haible <bruno@clisp.org>
34220 * gnulib-tool: Reorder some statements.
34222 2006-08-28 Bruno Haible <bruno@clisp.org>
34224 * gnulib-tool: New option --makefile-name.
34225 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
34227 (func_import): Write $makefile_name to the cache file, and read it from
34228 there unless explicitly specified. Use $makefile_name as file name
34229 instead of Makefile.am. Adjust the recommendations accordingly.
34231 2006-08-28 Bruno Haible <bruno@clisp.org>
34233 * gnulib-tool (func_verify_module): Check against misapplying patch.
34235 2006-08-28 Bruno Haible <bruno@clisp.org>
34237 * gnulib-tool (func_relativize, func_relconcat): New functions.
34238 Give an error if --local-dir is given with --update.
34239 Remove trailing slashes from $local_gnulib_dir.
34240 (func_import): Store the relativized $local_gnulib_dir in
34241 gnulib-cache.m4, and read it from there if not specified explicitly.
34243 2006-08-28 Bruno Haible <bruno@clisp.org>
34245 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
34246 is the current directory. Respect also $local_gnulib_dir.
34248 2006-08-28 Bruno Haible <bruno@clisp.org>
34249 Simon Josefsson <jas@extundo.com>
34252 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
34254 2006-08-27 Jim Meyering <jim@meyering.net>
34256 * doc/visibility.texi: Remove duplicate word: "pointer".
34258 2006-08-26 Bruno Haible <bruno@clisp.org>
34260 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
34261 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
34262 (Makefile.am): Create inttypes.h from inttypes_.h.
34263 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
34265 * modules/imaxabs: New file.
34267 * modules/imaxdiv: New file.
34269 2006-08-26 Bruno Haible <bruno@clisp.org>
34271 * m4/inttypes.m4: New file.
34272 * m4/_inttypes_h.m4: Remove file.
34273 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
34275 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
34277 * m4/imaxabs.m4: New file.
34279 * m4/imaxdiv.m4: New file.
34281 2006-08-26 Bruno Haible <bruno@clisp.org>
34283 * lib/inttypes_.h: New file.
34284 * lib/inttypes.h: Remove file.
34285 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
34287 * lib/imaxabs.c: New file.
34289 * lib/imaxdiv.c: New file.
34291 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
34293 New config-h module, so that "make" output needn't be cluttered
34294 by -DHAVE_CONFIG_H.
34295 * MODULES.html.sh (Support for building libraries and executables):
34297 * modules/config-h: New file.
34298 * gnulib-tool (nl, sed_transform_lib_file): New vars.
34299 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
34300 the config-h module is used.
34302 New configmake module, so that "make" output needn't be cluttered
34303 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
34304 * MODULES.html.sh (Support for building libraries and executables):
34306 * modules/configmake: New file.
34308 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
34310 * m4/config-h.m4: New file.
34312 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
34314 * config/srclist.txt: Add elisp-comp.
34316 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
34318 * MODULES.html.sh (Support for building libraries and executables):
34320 * build-aux/elisp-comp: New file.
34321 * modules/elisp-comp: New file.
34323 2006-08-24 Bruno Haible <bruno@clisp.org>
34325 * gnulib-tool (func_create_testdir): Use non-default values of
34326 sourcebase and m4base.
34328 2006-08-24 Bruno Haible <bruno@clisp.org>
34330 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
34333 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
34335 * modules/openat (Depends-on): Add lchown.
34337 2006-08-23 Bruno Haible <bruno@clisp.org>
34339 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
34340 of gl_LOCK_EARLY instead of gl_LOCK.
34342 2006-08-23 Bruno Haible <bruno@clisp.org>
34344 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
34346 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
34348 2006-08-23 Bruno Haible <bruno@clisp.org>
34350 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
34353 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
34354 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
34355 (gl_LOCK): New macro.
34357 2006-08-22 Simon Josefsson <jas@extundo.com>
34359 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
34362 2006-08-22 Simon Josefsson <jas@extundo.com>
34364 * MODULES.html.sh: Add "Support for maintaining and release
34367 * build-aux/gnupload: New file, from coreutils.
34369 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
34371 Avoid the need for AC_LIBSOURCES in m4 macros.
34372 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
34373 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
34374 * modules/check-version (EXTRA_DIST): Add check-version.h.
34375 * modules/crc (EXTRA_DIST): Add crc.h.
34376 * modules/des (EXTRA_DIST): Add des.h.
34377 * modules/gc (EXTRA_DIST): Add gc.h.
34378 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
34379 * modules/getline (EXTRA_DIST): Add getline.h.
34380 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
34381 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
34382 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
34383 * modules/md2 (EXTRA_DIST): Add md2.h.
34384 * modules/md4 (EXTRA_DIST): Add md4.h.
34385 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
34386 * modules/read-file (EXTRA_DIST): Add read-file.h.
34387 * modules/readline (EXTRA_DIST): Add readline.h.
34388 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
34389 rijndael-api-fst.h.
34391 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
34393 * m4/rijndael.m4 (gl_ARCFOUR):
34394 * m4/arctwo.m4 (gl_ARCTWO):
34395 * m4/check-version.m4 (gl_CHECK_VERSION):
34396 * m4/crc.m4 (gl_CRC):
34397 * m4/des.m4 (gl_DES):
34398 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
34399 * m4/gc.m4 (gl_GC):
34400 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
34401 * m4/getline.m4 (gl_FUNC_GETLINE):
34402 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
34403 * m4/hmac-md5.m4 (gl_HMAC_MD5):
34404 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
34405 * m4/md2.m4 (gl_MD2):
34406 * m4/md4.m4 (gl_MD4):
34407 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
34408 * m4/read-file.m4 (gl_FUNC_READ_FILE):
34409 * m4/readline.m4 (gl_FUNC_READLINE):
34410 * m4/rijndael.m4 (gl_RIJNDAEL):
34411 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
34412 to get the necessary .h files and whatnot.
34414 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
34416 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
34417 gnulib rather than the other way around.
34418 * config/srclistvars.sh (COREUTILS): Remove.
34420 2006-08-22 Jim Meyering <jim@meyering.net>
34422 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
34424 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
34426 2006-08-22 Eric Blake <ebb9@byu.net>
34428 * modules/regexprops-generic: New file.
34429 * MODULES.html.sh (Support for building documentation): List it.
34431 2006-08-22 Eric Blake <ebb9@byu.net>
34433 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
34434 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
34435 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
34436 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
34438 2006-08-22 Bruno Haible <bruno@clisp.org>
34440 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
34441 and lib_LTLIBRARIES like the other lib_* variables.
34443 2006-08-22 Bruno Haible <bruno@clisp.org>
34445 * build-aux/x-to-1.in: New file, from GNU gettext.
34447 2006-08-22 Bruno Haible <bruno@clisp.org>
34449 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
34452 2006-08-22 Bruno Haible <bruno@clisp.org>
34454 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
34457 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
34460 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
34462 Problem reported by Bruno Haible.
34464 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
34466 Avoid the need for AC_LIBSOURCES in m4 macros.
34467 * modules/acl (EXTRA_DIST): Add acl.h.
34468 * modules/argmatch (Files): Add m4/argmatch.m4.
34469 (configure.ac): Add gl_ARGMATCH.
34470 (EXTRA_DIST): Renamed from lib_SOURCES, for
34471 consistency with the other modules. Remove argmatch.c.
34472 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
34473 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
34474 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
34475 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
34476 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
34477 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
34478 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
34479 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
34480 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
34481 * modules/closeout (EXTRA_DIST): Add closeout.h.
34482 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
34483 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
34484 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
34485 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
34486 dirname.h; remove basename.c and stripslash.c.
34487 * modules/exclude (EXTRA_DIST): Add exclude.h.
34488 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
34489 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
34490 * modules/file-type (EXTRA_DIST): Add file-type.h.
34491 * modules/filemode (EXTRA_DIST): Add filemode.h.
34492 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
34493 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
34494 * modules/fpending (EXTRA_DIST): Add __fpending.h.
34495 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
34496 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
34497 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
34498 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
34499 * modules/getdate (EXTRA_DIST): Add getdate.c.
34500 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
34501 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
34502 * modules/getpass (EXTRA_DIST): Add getpass.h.
34503 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
34504 * modules/group-member (EXTRA_DIST): Add group-member.h.
34505 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
34506 * modules/hash (EXTRA_DIST): Add hash.h.
34507 * modules/human (EXTRA_DIST): Add human.h.
34508 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
34509 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
34510 * modules/lchown (EXTRA_DIST): Add lchown.h.
34511 * modules/long-options (EXTRA_DIST): Add long-options.h.
34512 * modules/lstat (EXTRA_DIST): Add lstat.h.
34513 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
34514 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
34515 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
34516 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
34517 * modules/memxor (EXTRA_DIST): Add memxor.h.
34518 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
34519 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
34520 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
34521 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
34522 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
34523 * modules/physmem (EXTRA_DIST): Add physmem.h.
34524 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
34525 * modules/posixver (EXTRA_DIST): Add posixver.h.
34526 * modules/quote (EXTRA_DIST): Add quote.h.
34527 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
34528 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
34529 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
34530 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
34531 regex_internal.h regexec.c.
34532 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
34533 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
34534 * modules/same (EXTRA_DIST): Add same.h.
34535 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
34536 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
34537 * modules/savedir (EXTRA_DIST): Add savedir.h.
34538 * modules/sha1 (EXTRA_DIST): Add sha1.h.
34539 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
34540 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
34541 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
34542 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
34543 * modules/strdup (EXTRA_DIST): Add strdup.h.
34544 * modules/strftime (EXTRA_DIST): Add strftime.h.
34545 * modules/strndup (EXTRA_DIST): Add strndup.h.
34546 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
34547 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
34548 * modules/time_r (EXTRA_DIST): Add time_r.h.
34549 * modules/timespec (EXTRA_DIST): Add timespec.h.
34550 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
34551 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
34552 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
34553 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
34554 * modules/userspec (EXTRA_DIST): Add userspec.h.
34555 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
34556 * modules/utimens (EXTRA_DIST): Add utimens.h.
34557 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
34558 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
34559 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
34560 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
34561 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
34562 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
34563 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
34564 * modules/yesno (EXTRA_DIST): Add yesno.h.
34566 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
34568 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
34570 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
34571 * m4/dev-ino.m4, same-inode.m4: Remove.
34573 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
34574 * m4/acl.m4 (AC_FUNC_ACL):
34575 * m4/backupfile.m4 (gl_BACKUPFILE):
34576 * m4/c-strtod.m4 (gl_C99_STRTOLD):
34577 * m4/canon-host.m4 (gl_CANON_HOST):
34578 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
34579 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
34580 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
34581 * m4/cloexec.m4 (gl_CLOEXEC):
34582 * m4/close-stream.m4 (gl_CLOSE_STREAM):
34583 * m4/closeout.m4 (gl_CLOSEOUT):
34584 * m4/dirfd.m4 (gl_FUNC_DIRFD):
34585 * m4/dirname.m4 (gl_DIRNAME):
34586 * m4/exclude.m4 (gl_EXCLUDE):
34587 * m4/exitfail.m4 (gl_EXITFAIL):
34588 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
34589 * m4/file-type.m4 (gl_FILE_TYPE):
34590 * m4/filemode.m4 (gl_FILEMODE):
34591 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
34592 * m4/fpending.m4 (gl_FUNC_FPENDING):
34593 * m4/fprintftime.m4 (gl_FPRINTFTIME):
34594 * m4/fts.m4 (gl_FUNC_FTS):
34595 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
34596 * m4/getdate.m4 (gl_GETDATE):
34597 * m4/gethrxtime.m4 (gl_GETHRXTIME):
34598 * m4/getpagesize.m4 (gl_GETPAGESIZE):
34599 * m4/getpass.m4 (gl_FUNC_GETPASS):
34600 * m4/gettime.m4 (gl_GETTIME):
34601 * m4/getugroups.m4 (gl_GETUGROUPS):
34602 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
34603 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
34604 * m4/hard-locale.m4 (gl_HARD_LOCALE):
34605 * m4/hash.m4 (gl_HASH):
34606 * m4/idcache.m4 (gl_IDCACHE):
34607 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
34608 * m4/lchown.m4 (gl_FUNC_LCHOWN):
34609 * m4/long-options.m4 (gl_LONG_OPTIONS):
34610 * m4/lstat.m4 (gl_FUNC_LSTAT):
34611 * m4/md5.m4 (gl_MD5):
34612 * m4/memcasecmp.m4 (gl_MEMCASECMP):
34613 * m4/memcoll.m4 (gl_MEMCOLL):
34614 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
34615 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
34616 * m4/memxor.m4 (gl_MEMXOR):
34617 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
34618 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
34619 * m4/modechange.m4 (gl_MODECHANGE):
34620 * m4/mountlist.m4 (gl_MOUNTLIST):
34621 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
34622 * m4/openat.m4 (gl_FUNC_OPENAT):
34623 * m4/pathmax.m4 (gl_PATHMAX):
34624 * m4/physmem.m4 (gl_PHYSMEM):
34625 * m4/posixtm.m4 (gl_POSIXTM):
34626 * m4/posixver.m4 (gl_POSIXVER):
34627 * m4/quote.m4 (gl_QUOTE):
34628 * m4/quotearg.m4 (gl_QUOTEARG):
34629 * m4/readtokens.m4 (gl_READTOKENS):
34630 * m4/readutmp.m4 (gl_READUTMP):
34631 * m4/regex.m4 (gl_REGEX):
34632 * m4/safe-read.m4 (gl_SAFE_READ):
34633 * m4/safe-write.m4 (gl_SAFE_WRITE):
34634 * m4/same.m4 (gl_SAME):
34635 * m4/save-cwd.m4 (gl_SAVE_CWD):
34636 * m4/savedir.m4 (gl_SAVEDIR):
34637 * m4/settime.m4 (gl_SETTIME):
34638 * m4/sha1.m4 (gl_SHA1):
34639 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
34640 * m4/stat-macros.m4 (gl_STAT_MACROS):
34641 * m4/stat-time.m4 (gl_STAT_TIME):
34642 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
34643 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
34644 * m4/strdup.m4 (gl_FUNC_STRDUP):
34645 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
34646 * m4/strndup.m4 (gl_FUNC_STRNDUP):
34647 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
34648 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
34649 * m4/time_r.m4 (gl_TIME_R):
34650 * m4/timespec.m4 (gl_TIMESPEC):
34651 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
34652 * m4/unlinkdir.m4 (gl_UNLINKDIR):
34653 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
34654 * m4/userspec.m4 (gl_USERSPEC):
34655 * m4/utimecmp.m4 (gl_UTIMECMP):
34656 * m4/utimens.m4 (gl_UTIMENS):
34657 * m4/xalloc.m4 (gl_XALLOC):
34658 * m4/xgetcwd.m4 (gl_XGETCWD):
34659 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
34660 * m4/xreadlink.m4 (gl_XREADLINK):
34661 * m4/xstrtod.m4 (gl_XSTRTOD):
34662 * m4/yesno.m4 (gl_YESNO):
34663 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
34664 to get the necessary .h files and whatnot.
34666 2006-08-21 Mark D. Baushke <mdb@gnu.org>
34667 Bruno Haible <bruno@clisp.org>
34669 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
34670 /bin/sh understanding of '!' conditional negation.
34672 2006-08-21 Jim Meyering <jim@meyering.net>
34674 * modules/openat (Depends-on): Really alphabetize.
34676 * modules/acl (Depends-on): Add error and quote.
34678 * check-module (find_included_lib_files): Add at-func.c to the
34679 ok-to-include-more-than-once white list.
34681 * modules/openat (Depends-on): Add lstat. Alphabetize.
34683 2006-08-21 Bruno Haible <bruno@clisp.org>
34685 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34686 Emit a pkgdata_DATA variable only if some snippets add contents to it.
34687 Reported by Martin Lambers <marlam@marlam.de>.
34689 2006-08-21 Bruno Haible <bruno@clisp.org>
34691 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
34692 specify an installation location, don't emit a noinst_LIBRARIES or
34693 noinst_LTLIBRARIES assignment.
34695 2006-08-21 Bruno Haible <bruno@clisp.org>
34698 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
34699 BeOS has mbrtowc() but no <wctype.h>.
34701 2006-08-21 Bruno Haible <bruno@clisp.org>
34704 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
34707 2006-08-21 Bruno Haible <bruno@clisp.org>
34710 * lib/mbchar.h: Include <wctype.h> only if it exists.
34712 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
34714 Remove files that are no longer needed by their respective modules.
34715 * m4/obstack.m4: Remove.
34716 * m4/strerror_r.m4: Remove.
34717 * m4/uint32_t.m4: Remove.
34718 * m4/uintptr_t.m4: Remove.
34719 * m4/ullong_max.m4: Remove.
34720 * m4/xstrtoimax.m4: Remove.
34721 * m4/xstrtoumax.m4: Remove.
34723 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
34724 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
34725 dependencies now capture this.
34727 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
34728 Do not use AC_LIBSOURCES, since gnulib modules now do this.
34729 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
34730 * m4/human.m4 (gl_HUMAN): Likewise.
34731 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
34732 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
34734 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
34736 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
34737 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
34739 * m4/human.m4 (gl_HUMAN): Likewise.
34740 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
34741 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
34742 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
34743 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
34744 * m4/xstrtol (gl_XSTRTOL): Likewise.
34746 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
34747 AC_TYPE_LONG_LONG_INT.
34748 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
34749 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
34750 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
34751 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
34753 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
34756 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
34757 (gl_PREREQ_XSTRTOUL): Remove.
34759 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
34761 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
34764 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
34766 Add and change modules to make it easier for coreutils to use
34768 * modules/backupfile (Files): Remove m4/d-ino.m4.
34769 (Depends-on): Add d-ino.
34770 * modules/cycle-check (Depends-on): Add stdint.
34771 (lib_SOURCES): Add cycle-check.h.
34772 * modules/d-ino: New module.
34773 * modules/d-type: New module.
34774 * modules/error (Files): Remove m4/strerror_r.m4.
34775 * modules/filemode (Files): Add m4/st_dm_mode.m4.
34776 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
34777 m4/inttypes_h.m4, m4/uintmax_t.m4.
34778 (Depends-on): Add stdint.
34779 (lib_SOURCES): Add fsusage.h.
34780 * modules/getcwd (Files): Remove d-ino.m4.
34781 (Depends-on): Add d-ino.
34782 * modules/getndelim2 (Depends-on): Add stdint.
34783 * modules/glob (Files): Remove m4/d-type.m4.
34784 (Depends-on): Add d-type.
34785 * modules/host-os: New module.
34786 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
34787 m4/inttypes_h.m4, m4/uintmax_t.m4.
34788 * Depends-on: Add stdint.
34789 (lib_SOURCES): Add human.h.
34790 * modules/inttostr (Files): Remove m4/intmax_t.m4,
34791 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
34792 m4/uintmax_t.m4, m4/ulonglong.m4.
34793 (Depends-on): Add stdint.
34794 (EXTRA_DIST): Add inttostr.h.
34795 * modules/lchmod: New module.
34796 * modules/link-follow: New module.
34797 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
34798 (Depends-on): Add lchmod.
34799 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
34800 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
34801 (Depends-on): Add stdint.
34802 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
34803 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
34804 (Depends-on): Add stdint.
34805 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
34806 * modules/perl: New module.
34807 * modules/regex (Depends-on): Add stdint.
34808 * modules/rmdir-errno: New module.
34809 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
34811 (Depends-on): Add stdint.
34812 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
34814 (Depends-on): Add stdint.
34815 * modules/unlink-busy: New module.
34816 * modules/utimecmp (Depends-on): Add stdint.
34817 * modules/uptime: New module.
34818 * modules/winsz-ioctl: New module.
34819 * modules/winsz-termios: New module.
34820 * modules/xnanosleep (Depends-on): Add nanosleep.
34821 * modules/ullong_max: Remove.
34822 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
34823 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
34824 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
34825 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
34826 (Depends-on): Add inttypes.
34827 (lib_SOURCES): Add xstrtol.h.
34828 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
34829 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
34830 * MODULES.html.sh: Move 'assert' into the assert section.
34831 Move 'dummy' into the linking section.
34833 Add section for compatibility checks for POSIX:2001 functions,
34834 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
34835 winsz-ioctl, and winsz-termios into it.
34837 Add top-level Misc section and put host-os, perl, and uptime
34840 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
34842 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
34843 now assume the stdint module. Do not include inttypes.h.
34844 * lib/fsusage.h: Likewise.
34845 * lib/getndelim2.c: Likewise.
34846 * lib/human.h: Likewise.
34847 * lib/inttostr.h: Likewise.
34848 * lib/obstack.c: Likewise.
34849 * lib/regex_internal.h: Likewise.
34850 * lib/tempname.c: Likewise.
34851 * lib/utimecmp.c: Likewise.
34852 * lib/xstrtol.h: Likewise.
34854 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
34856 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
34857 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
34858 * lib/xtime.h: Likewise.
34860 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
34862 * modules/openat (Files): Add lib/fchmodat.c.
34863 Fixes problem reported by Jay Youngman.
34865 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
34867 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
34868 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
34870 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
34871 Bruno Haible <bruno@clisp.org>
34873 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
34874 and is a script that invokes bison. Tighten the code. Add comments.
34876 2006-08-18 Jim Meyering <jim@meyering.net>
34878 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
34879 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
34880 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
34881 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
34883 2006-08-18 Bruno Haible <bruno@clisp.org>
34885 * modules/bison-i18n: New file.
34886 * MODULES.html.sh (Internationalization functions): Add it.
34888 2006-08-18 Bruno Haible <bruno@clisp.org>
34890 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
34891 sys/statvfs.h. When getmntinfo was found, check its declaration and
34892 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
34894 2006-08-18 Bruno Haible <bruno@clisp.org>
34896 * m4/bison-i18n.m4: New file, from bison.
34898 2006-08-18 Bruno Haible <bruno@clisp.org>
34900 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
34901 (ME_DUMMY): Treat "kernfs" as a dummy.
34902 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
34904 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
34906 Update from coreutils.
34908 2006-08-15 Jim Meyering <jim@meyering.net>
34910 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
34912 2006-01-17 Jim Meyering <jim@meyering.net>
34914 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
34916 2006-01-11 Jim Meyering <jim@meyering.net>
34918 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
34919 Check for the lchmod function.
34921 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
34923 Update from coreutils.
34925 * lib/__fpending.h: Add copyright notice.
34926 * lib/fprintftime.h: Likewise.
34927 * lib/savedir.c: Use (C) in copyright notice.
34928 * lib/savedir.h: Likewise.
34930 2006-08-15 Jim Meyering <jim@meyering.net>
34932 * lib/at-func.c: New file, with the logic of all emulated at-functions.
34933 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
34934 in support of the EXPECTED_ERRNO macro.
34935 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
34936 definitions. Instead, define the appropriate symbols and include
34938 * lib/mkdirat.c (mkdirat): Likewise.
34939 * lib/fchmodat.c (fchmodat): Likewise.
34940 (ENOSYS): Remove definition.
34941 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
34942 it. Don't include "unistd--.h" -- it wasn't ever used.
34944 2006-01-17 Jim Meyering <jim@meyering.net>
34946 Rewrite fts.c not to change the current working directory,
34947 by using openat, fstatat, fdopendir, etc..
34949 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
34950 (HAVE_OPENAT_SUPPORT): Define.
34951 [_LIBC] (fchdir): Don't undef or define; no longer used.
34952 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
34953 Now, this `function' always succeeds, and consumes its file descriptor
34954 parameter -- so callers must not close such FDs. Update callers.
34955 (diropen_fd, opendirat, cwd_advance_fd): New functions.
34956 (diropen): Add parameter, SP. Adjust all callers.
34957 Implement using diropen_fd, rather than open.
34958 (fts_open): Initialize new member, fts_cwd_fd.
34959 Remove fts_rft-setting code.
34960 (fts_close): Close fts_cwd_fd, if necessary.
34961 (__opendir2): Define in terms of opendir or opendirat,
34962 depending on whether the FST_NOCHDIR flag is set.
34963 (fts_build): Since fts_safe_changedir consumes its FD, and since
34964 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
34965 and close the dup'd file descriptor upon failure.
34966 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
34967 (fts_safe_changedir): Tweak semantics to reflect that this function
34968 now calls cwd_advance_fd and hence consumes its FD argument.
34969 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
34970 [struct FTS] (fts_rft): Remove now-unused member.
34971 [struct FTS] (fts_cycle.state): Improve comment.
34973 * lib/openat.c (openat_needs_fchdir): New function.
34974 * lib/openat.h (openat_needs_fchdir): Declare it.
34976 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
34978 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
34979 Problem and fix reported by Pádraig Brady in
34980 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
34982 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
34984 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
34986 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
34988 * lib/memcoll.c (memcoll): Optimize for the common case where the
34989 arguments are bytewise equal.
34991 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
34993 * doc/regexprops-generic.texi: Add a copyright notice.
34995 2006-08-15 Bruno Haible <bruno@clisp.org>
34997 * modules/tmpdir (License): Change to LGPL.
34999 2006-08-15 Bruno Haible <bruno@clisp.org>
35001 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
35004 2006-08-14 Simon Josefsson <jas@extundo.com>
35006 * config/srclist.txt: Add gnupload.
35008 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
35010 Change copyright notice from LGPL 2 to GPL 2, since that's the
35011 standard form used in the gnulib repository.
35012 * tests/test-lock.c: Likewise.
35013 * tests/test-stdint.c: Likewise.
35014 * tests/test-tls.c: Likewise.
35016 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
35017 prelude-manager. User shorter URLs for GNU projects, without '?'.
35018 Add copyright notice.
35020 * check-module: Add copyright notice. Output a copyright
35021 notice if "--version" is specified.
35022 * modules/COPYING: New file.
35023 * tests/test-getaddrinfo.c: Add copyright notice.
35024 * tests/test-verify.c: Likewise.
35026 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
35028 Change copyright notice from LGPL 2 to GPL 2, since that's the
35029 standard form used in the gnulib repository.
35030 * lib/lock.c: LGPL -> GPL.
35031 * lib/lock.h: Likewise.
35032 * lib/strnlen1.c: Likewise.
35033 * lib/strnlen1.h: Likewise.
35034 * lib/tls.c: Likewise.
35035 * lib/tls.h: Likewise.
35036 * lib/tmpdir.c: Likewise.
35038 * lib/TODO: Remove; this belongs only in coreutils.
35040 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
35042 Add copyright notices to long-enough files that lack them, since
35043 otherwise the files aren't clearly free. Use the same notice that
35044 getdate.texi already uses.
35045 * doc/alloca-opt.texi: Add copyright notice.
35046 * doc/alloca.texi: Likewise.
35047 * doc/ctime.texi: Likewise.
35048 * doc/functions.texi: Likewise.
35049 * doc/gcd.texi: Likewise.
35050 * doc/gnulib-tool.texi: Likewise.
35051 * doc/inet_ntoa.texi: Likewise.
35052 * doc/visibility.texi: Likewise.
35054 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
35055 * doc/quote.texi: Add copyright notice.
35057 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
35058 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
35059 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
35060 Mention SunOS 5.11. Mention that everything before SunOS 5.7
35061 is now obsolete, and give a pointer to the Sun list.
35062 Add copyright notice.
35064 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
35066 * config/srclistvars.sh: Add copyright notice.
35068 2006-08-14 Eric Blake <ebb9@byu.net>
35070 Import the following change from libc:
35072 2006-08-12 Ulrich Drepper <drepper@redhat.com>
35075 * lib/misc/error.c: Add space between program name and message if file
35078 2006-08-12 Karl Berry <karl@gnu.org>
35080 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
35081 remove, these originate in gnulib now.
35083 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35085 * doc/Makefile (standards.info standards.html standards.dvi):
35086 Also depend on make-stds.texi.
35088 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
35090 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
35091 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
35093 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
35094 in wchar_t. Problem reported by Eric Blake.
35096 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
35097 LEN is smaller than SIZE. Suggested by Bruno Haible.
35098 Also, help the compiler to keep LEN in a register.
35100 2006-08-11 Eric Blake <ebb9@byu.net>
35102 * users.txt: Sort. Add tar.
35104 2006-08-11 Bruno Haible <bruno@clisp.org>
35106 * users.txt: New file.
35108 2006-08-11 Bruno Haible <bruno@clisp.org>
35110 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
35111 before <wchar.h>. Needed for OSF/1 and BSD/OS.
35113 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
35115 * modules/snprintf (Depends-on): Remove minmax.
35116 (Maintainer): Add self and Bruno.
35118 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
35120 * lib/.cppi-disable: Add snprintf.h, socket_.h.
35121 * lib/snprintf.c: Include <errno.h> and <limits.h>.
35122 (EOVERFLOW): Define if the system does not.
35123 Do not include "minmax.h"; it wasn't used.
35124 (snprintf): Don't assume size_t promotes to an unsigned type.
35125 Fix bug when generated string was too long for the buffer: the
35126 buffer's contents are supposed to be the initial prefix of the
35127 output. Don't assume vasnprintf returns EOVERFLOW if the size
35128 exceeds INT_MAX; do the check ourselves.
35130 Import the following changes from libc:
35132 2006-06-02 Jakub Jelinek <jakub@redhat.com>
35134 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
35135 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
35136 set wc to the byte which couldn't be converted.
35137 (re_string_reconstruct): Don't clear valid_raw_len before calling
35138 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
35139 tip_context using re_string_context_at.
35141 2006-05-02 Ulrich Drepper <drepper@redhat.com>
35143 * lib/posix/regex.h: g++ still cannot handled [restrict].
35145 2006-04-21 Ulrich Drepper <drepper@redhat.com>
35147 * lib/posix/regex.h: Remove special handling for VMS.
35149 2006-08-10 Jim Meyering <jim@meyering.net>
35151 * modules/same-inode: New module.
35152 * modules/dev-ino: New module.
35153 * modules/cycle-check: Depend on these modules, rather than simply
35154 including their .h files.
35155 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
35156 required via m4/cycle-check.m4.
35157 * modules/same: Depend on new same-inode module, rather than
35158 including same-inode.h.
35159 * modules/chdir-safer: New file.
35161 * modules/chown (Depends-on): Add stat-macros.
35163 2006-08-10 Jim Meyering <jim@meyering.net>
35165 * m4/cycle-check.m4: New file.
35166 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
35167 * m4/dev-ino.m4, m4/same-inode.m4: New files.
35169 2006-08-10 Eric Blake <ebb9@byu.net>
35171 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
35172 in from original proposal.
35174 2006-08-10 Eric Blake <ebb9@byu.net>
35175 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35177 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
35180 2006-08-10 Bruno Haible <bruno@clisp.org>
35182 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
35185 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
35187 Sync from coreutils.
35189 2006-07-19 Mike Frysinger <vapier@gentoo.org>
35191 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
35192 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
35194 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
35196 * modules/restrict: Remove; no longer needed now that we assume
35197 Autoconf 2.59 or later.
35198 * MODULES.html.sh: Remove 'restrict'.
35199 * modules/argp (Depends-on): Remove 'restrict'.
35200 * modules/base64 (Depends-on): Likewise.
35201 * modules/gc (Depends-on): Likewise.
35202 * modules/getaddrinfo (Depends-on): Likewise.
35203 * modules/glob (Depends-on): Likewise.
35204 * modules/inet_ntop (Depends-on): Likewise.
35205 * modules/inet_pton (Depends-on): Likewise.
35206 * modules/memxor (Depends-on): Likewise.
35207 * modules/regex (Depends-on): Likewise.
35208 * modules/strtok_r (Depends-on): Likewise.
35209 * modules/time_r (Depends-on): Likewise.
35211 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
35213 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
35214 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
35215 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
35216 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
35217 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
35218 * m4/memxor.m4 (gl_MEMXOR): Likewise.
35219 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
35220 gl_C_RESTRICT replaced by AC_C_RESTRICT.
35222 Merge from coreutils.
35223 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
35224 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
35225 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
35226 * m4/time_r.m4 (gl_TIME_R): Likewise.
35228 2006-08-09 Karl Berry <karl@gnu.org>
35230 * config/srclist.txt: no more gettext-tools, per Bruno.
35232 2006-08-08 Eric Blake <ebb9@byu.net>
35234 * modules/verror: New module.
35235 * MODULES.html.sh: Document it.
35237 2006-08-08 Eric Blake <ebb9@byu.net>
35239 * lib/verror.h, lib/verror.c: New files.
35241 2006-08-08 Eric Blake <ebb9@byu.net>
35243 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
35244 verror_at_line output complies with GNU Coding Standards even when
35247 2006-08-07 Bruno Haible <bruno@clisp.org>
35249 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
35251 Reported by Ralf Wildenhues.
35253 2006-08-07 Bruno Haible <bruno@clisp.org>
35255 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
35256 in an AC_DEFUN. Needed so that the autoconf snippets can use
35259 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
35261 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35262 Initialize pkgdata_DATA.
35263 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
35266 2006-08-06 Eric Blake <ebb9@byu.net>
35268 * lib/error.h: Fold in some upstream changes from glibc.
35269 * lib/error.c: Likewise.
35271 2006-08-04 Bruno Haible <bruno@clisp.org>
35273 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35274 Make the mostlyclean-local rule depend on mostlyclean-generic.
35275 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
35277 2006-07-31 Bruno Haible <bruno@clisp.org>
35279 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
35280 <stdlib.h>, <string.h>.
35282 2006-07-30 Bruno Haible <bruno@clisp.org>
35284 * modules/readlink (License): Change to LGPL.
35286 2006-07-30 Bruno Haible <bruno@clisp.org>
35288 * modules/javaversion (Makefile.am): Distribute javaversion.java and
35289 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
35290 set PKGDATADIR to point to it.
35292 2006-07-30 Bruno Haible <bruno@clisp.org>
35294 * modules/csharpexec (configure.ac): Comment out macro invocation.
35295 * modules/javaexec (configure.ac): Likewise.
35296 * modules/javacomp-script (configure.ac): Likewise.
35298 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
35300 2006-07-30 Bruno Haible <bruno@clisp.org>
35302 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
35305 2006-07-30 Bruno Haible <bruno@clisp.org>
35307 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
35309 2006-07-30 Bruno Haible <bruno@clisp.org>
35311 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35312 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
35315 2006-07-29 Bruno Haible <bruno@clisp.org>
35317 Make it possible for gnulib-tool to work with locally modified or
35318 augmented gnulib repositories.
35319 * gnulib-tool (func_usage): Document --local-dir option.
35320 (local_gnulib_dir): New variable.
35321 Handle --local-dir option.
35322 (func_lookup_file): New function.
35323 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
35324 (func_get_description, func_get_filelist, func_get_description,
35325 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
35326 func_get_automake_snippet, func_get_include_directive,
35327 func_get_license, func_get_maintainer): Use func_lookup_file.
35328 (func_import, func_create_testdir): Use func_lookup_file.
35330 2006-07-29 Bruno Haible <bruno@clisp.org>
35332 * modules/setenv (Depends-on): Add unistd.
35334 2006-07-29 Bruno Haible <bruno@clisp.org>
35336 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
35338 2006-07-29 Bruno Haible <bruno@clisp.org>
35340 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
35342 2006-07-29 Bruno Haible <bruno@clisp.org>
35344 * gnulib-tool (import, update): If there is no Makefile.am, look at
35345 aclocal.m4, instead of bailing out.
35347 2006-07-29 Bruno Haible <bruno@clisp.org>
35349 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
35350 Categorize the options by when they are useful.
35352 2006-07-29 Bruno Haible <bruno@clisp.org>
35354 * gnulib-tool (func_usage): Document option --no-libtool.
35355 Handle option --no-libtool.
35356 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
35357 for changed semantics of $libtool variable.
35358 (func_import): Likewise. If libtool is not used, show this through
35359 an option --no-libtool.
35360 (func_create_testdir): Update.
35362 2006-07-29 Bruno Haible <bruno@clisp.org>
35364 * gnulib-tool (func_import): Extend error message about missing
35367 2006-07-29 Bruno Haible <bruno@clisp.org>
35369 * gnulib-tool (func_import): Don't create the $docbase directory if
35370 there is no file to store there.
35372 2006-07-29 Bruno Haible <bruno@clisp.org>
35374 * gnulib-tool (autoconf_minversion): If a --dir option is given and
35375 relevant, look for configure.ac there, not in the current directory.
35376 Also use a simple search for AC_PREREQ, not "autoconf --trace".
35378 2006-07-29 Bruno Haible <bruno@clisp.org>
35380 * gnulib-tool (SORT): New variable.
35381 (func_usage): Undocument --assume-autoconf option.
35382 Remove --assume-autoconf option handling.
35383 (autoconf_minversion): Determine from the contents of configure.ac.
35384 (func_import): Remove autoconf_minversion handling.
35385 Suggested by Eric Blake.
35387 2006-07-29 Bruno Haible <bruno@clisp.org>
35389 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
35391 2006-07-29 Bruno Haible <bruno@clisp.org>
35393 * config/srclist.txt (*setenv.[ch]): Remove rules.
35395 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35397 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
35399 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35401 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
35404 2006-07-28 Simon Josefsson <jas@extundo.com>
35406 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
35407 * modules/inet_pton (Depends-on): Likewise.
35409 2006-07-28 Simon Josefsson <jas@extundo.com>
35411 * m4/netinet_in_h.m4: New file.
35413 2006-07-28 Simon Josefsson <jas@extundo.com>
35415 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
35418 2006-07-28 Simon Josefsson <jas@extundo.com>
35420 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
35423 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
35425 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
35426 setgid on directories only if they set these bits.
35427 * lib/modechange.h: Remove obsolete comment about masks.
35429 2006-07-28 Eric Blake <ebb9@byu.net>
35431 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
35434 2006-07-28 Bruno Haible <bruno@clisp.org>
35436 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
35438 2006-07-28 Bruno Haible <bruno@clisp.org>
35440 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
35442 2006-07-28 Bruno Haible <bruno@clisp.org>
35444 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
35445 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
35447 Avoids link error on FreeBSD 4.x.
35448 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
35450 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
35452 * lib/mbswidth.c (iswcntrl): Likewise.
35454 2006-07-27 Bruno Haible <bruno@clisp.org>
35456 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
35459 2006-07-27 Bruno Haible <bruno@clisp.org>
35461 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
35462 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
35465 2006-07-26 Eric Blake <ebb9@byu.net>
35467 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
35469 2006-07-26 Eric Blake <ebb9@byu.net>
35471 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
35472 like mingw that lack mkstemp.
35473 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
35474 avoid compilation warning on mingw.
35476 2006-07-26 Bruno Haible <bruno@clisp.org>
35478 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
35479 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
35480 INT_FAST*_MIN, INTPTR_MIN.
35482 2006-07-25 Bruno Haible <bruno@clisp.org>
35484 * modules/version-etc (Depends-on): Add stdarg.
35486 2006-07-25 Bruno Haible <bruno@clisp.org>
35488 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
35491 2006-07-25 Bruno Haible <bruno@clisp.org>
35493 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
35494 defined in <stdarg.h> or config.h.
35496 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
35498 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
35499 (gl_STDIO_SAFER): Remove.
35501 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
35503 * MODULES.html.sh (File stream based Input/Output):
35504 Add fopen-safer, tmpfile-safer; remove stdio-safer.
35505 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
35506 * modules/fopen-safer, modules/tmpfile-safer: New files.
35507 * modules/stdio-safer: Remove.
35509 2006-07-24 Bruno Haible <bruno@clisp.org>
35511 * modules/tmpdir: New file.
35512 * MODULES.html.sh (File system functions): Add it.
35514 2006-07-24 Bruno Haible <bruno@clisp.org>
35516 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
35517 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
35519 2006-07-24 Bruno Haible <bruno@clisp.org>
35521 * modules/clean-temp: New file.
35523 2006-07-24 Bruno Haible <bruno@clisp.org>
35525 * m4/tmpdir.m4: New file, from GNU gettext.
35527 2006-07-24 Bruno Haible <bruno@clisp.org>
35529 * lib/tmpdir.h: New file, from GNU gettext.
35530 * lib/tmpdir.c: New file, from GNU gettext.
35532 2006-07-24 Bruno Haible <bruno@clisp.org>
35534 * lib/clean-temp.h: New file, from GNU gettext.
35535 * lib/clean-temp.c: New file, from GNU gettext.
35537 2006-07-23 Eric Blake <ebb9@byu.net>
35539 * modules/stdio-safer (Files): Add tmpfile-safer.c.
35540 (Depends-on): Add binary-io.
35542 2006-07-23 Eric Blake <ebb9@byu.net>
35544 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
35546 2006-07-23 Eric Blake <ebb9@byu.net>
35548 * lib/tmpfile-safer.c: New file.
35549 * lib/stdio-safer.h (fopen_safer): Add prototype.
35550 * lib/stdio--.h (tmpfile): Make safer.
35552 2006-07-23 Bruno Haible <bruno@clisp.org>
35554 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
35555 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
35556 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
35557 gl_linked_remove_at): Use it.
35559 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
35560 and Simon Josefsson <jas@extundo.com>
35562 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
35564 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
35566 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
35568 * modules/close-stream: New file.
35569 * modules/closeout (Description): Make it clear that it exits
35570 with a diagnostic on error.
35571 (Depends-on): Add close-stream. Remove fpending, stdbool.
35572 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
35574 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
35576 * m4/close-stream.m4: New file.
35578 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
35580 * lib/close-stream.c, lib/close-stream.h: New files.
35582 2006-07-22 Bruno Haible <bruno@clisp.org>
35584 Merge from GNU gettext 0.15.
35586 2006-05-01 Bruno Haible <bruno@clisp.org>
35588 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
35590 2006-07-22 Bruno Haible <bruno@clisp.org>
35592 * modules/javaversion: New file.
35593 * MODULES.html.sh (Java): Add javaversion.
35595 2006-03-12 Bruno Haible <bruno@clisp.org>
35597 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
35599 2005-12-04 Bruno Haible <bruno@clisp.org>
35601 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
35604 2006-06-21 Bruno Haible <bruno@clisp.org>
35606 Avoid warnings from recent versions of mcs.
35607 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
35608 -o, -L, -r any more. Use options documented since mcs-1.0
35609 instead. Similarly for -g.
35611 2005-12-04 Bruno Haible <bruno@clisp.org>
35613 * build-aux/csharpcomp.sh.in: Suffix for resources is
35614 .resources, not .resource.
35616 2005-07-09 Bruno Haible <bruno@clisp.org>
35618 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
35620 Reported by Mark Junker <mjscod@gmx.de>.
35622 2006-07-22 Bruno Haible <bruno@clisp.org>
35624 * modules/gettext: Upgrade to gettext-0.15.
35625 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
35627 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
35629 2006-07-22 Bruno Haible <bruno@clisp.org>
35631 Merge from GNU gettext 0.15.
35633 2006-03-25 Bruno Haible <bruno@clisp.org>
35635 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
35637 2006-07-21 Bruno Haible <bruno@clisp.org>
35639 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
35642 2006-05-09 Bruno Haible <bruno@clisp.org>
35644 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
35645 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
35646 for the conftestver execution.
35648 2006-05-01 Bruno Haible <bruno@clisp.org>
35650 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
35651 optional target-version argument. Verify that the compiler
35652 groks source of the specified source-version, or add -source
35653 option as necessary. Verify that the compiler produces
35654 bytecode in the specified target-version, or add -target and
35655 -source options as necessary. Make the result of the test
35656 available as variable CONF_JAVAC. Also log error output in
35659 2006-03-11 Bruno Haible <bruno@clisp.org>
35661 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
35663 2006-05-09 Bruno Haible <bruno@clisp.org>
35665 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
35666 CLASSPATH_SEPARATOR to a semicolon.
35668 2006-03-12 Bruno Haible <bruno@clisp.org>
35670 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
35671 available as variable CONF_JAVA, for subsequent autoconf
35672 tests. Also log error output in config.log.
35674 2006-07-19 Bruno Haible <bruno@clisp.org>
35676 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
35677 that getline works on glibc2 systems. Needed to avoid trouble
35679 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
35681 2005-12-04 Bruno Haible <bruno@clisp.org>
35683 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
35684 launcher (untested).
35686 2005-12-04 Bruno Haible <bruno@clisp.org>
35688 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
35690 2006-07-22 Bruno Haible <bruno@clisp.org>
35692 * gettext.m4: Update from GNU gettext-0.15.
35693 * nls.m4: Likewise.
35695 * inttypes-pri.m4: Likewise.
35696 * inttypes-h.m4: Renamed from inttypes.m4.
35697 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
35699 2006-07-22 Bruno Haible <bruno@clisp.org>
35701 Merge from GNU gettext 0.15.
35703 2005-07-05 Bruno Haible <bruno@clisp.org>
35705 * printf-args.c (printf_fetchargs): Work around broken
35706 definition of wint_t on mingw.
35708 2005-02-12 Bruno Haible <bruno@clisp.org>
35710 * xallocsa.h: Add extern "C" for C++.
35712 2006-05-17 Bruno Haible <bruno@clisp.org>
35714 Cygwin portability.
35715 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
35717 2006-04-30 Bruno Haible <bruno@clisp.org>
35719 * progreloc.c: Include <mach-o/dyld.h> if available.
35720 (find_executable): Use _NSGetExecutablePath when possible.
35722 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
35724 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
35727 2005-12-29 Bruno Haible <bruno@clisp.org>
35729 * progreloc.c (set_program_name_and_installdir): Fix
35732 2005-12-04 Bruno Haible <bruno@clisp.org>
35734 Cygwin portability.
35735 * progreloc.c: Include <windows.h> also on Cygwin.
35736 (find_executable): Add support for Cygwin.
35737 (set_program_name_and_installdir): Handle also platforms with
35740 2006-07-11 Bruno Haible <bruno@clisp.org>
35742 * javacomp.c: Fix a comment.
35743 Reported by Jim Meyering.
35745 2006-04-30 Bruno Haible <bruno@clisp.org>
35747 * javacomp.h (compile_java_class): Add source_version,
35748 target_version arguments.
35749 * javacomp.c: Rewritten to choose only a compiler that
35750 respects the specified source_version and target_version.
35752 2006-06-27 Bruno Haible <bruno@clisp.org>
35754 Assume correct S_ISDIR macro.
35755 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
35757 2006-07-22 Bruno Haible <bruno@clisp.org>
35759 * javaversion.h: New file, from GNU gettext.
35760 * javaversion.c: New file, from GNU gettext.
35761 * javaversion.java: New file, from GNU gettext.
35762 * javaversion.class: New file, from GNU gettext.
35764 2006-05-17 Bruno Haible <bruno@clisp.org>
35766 Cygwin portability.
35767 * javaexec.c (execute_java_class): Test for jview program
35770 2006-04-09 Bruno Haible <bruno@clisp.org>
35772 * fatal-signal.c: Don't include string.h.
35773 (at_fatal_signal): Use a copying loop instead of memcpy.
35775 2005-12-04 Bruno Haible <bruno@clisp.org>
35777 * csharpexec.c: Add support for 'clix' launcher (untested).
35778 (execute_csharp_using_sscli): New function.
35779 (execute_csharp_program): Call it.
35781 2006-06-21 Bruno Haible <bruno@clisp.org>
35783 Avoid warnings from recent versions of mcs.
35784 * csharpcomp.c (compile_csharp_using_mono): Don't use options
35785 -o, -L, -r any more. Use options documented since mcs-1.0
35786 instead. Similarly for -g.
35788 2005-07-09 Bruno Haible <bruno@clisp.org>
35790 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
35792 Reported by Mark Junker <mjscod@gmx.de>.
35794 2006-06-17 Bruno Haible <bruno@clisp.org>
35796 * config.charset: Update for NetBSD 3.0.
35798 2006-05-17 Bruno Haible <bruno@clisp.org>
35800 Cygwin portability.
35801 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
35803 2006-05-16 Bruno Haible <bruno@clisp.org>
35805 * localcharset.c [CYGWIN]: Include <windows.h>.
35806 (get_charset_aliases): For Cygwin, return the same CPxxx
35807 aliases list as under WIN32.
35808 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
35809 the environment variables. Fall back to GetACP().
35811 2006-04-05 Bruno Haible <bruno@clisp.org>
35813 * config.charset: Update Juan Manuel Guerrero's address.
35815 2005-02-12 Bruno Haible <bruno@clisp.org>
35817 * allocsa.h: Add extern "C" for C++.
35819 2005-02-10 Bruno Haible <bruno@clisp.org>
35821 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
35822 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
35824 2006-07-22 Bruno Haible <bruno@clisp.org>
35826 * gettext.h: Update to GNU gettext-0.15.
35828 2006-07-22 Bruno Haible <bruno@clisp.org>
35830 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
35831 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
35832 lib-prefix.m4, longdouble.m4, ssize_t.m4.
35834 2006-07-21 Eric Blake <ebb9@byu.net>
35836 * modules/stdlib-safer: New file.
35837 * MODULES.html.sh (File stream based Input/Output): Add
35840 2006-07-21 Eric Blake <ebb9@byu.net>
35842 * lib/stdlib-safer.h: New file from coreutils, required by
35845 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
35847 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
35849 2006-07-20 Bruno Haible <bruno@clisp.org>
35851 * gnulib-tool: Recognize new option --assume-autoconf.
35852 (autoconf_minversion): New variable.
35853 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
35855 2006-07-20 Bruno Haible <bruno@clisp.org>
35857 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
35859 2006-07-19 Derek R. Price <derek@ximbiot.com>
35861 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
35862 Reindent and repaginate.
35864 2006-07-19 Derek Price <derek@ximbiot.com>
35866 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
35869 2006-07-17 Bruno Haible <bruno@clisp.org>
35871 * modules/list: New file.
35872 * modules/array-list: New file.
35873 * modules/carray-list, modules/carray-list-tests: New files.
35874 * modules/linked-list, modules/linked-list-tests: New files.
35875 * modules/avltree-list, modules/avltree-list-tests: New files.
35876 * modules/rbtree-list, modules/rbtree-list-tests: New files.
35877 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
35878 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
35879 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
35880 * modules/oset: New file.
35881 * modules/array-oset: New file.
35882 * modules/avltree-oset, modules/avltree-oset-tests: New files.
35883 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
35884 * tests/test-carray_list.c: New file.
35885 * tests/test-linked_list.c: New file.
35886 * tests/test-avltree_list.c: New file.
35887 * tests/test-rbtree_list.c: New file.
35888 * tests/test-linkedhash_list.c: New file.
35889 * tests/test-avltreehash_list.c: New file.
35890 * tests/test-rbtreehash_list.c: New file.
35891 * tests/test-avltree_oset.c: New file.
35892 * tests/test-rbtree_oset.c: New file.
35893 * MODULES.html.sh (Container data structures): New section.
35895 2006-07-17 Bruno Haible <bruno@clisp.org>
35897 * m4/gl_list.m4: New file.
35899 2006-07-17 Bruno Haible <bruno@clisp.org>
35901 * lib/gl_list.h: New file.
35902 * lib/gl_list.c: New file.
35903 * lib/gl_array_list.h: New file.
35904 * lib/gl_array_list.c: New file.
35905 * lib/gl_carray_list.h: New file.
35906 * lib/gl_carray_list.c: New file.
35907 * lib/gl_linked_list.h: New file.
35908 * lib/gl_linked_list.c: New file.
35909 * lib/gl_anylinked_list1.h: New file.
35910 * lib/gl_anylinked_list2.h: New file.
35911 * lib/gl_avltree_list.h: New file.
35912 * lib/gl_avltree_list.c: New file.
35913 * lib/gl_anyavltree_list1.h: New file.
35914 * lib/gl_anyavltree_list2.h: New file.
35915 * lib/gl_rbtree_list.h: New file.
35916 * lib/gl_rbtree_list.c: New file.
35917 * lib/gl_anyrbtree_list1.h: New file.
35918 * lib/gl_anyrbtree_list2.h: New file.
35919 * lib/gl_anytree_list1.h: New file.
35920 * lib/gl_anytree_list2.h: New file.
35921 * lib/gl_linkedhash_list.h: New file.
35922 * lib/gl_linkedhash_list.c: New file.
35923 * lib/gl_anyhash_list1.h: New file.
35924 * lib/gl_anyhash_list2.h: New file.
35925 * lib/gl_avltreehash_list.h: New file.
35926 * lib/gl_avltreehash_list.c: New file.
35927 * lib/gl_rbtreehash_list.h: New file.
35928 * lib/gl_rbtreehash_list.c: New file.
35929 * lib/gl_anytreehash_list1.h: New file.
35930 * lib/gl_anytreehash_list2.h: New file.
35932 * lib/gl_oset.h: New file.
35933 * lib/gl_oset.c: New file.
35934 * lib/gl_array_oset.h: New file.
35935 * lib/gl_array_oset.c: New file.
35936 * lib/gl_avltree_oset.h: New file.
35937 * lib/gl_avltree_oset.c: New file.
35938 * lib/gl_rbtree_oset.h: New file.
35939 * lib/gl_rbtree_oset.c: New file.
35940 * lib/gl_anytree_oset.h: New file.
35942 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
35944 * m4/mkancesdirs.m4: New file.
35945 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
35946 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
35947 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
35950 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
35952 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
35953 * lib/mkancesdirs.h: New files.
35954 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
35955 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
35956 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
35957 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
35958 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
35959 callers changed. Revamp internals significantly, by not
35960 attempting to create directories that are temporarily more
35961 permissive than the final results. Do not attempt to use
35962 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
35963 This removes some race conditions, fixes some bugs, and simplifies
35964 things. Use new dirchownmod function to do owner and mode changes.
35965 * lib/mkdir-p.h: Likewise.
35966 * lib/modechange.c (octal_to_mode): New function.
35967 (struct mode_change): New member mentioned.
35968 (make_node_op_equals): New arg mentioned. All callers changed.
35969 (mode_compile): Keep track of which mode bits the user has explicitly
35971 (mode_adjust): New arg DIR, so that we implement the X op correctly.
35972 New arg PMODE_BITS, to keep track of which mode bits the user
35973 mentioned; it treats S_ISUID and S_ISGID speciall.
35974 All callers changed.
35975 * lib/modechange.h: Likewise.
35977 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
35979 * MODULES.html.sh: Add mkancestors.
35980 * modules/mkancesdirs: New module.
35981 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
35982 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
35983 The chdir-safer and afs files are now orphans; I'll remove them
35984 unless someone speaks up.
35985 Add lib/dirchownmod.c, lib/dirchownmod.h.
35986 (Depends-on): Remove alloca, chown, save-cwd, dirname.
35987 Add lchown, mkancesdirs.
35988 (Maintainer): Add self.
35990 2006-07-15 Karl Berry <karl@gnu.org>
35992 * gnulib-tool: help message wording/arrangement.
35994 2006-07-14 Simon Josefsson <jas@extundo.com>
35996 * doc/gnulib.texi (Libtool and Windows): New section.
35998 2006-07-12 Simon Josefsson <jas@extundo.com>
36000 * modules/gendocs (License): Fix license, approved by Karl.
36002 2006-07-12 Eric Blake <ebb9@byu.net>
36004 * MODULES.html.sh: Add gendocs.
36006 2006-07-11 Eric Blake <ebb9@byu.net>
36008 * modules/fdl: New module, to install doc/fdl.texi.
36009 * MODULES.html.sh: Add new section for documentation modules.
36010 * gnulib-tool: Avoid space-tab.
36011 (--doc-base): New option, to manage files from doc.
36013 2006-07-11 Eric Blake <ebb9@byu.net>
36015 * m4/absolute-header.m4: Fix comments to match recent change.
36017 2006-07-11 Eric Blake <ebb9@byu.net>
36019 * gnulib-tool: List --doc-base before --tests-base.
36021 2006-07-11 Derek R. Price <derek@ximbiot.com>
36023 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
36025 2006-07-11 Bruno Haible <bruno@clisp.org>
36027 * README: Mention where to put documentation.
36029 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36031 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
36033 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
36035 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
36038 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
36040 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
36041 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
36042 "no/such/file/stdint.h" when there is no such file, so that
36043 the resulting C code can be parsed by dodgy compilers.
36044 Problems reported by Bob Proulx.
36046 2006-07-10 Derek R. Price <derek@ximbiot.com>
36048 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
36049 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
36050 macros into the GNU _D_EXACT_NAMLEN.
36051 * lib/savedir.c: Likewise.
36052 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
36054 2006-07-10 Derek R. Price <derek@ximbiot.com>
36055 and Paul Eggert <eggert@cs.ucla.edu>
36057 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
36059 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
36060 macros into the GNU _D_EXACT_NAMLEN.
36062 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
36064 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
36065 around the absolute name, to work around a problem with the HP-UX
36066 11.23 native C compiler, reported by Bob Proulx.
36068 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
36070 * doc/maintain.texi, make-stds.texi: Sync from
36071 <http://savannah.gnu.org/projects/gnustandards>.
36073 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
36075 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
36077 2006-07-09 Jim Meyering <jim@meyering.net>
36079 * m4/glob.m4: Remove a doubled word in a comment.
36081 2006-07-09 Jim Meyering <jim@meyering.net>
36083 * lib/argp-pv.c: Remove a doubled word in a comment.
36084 * lib/check-version.c (check_version): Likewise.
36085 * lib/javacomp.c (compile_java_class): Likewise.
36087 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
36089 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
36090 for the benefit of people using Autoconf 2.60. If you want to
36091 support older Autoconf versions you can copy m4/onceonly_2_57.m4
36092 (or m4/onceonly.m4, if pre-2.57) manually.
36094 2006-07-08 Jim Meyering <jim@meyering.net>
36096 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
36098 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
36099 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
36102 2006-07-08 Jim Meyering <jim@meyering.net>
36104 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
36106 2006-07-07 Simon Josefsson <jas@extundo.com>
36108 * tests/test-crc.c: Change expected crc value, the test vector
36109 were probably computed using the old broken crc.c?
36111 2006-07-06 Simon Josefsson <jas@extundo.com>
36113 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
36114 now the canonical place for the M4 file).
36116 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
36117 from the sys_socket dependency now.
36119 * modules/inet_pton (Files): Ditto.
36121 * modules/inet_ntop (Files): Ditto.
36123 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
36125 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
36126 not gl_PREREQ_GETUSERSHELL.
36128 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36130 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
36131 with only one argument, for Autoconf 2.60.
36132 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
36133 expand to nothing, so add a shell command to avoid syntax error.
36134 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
36136 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36138 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
36140 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
36142 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
36143 no longer needed. Check for isblank decl.
36144 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
36145 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
36148 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
36150 * lib/getloadavg.c: Use __VMS, not VMS.
36151 * lib/getopt.c: Likewise.
36152 * lib/getpagesize.h: Likewise.
36153 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
36154 and probably does not work.
36156 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
36158 * lib/.cppi-disable: Add wcwidth.
36159 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
36160 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
36161 (ISGRAPH): Remove. All uses changed to isgraph.
36162 (FOLD) [!defined _LIBC]: Remove special case.
36163 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
36164 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
36166 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
36169 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
36171 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
36172 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
36173 brackets. Other minor changes to suppress some compiler
36176 2006-07-06 Derek R. Price <derek@ximbiot.com>
36177 and Paul Eggert <eggert@cs.ucla.edu>
36179 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
36180 of invoking obsolescent AC_HEADER_DIRENT macro.
36181 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
36182 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
36183 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
36184 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36185 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
36186 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
36187 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
36188 * m4/readdir.m4: Remove; no longer needed.
36190 2006-07-06 Derek R. Price <derek@ximbiot.com>
36191 and Paul Eggert <eggert@cs.ucla.edu>
36193 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
36194 Don't worry about this obsolete case any more.
36195 (HAVE_DIR): Remove. All uses removed; we now assume you can read
36197 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
36198 worry about this obsolete case any more.
36199 * lib/fts.c: Likewise.
36200 * lib/getcwd.c: Likewise.
36201 * lib/glob.h: Likewise.
36202 * lib/savedir.c: Likewise.
36204 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
36206 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
36207 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
36208 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
36211 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
36212 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
36213 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
36215 * m4/getdate.m4 (gl_GETDATE): Likewise.
36216 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
36217 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
36218 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
36219 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
36220 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
36221 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36222 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
36225 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
36227 * lib/memcasecmp.c: Include <limits.h>.
36228 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
36229 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
36230 Don't assume isdigit succeeds only on '0' through '9'.
36232 2006-07-05 Eric Blake <ebb9@byu.net>
36234 * modules/getaddrinfo (Depends-on): Add snprintf.
36236 2006-07-05 Eric Blake <ebb9@byu.net>
36238 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
36239 to avoid 'header present but could not be compiled' on cygwin.
36241 2006-07-05 Eric Blake <ebb9@byu.net>
36243 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
36244 missing from netdb.h.
36245 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
36247 2006-07-05 Derek R. Price <derek@ximbiot.com>
36249 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
36251 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
36252 * m4/getdate.m4 (gl_GETDATE): Likewise.
36253 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
36254 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
36255 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
36256 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
36257 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
36259 2006-07-05 Derek R. Price <derek@ximbiot.com>
36261 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
36262 All uses of is_space replaced by isspace.
36263 * lib/exit.h: Don't talk about STDC_HEADERS.
36264 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
36265 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
36266 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
36267 replaced by isprint etc.
36268 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
36269 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
36270 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
36271 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
36272 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
36273 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
36275 2006-07-05 Bruno Haible <bruno@clisp.org>
36277 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
36278 the function exists, before testing against AIX.
36279 Reported by Martin Lambers <marlam@marlam.de>.
36281 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
36283 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
36284 From Mark D. Baushke.
36286 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
36288 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
36289 to the absolute name, not just one, to bypass Sun C 5.8's
36290 "warning: #include of /usr/include/... may be non-portable".
36292 2006-07-04 Eric Blake <ebb9@byu.net>
36294 * modules/dirname-tests: New test module.
36295 * tests/test-dirname.c: New file, replacing dirname.c
36296 TEST_DIRNAME section that was recently deleted.
36298 2006-07-04 Bruno Haible <bruno@clisp.org>
36300 Assume ANSI C header files and <ctype.h> functions.
36301 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
36302 (mbsnwidth): Use isprint, iscntrl instead.
36304 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
36306 Merge from coreutils.
36307 * MODULES.html.sh: Add xstrtold.
36308 * modules/xstrtold: New file.
36309 * modules/cycle-check (Files): Add lib/same-inode.h.
36310 * modules/dirname (Files): Add m4/double-slash-root.m4.
36311 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
36312 * modules/mkdir-p (Files): Add lib/same-inode.h.
36313 * modules/same (Files): Add lib/same-inode.h.
36315 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
36317 * m4/absolute-header.m4: Renamed from full-header-path.m4.
36318 This is to keep the terminology clean; POSIX talks about
36319 "absolute pathnames", not "full pathnames", but the GNU
36320 Coding Standards say to use "path" for something else;
36321 so use "absolute" to keep both sides happy.
36322 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
36323 Set gl_absolute_header, not gl_full_header_path.
36324 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
36325 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
36328 Merge from coreutils.
36330 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
36332 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
36333 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
36334 want to require the building of c-strtod.o.
36335 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
36336 needs -lm directly.
36337 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
36339 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
36341 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
36342 --as-needed option if available. Problem reported by Albert Chin in
36343 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
36344 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
36345 cc merely issues a bunch of annoying warnings for --as-needed
36346 (this problem was reported by Bob Proulx). Also, try linking with
36347 -lm to detect a bug in binutils 2.16 (this problem was reported
36348 by Ralf Wildenhues).
36350 2006-06-18 Jim Meyering <jim@meyering.net>
36352 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
36353 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
36355 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
36356 also check for glibc-2.4's abort-inducing bug.
36358 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
36359 Low-probability clean-up should be to use rmdir to get rid of
36360 the just-created directory, not unlink.
36362 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
36363 configure fail, and request a bug report to inform us about it.
36364 Add a comment that, barring reports to the contrary, in 2007 we'll
36365 assume ftruncate is universally available.
36367 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
36369 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
36371 2006-03-12 Jim Meyering <jim@meyering.net>
36373 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
36374 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
36375 * m4/same.m4 (gl_SAME): Likewise.
36376 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
36378 2006-03-11 Eric Blake <ebb9@byu.net>
36380 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
36381 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
36382 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
36383 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
36385 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
36387 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
36388 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
36389 reported by Mark D. Baushke, one in
36390 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
36392 Merge from coreutils.
36394 * lib/.cppi-disable: Add stdint_.h.
36395 * lib/.cvsignore: Add stdint.h.
36397 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
36399 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
36400 both double and long double versions.
36401 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
36402 * lib/xstrtold.c: New file.
36403 * lib/xstrtod.h (xstrtold): New decl.
36405 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
36407 * lib/filemode.c (setst): Remove.
36408 (strmode): Rewrite to avoid setst. This makes the code shorter,
36409 (arguably) clearer, and the generated code is a bit smaller on my
36410 Debian GNU/Linux stable x86 host.
36412 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
36414 * lib/filemode.c: Include "filemode.h" first, to test the interface.
36415 Assume that filemode.h includes sys/types.h and sys/stat.h.
36416 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
36417 (ftypelet): Reorder to put common cases first, for efficiency.
36418 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
36420 (strmode): Renamed from mode_string, and now stores 12 bytes instead
36421 of 10, for compatibility with FreeBSD. All callers changed.
36422 (filemodestring): Now stores 12 bytes instead of 10, and sets file
36423 types that can't be deduced solely from st_mode. First arg is now a
36425 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
36426 (strmode): Renamed from mode_string.
36427 (filemodestring): New decl.
36428 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
36429 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
36431 (S_ISPORT, S_ISWHT): New macros, if not already defined.
36433 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
36435 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
36436 fsusage.h now does that. Include fsusage.h first, to test interface.
36437 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
36438 at most one method (the old code could have generated decls that
36439 didn't conform to C89, not that this was ever exercised).
36440 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
36442 2006-03-19 Jim Meyering <jim@meyering.net>
36444 Work even in a chroot where d_ino values for entries in "/"
36445 don't match the stat.st_ino values for the same names.
36446 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
36447 number, iterate through all entries again, using lstat instead.
36448 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
36449 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
36451 * lib/getcwd.c (__getcwd): Clarify a comment.
36452 Use memcpy in place of a call to strcpy.
36454 2006-03-12 Jim Meyering <jim@meyering.net>
36456 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
36457 matches that of the current directory (which we're about to chdir ".."
36458 out of), then save the dev-ino of the parent, instead.
36460 * lib/same-inode.h (SAME_INODE): New file/macro.
36461 * lib/chdir-safer.c (SAME_INODE): Remove definition.
36462 Include "same-inode.h", instead.
36463 * lib/same.c: Likewise.
36464 * lib/cycle-check.h: Include "same-inode.h".
36465 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
36466 * lib/cycle-check.c (SAME_INODE): Remove definition.
36467 * lib/root-dev-ino.h: Include "same-inode.h".
36469 2006-03-11 Eric Blake <ebb9@byu.net>
36471 * lib/same.c (same_name): s/base_name/last_component/
36472 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
36473 * lib/filenamecat.c (file_name_concat): Likewise.
36475 2006-03-11 Eric Blake <ebb9@byu.net>,
36476 Paul Eggert <eggert@cs.ucla.edu>
36478 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
36479 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
36481 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
36482 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
36483 (last_component): New method.
36484 * lib/dirname.c (dir_len): Determine when drive letters need a
36485 subsequent slash. Preserve // when it is special.
36486 (dir_name): Don't append dot when drive letter is absolute.
36487 [TEST_DIRNAME]: Move into a full-blown gnulib test.
36488 * lib/basename.c (base_name): New semantics - malloc the result.
36489 Preserve // when it is special. Preserve relative files that look
36490 like drive letters.
36491 (base_len): Preserve // when it is special.
36492 (last_component): New method, similar to old base_name semantics.
36493 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
36494 base_name. Strip redundant slashes from ///.
36496 2006-07-03 Jim Meyering <jim@meyering.net>
36498 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
36499 macro is used before the first cycle_check call.
36501 2006-07-03 Eric Blake <ebb9@byu.net>
36503 * modules/dirname (Depends-on): Add xstrndup.
36505 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
36507 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
36508 test cases, so that config.log is a bit easier to follow.
36510 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
36512 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
36513 both are 64 bits, since this seems to be the tradition, and this
36514 prevents gcc -Wformat from warning about usages with PRIuMAX. If
36515 we ever run into a host that prefers long long to long in this
36516 case, we'll need another configure-time test. Problem reported by
36519 2006-07-02 Eric Blake <ebb9@byu.net>
36521 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
36523 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
36525 * modules/inttypes (Depends-on): No longer depends on stdint.
36526 * modules/stdint (Description): Say more about assumptions.
36527 Say that the fast types might differ. Say macros are used.
36528 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
36529 (Makefile.am): Revise list of substituted symbols to match
36531 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
36532 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
36533 * tests/test-stdint.c (verify_same_types)
36534 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
36535 the code conforms to C99/C89.
36536 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
36537 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
36539 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
36541 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
36542 but fix a bug, by requiring at least 64 bits.
36543 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
36544 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
36545 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
36546 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
36548 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
36549 changes. Make 2.59 a prerequisite. Check and substitute for
36550 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
36551 inttypes.h. Do not use special include files; just use the
36552 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
36553 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
36554 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
36555 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
36556 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
36557 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
36558 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
36559 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
36560 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
36561 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
36562 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
36563 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
36564 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
36565 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
36566 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
36567 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
36568 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
36569 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
36570 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
36571 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
36572 WINT_MAX. Check for C99 conformance more strictly, by detecting
36573 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
36574 not check for things that C99 does not require, e.g., int8_t. If
36575 a test isn't needed unless <stdint.h> isn't working, and is
36576 unlikely to be needed for any other reason, then don't do it
36577 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
36578 size_t, since we assume C89 freestanding at least. Do not check
36579 for sig_atomic_t, wchar_t, or wint_t, since the code now does
36580 the right thing even if the types are not defined. Instead use:
36581 (gl_STDINT_TYPE_PROPERTIES): New macro.
36582 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
36583 testing whether <sys/types.h> clashes, as Autoconf does this for
36584 us now. All uses removed.
36585 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
36586 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
36587 (gl_CHECK_TYPE_SAME):
36588 Remove; no longer needed.
36589 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
36590 exists, since we'll return 0 anyway in that case.
36591 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
36593 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
36595 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
36596 possible collision with system files.
36597 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
36598 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
36599 WCHAR_MIN and WCHAR_MAX in this case.
36600 (<stddef.h>): Do not include; no longer needed.
36601 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
36602 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
36603 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
36604 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
36605 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
36606 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
36607 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
36608 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
36609 !defined(__c99))]: Include in this case too, since it's harmless
36611 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
36612 dangerous to do so.
36613 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
36614 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
36615 (_STDINT_MIN, _STDINT_MAX): New macros.
36616 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
36617 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
36618 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
36619 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
36620 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
36621 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
36622 macros, not typedefs; this simplifies things quite a bit.
36623 Use long int for all types narrower than int64_t.
36624 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
36625 Define in terms of long long int or int64_t or long int,
36626 not int64_t or int32_t. This saves some compile-time testing.
36627 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
36628 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
36629 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
36630 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
36631 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
36632 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
36633 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
36634 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
36635 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
36636 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
36637 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
36638 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
36639 undef any previous version and define our own version, for
36640 simplicity and consistency with the new macros for types.
36641 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
36642 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
36643 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
36644 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
36645 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
36646 @WINT_T_SUFFIX@ to keep things simple here.
36647 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
36648 Simplify by assuming typical 8/16/32/64 host, since we're
36649 already doing that elsewhere anyway.
36650 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
36651 and assume long long int is 64 bits if available. This
36652 speeds up 'configure'.
36654 2006-07-01 Eric Blake <ebb9@byu.net>
36656 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
36657 Reported by Andreas Buening.
36659 2006-07-01 Eric Blake <ebb9@byu.net>
36661 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
36663 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
36665 * lib/getaddrinfo.c: fixed typo
36667 2006-06-29 Jim Meyering <jim@meyering.net>
36669 * modules/strftime (Maintainer): Add my name, since with the
36670 FPRINTFTIME changes strftime.c has forked from glibc.
36672 2006-06-29 Eric Blake <ebb9@byu.net>
36674 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
36676 2006-06-29 Eric Blake <ebb9@byu.net>
36678 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
36680 2006-06-29 Eric Blake <ebb9@byu.net>
36682 * lib/stat_.h: New file.
36684 2006-06-29 Eric Blake <ebb9@byu.net>
36686 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
36687 unused static function.
36689 2006-06-29 Eric Blake <ebb9@byu.net>
36691 * doc/functions.texi (Function Portability): Document missing lstat
36694 2006-06-29 Eric Blake <ebb9@byu.net>
36696 * MODULES.html.sh: Add sys_stat.
36697 * modules/sys_stat: New module.
36698 * modules/mkstemp (Depends-on): Add sys_stat.
36700 2006-06-29 Derek R. Price <derek@ximbiot.com>
36702 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
36704 2006-06-29 Derek R. Price <derek@ximbiot.com>
36706 * m4/c-bs-a.m4: Removed.
36708 2006-06-29 Derek R. Price <derek@ximbiot.com>
36710 * lib/strftime.c: Assume strftime() exists.
36712 2006-06-29 Derek Price <derek@ximbiot.com>
36714 * modules/c-bs-a: Removed - \a is C89.
36715 * MODULES.html.sh: Remove c-bs-a.
36717 2006-06-29 Bruno Haible <bruno@clisp.org>
36719 * modules/wcwidth (License): Change to LGPL.
36721 2006-06-28 Simon Josefsson <jas@extundo.com>
36723 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
36726 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
36729 2006-06-28 Simon Josefsson <jas@extundo.com>
36731 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
36733 2006-06-28 Simon Josefsson <jas@extundo.com>
36735 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
36736 functions there. It will succeed on Windows XP, but on Windows
36737 2000 and (presumably) earlier, it will fail, and use the internal
36739 (use_win32_p): New function.
36740 (getaddrinfo): Use strtoul on servname, to support numeric ports.
36741 Support AI_NUMERICSERV to disable getservbyname.
36742 (getnameinfo): New function, only supports
36743 NI_NUMERICHOST|NI_NUMERICSERV for now.
36745 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
36746 only have some of them. Add AI_NUMERICSERV. Add prototype for
36749 2006-06-28 Eric Blake <ebb9@byu.net>
36751 * modules/wcwidth: New file.
36752 * modules/mbchar (Depends-on): Add wcwidth.
36753 * modules/mbswidth (Depends-on): Add wcwidth.
36754 * MODULES.html.sh: Add wcwidth.
36756 2006-06-28 Eric Blake <ebb9@byu.net>
36758 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
36759 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
36761 2006-06-28 Eric Blake <ebb9@byu.net>
36763 * lib/xvasprintf.h: Fix comments.
36765 2006-06-28 Eric Blake <ebb9@byu.net>
36767 * lib/mbchar.h (wcwidth): Include wcwidth.h.
36768 * lib/mbswidth.c (wcwidth): Move from here...
36769 * lib/wcwidth.h: ...to this new file.
36771 2006-06-28 Derek R. Price <derek@ximbiot.com>
36773 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
36775 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
36777 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
36779 2006-06-28 Derek R. Price <derek@ximbiot.com>
36781 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
36782 Autoconf 2.60 says this stuff was obsolete.
36784 2006-06-28 Bruno Haible <bruno@clisp.org>
36786 * modules/wcwidth (Files): Add m4/wchar_t.m4.
36788 2006-06-28 Bruno Haible <bruno@clisp.org>
36790 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
36793 2006-06-28 Bruno Haible <bruno@clisp.org>
36795 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
36796 declaration for wcwidth.
36797 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
36799 2006-06-28 Bruno Haible <bruno@clisp.org>
36801 * lib/mkdtemp.c [MINGW]: Include <io.h>.
36802 (mkdir): Define using _mkdir.
36804 2006-06-28 Bruno Haible <bruno@clisp.org>
36806 * lib/getaddrinfo.h: Fix POSIX URL.
36807 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
36809 (use_win32_p): Make static.
36810 (getaddrinfo): Reject service name if it is empty or does not consist
36811 solely of decimal digits, or if its value is > 65535.
36812 (getnameinfo): Remove useless casts.
36814 2006-06-27 Simon Josefsson <jas@extundo.com>
36816 * modules/sys_select: New file, suggested by Bruno Haible, Paul
36817 Eggert and Martin Lambers.
36819 2006-06-27 Simon Josefsson <jas@extundo.com>
36821 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
36822 Eggert and Martin Lambers.
36824 2006-06-27 Bruno Haible <bruno@clisp.org>
36826 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
36827 result to 0, not to empty.
36828 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
36830 2006-06-27 Bruno Haible <bruno@clisp.org>
36832 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
36834 2006-06-26 Simon Josefsson <jas@extundo.com>
36836 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
36839 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
36841 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
36842 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
36843 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
36845 2006-06-26 Mark D. Baushke <mdb@gnu.org>
36847 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
36849 2006-06-26 Bruno Haible <bruno@clisp.org>
36851 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
36853 2006-06-26 Bruno Haible <bruno@clisp.org>
36855 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
36857 2006-06-26 Bruno Haible <bruno@clisp.org>
36859 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
36860 SGI C compiler in pre-C99 mode.
36861 Suggested by Mark D. Baushke and Larry Jones.
36863 2006-06-26 Bruno Haible <bruno@clisp.org>
36865 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
36867 Reported by Mark D. Baushke and Larry Jones.
36869 2006-06-26 Bruno Haible <bruno@clisp.org>
36871 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
36873 Suggested by Mark D. Baushke and Larry Jones.
36875 2006-06-23 Simon Josefsson <jas@extundo.com>
36876 Bruno Haible <bruno@clisp.org>
36878 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
36879 Emit mostlyclean-local rule.
36880 (func_emit_tests_Makefile_am): Likewise.
36881 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
36883 2006-06-23 Mark D. Baushke <mdb@gnu.org>
36885 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
36887 2006-06-23 Bruno Haible <bruno@clisp.org>
36889 * tests/test-stdint.c: Update to match ISO C 99 Technical
36892 2006-06-23 Bruno Haible <bruno@clisp.org>
36894 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
36896 2006-06-23 Bruno Haible <bruno@clisp.org>
36898 * lib/stdint_.h: Treat IRIX like OpenBSD.
36900 2006-06-23 Bruno Haible <bruno@clisp.org>
36902 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
36903 ISO C 99 Technical Corrigendum 1.
36905 2006-06-22 Simon Josefsson <jas@extundo.com>
36907 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
36910 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
36912 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
36913 needed. Some compiler complained about some of them. Problem reported
36915 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
36917 2006-06-21 Simon Josefsson <jas@extundo.com>
36919 * tests/test-getaddrinfo.c: New file.
36921 * modules/getaddrinfo-tests: New file.
36923 * MODULES.html.sh: Add inet_pton.
36925 * modules/inet_pton: New file.
36927 2006-06-21 Simon Josefsson <jas@extundo.com>
36929 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
36930 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
36931 of using the (limited) gnulib implementation on Windows XP.
36933 * m4/inet_pton.m4: New file.
36935 2006-06-21 Simon Josefsson <jas@extundo.com>
36937 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
36940 * lib/socket_.h: Don't define WINVER.
36942 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
36943 slightly modified to work in gnulib.
36945 2006-06-21 Simon Josefsson <jas@extundo.com>
36947 * doc/gnulib.texi (Windows sockets): Add.
36949 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
36951 * lib/read-file.c (fread_file): Start with buffer allocation of
36952 0 bytes rather than 1 byte; this simplifies the code.
36953 Don't invoke feof; it's not needed. Refactor to avoid duplicate
36954 code to free buffer and save/restore errno.
36955 (internal_read_file): Remove unused local.
36957 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
36959 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
36960 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
36961 Problem reported by Denis Excoffier in
36962 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
36964 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
36966 * modules/sys_socket, modules/socklen: Include sys/types since
36967 FreeBSD 4.x's sys/socket.h needs it.
36969 2006-06-19 Simon Josefsson <jas@extundo.com>
36971 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
36973 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
36975 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
36977 2006-06-19 Bruno Haible <bruno@clisp.org>
36979 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
36980 and FULL_PATH_INTTYPES_H in angle brackets.
36981 Reported by Mark D. Baushke <mdb@gnu.org>.
36983 2006-06-17 Eric Blake <ebb9@byu.net>
36985 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
36988 2006-06-17 Bruno Haible <bruno@clisp.org>
36990 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
36993 2006-06-17 Bruno Haible <bruno@clisp.org>
36995 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
36996 whether errno is declared. Assume <errno.h> declares errno.
36998 2006-06-17 Bruno Haible <bruno@clisp.org>
37000 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
37002 2006-06-17 Bruno Haible <bruno@clisp.org>
37004 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
37005 problem on Solaris 2.5.1.
37007 2006-06-16 Eric Blake <ebb9@byu.net>
37009 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
37010 * lib/unicodeio.c [!defined errno]: Likewise.
37011 * lib/strtol.c [!defined errno]: Likewise.
37012 * lib/strtod.c [!defined errno]: Likewise.
37014 2006-06-15 Eric Blake <ebb9@byu.net>
37016 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
37018 2006-06-15 Eric Blake <ebb9@byu.net>
37020 * config/srclist.txt (ssize_t.m4): Lose sync.
37022 2006-06-15 Bruno Haible <bruno@clisp.org>
37024 * modules/stdint (Files): Include m4/full-header-path.m4,
37025 m4/size_max.m4, m4/wchar_t.m4.
37026 (Makefile.am): Many more substitutions.
37027 * modules/stdint-tests: New file.
37028 * tests/test-stdint.c: New file.
37030 2006-06-15 Bruno Haible <bruno@clisp.org>
37032 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
37033 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
37034 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
37035 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
37036 gl_CHECK_TYPE_SAME): New macros.
37038 2006-06-15 Bruno Haible <bruno@clisp.org>
37040 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
37042 2006-06-15 Bruno Haible <bruno@clisp.org>
37044 * lib/stdint_.h: Rewritten to be fully auto-configured.
37045 Fixes bug on HP-UX/IA64.
37047 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
37049 * lib/getdate.y (__attribute__): Don't define if already defined.
37050 Problem reported by Larry Jones.
37051 * lib/utimens.c (__attribute__): Likewise.
37053 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
37055 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
37056 reported by Andreas Schwab.
37058 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37059 Bruno Haible <bruno@clisp.org>
37061 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
37062 check for the declaration of strnlen and a run test that exposes the
37063 AIX 5.1 strnlen bug. In the failure case, #define strndup to
37066 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37067 Bruno Haible <bruno@clisp.org>
37069 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
37071 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37073 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
37074 compile test, for Tru64 4.0D.
37076 2006-05-28 Karl Berry <karl@gnu.org>
37078 * config/srclist.txt (printf-args.c): lose sync.
37080 2006-05-26 Martin Lambers <marlam@marlam.de>
37082 * lib/getpass.c: Updates the test for the native W32 API, and adds
37083 missing includes, thus fixing compilation warnings.
37085 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
37087 * lib/exclude.c (exclude_fnmatch): New function.
37088 (excluded_file_name): Call exclude_fnmatch.
37089 * lib/exclude.h (excluded_file_name): New prototype
37091 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
37093 * lib/tempname.c (small_open, large_open): New macros.
37094 (__open, __open64) [!_LIBC]: Remove.
37095 (__gen_tempname): Use small_open and large_open instead of __open
37096 and __open64. This fixes a portability bug on HP-UX 11.11i
37097 reported by Simon Wing-Tang in
37098 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
37100 2006-05-24 Bruno Haible <bruno@clisp.org>
37102 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
37103 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
37104 Reported by Thorsten Maerz <torte@netztorte.de> via
37105 Aaron Stone <aaron@serendipity.cx>.
37107 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
37109 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
37110 gl_ rather than jm_. Link, don't run, so that cross-compiles are
37111 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
37112 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
37113 not really conditional on the cache.
37114 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
37116 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
37118 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
37119 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
37120 (my_usleep): Don't mishandle maximum value.
37122 2006-05-19 Jim Meyering <jim@meyering.net>
37124 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
37126 2006-05-17 Bruno Haible <bruno@clisp.org>
37128 Cygwin portability.
37129 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
37131 2006-05-17 Bruno Haible <bruno@clisp.org>
37133 * lib/stdint_.h: Fix recognition of Cygwin.
37135 2006-05-15 Bruno Haible <bruno@clisp.org>
37137 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
37138 on libtool patch by Ralf Wildenhues.
37140 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
37142 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
37143 test for C99 conformance; (bool) 0.5 is an integer constant
37144 expression, but (bool) -0.5 is not. Problem reported by Fedor
37145 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
37147 2006-05-11 Simon Josefsson <jas@extundo.com>
37149 * m4/xvasprintf.m4: Fix obvious typo.
37151 2006-05-11 Jim Meyering <jim@meyering.net>
37153 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
37156 2006-05-10 Simon Josefsson <jas@extundo.com>
37158 * lib/md4.c: Typo fix, update copyright years.
37159 (K1, K2): Don't use L because it turn computations into 64-bit on
37162 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
37164 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
37165 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
37166 unwanted sign propagation, e.g., on hosts with 64-bit int.
37167 There still are some problems with reeelly weird theoretical hosts
37168 (e.g., 33-bit int) but it's not worth worrying about now.
37169 * lib/sha1.c (rol): Likewise.
37170 (K1, K2, K3, K4): Remove unnecessary L suffix.
37172 2006-05-10 Bruno Haible <bruno@clisp.org>
37174 * lib/des.c: Cast to avoid warnings.
37176 2006-05-09 Bruno Haible <bruno@clisp.org>
37178 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
37179 (Depends-on): Depend also on xsize, stdarg.
37180 (configure.ac): Add gl_XVASPRINTF.
37182 2006-05-09 Bruno Haible <bruno@clisp.org>
37184 * m4/xvasprintf.m4: New file.
37186 2006-05-09 Bruno Haible <bruno@clisp.org>
37188 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
37189 (EOVERFLOW): Define fallback value.
37190 (xstrcat): New function.
37191 (xvasprintf): Recognize the special case of a string concatenation.
37193 2006-05-08 Eric Blake <ebb9@byu.net>
37195 * gnulib-tool (func_version): Base copyright year on CVS date.
37196 (func_emit_copyright_notice): New function.
37197 (func_emit_lib_Makefile_am): Use it.
37198 (func_emit_tests_Makefile_am): Likewise.
37199 (func_import): Likewise.
37201 2006-05-08 Bruno Haible <bruno@clisp.org>
37203 * modules/stdarg: New file.
37204 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
37206 2006-05-08 Bruno Haible <bruno@clisp.org>
37208 * m4/stdarg.m4: New file, from GNU gettext.
37210 2006-05-08 Bruno Haible <bruno@clisp.org>
37212 * config/srclist.txt (build-aux/config.rpath): different from latest
37215 2006-05-08 Bruno Haible <bruno@clisp.org>
37217 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
37219 2006-05-05 Jim Meyering <jim@meyering.net>
37221 * m4/warning.m4: New file, derived from bison's file by the same name.
37223 2006-05-03 Bruno Haible <bruno@clisp.org>
37225 * lib/stdint_.h: Shorter URL.
37226 * lib/inttypes.h: Likewise.
37228 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
37230 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
37232 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
37234 * lib/verify.h: Document the internals better. Most of this change
37235 was written by Bruno Haible.
37237 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
37239 * doc/verify.texi: New file, partly based on a proposal by
37242 2006-05-02 Bruno Haible <bruno@clisp.org>
37244 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
37246 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
37248 2006-04-29 Bruno Haible <bruno@clisp.org>
37250 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
37251 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
37253 2006-04-29 Bruno Haible <bruno@clisp.org>
37255 * gnulib-tool: Make --update option actually work.
37257 2006-04-29 Bruno Haible <bruno@clisp.org>
37259 * doc/gcd.texi: New file.
37260 * doc/gnulib.texi: Include it.
37262 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
37264 * lib/getdate.y (get_date): When adding relative date, start with the
37265 initial time, not with the result of the first mktime call.
37267 2006-04-25 Bruno Haible <bruno@clisp.org>
37269 * gnulib-tool (func_import): Output the include directives in three
37270 blocks, sorted separately.
37271 Reported by Ben Pfaff <blp@cs.stanford.edu>.
37273 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
37275 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
37276 to define main with arguments, for C++. Reported by Eric Blake.
37277 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
37278 Prefer 'int main ()' to 'int main (void)', for C++.
37279 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
37280 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
37281 for 'main', for C99 and C++.
37283 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
37285 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
37286 Don't assume that exit status -1 is valid.
37287 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37288 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
37289 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
37290 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
37291 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
37292 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
37293 not AC_TRY_RUN. Use return, not exit. Don't assume that
37294 functions can be used without declaring them, or that you can
37295 exit with status -1.
37296 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
37298 2006-04-24 Karl Berry <karl@gnu.org>
37300 * config/srclist.txt (longdouble.m4): sync lost.
37302 2006-04-24 Eric Blake <ebb9@byu.net>
37304 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
37306 2006-04-24 Bruno Haible <bruno@clisp.org>
37308 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
37309 poll() implementation in AIX.
37310 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37312 2006-04-24 Bruno Haible <bruno@clisp.org>
37314 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
37315 assigned exactly once.
37317 2006-04-23 Claudio Fontana <claudio@gnu.org>
37318 Bruno Haible <bruno@clisp.org>
37320 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
37321 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
37324 2006-04-23 Bruno Haible <bruno@clisp.org>
37326 * modules/copy-file: Depend on unistd.
37327 * modules/execute: Likewise.
37328 * modules/fatal-signal: Likewise.
37329 * modules/findprog: Likewise.
37330 * modules/mkdtemp : Likewise.
37331 * modules/pipe: Likewise.
37332 * modules/wait-process: Likewise.
37334 2006-04-23 Bruno Haible <bruno@clisp.org>
37336 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
37337 condition was already detected.
37338 Reported by Ben Pfaff <blp@cs.stanford.edu>.
37340 2006-04-23 Bruno Haible <bruno@clisp.org>
37342 * lib/copy-file.c: Include <unistd.h> unconditionally.
37343 * lib/execute.c: Likewise.
37344 * lib/fatal-signal.c: Likewise.
37345 * lib/findprog.c: Likewise.
37346 * lib/mkdtemp.c: Likewise.
37347 * lib/pipe.h: Likewise.
37348 * lib/pipe.c: Likewise.
37349 * lib/wait-process.h: Likewise.
37351 2006-04-23 Bruno Haible <bruno@clisp.org>
37353 * gnulib-tool (func_usage): Fix --import description. Document
37355 (func_import): Create temporary file in a temporary directory, if
37356 --dry-run is specified. Silence errors from 'grep' when there are no
37357 m4 files in $m4dir.
37358 (func_create_testdir): Silence errors from 'grep' when there are no
37359 m4 files in $m4dir.
37360 Reported by Karl Berry <karl@freefriends.org>.
37362 2006-04-20 Bruno Haible <bruno@clisp.org>
37364 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
37365 one argument, so that the code will be portable to Autoconf 2.60.
37366 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
37367 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
37368 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
37370 2006-04-19 Derek Price <derek@ximbiot.com>
37371 Eric Blake <ebb9@byu.net>
37373 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
37374 rather than "/full/path.h". Update comment to match. Shorten &
37375 generalize m4_translit call via AS_TR_CPP.
37377 2006-04-19 Derek Price <derek@ximbiot.com>
37378 Eric Blake <ebb9@byu.net>
37380 * lib/inttypes.h: Correct grammar in comment.
37382 2006-04-18 Derek Price <derek@ximbiot.com>
37383 Paul Eggert <eggert@cs.ucla.edu>
37385 * modules/inttypes: New file.
37386 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
37388 2006-04-18 Derek Price <derek@ximbiot.com>
37389 Paul Eggert <eggert@cs.ucla.edu>
37391 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
37394 2006-04-18 Derek Price <derek@ximbiot.com>
37395 Paul Eggert <eggert@cs.ucla.edu>
37397 * lib/inttypes.h: New file.
37398 * lib/strtoimax.c: Assume <inttypes.h>.
37400 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
37402 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
37403 isn't mounted. Problem reported by Kir Kolyshkin.
37405 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
37407 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
37408 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
37410 * lib/regex.h (RE_DUP_MAX): Update comment to match current
37413 2006-04-12 Eric Blake <ebb9@byu.net>
37415 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
37416 is now done automatically by the corresponding Autoconf macro.
37418 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
37420 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
37423 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
37425 Merge regex changes from libc, removing some of our
37426 POSIX-conformance changes that were rejected and redoing them in a
37427 less-intrusive way.
37429 * lib/regcomp.c (re_compile_internal, init_dfa):
37430 Length arg is now size_t, not Idx. All uses changed.
37431 (peek_token): Forward decl now says internal_function.
37432 (__re_error_msgid, __re_error_msgid_idx):
37433 Now static rather than extern with attribute_hidden.
37434 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
37435 For some reason libc prefers K&R style defns for external functions.
37436 (regerror) [!defined _LIBC]: Likewise.
37437 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
37438 (seek_collating_symbol_entry, lookup_collation_sequence_value):
37439 (build_range_exp, build_collating_symbol):
37440 Use K&R-style defn.
37441 (re_compile_fastmap): Use '\0' to memset, not 0.
37442 (utf8_sb_map): Make the calculations more obvious.
37443 (init_dfa, parse_bracket_exp, build_charclass_op):
37444 Call calloc and cast result, as glibc does.
37445 (init_word_char, fetch_token, peek_token, peek_token_bracket):
37446 (build_range_exp, build_collating_symbol):
37447 Now internal functions.
37449 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
37451 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
37452 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
37453 Don't depend on VMS; depend on __VMS instead, for POSIX
37454 namespace cleanness.
37455 (regoff_t): Define to ssize_t, not long int.
37457 Remove the REG_ macros named below. Instead, make the old names
37458 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
37460 (REG_BACKSLASH_ESCAPE_IN_LISTS):
37461 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
37462 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
37463 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
37464 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
37465 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
37466 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
37467 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
37468 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
37469 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
37470 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
37471 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
37472 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
37473 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
37474 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
37475 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
37476 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
37478 Remove. All uses replaced by the old RE_* names.
37479 (RE_BACKSLASH_ESCAPE_IN_LISTS):
37480 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
37481 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
37482 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
37483 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
37484 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
37485 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
37486 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
37487 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
37488 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
37489 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
37490 Don't bother having these macros be independent of each others'
37491 values, since they no longer exist in the POSIX name space.
37493 Rename the following member names back to their old names,
37494 unless !__USE_GNU_REGEX. All uses changed back.
37495 (buffer): Renamed from re_buffer.
37496 (allocated): Renamed from re_allocated.
37497 (used): Renamed from re_used.
37498 (syntax): Renamed from re_syntax.
37499 (fastmap): Renamed from re_fastmap.
37500 (translate): Renamed from re_translate.
37501 (can_be_null): Renamed from re_can_be_null.
37502 (regs_allocated): Renamed from re_regs_allocated.
37503 (fastmap_accurate): Renamed from re_fastmap_accurate.
37504 (no_sub): Renamed from re_no_sub.
37505 (not_bol): Renamed from re_not_bol.
37506 (not_eol): Renamed from re_not_eol.
37507 (newline_anchor): Renamed from re_newline_anchor.
37508 (num_regs): Renamed from rm_num_regs.
37509 (start): Renamed from rm_start.
37510 (end): Renamed from rm_end.
37512 (free_state): Move up a bit.
37514 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
37515 #define to be empty.
37516 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
37517 when that is what is intended.
37518 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
37519 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
37521 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
37522 All uses changed back to re_malloc, etc. It's now the caller's
37523 responsibility to check for overflow; all callers changed.
37524 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
37525 (re_x2nrealloc): Remove.
37526 (free_state): Remove decl.
37528 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
37529 (re_set_registers, re_exec):
37530 Use K&R-style defn.
37532 2006-01-31 Roland McGrath <roland@redhat.com>
37534 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
37535 Reported by Mike Frysinger <vapier@gentoo.org>.
37537 2006-01-15 Andreas Jaeger <aj@suse.de>
37540 * lib/regex_internal.c (re_string_reconstruct): Adjust for
37541 build_wcs_upper_buffer change.
37542 (build_wcs_upper_buffer): Change return type.
37544 2005-12-10 Ulrich Drepper <drepper@redhat.com>
37546 * lib/regex_internal.h: Include <stdint.h> if available.
37548 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
37550 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
37552 2005-10-14 Ulrich Drepper <drepper@redhat.com>
37554 * lib/regcomp.c: Adjust for changed secondary hash function.
37556 2005-09-30 Ulrich Drepper <drepper@redhat.com>
37558 * lib/regex.h: Pretty printing.
37559 Clean up namespace a bit.
37561 2005-09-30 Jakub Jelinek <jakub@redhat.com>
37563 * lib/regexec.c (update_cur_sifted_state, check_arrival,
37564 check_arrival_add_next_nodes): Avoid using uninitialized variable.
37566 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
37567 Ulrich Drepper <drepper@redhat.com>
37570 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
37572 (bitset_word_t): Renamed from bitset_word. All uses changed.
37574 2005-09-22 Ulrich Drepper <drepper@redhat.com>
37577 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
37578 * lib/regcomp.c: Remove unnecessary uses of
37579 unsigned RE_TRANSLATE_TYPE.
37580 * lib/regex_internal.h: Likewise.
37581 * lib/regex_internal.c: Likewise.
37582 * lib/regexec.c: Likewise.
37583 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
37585 2005-09-07 Ulrich Drepper <drepper@redhat.com>
37587 * lib/regexec.c (find_recover_state): Remove unnecessary
37589 (transit_state_bkref): Make DFA a const pointer.
37590 (get_subexp): Likewise.
37591 (check_arrival): Likewise.
37592 (update_cur_sifted_state): Likewise.
37593 (re_search_internal): Likewise.
37594 (prune_impossible_nodes): Likewise.
37595 (acquire_init_state_context): Likewise.
37596 (proceed_next_node): Likewise.
37597 (set_regs): Likewise.
37598 (free_fail_stack_return): Likewise.
37599 (check_arrival_expand_ecl): Mark DFA parameter as const.
37600 (check_arrival_expand_ecl_sub): Likewise.
37601 (check_subexp_limits): Likewise.
37602 (sub_epsilon_src_nodes): Likewise.
37603 (add_epsilon_src_nodes): Likewise.
37604 (merge_state_array): Likewise.
37605 (update_regs): Likewise.
37606 (build_trtable): Likewise.
37607 (sift_states_backward): Mark MCTX parameter as const.
37608 (build_sifted_states): Likewise.
37609 (update_cur_sifted_state): Likewise.
37610 (sift_states_mkref): Likewise.
37611 (check_arrival_expand_ecl): Mark eclosure as const.
37612 (check_dst_limits_calc_pos_1): Likewise.
37613 * lib/regex_internal.h (re_match_context_t): Make dfa a const
37616 2005-09-06 Ulrich Drepper <drepper@redhat.com>
37618 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
37619 (transit_state_sb): Likewise.
37620 (transit_state_mb): Likewise.
37621 (sift_states_iter_mb): Likewise.
37622 (check_arrival_add_next_nodes): Likewise.
37623 (check_node_accept_bytes): Change first parameter to pointer-to-const.
37624 [_LIBC] (re_search_2_stub): Use mempcpy.
37626 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
37627 mbrtowc for very simple UTF-8 case.
37629 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
37630 a pointer-to-const.
37631 (re_acquire_state_context): Likewise.
37632 * lib/regex_internal.h: Adjust prototypes.
37634 * lib/regex.c: Prevent using C++ compilers.
37636 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
37637 (re_acquire_state_context): Likewise.
37639 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
37641 * modules/regex (Depends-on): Add ssize_t.
37643 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
37645 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
37648 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
37650 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
37652 2006-03-29 Mark D. Baushke <mdb@gnu.org>
37653 Bruno Haible <bruno@clisp.org>
37655 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
37656 <sys/types.h> and <inttypes.h>.
37658 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37660 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
37661 `__error_t_defined', so argp.h will not typedef the former.
37663 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
37665 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
37666 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
37667 glibc names. Even if glibc is changed to conform to POSIX, the
37668 traditional names will be available anyway, since regex depends on
37669 the extensions module. Also, fix a longstanding typo in the
37670 implementation of Spencer ERE test #75 from grep 2.3. Problems
37671 reported by Emanuele Giaquinta. Also, change sense of cached
37672 variable, so that the message makes sense.
37674 2006-03-24 Simon Josefsson <jas@extundo.com>
37676 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
37677 including some doc fixes.
37678 (base64_encode_alloc): Fix +1 bug on allocation failures.
37680 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37682 * lib/base64.c (base64_encode): Do not read past end of array with
37683 unsanitized input on systems with CHAR_BIT > 8.
37685 2006-03-24 Eric Blake <ebb9@byu.net>
37687 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
37689 2006-03-22 Karl Berry <karl@gnu.org>
37691 * config/srclist.txt (*setenv.[ch]): get from coreutils.
37692 * config/srclistvars.sh (COREUTILS): new var.
37694 2006-03-17 Jim Meyering <jim@meyering.net>
37696 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
37697 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
37699 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
37701 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
37702 no longer needs it. Instead, check that regoff_t is as least
37703 as wide as ptrdiff_t.
37705 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
37706 so that our regex.h stays compatible with the installed regex.
37707 This is helpful for installers who configure --without-included-regex.
37708 Problem reported by Emanuele Giaquinta.
37710 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
37712 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
37713 Typedef to long int, not to off_, as POSIX will likely change
37716 2006-03-15 Eric Blake <ebb9@byu.net>
37718 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
37720 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
37722 * lib/argp-help.c (validate_uparams): Fix typo
37723 * lib/argp-parse.c (argp_default_options): Consistently begin help
37724 messages with a lowercase letter.
37726 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
37728 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
37729 overrun buffers and shouldn't be used (much as gets shouldn't be
37731 * lib/time_r.c (asctime_r, ctime_r): Likewise.
37733 2006-03-08 Simon Josefsson <jas@extundo.com>
37735 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
37736 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37738 2006-03-08 Simon Josefsson <jas@extundo.com>
37740 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
37741 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37743 2006-03-08 Simon Josefsson <jas@extundo.com>
37745 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
37746 signal that configure disabled the device.
37748 2006-03-08 Simon Josefsson <jas@extundo.com>
37750 * build-aux/maint.mk: Fix refresh-po, to handle no translated
37753 2006-03-07 Simon Josefsson <jas@extundo.com>
37755 * modules/getopt (Depends-on): Add unistd.
37757 * modules/unistd: New file.
37759 2006-03-07 Simon Josefsson <jas@extundo.com>
37761 * modules/gc-random: New file.
37763 2006-03-07 Simon Josefsson <jas@extundo.com>
37765 * m4/unistd_h.m4: New file.
37767 2006-03-07 Simon Josefsson <jas@extundo.com>
37769 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
37770 test to be side-effect free by storing the result in the cache
37771 variable gl_cv_lib_readline, and moving the assignment of
37772 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
37773 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37775 2006-03-07 Simon Josefsson <jas@extundo.com>
37777 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
37778 error on missing devices (the functions will return an error).
37780 * m4/gc.m4: Move random stuff to gc-random.m4
37782 2006-03-07 Simon Josefsson <jas@extundo.com>
37784 * lib/unistd_.h: New file.
37786 2006-03-07 Simon Josefsson <jas@extundo.com>
37788 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
37790 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
37792 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
37793 Problem reported by Juan Manuel Guerrero.
37795 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
37797 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
37799 * lib/getlogin_r.c: Likewise.
37800 * lib/getlogin_r.h: Likewise.
37801 * lib/glob.c: Likewise.
37802 * lib/pagealign_alloc.c: Likewise.
37803 * lib/unistd_.h: Remove; no longer needed.
37805 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
37807 * MODULES.html.sh (Support for systems lacking POSIX:2001):
37809 * modules/c-stack (Depends-on): Add unistd.
37810 * modules/getlogin_r: Likewise.
37811 * modules/glob: Likewise.
37812 * modules/pagealign_alloc: Likewise.
37813 * modules/unistd (Files): Remove lib/unistd_.h.
37814 (EXTRA_DIST): Remove.
37815 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
37817 (MOSTLYCLEANFILES): Remove unistd.h-t.
37819 2006-03-03 Simon Josefsson <jas@extundo.com>
37821 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
37823 2006-03-03 Simon Josefsson <jas@extundo.com>
37825 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
37828 2006-03-03 Simon Josefsson <jas@extundo.com>
37830 * build-aux/maint.mk: Add indent target.
37832 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
37834 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
37835 our replacement poll.h in any case, to avoid a differing
37836 declaration from a system header. Seen on AIX.
37838 2006-03-01 Simon Josefsson <jas@extundo.com>
37840 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
37843 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
37845 * modules/gettime (Depends-on): Add extensions module.
37846 * modules/nanosleep (Depends-on): Likewise.
37847 * modules/settime (Depends-on): Likewise.
37849 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
37851 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
37852 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
37854 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37855 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
37857 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
37858 not "==". Reported by Ralf Wildenhues.
37860 2006-03-01 Karl Berry <karl@gnu.org>
37862 * doc/Copyright/request-*: new files, synced from gnuorg.
37864 2006-03-01 Karl Berry <karl@gnu.org>
37866 * config/srclist.txt (Copyright/*): new entries.
37868 2006-02-28 Simon Josefsson <jas@extundo.com>
37870 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
37872 2006-02-27 Simon Josefsson <jas@extundo.com>
37874 * lib/base64.h: Indent #define's. From Jim Meyering
37875 <jim@meyering.net>.
37877 2006-02-27 Jim Meyering <jim@meyering.net>
37879 Revert the change of 2006-02-24, so these files can continue
37880 to be sync'd from gettext.
37881 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
37884 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
37886 * modules/intprops: New file.
37887 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
37889 * modules/getloadavg (Files): Remove lib/intprops.h.
37890 (Depends-on): Add intprops.
37891 * modules/human: Likewise.
37892 * modules/inttostr: Likewise.
37893 * modules/openat: Likewise.
37894 * modules/sig2str: Likewise.
37895 * modules/userspec: Likewise.
37896 * modules/utimecmp: Likewise.
37897 * modules/xnanosleep: Likewise.
37898 * modules/xstrtol: Likewise.
37900 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
37902 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
37903 * modules/lock-tests (TESTS): Use $(EXEEXT).
37904 * modules/tls-tests: Likewise.
37905 * modules/argp-tests: Likewise.
37906 (check_PROGRAMS): New var, replacing...
37907 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
37909 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37911 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
37914 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
37916 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
37918 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37920 Sync from coreutils.
37921 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
37924 2006-02-22 Jim Meyering <jim@meyering.net>
37926 Sync from coreutils.
37927 * m4/chdir-safer.m4: New file.
37929 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
37931 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
37932 AT_FDCWD exceeds INT_MAX.
37933 * lib/openat.h (AT_FDCWD): Likewise.
37935 2006-02-17 Eric Blake <address@hidden>
37937 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
37939 2006-02-16 Simon Josefsson <jas@extundo.com>
37941 * modules/getaddrinfo (Depends-on): Add sys_socket.
37943 2006-02-15 Simon Josefsson <jas@extundo.com>
37945 * build-aux/maint.mk: Add dsyntax-check rule.
37947 2006-02-15 Eric Blake <ebb9@byu.net>
37949 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
37950 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
37951 'present but cannot compile' warnings on cygwin.
37952 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
37953 use ws2tcpip.h if sys/socket.h works.
37954 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
37955 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
37957 2006-02-14 Simon Josefsson <jas@extundo.com>
37959 * modules/maintainer-makefile (Files): Rename.
37961 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
37962 and (the local) Makefile.cfg to maint-cfg.mk.
37964 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
37967 * modules/maintainer-makefile: New module.
37969 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
37970 severaly stripped to make it possible to build it up from scratch
37971 with reliable tests.
37973 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
37974 fixes to permit overriding the default actions when configure and
37975 makefile are not available.
37977 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
37979 Sync from coreutils.
37980 * modules/lstat (Depends-on): Don't depend on xalloc.
37981 (License): Change from GPL to LGPL, since this is now simply a
37982 replacement for a libc function.
37984 2006-02-14 Jim Meyering <jim@meyering.net>
37986 Sync from coreutils.
37988 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
37989 failure on deficient systems, and simplify gnulib lgpl dependencies.
37990 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
37991 xmalloc/lstat combination. Based on a patch from Bruno Haible.
37993 * lib/xalloc-die.c: Remove unused definition of N_.
37995 2006-02-14 Jim Meyering <jim@meyering.net>
37997 Sync from coreutils.
37998 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
37999 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
38000 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
38001 double-quote uses of that variable, to accommodate the rare case in
38002 which getmntent is available in none of the libraries checked. This
38003 happens at least on FreeBSD 5.0.
38005 2006-02-13 Simon Josefsson <jas@extundo.com>
38007 * gnulib-tool (Usage): Fix --import, from
38008 karl@freefriends.org (Karl Berry).
38010 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
38012 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
38014 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
38016 * lib/argp-namefrob.h: Restore changes accidentally lost during the
38017 "autoupdate" on 2005-12-12.
38019 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
38021 * modules/closeout (Depends-on): Remove atexit.
38023 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
38025 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
38026 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
38028 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
38030 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
38031 __EXTENSIONS__ if this causes compilation to fail. Problem
38032 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
38033 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
38035 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
38037 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
38038 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
38039 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
38042 2006-01-26 Simon Josefsson <jas@extundo.com>
38044 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
38045 prototype is visible on mingw32.
38047 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
38050 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
38053 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
38055 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
38056 attempt to open for write; this always fails, at least on POSIX
38057 hosts. This reinstates the 2006-01-09 change, which was
38058 inadvertently removed.
38060 2006-01-26 Bruno Haible <bruno@clisp.org>
38062 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
38063 Reported by Paul Eggert.
38065 2006-01-26 Bruno Haible <bruno@clisp.org>
38066 Paul Eggert <eggert@cs.ucla.edu>
38068 * lib/stdbool_.h (_Bool)
38069 [(! (defined __cplusplus || defined __BEOS__)
38070 && !defined __GNUC__
38071 && !(defined __HP_cc || defined __xlc__
38072 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
38073 || defined __sgi))]:
38074 #define to signed char in these cases too; this simplifies
38075 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
38076 etc., separately) and makes it more conservative.
38078 2006-01-25 Simon Josefsson <jas@extundo.com>
38080 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
38081 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
38082 ws2tcpip.h with WINVER=0x0501. All for mingw32.
38084 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
38086 * lib/argp-namefrob.h: Bugfix. Remove stray #
38088 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
38090 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
38091 so that we test the test.
38092 Check for yet another HP-UX cc bug involving *bool |= bool.
38094 2006-01-25 Karl Berry <karl@gnu.org>
38096 * config/srclist.txt (vasnprintf.c): sync lost.
38098 2006-01-25 Jim Meyering <jim@meyering.net>
38100 Sync from the stable (b5) branch of coreutils:
38102 * lib/fts.c (fts_children): Don't let close() clobber errno from
38105 * lib/fts.c (fts_stat): When following a symlink-to-directory,
38106 don't necessarily interpret stat-fails+lstat-succeeds as indicating
38107 a dangling symlink. That can also happen at least for ELOOP.
38108 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
38109 FYI, this bug predates the inclusion of fts.c in coreutils.
38111 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
38112 in their own block, so pre-c99 compilers don't object.
38114 Avoid the double-free (first in fts_read, second in fts_close) that
38115 would occur when an `active' directory is made inaccessible (e.g.,
38116 via chmod a-x) during a traversal.
38117 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
38118 before returning. Reproduce this failure by
38119 mkdir -p a/b; cd a; chmod a-x . b
38120 Reported by Stavros Passas.
38122 2006-01-25 Jim Meyering <jim@meyering.net>
38124 * lib/fileblocks.c: Remove more useless parentheses.
38125 * lib/readutmp.h: Likewise.
38127 2006-01-25 Bruno Haible <bruno@clisp.org>
38129 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
38131 Reported by Paul Eggert.
38133 2006-01-25 Bruno Haible <bruno@clisp.org>
38135 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
38136 rid of a trap command. For Solaris sh.
38137 Reported by Mark D. Baushke <mdb@gnu.org>.
38139 2006-01-24 Simon Josefsson <jas@extundo.com>
38141 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
38144 2006-01-24 Karl Berry <karl@gnu.org>
38146 * config/srclist.txt (argp-namefrob.h): sync lost.
38148 2006-01-24 Jim Meyering <jim@meyering.net>
38150 * modules/openat (Files): Add lib/intprops.h.
38151 From Mark D. Baushke.
38153 2006-01-24 Jim Meyering <jim@meyering.net>
38155 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
38156 Reported by Mark D. Baushke.
38158 2006-01-24 Jim Meyering <jim@meyering.net>
38160 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
38162 2006-01-24 Bruno Haible <bruno@clisp.org>
38164 * modules/strnlen (Maintainer): Change from glibc to all.
38166 2006-01-24 Bruno Haible <bruno@clisp.org>
38168 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
38169 Patch by Paul Eggert.
38171 2006-01-24 Bruno Haible <bruno@clisp.org>
38173 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
38175 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
38178 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
38179 'signed char' to avoid problems with the built-in _Bool type.
38180 Reported by Paul Eggert on 2005-11-26.
38182 2006-01-24 Bruno Haible <bruno@clisp.org>
38184 * gnulib-tool (func_import): Avoid constructing complicated sed
38185 expressions inside backquote.
38186 Report and solution by Mark D. Baushke <mdb@gnu.org>.
38188 2006-01-23 Ulrich Drepper <drepper@redhat.com>
38190 These changes imported from libc.
38191 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
38192 test and two separate function calls.
38193 * lib/strndup.c (__strndup): Add libc_hidden_def.
38195 2006-01-23 Simon Josefsson <jas@extundo.com>
38197 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
38198 Remove the test_*_SOURCES variable: automake infers it by default.
38199 * modules/tls-tests: Likewise.
38201 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
38203 Work around porting bugs reported by Dieter in
38204 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
38205 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
38206 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
38207 Include "getopt.h" first, to check interface.
38208 (getenv): Declare only if defined HAVE_DECL_GETENV &&
38210 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
38211 (__strndup): Revert to K&R-style function dfns, the glibc style.
38212 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
38213 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
38214 Include strnlen.h first, to get prototype properly.
38215 (strnlen): Renamed from __strnlen.
38218 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
38220 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
38222 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
38224 * config/srclist.txt: Adjust to reflect glibc reorganization.
38225 This affects only comments.
38227 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
38229 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
38230 Reported by Bruce Korb <bkorb@gnu.org>.
38232 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
38234 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
38235 to pacify gcc -Wswitch-default.
38237 2006-01-22 Bruno Haible <bruno@clisp.org>
38239 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
38240 temporary buffer for sprintf, take into account the precision also
38241 for 'd', 'i', 'u', 'o', 'x', 'X'.
38243 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
38245 * modules/argp-tests: New module
38246 * tests/test-argp.c: New file
38247 * tests/test-argp-2.sh: New file
38249 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
38251 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
38252 (__argp_base_name): Removed
38253 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
38255 (__argp_base_name): Provide macro definition or extern declaration
38256 depending on the configuration
38258 2006-01-20 Simon Josefsson <jas@extundo.com>
38260 * modules/inet_ntop (Depends-on): Depend on sys_socket.
38262 2006-01-20 Simon Josefsson <jas@extundo.com>
38264 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
38266 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
38268 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
38269 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
38270 Suggested by Bruno Haible.
38272 2006-01-20 Karl Berry <karl@gnu.org>
38274 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
38275 until changes propagate, I guess.
38277 2006-01-19 Simon Josefsson <jas@extundo.com>
38279 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
38281 2006-01-19 Simon Josefsson <jas@extundo.com>
38283 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
38285 2006-01-19 Simon Josefsson <jas@extundo.com>
38287 * gnulib-tool: Set check_PROGRAMS.
38289 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
38290 modules/des-tests, modules/gc-arcfour-tests,
38291 modules/gc-arctwo-tests, modules/gc-des-tests,
38292 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
38293 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
38294 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
38295 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
38296 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
38297 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
38298 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
38301 2006-01-18 Simon Josefsson <jas@extundo.com>
38303 * modules/socklen (Depends-on): Depend on sys_socket.
38305 2006-01-18 Simon Josefsson <jas@extundo.com>
38307 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
38308 modules/des-tests, modules/gc-arcfour-tests,
38309 modules/gc-arctwo-tests, modules/gc-des-tests,
38310 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
38311 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
38312 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
38313 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
38314 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
38315 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
38316 $(EXEEXT) to automake TESTS variable, for mingw32.
38318 2006-01-17 Simon Josefsson <jas@extundo.com>
38320 * modules/socklen (Include): Need sys/socket.h.
38322 2006-01-17 Bruno Haible <bruno@clisp.org>
38324 * modules/ssize_t (Include): Add <sys/types.h>.
38326 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
38328 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
38329 it's not portable and it doesn't work with cross-compiles.
38330 Problem reported by Bruno Haible. Fix missing-$ typo in
38331 'test "gl_cv_ignore_unused_libraries" ...' that prevented
38332 -zignore from being used with Sun's C compiler.
38334 2006-01-12 Simon Josefsson <jas@extundo.com>
38336 * lib/base64.c: Fix warning, reported by Bruno Haible
38337 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
38339 2006-01-12 Bruno Haible <bruno@clisp.org>
38341 * modules/ldd: New file.
38342 * build-aux/ldd.sh.in: New file.
38343 * MODULES.html.sh (Support for building libraries and executables): Add
38346 2006-01-12 Bruno Haible <bruno@clisp.org>
38348 * m4/ldd.m4: New file.
38350 2006-01-12 Bruno Haible <bruno@clisp.org>
38352 * gnulib-tool (func_import, func_create_testdir): Don't go into an
38353 endless loop while replacing $auxdir with build-aux.
38355 2006-01-11 Simon Josefsson <jas@extundo.com>
38357 * lib/stdint_.h (SIZE_MAX): Add missing (.
38359 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
38361 Sync from coreutils.
38362 * lib/md5.c: Fix commentary typos.
38363 (alignof, UNALIGNED_P): No need for a GCC-specific version.
38364 * lib/md5.h (__attribute__): Remove; unused.
38365 * lib/sha1.c: Fix commentary to match md5 better.
38366 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
38367 so that we don't need to worry about alignment. All uses changed.
38368 This merges the 2005-10-28 md5 change into sha1.
38370 2006-01-11 Jim Meyering <jim@meyering.net>
38372 Sync from coreutils.
38373 * lib/md5.c (OP): Fix spacing.
38375 2006-01-11 Bruno Haible <bruno@clisp.org>
38377 Ensure automatic ordering between gl_LOCK and gl_ARGP.
38378 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
38379 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
38381 2006-01-11 Bruno Haible <bruno@clisp.org>
38383 Ensure automatic ordering between gl_LOCK and gl_ARGP.
38384 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
38385 the "early" section as well.
38387 2006-01-11 Bruno Haible <bruno@clisp.org>
38389 Avoid "ar: no archive members specified" error on MacOS X.
38390 * gnulib-tool (func_modules_add_dummy): New function.
38391 (func_import, func_create_testdir): Invoke it.
38393 2006-01-11 Bruno Haible <bruno@clisp.org>
38395 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
38396 with $auxdir in AC_CONFIG_FILES statements.
38398 2006-01-11 Bruno Haible <bruno@clisp.org>
38400 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
38401 Initialize also noinst_HEADERS to empty.
38403 2006-01-11 Bruno Haible <bruno@clisp.org>
38405 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
38407 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
38410 2006-01-11 Bruno Haible <bruno@clisp.org>
38412 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
38413 overridable by the user.
38414 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38416 2006-01-10 Simon Josefsson <jas@extundo.com>
38418 * modules/sys_socket: New file.
38420 2006-01-10 Simon Josefsson <jas@extundo.com>
38422 * m4/sys_socket_h.m4: New file.
38424 2006-01-10 Simon Josefsson <jas@extundo.com>
38426 * lib/socket_.h: New file.
38428 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
38430 * modules/readutmp (Maintainer): Add myself.
38432 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
38434 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
38435 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
38436 People who are still concerned with buggy memcmp implementations
38437 can invoke gl_FUNC_MEMCMP themselves.
38439 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
38441 * lib/regex_internal.h (BITSET_WORD_BITS):
38442 Work around a bug in 64-bit PGC (before version 6.1-2), where the
38443 preprocessor mishandles large unsigned values as if they were signed.
38444 Problem reported by Claudio Fontana in
38445 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
38447 2006-01-10 Jim Meyering <jim@meyering.net>
38449 Avoid the double-free (first in fts_read, second in fts_close) that
38450 would occur when an `active' directory is made inaccessible (e.g.,
38451 via chmod a-x) during a traversal.
38452 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
38453 before returning. Reproduce this failure by
38454 mkdir -p a/b; cd a; chmod a-x . b
38455 Reported by Stavros Passas.
38457 Sync from coreutils.
38458 * lib/sha1.c: Tweak grammar in a comment.
38460 2006-01-10 Jim Meyering <jim@meyering.net>
38462 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
38463 Patch by Joerg Sonnenberger.
38465 2006-01-10 Bruno Haible <bruno@clisp.org>
38467 * modules/readutmp: Depend on module free.
38468 * modules/strtok_r: Depend on module restrict.
38470 2006-01-10 Bruno Haible <bruno@clisp.org>
38472 * modules/gettext (configure.ac): Add an invocation of
38473 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
38475 2006-01-10 Bruno Haible <bruno@clisp.org>
38477 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
38478 Reported by Werner Lemberg <wl@gnu.org>.
38480 2006-01-10 Bruno Haible <bruno@clisp.org>
38482 * lib/localcharset.c: Update from GNU gettext.
38484 2006-01-10 Bruno Haible <bruno@clisp.org>
38486 * lib/argp.h (__const): Remove macro. Use const instead.
38487 * lib/argp-fmtstream.h (__const): Likewise.
38488 * lib/glob_.h (__const): Remove macro.
38489 * lib/glob-libc.h: Use const instead of __const.
38491 2006-01-10 Bruno Haible <bruno@clisp.org>
38493 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
38495 Needed to avoid an automake error regarding the 'gettext' module.
38497 2006-01-09 Simon Josefsson <jas@extundo.com>
38499 * modules/inet_ntop (Depends-on): Add restrict.
38501 2006-01-09 Simon Josefsson <jas@extundo.com>
38503 * modules/gc-rijndael-tests (License): Put under LGPL.
38505 * modules/gc-des-tests (License): Likewise.
38507 * modules/gc-arcfour-tests (License): Likewise.
38509 * modules/gc-arctwo-tests (License): Likewise.
38511 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
38513 * modules/gc-hmac-sha1-tests (Files): Likewise.
38515 * modules/gc-hmac-md5-tests (License): Likewise.
38517 * modules/gc-sha1-tests (License): Likewise.
38519 * modules/gc-md5-tests (License): Likewise.
38521 * modules/gc-md4-tests (License): Likewise.
38523 * modules/gc-md2-tests (License): Likewise.
38525 * modules/gc-tests (License): Likewise.
38527 * modules/des-tests (License): Likewise.
38529 * modules/md4-tests (License): Likewise.
38531 * modules/md2-tests (License): Likewise.
38533 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
38535 Sync from coreutils:
38537 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
38538 * modules/lib-ignore: New file.
38539 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
38540 chdir-safer.m4, lchmod.m4.
38541 * modules/openat: Add mkdirat.c, openat-priv.h.
38543 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
38545 Sync from coreutils.
38546 * m4/lib-ignore.m4: New file.
38547 * m4/lchmod.m4: New file.
38549 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
38551 Sync from coreutils.
38552 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
38553 for write access: POSIX says that must fail.
38554 * lib/fts.c (diropen): Likewise.
38555 * lib/save-cwd.c (save_cwd): Likewise.
38556 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
38557 well, for minor improvements on hosts that lack O_DIRECTORY.
38558 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
38559 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
38560 Fall back on chown if open failed with EACCES.
38562 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
38563 Report an error at compile-time if only a 1-second nominal clock
38564 resolution is found.
38566 * lib/lchmod.h: New file.
38567 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
38568 (make_dir_parents): Use lchown rather than chown, and
38569 lchmod rather than chmod.
38571 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
38572 dummies too. Problem with "none" reported by Bob Proulx. Problem with
38573 "proc" reported by n0dalus.
38575 * lib/mountlist.c: Include <limits.h>.
38576 (dev_from_mount_options)
38577 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
38578 New function. It no longer assumes "dev=" has the System V meaning
38579 on Linux (since it doesn't). It also parses "dev=" more carefully.
38580 (read_file_system_list)
38581 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
38582 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
38585 * lib/posixtm.h (PDS_PRE_2000): New macro.
38586 * lib/posixtm.c (year): Arg is now syntax_bits rather than
38587 allow_century. All usages changed. Reject dates outside the range
38588 1969-1999 if PDS_PRE_2000 is used.
38590 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
38592 Sync from coreutils.
38593 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
38594 (Time of day items): Mention the possibility of leap seconds.
38595 Problem reported by Dr. David Alan Gilbert.
38597 2006-01-09 Jim Meyering <jim@meyering.net>
38599 Sync from coreutils.
38601 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
38603 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
38605 * lib/modechange.c (mode_compile): Reject an invalid mode string
38606 that starts with an octal digit. From Andreas Gruenbacher.
38608 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
38609 and dup to open_safer and dup_safer, respectively.
38610 (openat_permissive): Fix typo in comment.
38612 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
38613 "gettext.h"; either no longer needed or are guaranteed by openat.h.
38614 (_): Remove; no longer needed.
38615 (openat): Renamed from rpl_openat; no need for rpl_openat
38616 since openat.h renames openat for us.
38617 Replace most of the body with a call to openat_permissive,
38618 to avoid duplicate code.
38619 Port to (probably hypothetical) environments were mode_t is
38621 (openat_permissive): Require mode arg, so that we can check
38622 types better. Put it just after flags. Change cwd failure
38623 indicator from pointer-to-bool to pointer-to-errno-value.
38624 All callers changed.
38625 Invoke openat_save_fail and/or openat_restore_fail if
38626 cwd_errno is null, so that openat can call us.
38627 (openat_permissive, fdopendir, fstatat, unlinkat):
38628 Simplify errno handling to avoid some duplicate code,
38629 as it's OK to set errno on success.
38630 * lib/openat.h: Revamp code so that function macros depend on
38631 __OPENAT_PREFIX only, not also on AT_FDCWD.
38632 (openat_ro): Remove. Caller changed to use openat_permissive.
38633 (openat_permissive): Now a macro, if not a function.
38634 (openat_restore_fail, openat_save_fail): Now always functions,
38635 since mkdirat needs them even if __OPENAT_PREFIX is defined.
38637 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
38639 * lib/mkdirat.c: Include openat-priv.h.
38640 Remove definitions of macros defined therein.
38641 * lib/openat.c: Likewise.
38643 * lib/mkdirat.c (mkdirat): New file and function.
38644 * lib/openat.h (mkdirat): Declare.
38646 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
38648 * lib/openat.h (openat_permissive): Declare.
38649 (openat_ro): Define.
38651 * lib/openat.c (EXPECTED_ERRNO): New macro.
38652 (openat_permissive): New function -- used in remove.c rewrite.
38653 (all functions): Set errno just before returning, only if there
38654 was an actual failure.
38655 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
38657 Emulate openat-family functions using Linux's procfs, if possible.
38658 Idea and some code based on Ulrich Drepper's glibc changes.
38660 * lib/openat.c: (BUILD_PROC_NAME): New macro.
38661 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
38662 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
38663 before falling back on save_cwd and restore_cwd.
38664 (fdopendir, fstatat, unlinkat): Likewise.
38666 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
38667 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
38669 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
38670 as second argument to va_arg. Otherwise, some versions of gcc
38671 warn that `if this code is reached, the program will abort'.
38673 2006-01-09 Jim Meyering <jim@meyering.net>
38675 Sync from coreutils.
38676 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
38677 Require openat-priv.h.
38679 2006-01-09 Bruno Haible <bruno@clisp.org>
38681 * modules/strnlen (Include): Use strnlen.h.
38683 2006-01-09 Bruno Haible <bruno@clisp.org>
38685 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
38687 2006-01-09 Bruno Haible <bruno@clisp.org>
38689 * lib/sysexit_.h (EX_OK): New macro.
38690 Suggested by Martin Lambers <marlam@marlam.de>.
38692 2006-01-09 Bruno Haible <bruno@clisp.org>
38694 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
38695 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
38697 2006-01-09 Bruno Haible <bruno@clisp.org>
38699 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
38702 2006-01-09 Bruno Haible <bruno@clisp.org>
38704 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
38705 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
38706 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
38707 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
38709 2006-01-09 Bruno Haible <bruno@clisp.org>
38711 * build-aux/javacomp.sh.in: New file, moved from lib/.
38712 * modules/javacomp-script (Files): Update.
38713 (configure.ac): Add AC_CONFIG_FILES invocation.
38714 (EXTRA_DIST): Remove variable.
38716 * build-aux/javaexec.sh.in: New file, moved from lib/.
38717 * modules/javaexec (Files): Update.
38718 (configure.ac): Add AC_CONFIG_FILES invocation.
38719 (EXTRA_DIST): Remove javaexec.sh.in.
38721 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
38722 * modules/csharpcomp-script (Files): Update.
38723 (configure.ac): Add AC_CONFIG_FILES invocation.
38724 (EXTRA_DIST): Remove variable.
38726 * build-aux/csharpexec.sh.in: New file, moved from lib/.
38727 * modules/csharpexec (Files): Update.
38728 (configure.ac): Add AC_CONFIG_FILES invocation.
38729 (EXTRA_DIST): Remove csharpexec.sh.in.
38731 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
38733 Sync from coreutils.
38735 Add POSIX ACL support
38736 * lib/acl.h (copy_acl, set_acl): Add declarations.
38737 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
38738 systems other than Linux.
38739 (chmod_or_fchmod): New function: use fchmod when possible,
38740 and chmod otherwise.
38741 (file_has_acl): Add a POSIX ACL implementation, with a
38742 Linux-specific subcase.
38743 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
38744 S_ISVTX from one file to another. Fall back to fchmod/chmod when
38745 acls are unsupported.
38746 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
38747 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
38750 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
38752 Sync from coreutils.
38753 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
38755 2006-01-07 Bruno Haible <bruno@clisp.org>
38757 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
38760 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
38762 * lib/strftime.c (tzname): Don't declare if it is already #defined.
38763 Problem reported for Mingw by Mark Junker.
38765 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
38767 * README: Gnulib normally doesn't generate a tarball.
38769 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
38771 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
38772 long int, not int, for nanosecond counts, so that people who are
38773 used to POSIX struct timespec won't be surprised. Reported by Jim
38776 2005-12-28 Bruno Haible <bruno@clisp.org>
38778 * build-aux/config.rpath: Update from GNU gettext.
38780 2005-12-16 Jim Meyering <jim@meyering.net>
38782 * modules/fprintftime: New module.
38783 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
38785 2005-12-16 Jim Meyering <jim@meyering.net>
38787 * m4/fprintftime.m4: New file.
38789 2005-12-16 Jim Meyering <jim@meyering.net>
38791 * lib/fprintftime.c, lib/fprintftime.h: New files.
38793 2005-12-15 Simon Josefsson <jas@extundo.com>
38795 * modules/socklen (configure.ac): Fix M4 macro name, to align with
38798 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
38800 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
38801 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
38803 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
38805 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
38806 * lib/argp-help.c (fill_in_uparams): Check if the constructed
38807 struct uparams is valid. Fall back to the default values if it is
38810 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
38812 * modules/argp (Files): Add argp-pin.c
38813 (Depends-on): dirname
38814 (lib_SOURCES): Add argp-pin.c
38816 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
38818 * m4/argp.m4: Check if program_invocation_name and
38819 program_invocation_short_name are declared and define appropriate
38820 macros if they are not.
38822 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
38824 * lib/argp-help.c (__argp_base_name): New function
38825 (__argp_short_program_name): Rewrite using __argp_base_name
38826 * lib/argp-namefrob.h: Define program_invocation_name and
38827 program_invocation_short_name if requested
38828 (__argp_base_name): Add prototype
38829 * lib/argp-parse.c (argp_def): Use gettext wrappers
38830 (argp_default_parser): Use __argp_base_name
38831 * lib/argp-pin.c: New file. Defines program_invocation_name and
38832 program_invocation_short_name on systems that lack them.
38834 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
38836 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
38837 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
38838 porting problem reported by Georg Schwarz in
38839 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
38841 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
38843 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
38844 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
38845 porting problem reported by Georg Schwarz in
38846 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
38848 2005-12-05 Bruno Haible <bruno@clisp.org>
38850 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
38851 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
38852 Reported by Mark Junker <mjscod@gmx.de>.
38854 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
38856 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
38857 Use implementation from Albert Chin, with some
38858 comments/corrections by Stepan Kasal and myself.
38860 2005-12-02 Bruno Haible <bruno@clisp.org>
38862 * gnulib-tool (func_import): Accept GPLed build tool modules when
38864 * modules/csharpcomp-script: New file.
38865 * modules/csharpcomp: Depend on it.
38866 * modules/javacomp-script: New file.
38867 * modules/javacomp: Depend on it.
38868 Suggested by Simon Josefsson.
38870 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
38872 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
38873 statement, to work around an HP-UX 10.20 compiler bug reported by
38876 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
38878 * modules/savedir (Depends-on): Add openat.
38880 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
38882 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
38883 (uintmax_t) [defined uintmax_t]: Do not declare.
38884 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
38885 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
38886 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
38887 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
38888 sake of portability to weird hosts that C allows (though we don't
38889 know of any practical examples).
38891 * lib/savedir.h (fdsavedir): New decl.
38892 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
38893 contains most of the former guts of savedir.
38894 (savedir): Use savedirstream.
38895 Include "openat.h".
38897 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
38899 * modules/obstack (Files): Add m4/ulonglong.m4.
38900 Problem reported by Davide Angelocola.
38902 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
38904 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
38905 coreutils no longer futzes with rounding modes.
38907 2005-11-14 Jim Meyering <jim@meyering.net>
38909 * lib/mkstemp-safer.c: Include <config.h>, required for possible
38910 replacement of mkstemp.
38912 2005-11-10 Simon Josefsson <jas@extundo.com>
38914 * lib/readline.c: Remove EOL.
38916 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
38918 * modules/gethrxtime (Depends-on): Add gettime.
38920 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
38922 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
38923 or gettimeofday; no longer needed.
38925 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
38927 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
38929 (gethrxtime) [! (HAVE_NANOUPTIME
38930 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
38931 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
38932 our own approximation.
38934 2005-11-08 Eric Blake <ebb9@byu.net>
38936 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
38938 2005-11-08 Eric Blake <ebb9@byu.net>
38940 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
38942 2005-11-04 Bruno Haible <bruno@clisp.org>
38944 * gnulib-tool: Implement --update mode.
38946 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
38948 Fix porting problem reported by Theodoros V. Kalamatianos.
38949 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
38950 Don't assume that futimes failing means we must fail.
38952 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
38954 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
38955 variables to suggest the intended function of the PATH_MAX check.
38957 2005-10-30 Kean Johnston <jkj@sco.com>
38959 Trivial changes to support SCO systems.
38960 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
38962 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
38963 where __ptr is null when no I/O is pending.
38965 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
38967 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
38968 leave errno alone. Problem reported by Dmitry V. Levin.
38970 2005-10-28 Simon Josefsson <jas@extundo.com>
38972 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
38975 * tests/test-gc-md2.c, tests/test-md2.c: New files.
38977 * modules/md2, modules/md2-tests: New files.
38979 2005-10-28 Simon Josefsson <jas@extundo.com>
38981 * m4/inet_ntop.m4: More tests.
38983 * m4/gc-md2.m4, md2.m4: New file.
38985 2005-10-28 Simon Josefsson <jas@extundo.com>
38987 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
38988 "restrict" keywords, as per POSIX. Protect the function
38989 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
38990 Don't use K&R prototypes. Check the sprintf return values.
38991 Re-define EAFNOSUPPORT if not present. Indent.
38993 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
38994 suggested by Bruno Haible <bruno@clisp.org>.
38996 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
38998 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
39000 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
39003 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
39005 * lib/md2.h, lib/md2.c: New files.
39007 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
39009 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
39010 errno alone. Problem reported by Frederic Jolliton.
39012 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
39014 * modules/verify (License): Change from GPL to LGPL. This is a
39015 tiny module and there are apparently near-equivalents that are
39016 under the BSD license.
39018 2005-10-24 Simon Josefsson <jas@extundo.com>
39020 * modules/sha1: Relicense to LGPL.
39022 2005-10-24 Simon Josefsson <jas@extundo.com>
39024 * lib/md4.h: Shrink buffer size, now that we changed the type.
39026 2005-10-23 Simon Josefsson <jas@extundo.com>
39028 * gnulib-tool (func_import): Fix --tests-base.
39030 2005-10-22 Simon Josefsson <jas@extundo.com>
39032 * modules/arcfour (Depends-on): Need stdint.
39034 2005-10-22 Simon Josefsson <jas@extundo.com>
39036 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
39037 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
39039 2005-10-22 Simon Josefsson <jas@extundo.com>
39041 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
39042 suggested by Bruno Haible <bruno@clisp.org>.
39044 2005-10-22 Simon Josefsson <jas@extundo.com>
39046 * lib/crc.h: Include stddef.h, for size_t.
39048 2005-10-22 Simon Josefsson <jas@extundo.com>
39050 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
39051 arcfour_context struct (simplify test vector testing in GNU
39054 2005-10-21 Simon Josefsson <jas@extundo.com>
39056 * modules/des, modules/des-tests: New files.
39058 * modules/gc-des, modules/gc-des-tests: New files.
39060 * tests/test-des.c, tests/test-gc-des.c: New file.
39062 2005-10-21 Simon Josefsson <jas@extundo.com>
39064 * modules/arctwo, modules/arctwo-tests: New files.
39066 * tests/test-arctwo.c: New file.
39068 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
39070 * tests/test-gc-arctwo.c: New file.
39072 2005-10-21 Simon Josefsson <jas@extundo.com>
39074 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
39075 Bruno Haible <bruno@clisp.org>.
39077 * m4/gc-des.m4: New file.
39079 2005-10-21 Simon Josefsson <jas@extundo.com>
39081 * m4/arctwo.m4: New file.
39083 * m4/gc-arctwo.m4: New file.
39085 2005-10-21 Simon Josefsson <jas@extundo.com>
39087 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
39090 2005-10-21 Simon Josefsson <jas@extundo.com>
39092 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
39095 * lib/hmac-sha1.c (hmac_sha1): Likewise.
39097 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
39098 Bruno Haible <bruno@clisp.org>.
39100 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
39103 2005-10-21 Simon Josefsson <jas@extundo.com>
39105 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
39107 2005-10-21 Simon Josefsson <jas@extundo.com>
39109 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
39111 2005-10-21 Simon Josefsson <jas@extundo.com>
39113 * lib/des.h, lib/des.c: New files.
39115 * lib/gc-gnulib.c: Support DES.c
39117 2005-10-21 Simon Josefsson <jas@extundo.com>
39119 * lib/arctwo.h, lib/arctwo.c: New files.
39121 * lib/gc-gnulib.c: Support ARCTWO.
39123 2005-10-21 Simon Josefsson <jas@extundo.com>
39125 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
39126 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39128 2005-10-21 Simon Josefsson <jas@extundo.com>
39130 * gnulib-tool (func_import, func_create_testdir): Define automake
39131 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
39132 Makefile.am snippet),
39133 suggested by Bruno Haible <bruno@clisp.org>.
39135 * modules/gc (Makefile.am): Use it.
39137 2005-10-21 Bruno Haible <bruno@clisp.org>
39139 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
39142 2005-10-19 Simon Josefsson <jas@extundo.com>
39144 * tests/test-gc-rijndael.c: New file.
39146 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
39148 2005-10-19 Simon Josefsson <jas@extundo.com>
39150 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
39153 2005-10-19 Simon Josefsson <jas@extundo.com>
39155 * tests/test-gc-arcfour.c: New file.
39157 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
39159 2005-10-19 Simon Josefsson <jas@extundo.com>
39161 * modules/gc-md4, modules/gc-md4-tests: New file.
39163 * tests/test-gc-md4.c: New file.
39165 2005-10-19 Simon Josefsson <jas@extundo.com>
39167 * m4/gc-md4.m4: New file.
39169 2005-10-19 Simon Josefsson <jas@extundo.com>
39171 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
39172 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
39175 2005-10-19 Simon Josefsson <jas@extundo.com>
39177 * m4/gc-arcfour.m4: New file.
39179 * m4/gc-rijndael.m4: New file.
39181 2005-10-19 Simon Josefsson <jas@extundo.com>
39183 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
39185 2005-10-19 Simon Josefsson <jas@extundo.com>
39187 * lib/gc-gnulib.c: Support ARCFOUR.
39189 2005-10-19 Simon Josefsson <jas@extundo.com>
39191 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
39194 * lib/gc.h: Add ECB enum type.
39196 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
39198 2005-10-18 Simon Josefsson <jas@extundo.com>
39200 * tests/test-md5.c: New file.
39202 * modules/md5-tests: New file.
39204 2005-10-18 Simon Josefsson <jas@extundo.com>
39206 * tests/test-md4.c: New file.
39208 * modules/md4, modules/md4-tests: New files.
39210 2005-10-18 Simon Josefsson <jas@extundo.com>
39212 * m4/md4.m4: New file.
39214 2005-10-18 Simon Josefsson <jas@extundo.com>
39216 * lib/md4.h, lib/md4.c: New files, based on md5.?.
39218 2005-10-17 Stepan Kasal <kasal@ucw.cz>
39220 * gnulib-tool (func_create_testdir): Omit the second check whether
39221 BUILT_SOURCES in nonempty.
39223 2005-10-17 Simon Josefsson <jas@extundo.com>
39225 * tests/test-rijndael.c: New file.
39227 2005-10-17 Simon Josefsson <jas@extundo.com>
39229 * modules/sha1: Depend on stdint instead of md5.
39231 * modules/md5: Depend on stdint, remove uint32_t.
39233 2005-10-17 Simon Josefsson <jas@extundo.com>
39235 * modules/gc-sha1-tests: New file.
39237 * tests/test-gc-sha1.c: New file.
39239 2005-10-17 Simon Josefsson <jas@extundo.com>
39241 * m4/md5.m4: Remove call to uint32_t.m4.
39243 2005-10-17 Simon Josefsson <jas@extundo.com>
39245 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
39247 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
39250 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
39252 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
39254 2005-10-17 Simon Josefsson <jas@extundo.com>
39256 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
39258 2005-10-17 Simon Josefsson <jas@extundo.com>
39260 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
39262 2005-10-17 Simon Josefsson <jas@extundo.com>
39264 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
39266 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
39268 2005-10-17 Bruno Haible <bruno@clisp.org>
39270 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
39271 that it can also be used in a test.
39273 2005-10-16 Bruno Haible <bruno@clisp.org>
39275 * gnulib-tool (func_emit_tests_Makefile_am): Also define
39276 TESTS_ENVIRONMENT, so that individual tests can augment it.
39278 * gnulib-tool (func_create_testdir): Use an intermediate target for
39279 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
39280 macros, like $(ALLOCA_H), which cannot be passed through the command
39283 2005-10-15 Simon Josefsson <jas@extundo.com>
39285 * modules/rijndael-tests: New file.
39287 * modules/rijndael: New file.
39289 2005-10-15 Simon Josefsson <jas@extundo.com>
39291 * m4/rijndael.m4: New file.
39293 2005-10-15 Simon Josefsson <jas@extundo.com>
39295 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
39297 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
39299 2005-10-14 Simon Josefsson <jas@extundo.com>
39301 * tests/test-arcfour.c: New file.
39303 * modules/arcfour, modules/arcfour-tests: New files.
39305 2005-10-14 Simon Josefsson <jas@extundo.com>
39307 * m4/arcfour.m4: New file.
39309 2005-10-14 Simon Josefsson <jas@extundo.com>
39311 * lib/arcfour.h, lib/arcfour.c: New files.
39313 2005-10-14 Roland McGrath <roland@redhat.com>
39315 Import from libc. [BZ #1331]
39316 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
39318 Reported by Matej Vela <vela@debian.org>.
39320 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
39322 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
39323 include <wchar.h>; no longer needed.
39325 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
39327 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
39329 2005-10-14 Jakub Jelinek <jakub@redhat.com>
39330 and Ulrich Drepper <drepper@redhat.com>
39333 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
39334 instead of inline stream orientation test and two separate
39335 function calls. Pay no attention to USE_IN_LIBIO.
39337 2005-10-13 Simon Josefsson <jas@extundo.com>
39339 * modules/gc-hmac-md5-tests: New file.
39341 * tests/test-gc-hmac-sha1.c: New file.
39343 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
39345 * modules/gc-hmac-md5-tests: New file.
39347 * tests/test-gc-md5.c: New file.
39349 * modules/gc-md5-tests: New file.
39351 2005-10-13 Simon Josefsson <jas@extundo.com>
39353 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
39354 Move memory allocation outside of loop.
39356 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
39358 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
39359 intermediate directory is in a read-only file system. Problem
39360 reported by Eric Blake.
39362 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
39364 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
39366 2005-10-12 Simon Josefsson <jas@extundo.com>
39368 * tests/test-hmac-sha1.c: New file.
39370 * modules/hmac-sha1-tests: New file.
39372 * modules/hmac-sha1: New file.
39374 2005-10-12 Simon Josefsson <jas@extundo.com>
39376 * modules/gc-sha1: New file.
39378 2005-10-12 Simon Josefsson <jas@extundo.com>
39380 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
39382 * tests/test-gc-pbkdf2-sha1.c: New file.
39384 2005-10-12 Simon Josefsson <jas@extundo.com>
39386 * modules/gc-md5, modules/gc-hmac-md5: New files.
39388 * modules/gc (Files): Remove md5, memxor and hmac files.
39390 2005-10-12 Simon Josefsson <jas@extundo.com>
39392 * m4/gc-pbkdf2-sha1.m4: New file.
39394 * m4/gc-hmac-sha1.m4: New file.
39396 * m4/gc-sha1: New file.
39398 * m4/hmac-sha1.m4: New file.
39400 2005-10-12 Simon Josefsson <jas@extundo.com>
39402 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
39404 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
39406 2005-10-12 Simon Josefsson <jas@extundo.com>
39408 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
39409 suggested by Bruno Haible <bruno@clisp.org>.
39411 2005-10-12 Simon Josefsson <jas@extundo.com>
39413 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
39415 2005-10-12 Simon Josefsson <jas@extundo.com>
39417 * lib/gc-pbkdf2-sha1.c: New file.
39419 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
39421 2005-10-12 Simon Josefsson <jas@extundo.com>
39423 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
39425 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
39427 2005-10-12 Simon Josefsson <jas@extundo.com>
39429 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
39430 GC_USE_HMAC_MD5, respectively.
39432 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
39433 (gc_md5): Fix typo.
39435 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
39437 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
39439 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
39441 2005-10-12 Bruno Haible <bruno@clisp.org>
39443 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
39444 Reported by Stepan Kasal <kasal@ucw.cz>.
39446 2005-10-11 Simon Josefsson <jas@extundo.com>
39448 * tests/test-crc.c: New file.
39450 * modules/crc, modules/crc-tests: New files.
39452 2005-10-11 Simon Josefsson <jas@extundo.com>
39454 * m4/crc.m4: New file.
39456 2005-10-11 Simon Josefsson <jas@extundo.com>
39458 * lib/gc.h: Add gc_hash and gc_hash_buffer.
39460 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
39462 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
39464 2005-10-11 Simon Josefsson <jas@extundo.com>
39466 * lib/crc.h, lib/crc.c: New files.
39468 * lib/gc.h (gc_hash_buffer): Add doc.
39470 2005-10-11 Bruno Haible <bruno@clisp.org>
39472 * modules/c-strcasestr: New file.
39473 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
39475 2005-10-11 Bruno Haible <bruno@clisp.org>
39477 * modules/c-strcase: New file.
39478 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
39480 2005-10-11 Bruno Haible <bruno@clisp.org>
39482 * lib/strcasecmp.c: Include limits.h.
39483 (strcasecmp): Avoid integer overflow on exotic platforms.
39484 * lib/strncasecmp.c: Include limits.h.
39485 (strncasecmp): Avoid integer overflow on exotic platforms.
39486 Reported by Paul Eggert.
39488 2005-10-11 Bruno Haible <bruno@clisp.org>
39490 * lib/c-strcasestr.h: New file, from GNU gettext.
39491 * lib/c-strcasestr.c: New file, from GNU gettext.
39493 2005-10-11 Bruno Haible <bruno@clisp.org>
39495 * lib/c-strcase.h: New file, from GNU gettext.
39496 * lib/c-strcasecmp.c: New file, from GNU gettext.
39497 * lib/c-strncasecmp.c: New file, from GNU gettext.
39499 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
39501 * modules/mempcpy (License): GPL -> LGPL.
39502 * modules/strchrnul (License): Likewise.
39503 * modules/sysexits (License): Likewise.
39505 2005-10-08 Simon Josefsson <jas@extundo.com>
39507 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
39509 2005-10-07 Simon Josefsson <jas@extundo.com>
39511 * m4/memxor.m4: Remove gl_C_RESTRICT call.
39513 2005-10-06 Simon Josefsson <jas@extundo.com>
39515 * tests/test-hmac-md5.c: New file.
39517 * modules/hmac-md5-tests: New file.
39519 * modules/hmac-md5: New file.
39521 2005-10-06 Simon Josefsson <jas@extundo.com>
39523 * m4/hmac-md5.m4: New file.
39525 * m4/memxor.m4: Require gl_C_RESTRICT.
39527 2005-10-06 Simon Josefsson <jas@extundo.com>
39529 * lib/memxor.c (memxor): Avoid casts and warnings.
39531 2005-10-06 Simon Josefsson <jas@extundo.com>
39533 * lib/hmac-md5.c: New file.
39535 * lib/hmac.h: New file.
39537 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
39539 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
39540 promotes to int, not unsigned int, to catch the AIX 5.3
39543 2005-10-05 Simon Josefsson <jas@extundo.com>
39545 * modules/memxor: New file.
39547 * modules/iconv (Files): Move config.rpath to havelib, it is used
39550 * modules/havelib (Files): Add config.rpath.
39552 2005-10-05 Simon Josefsson <jas@extundo.com>
39554 * m4/memxor.m4: New file.
39556 2005-10-05 Simon Josefsson <jas@extundo.com>
39558 * lib/memxor.c (memxor): Fix compiler error.
39560 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
39561 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
39563 * lib/memxor.h, lib/memxor.c: New files.
39565 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
39566 we assume all systems have it, suggested by Jim Meyering
39567 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
39568 any systems lack sys/socket.h; mingw32 is known to lack it, but we
39569 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
39572 2005-10-05 Simon Josefsson <jas@extundo.com>
39574 * config/srclist.txt: Add glibc bug 1423 for md5.h.
39576 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
39578 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
39579 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
39580 needed, since the source code now assumes these .h files.
39582 2005-10-05 Derek Price <derek@ximbiot.com>
39584 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
39586 2005-10-05 Bruno Haible <bruno@clisp.org>
39588 * modules/stdint (License): Change to LGPL.
39590 2005-10-04 Simon Josefsson <jas@extundo.com>
39592 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
39593 D. Baushke" <mdb@gnu.org>.
39595 2005-10-04 Bruno Haible <bruno@clisp.org>
39597 * lib/verify.h (verify_true): Provide alternative definition for C++.
39599 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
39601 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
39602 (SSIZE_MAX): New macro, if not already defined.
39603 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
39606 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
39608 Sync from coreutils.
39609 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
39610 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
39611 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
39612 ULLONG_MAX doesn't work with 2.7.2.1.
39614 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
39616 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
39619 * modules/exclude (Depends-on): Depend on verify.
39620 * modules/strtoimax (Depends-on): Likewise.
39621 * modules/utimecmp (Depends-on): Likewise.
39623 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
39625 * lib/exclude.c: Include verify.h.
39626 (verify): Remove. All callers changed to use verify.h's version.
39627 * lib/strtoimax.c: Likewise.
39628 * lib/utimecmp.c: Likewis.e
39630 Sync from coreutils.
39631 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
39632 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
39633 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
39634 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
39635 bother returning ENOSYS if settimeofday or stime fails; just let
39636 them return whatever errno they want to return.
39637 * lib/utimens.c: Include unistd.h, for dup2.
39638 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
39639 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
39641 2005-10-02 Jim Meyering <jim@meyering.net>
39643 Sync from coreutils.
39644 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
39645 from glibc-2.2.5 that fails for read-only files.
39647 2005-10-02 Jim Meyering <jim@meyering.net>
39649 Sync from coreutils.
39650 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
39651 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
39652 `#if HAVE_CONFIG_H'.
39653 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
39654 Remove AT_FDCWD test.
39655 Do not consume the fd unless successful.
39656 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
39657 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
39658 block, so that we don't even try to compile it if settimeofday is
39659 available. This works around a compilation failure on OSF1 V5.1,
39660 due to stime requiring a `long int*' while tv_sec is `int'.
39662 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
39664 Sync from coreutils.
39665 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
39666 against `yes', rather than just testing for nonempty.
39668 2005-10-01 Simon Josefsson <jas@extundo.com>
39670 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
39673 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
39674 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
39675 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
39676 freeaddrinfo and gai_strerror are declared by the POSIX headers.
39677 Check if struct addrinfo is declared.
39679 2005-10-01 Simon Josefsson <jas@extundo.com>
39681 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
39682 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
39683 AI_* and EAI_* definitions. Protect function declarations.
39685 2005-10-01 Jim Meyering <jim@meyering.net>
39687 Sync from coreutils.
39689 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
39690 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
39691 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
39692 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
39693 in the inet and nsl libraries. Required on Solaris 5.7.
39695 2005-10-01 Jim Meyering <jim@meyering.net>
39697 Sync from coreutils.
39698 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
39699 in the inet and nsl libraries. Required on Solaris 5.7.
39701 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
39703 * lib/getdelim.c (getdelim): Remove unused variables.
39705 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
39707 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
39708 so that the code works even with ancient cpp. Portability problem
39709 with GCC 2.7.2.1 reported by Thomas M.Ott.
39711 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
39713 * modules/regex (Depends-on): Add strcase.
39715 * modules/gethostname (Licence): Change from GPL to LGPL, since
39716 gethostname.c is a trivial implementation of a standard library
39718 * modules/poll (License): Change from GPL to LGPL, since it's
39719 derived from LGPL code.
39721 2005-09-27 Jim Meyering <jim@meyering.net>
39723 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
39726 * lib/intprops.h (signed_type_or_expr__): Define.
39727 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
39728 for unsigned types.
39730 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
39732 * lib/verify.h (verify_expr): Remove, replacing with:
39733 (verify_true): New macro that returns true instead of void.
39734 (verify_type__): Remove.
39735 (verify): Use verify_true rather than verify_type__.
39737 2005-09-26 Bruno Haible <bruno@clisp.org>
39739 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
39741 (lib_SOURCES): Remove mbchar.c.
39742 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
39743 (Files): Add m4/mbrtowc.m4.
39744 * modules/mbiter: Likewise.
39745 * modules/mbuiter: Likewise.
39747 2005-09-26 Bruno Haible <bruno@clisp.org>
39749 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
39750 compile mbchar.c if they are not both present.
39751 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
39752 * m4/mbiter.m4 (gl_MBITER): Likewise.
39753 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
39754 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
39755 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
39757 2005-09-25 Jim Meyering <jim@meyering.net>
39759 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
39760 also uses socklen_t.
39762 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
39764 * lib/utimens.c (ENOSYS): Define if not already defined.
39765 (futimens): Support having a null PATH if the file descriptor
39768 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
39770 (__attribute): Define to empty unless GCC 3.1 or later.
39771 This works around a core dump on OpenBSD 3.4, which has GCC
39772 2.95.3, which dumps core when given __attribute__(()). It also
39773 simplifies other tests, since we really don't want to bother with
39774 worrying about which ancient version of GCC supported what.
39775 Original problem reported by Yoann Vandoorselaere, with part of
39776 the fix suggested by Derek Price.
39778 2005-09-24 Jim Meyering <jim@meyering.net>
39780 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
39781 so we can once again use a positive bitfield width of 1 -- now we
39782 don't have to explain why we were using a bitfield width of 2.
39784 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
39786 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
39787 and similarly for the other external symbols. Problem reported
39790 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
39791 bug reported by Jim Meyering.
39793 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
39794 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
39795 not needed, since socklen is a prerequisite module.
39797 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
39799 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
39800 Problem reported by Eric Blake.
39801 (getaddrinfo): Initialize se so that it's not garbage.
39802 Redo internal storage allocation so that it doesn't make unportable
39803 assumptions about alignment.
39806 * lib/utimens.c (futimens): Use futimesat if available.
39807 Prefer it to futimes since it doesn't have the futimes bug.
39809 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
39810 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
39811 Instead, declare a function that returns a pointer to an array,
39812 and use verify_type__ to declare the size of the array.
39813 Problem and germ of a solution reported by Bruno Haible.
39814 (verify_type__): Use 2, not 1, for bitfield size, to avoid
39815 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
39817 2005-09-23 Jim Meyering <jim@meyering.net>
39819 Sync from coreutils.
39820 Correct build failure (socklen_t not defined) on at least
39821 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
39822 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
39824 2005-09-23 Jim Meyering <jim@meyering.net>
39826 * modules/getaddrinfo (Depends-on): Add socklen.
39828 2005-09-23 Bruno Haible <bruno@clisp.org>
39830 * tests/test-verify.c: New file.
39832 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
39834 Sync from coreutils.
39836 * modules/argmatch (Depends-on): Add verify.
39837 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
39839 * modules/save-cwd (Depends-on): Likewise.
39841 * modules/openat (Files): Add lib/openat-die.c.
39842 (Depends-on): Remove error, exitfail.
39845 * modules/verify: New file.
39846 * MODULES.html.sh (Diagnostics <assert.h>): New section,
39847 with "verify" module.
39849 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
39851 Sync from coreutils.
39853 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
39854 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
39855 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
39856 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
39857 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
39858 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
39859 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
39860 Don't bother checking for string.h, stdlib.h, unistd.h.
39861 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
39862 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
39864 * m4/jm-macros.m4 (gl_MACROS): Likewise.
39865 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
39867 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
39868 (gl_GETDATE): Use it.
39870 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
39872 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
39874 Sync from coreutils.
39876 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
39878 * lib/argmatch.h: Include verify.h
39879 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
39880 (ARGMATCH_ASSERT): Remove; unused.
39881 * lib/canonicalize.c: Assume STDC_HEADERS.
39882 * lib/exclude.c: Include "strcase.h".
39883 * lib/regex_internal.h [!defined _LIBC]: Likewise.
39884 * lib/getusershell.c: Include stdio--.h rather than stdio.h
39886 (getusershell): Call fopen, not fopen_safer.
39887 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
39888 Do not include unistd-safer.h.
39889 (save_cwd): Don't call fd_safer; no longer needed
39890 now that we include fcntl--.h.
39892 * lib/getdate.y (relative_time): New type.
39893 (RELATIVE_TIME_0): New constant.
39894 (parser_control): Use relative_time instead of doing it ourselves.
39895 (%union): Add new relative_time rel member.
39896 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
39898 (relunit, relunit_snumber): Now of type rel.
39899 (zone, rel, relunit, get_date): Adjust to above changes.
39901 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
39902 Do not include unistd-safer.h.
39903 (getloadavg): Don't call fd_safer; no longer needed
39904 now that we include fcntl--.h.
39906 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
39907 (make_dir_parents): Treat ENOSYS like EEXIST.
39909 Improve quality of diagnostics on restore_cwd failure.
39910 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
39911 (make_dir_parents): Last arg is now int * (for errno), not bool *.
39912 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
39913 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
39914 each time through the loop. Do not diagnose restore_cwd failure;
39915 that is the caller's job (and perhaps the caller does not care).
39917 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
39918 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
39919 If the file already exists but is not a directory, don't bother
39920 to try to make its parents.
39921 Close potential file descriptor leak if we can't chdir("/") (!).
39922 Don't always return true if chdir($PWD) fails; return true only
39923 if the requested action was done successfully (except for the
39925 Don't log final directory unless we actually made it.
39926 Refactor to avoid duplicate code to fix up permissions.
39927 Don't attempt to fix up parent permissions if chdir($PWD) fails.
39929 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
39930 to make it a bit faster and (I hope) clearer.
39931 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
39932 Fix bug in formats like %2N.
39934 * lib/verify.h: New file.
39936 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
39938 Sync from coreutils.
39939 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
39941 2005-09-22 Jim Meyering <jim@meyering.net>
39943 Sync from coreutils.
39945 * m4/lstat.m4 (gl_FUNC_LSTAT):
39946 Use AC_LIBSOURCES to require lstat.c and lstat.h.
39947 Remove obsolete comment.
39948 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
39949 * m4/xstrtod.m4: Likewise.
39951 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
39953 2005-09-22 Jim Meyering <jim@meyering.net>
39955 Sync from coreutils.
39957 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
39959 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
39960 the .tm_year member, since otherwise gcc-4.0 would now warn about
39961 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
39963 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
39964 order to avoid an unsuppressible warning from gcc on 64-bit systems.
39966 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
39967 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
39968 when run in a time zone for which daylight savings time is in effect
39969 for the starting date.
39971 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
39972 stop us from restricting permissions of just-created absolute-named
39974 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
39975 to restore initial working directory.
39976 * lib/mkdir-p.c (make_dir_parents): New parameter:
39977 different_working_dir, to tell caller if/when we change the working
39978 directory and are unable to return to the initial one.
39979 * lib/mkdir-p.h (make_dir_parents): Update prototype.
39980 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
39981 `return false'. This fixes a bug introduced on 2004-07-30.
39983 * lib/openat.c (fdopendir): Be sure to close the supplied
39984 file descriptor before returning. This makes our replacement
39985 implementation a little closer to Solaris's, where fdopendir
39986 ties the file descriptor to the returned DIR* pointer.
39987 * lib/openat.c (unlinkat): New function.
39988 * lib/openat.h (unlinkat): Add prototype.
39989 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
39990 (openat_restore_fail): Rename from openat_restore_die.
39991 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
39993 Provide an alternative to exiting immediately upon save_cwd or
39994 restore_cwd failure. Now, an application can arrange e.g.,
39995 to perform a longjump in that case.
39996 * lib/openat.c: Include dirname.h.
39997 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
39998 (rpl_openat, fdopendir, fstatat): Call openat_save_die
39999 and openat_restore_die rather than calling error directly.
40000 Don't include "error.h" or "exitfail.h"; they're no longer needed.
40002 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
40003 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
40006 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
40007 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
40008 int utc, int nanoseconds);
40010 date should not have to allocate a megabyte of virtual memory to
40011 handle a format argument like +%1048575T. When implemented with
40012 strftime, it must allocate such a buffer, use strftime to fill it
40013 in, print it, then free it.
40014 With fprintftime, it simply prints everything and exits.
40015 With no need for memory allocation, that's one fewer way to fail.
40016 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
40017 optional field width, not before, so we accept %9:z, not %:9z.
40018 (my_strftime): Be sure to use L_('x') for literals.
40020 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
40021 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
40022 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
40023 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
40024 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
40025 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
40026 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
40027 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
40028 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
40029 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
40030 * lib/xgethostname.c, lib/xreadlink.c:
40031 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
40033 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
40034 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
40035 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
40036 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
40037 and don't include <sys/file.h>).
40039 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
40041 Sync from coreutils.
40043 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
40044 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
40045 [!LDAV_DONE]: Avoid unused variable warning.
40047 2005-09-21 Bruno Haible <bruno@clisp.org>
40049 * lib/unicodeio.h (unicode_to_mb): New declaration.
40051 2005-09-20 Derek Price <derek@ximbiot.com>
40053 * lib/getaddrinfo.c: Don't include <netdb.h> included from
40056 2005-09-20 Bruno Haible <bruno@clisp.org>
40058 * gnulib-tool: Remove trailing slashes from the values specified for
40059 --source-base, --m4-base, --tests-base, --aux-dir.
40060 Suggested by Simon Josefsson <jas@extundo.com>.
40062 2005-09-20 Bruno Haible <bruno@clisp.org>
40064 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
40065 func_modules_to_filelist, func_import, func_create_testdir): Make all
40066 sorting results locale-independent, so that gnulib-cache.m4 doesn't
40067 change when gnulib-tool is invoked in a different locale.
40069 2005-09-19 Simon Josefsson <jas@extundo.com>
40071 * m4/socklen.m4: Fix typo.
40073 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40075 Use a consistent style for including <config.h>.
40076 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
40077 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
40078 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
40079 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
40080 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
40081 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
40082 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
40083 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
40084 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
40085 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
40086 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
40087 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
40088 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
40089 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
40090 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
40091 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
40092 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
40093 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
40094 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
40095 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
40096 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
40097 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
40098 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
40099 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
40100 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
40101 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
40102 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
40103 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
40104 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
40105 lib/xstrtoumax.c, lib/yesno.c:
40106 Standardize inclusion of config.h.
40107 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
40108 lib/inttostr.h: Removed inclusion of config.h from header files.
40109 * lib/inttostr.c: Adjusted in-tree users.
40110 * lib/timespec.h: Remove superfluous warning to include config.h.
40111 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
40112 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
40113 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
40114 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
40115 config.h with HAVE_CONFIG_H.
40117 2005-09-19 Jim Meyering <jim@meyering.net>
40119 * modules/pathmax (License): Change to LGPL.
40121 2005-09-19 Derek Price <derek@ximbiot.com>
40123 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
40125 2005-09-19 Bruno Haible <bruno@clisp.org>
40127 * gnulib-tool (import): Provide default for --tests-base.
40129 2005-09-19 Bruno Haible <bruno@clisp.org>
40131 * doc/quote.texi: New file, extracted from gnulib.texi.
40132 * doc/ctime.texi: New file, extracted from gnulib.texi.
40133 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
40134 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
40135 * doc/gnulib.texi: Include them.
40137 2005-09-18 Bruno Haible <bruno@clisp.org>
40140 * gnulib-tool (func_readlink): New function.
40141 (func_ln_if_changed): Use it.
40143 2005-09-18 Bruno Haible <bruno@clisp.org>
40145 * gnulib-tool: Support --with-tests also with --import.
40146 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
40147 (func_import): Use variables $testsbase and $inctests. Emit a
40148 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
40149 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
40150 SUBDIRS += $testsdir.
40151 (func_create_testdir): Update.
40153 2005-09-18 Bruno Haible <bruno@clisp.org>
40155 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
40156 instead of $dry_run.
40157 (func_cp_if_changed, func_mv_if_changed): Remove functions.
40158 (func_ln_if_changed): Don't handle dry-run here.
40159 (func_import): In dry-run mode, detect more precisely which actions
40160 would be performed, and don't use "...ing" verbs.
40162 2005-09-18 Bruno Haible <bruno@clisp.org>
40164 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
40165 (func_import): Use join on two temporary files instead of three nested
40166 loops, in order to determine which files are new or old.
40168 2005-09-18 Bruno Haible <bruno@clisp.org>
40170 * gnulib-tool (func_import): Comment out code that spits out the
40171 new files with --dry-run.
40173 2005-09-18 Bruno Haible <bruno@clisp.org>
40175 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
40177 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
40179 * lib/stat-time.h: New file.
40180 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
40181 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
40182 in a different way.
40183 (timespec_cmp): New function.
40184 * lib/utimecmp.c: Include stat-time.h.
40185 (SYSCALL_RESOLUTION): Depend on whether various struct stat
40186 members exist, not on the obsolescent ST_MTIM_NSEC.
40187 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
40189 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
40191 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
40193 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
40195 * MODULES.html.sh (File system functions): Add stat-time.
40196 * modules/stat-time: New file.
40197 * modules/timespec (Files): Remove m4/st_mtim.m4; this
40198 is now done in a different way, by the stat-time module.
40199 * modules/utimecmp (Depends-on): Add stat-time.
40201 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
40203 * m4/st_mtim.m4: Remove. Superseded by...
40204 * m4/stat-time.m4: New file.
40205 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
40206 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
40208 2005-09-15 Derek Price <derek@ximbiot.com>
40210 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
40212 2005-09-15 Derek Price <derek@ximbiot.com>
40214 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
40215 * lib/regex_internal.c: Ditto, using this...
40216 (__GNUC_PREREQ): ...new macro.
40217 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
40219 (__GNUC_PREREQ): ...this new macro.
40221 * lib/strstr.h: Include string.h. Define strstr as a macro here.
40223 2005-09-15 Derek Price <derek@ximbiot.com>
40224 Paul Eggert <eggert@cs.ucla.edu>
40226 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
40227 changes, consolidating in...
40228 * lib/regex_internal.h: ...this file.
40230 2005-09-13 Jim Meyering <jim@meyering.net>
40232 * lib/canon-host.c: Filter through gnu indent and reword comments
40234 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
40236 2005-09-13 Derek Price <derek@ximbiot.com>
40238 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
40240 Reported by Jim Meyering <jim@meyering.net>.
40242 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
40244 * lib/base64.c: Typo.
40245 (base64_encode): Put b64str in initialized data section.
40247 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
40249 Merge glibc and coreutils changes into gnulib, plus a few
40251 * lib/md5.c: Use #error rather than a string.
40252 (CYCLIC): New macro, from glibc source. Use it instead of rol.
40253 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
40254 (__attribute__): Define to empty for non recent-GCC.
40255 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
40256 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
40257 Renamed from their non-__ counterparts, with new macros replacing
40258 them if not _LIBC. Add __THROW attribute.
40260 (struct md5_ctx): Align buffer if using GCC.
40261 * lib/sha1.h (struct sha1_ctx): Likewise.
40262 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
40263 The old name was backwards.
40264 (NOTSWAP): Remove; not used.
40265 (rol): New macro, moved here from md5.h.
40266 (sha1_process_block): Remove a FIXME that doesn't make sense.
40268 2005-09-12 Derek Price <derek@ximbiot.com>
40270 Return usable errors from canon-host.
40271 * lib/canon-host.h: New file.
40272 * lib/canon-host.c (canon_host): Wrap...
40273 (canon_host_r): ...this new function, which now relies exclusively on
40275 (ch_strerror): New function.
40276 (last_cherror): New global.
40277 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
40279 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
40281 (freeaddrinfo): Free ai->ai_canonname when set.
40283 2005-09-12 Derek Price <derek@ximbiot.com>
40285 Make canon-host require getaddrinfo.
40286 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
40287 AC_LIBSOURCE canon-host.h. Call...
40288 (gl_PREREQ_CANON_HOST): ...this new function, which requires
40290 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
40292 2005-09-12 Derek Price <derek@ximbiot.com>
40294 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
40296 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
40298 2005-09-12 Derek Price <derek@ximbiot.com>
40300 * lib/gai_strerror.c: Include config.h when available. Include
40301 getaddrinfo.h before other headers to test interface.
40302 Reported by Larry Jones <lawrence.jones@ugs.com>.
40304 2005-09-12 Derek Price <derek@ximbiot.com>
40305 Paul Eggert <eggert@cs.ucla.edu>
40307 * modules/glob (Files): Add glob-libc.h.
40309 2005-09-12 Derek Price <derek@ximbiot.com>
40310 Paul Eggert <eggert@cs.ucla.edu>
40312 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
40313 glob_.h, glob-libc.h.
40314 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
40316 2005-09-12 Derek Price <derek@ximbiot.com>
40317 Paul Eggert <eggert@cs.ucla.edu>
40319 * lib/glob-libc.h: Renamed from glob_.h. The new version is
40320 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
40321 protecting things that should be done only in gnulib contexts.
40322 * lib/glob_.h: New file, containing only the glob things needed for
40324 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
40325 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
40326 (glob, globfree, glob_pattern_p): Now defined simply in terms of
40327 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
40328 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
40329 and to respect the namespace rules better.
40331 2005-09-08 Simon Josefsson <jas@extundo.com>
40333 * modules/socklen: New file.
40335 2005-09-08 Simon Josefsson <jas@extundo.com>
40337 * m4/socklen.m4: New file.
40339 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
40341 * modules/utimens (Files): Add m4/utimbuf.m4, since
40342 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
40343 Reported by Sergey Poznyakoff.
40345 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
40347 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
40348 definitions, since that's the preferred style in glibc.
40349 Fix a minor spacing issue, and update copyright notice to match
40352 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
40354 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
40356 2005-09-06 Simon Josefsson <jas@extundo.com>
40358 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
40359 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
40361 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
40363 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
40366 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
40368 * config/srclist.txt: Add glibc bug 1302.
40370 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
40372 Change bitset word type from unsigned int to unsigned long int,
40373 as this has better performance on typical 64-bit hosts.
40374 Port bitset code to hosts with unusual word sizes.
40375 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
40376 (build_collating_symbol):
40377 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
40378 argument is a bitset. This is merely a style issue, but it makes
40379 it clearer that an entire array is expected.
40380 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
40381 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
40382 Port to the case where bitset_word is not the same as unsigned int.
40383 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
40384 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
40386 * lib/regexec.c (check_dst_limits_calc_pos_1,
40387 check_subexp_matching_top):
40388 (build_trtable, group_nodes_into_DFAstates):
40390 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
40391 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
40392 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
40393 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
40394 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
40395 * lib/regcomp.c (optimize_subexps, lower_subexp):
40396 Work even if bitset_word has holes in its bitwise representation.
40397 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
40398 * lib/regexec.c (check_dst_limits_calc_pos_1,
40399 check_subexp_matching_top):
40401 * lib/regex_internal.c (re_string_reconstruct):
40402 Don't assume UCHAR_MAX == 255.
40403 * lib/regex_internal.h (bitset_set_all): Likewise.
40404 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
40406 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
40407 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
40409 (BITSET_WORD_MAX): New macro.
40410 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
40411 (bitset_set_all, bitset_copy): Now inline functions, not macros.
40412 (bitset_empty, bitset_copy):
40413 Prefer sizeof (bitset) to multiplying it out ourselves.
40414 (bitset_not_merge): Remove; unused.
40415 (bitset_contain): Return bool, not unsigned int with one bit on.
40416 All callers changed.
40417 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
40418 alignment than re_node_set; do this by defining a new internal
40419 type struct dests_alloc and using it to allocate memory.
40421 2005-09-05 Bruno Haible <bruno@clisp.org>
40423 * gnulib-tool (func_import): Fix comparison in handling of symbolic
40426 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
40428 * modules/size_max (Makefile.am): Add size_max.h
40430 2005-09-04 Derek Price <derek@ximbiot.com>
40432 * gnulib-tool (func_import): Fix reversed $symbolic logic.
40434 2005-09-03 Simon Josefsson <jas@extundo.com>
40436 * gnulib-tool: Fix typo.
40438 2005-09-03 Simon Josefsson <jas@extundo.com>
40440 * config/srclist.txt: Add glibc bug 1293.
40442 2005-09-03 Derek Price <derek@ximbiot.com>
40444 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
40445 From Larry Jones <lawrence.jones@ugs.com>.
40447 2005-09-02 Simon Josefsson <jas@extundo.com>
40449 * modules/socklen: New file.
40451 2005-09-02 Simon Josefsson <jas@extundo.com>
40453 * modules/havelib: New module.
40455 * modules/gettext, modules/iconv, modules/lock, modules/readline:
40458 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
40460 Check for arithmetic overflow when calculating sizes, to prevent
40461 some buffer-overflow issues. These patches are conservative, in the
40462 sense that when I couldn't determine whether an overflow was possible,
40463 I inserted a run-time check.
40464 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
40466 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
40467 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
40468 (re_xnrealloc, re_x2nrealloc): New inline functions.
40469 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
40470 parse_bracket_exp):
40471 (build_equiv_class, build_charclass): Check for arithmetic overflow
40472 in size expression calculations.
40473 * lib/regex_internal.c (re_string_realloc_buffers):
40474 (build_wcs_upper_buffer, re_node_set_add_intersect):
40475 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
40476 (re_dfa_add_node, register_state): Likewise.
40477 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
40478 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
40479 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
40480 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
40482 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
40484 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
40485 m4/ulonglong.m4. Problem reported by Martin Lambers.
40487 2005-09-02 Bruno Haible <bruno@clisp.org>
40489 Support for lib vs. lib64 distinction on biarch platforms.
40490 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
40491 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
40492 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
40494 2005-09-02 Bruno Haible <bruno@clisp.org>
40496 * gnulib-tool (import): In the other first-use case, provide defaults
40499 2005-09-02 Bruno Haible <bruno@clisp.org>
40501 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
40502 patches not yet found in the latest gettext release.
40504 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
40506 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
40507 to avoid a collision with bits/local_lim.h in glibc.
40508 All uses changed. Problem reported by Dmitry V. Levin in
40509 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
40511 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
40512 bugs in int versus size_t comparisons.
40513 (re_string_context_at): Fix bug where the code assumed that
40516 Use bool where appropriate.
40517 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
40518 All callers changed.
40519 (calc_eclosure_iter): Likewise, for ROOT arg.
40520 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
40521 (build_charclass_op): Likewise, for NON_MATCH arg.
40522 * lib/regex_internal.c (re_string_allocate, re_string_construct):
40523 (re_string_construct_common): Likewise, for ICASE arg.
40524 * lib/regexec.c (re_search_2_stub, re_search_stub):
40525 Likewise, for RET_LEN arg.
40526 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
40527 (set_regs): Likewise, for FL_BACKTRACK arg.
40528 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
40529 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
40530 (calc_eclosure_iter, parse_bracket_exp):
40531 Use bool for internal variables that are booleans.
40532 * lib/regexec.c (re_search_internal, check_matching,
40533 proceed_next_node):
40534 (set_regs, build_sifted_states, sift_states_bkref):
40535 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
40536 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
40537 (find_collation_sequence_value):
40539 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
40540 (re_node_set_compare):
40541 Return bool, not int. All callers changed.
40542 * lib/regexec.c (check_halt_node_context, check_dst_limits):
40543 (build_trtable, check_node_accept): Likewise.
40544 * lib/regex_internal.h: Include stdbool.h.
40546 Fix bugs uncovered when converting to bool.
40547 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
40548 failure instead of charging ahead blindly.
40549 * lib/regex_internal.c (register_state): Likewise.
40550 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
40551 for freeing internal storage.
40552 (group_nodes_into_DFA_states): Use unsigned int, not int, for
40553 bitset pieces used as boolean, to avoid undefined behavior
40554 on hosts that do int overflow checking.
40556 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
40558 * config/srclist.txt: Add glibc bugs 1285-1287.
40560 2005-09-01 Jim Meyering <jim@meyering.net>
40562 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
40563 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
40564 Require gl_STAT_MACROS, too.
40566 2005-09-01 Bruno Haible <bruno@clisp.org>
40568 * gnulib-tool (import): In the first-use case, provide defaults.
40570 2005-09-01 Bruno Haible <bruno@clisp.org>
40572 * gnulib-tool (func_import): Remove the .tmp files.
40574 2005-09-01 Bruno Haible <bruno@clisp.org>
40576 * gnulib-tool (func_import): Fix handling of symbolic links.
40578 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
40580 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
40581 old glibc regex code mishandles strings longer than 2**31 bytes.
40582 This patch fixes this when the regex code is used in gnulib
40583 (i.e., outside glibc).
40585 This patch should not affect the use of the regex code inside
40586 glibc. No doubt this problem also needs to be handled for glibc
40587 as well, but the result will be an incompatible change to the
40588 glibc ABI, and the old ABI will have to be supported too. That
40589 can be the the subject for another patch.
40591 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
40592 governing whether the rest of this patch is active. By default,
40593 the macro is disabled and the patch has no effect.
40594 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
40595 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
40596 (struct re_pattern_buffer, re_search, re_search_2, re_match):
40597 (re_match_2, re_set_registers): Use the new types.
40598 * lib/regex_internal.h (Idx, re_hashval_t): New types.
40599 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
40601 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
40602 (re_string_context_at, bin_tree_t, re_dfastate_t):
40603 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
40604 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
40605 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
40606 (re_string_char_size_at, re_string_wchar_at):
40607 (re_string_elem_size_at):
40608 Use the new types and macros to port to 64-bit hosts.
40609 Use unsigned types for internal values, so that the code
40610 mostly works even for arrays larger than SSIZE_MAX.
40611 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
40612 (search_duplicated_node, calc_eclosure_iter, fetch_number):
40613 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
40614 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
40615 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
40616 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
40617 (calc_inveclosure, parse_dup_op, build_range_exp):
40618 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
40619 (fetch_number, create_token_tree, mark_opt_subexp):
40621 * lib/regex_internal.c (re_string_construct_common,
40622 create_ci_newstate):
40623 (create_cd_newstate, re_string_allocate, re_string_construct):
40624 (re_string_realloc_buffers, build_wcs_upper_buffer):
40625 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
40626 (re_string_reconstruct, re_string_peek_byte_case):
40627 (re_string_fetch_byte_case, re_string_context_at):
40628 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
40629 (re_node_set_init_copy, re_node_set_add_intersect):
40630 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
40631 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
40632 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
40633 (re_acquire_state, re_acquire_state_context, register_state):
40635 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
40636 search_cur_bkref_entry):
40637 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
40638 (re_search_internal, re_search_2_stub, re_search_stub)
40639 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
40640 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
40641 (update_cur_sifted_state, check_dst_limits):
40642 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
40643 (check_subexp_limits, sift_states_bkref, merge_state_array):
40644 (check_subexp_matching_top, get_subexp, get_subexp_sub):
40645 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
40646 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
40647 (expand_bkref_cache, check_node_accept_bytes):
40648 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
40649 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
40650 (acquire_init_state_context, check_halt_node_context):
40651 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
40652 (sift_states_backward, clean_state_log_if_needed):
40653 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
40654 (find_recover_state, transit_state_sb, transit_state_mb):
40655 (transit_state_bkref, build_trtable, match_ctx_clean):
40657 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
40658 to work around an assumption that REG_MISSING is negative.
40660 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
40661 (seek_collating_symbol_entry) [defined _LIBC]:
40662 (lookup_collation_sequence_value) [defined _LIBC]:
40663 (build_range_exp, build_collating_symbol) [defined _LIBC]:
40664 Use prototypes rather than old-style function definitions.
40665 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
40666 (transit_state_sb) [0]:
40667 (find_collation_sequence_value) [defined _LIBC]: Likewise.
40669 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
40672 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
40673 (optimize_subexps, lower_subexp):
40674 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
40675 since the signed shift might overflow. Use 1u<<31 instead.
40676 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
40678 * lib/regexec.c (check_dst_limits_calc_pos_1,
40679 check_subexp_matching_top): Likewise.
40681 * lib/regcomp.c (optimize_subexps, lower_subexp):
40682 Use CHAR_BIT rather than 8, for clarity.
40683 * lib/regexec.c (check_dst_limits_calc_pos_1):
40684 (check_subexp_matching_top): Likewise.
40685 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
40686 have to worry about portability issues when shifting it left.
40687 Remove no-longer-needed test for table_size > 0.
40688 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
40689 in a word, as the resulting behavior is undefined.
40690 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
40691 in one case, a <= should have been an <, and in another case the
40692 whole test was missing.
40693 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
40694 the standard name CHAR_BIT.
40695 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
40696 this is not true on one's complement and signed-magnitude hosts.
40698 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
40700 (struct re_dfa_t): Remove unused member states_alloc.
40701 * lib/regcomp.c (init_dfa): Don't initialize unused members.
40703 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
40705 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
40706 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
40707 and large-file glibc and in 32-bit large-file Solaris.
40709 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
40711 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
40712 lengths fit in regoff_t; this isn't true if regoff_t is the same
40714 * lib/regex.c (re_search_internal): 5th arg is LAST_START
40715 (= START + RANGE) instead of RANGE. This avoids overflow
40716 problems when regoff_t is the same width as size_t.
40717 All callers changed.
40718 (re_search_2_stub): Check for overflow when adding the
40719 sizes of the two strings.
40720 (re_search_stub): Check for overflow when adding START
40721 to RANGE; if it occurs, substitute the extreme value.
40723 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
40725 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
40727 2005-08-31 Jim Meyering <jim@meyering.net>
40729 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
40730 a pointer-to-const.
40731 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
40732 (register_state): Likewise.
40733 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
40734 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
40735 (group_nodes_into_DFAstates): Likewise.
40737 2005-08-31 Jim Meyering <jim@meyering.net>
40739 * check-module: Add a FIXME comment.
40741 2005-08-31 Eric Blake <ebb9@byu.net>
40743 * modules/unistd-safer (Files): Add unistd--.h.
40744 * modules/stdio-safer (Files): Add stdio--.h.
40746 2005-08-31 Derek Price <derek@ximbiot.com>
40748 * lib/getdelim.c (getdelim): Return EOF on EOF.
40749 Reported by Larry Jones <lawrence.jones@ugs.com>.
40751 2005-08-31 Bruno Haible <bruno@clisp.org>
40753 Avoid unnecessary diffs in the generated lib/Makefile.am.
40754 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
40755 the generated files.
40756 (func_import): Don't set cmd.
40758 2005-08-31 Bruno Haible <bruno@clisp.org>
40760 * lib/strstr.c: Include <stddef.h>, for NULL.
40761 * lib/strcasestr.c: Likewise.
40762 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
40764 2005-08-31 Bruno Haible <bruno@clisp.org>
40766 * gnulib-tool: New option --macro-prefix.
40767 (func_import): Use macro_prefix.
40768 (import): Handle option --macro-prefix.
40770 2005-08-31 Bruno Haible <bruno@clisp.org>
40772 * gnulib-tool (import): Rename most ac_* variables to cached_*.
40773 Also use new variables cached_lgpl, cached_libtool.
40775 2005-08-31 Bruno Haible <bruno@clisp.org>
40777 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
40778 always instantiating them.
40780 2005-08-31 Bruno Haible <bruno@clisp.org>
40782 * gnulib-tool (func_import): Read the previous cached settings
40783 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
40784 earlier added by gnulib but are now dropped. Warn when a gnulib file
40785 overwrites a non-gnulib file.
40787 2005-08-31 Bruno Haible <bruno@clisp.org>
40789 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
40790 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
40791 projects that don't keep autogenerated files in CVS. Put into
40792 actioncmd only the specified modules, not the transitive closure.
40794 2005-08-31 Bruno Haible <bruno@clisp.org>
40796 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
40797 Create directories that shall be filled.
40798 (import): Don't look for gl_* macros in configure.ac. Recurse across
40799 all directories containing a gnulib-cache.m4 files, if meaningful.
40801 2005-08-31 Bruno Haible <bruno@clisp.org>
40803 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
40804 (import): Set seen_libtool when we see gl_LIBTOOL.
40806 2005-08-31 Bruno Haible <bruno@clisp.org>
40808 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
40809 declaration macro definitions from generated gnulib.m4.
40811 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
40813 * lib/iconvme.h: Add prototype for iconv_alloc.
40815 2005-08-29 Simon Josefsson <jas@extundo.com>
40817 * lib/iconvme.c: Fix errno.
40819 2005-08-29 Bruno Haible <bruno@clisp.org>
40821 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
40822 that it works when the directory contains spaces.
40824 2005-08-29 Bruno Haible <bruno@clisp.org>
40826 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
40828 2005-08-29 Bruno Haible <bruno@clisp.org>
40830 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
40833 2005-08-29 Bruno Haible <bruno@clisp.org>
40834 and Stepan Kasal <kasal@ucw.cz>
40836 * check-module: If more parameters are given, check each of them
40837 separately; add more exceptions, as noted by Jim Meyering.
40838 (check_module): New procedure.
40839 (%exempt_header): Now contains all exceptions.
40841 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
40843 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
40845 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
40847 * lib/iconvme.c: Split iconv_string into iconv_alloc.
40849 2005-08-28 Bruno Haible <bruno@clisp.org>
40851 * m4/gnulib-tool.m4: New file.
40853 2005-08-27 Jim Meyering <jim@meyering.net>
40855 * modules/unistd-safer (Files): Add pipe-safer.c.
40856 * modules/fcntl-safer (Files): Add creat-safer.c.
40858 2005-08-27 Jim Meyering <jim@meyering.net>
40860 * m4/stdlib-safer.m4: New file. From coreutils.
40861 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
40862 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
40863 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
40864 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
40865 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
40867 2005-08-27 Jim Meyering <jim@meyering.net>
40869 * lib/fopen-safer.c: Merge minor changes from coreutils.
40870 * lib/dup-safer.c: Likewise.
40871 * lib/fd-safer.c: Likewise.
40873 Merge from coreutils.
40874 * lib/stdio--.h: New file.
40875 * lib/stdlib--.h: New file.
40876 * lib/mkstemp-safer.c: New file.
40878 GNU tar needs these.
40879 * lib/pipe-safer.c: New file.
40880 * lib/creat-safer.c: New file.
40881 * lib/fcntl--.h (creat): Define to creat_safer.
40882 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
40883 * lib/unistd--.h (pipe): Define to pipe_safer.
40884 * lib/unistd-safer.h: Declare pipe_safer.
40886 2005-08-26 Simon Josefsson <jas@extundo.com>
40888 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
40889 Haible <bruno@clisp.org>.
40891 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
40893 * lib/regex_internal.h: Remove all references to
40894 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
40896 (bitset_not, bitset_merge, bitset_not_merge):
40897 (bitset_mask, re_string_allocate, re_string_construct):
40898 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
40899 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
40900 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
40901 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
40902 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
40903 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
40904 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
40905 (re_acquire_state_context):
40906 Remove unnecessary forward decls.
40907 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
40908 Put __attribute at function definition,
40909 now that the function decl has been removed.
40910 * lib/regex_internal.c (re_string_peek_byte_case):
40911 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
40914 2005-08-25 Stepan Kasal <kasal@ucw.cz>
40916 * m4/regex.m4: Add AC_PREREQ(2.50).
40917 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
40919 2005-08-25 Simon Josefsson <jas@extundo.com>
40921 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
40924 2005-08-25 Simon Josefsson <jas@extundo.com>
40926 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
40927 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
40928 GLIBC specific code.
40930 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
40932 Make regex safe for g++. This fixes one real bug (an "err"
40933 that should have been "*err"). g++ problem reported by
40935 * lib/regex_internal.h (re_calloc): New macro, consistent with
40936 re_malloc etc. All callers of calloc changed to use re_calloc.
40937 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
40938 not int. All callers changed.
40939 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
40940 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
40941 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
40942 (find_recover_state): Change "err" to "*err"; this fixes what
40943 appears to be a real bug.
40944 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
40947 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
40949 * modules/regex (Depends-on): Add malloc, since the code
40950 assumes that !malloc(0) means failure.
40952 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
40954 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
40956 alloca modernization/simplification for regex.
40957 * lib/regex.c: Remove portability cruft for alloca. This no longer
40958 needs to be at the start of the file, and can be moved into
40959 regex_internal.h and simplified.
40960 * lib/regex_internal.h: Include <alloca.h>.
40961 (__libc_use_alloca) [!defined _LIBC]: New macro.
40962 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
40963 now works outside glibc.
40965 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
40967 * config/srclist.txt: Add glibc bugs 1241, 1245.
40969 2005-08-25 Jim Meyering <jim@meyering.net>
40971 * lib/open-safer.c: Include <config.h>.
40972 Otherwise, we'd lose LARGEFILE support in any file using
40975 2005-08-25 Bruno Haible <bruno@clisp.org>
40977 * m4/minmax.m4: Require autoconf 2.52.
40978 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
40979 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
40980 alternatives of translit over the alphabet.
40981 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
40983 2005-08-24 Simon Josefsson <jas@extundo.com>
40985 * tests/test-getpass.c: New file.
40987 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
40989 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
40990 for GNU regex features.
40992 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
40994 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
40995 * lib/regex.h (regerror): Likewise.
40997 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
40998 requires this. (The code never needed it.)
41000 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
41001 All uses of recently-renamed identifiers changed to use the new,
41002 POSIX-compliant names. The code will build and run just fine
41003 without these changes, but it's better to eat our own dog food
41004 and use the standard-conforming names.
41006 * lib/regex.h: Fix a multitude of POSIX name space violations.
41007 These changes have an effect only for programs that define
41008 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
41009 do not change anything for programs compiled in the normal way.
41010 Also, there is no effect on the ABI.
41012 (_REGEX_SOURCE): New macro.
41013 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
41014 defined and _GNU_SOURCE is not; this fixes a name space violation.
41016 Rename the following macros to obey POSIX requirements.
41017 The old names are still visible as macros if _REGEX_SOURCE is defined.
41018 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
41019 RE_BACKSLASH_ESCAPE_IN_LISTS.
41020 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
41021 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
41022 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
41023 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
41024 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
41025 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
41026 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
41027 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
41028 (REG_INTERVALS): renamed from RE_INTERVALS.
41029 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
41030 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
41031 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
41032 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
41033 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
41034 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
41035 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
41036 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
41037 RE_UNMATCHED_RIGHT_PAREN_ORD.
41038 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
41039 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
41040 (REG_DEBUG): renamed from RE_DEBUG.
41041 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
41042 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
41043 unusual, since we can't clash with the POSIX REG_ICASE.
41044 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
41045 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
41046 (REG_NO_SUB): renamed from RE_NO_SUB.
41047 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
41048 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
41049 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
41050 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
41051 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
41052 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
41053 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
41054 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
41055 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
41056 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
41057 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
41058 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
41059 RE_SYNTAX_POSIX_MINIMAL_BASIC.
41060 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
41061 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
41062 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
41063 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
41064 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
41065 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
41066 (REG_FIXED): Renamed from REGS_FIXED.
41067 (REG_NREGS): Renamed from RE_NREGS.
41069 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
41070 of other REG_* macros, since POSIX says the user is allowed to
41071 #undef these macros selectively.
41073 (reg_errcode_t): Update comment stating what other tables need
41076 Rename the following enum values to obey POSIX requirements.
41077 The old names are still visible as macros.
41078 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
41079 is not defined, since GNU is supposed to be a superset of POSIX as
41080 much as possible, and since we want reg_errcode_t to be a signed
41081 type for implementation consistency.
41082 (_REG_NOERROR): Renamed from REG_NOERROR.
41083 (_REG_NOMATCH): Renamed from REG_NOMATCH.
41084 (_REG_BADPAT): Renamed from REG_BADPAT.
41085 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
41086 (_REG_ECTYPE): Renamed from REG_ECTYPE.
41087 (_REG_EESCAPE): Renamed from REG_EESCAPE.
41088 (_REG_ESUBREG): Renamed from REG_ESUBREG.
41089 (_REG_EBRACK): Renamed from REG_EBRACK.
41090 (_REG_EPAREN): Renamed from REG_EPAREN.
41091 (_REG_EBRACE): Renamed from REG_EBRACE.
41092 (_REG_BADBR): Renamed from REG_BADBR.
41093 (_REG_ERANGE): Renamed from REG_ERANGE.
41094 (_REG_ESPACE): Renamed from REG_ESPACE.
41095 (_REG_BADRPT): Renamed from REG_BADRPT.
41096 (_REG_EEND): Renamed from REG_EEND.
41097 (_REG_ESIZE): Renamed from REG_ESIZE.
41098 (_REG_ERPAREN): Renamed from REG_ERPAREN.
41099 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
41100 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
41101 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
41102 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
41104 (_REG_RE_NAME, _REG_RM_NAME): New macros.
41105 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
41106 changed. But support the old name if the new one is not defined
41107 and if _REGEX_SOURCE.
41109 Change the following member names in struct re_pattern_buffer.
41110 The old names are still supported if !_REGEX_SOURCE.
41111 The new names are always supported, regardless of _REGEX_SOURCE.
41112 (re_buffer): Renamed from buffer.
41113 (re_allocated): Renamed from allocated.
41114 (re_used): Renamed from used.
41115 (re_syntax): Renamed from syntax.
41116 (re_fastmap): Renamed from fastmap.
41117 (re_translate): Renamed from translate.
41118 (re_can_be_null): Renamed from can_be_null.
41119 (re_regs_allocated): Renamed from regs_allocated.
41120 (re_fastmap_accurate): Renamed from fastmap_accurate.
41121 (re_no_sub): Renamed from no_sub.
41122 (re_not_bol): Renamed from not_bol.
41123 (re_not_eol): Renamed from not_eol.
41124 (re_newline_anchor): Renamed from newline_anchor.
41126 Change the following member names in struct re_registers.
41127 The old names are still supported if !_REGEX_SOURCE.
41128 The new names are always supported, regardless of _REGEX_SOURCE.
41129 (rm_num_regs): Renamed from num_regs.
41130 (rm_start): Renamed from start.
41131 (rm_end): Renamed from end.
41133 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
41134 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
41135 Prepend __ to parameter names.
41137 Undo yesterday's changes.
41139 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
41141 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
41142 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
41145 2005-08-24 Jim Meyering <jim@meyering.net>
41147 Sync from coreutils.
41148 * m4/fcntl-safer.m4: New file.
41150 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
41151 and object files for this module.
41153 2005-08-24 Jim Meyering <jim@meyering.net>
41155 Sync from coreutils.
41156 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
41158 2005-08-24 Jim Meyering <jim@meyering.net>
41160 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
41161 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
41163 2005-08-24 Jim Meyering <jim@meyering.net>
41165 * modules/fcntl-safer: New module.
41166 * modules/fts (Depends-on): Add fcntl-safer.
41167 * MODULES.html.sh (File descriptor based Input/Output):
41170 2005-08-24 Bruno Haible <bruno@clisp.org>
41172 Support for unit test modules.
41173 * modules/README: Mention tests modules.
41174 * modules/TEMPLATE-TESTS: New file.
41175 * gnulib-tool: New options --extract-tests-module, --with-tests and
41176 --tests-base (unused for the moment).
41177 (testsbase, inctests): New variables.
41178 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
41179 (func_verify_module): Exclude TEMPLATE-TESTS.
41180 (func_verify_nontests_module, func_verify_tests_module): New functions.
41181 (func_get_dependencies): Add implicit dependency for tests modules.
41182 (func_get_tests_module): New function.
41183 (func_modules_transitive_closure): When --with-tests was specified,
41184 include the unit tests as well, unless explicitly avoided.
41185 (func_emit_lib_Makefile_am): Ignore the tests modules here.
41186 (func_emit_tests_Makefile_am): New function.
41187 (func_create_testdir): When --with-tests was specified, emit a
41189 * MODULES.html.sh (Future developments): Update.
41191 2005-08-24 Bruno Haible <bruno@clisp.org>
41193 * modules/tls-tests: New file.
41194 * tests/test-tls.c: New file, from GNU gettext.
41196 2005-08-24 Bruno Haible <bruno@clisp.org>
41198 * modules/lock-tests: New file.
41199 * tests/test-lock.c: New file, from GNU gettext.
41201 2005-08-24 Bruno Haible <bruno@clisp.org>
41203 * lib/lock.h: Add multiple inclusion guard.
41204 * lib/tls.h: Add multiple inclusion guard.
41206 2005-08-24 Bruno Haible <bruno@clisp.org>
41208 * gnulib-tool: Add support for the --aux-dir option to
41209 --create-testdir, --create-megatestdir, --test, --megatest.
41210 (func_create_testdir, func_create_megatestdir): Optionally emit a
41211 AC_CONFIG_AUX_DIR directive.
41212 (create-testdir, create-megatestdir, test, megatest): Provide a
41213 default value for $auxdir.
41215 2005-08-24 Bruno Haible <bruno@clisp.org>
41217 * gnulib-tool (import): Use compound statement instead of subshell
41220 2005-08-24 Bruno Haible <bruno@clisp.org>
41222 * gnulib-tool (import): Change --aux-dir default to "build-aux".
41224 2005-08-24 Bruno Haible <bruno@clisp.org>
41226 * gnulib-tool (func_version): Update.
41228 2005-08-24 Bruno Haible <bruno@clisp.org>
41230 * gnulib-tool (func_import, func_create_testdir,
41231 func_create_megatestdir): Quote all autoconf macro arguments.
41233 2005-08-24 Bruno Haible <bruno@clisp.org>
41235 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
41236 option --force, because --force causes the aclocal.m4 of each
41237 subdirectory to be newer than the corresponding config.h.in.
41239 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
41241 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
41242 All contents moved to gl_REGEX.
41243 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
41244 assume that it does.
41246 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
41248 * lib/regex.h (REG_NOSYS)
41249 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
41250 Define, since POSIX requires it as of 2001.
41252 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
41253 New private symbol, used to keep the enum signed in all cases.
41254 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
41256 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
41258 * lib/regex_internal.c (re_string_skip_chars, register_state):
41260 Remove forward decls; no longer needed now that we use prototypes.
41261 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
41262 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
41263 (clean_state_log_if_needed): Likewise.
41265 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
41267 * config/srclist.txt: Add glibc bugs 1231-1233.
41269 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
41271 Fix problems reported by Sam Steingold in
41272 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
41273 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
41274 assumed that reg_errcode_t is a signed type, which is not
41275 necessarily true if _XOPEN_SOURCE is not defined.
41276 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
41277 since some compilers warn about it otherwise.
41279 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
41281 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
41282 (init_word_char, create_initial_state, duplicate_node_closure):
41283 (fetch_token, peek_token_bracket, build_range_exp):
41284 (build_collating_symbol): Remove forward decls; no longer needed
41285 now that we use prototypes.
41288 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
41289 (re_compile_fastmap_iter, regcomp, regerror, regfree):
41290 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
41291 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
41292 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
41293 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
41294 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
41295 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
41296 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
41297 (build_range_exp, build_collating_symbol, parse_bracket_exp):
41298 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
41299 (build_charclass, build_charclass_op, fetch_number, create_tree):
41300 (create_token_tree, mark_opt_subexp, duplicate_tree):
41301 Use prototypes rather than old-style definitions.
41303 * lib/regex_internal.c:
41304 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
41305 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
41306 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
41307 (re_string_reconstruct, re_string_peek_byte_case):
41308 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
41309 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
41310 (re_node_set_init_copy, re_node_set_add_intersect):
41311 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
41312 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
41313 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
41314 (re_acquire_state, re_acquire_state_context, register_state):
41315 (create_ci_newstate, create_cd_newstate, free_state):
41317 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
41319 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
41320 (re_search_internal, prune_impossible_nodes):
41321 (acquire_init_state_context, check_matching, static):
41322 (check_halt_node_context, check_halt_state_context, proceed_next_node):
41323 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
41324 (update_regs, sift_states_backward, build_sifted_states):
41325 (clean_state_log_if_needed, merge_state_array):
41326 (update_cur_sifted_state, add_epsilon_src_nodes):
41327 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
41328 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
41329 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
41330 (find_recover_state, check_subexp_matching_top, transit_state_mb):
41331 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
41332 (check_arrival, check_arrival_add_next_nodes):
41333 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
41334 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
41335 (check_node_accept_bytes, check_node_accept, extend_buffers):
41336 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
41337 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
41341 * lib/regex_internal.h:
41342 (re_string_allocate, re_string_construct, re_string_reconstruct):
41343 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
41344 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
41345 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
41346 (re_string_context_at, re_string_peek_byte_case):
41347 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
41348 is defined, since we now use prototypes always.
41350 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
41351 C89 or better. All uses removed.
41353 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
41355 * config/srclist.txt: Add glibc bugs 1220-1227.
41357 2005-08-20 Jim Meyering <jim@meyering.net>
41359 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
41360 of unused local, dfa.
41362 2005-08-20 Bruno Haible <bruno@clisp.org>
41364 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
41366 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
41368 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
41369 (re_node_set_insert_last, re_dfa_add_node):
41370 Rename local variables to avoid GCC shadowing warnings.
41372 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
41374 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
41375 [defined lint]: Suppress bogus uninitialized-variable warnings.
41377 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
41378 and let the caller return REG_ESPACE if out of space. This
41379 removes an uninitialied-variable warning with GCC 4.0.1, and also
41380 avoids taking the address of a local variable. All callers
41383 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
41385 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
41386 $LIBCSRC/posix/regexec.c.
41387 Add glibc bug 1217 for regcomp.c.
41389 2005-08-19 Jim Meyering <jim@meyering.net>
41391 * lib/regexec.c (proceed_next_node): Redo local variables to
41392 avoid GCC shadowing warnings.
41394 2005-08-18 Bruno Haible <bruno@clisp.org>
41396 * lib/strstr.c (strstr): Fix return value in multibyte case.
41397 * lib/strcasestr.c (strcasestr): Likewise.
41399 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
41401 * lib/regex.h: Remove useless space-before-tab. From coreutils.
41403 2005-08-17 Jim Meyering <jim@meyering.net>
41405 Make the %s format (seconds since the epoch) work for a negative
41406 number and when used with a zero-padded field width, e.g. %015s.
41408 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
41409 label so that it precedes the code to set `digits'. Otherwise,
41410 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
41411 print `00-22'. Now, it prints `-0022', as it should.
41413 2005-08-17 Bruno Haible <bruno@clisp.org>
41415 * modules/strstr (Files): Add m4/mbrtowc.m4.
41416 (Depends-on): Add mbuiter.
41418 2005-08-17 Bruno Haible <bruno@clisp.org>
41420 * modules/strcasestr: New file.
41421 * MODULES.html.sh (String handling, based on ANSI C 89): Add
41424 2005-08-17 Bruno Haible <bruno@clisp.org>
41426 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
41428 2005-08-17 Bruno Haible <bruno@clisp.org>
41430 * modules/mbuiter: New file.
41431 * MODULES.html.sh (Extended multibyte and wide character utilities):
41434 2005-08-17 Bruno Haible <bruno@clisp.org>
41436 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
41437 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
41439 2005-08-17 Bruno Haible <bruno@clisp.org>
41441 * m4/strcasestr.m4: New file.
41443 2005-08-17 Bruno Haible <bruno@clisp.org>
41445 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
41446 * lib/strstr.c: Completely rewritten, with multibyte locale support.
41448 2005-08-17 Bruno Haible <bruno@clisp.org>
41450 * lib/strcasestr.h: New file.
41451 * lib/strcasestr.c: New file.
41453 2005-08-17 Bruno Haible <bruno@clisp.org>
41455 * lib/strcasecmp.c: Use mbuiter.h.
41457 2005-08-17 Bruno Haible <bruno@clisp.org>
41459 * lib/mbuiter.h: New file.
41461 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
41463 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
41464 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
41465 and gl_GETOPT are both invoked via different paths (as happens
41466 with GNU tar CVS because it uses both argp and getopt), the former
41469 2005-08-16 Bruno Haible <bruno@clisp.org>
41471 * modules/tls: New file.
41472 * MODULES.html.sh (Multithreading): Add tls.
41474 2005-08-16 Bruno Haible <bruno@clisp.org>
41476 * modules/strnlen1: New file.
41477 * MODULES.html.sh (String handling): Add strnlen1.
41479 2005-08-16 Bruno Haible <bruno@clisp.org>
41481 * modules/strcase (Files): Add m4/mbrtowc.m4.
41482 (Depends-on): Add strnlen1, mbchar.
41484 2005-08-16 Bruno Haible <bruno@clisp.org>
41486 * modules/mbiter: New file.
41487 * MODULES.html.sh (Extended multibyte and wide character utilities):
41490 2005-08-16 Bruno Haible <bruno@clisp.org>
41492 * modules/mbfile: New file.
41493 * MODULES.html.sh (Extended multibyte and wide character utilities):
41496 2005-08-16 Bruno Haible <bruno@clisp.org>
41498 * modules/mbchar: New file.
41499 * MODULES.html.sh (Extended multibyte and wide character utilities):
41502 2005-08-16 Bruno Haible <bruno@clisp.org>
41504 * m4/tls.m4: New file, from GNU gettext.
41506 2005-08-16 Bruno Haible <bruno@clisp.org>
41508 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
41510 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
41512 2005-08-16 Bruno Haible <bruno@clisp.org>
41514 * m4/mbiter.m4: New file.
41516 2005-08-16 Bruno Haible <bruno@clisp.org>
41518 * m4/mbfile.m4: New file.
41520 2005-08-16 Bruno Haible <bruno@clisp.org>
41522 * m4/mbchar.m4: New file.
41524 2005-08-16 Bruno Haible <bruno@clisp.org>
41526 * lib/tls.h: New file, from GNU gettext.
41527 * lib/tls.c: New file, from GNU gettext.
41529 2005-08-16 Bruno Haible <bruno@clisp.org>
41531 * lib/strnlen1.h: New file.
41532 * lib/strnlen1.c: New file.
41534 2005-08-16 Bruno Haible <bruno@clisp.org>
41536 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
41537 (mbi_init): Update.
41538 (mbi_avail, mbi_advance): Let the iteration end before the terminating
41539 NUL byte, not after it.
41541 2005-08-16 Bruno Haible <bruno@clisp.org>
41543 * lib/strcase.h (strcasecmp): Add note in comments.
41544 * lib/strncasecmp.c: Use code from strcasecmp.c.
41545 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
41546 (strcasecmp): Work correctly in multibyte locales.
41548 2005-08-16 Bruno Haible <bruno@clisp.org>
41550 * lib/mbiter.h: New file.
41552 2005-08-16 Bruno Haible <bruno@clisp.org>
41554 * lib/mbfile.h: New file.
41556 2005-08-16 Bruno Haible <bruno@clisp.org>
41558 * lib/mbchar.h: New file.
41559 * lib/mbchar.c: New file.
41561 2005-08-16 Bruno Haible <bruno@clisp.org>
41563 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
41564 the valid ones. Makes the comparison operations transitive:
41565 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
41566 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
41568 2005-08-15 Simon Josefsson <jas@extundo.com>
41570 * modules/ssize_t (License): Change to 'unlimited'.
41572 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
41574 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
41576 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
41577 Add comments for each pending glibc patch.
41579 2005-08-15 Bruno Haible <bruno@clisp.org>
41581 * lib/regex.h (__restrict_arr): Don't define to __restrict if
41582 __cplusplus is defined.
41584 2005-08-14 Jim Meyering <jim@meyering.net>
41586 Sync from coreutils.
41588 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
41589 Use the hash-table-based cycle-detection code not just when
41590 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
41591 Reported by James Youngman in
41592 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
41593 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
41594 FTS_TIGHT_CYCLE_CHECK.
41595 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
41596 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
41598 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
41599 * lib/fts.c (fd_safer): Remove decl.
41600 Include fcntl--.h rather than unistd-safer.h
41601 (fts_safe_changedir): Don't call fd_safer; no longer needed
41602 now that we include fcntl--.h.
41604 2005-08-12 Simon Josefsson <jas@extundo.com>
41606 * modules/getndelim2: Use ssize_t module.
41607 * modules/getnline: Likewise.
41608 * modules/safe-read: Likewise.
41609 * modules/xreadlink: Likewise.
41611 * modules/ssize_t: New file.
41613 2005-08-12 Simon Josefsson <jas@extundo.com>
41615 * m4/readline.m4: Look for termcap, curses or ncurses if required.
41617 2005-08-12 Simon Josefsson <jas@extundo.com>
41619 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41622 2005-08-12 Simon Josefsson <jas@extundo.com>
41624 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
41625 readline, getdelim and check_version.
41626 (Support for systems lacking ISO C 99: Sizes of integer types):
41629 2005-08-12 Bruno Haible <bruno@clisp.org>
41631 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
41633 2005-08-11 Simon Josefsson <jas@extundo.com>
41635 * modules/readline: New file.
41637 * modules/strnlen (Files): Add strnlen.h.
41639 2005-08-11 Simon Josefsson <jas@extundo.com>
41641 * m4/readline.m4: New file.
41643 2005-08-11 Simon Josefsson <jas@extundo.com>
41645 * lib/readline.h, readline.c: New file.
41647 2005-08-11 Simon Josefsson <jas@extundo.com>
41649 * doc/gnulib.texi (Initial import, Finishing touches): Mention
41652 2005-08-11 Bruno Haible <bruno@clisp.org>
41654 * lib/strnlen.h (strnlen): Change parameter name to match comment.
41656 2005-08-10 Stepan Kasal <kasal@ucw.cz>
41658 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
41660 2005-08-10 Simon Josefsson <jas@extundo.com>
41662 * tests/test-iconvme.c: New file.
41664 2005-08-10 Simon Josefsson <jas@extundo.com>
41666 * m4/strnlen.m4: New file.
41668 * m4/strndup.m4: Don't check for strnlen declaration, done in
41671 2005-08-10 Simon Josefsson <jas@extundo.com>
41673 * lib/strndup.c: Use strnlen.h.
41675 * lib/strnlen.h: New file.
41677 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
41681 2005-08-02 Simon Josefsson <jas@extundo.com>
41683 * modules/readline: New file.
41685 2005-08-02 Simon Josefsson <jas@extundo.com>
41687 * modules/getdelim: New file.
41689 * modules/getline: Rewrite, don't use getndelim2.
41691 2005-08-02 Simon Josefsson <jas@extundo.com>
41693 * m4/getline.m4: Separate out getdelim stuff into separate module.
41695 * m4/getdelim.m4: New file.
41697 2005-08-02 Simon Josefsson <jas@extundo.com>
41699 * lib/getline.h, getline.c: Rewrite.
41701 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
41703 2005-07-31 Bruno Haible <bruno@clisp.org>
41705 * lib/lock.h (gl_lock_initializer): New macro.
41706 (gl_lock_define_initialized): Use it.
41707 (gl_rwlock_initializer): New macro.
41708 (gl_rwlock_define_initialized): Use it.
41709 (gl_recursive_lock_initializer): New macro.
41710 (gl_recursive_lock_define_initialized): Use it.
41712 2005-07-30 Karl Berry <karl@gnu.org>
41714 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
41715 Report from Ben Pfaff, regarding getopt.
41717 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
41719 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
41721 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
41722 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
41723 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
41724 (gl_GETOPT): Use the new macros. Most of the implementation
41725 is moved to the new macros. This is for programs like Emacs
41726 that don't want all the functionality of gl_GETOPT.
41728 2005-07-26 Bruno Haible <bruno@clisp.org>
41730 * m4/lock.m4: Update from GNU gettext.
41732 2005-07-26 Bruno Haible <bruno@clisp.org>
41734 * lib/lock.h: Update from GNU gettext.
41735 * lib/lock.c: Update from GNU gettext.
41737 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
41739 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
41740 obsolescent AC_TRY_RUN. Include the default includes files, for
41743 2005-07-24 Bruno Haible <bruno@clisp.org>
41745 * modules/visibility: New file.
41746 * MODULES.html.sh (Misc): Add visibility.
41748 2005-07-24 Bruno Haible <bruno@clisp.org>
41750 * m4/visibility.m4: New file.
41752 2005-07-24 Bruno Haible <bruno@clisp.org>
41754 * doc/visibility.texi: New file.
41756 2005-07-22 Bruno Haible <bruno@clisp.org>
41758 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
41759 $(ALLOCA_H), redundant through BUILT_SOURCES.
41760 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
41761 redundant through BUILT_SOURCES.
41762 * modules/byteswap (Makefile.am): Remove explicit dependency on
41763 $(BYTESWAP_H), redundant through BUILT_SOURCES.
41764 * modules/fnmatch (Makefile.am): Remove explicit dependency on
41765 $(FNMATCH_H), redundant through BUILT_SOURCES.
41766 * modules/getopt (Makefile.am): Remove explicit dependency on
41767 $(GETOPT_H), redundant through BUILT_SOURCES.
41768 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
41769 redundant through BUILT_SOURCES.
41770 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
41771 redundant through BUILT_SOURCES.
41772 * modules/stdbool (Makefile.am): Remove explicit dependency on
41773 $(STDBOOL_H), redundant through BUILT_SOURCES.
41774 * modules/stdint (Makefile.am): Remove explicit dependency on
41775 $(STDINT_H), redundant through BUILT_SOURCES.
41776 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
41777 Remove explicit dependency on $(SYSEXITS_H).
41778 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
41780 2005-07-18 Simon Josefsson <jas@extundo.com>
41782 * lib/check-version.c (check_version): Accept identical versions too.
41784 2005-07-18 Bruno Haible <bruno@clisp.org>
41786 * modules/lock: New file.
41787 * MODULES.html.sh (Multithreading): New section.
41789 2005-07-18 Bruno Haible <bruno@clisp.org>
41791 * m4/lock.m4: New file, from GNU gettext.
41793 2005-07-18 Bruno Haible <bruno@clisp.org>
41795 * lib/lock.h: New file, from GNU gettext.
41796 * lib/lock.c: New file, from GNU gettext.
41798 2005-07-18 Bruno Haible <bruno@clisp.org>
41800 * lib/lock.h (gl_once_t): New type.
41801 (gl_once_define, gl_once): New macros.
41802 * lib/lock.c (fresh_once): New variable.
41803 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
41806 2005-07-16 Simon Josefsson <jas@extundo.com>
41808 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
41809 workaround, suggested by Bruno.
41811 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
41813 * modules/xalloc (Depends-on): Add xalloc-die.
41814 * modules/xvasprintf (Depends-on): Add xalloc-die.
41816 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
41818 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
41819 with a minor change.
41821 2005-07-15 Bruno Haible <bruno@clisp.org>
41823 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
41824 When using lib/poll.c, define poll as rpl_poll.
41826 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
41828 * modules/argp (Depends-on): Remove unlocked-io.
41830 2005-07-14 Derek Price <derek@ximbiot.com>
41832 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
41833 for glob symlink bug.
41835 2005-07-14 Bruno Haible <bruno@clisp.org>
41837 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
41838 Instead, test for *_unlocked function declarations directly.
41840 2005-07-11 Simon Josefsson <jas@extundo.com>
41842 * modules/size_max: New file.
41844 * modules/xsize: Depend on size_max module for size_max.m4.
41846 2005-07-11 Simon Josefsson <jas@extundo.com>
41848 * lib/size_max.h: New file.
41850 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
41852 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
41853 copyright symbol and the year.
41854 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
41855 (version_etc_va): Use parameterized copyright notice.
41856 Reword to conform to the current GNU coding standards.
41858 2005-07-11 Karl Berry <karl@gnu.org>
41860 * doc/gnulib.texi (Quoting): new node.
41861 (Initial import): more info, from Patrice.
41863 2005-07-11 Bruno Haible <bruno@clisp.org>
41865 * gnulib-tool (func_usage): Document option --avoid.
41866 (Command line options): Handle --avoid.
41867 (func_acceptable): New function.
41868 (func_modules_transitive_closure): Use it.
41870 2005-07-11 Bruno Haible <bruno@clisp.org>
41872 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
41873 Reported by Jim Meyering.
41875 2005-07-10 Bruno Haible <bruno@clisp.org>
41877 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
41878 Needed when size_t is smaller than 'unsigned int'.
41879 Reported by Paul Eggert.
41881 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
41883 * modules/argp (Depends-on): Add unlocked-io
41885 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
41887 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
41890 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
41892 * config/srclist.txt: Comment out regcomp.c, since we have a porting
41895 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
41896 and Paul Eggert <eggert@cs.ucla.edu>
41898 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
41899 in wint_t, not wchar_t. Remove now-unnecessary cast.
41901 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
41903 * modules/regex (Files): Add lib/regex_internal.c,
41904 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
41905 (Depends-on): Add extensions.
41906 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
41908 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
41910 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
41912 * m4/same.m4 (gl_SAME): Likewise.
41913 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
41915 * m4/regex.m4: Adjust to new libc regex implementation.
41916 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
41917 all the .c and .h parts of (the new) regex.
41918 Quote the m4 stuff better.
41919 Check for RE_ICASE bug of old gnulib.
41920 Check for REG_STARTEND of recent libc.
41921 Rename local variables from jm_* to gl_*.
41922 Quote operand of "test -f".
41923 Say "recent enough" version of libc, not "version 2".
41924 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
41925 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
41926 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
41927 Remove check for btowc, isascii.
41928 Require AM_LANGINFO_CODESET.
41930 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
41932 * lib/regex.c, regex.h: Sync from libc.
41933 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
41935 New files, synced from libc, except that regex_internal.h
41936 currently has a small porting fix.
41938 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
41940 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
41941 regex_internal.c, regexec.c.
41942 Add regex_internal.h too, but as a comment, since the libc version
41943 is currently broken in gnulib mode.
41945 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
41947 Support programs like Emacs that use gnulib but not gettext.
41948 * MODULES.html.sh (Internationalization functions): Add gettext-h.
41949 * modules/gettext-h: New file.
41950 * modules/gettext (Files): Remove lib/gettext.h.
41951 (Depends-on): Add gettext-h.
41952 (Makefile.am): Remove lib_SOURCES.
41953 * modules/argmatch, modules/c-stack, modules/closeout:
41954 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
41955 * modules/execute, modules/file-type, modules/getaddrinfo:
41956 * modules/getopt, modules/human, modules/javacomp:
41957 * modules/javaexec, modules/mkdir-p, modules/obstack:
41958 * modules/openat, modules/pagealign_alloc, modules/pipe:
41959 * modules/quotearg, modules/regex, modules/rpmatch:
41960 * modules/unicodeio, modules/userspec, modules/version-etc:
41961 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
41963 Depend on gettext-h, not gettext.
41965 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
41967 * gnulib-tool (func_import): Add support for 'public domain' license.
41968 * modules/alloca, modules/atexit, modules/memmove:
41969 Now public domain, not GPL.
41970 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
41971 * modules/realloc, modules/strerror, modules/strtod:
41974 2005-07-05 Bruno Haible <bruno@clisp.org>
41976 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
41977 autoconf CVS. Needed for mingw.
41979 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
41981 Remove the dependency of the strftime module on the tzset module.
41982 * modules/strftime (Depends-on): Remove dependency on tzset.
41984 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
41986 Remove the dependency of the strftime module on the tzset module.
41987 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
41988 gl_FUNC_TZSET_CLOBBER.
41990 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
41992 Remove the dependency of the strftime module on the tzset module.
41993 * lib/strftime.c (my_strftime)
41994 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
41995 Copy the input structure, to work around some of the bug with
41996 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
41997 Solaris releases, you should also use the tzset module, but we won't
41998 require it as a dependency any more since we don't want LGPLed code
41999 to depend on GPLed code.
42001 2005-07-02 Jim Meyering <jim@meyering.net>
42003 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
42004 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
42005 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
42006 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
42008 2005-07-02 Jim Meyering <jim@meyering.net>
42010 * lib/backupfile.c (backup_args): Change a `0' to NULL.
42012 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
42014 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
42015 declares only 'struct timespec;' (!).
42017 2005-07-01 Jim Meyering <jim@meyering.net>
42019 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
42020 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
42021 * lib/save-cwd.c, tempname.c:
42022 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
42023 and don't include <sys/file.h>).
42025 2005-06-29 Jim Meyering <jim@meyering.net>
42027 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
42028 type name. Use the variable name instead.
42029 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
42032 2005-06-28 Simon Josefsson <jas@extundo.com>
42034 * modules/check-version (Files): Add check-version.m4.
42036 2005-06-28 Simon Josefsson <jas@extundo.com>
42038 * m4/check-version.m4: New file, suggested by Jim Meyering
42039 <jim@meyering.net>.
42041 2005-06-28 Simon Josefsson <jas@extundo.com>
42043 * lib/check-version.h, lib/check-version.c: New files.
42045 2005-06-28 Simon Josefsson <jas@extundo.com>
42047 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
42048 collision with global variable. Better indentation. Don't
42049 increment buffer pointer beyond buffer end. Based on comments
42050 from Paul Eggert <eggert@cs.ucla.edu>.
42052 * lib/base64.h: Indent.
42054 2005-06-28 Simon Josefsson <jas@extundo.com>
42056 * doc/gnulib.texi (Library version handling): New section.
42058 2005-06-28 Jim Meyering <jim@meyering.net>
42060 * check-module (find_included_lib_files): Hard-code another
42061 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
42062 but modules/fts-lgpl (correctly) does not list those files.
42064 * modules/canonicalize (Files): Add lib/pathmax.h.
42066 2005-06-25 Simon Josefsson <jas@extundo.com>
42068 * modules/check-version: New file.
42070 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
42072 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
42073 initializer of struct addrinfo, as an indication that we don't
42074 care how many members the structure has.
42076 2005-06-24 Derek Price <derek@ximbiot.com>
42077 and Bruno Haible <bruno@clisp.org>
42079 Remove stat module & update lstat.
42080 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
42081 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
42082 * m4/stat.m4: Remove this file.
42084 2005-06-24 Derek Price <derek@ximbiot.com>
42085 and Bruno Haible <bruno@clisp.org>
42087 Remove stat module & update lstat.
42088 * lib/stat.c: Remove this file...
42089 (slash_aware_lstat): ...moving this content and its support...
42090 * lib/lstat.c (rpl_lstat): ...into here.
42091 * lib/lstat.h: New file.
42093 2005-06-24 Derek Price <derek@ximbiot.com>
42094 and Bruno Haible <bruno@clisp.org>
42096 Remove stat module & update lstat.
42097 * config/srclist.txt (libc sources): Remove stat.
42099 2005-06-24 Derek Price <derek@ximbiot.com>
42100 and Bruno Haible <bruno@clisp.org>
42102 Remove stat module & update lstat.
42103 * MODULES.html.sh (stat): Remove.
42104 * MODULES.html: Regenerated.
42105 * modules/lstat (Description): Correct function name.
42106 (Files): Add "lstat.h".
42107 (Depends-on): Remove stat, add xalloc, stat-macros.
42108 * modules/stat: Remove this file.
42109 (Include): Add "lstat.h", remove <sys/stat.h>.
42111 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
42113 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
42114 (ranged_convert): Don't save conversion in a temporary struct.
42115 This causes a warning with GCC 4.0.0, and anyway in the typical
42116 case it's not worth the extra 100 bytes or so of code.
42117 (ranged_convert, __mktime_internal): When calling a function via a
42118 pointer P, use P () rather than (*P) (), as we now assume C89 or
42121 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
42123 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
42124 "who -r" failed to give output. Problem reported by Tim Waugh.
42126 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
42127 (xcalloc): Use it to avoid needless tests.
42128 Problem reported by Jim Meyering.
42130 2005-06-20 Derek Price <derek@ximbiot.com>
42132 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
42133 unnecessary for Autoconfs > 2.59c.
42135 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
42137 * lib/argp.h (__option_is_short): Check upper limit of
42138 __key. Isprint() requires its argument to have the value
42139 of an unsigned char or EOF.
42141 2005-06-16 Jim Meyering <jim@meyering.net>
42143 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
42144 when either N or S is zero.
42146 2005-06-16 Derek Price <derek@ximbiot.com>
42148 * m4/bison.m4: Declare YACC & YFLAGS precious.
42150 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
42152 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
42153 multibyte string or pattern, fall back on unibyte matching.
42154 Problem reported by James Youngman.
42156 2005-06-08 Bruno Haible <bruno@clisp.org>
42158 * modules/csharpcomp: New file.
42159 * MODULES.html.sh (C#): Add csharpcomp.
42161 2005-06-08 Bruno Haible <bruno@clisp.org>
42163 * m4/csharpcomp.m4: New file, from GNU gettext.
42165 2005-06-08 Bruno Haible <bruno@clisp.org>
42167 * lib/csharpcomp.h: New file, from GNU gettext.
42168 * lib/csharpcomp.c: New file, from GNU gettext.
42169 * lib/csharpcomp.sh.in: New file, from GNU gettext.
42171 2005-06-08 Bruno Haible <bruno@clisp.org>
42173 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
42176 2005-06-07 Derek Price <derek@ximbiot.com>
42179 * lib/glob_.h: Indent nested #ifdef.
42181 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
42183 Sync from coreutils.
42184 Use "file name" when talking about file names, instead of "filename"
42185 or "path", as per the GNU coding standards.
42186 * lib/mkdir-p.c: Renamed from makepath.c.
42187 (make_dir_parents): Renamed from make_path. All callers changed.
42188 * lib/mkdir-p.h: Likewise. All includers changed.
42189 * lib/filenamecat.c: Renamed from path-concat.c.
42190 (file_name_concat): Renamed from path_concat. All callers changed.
42191 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
42192 * lib/filenamecat.h: Likewise. All includers changed.
42193 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
42194 in comments or local variable names.
42195 * lib/basename.c: Likewise.
42196 * lib/canonicalize.c, canonicalize.h: Likewise.
42197 * lib/dirname.c, dirname.h: Likewise.
42198 * lib/euidaccess.c: Likewise.
42199 * lib/exclude.c: Likewise
42200 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
42201 * lib/fsusage.c, fsuage.h: Likewise.
42202 * lib/fts.c, fts_.h: Likewise.
42203 * lib/getcwd.c: Likewise.
42204 * lib/getloadavg.c: Likewise.
42205 * lib/mkstemp.c: Likewise.
42206 * lib/mountlist.c, mountlist.h: Likewise.
42207 * lib/openat.c, openat.h: Likewise.
42208 * lib/readlink-stub.c: Likewise.
42209 * lib/readutmp.c, readutmp.h: Likewise.
42210 * lib/rename.c: Likewise.
42211 * lib/rmdir.c: Likewise.
42212 * lib/same.c: Likewise.
42213 * lib/savedir.c: Likewise.
42214 * lib/stripslash.c: Likewise.
42215 * lib/tempname.c: Likewise.
42216 * lib/xreadlink.c: Likewise.
42217 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
42219 * lib/exclude.h: Likewise.
42221 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
42222 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
42223 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
42224 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
42225 * lib/pathmax.h: Include <limits.h> unconditionally, since other
42226 files have been getting away with it for years (MORE/BSD 4.3
42228 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
42229 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
42231 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
42232 Define to 256, not 255, as per modern POSIX.
42234 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
42236 Sync from coreutils.
42237 Use "file name" when talking about file names, instead of "filename"
42238 or "path", as per the GNU coding standards.
42239 * MODULES.html.sh: mkdir-p renamed from makepath.
42240 filenamecat renamed from path-concat.
42241 * modules/filenamecat: Renamed from modules/path-concat.
42242 (Files): filenamecat.h and filenamecat.c renamed from
42243 path-concat.h and path-concat.c.
42244 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
42245 (Include): filenamecat.h, not path-concat.h.
42246 * modules/mkdir-p: Renamed from modules/makepath.
42247 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
42249 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
42250 (Include): mkdir-p.h, not makepath.h.
42252 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
42254 Sync from coreutils.
42255 * m4/mkdir-p.m4: Renamed from makepath.m4.
42256 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
42257 Rename files from makepath.c to mkdir-p.c, and from
42258 makepath.h to mkdir-p.h.
42259 * m4/filenamecat.m4: Renamed from path-concat.m4.
42260 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
42261 Rename files from path-concat.c to filenamecat.c,
42262 and from path-concat.h to filenamecat.h.
42263 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
42264 "file name" in local variables or comments.
42265 * m4/rename.m4: Likewise.
42267 2005-06-01 Bruno Haible <bruno@clisp.org>
42269 * modules/csharpexec: New file.
42270 * MODULES.html.sh (C#): New section.
42272 2005-06-01 Bruno Haible <bruno@clisp.org>
42274 * m4/csharp.m4: New file, from GNU gettext.
42275 * m4/csharpexec.m4: New file, from GNU gettext.
42277 2005-06-01 Bruno Haible <bruno@clisp.org>
42279 * lib/csharpexec.h: New file, from GNU gettext.
42280 * lib/csharpexec.c: New file, from GNU gettext.
42281 * lib/csharpexec.sh.in: New file, from GNU gettext.
42283 2005-05-31 Derek Price <derek@ximbiot.com>
42284 Paul Eggert <eggert@cs.ucla.edu>
42287 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
42289 2005-05-31 Derek Price <derek@ximbiot.com>
42290 Paul Eggert <eggert@cs.ucla.edu>
42293 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
42295 2005-05-29 Derek Price <derek@ximbiot.com>
42297 * config/srclist.txt (glob_.h, glob.c): Add these files.
42299 2005-05-29 Derek Price <derek@ximbiot.com>
42301 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
42302 * modules/glob: New file.
42303 * modules/getlogin_r: Add link to POSIX spec in description.
42305 2005-05-29 Derek Price <derek@ximbiot.com>
42306 Paul Eggert <eggert@cs.ucla.edu>
42308 * m4/glob.m4: New file.
42310 2005-05-29 Derek Price <derek@ximbiot.com>
42311 Paul Eggert <eggert@cs.ucla.edu>
42313 * lib/glob_.h, lib/glob.c: New files.
42315 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
42317 * modules/fts (Files): Remove m4/inttypes-pri.m4.
42318 * modules/fts-lgpl (Depends-on): Remove gettext.
42320 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
42322 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
42323 and don't require gt_INTTYPES_PRI.
42325 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
42327 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
42329 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
42330 the configuration hassle isn't worth it.
42331 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
42332 (LONGEST_MODIFIER, PRIuMAX): Remove.
42334 2005-05-27 Bruno Haible <bruno@clisp.org>
42336 * lib/getlogin_r.h: Remove second include of <stddef.h>.
42338 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
42340 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
42341 _POSIX_PTHREAD_SEMANTICS for Solaris.
42343 2005-05-25 Derek Price <derek@ximbiot.com>
42345 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
42347 2005-05-25 Derek Price <derek@ximbiot.com>
42348 Paul Eggert <eggert@cs.ucla.edu>
42350 * modules/getlogin_r, m4/getlogin_r.m4: New files.
42351 * lib/getlogin_r.c, getlogin_r.h: New files.
42353 2005-05-25 Bruno Haible <bruno@clisp.org>
42354 Derek Price <derek@ximbiot.com>
42356 * lib/getlogin_r.h: Simplify API documentation.
42358 2005-05-23 Derek Price <derek@ximbiot.com>
42360 * modules/minmax (Files): Add m4/minmax.m4.
42361 (configure.ac): Add gl_MINMAX.
42363 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
42365 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
42366 so that unistd-safer.h (GPL'ed code) need not be included.
42368 2005-05-22 Bruno Haible <bruno@clisp.org>
42370 * m4/minmax.m4: New file.
42371 Based on a patch by Derek Price <derek@ximbiot.com>.
42373 2005-05-22 Bruno Haible <bruno@clisp.org>
42375 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
42376 (INT64_MIN): Fix definition.
42377 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
42379 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
42380 NEED_SIGNED_INT_TYPES.
42382 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
42383 HAVE_SYSTEM_INTTYPES.
42385 2005-05-22 Bruno Haible <bruno@clisp.org>
42387 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
42388 Also include <sys/param.h> if it defines MIN, MAX.
42389 Based on a patch by Derek Price <derek@ximbiot.com>.
42391 2005-05-21 Jim Meyering <jim@meyering.net>
42393 * modules/fts (Files): Add m4/inttypes-pri.m4.
42394 (Depends-on): Add lstat and remove gettext. Alphabetize.
42396 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
42399 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
42400 (setup_dir, free_dir): New functions.
42401 (enter_dir, leave_dir): Define trivial
42402 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
42403 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
42404 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
42405 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
42406 Move to fts-cycle.c.
42407 (fts_open): Use setup_dir.
42408 (fts_close): Use free_dir.
42409 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
42410 This adds a label and some gotos, but the alternatives were messier.
42411 Check for memory allocation failure when entering a dir.
42412 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
42413 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
42414 (FTS): New member fts_cycle, that is a union that contains the
42415 old active_dir_ht and cycle_state. All uses changed to mention
42416 fts_cycle.ht and fts_cycle.state.
42417 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
42418 fts.c, with the following changes:
42419 (setup_dir, free_dir): New functions.
42420 (enter_dir): Now returns bool. Return true if successful, false
42421 if memory exhausted. All callers changed.
42422 Do not bother partly cleaning up on
42423 memory allocation failure; that is free_dir's job.
42424 However, free ad if hash_insert fails, to avoid memory leak.
42425 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
42426 fts->fts_options to see which union member to use.
42428 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
42430 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
42431 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
42433 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
42435 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
42437 2005-05-20 Jim Meyering <jim@meyering.net>
42439 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
42440 Now a macro, to pacify GCC.
42442 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
42444 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
42447 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
42449 * lib/chown.c (rpl_chown): Return -1 on failure.
42451 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
42453 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
42454 Don't check for stddef.h.
42455 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
42456 don't use its results.
42457 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
42458 since we include them unconditionally. Don't require
42459 AM_STDBOOL_H, since stdbool is a prerequisite.
42460 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
42461 since we assume C89 or better.
42462 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
42463 as we don't use their results.
42464 Don't check for fchdir, memmove, memset, strrchr, as we use
42465 them unconditionally.
42466 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
42467 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
42469 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
42471 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
42472 Include <stddef.h> unconditionally, since we assume C89 now.
42473 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
42474 * lib/fts.c: Include fts_.h first, to check interface.
42475 Do not include intprops.h; no longer needed.
42476 Include cycle-check.h and hash.h, since fts_.h no longer does.
42477 Remove unnecessary casts of closedir to void.
42478 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
42479 decide whether to decrement nlinks.
42480 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
42481 (FTS): Use struct hash_table * instead of Hash_table, so that
42482 we no longer need to include hash.h here.
42484 2005-05-18 Jim Meyering <jim@meyering.net>
42486 * modules/dirfd (License): Change to LGPL. Most of the code
42487 is already in the public domain.
42489 2005-05-18 Jim Meyering <jim@meyering.net>
42491 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
42492 Reported by Yoann Vandoorselaere.
42494 2005-05-17 Jim Meyering <jim@meyering.net>
42496 * m4/fts.m4: New file, from coreutils.
42498 2005-05-17 Jim Meyering <jim@meyering.net>
42500 * lib/fts.c, lib/fts_.h: New files, from coreutils.
42502 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
42504 Sync from coreutils.
42505 * m4/unlinkdir.m4: New file.
42507 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
42509 Sync from coreutils.
42510 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
42511 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
42512 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
42513 White space changes only.
42514 * lib/makepath.c (make_path): Port to hosts where leading "//" is
42516 * lib/yesno.c: Include getline.h, not ctype.h.
42517 (yesno): Don't remove leading white space; POSIX doesn't allow it.
42518 Use getline to remove arbitrary restriction on response length.
42520 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
42522 * config/srclist-update: Spell out "Street" in FSF postal
42523 mail address; this is the style the FSF seems to prefer.
42525 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
42526 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
42527 this updates FSF postal mail address.
42529 Sync from coreutils.
42530 * modules/unlinkdir: New file.
42531 * modules/yesno (Depends-on): Add getline.
42532 * MODULES.html.sh (File system functions): Add unlinkdir.
42534 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
42536 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
42538 Change the initial comment to refer to GPL, not LGPL.
42539 gnulib-tool will change it to LGPL as needed.
42541 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
42542 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
42543 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
42544 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
42545 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
42546 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
42547 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
42548 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
42549 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
42550 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
42551 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
42552 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
42553 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
42554 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
42555 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
42556 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
42557 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
42558 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
42559 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
42560 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
42561 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
42562 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
42563 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
42564 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
42565 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
42566 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
42567 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
42568 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
42569 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
42570 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
42571 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
42572 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
42573 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
42574 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
42575 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
42576 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
42577 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
42578 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
42579 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
42580 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
42581 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
42582 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
42583 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
42584 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
42585 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
42586 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
42587 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
42588 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
42589 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
42590 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
42591 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
42592 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
42593 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
42594 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
42595 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
42596 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
42597 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
42598 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
42599 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
42600 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
42601 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
42602 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
42603 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
42604 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
42605 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
42606 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
42607 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
42608 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
42609 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
42610 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
42611 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
42612 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
42613 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
42614 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
42615 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
42616 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
42617 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
42618 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
42619 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
42620 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
42621 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
42622 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
42623 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
42624 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
42625 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
42626 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
42627 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
42628 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
42629 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
42630 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
42631 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
42632 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
42633 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
42634 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
42635 lib/yesno.c, lib/yesno.h:
42636 Update FSF postal mail address.
42638 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
42640 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
42641 tests/test-memmem.c, tests/test-stpncpy.c:
42642 Update FSF postal mail address.
42644 2005-05-13 Bruno Haible <bruno@clisp.org>
42646 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
42647 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
42648 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
42649 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
42650 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
42651 Add support for 64-bit integers in the MSVC compiler.
42653 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
42655 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
42657 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
42659 * gnulib-tool (func_import): Sort and uniquify recommended includes.
42661 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
42663 * doc/getdate.texi (General date syntax): Don't say that date
42664 date --iso-8601=ns generates acceptable dates; it doesn't yet.
42665 Problem reported by Nic Ferrier.
42667 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42669 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
42670 specified in ai_socktype. Fix invalid ai_protocol
42671 check. ai_protocol is usually set to 0 or depending on
42672 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
42673 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
42674 ai_socktype / ai_protocol in the returned addrinfo structure.
42676 2005-05-10 Simon Josefsson <jas@extundo.com>
42678 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
42679 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
42681 2005-05-10 Karl Berry <karl@gnu.org>
42683 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
42684 (from http://www.gnu.org/licenses).
42685 * doc/COPYING.LIB: also rename to COPYING.LESSER.
42686 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
42689 2005-05-10 Karl Berry <karl@gnu.org>
42691 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
42692 (COPYING.DOC): remove.
42694 * config/srclist-update: new FSF address.
42696 2005-05-10 Derek Price <derek@ximbiot.com>
42698 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
42701 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42702 Bruno Haible <bruno@clisp.org>
42704 * modules/inet_ntop: New file.
42705 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42708 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42709 Bruno Haible <bruno@clisp.org>
42711 * m4/inet_ntop.m4: New file.
42713 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
42714 Bruno Haible <bruno@clisp.org>
42716 * lib/inet_ntop.h: New file.
42717 * lib/inet_ntop.c: New file, from glibc with modifications.
42719 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
42721 * modules/time_r (License): Change to LGPL.
42722 * modules/extensions (License): Change to LGPL. Actually,
42723 the license is more permissive than that, but currently gnulib-tool
42724 doesn't know how to handle more-permissive licenses.
42726 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
42727 Problem reported by Dave Love.
42729 2005-05-08 Jim Meyering <jim@meyering.net>
42731 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
42734 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
42736 * modules/argmatch (Depends-on): Add stdbool.
42737 * modules/backupfile (Depends-on): Likewise.
42738 * modules/chdir-long (Depends-on): Likewise.
42739 * modules/closeout (Depends-on): Likewise.
42740 * modules/cycle-check (Depends-on): Likewise.
42741 * modules/dirname (Depends-on): Likewise.
42742 * modules/fnmatch (Depends-on): Likewise.
42743 * modules/fsusage (Depends-on): Likewise.
42744 * modules/fwriteerror (Depends-on): Likewise.
42745 * modules/getcwd (Depends-on): Likewise.
42746 * modules/getloadavg (Depends-on): Likewise.
42747 * modules/hard-locale (Depends-on): Likewise.
42748 * modules/makepath (Depends-on): Likewise.
42749 * modules/mountlist (Depends-on): Likewise.
42750 * modules/nanosleep (Depends-on): Likewise.
42751 * modules/posixtm (Depends-on): Likewise.
42752 * modules/quotearg (Depends-on): Likewise.
42753 * modules/readtokens (Depends-on): Likewise.
42754 * modules/readtokens0 (Depends-on): Likewise.
42755 * modules/readutmp (Depends-on): Likewise.
42756 * modules/save-cwd (Depends-on): Likewise.
42757 * modules/strftime (Depends-on): Likewise.
42758 * modules/userspec (Depends-on): Likewise.
42759 * modules/utimecmp (Depends-on): Likewise.
42760 * modules/xgetcwd (Depends-on): Likewise.
42761 * modules/xnanosleep (Depends-on): Likewise.
42762 * modules/xstrtod (Depends-on): Likewise.
42763 * modules/yesno (Depends-on): Likewise.
42765 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
42767 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
42770 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
42772 Merge from coreutils. Among other things,
42773 add bulletproofing for cases where stdin, stdout, or stderr are closed.
42774 * lib/fd-safer.c: New file.
42775 * lib/fcntl-safer.h, open-safer.c: Remove.
42776 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
42777 * lib/dup-safer.c: Include unistd-safer.h first.
42778 Don't include errno.h.
42779 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
42780 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
42781 * lib/file-type.c: Rely on file-type.h change.
42782 * lib/getloadavg.c: Include unistd-safer.h.
42783 (getloadavg): Use safer open.
42784 * lib/getusershell.c: Include "stdio-safer.h".
42785 (getusershell): Use safer fopen.
42786 * lib/long-options.c (long_options): Use NULL rather than 0.
42787 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
42789 * lib/modechange.c: Likewise.
42790 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
42791 (MODE_DONE): New constant.
42792 (struct mode_change): Remove 'next' member.
42793 (make_node_op_equals): New function; like the old one of the
42794 same name, except it allocates an array.
42795 (mode_compile, mode_create_from_ref): Use it.
42796 (mode_compile): Allocate result as an array, not a linked list.
42797 Parse octal string ourself, so that we catch mistakes like "+0".
42798 (mode_adjust): Arg is an array, not a linked list.
42799 * lib/modechange.c: Include stat-macros.h, xalloc.h.
42800 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
42801 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
42802 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
42803 Remove. This is now stat-macros.h's job.
42804 (talloc): Remove. All callers replaced by xalloc, so that
42805 our invokers don't have to worry about reporting memory failures.
42806 (make_node_op_equals): Remove.
42807 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
42809 (struct mode_change): Moved here from modechange.h.
42810 (mode_append_entry): Remove.
42811 (mode_compile): Remove MASKED_OPS arg, since it encouraged
42812 apps to have incorrect behavior. Use simpler algorithm for head
42813 and tail. Don't futz with umask; that's now the job of mode_adjust.
42814 Detect more invalid usages rather than having somewhat-random behavior.
42815 Don't insert an "a=" action, as that leads to incorrect behavior.
42816 (mode_compile, mode_create_from_ref): Return NULL on error instead
42817 of an enum, since now there's only one way to have an error. All
42819 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
42820 at the correct time. Simplify calculation of "+u" and its ilk.
42821 Don't mishandle "+X".
42822 (mode_free): Remove "register" and localize decls.
42823 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
42824 (struct mode_change): Move to modechange.c; callers don't
42825 need to see this stuff.
42826 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
42827 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
42828 (mode_change, mode_adjust): Reflect the new signatures noted above.
42829 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
42830 that might redefine system include files.
42831 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
42832 (my_usleep): Use NULL rather than (void *) 0.
42833 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
42834 Use siginterrupt to specify that system calls should be interrupted.
42835 (rpl_nanosleep): Move initialization of suspended closer to call of
42837 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
42838 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
42839 (desirable_utmp_entry): New function.
42840 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
42841 using x2nrealloc, to simplify logic.
42842 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
42843 size calculation. Do not assume utmp file is a regular file.
42844 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
42845 (READ_UTMP_CHECK_PIDS): New constant.
42846 * lib/save-cwd.c: Include unistd-safer.h.
42847 (save_cwd): Use fd_safer.
42848 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
42849 [!_LIBC] Include "stat-macros.h" instead.
42850 * lib/unistd-safer.h (fd_safer): New decl.
42852 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
42854 * modules/getloadavg (Depends-on): Add unistd-safer.
42855 * modules/getusershell (Depends-on): Add stdio-safer.
42856 * modules/lstat (Depends-on): Remove xalloc.
42857 * modules/mkstemp (Depends-on): Add stat-macros.
42858 * modules/modechange (Depends-on): Remove xstrtol.
42859 Add stat-macros, xalloc.
42860 * modules/save-cwd (Depends-on): Add unistd-safer.
42861 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
42862 * modules/unistd-safer (Files): Add lib/fd-safer.c
42863 (Makefile.am): Remove lib_SOURCES.
42865 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
42866 Remove fcntl-safer; unistd-safer supersedes it.
42868 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
42870 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
42872 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
42873 (gl_PREREQ_CHOWN): Remove.
42874 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
42875 it. Don't require AC_HEADER_STAT.
42876 (gl_PREREQ_LSTAT): Remove.
42877 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
42878 Don't require AC_HEADER_STAT.
42879 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
42880 (gl_PREREQ_RMDIR): Remove.
42881 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
42882 mention stat-macros.h or AC_HEADER_STAT, since we'll make
42883 the stat-macros module a prerequisite.
42884 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
42885 * m4/filemode.m4 (gl_FILEMODE): Likewise.
42886 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
42887 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
42888 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
42890 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
42891 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
42893 * m4/fcntl-safer.m4: Remove.
42894 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
42895 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
42896 Invoke gl_PREREQ_FD_SAFER.
42897 (gl_PREREQ_FD_SAFER): New macro.
42898 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
42899 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
42900 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
42901 Remove duplicate call to AC_LIBOBJ(readutmp).
42902 (gl_PREREQ_READUTMP): Remove. All uses inlined.
42904 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
42905 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
42907 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
42909 * MODULES.html.sh (Misc): Add byteswap.
42911 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
42913 * modules/getcwd (Depends-on): Add extensions.
42914 * modules/openat (Depends-on): Likewise.
42916 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
42918 * modules/byteswap: New file.
42920 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
42922 * m4/byteswap.m4: New file.
42924 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
42926 * lib/byteswap_.h: New file.
42928 2005-04-25 Karl Berry <karl@gnu.org>
42930 * m4/gettext.m4: Update from GNU gettext 0.14.4.
42932 2005-04-25 Albert Chin <china@thewrittenword.com>
42934 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
42937 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
42939 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
42940 (func_ln_if_changed) Remove forcibly for no error message
42941 in case file does not exist.
42943 2005-04-19 Simon Josefsson <jas@extundo.com>
42945 * gnulib-tool (Options): Make --symlink mean --symbolic.
42947 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
42949 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
42951 2005-04-16 Simon Josefsson <jas@extundo.com>
42953 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
42955 2005-04-15 Simon Josefsson <jas@extundo.com>
42957 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
42959 2005-04-15 Simon Josefsson <jas@extundo.com>
42961 * gnulib-tool: Rename --symlink to --symbolic.
42963 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
42965 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
42966 symbolic links to files instead of copying/moving. Add --aux-dir,
42967 specifying directory relative --dir where auxiliary build tools
42970 2005-04-14 Bruno Haible <bruno@clisp.org>
42972 * modules/allocsa (License): Change to LGPL.
42973 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
42975 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
42977 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
42978 that "UTC +1 second" continues to work. Problem reported
42979 by Dmitry V. Levin.
42980 (relunit_snumber): New rule.
42983 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
42985 * lib/getdate.y (universal_time_zone_table): New constant.
42986 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
42987 universal_time_zone_table.
42988 (lookup_zone): Prefer universal_time_zone_table to
42989 local_time_zone_table, so that "GMT" time stamps are allowed in
42990 London during the summer. Problem reported by Ian Abbott.
42992 2005-04-12 Jim Meyering <jim@meyering.net>
42994 * lib/human.c (humblock): Set *options even when returning due to
42995 xstrtoumax conversion failure. Thanks to a used-uninitialized
42996 warning from gcc-4.
42998 2005-04-09 Jim Meyering <jim@meyering.net>
43000 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
43001 -Wuninitialized: initialize tm0.tm_year.
43003 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
43005 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
43006 count, since there's no maximum. All uses changed.
43007 Add member dsts_seen.
43008 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
43010 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
43011 Use pc_rels_seen to decide whther a date is absolute.
43013 * lib/getdate.y (number): Don't overwrite year.
43014 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
43017 2005-04-02 Simon Josefsson <jas@extundo.com>
43019 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
43020 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
43022 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
43024 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
43025 where no absolute path name can be longer than PATH_MAX.
43027 2005-03-27 Jim Meyering <jim@meyering.net>
43029 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
43031 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
43033 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
43034 "one's complement" -> "ones' complement" in comment, as per Knuth.
43035 "value of type" -> "type or expression" in comment.
43036 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
43038 2005-03-26 Jim Meyering <jim@meyering.net>
43041 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
43042 Correct typos: s/or/of/.
43044 2005-03-26 Jim Meyering <jim@meyering.net>
43046 * modules/check-include-files: Move to ../ and rename to...
43047 * check-module: ...this.
43049 2005-03-25 Jim Meyering <jim@meyering.net>
43051 * modules/xvasprintf (Files): Add xalloc.h.
43053 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
43055 * modules/gettext (Files): config/config.rpath ->
43056 build-aux/config.rpath
43057 * modules/iconv (Files): Likewise.
43058 Problem reported by Oskar Liljeblad.
43060 2005-03-23 Jim Meyering <jim@meyering.net>
43062 * modules/check-include-files: New script to check for
43063 missing dependencies, multiple includes, etc.
43065 * modules/c-strtold (Depends-on): Add xalloc.
43066 * modules/c-strtod (Depends-on): Add xalloc.
43067 * modules/hash (Depends-on): Add xalloc.
43068 (Files): Remove lib/xalloc.h.
43070 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
43071 * modules/userspec (Files): Add lib/inttostr.h.
43073 2005-03-23 Jim Meyering <jim@meyering.net>
43075 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
43077 2005-03-22 Jim Meyering <jim@meyering.net>
43079 * modules/stat-macros: New module.
43080 * modules/canonicalize, modules/euidaccess, modules/file-type,
43081 * modules/filemode, modules/lchown, modules/makepath,
43082 * modules/rmdir, modules/stat: Depend on new stat-macros module
43083 rather than listing lib/stat-macros.h manually.
43084 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
43086 2005-03-22 Jim Meyering <jim@meyering.net>
43088 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
43090 2005-03-22 Bruno Haible <bruno@clisp.org>
43092 * config/srclist.txt: Replace target directory 'config' with
43094 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
43095 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
43098 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
43100 * modules/chdir-long (Depends-on): Add mempcpy.
43102 * modules/acl, modules/backupfile, modules/c-strtod,
43103 modules/c-strtold, modules/canon-host, modules/canonicalize,
43104 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
43105 modules/exclude, modules/exitfail, modules/file-type,
43106 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
43107 modules/getdate, modules/getline, modules/getpagesize,
43108 modules/getpass, modules/getugroups, modules/group-member,
43109 modules/hard-locale, modules/hash, modules/human, modules/idcache,
43110 modules/inttostr, modules/long-options, modules/makepath,
43111 modules/md5, modules/memcasecmp, modules/memcoll,
43112 modules/modechange, modules/mountlist, modules/path-concat,
43113 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
43114 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
43115 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
43116 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
43117 modules/strftime, modules/strndup, modules/strverscmp,
43118 modules/timespec, modules/unlocked-io, modules/userspec,
43119 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
43121 Remove lib_SOURCES line from Makefile.am section, as this is now
43122 done automatically by the corresponding Autoconf macro.
43124 2005-03-21 Jim Meyering <jim@meyering.net>
43126 Changes imported from coreutils.
43128 * lib/cycle-check.c: Don't include xalloc.h.
43130 * lib/path-concat.c: Don't include assert.h.
43131 (path_concat): Remove assertion that would have triggered
43132 for ABASE starting with more than one slash.
43133 Reported by Andreas Schwab.
43135 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
43136 properly when ABASE is an absolute file name.
43137 Correct the description of this function.
43138 Include <assert.h>.
43139 Add an assertion and a test driver.
43140 This fixes a bug introduced on 2004-07-02.
43141 Andreas Schwab reported the resulting failure of cp --parents:
43142 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
43144 2005-03-21 Jim Meyering <jim@meyering.net>
43146 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
43147 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
43149 2005-03-21 Jim Meyering <jim@meyering.net>
43150 and Paul Eggert <eggert@cs.ucla.edu>
43152 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
43153 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
43154 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
43155 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
43156 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
43157 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
43158 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
43159 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
43160 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
43161 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
43162 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
43163 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
43164 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
43165 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
43166 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
43167 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
43168 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
43171 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
43173 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
43174 (which shouldn't happen), generate nothing instead of returning 0
43175 immediately, so that nstrftime (NULL, ...) doesn't return 0.
43177 2005-03-16 Bruno Haible <bruno@clisp.org>
43179 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
43180 HAVE_LONGLONG_64BIT.
43182 2005-03-16 Bruno Haible <bruno@clisp.org>
43184 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
43185 HAVE_LONGLONG_64BIT.
43187 2005-03-16 Bruno Haible <bruno@clisp.org>
43189 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
43190 HAVE_LONGLONG_64BIT.
43192 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
43194 * lib/strftime.c (my_strftime): Prepend space to format so that we can
43195 reliably distinguish strftime failure from empty output on POSIX
43198 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
43200 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
43201 (iconv_string): Don't guess a size-zero buffer, as that might cause
43202 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
43203 result would be 'too large', where 'too large' is (heuristically)
43204 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
43205 overflow concerns. This will prevent some unwanted malloc failures
43206 when the inputs are very large.
43208 2005-03-15 Karl Berry <karl@gnu.org>
43210 * config/srclist.txt (config.rpath): from gettext.
43211 * config/config.rpath: update.
43213 2005-03-15 Bruno Haible <bruno@clisp.org>
43215 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
43218 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
43221 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
43224 2005-03-14 Simon Josefsson <jas@extundo.com>
43226 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
43229 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
43231 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
43232 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
43234 * lib/strtol.c: Likewise.
43236 2005-03-14 Jim Meyering <jim@meyering.net>
43238 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
43239 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
43240 to be nonzero so that we (and caller) can detect the difference
43241 between a valid zero-length expansion and an error return, even
43242 when the underlying strftime fails before writing anything into
43245 2005-03-14 Bruno Haible <bruno@clisp.org>
43247 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
43248 Update from GNU gettext 0.14.3.
43250 2005-03-10 Jim Meyering <jim@meyering.net>
43252 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
43254 2005-03-10 Jim Meyering <jim@meyering.net>
43256 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
43257 so that this module works on systems without fchdir.
43259 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
43261 Factor int-properties macros into a single file, except for
43262 glibc-related files.
43263 * lib/intprops.h: New file.
43264 * lib/getloadavg.c: Include it instead of limits.h.
43265 (INT_STRLEN_BOUND): Remove.
43266 * lib/human.c: Include intprops.h.
43267 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
43268 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
43270 * lib/inttostr.h: Include intprops.h instead of limits.h.
43271 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
43272 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
43273 for consistency with intprops.h.
43274 (time_t_is_integer, twos_complement_arithmetic): Use them.
43275 * lib/sig2str.h: Include <signal.h>, intprops.h.
43276 (INT_STRLEN_BOUND): Remove.
43277 * lib/strftime.c (TYPE_SIGNED): Remove.
43278 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
43279 * lib/strtol.c: Adjust comments to match intprops.h.
43280 * lib/userspec.c: Include intprops.h.
43281 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
43282 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
43283 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
43284 instead of rolling our own expressions.
43285 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
43287 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
43289 (my_strftime): Do not mishandle years close to INT_MAX, by doing
43290 the right thing even if adding 1900 would overflow. Similarly
43291 for tm_mon + 1 and tm_yday + 1.
43292 Make %Y always equivalent to %C%y, and similarly for %G and %g.
43293 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
43294 (DO_SIGNED_NUMBER): New macro.
43295 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
43297 2005-03-07 Bruno Haible <bruno@clisp.org>
43299 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
43301 2005-03-07 Bruno Haible <bruno@clisp.org>
43303 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
43305 2005-03-04 Derek R. Price <derek@ximbiot.com>
43307 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
43308 (func_import): Only replace files via --import when they have actually
43311 2005-03-03 Derek R. Price <derek@ximbiot.com>
43313 * m4/mmap-anon.m4: New file.
43314 * m4/pagealign_alloc.m4: New file.
43316 2005-03-03 Derek R. Price <derek@ximbiot.com>
43317 Bruno Haible <bruno@clisp.org>
43319 * modules/pagealign_alloc: New file.
43320 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
43322 2005-03-03 Derek R. Price <derek@ximbiot.com>
43323 Bruno Haible <bruno@clisp.org>
43325 * lib/pagealign_alloc.h: New file.
43326 * lib/pagealign_alloc.c: New file.
43328 2005-03-03 Bruno Haible <bruno@clisp.org>
43330 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
43331 Use an all-permissive copyright notice, recommended by RMS.
43333 2005-03-02 Bruno Haible <bruno@clisp.org>
43335 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
43336 of AIX, the replacement has to be done only after <string.h> is
43337 included, therefore not in config.h. stpncpy.h does the replacement,
43338 and stpncpy.c uses it.
43340 2005-03-02 Bruno Haible <bruno@clisp.org>
43342 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
43345 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
43347 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
43348 The workaround isn't strictly needed for POSIX conformance, and
43349 it's too much of a pain to configure and maintain. We'll ask
43350 people to fix their kernels instead.
43351 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
43352 (NANOSLEEP_BUG_WORKAROUND): Remove.
43353 (xnanosleep): Remove the workaround.
43355 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
43357 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
43358 Reported by Derek Price.
43359 (Include): Add "timespec.h".
43361 * modules/xnanosleep (Depends-on): Remove gethrxtime.
43363 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
43365 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
43366 to detect nanosleep bug.
43368 2005-03-01 Bruno Haible <bruno@clisp.org>
43370 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
43372 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
43374 * modules/gethrxtime: New file.
43375 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
43376 (Depends-on): Add gethrxtime.
43377 (configure.ac): Add gl_XNANOSLEEP.
43378 (Makefile.am): Remove lib_SOURCES line.
43380 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
43382 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
43383 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
43385 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
43387 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
43388 * lib/timespec.h (gettime): Return void, since it always
43389 succeeds now. All uses changed.
43390 * lib/gettime.c (gettime) Likewise.
43391 [HAVE_NANOTIME]: Prefer nanotime.
43392 Assume gettimeofday succeeds, as POSIX requires.
43393 Assime time () succeeds, since other code already does.
43394 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
43395 (timespec_subtract): Remove.
43396 (NANOSLEEP_BUG_WORKAROUND): New constant.
43397 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
43398 things considerably. Use it only on GNU/Linux hosts, since the
43399 workaround shouldn't be needed elsewhere.
43401 2005-02-24 Bruno Haible <bruno@clisp.org>
43403 * modules/gettext (Files): Add m4/glibc2.m4.
43405 2005-02-24 Bruno Haible <bruno@clisp.org>
43407 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
43408 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
43410 Update from GNU gettext 0.14.2.
43411 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
43413 2005-02-24 Bruno Haible <bruno@clisp.org>
43415 * lib/localcharset.c: Update from GNU gettext 0.14.2.
43416 * lib/config.charset: Update from GNU gettext 0.14.2.
43418 2005-02-24 Bruno Haible <bruno@clisp.org>
43420 * lib/gettext.h: Update from GNU gettext 0.14.2.
43422 2005-02-23 Simon Josefsson <jas@extundo.com>
43424 * m4/iconvme.m4: New file.
43426 2005-02-23 Jim Meyering <jim@meyering.net>
43428 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
43430 Thanks to Bruno Haible for catching it.
43432 2005-02-22 Simon Josefsson <jas@extundo.com>
43434 * modules/iconvme: New file.
43436 * MODULES.html.sh: Add iconvme.
43438 2005-02-22 Simon Josefsson <jas@extundo.com>
43440 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
43442 2005-02-22 Simon Josefsson <jas@extundo.com>
43444 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
43446 2005-02-22 Jim Meyering <jim@meyering.net>
43448 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
43451 2005-02-20 Neil Conway <neilc@samurai.com>
43453 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
43454 returned by OSX/Darwin if the specified buffer is not large
43455 enough for the hostname.
43457 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
43459 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
43460 pass it to _help, otherwise the latter coredumps trying to
43461 dereference state.root_argp.
43463 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
43465 * modules/chdir-long (Depends-on): Add memrchr.
43466 * modules/memrchr (Files): Add lib/memrchr.h.
43467 (Include): "memrchr.h".
43469 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
43471 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
43473 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
43475 * lib/memrchr.h: New file.
43476 * lib/chdir-long.c: Include it.
43477 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
43478 Don't bother including stddef.h.
43480 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
43482 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
43484 Include <sys/types.h>, for dev_t.
43485 (ME_DUMMY, ME_REMOTE): Move from here....
43486 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
43487 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
43489 Include mountlist.h first, to test the interface.
43491 2005-01-29 Bruno Haible <bruno@clisp.org>
43493 * lib/progname.c (program_name): Initialize.
43494 Needed when linking statically on MacOS X.
43496 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
43498 Sync from coreutils.
43499 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
43500 (Depends-on): Add c-strtod.
43501 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
43503 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
43505 Sync from coreutils.
43506 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
43508 Remove files that are specific to coreutils.
43509 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
43511 2005-01-28 Bruno Haible <bruno@clisp.org>
43513 * modules/javacomp: New file.
43514 * MODULES.html.sh (Java): Add javacomp.
43516 2005-01-28 Bruno Haible <bruno@clisp.org>
43518 * m4/javacomp.m4: New file, from GNU gettext.
43520 2005-01-28 Bruno Haible <bruno@clisp.org>
43522 * lib/javacomp.sh.in: New file, from GNU gettext.
43523 * lib/javacomp.h: New file, from GNU gettext.
43524 * lib/javacomp.c: New file, from GNU gettext.
43526 2005-01-26 Simon Josefsson <jas@extundo.com>
43528 * lib/gai_strerror.c: Use GPL in header.
43530 2005-01-26 Bruno Haible <bruno@clisp.org>
43532 * modules/javaexec: New file.
43533 * MODULES.html.sh (Java): Add javaexec.
43535 2005-01-26 Bruno Haible <bruno@clisp.org>
43537 * m4/javaexec.m4: New file, from GNU gettext.
43539 2005-01-26 Bruno Haible <bruno@clisp.org>
43541 * lib/javaexec.sh.in: New file, from GNU gettext.
43542 * lib/javaexec.h: New file, from GNU gettext.
43543 * lib/javaexec.c: New file, from GNU gettext.
43545 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
43547 * modules/lchown (Depends-on): Remove lchown.h
43549 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
43551 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
43552 must be defined if the header file was not found, in order
43553 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
43555 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
43557 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
43558 initializers for struct pentry_state.
43559 (__argp_error): Check return value of __asprintf
43560 (__argp_failure): Translate error message
43562 * lib/argp-parse.c: Removed braces around the expansion of N_()
43564 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
43566 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
43567 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
43568 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
43569 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
43570 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
43571 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
43572 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
43573 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
43574 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
43575 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
43576 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
43577 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
43578 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
43579 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
43580 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
43581 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
43582 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
43583 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
43584 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
43585 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
43586 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
43587 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
43588 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
43589 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
43590 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
43591 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
43592 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
43593 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
43594 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
43595 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
43596 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
43597 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
43598 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
43599 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
43600 xstrtol.m4, xstrtoumax.m4, yesno.m4:
43601 Use an all-permissive copyright notice, recommended by RMS.
43603 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
43605 * modules/chdir-long (Depends-on): Remove mempcpy.
43607 2005-01-21 Jim Meyering <jim@meyering.net>
43609 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
43610 same value as for Solaris 9.
43612 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
43613 component length. This included changing the parameter to be
43614 of type `char *' rather than `char const *'.
43615 * lib/chdir-long.h (chdir_long): Update prototype.
43617 * lib/openat.c (fdopendir, fstatat): New functions.
43618 * lib/openat.h: Include headers required for use of DIR and struct
43620 [AT_SYMLINK_NOFOLLOW]: Define.
43621 (fdopendir, fstatat): Add prototypes.
43623 2005-01-21 Bruno Haible <bruno@clisp.org>
43625 * modules/classpath: New file.
43626 * MODULES.html.sh (Java): Add classpath.
43628 2005-01-21 Bruno Haible <bruno@clisp.org>
43630 * lib/classpath.h: New file, from GNU gettext.
43631 * lib/classpath.c: New file, from GNU gettext.
43633 2005-01-20 Simon Josefsson <jas@extundo.com>
43635 * modules/version-etc-fsf: New file.
43637 2005-01-20 Simon Josefsson <jas@extundo.com>
43639 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
43640 * lib/version-etc.c: Remove version_etc_copyright.
43641 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
43642 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
43644 2005-01-20 Simon Josefsson <jas@extundo.com>
43646 * lib/base64.h (isbase64): Add.
43648 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
43649 using a unsigned prototype, don't inline.
43650 (base64_decode): Use it.
43652 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
43654 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
43657 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
43659 * lib/save-cwd.c (save_cwd): Remove code to support the case
43660 where fchdir is missing or flaky.
43662 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
43664 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
43666 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
43668 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
43669 AC_LIBSOURCES now does this.
43670 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
43671 with new ullong_max module.
43673 2005-01-19 Bruno Haible <bruno@clisp.org>
43675 * modules/sh-quote: New file.
43676 * MODULES.html.sh (Executing programs): Add sh-quote.
43678 2005-01-19 Bruno Haible <bruno@clisp.org>
43680 * lib/sh-quote.h: New file, from GNU gettext.
43681 * lib/sh-quote.c: New file, from GNU gettext.
43683 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
43685 Merge from coreutils.
43686 * m4/ullong_max.m4: New file.
43687 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
43688 (gl_MACROS): Assume localeconv exists.
43690 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
43692 Merge changes from coreutils, as described below in several
43693 changelogs dated today.
43695 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
43696 (O_DIRECTORY): Remove; not needed here, since "." must be
43697 a directory. All uses removed.
43698 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
43699 universal on Suns, and we also need to test for IRIX.
43700 Revamp code to use 'if' rather than '#if'.
43701 Avoid unnecessary comparison of cwd->desc to 0.
43703 * lib/utimens.c (futimens): Robustify the previous patch, by checking
43704 for known valid error numbers rather than observed invalid ones.
43706 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
43708 * modules/ullong_max: New file.
43710 * modules/chdir-long, modules/openat: New files.
43711 * modules/save-cwd (Depends-on): Depend on chdir-long.
43712 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
43714 2005-01-18 Jim Meyering <jim@meyering.net>
43716 Merge from coreutils.
43717 * m4/chdir-long.m4, m4/openat.m4: New files.
43718 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
43719 save-cwd.h. Add AC_LIBOBJ for save-cwd.
43720 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
43721 is sane and DOES follow symlinks. Besides, testing 20 different
43722 systems found no broken chown implementations.
43723 Prompted by a change in rsync's copy of this macro.
43724 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
43726 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
43728 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
43729 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
43730 NULL-means-set-to-current-time semantics.
43731 Remove temporary file immediately, rather than waiting
43732 for configure's at-exit trap code to do it.
43734 2005-01-18 Jim Meyering <jim@meyering.net>
43736 * lib/version-etc.c (version_etc_copyright): Update copyright date.
43738 * lib/utimens.c (futimens): Account for the fact that futimes
43739 can also fail with errno == ENOSYS or errno == ENOENT.
43740 Patch from Dmitry V. Levin.
43742 Change the name of the robust chdir function from chdir to chdir_long.
43743 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
43744 (restore_cwd): Use chdir_long, not chdir.
43745 * lib/chdir-long.c: Renamed from chdir.c.
43746 * lib/chdir-long.h: Renamed from chdir.h.
43747 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
43750 2005-01-18 Bruno Haible <bruno@clisp.org>
43752 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
43753 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
43754 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
43755 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
43756 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
43757 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
43758 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
43759 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
43760 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
43761 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
43762 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
43763 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
43764 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
43765 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
43766 Use an all-permissive copyright notice, recommended by RMS.
43768 2005-01-18 Bob Proulx <bob@proulx.com>
43770 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
43771 simplify offsetof() macro construct to avoid compile failure with
43772 native HP-UX 11.0 ANSI C compiler.
43774 2005-01-17 Bruno Haible <bruno@clisp.org>
43776 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
43777 redundant because stpncpy.m4 takes care of it.
43779 2005-01-17 Bruno Haible <bruno@clisp.org>
43781 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
43783 2005-01-17 Bruno Haible <bruno@clisp.org>
43785 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
43788 2005-01-17 Bruno Haible <bruno@clisp.org>
43790 * lib/fwriteerror.h (fwriteerror): Change specification to include
43792 * lib/fwriteerror.c: Include <stdbool.h>.
43793 (fwriteerror): At the end, close the file stream. Record whether
43794 stdout was already closed.
43796 2005-01-17 Bruno Haible <bruno@clisp.org>
43798 * lib/execute.c (environ): Declare if needed.
43799 * lib/pipe.c (environ): Likewise.
43800 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
43802 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
43804 * modules/argp: Depend on vsnprintf
43806 2005-01-10 Jim Meyering <jim@meyering.net>
43808 * modules/closeout (Depends-on): Add atexit.
43810 2005-01-06 Bruno Haible <bruno@clisp.org>
43812 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
43814 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
43816 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
43817 definitions to be after all include files, to avoid collisions.
43818 Problem reported by Bob Proulx.
43820 2005-01-04 Jim Meyering <jim@meyering.net>
43822 Changes imported from coreutils.
43823 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
43824 as the mkstemp template, use a temporary directory and an
43825 8.3-friendly template to avoid trouble on systems like DJGPP.
43826 Reported by Juan M. Guerrero via Stepan Kasal.
43827 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
43828 close. Remove the temporary directory right away, rather than waiting
43829 for configure's at-exit trap code to do it.
43830 Suggestion from Stepan Kasal.
43832 2005-01-01 Simon Josefsson <jas@extundo.com>
43834 * gnulib-tool: Print #include directives when --import'ing.
43836 2004-12-28 Simon Josefsson <jas@extundo.com>
43838 * tests/test-base64.c: Include required header files. Remove
43841 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
43843 * modules/error (Depends-on): Remove gettext.
43845 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
43847 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
43848 not needed. This removes a dependency on the gettext module.
43849 [defined _LIBC]: Do not include <libintl.h>; not needed.
43851 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
43853 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
43854 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
43856 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
43858 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
43861 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
43863 * modules/getdate (Depends-on): Remove alloca-opt.
43865 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
43867 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
43869 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
43871 * lib/argp-parse.c: Include <stddef.h>.
43872 (alignof, alignto): New macros.
43873 (parser_init): Don't assume that void * is aligned sufficiently
43876 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
43877 need to extend the stack.
43878 (YYINITDEPTH): New macro, so that the initial stack isn't overly
43881 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
43883 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
43885 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
43887 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
43888 (2004-10-24) change. Apparently this was a false alarm.
43890 * modules/getdate: Depend on alloca-opt, not alloca.
43892 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
43894 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
43895 Remove now-obsolete comment about AIX.
43896 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
43897 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
43898 (YYMAXDEPTH): New macro.
43900 2004-12-18 Simon Josefsson <jas@extundo.com>
43902 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
43904 2004-12-18 Bruno Haible <bruno@clisp.org>
43906 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
43908 2004-12-18 Bruno Haible <bruno@clisp.org>
43910 * lib/fatal-signal.c (fatal_signals): Make non-const.
43911 (init_fatal_signals): New function.
43912 (uninstall_handlers, install_handlers): Ignore signals that were set to
43914 (at_fatal_signal): Call init_fatal_signals.
43915 (init_fatal_signal_set): Likewise. Ignore signals that were set to
43917 Reported by Paul Eggert.
43919 2004-12-18 Bruno Haible <bruno@clisp.org>
43921 * doc/alloca.texi: New file.
43922 * doc/alloca-opt.texi: New file.
43924 2004-12-17 Jim Meyering <jim@meyering.net>
43926 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
43927 Otherwise, install-sh could exit with improper exit status when
43928 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
43930 2004-12-16 Simon Josefsson <jas@extundo.com>
43932 * tests/test-base64.c: Add license.
43934 2004-12-15 Stepan Kasal <address@hidden>
43936 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
43938 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
43940 * modules/getcwd (Files): Add m4/d-ino.m4.
43941 Suggested by Mark D. Baushke.
43943 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
43945 * lib/getdate.y (textint): New member "negative".
43946 (time_zone_hhmm): New function.
43947 Expect 14 shift-reduce conflicts, not 13.
43948 (o_colon_minutes): New rule.
43949 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
43950 (yylex): Set the "negative" member of signed numbers.
43952 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
43954 * doc/getdate.texi (Time of day items, Time zone items):
43955 Describe new formats +00:00, UTC+00:00.
43957 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
43959 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
43960 spurious "-l"s. Problem reported by Stepan Kasal.
43962 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
43964 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
43965 in Autoconf 2.59. Problem reported by Mark D. Baushke.
43967 2004-12-04 Simon Josefsson <jas@extundo.com>
43969 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
43970 Vandoorselaere <yoann@prelude-ids.org>.
43972 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
43974 Changes imported from coreutils.
43975 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
43977 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
43979 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
43981 Changes imported from coreutils.
43982 * lib/hard-locale.c: Assume <locale.h> exists.
43983 Include "strdup.h".
43984 (GLIBC_VERSION): New macro.
43985 (hard_locale): Assume setlocale exists.
43986 Rewrite to avoid #ifdef.
43987 Use strdup rather than malloc + strcpy.
43988 * lib/human.c: Assume <locale.h> exists.
43989 (human_readable): Assume localeconv exists.
43991 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
43993 * modules/hard-locale (Depends-on): Add strdup.
43995 2004-12-01 Jakub Jelinek <jakub@redhat.com>
43997 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
43998 convert T2, not T. (Imported from libc.)
44000 2004-11-30 Simon Josefsson <jas@extundo.com>
44002 * modules/restrict (License): Change to LGPL.
44004 2004-11-30 Simon Josefsson <jas@extundo.com>
44006 * m4/restrict.m4: Add copyright and copying conditions.
44008 2004-11-30 Simon Josefsson <jas@extundo.com>
44010 * m4/base64.m4: New file.
44012 2004-11-30 Simon Josefsson <jas@extundo.com>
44014 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
44017 * tests/test-base64.c: New file.
44019 * modules/base64: New file.
44021 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
44023 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
44024 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
44026 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
44028 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
44030 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
44031 (__getcwd.c): Don't restore errno; glibc doesn't.
44032 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
44033 first, falling back to our code only if its results look suspicious.
44034 Ensure that the resulting buffer is only as large as necessary.
44036 * lib/readutmp.c: Include readutmp.h first.
44037 Include <errno.h>, since readutmp.h no longer does that.
44038 * lib/readutmp.h: Don't include <errno.h>,
44039 <sys/param.h>, <time.h>; not needed to establish interface.
44040 (errno): Remove decl.
44041 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
44042 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
44043 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
44045 2004-11-28 Simon Josefsson <jas@extundo.com>
44047 * lib/base64.h, base64.c: New file.
44049 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
44051 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
44053 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
44055 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
44056 (Depends-on): Remove pathmax, same. Add mempcpy.
44057 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
44058 (Makefile.am): Append getcwd.h to lib_SOURCES.
44059 (Include): Add getcwd.h.
44060 (Maintainer): Change from Jim Meyering to "all, glibc",
44061 since getdate now uses intended-for-glibc code.
44062 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
44063 (Depends-on): Depend on getcwd. Do not depend on pathmax.
44065 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
44067 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
44068 HP's ANSI C compiler.
44069 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
44070 Declaring int functions causes warnings on some modern systems and
44071 shouldn't be needed to compile on ancient ones.
44072 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
44075 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
44076 with the following changes.
44077 (__set_errno): Parenthesize properly.
44078 Include <stdbool.h>.
44079 (MIN, MAX, MATCHING_INO): New macros.
44080 (__getcwd): Define with prototype, not K&R form.
44081 Use heuristics to allocate default buffer on stack if possible.
44082 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
44083 behavior, and to avoid the PATH_MAX limit when computing
44085 Use MATCHING_INO to compare inode number to file.
44086 Check for arithmetic overflow in size calculations.
44087 Fix bug in reallocation of dot array that caused getcwd to fail
44088 on directories nested deeper than 75.
44089 Be more careful about saving errno on error.
44090 Do not use realloc; use only free+malloc, as this is a bit
44091 more flexible and avoids a needless copy operation.
44092 Do not inspect st_dev and st_ino for symbolic links; POSIX
44093 doesn't specify the latter.
44094 Check for closedir errors.
44095 Avoid needless casts.
44096 Use "#ifdef weak_alias" around weak_alias, to be like other
44098 The following changes to getcwd.c have effect only when used in
44099 gnulib; they have no effect inside glibc proper.
44100 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
44101 as alloca isn't used.
44102 (alloca, __alloca): Likewise.
44103 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
44104 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
44105 unconditionally, as gnulib assumes C89 or better.
44106 Do not include <sys/param.h>.
44107 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
44108 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
44110 (NULL) [!defined NULL]: Remove; we assume C89 or better.
44111 Include <dirent.h> in a way that is compatible with modern Autoconf.
44112 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
44113 New macros, if not already defined.
44114 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
44115 Use "_LIBC", not "defined _LIBC", for consistency.
44116 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
44118 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
44119 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
44120 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
44121 credit only to Jim Meyering and adjust the copyright dates.
44122 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
44123 <stdlib.h>, <unistd.h>, "pathmax.h".
44124 Instead, include "xgetcwd.h" (first) and "getcwd.h".
44125 (INITIAL_BUFFER_SIZE): Remove.
44126 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
44128 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
44130 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
44131 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
44132 Use the _ONCE methods, for efficiency.
44133 Check for fcntl.h. In test program, include <errno.h>
44134 and <fcntl.h> if available. Remove old K&R cruft from
44135 test program. Check for common errors in GNU/Linux,
44136 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
44137 don't do AC_LIBOBJ, as that's getcwd.m4's job.
44138 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
44139 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
44141 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
44142 accommodate new getcwd.c.
44143 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
44144 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
44145 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
44146 that's all we need now.
44148 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
44150 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
44151 argp-parse.c depends on getopt internals, that means we should
44152 always use our getopt, to be on the safe side.
44153 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
44154 order not to spoil the result of an eventual previous invocation
44155 of gl_GETOPT_SUBSTITUTE.
44157 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
44159 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
44160 redefinition warnings. To avoid them, include the defines
44161 in `#if !defined __need_getopt ... #endif'. The only place
44162 where __getopt_argv_const is used is in definitions
44163 of getopt_long and getopt_long_only below, which are as well
44164 protected by `#ifndef __need_getopt'.
44165 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
44166 __need_getopt after including <stdio.h> and <unistd.h> These
44167 headers might have defined it.
44169 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
44171 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
44173 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
44175 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
44176 (futimens): New function, which uses futimes if available.
44177 (futimens, utimens): Support timespec==NULL, with same semantics
44178 as utime and utimens.
44179 * lib/utimens.h (futimens): New decl.
44181 2004-11-23 Jim Meyering <jim@meyering.net>
44183 * lib/getopt_.h: Remove trailing blanks.
44185 2004-11-23 Jim Meyering <jim@meyering.net>
44187 * lib/__fpending.c: Add comment.
44189 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
44191 * modules/canonicalize (Depends-on): Add xreadlink.
44192 Problem reported by James Youngman.
44194 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
44196 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
44198 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
44199 optopt): Use them instead of invoking ## directly; otherwise, the
44200 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
44202 2004-11-19 Bruno Haible <bruno@clisp.org>
44204 * lib/strtok_r.c: Move comments from here...
44205 * lib/strtok_r.h: ... to here.
44207 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
44209 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
44210 implementations that mishandle size_t overflow.
44212 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
44214 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
44215 might fail. Problem reported by Yoann Vandoorselaere.
44216 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
44217 implementations that mishandle size_t overflow.
44219 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
44221 * modules/canon-host (Depends-on): Add strdup.
44223 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
44225 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
44227 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
44229 * lib/canon-host.c: Include "strdup.h".
44230 (canon_host): Use getaddrinfo if available, so that IPv6 works.
44231 Use strdup instead of malloc/strcpy to duplicate strings.
44233 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
44234 (human_space_before_unit): New constant.
44235 * lib/human.c (human_readable): Support it.
44237 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
44238 (xgetcwd): Set errno correctly when failing.
44239 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
44240 the failure is actually due to a PATH_MAX problem.
44242 Further getopt changes to make it more likely that glibc will
44243 buy the changes back.
44244 * lib/getopt.c (POSIXLY_CORRECT): New constant.
44245 (getopt): Use it, so to preserve glibc semantic
44246 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
44247 when compiling for libc.
44248 * lib/getopt_.h (__getopt_argv_const): Bring it back.
44249 (getopt_long, getopt_long_only): Use it.
44251 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
44252 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
44253 (getopt): Argv is now char * const *, as per standard.
44254 (_getopt_internal_r, _getopt_internal): Argv is now char **,
44255 not char *__getopt_argv_const *.
44256 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
44257 _getopt_long_only_r): Likewise.
44258 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
44259 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
44260 _getopt_long_r, _getopt_long_only_r): Likewise.
44261 * lib/getopt_.h (__getopt_argv_const): Remove.
44262 (getopt): Argv is now char * const *, as per standard.
44264 * lib/getdate.y (tORDINAL): New token.
44265 (day, relunit): Allow it for relative times.
44266 (relative_time_table): Use tORDINAL for ordinals.
44268 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
44270 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
44271 Document that "second" isn't allowed as an ordinal number.
44273 2004-11-16 Jim Meyering <jim@meyering.net>
44275 * modules/closeout (Depends-on): Add fpending.
44277 2004-11-15 Jim Meyering <jim@meyering.net>
44279 * lib/closeout.c: Include "__fpending.h" once again.
44280 Include <stdbool.h>.
44281 (close_stdout): Don't fail just because stdout was closed initially,
44282 since some programs don't write to stdout in the normal course of
44283 operation (other than --version and --help), and we don't want this
44284 function to make e.g. `touch file >&-' fail.
44285 But do fail if it was closed and someone has tried to write to it.
44286 E.g., `printf foo >&-' must fail.
44288 2004-11-13 Jim Meyering <jim@meyering.net>
44290 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
44292 2004-11-12 Simon Josefsson <jas@extundo.com>
44294 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
44295 small doc fix is still pending.
44297 2004-11-11 Simon Josefsson <jas@extundo.com>
44299 * modules/strtok_r: New file.
44301 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44304 2004-11-11 Simon Josefsson <jas@extundo.com>
44306 * m4/strtok_r.m4: New file.
44308 * m4/getopt.m4: Replace opterr.
44310 2004-11-11 Simon Josefsson <jas@extundo.com>
44312 * lib/strtok_r.h, strtok_r.c: New file.
44314 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
44316 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
44317 of replacing opterr, getopt, etc. This should handle the
44318 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
44320 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
44322 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
44323 we can stop lying to compilers about the constness of argv when we
44324 are compiled outside glibc.
44325 (getopt, getopt_long, getopt_long_only): Use it.
44326 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
44327 _getopt_internal, getopt): Likewise.
44328 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
44329 _getopt_long_only_r): Likewise.
44330 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
44331 _getopt_long_r, _getopt_long_only_r): Likewise.
44333 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
44334 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
44335 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
44336 the other external symbols.
44337 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
44338 declaration, since the above renaming now works around collisions.
44340 2004-11-11 Jim Meyering <jim@meyering.net>
44342 * lib/linebreak.c: Remove trailing blanks.
44343 * lib/alloca_.h: Likewise.
44344 * lib/acosl.c: Likewise.
44345 * lib/euidaccess.c: Likewise.
44346 * lib/allocsa.h: Likewise.
44348 2004-11-10 Simon Josefsson <jas@extundo.com>
44350 * m4/getaddrinfo.m4: New file.
44352 2004-11-10 Simon Josefsson <jas@extundo.com>
44354 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
44356 2004-11-10 Simon Josefsson <jas@extundo.com>
44358 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
44361 * modules/getaddrinfo: New file.
44363 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
44365 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
44367 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
44369 * lib/mktime.c (SHR): New macro, which is a portable
44370 substitute for >> that should work even on Crays.
44371 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
44372 Problem reported by Mark D. Baushke in
44373 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
44374 * lib/getdate.y (SHR): Likewise.
44376 * lib/strftime.c (SHR): Likewise.
44378 * lib/quotearg.c (struct quoting_options): Use unsigned int for
44379 quote_these_too, so that right shifts are well defined. All uses
44382 2004-11-10 Jim Meyering <jim@meyering.net>
44384 Ensure that no close failure goes unreported.
44385 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
44386 return early when it seems there's nothing to flush.
44387 Don't include __fpending.h.
44389 2004-11-10 Jim Meyering <jim@meyering.net>
44391 * modules/closeout (Depends-on): Remove fpending.
44393 2004-11-10 Jim Meyering <jim@meyering.net>
44395 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
44397 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
44399 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
44401 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
44402 and AC_REQUIRE when possible, to avoid duplicate checks.
44403 Check for <wchar.h>.
44405 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
44407 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
44409 2004-11-09 Bruno Haible <bruno@clisp.org>
44411 * m4/sockpfaf.m4: New file.
44413 2004-11-05 Bruno Haible <bruno@clisp.org>
44415 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
44416 Reported by Mark D. Baushke <mdb@cvshome.org>.
44418 2004-11-04 Bruno Haible <bruno@clisp.org>
44420 2004-09-11 Bruno Haible <bruno@clisp.org>
44421 * allocsa.valgrind: New file.
44422 2004-02-06 Bruno Haible <bruno@clisp.org>
44423 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
44424 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
44425 Reported by Christopher Seip <chris.seip@hp.com>.
44427 2004-11-04 Bruno Haible <bruno@clisp.org>
44429 * modules/allocsa (Files): Add lib/allocsa.valgrind.
44430 (Makefile.am): Distribute it.
44432 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
44434 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
44435 with errno == ERANGE if the buffer is too small.
44436 Problem reported by Mark D. Baushke.
44438 2004-11-03 Albert Chin <china@thewrittenword.com>
44439 Paul Eggert <eggert@cs.ucla.edu>
44441 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
44442 equivalent, substitute $ac_type for equivalent type rather than
44443 blindly using uint32_t *always* which won't work if uint32_t is not
44444 available. Define _UINT32_T to work around typedef of uint32_t if
44445 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
44448 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
44450 * m4/jm-macros.m4: Sync from coreutils.
44451 (gl_MACROS): Check for mbrlen, for pathchk.
44452 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
44454 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
44456 * lib/xreadlink.c (MAXSIZE): New macro.
44457 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
44458 size does not exceed MAXSIZE. Avoid cast.
44459 As suggested by Mark D. Baushke in
44460 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
44461 if readlink fails with buffer size just under MAXSIZE, try again
44464 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
44466 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
44468 2004-11-02 Derek R. Price <derek@ximbiot.com>
44469 and Paul Eggert <eggert@cs.ucla.edu>
44471 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
44472 (get_date): Overparenthesize to avoid GCC warning.
44474 2004-11-02 Bruno Haible <bruno@clisp.org>
44476 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
44479 2004-11-02 Bruno Haible <bruno@clisp.org>
44481 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
44482 function returns void.
44484 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
44486 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
44487 fflush_unlocked, flockfile, funlockfile, funlockfile,
44488 fputs_unlocked, putc_unlocked.
44490 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
44492 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
44493 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
44496 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
44498 * modules/getdate (Files): Add doc/getdate.texi.
44499 (Depends-on): Add setenv, xalloc.
44501 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
44503 * lib/getdate.y: Add support for TZ="foo" within a date string.
44504 Fix some bugs near time_t boundaries. Reject dates with
44505 out-of-range components, e.g., "Sept 31".
44506 Include <stdlib.h>, "setenv.h", "xalloc.h".
44507 (ISDIGIT_LOCALE): Remove; unused.
44508 Note that the TZ and time functions used here are not reentrant.
44509 (mktime_ok, get_tz): New functions.
44510 (TZBUFSIZE): New constant.
44511 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
44512 This requires that we sometimes generate our own TZ="XXX..." setting.
44514 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
44516 * doc/getdate.texi: New file, from coreutils with modifications for
44517 the new TZ parsing.
44519 2004-10-27 Derek R. Price <derek@ximbiot.com>
44521 * lib/mktime.c (not_equal_tm): Remove redundant check.
44523 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
44525 * modules/regex (lib_SOURCES): Add regex.c.
44526 Reported by James Youngman in
44527 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
44529 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
44531 * lib/getdate.y: Use Bison 1.875 features, and some minor
44532 code cleanups. This change does not affect semantics.
44533 Don't include <stdlib.h>; no longer needed.
44534 Don't include unlocked-io.h; only the "#if TEST" code uses
44535 stdio, and performance isn't crucial there.
44536 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
44537 Bison 1.875 features as described below.
44538 All uses of "PC." replaced by "pc->".
44539 (YYSTYPE): Add a forward declaration.
44540 (yylex, yyerror): Use full prototypes in forward decls.
44541 Use "%pure-parser" rather than obsolescent "%pure_parser".
44542 Use %parse-param and %lex-param instead of obsolescent
44543 YYPARSE_PARAM and YYLEX_PARAM.
44544 (meridian_table, month_and_day_table, time_units_table,
44545 relative_time_table, time_zone_table, military_table,
44546 lookup_zone, lookup_word, get_date):
44547 Use NULL instead of 0 where appropriate.
44548 (to_hour): Avoid abort (), to avoid a dependency on
44550 (yyerror, yylex): Now accepts parser_control * arg.
44551 (main) [TEST]: Use '\0' rather than 0 for char.
44553 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
44555 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
44557 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
44559 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
44560 It's now the caller's responsibility to handle the case where
44561 !HAVE_GETPAGESIZE && !defined getpagesize.
44563 * lib/mktime.c (leapyear): Arg is long int, not int.
44565 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
44567 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
44569 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
44571 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
44572 missing. Problem reported by James Youngman.
44574 2004-10-16 Simon Josefsson <jas@extundo.com>
44576 * gnulib-tool: Fix comments. Fix parse problem.
44577 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
44579 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
44581 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
44582 implementation of getopt_long. Problem reported by Alexander Taler in:
44583 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
44585 2004-10-15 Bruno Haible <bruno@clisp.org>
44587 * gnulib-tool: Untabify. Initialize supplied_libname.
44588 (func_usage): More homogenous output.
44589 (func_modules_transitive_closure, func_modules_to_filelist,
44590 func_emit_lib_Makefile_am): New functions.
44591 (func_import): New function, extracted from big case statement. Use
44592 func_get_license, func_modules_transitive_closure,
44593 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
44594 opt_lgpl. Don't use test -a, as it's not portable.
44595 (func_create_testdir): Use func_modules_transitive_closure,
44596 func_modules_to_filelist, func_emit_lib_Makefile_am.
44598 2004-10-15 Bruno Haible <bruno@clisp.org>
44600 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
44602 2004-10-15 Bruno Haible <bruno@clisp.org>
44604 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
44605 the portions belonging to each module.
44606 Suggested by Derek Robert Price <derek@ximbiot.com>.
44608 2004-10-12 Simon Josefsson <jas@extundo.com>
44610 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
44611 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
44614 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
44616 * modules/vsnprintf: New file.
44618 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
44620 * m4/vsnprintf.m4: New file.
44622 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
44624 * lib/vsnprintf.h: New file.
44625 * lib/vsnprintf.c: New file.
44627 2004-10-11 Bruno Haible <bruno@clisp.org>
44629 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
44632 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
44634 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
44636 2004-10-07 Bruno Haible <bruno@clisp.org>
44638 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
44639 fits into the provided buffer.
44641 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
44643 * lib/diacrit.c, diacrit.h: Add GPL notice.
44645 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
44647 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
44648 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
44649 This avoids a potential constant-folding bug.
44651 2004-10-05 Bruno Haible <bruno@clisp.org>
44653 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
44654 for the declaration of strsep.
44656 2004-10-05 Bruno Haible <bruno@clisp.org>
44658 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
44660 2004-10-04 Simon Josefsson <jas@extundo.com>
44662 * modules/memmem: New file.
44663 * tests/test-memmem.c: New file.
44664 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
44666 2004-10-04 Simon Josefsson <jas@extundo.com>
44668 * m4/memmem.m4: New file.
44670 2004-10-04 Simon Josefsson <jas@extundo.com>
44672 * lib/memmem.h: New file.
44673 * lib/memmem.c: New file, taken from glibc.
44675 2004-10-04 Simon Josefsson <jas@extundo.com>
44677 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
44678 '#ifdef USE_UNLOCKED_IO'.
44680 2004-10-04 Simon Josefsson <jas@extundo.com>
44682 * config/srclist.txt: Add memmem from glibc.
44684 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
44686 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
44688 * modules/argmatch, modules/argp, modules/closeout, modules/error,
44689 modules/exclude, modules/getdate, modules/getline,
44690 modules/getndelim2, modules/getpass, modules/getpass-gnu,
44691 modules/getusershell, modules/linebuffer, modules/md5,
44692 modules/mountlist, modules/posixtm, modules/readtokens,
44693 modules/readutmp, modules/regex, modules/sha1,
44694 modules/version-etc, modules/yesno:
44695 Remove dependency on unlocked-io.
44697 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
44699 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
44701 * m4/unlocked-io.m4: Add copyright notice.
44702 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
44704 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
44706 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
44707 * lib/xmalloc.c (xmemdup): Likewise.
44708 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
44709 XFREE): Remove these long-obsolescent macros.
44710 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
44711 * lib/xstrdup.c: Remove.
44713 * lib/regex.c (re_comp): Cast gettext return value to char *,
44714 Problem reported by Martin Neitzel via Mark D. Baushke.
44716 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
44718 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
44719 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
44720 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
44721 regex.c, sha1.c, version-etc.c, yesno.c:
44722 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
44723 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
44724 the includer's responsibility.
44726 Sync from coreutils.
44728 * lib/modechange.c (mode_compile): Don't decrement a pointer that
44729 points to the start of a string, as the C Standard says the
44730 resulting behavior is undefined.
44732 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
44733 simple -> simple_backups, numbered_existing ->
44734 numbered_existing_backups, numbered -> numbered_backups
44735 to avoid shadowing problems. All uses changed.
44736 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
44737 * lib/backupfile.c (check_extension, numbered_backup):
44738 Rename locals to avoid shadowing 'basename'.
44739 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
44742 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
44743 * lib/.cvsignore: Add getopt.h.
44745 2004-10-04 Bruno Haible <bruno@clisp.org>
44747 * modules/README: New file.
44748 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
44751 2004-10-02 Jim Meyering <jim@meyering.net>
44753 * lib/dirfd.h, getpagesize.h: Add copyright notice.
44755 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
44757 * modules/strsep: New file.
44759 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
44761 * m4/strsep.m4: New file.
44763 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
44765 * lib/strsep.h: New file.
44766 * lib/strsep.c: New file.
44768 2004-10-01 Simon Josefsson <jas@extundo.com>
44770 * lib/snprintf.c (snprintf): Handle size==0.
44772 2004-10-01 Simon Josefsson <jas@extundo.com>
44773 Bruno Haible <bruno@clisp.org>
44775 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
44776 (snprintf): Declare 'args'.
44778 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
44780 * lib/snprintf.c: Remove comments as to why each header is needed.
44782 2004-10-01 Bruno Haible <bruno@clisp.org>
44784 * MODULES.html.sh: Add strsep.
44786 2004-09-30 Simon Josefsson <jas@extundo.com>
44788 * modules/snprintf: New file.
44790 2004-09-30 Simon Josefsson <jas@extundo.com>
44792 * m4/snprintf.m4: New file.
44794 2004-09-30 Simon Josefsson <jas@extundo.com>
44796 * lib/snprintf.h, lib/snprintf.c: New files.
44798 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
44800 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
44801 (hol_entry_help): Never translate an empty string.
44802 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
44803 * lib/argp.h (OPTION_NO_TRANS): New option.
44805 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
44807 * modules/argp (Maintainer): Replace Simon Josefsson
44808 by Sergey Poznyakoff.
44810 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
44812 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
44813 changes merged back into glibc.
44815 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
44817 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
44819 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
44821 * lib/xvasprintf.c: Include xalloc.h.
44822 (xvasprintf): Use xalloc_die, not xmalloc_die.
44824 2004-09-29 Bruno Haible <bruno@clisp.org>
44826 * modules/alloca-opt: New file, derived from modules/alloca.
44827 * modules/allocsa: Depend on alloca-opt instead of alloca.
44828 * modules/setenv: Likewise.
44829 * modules/vasnprintf: Likewise.
44830 * MODULES.html.sh: Add alloca-opt.
44832 2004-09-28 Simon Josefsson <jas@extundo.com>
44834 * gnulib-tool: New parameter --lgpl, to asseert that modules are
44835 LGPL, and to replace license template from GPL to LGPL.
44837 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
44839 * modules/dummy: Change license to LGPL.
44841 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
44843 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
44845 2004-09-24 Simon Josefsson <jas@extundo.com>
44847 * modules/minmax (License): Change from GPL to LGPL.
44849 2004-09-23 Simon Josefsson <jas@extundo.com>
44851 * gnulib-tool (--import): Typo.
44853 2004-09-23 Simon Josefsson <jas@extundo.com>
44855 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
44857 2004-09-22 Bruno Haible <bruno@clisp.org>
44859 * modules/*: Add 'License' field.
44860 * gnulib-tool: Accept --extract-license option.
44861 (func_get_license): New function.
44863 2004-09-21 Bruno Haible <bruno@clisp.org>
44865 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
44866 Reported by Simon Josefsson.
44868 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
44870 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
44871 gl_AC_TYPE_LONG_LONG.
44873 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
44875 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
44877 2004-09-18 Simon Josefsson <jas@extundo.com>
44878 and Paul Eggert <eggert@cs.ucla.edu>
44880 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
44881 calls with autoreconf. Define GL_LIB.
44883 2004-09-14 Karl Berry <karl@gnu.org>
44885 * config/srclist.txt: unsync setenv.c, sigh.
44887 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
44889 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
44890 Problem reported by Bruno Haible in:
44891 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
44893 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
44895 * config/srclist.txt: Comment out argp-pvh.c.
44897 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
44899 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
44900 in case some system header has #define'd it. Problem reported by
44901 Soeren D. Schulze in
44902 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
44904 2004-09-09 Karl Berry <karl@gnu.org>
44906 * regex.[ch]: delete from the root. These were supposed to be
44907 synced with emacs cvs, but this has not happened for about
44908 a year, and anyway nothing else uses emacs regex.[ch].
44909 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
44910 lib/regex[.ch] is untouched.
44912 2004-09-09 Bruno Haible <bruno@clisp.org>
44914 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
44916 2004-09-09 Bruno Haible <bruno@clisp.org>
44918 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
44920 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
44922 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
44924 * modules/xvasprintf: New file.
44925 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
44927 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
44929 * lib/xvasprintf.h: New file.
44930 * lib/xvasprintf.c: New file.
44931 * lib/xasprintf.c: New file.
44933 2004-09-08 Bruno Haible <bruno@clisp.org>
44935 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
44937 2004-09-08 Bruno Haible <bruno@clisp.org>
44939 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
44940 length is > INT_MAX.
44941 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
44944 2004-09-08 Bruno Haible <bruno@clisp.org>
44946 * lib/stdint_.h: New file, taken from GNU clisp.
44948 2004-09-08 Bruno Haible <bruno@clisp.org>
44949 Oskar Liljeblad <oskar@osk.mine.nu>
44951 * modules/stdint: New file.
44952 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
44954 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
44956 Import from coreutils.
44957 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
44958 strings on unbounded length. alloca's performance benefits aren't
44959 that important here.
44960 (V_STRDUP): Remove.
44961 (parse_with_separator): New function, with most of the internals
44962 of the old parse_user_spec. Allow user to omit both user and group,
44963 for compatibility with FreeBSD.
44964 Clone only the user name, not the entire spec.
44965 Do not set *uid, *gid unless entirely successful.
44966 Avoid memory leak in some failing cases.
44967 Fix regression for USER.GROUP reported by Dmitry V. Levin in
44968 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
44969 (parse_user_spec): Rewrite to use parse_with_separator.
44971 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
44973 * modules/userspec: Don't depend on alloca.
44975 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
44977 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
44979 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
44981 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
44982 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
44983 utimecmp, utimens, xnanosleep. Rename sha to sha1.
44985 2004-08-16 Simon Josefsson <jas@extundo.com>
44987 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
44988 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
44989 Add --dry-run for --import.
44990 Let user provided command line parameters override configure.ac
44993 2004-08-12 Simon Josefsson <jas@extundo.com>
44995 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
44996 as discussed with Paul Eggert in threads rooted at
44997 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
44999 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
45000 Before, the test was empty, and relied on ELIDE_CODE in source
45002 (gl_PREREQ_GETOPT): New macro.
45003 (gl_GETOPT): Use them.
45005 2004-08-12 Simon Josefsson <jas@extundo.com>
45007 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
45008 * lib/getopt_.h: Renamed from getopt.h.
45010 2004-08-12 Simon Josefsson <jas@extundo.com>
45012 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
45013 Change default library name from libfoo to libgnu.
45014 Now, if you have a configure.ac that says:
45017 gl_MODULES(error getopt etcetera)
45019 you can import all you need by running:
45020 ../gnulib/gnulib-tool --import
45022 * modules/getopt (Files): Rename getopt.h to getopt_.h.
45023 (Makefile.am): Rewrite, use logic from argz.
45024 (Include): Use <getopt.h> instead of "getopt.h".
45026 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
45028 * modules/argp (Files): Add m4/unlocked-io.m4.
45029 (Depends-on): Add extensions.
45031 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
45033 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
45034 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
45035 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
45036 Check for program_invocation_name, program_invocation_short_name,
45037 flockfile, funlockfile, features.h, _getopt_long_only_r.
45039 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
45041 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
45042 its complicated substitute.
45043 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
45044 and program_invocation_name.
45045 (__argp_basename) [!_LIBC]: Remove; the only use was
45046 replaced by its body.
45047 (__argp_short_program_name): Change condition from
45048 !defined __argp_short_program_name to
45049 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
45050 to match argp-namefrob.h.
45051 (__argp_failure): Don't assume strerror_r returns char *.
45052 * lib/argp-parse.c (N_): Define unconditionally.
45053 (argp_default_options): Fill out initializers with 0 to avoid
45056 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
45058 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
45061 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
45063 Merge from coreutils.
45065 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
45067 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
45068 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
45070 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
45072 Merge from coreutils.
45074 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
45075 wmemchr or wmemcpy. Problem reported by Robert Dahlem
45076 for Reliant Unix 5.43.
45078 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
45079 (union fooround): Use uintmax_t, not long int.
45080 The rest is a merge from libc:
45081 [defined _LIBC]: Include <shlib-compat.h>.
45082 (_obstack) [defined _LIBC]: Remove after 2.3.4.
45084 * lib/settime.c (settime): Recode to avoid warning with
45087 * lib/strverscmp.c: Convert to UTF-8.
45089 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
45091 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
45094 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
45096 * modules/xalloc-die: New file.
45097 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
45099 * modules/md5 (Files): Add m4/uint32_t.m4.
45100 * modules/sha1: Renamed from modules/sha.
45102 Rename lib/sha.h to lib/sha1.h.
45103 Rename lib/sha.c to lib/sha1.c.
45104 Rename m4/sha.m4 to m4/sha1.m4.
45105 (lib_SOURCES): Likewise.
45106 (configure.ac): Rename gl_SHA to gl_SHA1.
45107 (Include): sha.h -> sha1.h.
45109 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
45111 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
45112 * m4/sha1.m4: Renamed from sha.m4.
45113 (gl_SHA1): Renamed from gl_SHA. All uses changed.
45115 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
45117 * lib/obstack.h (obstack_empty_p):
45118 Don't assume that chunk->contents is suitably aligned.
45119 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
45120 Likewise. Problem reported by Benno in
45121 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
45123 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
45124 readable. This could be improved further but it'd take some work.
45126 2004-08-08 Simon Josefsson <jas@extundo.com>
45128 * modules/xgethostname (Depends-on): Remove exit and error (not
45131 * modules/getpass-gnu: Add getpass.h.
45132 (Depends-on): Add stdbool.
45133 * modules/getpass: Add getpass.h.
45135 2004-08-08 Simon Josefsson <jas@extundo.com>
45137 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
45138 Check getpass declaration.
45140 2004-08-08 Simon Josefsson <jas@extundo.com>
45142 * lib/xgethostname.c: Don't include error.h (not used).
45144 * lib/getpass.h: Add.
45145 * lib/getpass.c: Include getpass.h first.
45147 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
45149 * lib/xalloc-die.c: New file.
45150 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
45152 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
45153 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
45155 (_, N_, xalloc_die): Move to xalloc-die.c.
45156 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
45157 so that we needn't mess with xalloc_msg_memory_exhausted.
45159 * lib/sha1.h: Renamed from sha.h.
45160 (SHA1_H): Renamed from _SHA_H.
45161 (sha1_ctx): Renamed from sha_ctx.
45162 (sha1_init_ctx): Renamed from sha_init_ctx.
45163 (sha1_process_block): Renamed from sha_process_block.
45164 (sha1_process_bytes): Renamed from sha_process_bytes.
45165 (sha1_finish_ctx): Renamed from sha_finish_ctx.
45166 (sha1_read_ctx): Renamed from sha_read_ctx.
45167 (sha1_stream): Renamed from sha_stream.
45168 (sha1_buffer): Renamed from sha_buffer.
45169 * lib/sha1.c: Likewise; renamed from sha.c.
45170 Do not include <sys/types.h>.
45171 Include <stddef.h> rather than <stdlib.h>.
45173 2004-08-08 Bruno Haible <bruno@clisp.org>
45175 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
45176 FILESYSTEM_PREFIX_LEN.
45177 * lib/progreloc.c: Likewise.
45178 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
45180 2004-08-06 Simon Josefsson <jas@extundo.com>
45182 * modules/progname (Depends-on): Don't depend on stdbool.
45184 2004-08-06 Simon Josefsson <jas@extundo.com>
45186 * modules/getsubopt: New file.
45187 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45190 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
45192 More merge from coreutils.
45194 * m4/utimens.m4, m4/utimecmp.m4: New files.
45195 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
45196 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
45197 prereq.m4, sha.m4: Import changes from coreutils.
45199 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
45201 More merge from coreutils.
45202 * modules/raise, modules/readtokens0, modules/utimens:
45203 * modules/utimecmp, module/xnanosleep: New files.
45204 * modules/strftime: Add lib/strftime.h.
45205 Change include from <time.h> to "strftime.h".
45206 * modules/yesno: Add lib/yesno.h.
45207 * modules/backupfile: Remove lib/addext.c.
45208 * modules/euidaccess: Add stat-macros.h.
45209 * modules/canonicalize, modules/euidaccess,
45210 modules/filemode, modules/lchown, modules/makepath,
45211 modules/rmdir, modules/stat: Likewise.
45213 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
45216 * lib/argp-help.c (make_hol, hol_append): Don't assume that
45217 SIZE_MAX is a valid preprocessor constant.
45218 (__argp_basename): Change from "#ifndef _LIBC"
45219 to "#ifndef __argp_short_program_name", so that
45220 we don't compile these functions for tar.
45222 More merges from coreutils.
45223 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
45224 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
45225 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
45226 * lib/addext.c: Remove; no longer needed.
45227 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
45228 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
45229 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
45230 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
45231 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
45232 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
45233 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
45234 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
45235 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
45236 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
45237 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
45238 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
45239 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
45240 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
45241 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
45242 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
45243 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
45244 Import changes from coreutils.
45246 2004-08-05 Simon Josefsson <jas@extundo.com>
45248 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
45250 2004-08-05 Simon Josefsson <jas@extundo.com>
45252 * m4/getsubopt.m4: New file.
45254 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
45256 Merge from coreutils.
45258 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
45259 * m4/getcwd-path-max.m4: New files.
45261 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
45262 FILESYSTEM_PREFIX_LEN ->
45263 FILE_SYSTEM_PREFIX_LEN.
45264 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
45265 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
45266 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
45267 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
45269 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
45270 prerequisite modules now handle the DOS stuff.
45271 Don't check for unistd.h.
45273 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
45275 Merge from coreutils.
45277 * lib/.gdb-history: Remove; this doesn't belong here.
45279 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
45280 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
45281 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
45282 * lib/getcwd.c: New files.
45284 * lib/dirname.h: Include <stdbool.h>.
45285 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
45286 for consistency with POSIX terminology. All uses changed.
45287 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
45288 (strip_trailing_slashes): Use bool for booleans.
45289 * lib/stripslash.c (strip_trailing_slashes): Likewise.
45291 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
45292 sometimes returns a positive errno value even when it succeeds.
45293 (print_errno_message) [!LIBC]: Fall back on strerror if
45294 __strerror_r fails.
45296 * lib/path-concat.c (mempcpy): Don't define if a system header defines
45297 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
45298 (longest_relative_suffix): New function.
45299 (path_concat): Use it. Assume first argument is not NULL.
45300 Port to DOS. Omit redundant separators.
45301 Report an error instead of returning NULL.
45302 Use mempcpy instead of memcpy.
45303 (xpath_concat): Remove: not declared or used.
45305 * lib/same.h: Include <stdbool.h>
45306 (same_name): Return bool, not int.
45307 * lib/same.c (same_name): Likewise.
45308 (errno): Don't declare; we assume C89 or better now.
45310 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
45311 if not already defined.
45313 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
45314 * lib/dup-safer.c (errno): Likewise.
45316 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
45318 Merge from coreutils.
45319 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
45320 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
45321 * modules/path-concat: Don't depend on strdup.
45323 2004-08-03 Simon Josefsson <jas@extundo.com>
45325 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
45326 * lib/progname.h: Don't include stdbool.h.
45328 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
45330 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
45331 * MODULES.html.sh (func_all_modules): Remove fatal.
45333 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
45335 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
45337 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
45339 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
45342 2004-08-02 Simon Josefsson <jas@extundo.com>
45344 * lib/getsubopt.h: New file, with comments from Bruno Haible.
45345 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
45346 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
45348 2004-08-01 Simon Josefsson <jas@extundo.com>
45350 * lib/xgetdomainname.c: Include stdlib.h, for free().
45352 2004-07-19 Bruno Haible <bruno@clisp.org>
45354 * MODULES.html.sh (func_all_modules): Add dummy.
45356 2004-07-16 Simon Josefsson <jas@extundo.com>
45358 * modules/dummy: New file.
45360 2004-07-16 Simon Josefsson <jas@extundo.com>
45362 * lib/dummy.c: New file.
45364 2004-07-16 Bruno Haible <bruno@clisp.org>
45366 * lib/backupfile.h: Add extern "C" for C++.
45367 * lib/closeout.h: Likewise.
45368 * lib/copy-file.h: Likewise.
45369 * lib/findprog.h: Likewise.
45370 * lib/full-write.h: Likewise.
45371 * lib/pathname.h: Likewise.
45372 * lib/progname.h: Likewise.
45373 * lib/stpcpy.h: Likewise.
45374 * lib/stpncpy.h: Likewise.
45375 * lib/strcase.h: Likewise.
45376 * lib/strstr.h: Likewise.
45377 * lib/xalloc.h: Likewise.
45379 * lib/mbswidth.h: Add extern "C" for C++.
45380 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
45382 2004-07-13 Robert Millan <robertmh@gnu.org>
45384 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
45386 2004-07-09 Simon Josefsson <jas@extundo.com>
45388 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
45389 failed without this.)
45391 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
45393 * modules/chown (Files): Add lib/fchown-stub.c, since
45394 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
45396 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
45398 * lib/fchown-stub.c: New file.
45400 2004-06-24 Jim Meyering <jim@meyering.net>
45402 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
45404 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
45406 * modules/argz: Omit "#include".
45408 * MODULES.html.sh (func_all_modules): Add calloc, to match
45409 2004-06-01 addition of calloc module.
45411 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
45413 * m4/argz.m4: New file, which is autoupdated from libtool.
45415 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
45417 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
45420 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
45422 * config/srclist-update: Don't insist on "USA." before the
45423 close-comment, as libtool omits the period and puts the */ on a
45425 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
45426 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
45428 2004-06-22 Gary V. Vaughan <gary@gnu.org>
45430 * modules/argz: New file.
45431 * MODULES.html.sh (func_all_modules): Add argz.
45433 2004-06-12 Jim Meyering <jim@meyering.net>
45434 and Paul Eggert <eggert@cs.ucla.edu>
45436 * modules/hash (Files): Add lib/xalloc.h.
45437 * modules/pipe (Depends-on): Add wait-process.
45438 * modules/stat (Depends-on): Add xalloc.
45439 * modules/userspec (Files): Add lib/userspec.h.
45442 Upgrade from gettext-0.13.
45443 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
45444 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
45445 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
45447 2004-06-10 Jim Meyering <jim@meyering.net>
45449 * lib/calloc.c: New file.
45451 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
45453 * lib/getdate.y (yylex): Allow space between sign and number.
45454 Problem reported by Dan Jacobson.
45456 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
45458 Merge from coreutils CVS.
45460 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
45461 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
45462 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
45463 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
45464 xstrtol.m4: Fix copyright date and/or serial number.
45466 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
45467 See if we need an fchown replacement.
45468 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
45469 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
45470 and use the replacement function if we detect either defect.
45472 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
45475 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
45476 and Jim Meyering <jim@meyering.net>
45478 Merge from coreutils CVS.
45480 * lib/stat-macros.h: New file, with contents from file-type.h
45481 and coreutils' system.h.
45482 * lib/file-type.c: Include "stat-macros.h".
45483 * lib/file-type.h (file_type): Move all macro definitions to new file,
45486 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
45487 Wrap old code with this conditional.
45488 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
45489 function that does not dereference symlinks.
45490 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
45492 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
45493 dependency problems.
45494 (xreadlink): Accept new arg SIZE, for efficiency.
45495 All decls and uses changed.
45496 * lib/xreadlink.h: Include <stddef.h>, for size_t.
45498 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
45499 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
45501 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
45504 2004-06-01 Jim Meyering <jim@meyering.net>
45506 * m4/calloc.m4: New file.
45508 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
45510 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
45511 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
45512 Also, fix a typo in a diagnostic.
45514 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
45516 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
45517 or AC_FUNC_REALLOC.
45519 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
45521 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
45522 macros to be defined.
45523 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
45524 the allocator returns NULL because the requested size is zero.
45526 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
45528 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
45529 var. Add comment explaining why libc still defines it. This
45530 merges the following patch from glibc:
45531 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
45533 2004-05-20 Andreas Schwab <schwab@suse.de>
45535 * m4/free.m4: Replace free if it not known to work, not the other
45538 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
45540 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
45541 present in glibc since revision 1.1 of this file.
45542 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
45543 obstack_alignment_mask, obstack_alloc, obstack_base,
45544 obstack_blank, obstack_blank_fast, obstack_chunk_size,
45545 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
45546 obstack_grow0, obstack_init, obstack_int_grow,
45547 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
45548 obstack_next_free, obstack_object_size, obstack_ptr_grow,
45549 obstack_ptr_grow_fast, obstack_room): Remove declarations of
45550 nonexistent functions.
45552 2004-05-18 Karl Berry <karl@gnu.org>
45554 * config/srclist.txt: break link for vasnprintf.c.
45556 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
45558 Port obstack to the AS/400, where pointers are 16 bytes wide and
45559 you cannot cast an integer to a valid pointer. This patch is
45560 currently waiting to be integrated into glibc; see
45561 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
45563 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
45564 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
45565 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
45566 (struct obstack): temp member is now a union of a pointer and
45567 an integer, instead of an integer. All integer uses changed.
45568 This does not affect the physical layout of struct obstack,
45569 except on hosts (like the AS/400) where the size or alignment of
45570 void * is greater than that of ptrdiff_t.
45571 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
45572 __STDC__)]: Store temporary in pointer member of union, not
45574 * lib/obstack.c: Include <stddef.h>, for offsetof.
45575 (struct fooalign): Remove; it doesn't need a name.
45576 (union fooround): Change double to long double, and add void *.
45577 (DEFAULT_ALIGNMENT): Use offsetof to compute.
45578 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
45579 not a macro. Hence the values are always int; so remove all
45580 casts-to-int in uses.
45582 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
45584 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
45585 we can get this patch merged into glibc.
45587 2004-05-17 Derek R. Price <derek@ximbiot.com>
45588 Paul Eggert <eggert@cs.ucla.edu>
45590 * m4/argp: Depend on alloca.
45592 2004-05-17 Derek R. Price <derek@ximbiot.com>
45593 Paul Eggert <eggert@cs.ucla.edu>
45595 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
45598 2004-05-17 Bruno Haible <bruno@clisp.org>
45600 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
45601 precision that consists of a '.' followed by an empty digit string.
45602 Patch by Tor Lillqvist <tml@iki.fi>.
45604 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
45606 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
45607 for backward compatibility with older code. We need our own
45608 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
45609 it under some other name, and our alloca.h will define it.
45611 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
45612 Derek Price <derek@ximbiot.com>
45614 * lib/alloca.c: Include <alloca.h>, to get our interface.
45615 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
45616 include <alloca.h> first. Use C89 prototype for alloca; this
45617 requires including <stddef.h> for size_t. Use extern "C" if C++.
45618 Use #elif for simplicity, since we can assume C89 now.
45619 Don't try to source the system alloca.h since it will not be found
45620 and to prevent recursively including its replacement.
45621 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
45622 * lib/regex.c: Likewise.
45624 2004-05-16 Derek Price <derek@ximbiot.com>
45625 Paul Eggert <eggert@cs.ucla.edu>
45627 getline cleanup. This changes the getndelim2 API: both order of
45628 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
45631 * lib/getline.c: Don't include stddef.h or stdio.h, since our
45632 interface does that.
45633 (getline): Always use getdelim, so that we don't have two
45634 copies of this code.
45635 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
45637 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
45638 (GETNDELIM2_MAXIMUM): New macro.
45639 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
45640 instead of the old practice of delim2==0. All callers changed.
45641 Return -1 on overflow, instead of returning junk.
45642 Do not set *linesize unless allocation succeeds.
45643 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
45644 that we include sys/types.h.
45645 * lib/getnline.h: Likewise.
45646 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
45647 (getndelim2): Reorder arguments.
45648 * lib/getnline.c (getnline, getndelim):
45649 Don't discard the NMAX argument.
45650 (getnline): Invoke getndelim, to avoid code duplication.
45651 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
45652 of (size_t) -1 by callers of the getnline family.
45654 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
45656 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
45657 Check for gettimeofday.
45658 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
45659 Check for settimeofday, stime.
45661 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
45663 * lib/nanosleep.c (suspended): Change its type from int to
45664 sig_atomic_t volatile.
45665 (first_call): Make it private to rpl_nanosleep, and have it
45666 be zero initially as that's a bit faster.
45667 (my_usleep): Round up fractional times instead of truncating them,
45668 as this is the usual meaning for 'sleep'.
45670 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
45672 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
45673 (ENOSYS): Define if not defined.
45674 (settime): Fall back on stime if it exists and settimeofday fails.
45675 But don't bother with fallbacks if a method fails with errno == EPERM.
45677 2004-05-11 Jim Meyering <jim@meyering.net>
45679 Prior to this change, the save_cwd caller required read access to the
45680 current directory on most systems (ones with the fchdir function).
45682 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
45683 fails, try write-only, and finally, resort to using xgetcwd.
45685 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
45687 * lib/obstack.c, obstack.h: Import changes from libc.
45689 2004-04-28 Bruno Haible <bruno@clisp.org>
45691 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
45692 also implicitly appends .exe to executables.
45693 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
45694 accepts Windows pathnames.
45695 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
45696 Treat Cygwin like Windows, since it now accepts Windows pathnames.
45697 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
45698 Treat Cygwin like Windows, since it now accepts Windows pathnames.
45699 Reported by Derek Robert Price <derek@ximbiot.com>.
45701 2004-04-21 Karl Berry <karl@gnu.org>
45703 * config/srclist.txt (localcharset.c): break sync.
45705 2004-04-20 Paul Eggert <eggert@twinsun.com>
45707 * m4/host-os.m4: Add a copyright notice.
45709 2004-04-20 Jim Meyering <jim@meyering.net>
45711 Change UTILS_ to gl_ in AC_DEFINE'd names.
45712 Change utils_- and jm_-prefixed variables, too.
45713 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
45714 UTILS_FUNC_MKDIR_TRAILING_SLASH.
45715 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
45717 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
45718 Don't emit trailing blanks.
45719 Also rename jm_-prefixed variables to have gl_ prefix.
45721 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
45722 Also rename jm_-prefixed variables to have gl_ prefix.
45724 * m4/jm-macros.m4: Reflect the renamings.
45725 * m4/prereq.m4: Likewise.
45727 2004-04-20 Jim Meyering <jim@meyering.net>
45729 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
45732 2004-04-20 Jim Meyering <jim@meyering.net>
45733 Bruno Haible <bruno@clisp.org>
45735 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
45736 memory when realloc fails.
45738 2004-04-19 Jim Meyering <jim@meyering.net>
45740 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
45741 now that readutmp.c may call `free (0)'.
45743 2004-04-19 Bruno Haible <bruno@clisp.org>
45745 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
45746 * m4/inttypes_h.m4: Likewise.
45747 * m4/stdint_h.m4: Likewise.
45748 * m4/intmax_t.m4: Likewise.
45749 * m4/uintmax_t.m4: Likewise.
45751 2004-04-18 Jim Meyering <jim@meyering.net>
45753 * m4/prereq.m4: Don't forbid jm_ prefix.
45755 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
45756 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
45757 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
45758 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
45759 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
45760 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
45761 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
45762 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
45763 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
45764 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
45765 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
45766 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
45767 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
45768 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
45769 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
45770 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
45771 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
45772 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
45773 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
45775 2004-04-18 Jim Meyering <jim@meyering.net>
45777 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
45778 failure, don't leak memory and do call END_UTMP_ENT.
45780 2004-04-16 Jim Meyering <jim@meyering.net>
45782 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
45783 coreutils' stat program.
45784 (gl_PREREQ): Don't require jm_PREREQ_STAT.
45786 2004-04-11 Paul Eggert <eggert@twinsun.com>
45788 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
45790 (CHAR_BIT): Remove, since we assume C89.
45791 Include <stdint.h> if available, as per current Autoconf CVS advice.
45793 2004-03-31 Jim Meyering <jim@meyering.net>
45795 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
45796 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
45797 * m4/xalloc.m4: Likewise.
45799 2004-03-30 Paul Eggert <eggert@twinsun.com>
45801 Merge from coreutils.
45803 * m4/inttostr.m4: New file.
45804 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
45805 Require AM_STDBOOL_H and gl_TIMESPEC instead.
45806 Require gl_CLOCK_TIME.
45807 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
45809 2004-03-30 Paul Eggert <eggert@twinsun.com>
45811 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
45812 not bool, to be more consistent with Unix conventions.
45813 Suggested by Bruno Haible.
45815 Merge from coreutils.
45817 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
45818 * lib/umaxtostr.c: New files.
45820 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
45821 the usual <time.h> dance.
45822 (get_date): Change signature to support fractional time stamps.
45823 All callers changed.
45824 * lib/getdate.y: Include "getdate.h" first, as we can now
45825 assume C89 and don't need to worry about 'const'.
45826 Similarly, include "unlocked-io.h" near start, not in middle.
45827 Include <limits.h>.
45828 (textint.value): Use long int rather than int.
45829 (textint.digits): Use size_t rather than int.
45830 (BILLION, LOG10_BILLION): New constants.
45831 (parser_control): New member rel_ns. Members day_ordinal,
45832 time_zone, month, day, hour, minutes, rel_year, rel_month,
45833 rel_day, rel_hour, rel_minutes, rel_seconds
45834 are now long int, not int. Member seconds is now struct timespec,
45835 not int. New member timespec_seen. Members dates_seen, days_seen,
45836 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
45838 (%union.intval): Now long int, not int.
45839 New member timespec.
45840 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
45841 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
45842 (spec): Now is a timespec or an item list.
45843 (timespec, items): New nonterminals.
45844 (time, rel, relunit, number, get_date):
45845 Add support for fractional seconds.
45846 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
45847 (gmtime, localtime, mktime): Remove decls; not needed with C89.
45848 (to_hour): First arg is now long int, not int.
45849 (to_year): Returns long int, not int.
45850 Don't treat year -70 like 70.
45851 (tm_diff): Returns long int, not int.
45852 (lookup_word): Use bool instead of int when appropriate.
45853 (yylex): Use size_t for count, not int.
45854 Detect overflow when parsing large integer constants.
45855 Add support for fractions.
45856 (get_date): Make pointers 'const' if possible.
45857 Use more-portable code to detect integer overflow.
45858 (main) [TEST]: Adjust to above changes. Test for localtime failure.
45859 Don't use ctime; it's not reliable if the year has >4 digits.
45861 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
45862 This is for compatibility with BSD.
45864 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
45865 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
45866 From coreutils' system.h.
45868 * lib/userspec.c: Don't include "posixver.h".
45869 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
45870 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
45871 compatible extension. Simplify code by removing a boolean int
45872 that was always nonzero if a string was nonnull.
45874 2004-03-30 Jim Meyering <jim@meyering.net>
45876 Merge from coreutils.
45878 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
45879 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
45880 on some systems one must include <grp.h> before it.
45881 Reported by Christian Krackowizer.
45883 2004-03-30 Jim Meyering <jim@meyering.net>
45885 Merge from coreutils.
45887 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
45889 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
45890 an empty input stream.
45892 * lib/readtokens.c: Include <stdbool.h>.
45893 (readtoken): Use `size_t' rather than int/long.
45894 All callers adjusted.
45895 Use `bool' rather than `int' where appropriate.
45896 Use memset rather than an explicit loop.
45897 Use x2nrealloc rather than xrealloc.
45898 Allow the use of `\0' as a delimiter.
45899 (readtokens): Likewise.
45900 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
45902 2004-03-30 Jim Meyering <jim@meyering.net>
45904 * m4/realloc.m4: Remove file, since now it does no more than
45905 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
45906 the `configure.ac' section of module/realloc.
45907 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
45909 2004-03-30 Bruno Haible <bruno@clisp.org>
45911 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
45914 2004-03-29 Paul Eggert <eggert@twinsun.com>
45916 Merge changes to getloadavg.c from coreutils and Emacs.
45918 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
45919 Define to an expression, not to the empty string.
45920 Include cloexec.h and xalloc.h.
45921 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
45922 Use set_cloexec_flag rather than rolling our own.
45923 * lib/cloexec.c, lib/cloexec.h: New files.
45925 2004-03-29 Paul Eggert <eggert@twinsun.com>
45927 * m4/cloexec.m4: New file.
45929 2004-03-18 Paul Eggert <eggert@twinsun.com>
45931 * lib/getopt.h: Sync with libc CVS.
45933 2004-03-18 Paul Eggert <eggert@twinsun.com>
45934 Bruno Haible <bruno@clisp.org>
45936 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
45939 2004-03-18 Paul Eggert <eggert@twinsun.com>
45940 Bruno Haible <bruno@clisp.org>
45942 * lib/mbswidth.h: Include <wchar.h> only if
45943 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
45945 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
45947 2004-03-09 Paul Eggert <eggert@twinsun.com>
45949 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
45950 Sync with libc CVS.
45951 * lib/getopt_int.h: New file, also synced from libc.
45953 2004-03-09 Paul Eggert <eggert@twinsun.com>
45955 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
45956 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
45957 Bring back getopt.c, getopt.h, getopt1.c.
45959 2004-03-07 Paul Eggert <eggert@twinsun.com>
45961 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
45962 All uses changed. Check for sa_sigaction member; this fixes
45963 a bug first reported by Jason Andrade in
45964 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
45966 2004-03-07 Paul Eggert <eggert@twinsun.com>
45968 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
45969 '#if' expressions. Unlike the code it replaces, it does not
45970 depend on (defined _SC_PAGESIZE). However, it does depend on
45971 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
45972 first reported by Jason Andrade in
45973 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
45975 2004-02-25 Simon Josefsson <jas@extundo.com>
45977 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
45979 2004-02-25 Simon Josefsson <jas@extundo.com>
45981 * lib/strdup.h: New file.
45982 * lib/strdup.c: Include it.
45983 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
45984 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
45986 2004-02-23 Karl Berry <karl@gnu.org>
45988 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
45989 (from fencepost.gnu.org:/gd/gnuorg).
45991 2004-02-23 Karl Berry <karl@gnu.org>
45993 * config/srclistvars.sh (GNUORG) [karl]: redefine.
45994 * config/srclist.txt: add maintain/standards documents.
45996 2004-02-18 Bruno Haible <bruno@clisp.org>
45998 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
45999 Reported by Derek Robert Price <derek@ximbiot.com>.
46001 2004-02-16 Karl Berry <karl@gnu.org>
46003 * config/mkinstalldirs, install-sh: update from automake.
46005 2004-02-06 Karl Berry <karl@gnu.org>
46007 * m4/po.m4: update from gettext 0.14.1.
46009 2004-02-06 Karl Berry <karl@gnu.org>
46011 * lib/config.charset: update from gettext 0.14.1.
46013 2004-02-05 Paul Eggert <eggert@twinsun.com>
46015 Add comments and code, prompted by suggestions from Bruno Haible
46017 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
46018 describing the enum quoting_style values.
46019 * lib/quotearg.c (quotearg_alloc): New function.
46020 (quotearg_buffer_restyled): Treat lone { and } as special.
46021 Treat = as special. Work around bug with older shells
46022 that "see" a '\' that is really the 2nd byte of a multibyte char.
46023 Quote empty string with shell_quoting_style.
46025 2004-02-03 Bruno Haible <bruno@clisp.org>
46027 * m4/pipe.m4: New file, from GNU gettext.
46029 2004-02-03 Bruno Haible <bruno@clisp.org>
46031 * lib/pipe.h: New file, from GNU gettext.
46032 * lib/pipe.c: New file, from GNU gettext.
46034 2004-01-27 Bruno Haible <bruno@clisp.org>
46036 * m4/execute.m4: New file, from GNU gettext.
46038 2004-01-27 Bruno Haible <bruno@clisp.org>
46040 * lib/execute.h: New file, from GNU gettext.
46041 * lib/execute.c: New file, from GNU gettext.
46042 * lib/w32spawn.h: New file, from GNU gettext.
46044 2004-01-24 Paul Eggert <eggert@twinsun.com>
46046 Merge from diffutils.
46048 * lib/file-type.c (file_type): Add typed memory objects.
46049 * lib/file-type.h (S_TYPEISTMO): New macro.
46051 * lib/c-stack.h (c_stack_action): Remove argv argument.
46052 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
46053 (die): Don't calculate message unless segv_action returns.
46054 (get_stack_location, min_address_from_argv, max_address_from_argv,
46055 volatile stack_base, volatile_stack_size): Remove.
46056 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
46057 that every segmentation violation is a stack overflow. (Ouch!)
46058 See Debian bug 136249 (still outstanding) for more info about why
46059 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
46061 2004-01-24 Paul Eggert <eggert@twinsun.com>
46063 Exit-status fix from coreutils.
46065 Use exit_failure consistently in place of EXIT_FAILURE,
46066 so that program exit statuses are consistent on failure.
46068 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
46069 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
46070 * lib/argmatch.h: Comment fix to match the above.
46071 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
46072 Now a macro referring to exit_failure, instead of a separate
46073 variable. Include "exitfail.h" to get it.
46074 * lib/xstrtol.h: Include "exitfail.h".
46075 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
46077 * lib/long-options.c (parse_long_options): Use prototype
46078 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
46081 2004-01-21 Jim Meyering <jim@meyering.net>
46083 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
46084 so as not to conflict with a different-sized __mktime_internal
46085 function in GNU libc.
46086 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
46087 Problem building statically-linked `ls' reported by Michael Brunnbauer.
46089 2004-01-20 Karl Berry <karl@gnu.org>
46091 * config/config.guess: update from config.
46093 * config/srclistvars.sh: GNUWWWLICENSES for karl.
46095 2004-01-20 Bruno Haible <bruno@clisp.org>
46097 Safer stack allocation.
46098 * lib/setenv.c: Include allocsa.h.
46099 (alloca): Remove fallback definition.
46100 (freea): Remove macro.
46101 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
46104 2004-01-20 Bruno Haible <bruno@clisp.org>
46106 * m4/eealloc.m4: New file, from GNU gettext.
46108 2004-01-20 Bruno Haible <bruno@clisp.org>
46110 * m4/allocsa.m4: New file, from GNU gettext.
46112 2004-01-20 Bruno Haible <bruno@clisp.org>
46114 * lib/xallocsa.h: New file, from GNU gettext.
46115 * lib/xallocsa.c: New file, from GNU gettext.
46117 2004-01-20 Bruno Haible <bruno@clisp.org>
46119 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
46121 2004-01-20 Bruno Haible <bruno@clisp.org>
46123 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
46124 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
46127 2004-01-20 Bruno Haible <bruno@clisp.org>
46129 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
46132 2004-01-20 Bruno Haible <bruno@clisp.org>
46134 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
46136 2004-01-20 Bruno Haible <bruno@clisp.org>
46138 * lib/eealloc.h: New file.
46140 2004-01-20 Bruno Haible <bruno@clisp.org>
46142 * lib/binary-io.h: Avoid warnings on Cygwin.
46144 2004-01-20 Bruno Haible <bruno@clisp.org>
46146 * lib/allocsa.h: New file, from GNU gettext.
46147 * lib/allocsa.c: New file, from GNU gettext.
46149 2004-01-18 Karl Berry <karl@gnu.org>
46151 * doc/gpl.texi, doc/lgpl.texi: new files.
46153 2004-01-18 Karl Berry <karl@gnu.org>
46155 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
46156 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
46158 2004-01-15 Paul Eggert <eggert@twinsun.com>
46160 Merge from coreutils.
46162 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
46163 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
46164 (gl_DEFAULT_POSIX2_VERSION): Move
46165 the documentation from 'configure' into 'config.hin',
46166 so that 'configure --help' isn't burdened by it and
46167 we don't have to worry about its formatting there.
46168 Reword the documentation so that it's more succinct
46169 and can be run together into a single paragraph.
46170 * m4/same.m4 (gl_SAME): Check for pathconf.
46172 2004-01-15 Paul Eggert <eggert@twinsun.com>
46174 Merge from coreutils.
46176 * lib/posixver.c: Include posixver.h.
46178 * lib/same.c: Include <stdbool.h>, <limits.h>.
46179 (_POSIX_NAME_MAX): Define if not defined.
46181 (same_name): If file names are silently truncated, report
46182 that the file names are the same if they are the same after
46183 the silent truncation.
46185 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
46186 conversion function.
46187 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
46188 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
46191 2004-01-15 Jim Meyering <jim@meyering.net>
46193 Merge from coreutils.
46195 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
46196 if no library is required.
46197 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
46198 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
46199 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
46200 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
46201 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
46202 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
46203 value, $ac_cv_search_crypt, if it's "none required".
46204 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
46205 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
46206 not gl_FUNC_GETLOADAVG.
46207 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
46208 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
46210 2004-01-15 Jim Meyering <jim@meyering.net>
46212 Merge from coreutils.
46214 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
46215 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
46216 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
46218 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
46219 optional configure-time default.
46221 * lib/version-etc.c (version_etc_copyright): Update copyright date.
46223 * lib/xreadlink.c (xreadlink): Correct outdated comment.
46225 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
46227 Merge from coreutils.
46229 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
46230 value, $ac_cv_search_nanosleep, if it's "none required".
46232 2004-01-14 Paul Eggert <eggert@twinsun.com>
46234 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
46235 with like-named macro in fnmatch.c.
46236 (EXT): Use an internal constant instead.
46238 Merge fnmatch patches from glibc.
46239 * lib/fnmatch.c (mbsinit): Remove define.
46240 Add libc_hidden_ver (__fnmatch, fnmatch).
46241 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
46242 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
46244 2004-01-14 Karl Berry <karl@gnu.org>
46246 * config/install-sh: update from automake.
46248 2004-01-13 Karl Berry <karl@gnu.org>
46250 * config/install-sh: update from automake.
46252 2004-01-09 Karl Berry <karl@gnu.org>
46254 * config/install-sh: update from automake.
46256 2004-01-05 Karl Berry <karl@gnu.org>
46258 * config/config.{sub,guess}: update from config.
46260 2003-12-31 Karl Berry <karl@gnu.org>
46262 * config/depcomp: update from automake.
46264 2003-12-14 Karl Berry <karl@gnu.org>
46266 * lib/config.charset: update from gettext-runtime.
46268 2003-12-03 Paul Eggert <eggert@twinsun.com>
46270 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
46271 Bug reported by Alfred M. Szmidt.
46273 2003-12-03 Bruno Haible <bruno@clisp.org>
46275 * m4/gettext.m4: Upgrade from gettext-0.13.
46276 * m4/po.m4: Upgrade from gettext-0.13.
46277 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
46278 * m4/intmax.m4: New file, from gettext-0.13.
46279 * m4/printf-posix.m4: New file, from gettext-0.13.
46281 2003-11-29 Karl Berry <karl@gnu.org>
46283 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
46285 2003-11-25 Paul Eggert <eggert@twinsun.com>
46286 Bruno Haible <bruno@clisp.org>
46288 * lib/printf-parse.h: Don't include sys/types.h.
46289 (ARG_NONE): New macro.
46290 (char_directive): Change type of *arg_index fields to size_t.
46291 * lib/printf-parse.c: Don't include sys/types.h.
46292 (SSIZE_MAX): Remove macro.
46293 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
46294 Remove unnecessary overflow check.
46295 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
46298 2003-11-25 Bruno Haible <bruno@clisp.org>
46300 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
46302 2003-11-25 Bruno Haible <bruno@clisp.org>
46304 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
46307 2003-11-24 Paul Eggert <eggert@twinsun.com>
46309 * modules/alloca: Remove dependency on xalloc.
46311 2003-11-24 Paul Eggert <eggert@twinsun.com>
46313 * lib/alloca.c: Remove dependency on xalloc module.
46314 (xalloc_die): Remove.
46315 (memory_full) [!defined emacs]: New macro.
46316 [!defined emacs]: Don't include xalloc.h.
46317 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
46318 address arithmetic overflows. Change datatypes a bit to avoid
46321 2003-11-22 Jim Meyering <jim@meyering.net>
46323 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
46326 2003-11-21 Karl Berry <karl@gnu.org>
46328 * config/config.{sub,guess}: update from config.
46330 2003-11-18 Karl Berry <karl@gnu.org>
46332 * config/config.{sub,guess}: update from config.
46334 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
46336 2003-11-17 Paul Eggert <eggert@twinsun.com>
46338 * README: Mention that S+T cannot overflow if S is the size of
46339 an existing object and T is sufficiently small.
46341 2003-11-17 Jim Meyering <jim@meyering.net>
46343 On systems without utime and without a utimes function capable of
46344 dealing with a NULL struct utimbuf* argument, this utime replacement
46345 could -- in unusual circumstances -- leak a file descriptor.
46346 * lib/utime.c: Include <unistd.h> and <errno.h>.
46347 (utime_null): Be sure to close `fd' and to preserve errno.
46348 Reported by Geoff Collyer via Arnold Robbins.
46350 2003-11-17 Bruno Haible <bruno@clisp.org>
46352 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
46353 (Depends-on): Add xsize.
46355 2003-11-17 Bruno Haible <bruno@clisp.org>
46357 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
46359 2003-11-17 Bruno Haible <bruno@clisp.org>
46361 * lib/vasnprintf.c (alloca): Remove fallback definition.
46362 (freea): Remove definition.
46363 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
46364 Reported by Paul Eggert.
46366 2003-11-16 Paul Eggert <eggert@twinsun.com>
46367 Bruno Haible <bruno@clisp.org>
46369 Protect against address arithmetic overflow.
46370 * lib/printf-args.h: Include stddef.h.
46371 (arguments): Change type of field 'count' to size_t.
46372 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
46373 'unsigned int' where appropriate.
46374 * lib/printf-parse.h: Include sys/types.h.
46375 (char_directive): Change type of *arg_index fields to ssize_t.
46376 (char_directives): Change type of fields 'count', max_*_length to
46378 * lib/printf-parse.c: Include sys/types.h and xsize.h.
46379 (SSIZE_MAX): Define fallback value.
46380 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
46381 instead of 'int' where appropriate. Check a_allocated, d_allocated
46382 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
46383 * lib/vasnprintf.c: Include xsize.h.
46384 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
46385 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
46386 overflow. Avoid wraparound when converting a width or precision from
46389 2003-11-16 Bruno Haible <bruno@clisp.org>
46391 Update from GNU gettext.
46392 * lib/printf-parse.c: Generalize to it can be compiled for wide
46394 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
46395 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
46396 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
46397 SNPRINTF): New macros.
46398 Don't include <alloca.h> if the file is used inside libintl.
46399 (local_wcslen): New function, for Solaris 2.5.1.
46400 (VASNPRINTF): Use it instead of wcslen.
46402 2003-11-16 Bruno Haible <bruno@clisp.org>
46404 * lib/xsize.h (xmax): New function.
46405 (xsum, xsum3, xsum4): Declare as "pure" functions.
46407 2003-11-12 Paul Eggert <eggert@twinsun.com>
46409 * modules/xalloc (Files): Undo latest change, since xalloc.h
46410 no longer needs SIZE_MAX or PTRDIFF_MAX.
46412 2003-11-12 Paul Eggert <eggert@twinsun.com>
46414 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
46417 2003-11-12 Paul Eggert <eggert@twinsun.com>
46419 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
46420 "return", to pacify some unknown compiler. Problem reported
46421 by Joerg Schilling.
46423 2003-11-12 Paul Eggert <eggert@twinsun.com>
46425 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
46426 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
46427 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
46428 heuristic is just as accurate as far as we know, and it removes a
46429 dependency on size_max.m4 and ptrdiff_max.m4.
46431 2003-11-11 Bruno Haible <bruno@clisp.org>
46433 * modules/xsize (Files): Add m4/size_max.m4.
46434 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
46436 2003-11-11 Bruno Haible <bruno@clisp.org>
46438 * m4/size_max.m4: New file.
46439 * m4/ptrdiff_max.m4: New file.
46440 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
46441 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
46442 (gl_XALLOC): Invoke it.
46444 2003-11-11 Bruno Haible <bruno@clisp.org>
46446 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
46447 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
46450 2003-11-10 Paul Eggert <eggert@twinsun.com>
46452 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
46453 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
46454 rejected some allocations of exactly SIZE_MAX - 2 bytes.
46456 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
46457 not (size_t) -1, since it's defined here.
46459 2003-11-09 Karl Berry <karl@gnu.org>
46461 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
46463 2003-11-06 Paul Eggert <eggert@twinsun.com>
46465 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
46466 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
46467 Reject sizes of exactly SIZE_MAX bytes.
46468 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
46469 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
46471 2003-11-05 Bruno Haible <bruno@clisp.org>
46473 * lib/xsize.h: Include limits.h, to avoid a possible collision with
46474 SIZE_MAX defined in <limits.h> on Solaris.
46476 2003-11-04 Jim Meyering <jim@meyering.net>
46478 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
46479 variable names, rather than @VAR@.
46480 * modules/poll: Likewise.
46482 2003-11-04 Bruno Haible <bruno@clisp.org>
46484 * modules/xsize: New file.
46485 * modules/linebreak: Depend on xsize.
46486 * MODULES.html.sh (func_all_modules): Add xsize.
46488 2003-11-04 Bruno Haible <bruno@clisp.org>
46490 * m4/xsize.m4: New file.
46492 2003-11-04 Bruno Haible <bruno@clisp.org>
46494 * lib/xsize.h: New file.
46495 * lib/linebreak.c: Include xsize.h.
46496 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
46497 argument for overflow.
46498 Suggested by Paul Eggert.
46500 2003-11-03 Karl Berry <karl@gnu.org>
46502 * config/config.{guess,sub}: update from config.
46504 2003-11-03 Jim Meyering <jim@meyering.net>
46506 * modules/userspec (lib_SOURCES): Add userspec.h.
46507 (Include): Add "userspec.h".
46508 Improve description.
46510 2003-11-03 Jim Meyering <jim@meyering.net>
46512 * lib/userspec.c: Include "userspec.h".
46513 * lib/userspec.h: New file.
46515 2003-11-03 Bruno Haible <bruno@clisp.org>
46517 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
46519 2003-11-03 Bruno Haible <bruno@clisp.org>
46521 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
46522 available, to avoid (extremely rare) race condition.
46523 Suggested by Paul Eggert.
46525 2003-11-02 Karl Berry <karl@gnu.org>
46527 * config/srclist.txt (vasprintf.c): sync broken, sigh.
46529 2003-10-31 Paul Eggert <eggert@twinsun.com>
46531 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
46532 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
46533 (read_filesystem_list): Set and use me_type_malloced.
46534 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
46535 whatever the type happens to be), for brevity and consistency.
46536 Check for size calculation overflow on Alphas running OSF/1.
46538 2003-10-31 Jim Meyering <jim@meyering.net>
46540 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
46542 * lib/linebuffer.c: Include <string.h> for declaration of memset.
46544 2003-10-30 Paul Eggert <eggert@twinsun.com>
46545 Bruno Haible <bruno@clisp.org>
46547 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
46548 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
46550 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
46552 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
46553 netbsd*-gnu*. Suggested by Robert Millan.
46555 2003-10-29 Paul Eggert <eggert@twinsun.com>
46557 * modules/group-member: Depend on stdbool.
46559 2003-10-29 Paul Eggert <eggert@twinsun.com>
46561 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
46563 2003-10-29 Paul Eggert <eggert@twinsun.com>
46565 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
46566 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
46567 after the 'gnu' in these cases. This fixes some bugs in the
46568 previous change, and is based on suggestions by Robert Millan.
46570 2003-10-29 Paul Eggert <eggert@twinsun.com>
46572 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
46573 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
46575 * lib/quotearg.c (quotearg_n_options): Use it.
46576 * lib/group-member.c: Include <stdbool.h>.
46577 (free_group_info): Arg is now const *; don't free arg.
46578 (get_group_info): Now returns bool and accepts struct group_info *,
46579 rather than returning a malloc'ed struct group_info *.
46580 All uses changed. Check for overflow in internal size calculation.
46582 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
46583 rather than xmalloc/xrealloc.
46584 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
46585 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
46586 conformance bug: the old code used a pointer after freeing the
46587 storage that it addressed.
46588 * lib/hash.c (hash_initialize): Simplify the code by using
46589 xalloc_oversized rather than doing it by hand.
46590 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
46591 the buffer preserved. Use free and xmalloc instead.
46592 * lib/quotearg.c (quotearg_n_options): Likewise.
46593 Use a simpler test for size overflow. Don't use xalloc_oversized
46594 because unsigned int might be wider than size_t (!); this suggests
46595 that we should switch from unsigned int to size_t for slot numbers.
46597 2003-10-28 Paul Eggert <eggert@twinsun.com>
46599 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
46600 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
46601 NetBSD kernels. Requested by Richard Stallman.
46603 2003-10-27 Paul Eggert <eggert@twinsun.com>
46605 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
46606 to allocate the returned structure. Do not allocate a subarray,
46607 as x2nrealloc will do that.
46608 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
46609 instead of xnrealloc.
46610 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
46612 2003-10-27 Bruno Haible <bruno@clisp.org>
46614 * lib/stdbool_.h: Better support for BeOS.
46616 2003-10-26 Paul Eggert <eggert@twinsun.com>
46618 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
46621 2003-10-26 Paul Eggert <eggert@twinsun.com>
46623 * lib/xalloc.h (xalloc_oversized): New static inline function, for
46624 callers that want to do their own size-overflow checking. Include
46625 <stdbool.h>, since xalloc_oversized returns bool.
46626 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
46627 to use xalloc_oversized.
46629 Add two functions x2realloc, x2nrealloc, for programs that grow
46630 arrays dynamically by doubling their sizes.
46631 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
46632 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
46635 Port to C99 semantics for 'inline' of external functions.
46636 Bug reported by Bruno Haible.
46637 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
46638 with the old contents of xnmalloc.
46639 (xnmalloc, xmalloc): Use it.
46640 (xnrealloc_inline): New static inline function,
46641 with the old contents of xnrealloc.
46642 (xnrealloc, xrealloc): Use it.
46644 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
46647 2003-10-26 Karl Berry <karl@gnu.org>
46649 * config/srclist.txt (COPYING.DOC): no longer available from
46650 /gd/gnuorg; don't know where the ultimate source is.
46652 2003-10-25 Paul Eggert <eggert@twinsun.com>
46654 Fix several address-calculation bugs in the hash modules,
46655 plus some minor code cleanup.
46657 * lib/hash.h: Include <stdbool.h>, for bool.
46658 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
46659 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
46660 hash_get_n_entries, hash_get_max_bucket_length,
46661 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
46662 hash_rehash): Use size_t rather than unsigned.
46663 * lib/hash.c (struct hash_table, hash_get_n_buckets,
46664 hash_get_n_buckets_used, hash_get_n_entries,
46665 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
46666 hash_get_entries, hash_do_for_each, hash_string, is_prime,
46667 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
46669 (SIZE_MAX): Define if not defined.
46670 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
46671 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
46673 Use const * when possible.
46674 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
46675 (check_tuning): Fix bug: if tuning parameters were very close to
46676 0 or 1, rounding errors could have caused subscript violations.
46677 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
46678 (hash_initialize): Add 'fail:' label
46679 to free table and return NULL, and use it to simplify code.
46680 Use calloc rather than clearing the storage ourself.
46681 (hash_initialize, hash_rehash): Check for arithmetic overflow in
46682 buffer size calculations.
46683 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
46684 Include <stddef.h>, for size_t.
46685 * lib/hash-pjw.c (hash_pjw): Likewise.
46686 Switch to method described by Bruno Haible.
46687 Include <limits.h>, for CHAR_BIT.
46688 (SIZE_BITS): New macro.
46690 2003-10-23 Paul Eggert <eggert@twinsun.com>
46692 * m4/getline.m4 (AM_FUNC_GETLINE):
46693 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
46694 hosts. Problem reported by Derek Robert Price in
46695 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
46696 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
46697 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
46699 2003-10-21 Paul Eggert <eggert@twinsun.com>
46701 * lib/getndelim2.c (getndelim2): When size calculation overflows,
46702 ceiling the allocation at NMAX bytes rather than silently
46703 discarding input bytes before NMAX is reached. This makes
46704 a difference only if NMAX exceeds SIZE_MAX / 2.
46706 * lib/obstack.c: Merge from glibc.
46707 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
46708 Add libc_hidden_def (_obstack_newchunk).
46709 (_obstack_free) [! defined _LIBC]: Remove.
46710 [defined _LIBC]: Make a strong alias from obstack_free, rather than
46711 a clone of the function body.
46712 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
46713 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
46715 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
46717 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
46720 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
46721 (obstack_ptr_grow_fast, obstack_int_grow_fast):
46722 Don't use lvalue casts, as GCC plans to remove support for them
46723 in GCC 3.5. Reported by Joseph S. Myers. This bug
46724 was also present in the non-GCC version, indicating that this
46725 code had always been buggy and had never been widely used.
46726 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
46727 Use the fast variant of each macro, rather than copying the
46728 definiens of the fast variant; that way, we'll be more likely to
46729 catch future bugs in the fast variants.
46731 2003-10-20 Bruno Haible <bruno@clisp.org>
46733 * modules/wait-process: New file.
46734 * MODULES.html.sh (func_all_modules): Add wait-process.
46736 2003-10-20 Bruno Haible <bruno@clisp.org>
46738 * m4/wait-process.m4: New file.
46740 2003-10-20 Bruno Haible <bruno@clisp.org>
46742 * lib/wait-process.h: New file, from GNU gettext.
46743 * lib/wait-process.c: New file, from GNU gettext.
46745 2003-10-19 Jim Meyering <jim@meyering.net>
46747 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
46750 2003-10-18 Karl Berry <karl@gnu.org>
46752 * config/config.guess: update from config.
46754 2003-10-16 Paul Eggert <eggert@twinsun.com>
46756 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
46757 (getgroups): First arg is int, not size_t.
46758 Don't let 'free' mangle errno.
46760 2003-10-16 Paul Eggert <eggert@twinsun.com>
46762 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
46764 2003-10-16 Karl Berry <karl@gnu.org>
46766 * config/config.{guess,sub}: update from config.
46768 2003-10-16 Jim Meyering <jim@meyering.net>
46770 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
46773 2003-10-15 Paul Eggert <eggert@twinsun.com>
46775 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
46776 (SIZE_MAX): Remove.
46777 (new_exclude, add_exclude_file): Initial size no longer needs to
46779 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
46780 our own address arithmetic overflow checking.
46782 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
46783 (fnmatch): Do not alloca more than 2000 wide characters;
46784 instead, use malloc for large buffers.
46785 Check for address arithmetic overflow, and return -1
46786 with errno set to ENOMEM in that case.
46787 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
46788 (NEW_PATTERN): Do not alloca more than 8000 bytes;
46789 instead, return -1. Check for address arithmetic overflow.
46791 2003-10-14 Paul Eggert <eggert@twinsun.com>
46793 Handle invalid suffixes and overflow independently, so that
46794 callers can treat them independently as needed. Fix some bugs in
46795 suffix handling, e.g., "100k@" was not diagnosed as an invalid
46796 suffix for a human-readable blocksize. The major caller-visible
46797 change is the addition of a new
46798 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
46799 that both overflow and suffix chars were found.
46801 * lib/human.c (humblock): Don't check separately for invalid suffix
46802 char; that is xstrtoumax's job (now that its bug is fixed).
46803 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
46804 INTMAX_MAX]: New macros.
46805 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
46806 TYPE_MAXIMUM): New macros.
46807 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
46808 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
46809 if overflow occurs, as it's what __strtol does and it's more useful
46811 (__xstrtol): If __strtol reports some error other than ERANGE,
46812 reflect it to the caller as LONGINT_INVALID. If it reports
46813 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
46814 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
46815 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
46817 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
46818 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
46819 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
46820 [defined UINTMAX_MAX]: New macros.
46822 2003-10-14 Bruno Haible <bruno@clisp.org>
46824 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
46826 2003-10-14 Bruno Haible <bruno@clisp.org>
46828 * m4/sig_atomic_t: New file, from GNU gettext.
46829 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
46831 2003-10-14 Bruno Haible <bruno@clisp.org>
46833 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
46834 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
46835 Also use volatile where needed.
46837 2003-10-12 Paul Eggert <eggert@twinsun.com>
46839 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
46840 Change maintainer from Bruno Haible to 'all'.
46842 2003-10-12 Paul Eggert <eggert@twinsun.com>
46844 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
46846 2003-10-12 Paul Eggert <eggert@twinsun.com>
46848 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
46849 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
46850 and define in terms of the other primitives.
46851 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
46852 (SIZE_MAX): Define if not already defined.
46853 (array_size_overflow): New function.
46854 (xalloc_die): Abort instead of exiting if 'error' returns.
46855 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
46856 (xmalloc, xrealloc): Use them.
46857 (xcalloc): Check for address arithmetic overflow.
46858 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
46859 a bit faster than strcpy.
46861 2003-10-10 Simon Josefsson <jas@extundo.com>
46863 * modules/argp (Depends-on): Add restrict and strcase.
46865 2003-10-10 Simon Josefsson <jas@extundo.com>
46867 * m4/argp.m4: Add AC_C_INLINE.
46869 2003-10-08 Paul Eggert <eggert@twinsun.com>
46871 Merge getpass from libc, plus a few fixes.
46873 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
46874 Include <stdbool.h>.
46875 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
46876 __fsetlocking to empty.
46877 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
46878 do include <bits/libc-lock.h>.
46879 Do not include <fcntl.h>; not needed.
46880 [_LIBC]: Include <wchar.h>.
46881 (NOTCANCEL_MODE): New macro.
46882 (flockfile, funlockfile) [_LIBC]: New macros.
46883 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
46884 [!_LIBC]: New macros.
46885 (call_fclose): New function.
46886 (getpass): Use it. Save tty stream separately; this simplifies the
46887 code and makes it more reliable if stdin happens to equal stdout.
46888 Invoke __fsetlocking on tty.
46889 Handle thread cancellation if needed.
46890 Namespace cleanup (use __tcgetattr, __getline).
46891 Use bool for Booleans.
46892 [USE_IN_LIBIO]: Handle wide streams.
46893 [!_LIBC]: Unconditionally do the fseek, since we don't know what
46894 stream might go where.
46896 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
46897 doesn't have to include <stdio.h> before us.
46898 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
46899 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
46900 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
46901 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
46902 if not declared, so that we can use getpass.c code from libc without
46904 (flockfile, ftrylockfile, funlockfile): New macros.
46906 2003-10-08 Paul Eggert <eggert@twinsun.com>
46908 * modules/getpass: Depend on stdbool.
46910 2003-10-08 Paul Eggert <eggert@twinsun.com>
46912 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
46914 2003-10-07 Karl Berry <karl@gnu.org>
46916 * config/config.{guess,sub}: update from config.
46918 2003-10-06 Jim Meyering <jim@meyering.net>
46919 Bruno Haible <bruno@clisp.org>
46921 This lets translators provide better translations for the
46922 "Written by ..." part of --version output.
46923 * lib/version-etc.h: Include stdarg.h.
46924 (version_etc_copyright): Declare as readonly.
46925 (version_etc): Make this function variadic with a NULL-terminated list
46926 of author name strings.
46927 (version_etc_va): New declaration.
46928 * lib/version-etc.c: Include stdarg.h, stdlib.h.
46929 (version_etc_copyright): Declare as readonly.
46930 (version_etc_va): New function. Provide a different translatable string
46931 for each possible number of authors < 10. Abbreviate when there are 10
46933 (version_etc): Make this function variadic. Call version_etc_va.
46934 Suggestion from Gary V. Vaughan.
46936 * lib/long-options.h (parse_long_options): Change prototype: the
46937 authors string is moved to the end and becomes variadic.
46938 * lib/long-options.c: Include stdarg.h.
46939 (parse_long_options): Make this function variadic, too.
46940 Call version_etc_va, not version_etc.
46942 2003-10-06 Bruno Haible <bruno@clisp.org>
46944 * modules/version-etc-2: Remove file.
46945 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
46947 2003-10-06 Bruno Haible <bruno@clisp.org>
46949 * modules/fatal-signal: New file.
46950 * MODULES.html.sh (func_all_modules): Add fatal-signal.
46952 2003-10-06 Bruno Haible <bruno@clisp.org>
46954 * m4/fatal-signal.m4: New file.
46955 * m4/signalblocking.m4: New file, from GNU gettext.
46957 2003-10-06 Bruno Haible <bruno@clisp.org>
46959 * lib/version-etc-2.h: Remove file.
46960 * lib/version-etc-2.c: Remove file.
46962 2003-10-06 Bruno Haible <bruno@clisp.org>
46964 * lib/fatal-signal.h: New file, from GNU gettext.
46965 * lib/fatal-signal.c: New file, from GNU gettext.
46967 2003-10-05 Paul Eggert <eggert@twinsun.com>
46969 * README: Rework advice for preventing empty .o files.
46970 Don't recommend ELIDE constructs. Recommend <stddef.h>,
46973 2003-10-04 Karl Berry <karl@gnu.org>
46975 * lib/argp*: update from libc.
46977 2003-10-04 Karl Berry <karl@gnu.org>
46979 * config/config.{guess,sub}: update from config.
46981 2003-10-02 Bruno Haible <bruno@clisp.org>
46983 * modules/lchown (Include): Add lchown.h.
46984 * modules/time_r (Include): Use "..." syntax.
46985 * modules/xgetdomainname (Include): Add xgetdomainname.h.
46987 2003-10-01 Simon Josefsson <jas@extundo.com>
46989 * MODULES.html.sh (func_all_modules): Move gethostname from section
46990 'based on' to section 'lacking' POSIX:2001.
46992 2003-10-01 Larry Jones <lawrence.jones@eds.com>
46994 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
46995 to output mode on the same stream.
46997 2003-09-29 Paul Eggert <eggert@twinsun.com>
46999 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
47000 Fix arg typo in previous patch.
47002 2003-09-28 Jim Meyering <jim@meyering.net>
47004 * lib/error.c: Correct cpp indentation.
47006 2003-09-27 Paul Eggert <eggert@twinsun.com>
47008 * modules/free: New file.
47010 2003-09-27 Paul Eggert <eggert@twinsun.com>
47012 * m4/free.m4: New file.
47014 2003-09-27 Paul Eggert <eggert@twinsun.com>
47016 * lib/minmax.h (MIN, MAX)
47017 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
47018 Omit the special code that used __typeof__, since we worry that
47019 it could be more trouble than it's worth. See:
47020 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
47021 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
47023 * lib/free.c: New file.
47025 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
47027 Trivial fixes to Makefile.am parts of module listings.
47028 * modules/strstr: Append strstr.h to lib_SOURCES.
47029 * modules/strcase: Likewise, for strcase.h.
47031 2003-09-27 Karl Berry <karl@gnu.org>
47033 * config/mkinstalldirs: update from automake.
47035 2003-09-26 Paul Eggert <eggert@twinsun.com>
47037 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
47038 (error_tail): Do not loop, reallocating temporary buffer, since
47039 the output cannot contain more wide characters than the input
47040 contains bytes, the size must be big enough already. This avoids
47041 one potential size overflow calculation. Check for size overflow
47042 when calculating temporary buffer size. Free temporary buffer
47043 when done, if it was allocated with malloc; this plugs a memory
47044 leak. Remove casts from void * to pointers, that are no longer
47045 needed now that we're assuming C89 or better.
47047 Merge error changes from glibc.
47049 * lib/error.c, error.h: Update copyright notice header to match glibc.
47050 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
47051 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
47052 Disable cancellation while printing error.
47053 * lib/error.h: Prepend __ to parameter names.
47055 2003-09-26 Jim Meyering <jim@meyering.net>
47057 * lib/error.c (error_tail): Move some declarations
47058 into inner scope where the local variables are used.
47060 2003-09-26 Bruno Haible <bruno@clisp.org>
47062 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
47064 Don't define stpncpy through config.h; it's now done through stpncpy.h.
47066 2003-09-26 Bruno Haible <bruno@clisp.org>
47068 * lib/stpncpy.h (gnu_stpncpy): New declaration.
47069 (stpncpy): Define as alias for gnu_stpncpy.
47070 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
47072 2003-09-25 Simon Josefsson <jas@extundo.com>
47074 * lib/xgetdomainname.h: New file.
47075 * lib/xgetdomainname.c: New file.
47077 2003-09-25 Simon Josefsson <jas@extundo.com>
47078 Bruno Haible <bruno@clisp.org>
47080 * modules/getdomainname: New file.
47081 * modules/xgetdomainname: New file.
47082 * MODULES.html.sh (func_all_modules): Add getdomainname,
47085 2003-09-25 Simon Josefsson <jas@extundo.com>
47086 Bruno Haible <bruno@clisp.org>
47088 * m4/getdomainname.m4: New file.
47090 2003-09-25 Simon Josefsson <jas@extundo.com>
47091 Bruno Haible <bruno@clisp.org>
47093 * lib/getdomainname.h: New file.
47094 * lib/getdomainname.c: New file.
47096 2003-09-25 Karl Berry <karl@gnu.org>
47098 * lib/argp-fmtstream.c, argp-help.c: update from libc.
47100 2003-09-25 Karl Berry <karl@gnu.org>
47102 * config/install-sh: update from automake.
47104 2003-09-25 Bruno Haible <bruno@clisp.org>
47106 * modules/version-etc-2: New file, from modules/version-etc with
47108 * MODULES.html.sh (func_all_modules): Add version-etc-2.
47110 2003-09-25 Bruno Haible <bruno@clisp.org>
47112 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
47113 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
47115 2003-09-24 Simon Josefsson <jas@extundo.com>
47117 * modules/xgethostname: Add xgethostname.h.
47119 2003-09-24 Paul Eggert <eggert@twinsun.com>
47121 * lib/linebuffer.c (freebuffer): Don't free the argument, just
47122 the buffer associated with the argument. Bug reported by
47125 2003-09-24 Paul Eggert <eggert@twinsun.com>
47127 * README: Document assumptions that 'int' is at least 32 bits
47128 wide, that integer arithmetic is 2's complement without overflow,
47129 that there are no holes in integer values, that adding sizes of
47130 two nonoverlapping objects can't overflow, and that all-bits-zero
47131 yields scalar zero. Fix spelling and capitalization typos.
47133 2003-09-19 Karl Berry <karl@gnu.org>
47135 * lib/argp.h: update from libc.
47137 2003-09-17 Paul Eggert <eggert@twinsun.com>
47139 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
47140 to avoid spurious warnings like "AC_RUN_IFELSE was called before
47141 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
47143 2003-09-17 Paul Eggert <eggert@twinsun.com>
47145 * gnulib-tool: Use "test -h", not "test -L", for portability
47146 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
47147 (tags_regexp): Remove, since \| doesn't conform to POSIX.
47148 (sed_extract_prog): Issue s commands one-by-one, rather than
47149 using \| in one s command.
47151 2003-09-16 Paul Eggert <eggert@twinsun.com>
47153 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
47154 input error, instead of returning NULL the next time we are called
47155 (and therefore losing track of errno).
47157 2003-09-16 Bruno Haible <bruno@clisp.org>
47159 * gnulib-tool (func_create_testdir): Warn about duplicated
47162 2003-09-15 Paul Eggert <eggert@twinsun.com>
47164 * modules/argmatch, modules/fatal, modules/obstack,
47165 modules/xalloc, modules/xgethostname: Sort dependencies by
47166 importance, not alphabetically.
47168 2003-09-15 Paul Eggert <eggert@twinsun.com>
47170 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
47171 fails, so that the caller gets the proper errno.
47173 * lib/readutmp.c (read_utmp): Likewise.
47174 Check for fstat error. Close stream and free storage
47177 2003-09-14 Karl Berry <karl@gnu.org>
47179 * config/srclist.txt (strdup.c): disable for c89 changes.
47181 2003-09-14 Jim Meyering <jim@meyering.net>
47183 * lib/getloadavg.c: Correct cpp indentation.
47184 * lib/strdup.c: Likewise.
47185 * lib/vasnprintf.c: Likewise.
47187 2003-09-14 Bruno Haible <bruno@clisp.org>
47189 * modules/fwriteerror: New file.
47190 * MODULES.html.sh (func_all_modules): Add fwriteerror.
47192 2003-09-14 Bruno Haible <bruno@clisp.org>
47194 * lib/fwriteerror.h: New file.
47195 * lib/fwriteerror.c: New file.
47197 2003-09-12 Paul Eggert <eggert@twinsun.com>
47199 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
47200 modules/xgethostname, modules/xalloc: Depend on exit.
47202 2003-09-12 Paul Eggert <eggert@twinsun.com>
47204 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
47206 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
47207 and AC_MINIX, too, so that their extensions are available.
47209 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
47210 This macro has been superseded by gl_BACKUPFILE.
47212 More patches to assume C89 or better.
47214 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
47216 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
47218 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
47219 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
47220 Include <string.h>, <stdlib.h> unconditionally.
47221 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
47222 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
47223 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
47224 headers or for string.h.
47225 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
47228 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
47230 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
47231 * m4/userspec.m4 (gl_USERSPEC): Likewise.
47232 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
47233 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
47234 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
47235 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
47237 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
47238 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
47239 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
47241 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
47242 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
47243 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
47246 2003-09-12 Paul Eggert <eggert@twinsun.com>
47248 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
47249 * lib/obstack.c [!defined _LIBC]: Likewise.
47250 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
47251 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
47252 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
47254 More changes to assume C89 or better.
47256 * lib/error.c (error_tail): Assume vprintf.
47258 * lib/argmatch.c (getenv): Remove decl.
47259 * lib/progreloc.c (get_full_program_name): Define via prototype.
47260 * lib/setenv.c (clearenv): Likewise.
47261 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
47263 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
47264 (malloc, memcpy): Remove decls.
47265 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
47266 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
47267 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
47268 (memcpy): Remove macro.
47269 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
47270 (__P): Remove. All uses removed.
47271 (PTR): Remove. All uses changed to void *.
47272 (CHAR_BIT, NULL): Remove.
47273 (spaces, zeros, memset_space, memset_zero)
47274 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
47276 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
47277 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
47278 Define with prototype.
47279 Remove now-unnecessary prototype decl.
47280 (extra_args_spec): Assume ANSI C. All uses changed.
47281 (extra_args_spec_iso): Remove.
47282 (my_strftime, emacs_strftimeu): Define via prototype.
47283 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
47285 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
47286 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
47287 (strtoul, strtol): Remove decls.
47288 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
47290 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
47291 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
47292 (LOCALE_PARAM_PROTO): New macro.
47293 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
47294 (INTERNAL (strtol), strtol): Define with a prototype.
47295 (PARAMS): Remove. All uses removed.
47296 * lib/tempname.c: Include <string.h> unconditionally.
47297 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
47298 * lib/xgethostname.c (main): Define with a prototype.
47299 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
47300 Include <stdlib.h> unconditionally.
47301 (calloc, malloc, realloc, free): Remove decls.
47302 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
47303 Include <stdlib.h> unconditionally. Sort include file names.
47305 (xstrtod): Define with a prototype.
47306 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
47307 (strtol, strtoul): Remove decls.
47309 2003-09-11 Paul Eggert <eggert@twinsun.com>
47311 More patches to assume C89 or better.
47312 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
47313 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
47314 string.h, memchr, STDC_HEADERS.
47316 2003-09-11 Paul Eggert <eggert@twinsun.com>
47318 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
47319 Include <stdlib.h>, <string.h> unconditionally.
47320 Remove now-unnecessary cast to char *.
47321 * lib/strnlen.c: Include <string.h> unconditionally.
47322 * lib/yesno.c (yesno): Define with a prototype.
47324 2003-09-11 Bruno Haible <bruno@clisp.org>
47326 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
47328 2003-09-10 Jim Meyering <jim@meyering.net>
47330 * lib/error.c: Correct indentation of cpp directives.
47332 2003-09-10 Bruno Haible <bruno@clisp.org>
47334 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
47335 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
47336 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
47337 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
47338 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
47339 <stdlib.h> and <string.h> checks.
47340 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
47341 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
47343 2003-09-10 Bruno Haible <bruno@clisp.org>
47345 * lib/strcspn.c: Include <string.h> unconditionally.
47346 * lib/strpbrk.c: Include <string.h> unconditionally.
47347 * lib/strstr.c: Include <string.h> unconditionally.
47348 * lib/unicodeio.c: Include <string.h> unconditionally.
47349 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
47350 * lib/unsetenv.c: Likewise.
47351 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
47352 * lib/yesno.c: Include <stdlib.h> unconditionally.
47353 (rpmatch): Add prototype.
47355 2003-09-09 Paul Eggert <eggert@twinsun.com>
47357 More patches to assume C89 or better.
47358 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
47359 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
47360 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
47362 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
47364 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
47366 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
47368 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
47369 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
47370 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
47372 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
47373 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
47375 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
47377 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
47378 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
47379 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
47380 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
47381 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
47382 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
47384 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
47385 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
47386 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
47387 C headers, or for string.h.
47388 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
47389 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
47390 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
47391 headers, memory.h, stdlib.h, string.h, strings.h.
47392 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
47393 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
47394 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
47396 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
47397 headers, memory.h, string.h.
47398 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
47399 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
47401 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
47403 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
47404 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
47405 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
47406 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
47407 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
47409 2003-09-09 Paul Eggert <eggert@twinsun.com>
47413 * lib/acosl.c (main): Use a prototype.
47414 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
47417 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
47419 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
47420 (getopt, etopt_long, getopt_long_only, _getopt_internal)
47421 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
47423 * lib/getopt.c (const): Remove macro.
47424 Include <string.h> unconditionally.
47425 (my_index): Remove; all uses changed to strchr.
47426 (strlen): Remove decl.
47427 (exchange): Remove forward decl; no longer needed.
47428 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
47429 Define with prototype.
47430 * lib/getopt1.c (const): Remove macro.
47431 (getopt_long, getopt_long_only, main): Define with prototype.
47433 * lib/getugroups.c: Include <string.h> unconditionally.
47435 * lib/getusershell.c: Include <stdlib.h> unconditionally.
47436 (getusershell, setusershell, endusershell, readname, main):
47437 Define with prototypes.
47439 * lib/group-member.c: Include group-member.h first.
47440 Include <stdlib.h> unconditionally.
47442 * lib/hard-locale.c: Include hard-locale.h first.
47443 Include <stdlib.h>, <string.h> unconditionally.
47445 * lib/hash.c (free, malloc): Remove decls.
47446 Include <stdlib.h> unconditionally.
47448 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
47449 (getenv): Do not declare.
47451 * lib/idcache.c: Include <string.h> unconditionally.
47453 * lib/long-options.c: Include long-options.h first, to test interface.
47454 Include <stdlib.h> unconditionally.
47456 * lib/makepath.c: Include makepath.h first, to test interface.
47457 Include <stdlib.h> and <string.h> unconditionally.
47459 * lib/linebuffer.c: Include <stdlib.h>.
47460 (free): Remove decl.
47462 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
47463 stddef.h. rpl_malloc returns void *, not char *.
47464 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
47467 * lib/md5.h: Include <limits.h> unconditionally.
47468 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
47469 (__P): Remove; all uses removed.
47470 * lib/md5.c: Include "md5.h" first.
47471 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
47472 md5_buffer, md5_process_bytes, md5_process_block):
47473 Define with prototypes.
47474 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
47475 * lib/sha.c: Include "sha.h" first.
47476 Include <stdlib.h>, <string.h> unconditionally.
47478 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
47479 * lib/memcmp.c (__ptr_t): Likewise.
47480 * lib/memrchr.c (__ptr_t): Likewise.
47481 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
47482 Include <string.h> unconditionally.
47483 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
47484 * lib/memchr.c: Include <stdlib.h> unconditionally.
47485 * lib/memchr.c (LONG_MAX): Remove.
47486 * lib/memrchr.c (LONG_MAX): Likewise.
47487 * lib/memchr.c (__memchr): Define via a prototype.
47488 * lib/memrchr.c (__memrchr): Likewise.
47489 * lib/memcmp.c (__P): Remove, and remove all uses.
47490 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
47491 Remove forward decls; no longer needed.
47492 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
47493 Use types required by C89 in prototype.
47495 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
47496 * lib/savedir.c: Likewise.
47497 * lib/mkdir.c (free): Remove decl.
47498 * lib/rmdir.c (rmdir): Define with a prototype.
47499 * lib/savedir.c: Include savedir.h first, to test interface.
47501 * lib/mktime.c (STDC_HEADERS): Remove.
47502 Include <stdlib.h>, <string.h> unconditionally.
47504 * lib/modechange.c: Include <stdlib.h> unconditionally.
47505 (malloc): Remove decl.
47507 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
47508 (free): Remove decl.
47510 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
47511 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
47512 (This type really should be intptr_t, but that's a C99ism.)
47513 (_obstack_memcpy): Remove: all uses changed to memcpy.
47514 Include <string.h> unconditionally.
47515 (struct obstack): Assume __STDC__ for types of members
47516 chunkfun, freefun, extra_arg.
47517 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
47518 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
47519 obstack_begin, obstack_specify_allocation,
47520 obstack_specify_allocation_with_arg, obstack_chunkfun,
47521 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
47522 Remove unprototyped decls and the macros that use them.
47523 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
47524 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
47525 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
47526 (defined __STDC__ && __STDC__)]:
47527 Remove nonprototyped code.
47528 Include <stdlib.h> unconditionally.
47529 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
47530 _obstack_allocated_p, _obstack_free, obstack_free,
47531 _obstack_memory_used, print_and_abort):
47532 Define using prototypes.
47533 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
47534 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
47535 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
47536 obstack_next_free, obstack_object_size, obstack_room) [0]:
47537 Remove unused, unprototyped code.
47539 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
47541 * lib/physmem.c (physmem_total, physmem_available, main): Define
47544 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
47545 (main): Define with a prototype.
47547 * lib/posixver.c (getenv): Remove decl.
47549 * lib/putenv.c (malloc): Returns void *, not char *.
47550 Include <string.h> unconditionally.
47551 (strchr, memcpy, NULL): Do not define.
47553 * lib/readtokens.c: Include readtokens.h first, to test interface.
47554 Include <stdlib.h>, <string.h> unconditionally.
47555 (init_tokenbuffer): Define with a prototype.
47557 * lib/regex.c (PARAMS): Remove. All uses removed.
47558 All uses of _RE_ARGS removed, too.
47559 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
47561 (bzero): Assume memset exists.
47562 (memcmp, memcpy, NULL): Remove.
47563 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
47564 char, or assignments to local vars of type signed char.
47565 (init_syntax_once, PREFIX(extract_number_and_incr),
47566 PREFIX(print_partial_compiled_pattern),
47567 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
47568 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
47569 PREFIX(regex_grow_registers), PREFIX(regex_compile),
47570 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
47571 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
47572 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
47573 wcs_compile_range, byte_compile_range, truncate_wchar,
47574 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
47575 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
47576 count_mbs_length, wcs_re_match_2_internal,
47577 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
47578 PREFIX(alt_match_null_string_p),
47579 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
47580 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
47581 regfree, PREFIX(extract_number)): Define with prototype. Remove
47582 now-unnecessary declaration, if any.
47583 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
47585 Remove now-unnecessary casts among pointer types.
47586 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
47588 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
47589 (free): Remove decl.
47591 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
47593 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
47594 (free): Remove decl.
47596 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
47597 * lib/xgetcwd.c: Likewise.
47599 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
47600 (free): Remove decl.
47602 * lib/strchrnul.c (strchrnul): Define with a prototype.
47603 Fix bug: c_in was not converted to char before searching.
47605 The following changes are not K&R related:
47607 * lib/group-member.h: Include <sys/types.h>, so that this file is
47609 * lib/makepath.h: Likewise.
47611 * lib/getusershell.c (readname, default_index, line_size, readname):
47612 Use size_t, not int, for sizes.
47613 (readname): If the size overflows, report an error instead of
47616 2003-09-09 Paul Eggert <eggert@twinsun.com>
47618 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
47621 2003-09-09 Paul Eggert <eggert@twinsun.com>
47623 * README: New section: portability guidelines.
47625 2003-09-09 Derek Robert Price <derek@ximbiot.com>
47627 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
47630 2003-09-09 Derek Robert Price <derek@ximbiot.com>
47632 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
47634 2003-09-08 Paul Eggert <eggert@twinsun.com>
47636 Assume C89 or better; remove K&R cruft.
47637 A few of these changes were first proposed by Derek Robert Price
47638 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
47640 * lib/addext.c: Include <string.h> unconditionally.
47641 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
47642 Don't declare getenv or malloc.
47644 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
47645 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
47647 (find_stack_direction, alloca): Use prototypes.
47649 * lib/atexit.c (atexit): Define using a prototype.
47651 * lib/basename.c, dirname.c, stripslash.c:
47652 Include <string.h> unconditionally.
47654 * lib/bcopy.c: Include <stddef.h>.
47655 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
47657 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
47659 * lib/error.h (error, error_at_line, error_print_progname)
47660 [! (defined (__STDC__) && __STDC__)]: Remove decls.
47661 * lib/error.c: Include error.h first, to check interface.
47662 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
47663 (VA_START): Remove; all uses changeed to va_start.
47664 (exit, strerror): Remove decls.
47665 (error_print_progname): Prototype uncondionally.
47666 Don't include <errno.h>; no longer needed.
47667 (private_strerror): Remove.
47668 (error_tail): Always define.
47669 (error, error_at_line): Assume C89 or better; always use prototypes.
47670 * lib/fatal.c: Include "fatal.h" first, to test interface.
47671 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
47672 (VA_START): Remove; all uses changed to va_start.
47673 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
47675 (exit): Remove decl.
47676 (fatal): Prototype unconditionally. Assume va_start works.
47677 Abort at end, to pacify gcc.
47679 * lib/euidaccess.c (main): Define with a prototype.
47681 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
47683 * lib/exitfail.c: Include <stdlib.h> unconditionally.
47685 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
47687 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
47688 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
47689 (getenv): Remove decl.
47690 (fnmatch): Define using a prototype.
47691 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
47692 (FCT): Define using a prototype.
47694 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
47696 * lib/gethostname.c: Include <stddef.h>.
47697 (gethostname): Define with prototype. Length is size_t, not int.
47699 2003-09-08 Paul Eggert <eggert@twinsun.com>
47701 Assume C89 or better; remove K&R cruft.
47702 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
47703 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
47704 string.h, getenv, malloc.
47705 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
47707 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
47708 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
47709 do not check for strerror.
47710 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
47711 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
47712 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
47713 do not check for doprnt or vprintf.
47714 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
47715 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
47717 2003-09-08 Paul Eggert <eggert@twinsun.com>
47719 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
47720 getversion.c should have been removed then, but was accidentally
47723 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
47724 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
47726 2003-09-08 Karl Berry <karl@gnu.org>
47728 * config/config.sub, config.guess, srclistvars.sh: update from savannah
47729 config, forget about prep.
47731 * config/depcomp, missing: update from automake.
47733 2003-09-07 Paul Eggert <eggert@twinsun.com>
47735 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
47736 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
47738 2003-09-07 Paul Eggert <eggert@twinsun.com>
47740 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
47741 copy_tm_result. Bug reported by Simon Josefsson in
47742 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
47744 2003-09-06 Paul Eggert <eggert@twinsun.com>
47746 * m4/time_r.m4: New file.
47747 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
47748 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
47749 is. Check for timegm declaration.
47750 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
47751 Do not check for gmtime_r.
47752 Replace mktime if __mktime_internal does not exist and if mktime
47753 hasn't been replaced already.
47755 2003-09-06 Paul Eggert <eggert@twinsun.com>
47757 * lib/time_r.c, lib/time_r.h: New files.
47759 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
47761 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
47762 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
47764 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
47766 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
47767 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
47768 Include <time_r.h>.
47770 * lib/timegm.c: Switch to glibc implementation, with the following
47772 [defined HAVE_CONFIG_H]: Include <config.h>.
47773 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
47774 (__mktime_internal) [!defined _LIBC]: New decl.
47775 (__gmtime_r) [!defined _LIBC]: New macro and function.
47776 (timegm): Use a prototype, since gnulib assumes C89.
47777 Do not bother declaring tmp to be const, as it's not really usefu.
47778 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
47779 (timegm): Declare only if HAVE_DECL_TIMEGM.
47781 2003-09-06 Paul Eggert <eggert@twinsun.com>
47783 * MODULES.html.sh (func_all_modules): Add time_r.
47784 * modules/time_r: New file.
47785 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
47786 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
47788 2003-09-03 Paul Eggert <eggert@twinsun.com>
47790 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
47791 Bug reported by Lute Kamstra in
47792 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
47794 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
47795 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
47796 course with correspondingly smaller numbers for tomorrow and
47797 yesterday. From Tadayoshi Funaba. Originally installed into
47798 sh-utils on 1999-08-07, but the patch got lost (I guess during the
47801 2003-08-31 Simon Josefsson <jas@extundo.com>
47803 * modules/timegm: New file.
47804 * MODULES.html.sh (func_all_modules): Add timegm.
47806 2003-08-31 Simon Josefsson <jas@extundo.com>
47808 * m4/timegm.m4: New file.
47810 2003-08-31 Simon Josefsson <jas@extundo.com>
47812 * lib/timegm.h: New file.
47813 * lib/timegm.c: New file. Based on
47814 wget-1.8.2/src/http.c:mktime_from_utc.
47816 2003-08-31 Karl Berry <karl@gnu.org>
47818 * lib/argp.h: update from libc.
47820 2003-08-28 Bruno Haible <bruno@clisp.org>
47822 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
47823 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
47824 followed by '#define fnmatch fnmatch_posix' gives an error.
47826 2003-08-28 Bruno Haible <bruno@clisp.org>
47828 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
47829 warning on QNX, which defines O_BINARY to 000000.
47831 2003-08-27 Jim Meyering <jim@meyering.net>
47833 * m4/mkstemp.m4: Require that the system mkstemp be able to create
47834 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
47835 would fail after 32. Reported by Danny Levinson. Details here:
47836 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
47838 2003-08-24 Bruno Haible <bruno@clisp.org>
47840 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
47841 MSVC7 <stdio.h> is included later.
47843 2003-08-22 Simon Josefsson <jas@extundo.com>
47845 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
47847 2003-08-20 Karl Berry <karl@gnu.org>
47849 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
47851 2003-08-20 Bruno Haible <bruno@clisp.org>
47853 * modules/progname: New file.
47854 * MODULES.html.sh (func_all_modules): Add progname.
47856 2003-08-20 Bruno Haible <bruno@clisp.org>
47858 * lib/progname.h: New file, from GNU gettext.
47859 * lib/progname.c: New file, from GNU gettext.
47860 * lib/progreloc.c: New file, from GNU gettext.
47862 2003-08-19 Jim Meyering <jim@meyering.net>
47864 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
47865 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
47867 2003-08-19 Bruno Haible <bruno@clisp.org>
47869 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
47872 2003-08-19 Bruno Haible <bruno@clisp.org>
47874 * lib/xstrdup.c: Assume <string.h> exists.
47876 2003-08-18 Paul Eggert <eggert@twinsun.com>
47878 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
47881 2003-08-18 Jim Meyering <jim@meyering.net>
47883 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
47884 * m4/lib-ld.m4: Likewise.
47886 2003-08-18 Jim Meyering <jim@meyering.net>
47888 * lib/setenv.h: Indent nested cpp directive.
47889 * lib/vasnprintf.c: Remove trailing blanks.
47891 2003-08-17 Simon Josefsson <jas@extundo.com>
47893 * modules/xstrndup: New file.
47894 * MODULES.html.sh (func_all_modules): Add xstrndup.
47896 2003-08-17 Simon Josefsson <jas@extundo.com>
47898 * modules/argp: Fix autoconf macro name. Add more dependencies.
47900 2003-08-17 Simon Josefsson <jas@extundo.com>
47902 * m4/xstrndup.m4: New file.
47904 2003-08-17 Simon Josefsson <jas@extundo.com>
47906 * m4/argp.m4: New file.
47908 2003-08-17 Simon Josefsson <jas@extundo.com>
47909 Bruno Haible <bruno@clisp.org>
47911 * lib/xstrndup.h: New file.
47912 * lib/xstrndup.c: New file.
47914 2003-08-17 Bruno Haible <bruno@clisp.org>
47916 * modules/strndup (Files, Include): Add lib/strndup.h.
47918 2003-08-17 Bruno Haible <bruno@clisp.org>
47920 * modules/euidaccess (Files): Add lib/euidaccess.h.
47922 2003-08-17 Bruno Haible <bruno@clisp.org>
47924 * lib/strndup.h: New file.
47926 2003-08-17 Bruno Haible <bruno@clisp.org>
47928 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
47929 like AC_GNU_SOURCE.
47930 * modules/extensions (configure.ac): Comment out the invocation of
47931 gl_USE_SYSTEM_EXTENSIONS.
47933 2003-08-16 Paul Eggert <eggert@twinsun.com>
47935 Merges from coreutils, etc.
47936 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
47937 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
47938 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
47940 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
47941 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
47943 2003-08-16 Paul Eggert <eggert@twinsun.com>
47945 Document merge from coreutils.
47946 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
47947 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
47948 * modules/utime: Add m4/utimes-null.m4.
47950 2003-08-16 Paul Eggert <eggert@twinsun.com>
47952 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
47953 space, undoing this 2003-08-12 change:
47954 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
47956 2003-08-16 Paul Eggert <eggert@twinsun.com>
47958 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
47959 strtoul.c from libc, undoing this 2003-08-12 change:
47960 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
47962 2003-08-16 Jim Meyering <jim@meyering.net>
47964 Merges from coreutils.
47965 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
47966 prefix. Adjust cache variables similarly. Create 500 rather than
47967 just 300 files, to exercise bug on Darwin6.5, too.
47968 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
47970 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
47971 AM_SYS_POSIX_TERMIOS.
47972 Reported by mkc@mathdogs.com.
47973 Also change use of $am_cv_sys_posix_termios
47974 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
47975 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
47976 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
47977 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
47978 in /proc/mounts until it finds one with matching device number. This
47979 is unnecessary when the FILE argument *is* a mount point. No stat call
47980 is necessary in that case. So, disable the statvfs-testing code on
47981 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
47982 as RedHat bug# 84846.
47983 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
47984 to 1MB, so as not to render systems with no stack size limit (e.g.,
47985 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
47986 Include <unistd.h>. On some systems,
47987 it is required for the definition of _SC_PAGESIZE.
47989 2003-08-16 Jim Meyering <jim@meyering.net>
47991 Merge from coreutils.
47992 * lib/xstrtoimax.c: #else #if -> #elif.
47993 * lib/xstrtoumax.c: Likewise.
47995 2003-08-16 Jim Meyering <jim@meyering.net>
47997 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
47998 * m4/utimes.m4: Removed.
47999 * m4/utimes-null.m4: Renamed from utimes.m4.
48001 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
48002 to 1MB, so as not to render systems with no stack size limit (e.g.,
48003 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
48004 Include <unistd.h>. On some systems,
48005 it is required for the definition of _SC_PAGESIZE.
48007 2003-08-16 Jim Meyering <jim@meyering.net>
48008 and Paul Eggert <eggert@cs.ucla.edu>
48010 Merges from coreutils, etc.
48012 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
48013 using the latest version from cvs. This avoids problems with #line
48014 directives using a vendor (Sun) compiler.
48015 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
48016 Don't set GETGROUPS_LIB here; now it's
48017 done via getgroups.m4's wrapper function.
48018 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
48019 rather than just in sh-util/configure.in, so that the
48020 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
48022 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
48023 AC_FUNC_GETLOADAVG where to find getloadavg.c.
48024 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
48025 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
48026 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
48027 Remove code that is now done by the newly-required macros.
48028 Append $(EXEEXT) to DF_PROG.
48029 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
48030 Do not invoke or require the following here,
48031 since prereq.m4 or some gnulib .m4 now does this for us:
48032 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
48033 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
48034 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
48035 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
48036 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
48037 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
48038 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
48040 Do not replace the following functions, as this is now the job
48041 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
48042 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
48043 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
48044 atexit getpass, strdup, getpagesize.
48046 Do not check for the following functions, as this is now the job
48047 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
48048 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
48050 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
48051 Check for sys/sysctl.h.
48052 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
48053 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
48054 of checking for ssize_t ourselves.
48056 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
48057 Require every macro that gnulib/modules/* suggests for us.
48058 (jm_PREREQ_ADDEXT): New macro.
48059 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
48060 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
48062 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
48063 (gl_PHYSMEM): Use it.
48064 Also check for `table' function.
48065 Check for new headers and functions.
48066 Add check for sys/sysmp.h.
48067 With suggestions from Kaveh Ghazi.
48068 Ignore headers that are present but cannot be compiled. This
48069 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
48072 2003-08-15 Paul Eggert <eggert@twinsun.com>
48074 Document merge from coreutils.
48075 * modules/userspec: Depend on posixver.
48076 * modules/strftime: Depend on tzset.
48078 2003-08-15 Paul Eggert <eggert@twinsun.com>
48080 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
48081 rather than tab, after '#' in shell-script copyright notices.
48082 Suggested by Bruno Haible.
48084 2003-08-15 Paul Eggert <eggert@twinsun.com>
48086 * config/srclist-update: Use three spaces, rather than tab, after '#'
48087 in shell-script copyright notices. Suggested by Bruno Haible.
48088 Remove unnecessary parenthesization in regular expression.
48090 2003-08-15 Jim Meyering <jim@meyering.net>
48092 Merge from coreutils.
48093 * lib/xgethostname.c: Include <stdlib.h>.
48094 (xghostname): Don't exit for anything other than memory-related
48095 failure; just return NULL.
48096 * lib/userspec.c: Include "posixver.h".
48097 (parse_user_spec): Accept `.' as a separator only
48098 in pre-POSIX-200112 mode.
48099 * lib/strtoimax.c: Use #elif rather than #else #if.
48100 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
48101 Remove function, now that we can rely on a working tzset function.
48102 [!_LIBC]: Ensure that the required autoconf test has been run.
48103 [!defined _NL_CURRENT && HAVE_STRFTIME]:
48104 Use underlying_strftime for %r.
48105 * lib/sha.c: Merge in some clean-up and optimization changes from
48107 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
48108 Ensure that it is a multiple of 64.
48109 Rearrange loop exit tests so as to avoid performing an
48110 additional fread after encountering an error or EOF.
48111 * lib/realloc.c: Update copyright date.
48113 2003-08-15 Jim Meyering <jim@meyering.net>
48114 and Paul Eggert <eggert@twinsun.com>
48116 Merge from coreutils.
48117 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
48118 member but strut utmpx does not. Needed for AIX 4.3.3.
48119 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
48121 2003-08-15 Jim Meyering <jim@meyering.net>
48122 and Paul Eggert <eggert@cs.ucla.edu>
48124 Merges from coreutils, etc.
48125 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
48126 Require gl_FUNC_TZSET_CLOBBER.
48127 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
48128 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
48131 2003-08-14 Paul Eggert <eggert@twinsun.com>
48133 Help the merge from coreutils.
48134 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
48135 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
48136 * m4/tzset.m4: Use it too.
48138 2003-08-14 Paul Eggert <eggert@twinsun.com>
48140 * modules/tzset: New file.
48142 2003-08-14 Jim Meyering <jim@meyering.net>
48144 Merges from coreutils.
48145 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
48146 variable names, rather than @FNMATCH_H@.
48147 * modules/alloca: Likewise for $(ALLOCA_H).
48149 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
48150 the three copies of the literal target, `fnmatch.h'.
48151 * modules/alloca (alloca.h): Likewise.
48153 2003-08-14 Jim Meyering <jim@meyering.net>
48155 Merge from coreutils.
48156 * m4/tzset.m4: New file.
48157 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
48158 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
48159 otherwise, AIX 5.1 systems would end up using the latter.
48160 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
48161 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
48162 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
48163 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
48165 2003-08-14 Jim Meyering <jim@meyering.net>
48167 Merge from coreutils.
48168 * lib/obstack.h: Whitespace changes.
48169 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
48170 and xcalloc return values.
48171 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
48172 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
48173 hang on OSF/1 5.1 for DIR on both local and remote file systems.
48174 Reported by (and fix confirmed by) Nelson H. F. Beebe.
48175 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
48177 Use mntctl's return value to drive the entry-processing loop, since
48178 we can't rely on the value of the vmt_length member in the last
48179 entry. On some systems doing so could result in exhausting
48180 virtual memory. Based in part on a patch from Mike Jetzer.
48182 2003-08-14 Jim Meyering <jim@meyering.net>
48183 and Paul Eggert <eggert@twinsun.com>
48185 Merges from coreutils, plus other fixes.
48186 * lib/physmem.c: Merge in portability changes from gcc/libiberty
48187 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
48188 for credits and details. Thanks to Kaveh Ghazi for helping
48189 to keep these files in sync.
48190 (ARRAY_SIZE): Define it.
48191 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
48192 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
48193 (memcasecmp): Don't assume size_t fits in unsigned int.
48194 Remove casts and duplicate code.
48195 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
48196 (memcpy): Remove definition.
48197 Merge in some clean-up and optimization changes from glibc.
48198 [BLOCKSIZE]: Move definition to top of file.
48199 Ensure that it is a multiple of 64.
48200 Rearrange loop exit tests so as to avoid performing an
48201 additional fread after encountering an error or EOF.
48202 * lib/md5.h (md5_uintptr): Define.
48203 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
48204 return to the initial working directory. Preserve errno
48206 * lib/idcache.c: Include "xalloc.h".
48207 (xmalloc, xrealloc): Remove decls.
48208 (getuser): Remove casts no longer required in C89.
48209 * lib/human.c: Include stdio.h, for sprintf.
48210 * lib/group-member.c: Include "xalloc.h".
48211 (xmalloc, xrealloc): Remove decls.
48212 (get_group_info): Remove casts no longer required in C89.
48213 * lib/getusershell.c (readname): Remove casts no longer required in
48215 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
48216 * lib/getline.c: Whitespace fix, from coreutils.
48218 2003-08-13 Paul Eggert <eggert@twinsun.com>
48220 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
48223 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
48224 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
48225 Undo previous (whitespace-only) change.
48227 2003-08-13 Paul Eggert <eggert@twinsun.com>
48229 * lib/exclude.c: Include <ctype.h>
48230 (IN_CTYPE_DOMAIN): New macro.
48231 (is_space): New fn.
48232 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
48235 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
48236 Undo previous (whitespace-only) change.
48238 2003-08-13 Paul Eggert <eggert@twinsun.com>
48240 * config/srclist-update: Change update back to the old behavior,
48241 leaving whitespace alone. Use one 'sed' command rather than a
48243 (fixlicense): Now a variable, not a function.
48244 (remove_trailing_blanks): Remove.
48245 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
48246 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
48247 Undo previous (whitespace-only) change.
48249 2003-08-12 Paul Eggert <eggert@twinsun.com>
48251 Merge from coreutils.
48252 * modules/euidaccess: Add lib_SOURCES, include for new
48255 2003-08-12 Paul Eggert <eggert@twinsun.com>
48257 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
48258 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
48259 Normalize leading white space and remove trailing white space.
48261 Merge from coreutils
48262 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
48264 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
48265 0.12.1. These files are now being upgraded automatically by
48266 ../config/srclist-update.
48268 2003-08-12 Paul Eggert <eggert@twinsun.com>
48270 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
48271 Normalize leading white space and remove trailing white space.
48272 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
48273 notice, as per ../config/srclist-update.
48275 Merge from coreutils.
48276 * lib/euidaccess.h: New file.
48277 * lib/euidaccess.c: Include it.
48278 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
48279 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
48280 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
48282 2003-08-12 Paul Eggert <eggert@twinsun.com>
48284 * config/srclist-update: Add copyright notice.
48285 (remove_id_lines, remove_trailing_blanks): New constants.
48286 (fixfile): Use them to normalize spacing a bit in copied files.
48287 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
48288 Normalize leading white space and remove trailing white space.
48290 * config/texinfo.tex: Sync with texinfo.
48292 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
48293 strtoul.c from libc, to merge coreutils whitespace changes.
48295 * config/srclist.txt: Get the following m4 files from gettext:
48296 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
48297 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
48298 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
48301 2003-08-12 Karl Berry <karl@gnu.org>
48303 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
48306 2003-08-11 Paul Eggert <eggert@twinsun.com>
48308 * modules/gnu-source, m4/gnu-source.m4:
48309 Remove; we're assuming Autoconf 2.54 or later now.
48310 Suggested by Bruno Haible.
48311 * MODULES.html.sh (func_all_modules): Remove gnu-source.
48313 2003-08-11 Bruno Haible <bruno@clisp.org>
48315 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
48317 2003-08-11 Bruno Haible <bruno@clisp.org>
48319 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
48320 (vasnprintf): Use it instead of wcslen.
48322 2003-08-11 Bruno Haible <bruno@clisp.org>
48324 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
48325 value to ensure that _Bool promotes to int. Use #define for _Bool when
48326 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
48328 2003-08-10 Karl Berry <karl@gnu.org>
48330 * lib/regex.h: update from libc (whitespace fix).
48332 2003-08-09 Paul Eggert <eggert@twinsun.com>
48334 Merge some files from coreutils. These changes were
48335 originally made by Jim Meyering.
48336 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
48337 many older Unixes require this.
48338 * lib/alloca.c (alloca): Remove cast to argument of free;
48339 no longer needed in C89.
48340 * lib/alloca_.h, regex.h: Fix white space to match
48341 what GNU indent does.
48343 2003-08-09 Paul Eggert <eggert@twinsun.com>
48345 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
48346 apparently Emacs's Unicode mode got confused before my 2003-08-05
48349 2003-08-08 Paul Eggert <eggert@twinsun.com>
48351 * m4/extensions.m4: New file.
48352 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
48353 Require gl_USE_SYSTEM_EXTENSIONS.
48354 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
48355 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
48357 2003-08-08 Paul Eggert <eggert@twinsun.com>
48359 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
48360 * modules/extensions, modules/gnu-source: New files.
48361 * modules/timespec, modules/unlocked-io: Depend on extensions.
48363 2003-08-07 Paul Eggert <eggert@twinsun.com>
48365 * modules/restrict: New file.
48366 * MODULES.html.sh (func_all_modules): Add restrict.
48367 * modules/regex: Depend on restrict.
48369 2003-08-07 Paul Eggert <eggert@twinsun.com>
48371 * m4/restrict.m4: New file.
48372 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
48374 2003-08-07 Bruno Haible <bruno@clisp.org>
48376 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
48377 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
48379 2003-08-07 Bruno Haible <bruno@clisp.org>
48381 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
48382 makes the module 'getndelim2' compatible with the module 'getline'.
48384 2003-08-05 Paul Eggert <eggert@twinsun.com>
48386 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
48387 byte with "\201" to avoid glitches when editing that source file
48388 with multi-gnome-terminal.
48390 2003-08-05 Paul Eggert <eggert@twinsun.com>
48392 * lib/bumpalloc.h: Remove.
48394 2003-08-05 Paul Eggert <eggert@twinsun.com>
48396 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
48397 * modules/bumpalloc: Remove.
48399 2003-08-04 Paul Eggert <eggert@twinsun.com>
48401 * lib/getloadavg.c: Change copyright notice and spacing to conform to
48404 Merge from coreutils.
48405 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
48407 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
48408 from Karl Berry, implemented by Jim Meyering.
48409 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
48410 from Dmitry V. Levin.
48411 Remove anachronistic cast of xrealloc.
48412 * lib/fnmatch_.h (__const): Remove. Use 'const'.
48413 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
48414 type. Otherwise, it wouldn't compile with at least /bin/cc on
48415 ymp-cray-unicos9.0.2.X.
48416 Combine two mostly-identical uses of alloca into one.
48417 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
48419 2003-08-04 Dave Love <d.love@dl.ac.uk>
48423 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
48424 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
48425 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
48426 obsolete NLIST_NAME_UNION.
48427 [__GNU__]: Undef BSD and FSCALE.
48428 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
48430 2003-08-03 Paul Eggert <eggert@twinsun.com>
48432 * lib/stdbool_.h (_Bool): Make it signed char, instead of
48433 an enum type, so that it's guaranteed to promote to int. See:
48434 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
48436 2003-08-03 Karl Berry <karl@gnu.org>
48438 * config/depcomp: update from automake.
48440 2003-07-31 Paul Eggert <eggert@twinsun.com>
48442 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
48443 (strerror): Don't assume that a printable int fits in 14 bytes.
48445 2003-07-31 Bruno Haible <bruno@clisp.org>
48447 * modules/getpass-gnu: New file.
48448 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
48450 2003-07-31 Bruno Haible <bruno@clisp.org>
48452 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
48454 2003-07-24 Karl Berry <karl@gnu.org>
48456 * config/missing: update from automake.
48458 2003-07-24 Derek Robert Price <derek@ximbiot.com>
48459 Bruno Haible <bruno@clisp.org>
48461 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
48462 * lib/getline.c (getline, getdelim): Likewise.
48463 Remove _GNU_SOURCE define; now it's defined in config.h through
48466 2003-07-23 Karl Berry <karl@gnu.org>
48468 * config/config.sub: update from prep.
48470 2003-07-22 Paul Eggert <eggert@twinsun.com>
48472 * modules/xalloc (Depends-on): Add exitfail.
48473 * modules/xmemcoll: Likewise.
48475 2003-07-22 Paul Eggert <eggert@twinsun.com>
48477 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
48478 over-parenthesization in macros.
48480 Sync with coreutils.
48482 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
48485 Use `exit_failure' for xalloc and xmemcoll instead of their own
48486 private exit-failure variables.
48487 * lib/xalloc.h (xalloc_exit_failure): Remove.
48488 * lib/xmalloc.c: Likewise. Include exitfail.h.
48489 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
48490 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
48491 * lib/xmemcoll.c: Likewise. Include exitfail.h.
48492 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
48494 2003-07-20 Jim Meyering <jim@meyering.net>
48496 * modules/closeout (Depends-on): Add exitfail.
48497 Suggestion from Bruno Haible.
48499 2003-07-19 Karl Berry <karl@gnu.org>
48501 * config/config.sub: update from prep.
48503 2003-07-18 Paul Eggert <eggert@twinsun.com>
48505 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
48507 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
48508 to test that it can stand by itself. Include "exitfail.h".
48509 Clients should set exit_failure instead.
48510 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
48512 2003-07-18 Bruno Haible <bruno@clisp.org>
48514 * modules/getndelim2: New file.
48515 * modules/getline: Share files with module getndelim2.
48516 * modules/getnline: Depend on getndelim2 instead of sharing files with
48517 it. Add getnline.c to lib_SOURCES.
48518 * MODULES.html.sh (func_all_modules): Add getndelim2.
48520 2003-07-18 Bruno Haible <bruno@clisp.org>
48522 * m4/getndelim2.m4: New file.
48523 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
48524 invoke gl_PREREQ_GETNDELIM2.
48525 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
48526 gl_PREREQ_GETNDELIM2.
48527 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
48530 2003-07-18 Bruno Haible <bruno@clisp.org>
48532 * lib/getndelim2.h: New file.
48533 * lib/getndelim2.c: Make into a module of its own. Include config.h,
48535 (getndelim2): Make non-static. Change return type to ssize_t.
48536 * lib/getline.h: Change argument names.
48537 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
48538 * lib/getnline.c: Include getndelim2.h.
48540 2003-07-18 Andreas Schwab <schwab@suse.de>
48542 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
48544 2003-07-17 Karl Berry <karl@gnu.org>
48546 * config/config.sub: update from prep.
48548 2003-07-17 Bruno Haible <bruno@clisp.org>
48550 * modules/getnline: New file.
48551 * modules/getline: Add lib/getndelim2.c to source file list.
48552 * MODULES.html.sh (func_all_modules): Add getnline.
48554 2003-07-17 Bruno Haible <bruno@clisp.org>
48556 * m4/getnline.m4: New file.
48558 2003-07-17 Bruno Haible <bruno@clisp.org>
48560 * m4/Makefile.am.in: Remove file.
48561 * m4/Makefile.am: Remove file.
48562 * m4/Makefile.in: Remove file.
48564 2003-07-17 Bruno Haible <bruno@clisp.org>
48566 * lib/getnline.h: New file.
48567 * lib/getnline.c: New file.
48568 * lib/getndelim2.c: New file, extracted from getline.c.
48569 (getndelim2): Renamed from getdelim2, with added nmax argument.
48570 * lib/getline.c: Include getndelim2.c.
48571 (getdelim2): Moved out to getndelim2.c.
48572 (getline, getdelim): Update.
48574 2003-07-17 Bruno Haible <bruno@clisp.org>
48576 * lib/Makefile.am: Remove file.
48577 * lib/Makefile.in: Remove file.
48579 2003-07-17 Bruno Haible <bruno@clisp.org>
48581 * configure.in: Remove file.
48582 * Makefile.in: Remove file.
48584 2003-07-17 Bruno Haible <bruno@clisp.org>
48586 * MODULES.html.sh: Put the </BODY> right before </HTML>.
48588 2003-07-16 Karl Berry <karl@gnu.org>
48590 * config/srclist-update: was running fixlicense twice, which caused
48591 texinfo.tex to be nullified for some reason. Simplify,
48592 $gplsrc is no longer needed as far as I can see?
48594 2003-07-16 Jim Meyering <jim@meyering.net>
48596 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
48598 2003-07-15 Paul Eggert <eggert@twinsun.com>
48600 * config/srclist.txt: Get the following files from gettext-runtime/intl
48601 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
48602 ref-del.sin. From Bruno Haible.
48603 * config/srclist-update (fixfile): Change grep pattern again, since the
48604 previous fix didn't work (there was another trailing $). Use
48605 '[$]' to escape the $s.
48607 2003-07-15 Karl Berry <karl@gnu.org>
48609 * lib/vasnprintf.c: update from gettext.
48611 2003-07-15 Karl Berry <karl@gnu.org>
48613 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
48614 gets expanded when surrounded by '$'.
48616 2003-07-15 Jim Meyering <jim@meyering.net>
48618 * modules/save-cwd: Don't depend on error. From Derek Price.
48620 2003-07-15 Jim Meyering <jim@meyering.net>
48622 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
48624 2003-07-14 Simon Josefsson <jas@extundo.com>
48626 * modules/mempcpy: New file.
48627 * MODULES.html.sh (func_all_modules): Add mempcpy.
48629 2003-07-14 Simon Josefsson <jas@extundo.com>
48631 * m4/mempcpy.m4: New file.
48633 2003-07-14 Simon Josefsson <jas@extundo.com>
48635 * lib/mempcpy.h: New file.
48636 * lib/mempcpy.c: New file.
48638 2003-07-14 Paul Eggert <eggert@twinsun.com>
48640 * modules/getdate, modules/posixtm: Depend on mktime.
48642 2003-07-14 Paul Eggert <eggert@twinsun.com>
48644 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
48645 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
48646 unicodeio.c, unicodeio.h, unlocked-io.h:
48647 Switch from LGPL to GPL.
48649 2003-07-14 Paul Eggert <eggert@twinsun.com>
48651 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
48652 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
48653 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
48654 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
48655 vasprintf.c, vasprintf.h: Regenerate. These files are now being
48656 updated automatically by ../config/srclist-update. This changes
48657 their license from LPGL to GPL.
48659 2003-07-14 Paul Eggert <eggert@twinsun.com>
48661 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
48662 assumed to refer to the root of the most recent stable gettext version.
48663 * config/srclistvars.sh: Add defaults for eggert.
48664 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
48665 Match "This program" as well as "The program". This is needed
48668 2003-07-14 Jim Meyering <jim@meyering.net>
48670 Don't emit diagnostics. Let callers do that.
48671 * lib/save-cwd.c: Don't include "error.h".
48672 (save_cwd): Don't call error. Ensure that errno is valid
48673 when returning nonzero.
48675 * lib/save-cwd.h (restore_cwd): Update prototype.
48676 * lib/save-cwd.c (restore_cwd): Remove two parameters.
48677 Simplify. Don't call error upon failure. Let callers do that.
48678 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
48679 when auditing is enabled. But don't bother updating the #if.
48681 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
48683 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
48684 it breaks C++ compilation.
48685 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
48687 2003-07-10 Simon Josefsson <jas@extundo.com>
48689 * modules/strchrnul (Makefile.am): Add strchrnul.h.
48691 2003-07-10 Jim Meyering <jim@meyering.net>
48693 * m4/clock_time.m4: Remove trailing blank.
48694 * m4/intmax_t.m4: Likewise.
48696 2003-07-10 Jim Meyering <jim@meyering.net>
48698 * lib/vasnprintf.c: Remove trailing blanks.
48699 Make cpp indentation consistent.
48701 2003-07-09 Paul Eggert <eggert@twinsun.com>
48703 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
48704 posixver.c, strftime.c, strnlen.c, strverscmp.c:
48705 Switch from LGPL to GPL.
48707 2003-07-09 Paul Eggert <eggert@twinsun.com>
48709 * config/srclist.txt: Sort sublists. Add
48710 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
48711 that differ from gnulib for one reason or another; we'd like this list
48712 to be smaller but for now let's document what we have.
48714 2003-07-08 Paul Eggert <eggert@twinsun.com>
48716 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
48717 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
48718 and sweeter "eval x=$x".
48719 * config/srclist.txt: Get lib/argp* from glibc.
48721 2003-07-07 Paul Eggert <eggert@twinsun.com>
48723 * lib/mktime.c: Fix some boundary cases and remove need for floating
48726 Issue a compile-time diagnostic if time_t is floating point, or if
48727 two's complement arithmetic is not in effect, or if arithmetic
48728 right shift does not propagate the sign. These assumptions were
48729 all in the original code but they weren't checked.
48731 (TIME_T_MIDPOINT, verify): New macros.
48732 (__isleap): Remove; it has integer overflow problems.
48733 (leapyear): New function, without those problems.
48734 (ydhms_tm_diff): Remove; splitting into two parts.
48735 (ydhms_diff): New function, containing the arithmetic part of
48736 the old ydhms_tm_diff function. Issue a compile-time
48737 diagnostic if we are not using C99 integer division.
48738 Avoid casts when possible.
48739 (guess_time_tm): New function, containing the checking part of
48740 the old ydhms_tm_diff function. Return the new value, rather than
48741 the difference between it and the old. Accept a new argument T
48742 so that *T specifies the old value. Check for overflow in the result.
48744 (__mktime_internal): Use a time_t offset, not a long int offset.
48745 This undoes the 2003-06-04 change, which is no longer needed now
48746 that we have better overflow checking.
48747 (localtime_offset): Likewise.
48749 (__mktime_internal): Avoid harmful overflow on hosts where time_t
48750 and long are 64-bit but int is only 32-bit.
48751 (ydhms_diff): Use long int to store year1 and yday1.
48752 Issue a compile-time diagnostic if long int is not wide enough.
48754 (__mktime_internal): Use long int to store adjusted year and yday.
48755 Use plain C rather than preprocessor commands, if that doesn't
48757 Check for overflow (and try to repair) after each probe
48758 rather than checking only at the very end. This avoids some bugs
48759 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
48760 does not equal GMT offset at maximum time).
48761 Use integer to check for overflow rather than floating point; this
48762 is more portable to non-IEEE hosts, and is a tad faster.
48763 When we detect that we are oscillating between two values,
48764 don't check whether tm_isdst has the requested value, since
48765 we already know the answer. When tm_isdst has the wrong value,
48766 use a different heuristic to find the right one, based on the
48767 extreme values actually observed in practice in tz2003a,
48768 rather than the (overly optimistic) "previous 3 calendar quarters".
48770 (not_equal_tm, print_tm, check_result): Use "const T" rather than
48771 "T const" to accommodate glibc style.
48772 (check_result): Use less-confusing report format. "long" -> "long int.
48774 Don't loop if the iteration overflows time_t.
48775 Allow a negative step in the iteration.
48777 2003-07-06 Karl Berry <karl@gnu.org>
48779 * config/depcomp: update from automake.
48780 * config/config.sub: update from prep.
48782 2003-07-03 Karl Berry <karl@gnu.org>
48784 * config/config.guess: update from prep.
48786 2003-07-01 Paul Eggert <eggert@twinsun.com>
48788 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
48789 xreadlink.c now includes it unconditionally.
48791 2003-07-01 Paul Eggert <eggert@twinsun.com>
48793 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
48794 having it depend on HAVE_SYS_TYPES_H.
48796 2003-07-01 Bruno Haible <bruno@clisp.org>
48798 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
48799 <sys/types.h> should be sufficient.
48800 Reported by Paul Eggert.
48802 2003-06-26 Karl Berry <karl@gnu.org>
48804 * config/depcomp: update from automake.
48806 2003-06-26 Bruno Haible <bruno@clisp.org>
48808 * modules/human: Depend on module stdbool.
48810 2003-06-25 Bruno Haible <bruno@clisp.org>
48812 * modules/readlink: New file.
48813 * modules/xreadlink: Depend on it.
48814 * MODULES.html.sh (func_all_modules): Add readlink.
48816 2003-06-25 Bruno Haible <bruno@clisp.org>
48818 * m4/readlink.m4: New file.
48820 2003-06-25 Bruno Haible <bruno@clisp.org>
48822 * lib/readlink.c: New file.
48824 2003-06-22 Karl Berry <karl@gnu.org>
48826 * config/srclist.txt: update mkinstalldirs from automake.
48827 * config/mkinstalldirs: update.
48829 2003-06-22 Bruno Haible <bruno@clisp.org>
48831 Portability to mingw32.
48832 * m4/ssize_t.m4: New file, from GNU gettext.
48833 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
48834 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
48836 2003-06-22 Bruno Haible <bruno@clisp.org>
48838 * modules/safe-read: Add m4/ssize_t.m4.
48839 * modules/xreadlink: Add m4/ssize_t.m4.
48841 2003-06-20 Bruno Haible <bruno@clisp.org>
48843 Assume C89, so PARAMS isn't needed.
48844 * lib/unicodeio.h (PARAMS): Remove.
48845 * lib/unicodeio.c: Don't use PARAMS.
48847 2003-06-18 Karl Berry <karl@gnu.org>
48849 * config/config.{guess,sub}: update from prep.
48851 2003-06-18 Jim Meyering <jim@meyering.net>
48853 Merge changes from coreutils.
48854 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
48855 Remove explicit declarations of xmalloc and realloc.
48857 (read_utmp): Remove anachronistic cast of xmalloc.
48859 2003-06-17 Paul Eggert <eggert@twinsun.com>
48861 Assume C89, so PARAMS isn't needed.
48862 * lib/backupfile.h (PARAMS): Remove. All uses removed.
48863 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
48864 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
48865 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
48866 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
48867 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
48868 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
48869 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
48870 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
48871 lib/xstrtod.h, lib/xstrtol.h: Likewise.
48872 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
48873 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
48874 no longer needed. Anyway, config.h should always be included before any
48877 2003-06-11 Simon Josefsson <jas@extundo.com>
48879 * modules/sysexits: New file.
48880 * MODULES.html.sh (func_all_modules): Add sysexits.
48882 2003-06-11 Simon Josefsson <jas@extundo.com>
48884 * lib/sysexit_.h: New file.
48886 2003-06-11 Derek Price <derek@ximbiot.com>
48888 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
48891 2003-06-11 Bruno Haible <bruno@clisp.org>
48893 * m4/sysexits.m4: New file.
48895 2003-06-10 Simon Josefsson <jas@extundo.com>
48897 * lib/argp.h: New file, from glibc.
48898 * lib/argp-ba.c: New file, from glibc.
48899 * lib/argp-eexst.c: New file, from glibc.
48900 * lib/argp-fmtstream.c: New file, from glibc.
48901 * lib/argp-fmtstream.h: New file, from glibc.
48902 * lib/argp-fs-xinl.c: New file, from glibc.
48903 * lib/argp-help.c: New file, from glibc.
48904 * lib/argp-namefrob.h: New file, from glibc.
48905 * lib/argp-parse.c: New file, from glibc.
48906 * lib/argp-pv.c: New file, from glibc.
48907 * lib/argp-pvh.c: New file, from glibc.
48908 * lib/argp-xinl.c: New file, from glibc.
48910 2003-06-10 Simon Josefsson <jas@extundo.com>
48912 * modules/strchrnul: New file.
48914 2003-06-10 Simon Josefsson <jas@extundo.com>
48916 * modules/argp: New file.
48918 2003-06-10 Simon Josefsson <jas@extundo.com>
48920 * m4/strchrnul.m4: New file.
48922 2003-06-10 Simon Josefsson <jas@extundo.com>
48924 * lib/strchrnul.h: New file.
48925 * lib/strchrnul.c: New file.
48927 2003-06-10 Bruno Haible <bruno@clisp.org>
48929 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
48931 2003-06-07 Karl Berry <karl@gnu.org>
48933 * config/config.{guess,sub}: update from prep.
48935 2003-06-07 Jim Meyering <jim@meyering.net>
48937 * modules/strtod: Use $(...) notation, not @...@ for
48938 AC_REPLACE'd variables.
48939 * modules/localcharset: Likewise.
48941 2003-06-07 Jim Meyering <jim@meyering.net>
48943 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
48944 in place of my name in the copyright comment.
48945 Remove definition and uses of __P.
48948 * lib/stat.c: Don't declare xmalloc explicitly.
48949 Instead, include "xalloc.h".
48950 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
48951 xrealloc, and xcalloc return values.
48952 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
48954 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
48956 2003-06-07 Bruno Haible <bruno@clisp.org>
48958 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
48959 avoid AC_CONFIG_LINKS.
48960 * modules/fnmatch (Makefile.am): Use explicit creation rule for
48961 fnmatch.h, to avoid AC_CONFIG_LINKS.
48962 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
48964 2003-06-07 Bruno Haible <bruno@clisp.org>
48966 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
48967 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
48968 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
48970 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
48971 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
48974 2003-06-06 Jim Meyering <jim@meyering.net>
48976 Merge from coreutils.
48977 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
48978 Consolidate declarations and initializations of *_base* locals.
48980 Merge from coreutils.
48981 This avoids a core dump on systems without GNU putenv,
48982 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
48983 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
48984 (unsetenv): New static function, from GNU libc.
48985 (rpl_putenv): Use it.
48987 * lib/modechange.c: Remove trailing blanks.
48989 Merge from coreutils.
48990 * lib/fsusage.c: Remove declaration of statfs.
48991 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
48993 * lib/posixtm.c: Include <stdbool.h> unconditionally.
48995 2003-06-06 Jim Meyering <jim@meyering.net>
48997 * lib/stdbool_.h: Renamed from stdbool.h.in.
48999 2003-06-06 Jim Meyering <jim@meyering.net>
49000 Bruno Haible <bruno@clisp.org>
49002 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
49003 Adjust Makefile.am snippet not to redirect directly to target.
49004 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
49006 2003-06-05 Paul Eggert <eggert@twinsun.com>
49008 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
49009 mismatch, look in future quarters as well as past. This fixes a
49010 bug when processing fall-backwards gaps immediately after a long
49011 period of daylight-saving time.
49013 * lib/mktime.c: Assume freestanding C89 or better.
49014 (HAVE_LIMITS_H): Remove. Assume it's 1.
49015 (__P): Remove; not used.
49016 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
49017 (mktime, not_equal_tm, print_tm, check_result,
49018 main): Use prototypes. Use const * where appropriate.
49019 (main): Fix typo in testing code that uncovered by above changes.
49020 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
49022 2003-06-04 Paul Eggert <eggert@twinsun.com>
49024 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
49025 locale.h, localeconv. This merges changes from coreutils.
49027 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
49028 It can be removed after the next Autoconf is released.
49029 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
49032 2003-06-04 Paul Eggert <eggert@twinsun.com>
49034 * lib/mktime.c: Fix Debian bug 177940
49035 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
49036 (localtime_offset): Now long int, not time_t, because we want it
49037 to be guaranteed to be signed. All uses changed.
49038 (__mktime_internal): If overflow would occur when adding offset,
49041 Merge 'human' changes from coreutils. Rewrite to support
49042 locale-specific notations like thousands separators.
49043 * lib/human.c: Simplify authorship notice.
49044 Include human.h immediately after config.h.
49045 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
49046 <limits.h>: Do not include, since human.h does.
49047 (SIZE_MAX, UINTMAX_MAX): New macros.
49048 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
49049 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
49050 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
49051 (power_letter): Renamed from suffixes.
49052 (generate_suffix_backwards): Remove.
49053 (adjust_value): Now takes int style (because of human.h changes)
49054 and long double value (for greater precision on some platforms).
49055 (group_number): New function.
49056 (human_readable): Use it. Use integer options, not enum.
49057 Put the options before the sizes in the arg list.
49058 Support all the new options.
49059 The old human_readable function has been removed;
49060 use inttostr.h instead.
49061 (human_readable, default_block_size, humblock):
49062 Use uintmax_t, not int, for block sizes.
49063 (human_readable_inexact, block_size_types): Remove.
49064 (block_size_opts): New constant.
49065 (human_options): Renamed from human_block_size, with new signature
49066 that allows block sizes up to UINTMAX_MAX. All callers changed.
49067 * lib/human.h: Add copyright and authorship notice.
49068 Include <limits.h> and <stdbool.h> unconditionally.
49069 (PARAMS): Remove. All uses removed.
49070 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
49071 (enum human_inexact_style): Remove tag; now a nameless enum.
49072 (human_floor, human_ceiling, human_round_to_even): Now have
49073 values 2, 0, 1 rather than -1, 1, 0.
49074 (human_group_digits, human_suppress_point_zero, human_autoscale,
49075 human_base_1024, human_SI, human_B): New constants.
49076 (human_readable_inexact, human_block_size): Remove.
49077 (human_readable): Size args are now uintmax_t, not int.
49078 (human_options): New decl.
49080 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
49081 unnecessary now that we assume C89 or better. This change
49082 imported from coreutils.
49084 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
49085 arbitrarily. This is the same patch as 2003-05-28, but it got lost
49086 in the 2003-05-30 sync from glibc.
49088 .h files should stand alone, but we shouldn't include <sys/types.h>
49089 if we can get away with just <stddef.h>.
49091 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
49092 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
49093 rather than <sys/types.h>, as we merely need size_t.
49094 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
49096 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
49097 Include <stdio.h>, to get FILE.
49098 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
49099 memcasecmp.h has included <stddef.h> and all we need is size_t.
49100 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
49101 our interface, instead of including <sys/types.h>
49103 2003-06-04 Paul Eggert <eggert@twinsun.com>
49105 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
49106 now, as glibc mktime is buggy on non-glibc systems.
49108 2003-06-03 Karl Berry <karl@gnu.org>
49110 * config/config.sub: update from prep.
49112 2003-06-02 Paul Eggert <eggert@twinsun.com>
49115 Fix some minor time-related bugs with POSIX time arguments.
49116 Some valid time stamps were being rejected (notably -1, and
49117 time stamps before 1900 on 64-bit hosts). And some invalid
49118 time stamps were being accepted, e.g. September 31.
49120 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
49121 that we can return (time_t) -1 successfully.
49122 * lib/posixtm.c: Likewise.
49123 [HAVE_STDBOOL_H]: Include <stdbool.h>.
49124 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
49125 (t): Remove static var.
49126 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
49127 of static var. All uses changed.
49128 (year): Do not reject years before 1900; they can occur with
49130 (posix_time_parse): Do not check for out-of-range components;
49131 that is now the caller's responsibility, since our checks were
49132 only approximations.
49133 (posixtime): Use mktime to check for out-of-range components,
49134 since it knows them exactly.
49135 If mktime returns (time_t) -1, check whether an error actually occurred
49136 by invoking localtime on -1.
49137 (main) [TEST_POSIXTIME]: Check for input data errors, and report
49138 posixtime failures better.
49139 Improve the test data (in comments only).
49141 2003-06-02 Karl Berry <karl@gnu.org>
49143 * config/mkinstalldirs (version): new variable.
49144 (--version): new option.
49145 (usage): improve message.
49147 2003-05-30 Karl Berry <karl@gnu.org>
49149 * lib/mktime.c: update from libc.
49151 2003-05-30 Bruno Haible <bruno@clisp.org>
49153 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
49154 * config/config.rpath: Upgrade to gettext-0.12.1.
49156 2003-05-30 Bruno Haible <bruno@clisp.org>
49158 * m4/gettext.m4: Upgrade to gettext-0.12.1.
49159 * m4/nls.m4: New file, from gettext-0.12.1.
49160 * m4/po.m4: New file, from gettext-0.12.1.
49161 * m4/progtest.m4: Upgrade to gettext-0.12.1.
49163 2003-05-30 Bruno Haible <bruno@clisp.org>
49165 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
49166 * lib/localcharset.h: Likewise.
49167 * lib/localcharset.c: Likewise.
49169 2003-05-29 Karl Berry <karl@gnu.org>
49171 * config/config.rpath: update from gettext.
49173 2003-05-28 Paul Eggert <eggert@twinsun.com>
49175 Assume the headers required for C89 freestanding compilers.
49176 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
49177 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
49178 * m4/human.m4 (gl_HUMAN): Likewise.
49179 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
49180 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
49181 * m4/userspec.m4 (gl_USERSPEC): Likewise.
49182 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
49183 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
49184 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
49186 2003-05-28 Paul Eggert <eggert@twinsun.com>
49188 Assume the headers required for C89 freestanding compilers.
49189 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
49190 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
49191 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
49192 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
49193 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
49194 define, since <limits.h> is guaranteed to do that.
49195 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
49196 * lib/exclude.c: Include <stdbool.h> unconditionally.
49197 * lib/tempname.c: Include <stddef.h> unconditionally.
49198 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
49199 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
49200 <stddef.h> does that.
49201 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
49202 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
49203 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
49205 * lib/xstrtol.c: Likewise.
49206 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
49207 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
49209 * lib/addext.c (addext): Use assignment rather than cast, to avoid
49210 warnings on some platforms.
49212 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
49215 2003-05-26 Jim Meyering <jim@meyering.net>
49217 Merge in a change from coreutils:
49218 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
49219 that is guaranteed to be `no'. Use `no_such_member' to indicate
49220 that condition, rather than `-1' which is slightly misleading.
49221 Change the name of the cache variable to have the gl_ prefix.
49222 Prompted by a patch from Richard Dawe for DJGPP.
49224 2003-05-24 Karl Berry <karl@gnu.org>
49226 * config/config.guess: update from prep.
49228 2003-05-22 Karl Berry <karl@gnu.org>
49230 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
49232 2003-05-20 Karl Berry <karl@gnu.org>
49234 * config/config.guess: update from prep.
49236 2003-05-18 Karl Berry <karl@gnu.org>
49238 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
49239 might actually be set by the user.
49241 * config/depcomp, install-sh, mdate-sh: update from automake.
49243 2003-05-17 Bruno Haible <bruno@clisp.org>
49245 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
49246 invalid expansion for AC_EGREP_CPP.
49247 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
49248 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
49249 Suggested by Akim Demaille <akim@epita.fr> in
49250 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
49252 2003-05-12 Jim Meyering <jim@meyering.net>
49254 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
49255 the space-padded-by-default conversion specifiers, %e, %k, %l.
49257 2003-05-12 Bruno Haible <bruno@clisp.org>
49259 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
49260 the string is longer than 4 KB.
49262 2003-05-11 Karl Berry <karl@gnu.org>
49264 * config/config.{guess,sub}: update from prep.
49266 2003-05-09 Bruno Haible <bruno@clisp.org>
49268 * modules/error: Add m4/strerror_r.m4 to file list.
49270 2003-05-03 Bruno Haible <bruno@clisp.org>
49272 Upgrade to Unicode-4.0.
49273 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
49274 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
49275 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
49276 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
49277 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
49278 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
49279 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
49280 Change width of U+E0100..U+E01EF from 1 to 0.
49282 2003-04-25 Jim Meyering <jim@meyering.net>
49284 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
49285 of type size_t, not int.
49287 2003-04-25 Bruno Haible <bruno@clisp.org>
49289 * lib/copy-file.c: Include <stddef.h>, for size_t.
49291 2003-04-21 Paul Eggert <eggert@twinsun.com>
49293 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
49294 code which expansion is under static control. Patch imported from
49295 Akim Demaille's patch to Bison; see
49296 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
49298 2003-04-14 Bruno Haible <bruno@clisp.org>
49300 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
49302 2003-04-11 Jim Meyering <jim@meyering.net>
49304 Merge changes from Coreutils.
49306 2003-03-22 Jim Meyering <jim@meyering.net>
49308 * lib/strftime.c (widen): Cast alloca return value to proper type.
49310 2003-01-19 Ulrich Drepper <drepper@redhat.com>
49313 * lib/strftime.c (my_strftime): Handle very large width
49314 specifications for numeric values correctly. Improve checks for
49317 2003-01-19 Jim Meyering <jim@meyering.net>
49319 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
49321 (nl_get_alt_digit) [! defined my_strftime]: Define.
49322 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
49323 _nl_get_alt_digit and _nl_get_walt_digit.
49325 * lib/strftime.c (my_strftime): Merge in locale-related changes from
49326 libc. These changes have no effect outside of _LIBC.
49328 2003-04-10 Bruno Haible <bruno@clisp.org>
49330 * modules/findprog: New file.
49331 * MODULES.html.sh (func_all_modules): Add it.
49333 2003-04-10 Bruno Haible <bruno@clisp.org>
49335 * m4/findprog.m4: New file.
49336 * m4/eaccess.m4: New file.
49338 2003-04-10 Bruno Haible <bruno@clisp.org>
49340 * lib/findprog.h: New file, from GNU gettext.
49341 * lib/findprog.c: New file, from GNU gettext.
49343 2003-04-05 Jim Meyering <jim@meyering.net>
49345 Merge changes from Coreutils.
49347 * lib/exclude.h (PARAMS): Remove definition and uses.
49348 * lib/exclude.c: Remove uses of `PARAMS'.
49350 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
49351 Add test-cases for DOS filenames. Declare program_name.
49352 (main): Set up program_name. Patch by Rich Dawe.
49354 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
49356 Use mntctl's return value to drive the entry-processing loop, since
49357 we can't rely on the value of the vmt_length member in the last
49358 entry. On some systems doing so could result in exhausting
49359 virtual memory. Based in part on a patch from Mike Jetzer.
49361 2003-04-04 Bruno Haible <bruno@clisp.org>
49363 * modules/linebreak: New file.
49364 * MODULES.html.sh (func_all_modules): Add it.
49366 2003-04-04 Bruno Haible <bruno@clisp.org>
49368 * m4/linebreak.m4: New file.
49370 2003-04-04 Bruno Haible <bruno@clisp.org>
49372 * lib/linebreak.h: New file, from GNU gettext.
49373 * lib/linebreak.c: New file, from GNU gettext with slight
49375 * lib/lbrkprop.h: New file, from GNU gettext.
49377 2003-04-03 Bruno Haible <bruno@clisp.org>
49379 * modules/utf8-ucs4: New file.
49380 * modules/utf16-ucs4: New file.
49381 * modules/ucs4-utf8: New file.
49382 * modules/ucs4-utf16: New file.
49383 * MODULES.html.sh (func_all_modules): Add them.
49385 2003-04-03 Bruno Haible <bruno@clisp.org>
49387 * m4/utf-ucs4.m4: New file.
49388 * m4/ucs4-utf.m4: New file.
49390 2003-04-03 Bruno Haible <bruno@clisp.org>
49392 * lib/utf8-ucs4.h: New file, from GNU gettext.
49393 * lib/utf16-ucs4.h: New file, from GNU gettext.
49394 * lib/ucs4-utf8.h: New file, from GNU gettext.
49395 * lib/ucs4-utf16.h: New file, from GNU gettext.
49397 2003-04-02 Bruno Haible <bruno@clisp.org>
49399 * modules/binary-io: New file.
49400 * MODULES.html.sh (func_all_modules): Add it.
49402 2003-04-02 Bruno Haible <bruno@clisp.org>
49404 * lib/binary-io.h: New file, from GNU gettext.
49406 2003-04-01 Bruno Haible <bruno@clisp.org>
49408 * modules/pathname: New file.
49409 * MODULES.html.sh (func_all_modules): Add it.
49411 2003-04-01 Bruno Haible <bruno@clisp.org>
49413 * lib/pathname.h: New file, from GNU gettext.
49414 * lib/concatpath.c: New file, from GNU gettext.
49416 2003-03-30 Bruno Haible <bruno@clisp.org>
49418 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
49420 2003-03-30 Bruno Haible <bruno@clisp.org>
49422 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
49423 function chown() doesn't exist.
49425 2003-03-28 Bruno Haible <bruno@clisp.org>
49427 * modules/copy-file: New file.
49428 * MODULES.html.sh (func_all_modules): Add it.
49430 2003-03-28 Bruno Haible <bruno@clisp.org>
49432 * m4/copy-file.m4: New file.
49434 2003-03-28 Bruno Haible <bruno@clisp.org>
49436 * lib/copy-file.h: New file, from GNU gettext.
49437 * lib/copy-file.c: New file, from GNU gettext.
49439 2003-03-18 Jim Meyering <jim@meyering.net>
49441 * lib/quote.c (quote_n): Fix typo in comment.
49443 2003-03-18 Bruno Haible <bruno@clisp.org>
49445 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
49447 * m4/onceonly_2_57.m4: Likewise.
49449 2003-03-17 Bruno Haible <bruno@clisp.org>
49451 * m4/onceonly.m4: Require autoconf 2.54 or newer.
49452 (m4_quote): Remove macro.
49453 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
49455 2003-03-14 Jim Meyering <jim@meyering.net>
49457 Merge changes from Coreutils.
49458 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
49459 to be const, in order to avoid warnings.
49460 (obstack_room): Likewise.
49461 (obstack_empty_p): Likewise.
49463 2003-03-14 Bruno Haible <bruno@clisp.org>
49465 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
49466 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
49468 2003-03-13 Paul Eggert <eggert@twinsun.com>
49470 Merge changes from Bison.
49471 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
49472 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
49473 when compiling Bison 1.875's `bitset bset = obstack_alloc
49474 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
49475 * lib/hash.c: Include <stdbool.h> unconditionally.
49477 2003-03-13 Paul Eggert <eggert@twinsun.com>
49479 * m4/onceonly.m4 (m4_quote): New macro.
49480 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
49481 Quote AC_FOREACH variable-expansions properly.
49483 2003-03-13 Paul Eggert <eggert@twinsun.com>
49485 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
49487 2003-03-09 Paul Eggert <eggert@twinsun.com>
49489 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
49490 Reported by Bruce Becker; see:
49491 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
49493 2003-03-03 Paul Eggert <eggert@twinsun.com>
49494 Bruno Haible <bruno@clisp.org>
49496 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
49497 Reported by John Hughes, see
49498 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
49500 2003-02-20 Bruno Haible <bruno@clisp.org>
49502 * MODULES.html.sh (func_all_modules): Add poll.
49504 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
49506 * modules/poll: New file.
49508 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
49510 * lib/poll_.h: New file.
49511 * lib/poll.c: New file.
49513 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
49515 * m4/poll.m4: New file.
49517 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
49519 * modules/mathl: New file.
49521 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
49523 * lib/mathl.h: New file.
49524 * lib/acosl.c: New file.
49525 * lib/asinl.c: New file.
49526 * lib/atanl.c: New file.
49527 * lib/ceill.c: New file.
49528 * lib/cosl.c: New file.
49529 * lib/expl.c: New file.
49530 * lib/floorl.c: New file.
49531 * lib/frexpl.c: New file.
49532 * lib/ldexpl.c: New file.
49533 * lib/logl.c: New file.
49534 * lib/sincosl.c: New file.
49535 * lib/sinl.c: New file.
49536 * lib/sqrtl.c: New file.
49537 * lib/tanl.c: New file.
49538 * lib/trigl.c: New file.
49539 * lib/trigl.h: New file.
49541 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
49543 * m4/mathl.m4: New file.
49545 2003-02-18 Bruno Haible <bruno@clisp.org>
49547 * MODULES.html.sh (func_all_modules): Add mathl.
49549 2003-02-17 Bruno Haible <bruno@clisp.org>
49551 * modules/mkdtemp: New module.
49552 * MODULES.html.sh (func_all_modules): Add it.
49554 2003-02-17 Bruno Haible <bruno@clisp.org>
49556 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
49558 2003-02-17 Bruno Haible <bruno@clisp.org>
49560 * lib/mkdtemp.h: New file, from GNU gettext.
49561 * lib/mkdtemp.c: New file, from GNU gettext.
49563 2003-02-02 Jim Meyering <jim@meyering.net>
49565 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
49568 2003-01-31 Bruno Haible <bruno@clisp.org>
49570 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
49572 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
49574 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
49576 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
49579 2003-01-31 Bruno Haible <bruno@clisp.org>
49581 * lib/rename.c: #undef rename before defining rpl_rename.
49582 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
49584 2003-01-30 Bruno Haible <bruno@clisp.org>
49586 * modules/vasnprintf, modules/vasprintf: New modules.
49587 * MODULES.html.sh (func_all_modules): Add them.
49589 2003-01-30 Bruno Haible <bruno@clisp.org>
49591 * m4/signed.m4: New file, from GNU gettext.
49592 * m4/longdouble.m4: New file, from GNU gettext.
49593 * m4/wchar_t.m4: New file, from GNU gettext.
49594 * m4/wint_t.m4: New file, from GNU gettext.
49595 * m4/vasnprintf.m4: New file.
49596 * m4/vasprintf.m4: New file.
49598 2003-01-30 Bruno Haible <bruno@clisp.org>
49600 * lib/printf-args.h: New file, from GNU gettext.
49601 * lib/printf-args.c: New file, from GNU gettext.
49602 * lib/printf-parse.h: New file, from GNU gettext.
49603 * lib/printf-parse.c: New file, from GNU gettext.
49604 * lib/vasnprintf.h: New file, from GNU gettext.
49605 * lib/vasnprintf.c: New file, from GNU gettext.
49606 * lib/asnprintf.c: New file, from GNU gettext.
49607 * lib/vasprintf.h: New file, from GNU gettext with modifications.
49608 * lib/vasprintf.c: New file, from GNU gettext.
49609 * lib/asprintf.c: New file, from GNU gettext.
49611 2003-01-29 Bruno Haible <bruno@clisp.org>
49613 * modules/stpncpy: New module.
49614 * MODULES.html.sh (func_all_modules): Add it.
49616 2003-01-29 Bruno Haible <bruno@clisp.org>
49618 * m4/stpncpy.m4: New file.
49620 2003-01-29 Bruno Haible <bruno@clisp.org>
49622 * lib/stpncpy.h: New file, from GNU gettext with modifications.
49623 * lib/stpncpy.c: New file, from GNU gettext with modifications.
49625 2003-01-28 Bruno Haible <bruno@clisp.org>
49627 * modules/c-ctype: New module.
49628 * MODULES.html.sh (func_all_modules): Add it.
49630 2003-01-28 Bruno Haible <bruno@clisp.org>
49632 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
49634 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
49637 2003-01-27 Bruno Haible <bruno@clisp.org>
49639 * modules/xsetenv: New module.
49640 * MODULES.html.sh (func_all_modules): Add it.
49642 2003-01-27 Bruno Haible <bruno@clisp.org>
49644 * lib/xsetenv.h: New file, from GNU gettext.
49645 * lib/xsetenv.c: New file, from GNU gettext.
49647 2003-01-23 Jim Meyering <jim@meyering.net>
49649 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
49650 from working on systems without dirfd (at least Irix and OSF1/Tru64).
49652 2003-01-23 Bruno Haible <bruno@clisp.org>
49654 * modules/minmax: New module.
49655 * MODULES.html.sh (func_all_modules): Add it.
49657 2003-01-23 Bruno Haible <bruno@clisp.org>
49659 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
49662 2003-01-22 Bruno Haible <bruno@clisp.org>
49664 * modules/exit: New module.
49665 * MODULES.html.sh (func_all_modules): Add it.
49667 2003-01-22 Bruno Haible <bruno@clisp.org>
49669 * lib/exit.h: New file, from GNU gettext.
49671 2003-01-19 Bruno Haible <bruno@clisp.org>
49673 * gnulib-tool: Recognize option --extract-maintainer.
49674 (func_get_maintainer): New function.
49675 * modules/*: Add Maintainer entry.
49677 2003-01-16 Jim Meyering <jim@meyering.net>
49679 * m4/regex.m4: The `regex' struct is both input and output.
49680 Initialize it before each use. Patch by Tim Waugh.
49682 2003-01-16 Bruno Haible <bruno@clisp.org>
49684 * MODULES.html.sh: Add a table of contents. Add the module name as
49685 leftmost column. Add hyperlinks.
49687 2003-01-15 Bruno Haible <bruno@clisp.org>
49689 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
49691 2003-01-15 Bruno Haible <bruno@clisp.org>
49693 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
49694 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
49697 2003-01-15 Bruno Haible <bruno@clisp.org>
49699 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
49701 2003-01-15 Bruno Haible <bruno@clisp.org>
49703 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
49704 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
49706 2003-01-14 Jim Meyering <jim@meyering.net>
49708 * lib/same.c (same_name): Tweak a comment.
49710 2003-01-14 Bruno Haible <bruno@clisp.org>
49712 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
49713 when a string comparison is sufficient.
49715 2003-01-14 Bruno Haible <bruno@clisp.org>
49717 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
49720 2003-01-14 Bruno Haible <bruno@clisp.org>
49722 * lib/hash-pjw.c: Add comment about low quality of this function.
49724 2003-01-13 Bruno Haible <bruno@clisp.org>
49726 * modules/stpcpy: Distribute lib/stpcpy.h.
49727 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
49729 2003-01-13 Bruno Haible <bruno@clisp.org>
49731 * modules/*: Add a description.
49732 * modules/strpbrk: Fix Makefile.am snippet.
49733 * modules/strtoimax: Fix dependencies.
49734 * modules/strtoumax: Likewise.
49736 2003-01-13 Bruno Haible <bruno@clisp.org>
49738 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
49739 * modules/alloca (Makefile.am): All object files depend on alloca.h.
49740 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
49742 2003-01-13 Bruno Haible <bruno@clisp.org>
49744 * gnulib-tool (func_create_testdir): Store config/* files in the main
49746 * config.rpath: Move to ...
49747 * config/config.rpath: ... here.
49748 * modules/gettext: Contains config/config.rpath, not config.rpath.
49749 * modules/iconv: Likewise.
49751 2003-01-12 Paul Eggert <eggert@twinsun.com>
49753 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
49754 to avoid collisions with libcurses and libreadline.
49756 * m4/getstr.m4: Remove.
49757 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
49759 2003-01-12 Paul Eggert <eggert@twinsun.com>
49761 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
49762 to avoid collisions with libcurses and libreadline.
49764 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
49765 * lib/getstr.h, getstr.c: Remove.
49766 * lib/getline.c: Include "getline.h", to check interface.
49767 Move body of old getstr.c here: this defines MIN_CHUNK and
49768 declares getdelim2, which is renamed from getstr.
49769 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
49771 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
49773 * lib/linebuffer.h: Likewise.
49774 (readline): Remove backward-compatibility macro.
49776 2003-01-12 Paul Eggert <eggert@twinsun.com>
49778 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
49779 to avoid collisions with libcurses and libreadline.
49781 * MODULES.html.sh: Remove getstr.
49782 * modules/getline: Depend on unlocked-io, not getstr.
49784 2003-01-12 Jim Meyering <jim@meyering.net>
49786 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
49788 2003-01-10 Bruno Haible <bruno@clisp.org>
49790 * modules/alloca: Change Makefile.am requirements. Simplify Include
49791 requirements. Add lib/alloca_.h to file list.
49793 2003-01-10 Bruno Haible <bruno@clisp.org>
49795 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
49797 2003-01-10 Bruno Haible <bruno@clisp.org>
49799 * lib/alloca_.h: New file.
49800 * lib/getdate.y: Unconditionally include alloca.h.
49801 * lib/makepath.c: Likewise.
49802 * lib/setenv.c: Likewise.
49803 * lib/userspec.c: Likewise.
49805 2003-01-09 Karl Berry <karl@gnu.org>
49807 * MODULES.html.sh: include `dirname $0` in PATH, to find
49810 2003-01-09 Bruno Haible <bruno@clisp.org>
49812 * modules/stdbool: Change configure.ac, Makefile.am requirements.
49813 Simplify Include requirements. Add lib/stdbool.h.in to file list.
49815 2003-01-09 Bruno Haible <bruno@clisp.org>
49817 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
49819 2003-01-09 Bruno Haible <bruno@clisp.org>
49821 * lib/stdbool.h.in: New file.
49823 2003-01-09 Bruno Haible <bruno@clisp.org>
49825 * gnulib-tool (func_all_modules): Ignore files ending in ~.
49826 * MODULES.html.sh: Likewise.
49828 2003-01-08 Jim Meyering <jim@meyering.net>
49830 * lib/full-write.c: Undefine and define-away `const' after inclusion
49831 of errno.h, not before. Suggestion from Bruno Haible.
49833 2003-01-08 Bruno Haible <bruno@clisp.org>
49835 * modules/full-read: Depend on full-write.
49837 2003-01-08 Bruno Haible <bruno@clisp.org>
49839 * lib/safe-read.c: Include specification header first, to ensure its
49841 * lib/full-write.c: Likewise.
49843 2003-01-07 Jim Meyering <jim@meyering.net>
49845 * lib/full-write.c: Rework so that it may serve to define full_read,
49847 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
49849 2003-01-07 Bruno Haible <bruno@clisp.org>
49851 * lib/strtoimax.c: Include <stdint.h> as an alternative to
49853 * lib/xstrtol.h: Likewise.
49854 * lib/xstrtoimax.c: Likewise.
49855 * lib/xstrtoumax.c: Likewise.
49856 * lib/human.h: Likewise.
49858 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
49859 on systems that have <inttypes.h> but not <stdint.h>.
49861 2003-01-07 Bruno Haible <bruno@clisp.org>
49863 * MODULES.html.sh: Add copyright notice.
49864 (missed_files): Omit CVS directory entries.
49865 (func_module): Make it work with sed-3.02.
49866 * MODULES.txt: Remove file.
49868 2003-01-06 Jim Meyering <jim@meyering.net>
49870 * lib/version-etc.c: Update year in translatable copyright string.
49872 2003-01-03 Karl Berry <karl@gnu.org>
49874 * config/config.{guess,sub}: update from prep.
49876 2003-01-02 Karl Berry <karl@gnu.org>
49878 * doc/COPYING.DOC: belatedly updated to 1.2.
49880 2003-01-01 Karl Berry <karl@gnu.org>
49882 * gnulib-tool (func_verify_module): report module name $module in
49883 error message, not $1.
49884 * gnulib-tool (create-testdir): don't complain if destdir couldn't
49885 be created, only if it doesn't exist.
49886 * gnulib-tool (last_checkin_date): don't expand the $Date here.
49888 2002-12-31 Paul Eggert <eggert@twinsun.com>
49890 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
49892 2002-12-31 Paul Eggert <eggert@twinsun.com>
49894 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
49895 memcmp if strcoll doesn't work.
49897 2002-12-31 Bruno Haible <bruno@clisp.org>
49899 * lib/utime.c (utime_null): No need to call ftruncate if the file was
49902 2002-12-31 Bruno Haible <bruno@clisp.org>
49904 * lib/memcoll.c (STRCOLL): New macro.
49907 2002-12-31 Bruno Haible <bruno@clisp.org>
49909 * lib/localcharset.h: New file.
49910 * lib/localcharset.c: Include it.
49911 * lib/unicodeio.c: Likewise.
49913 2002-12-31 Bruno Haible <bruno@clisp.org>
49915 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
49916 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
49918 2002-12-31 Bruno Haible <bruno@clisp.org>
49920 * lib/getline.h: Include <stddef.h>, for size_t.
49922 * lib/unicodeio.h: Include <stddef.h>, for size_t.
49923 * lib/unicodeio.c: Don't include <stddef.h>.
49925 2002-12-31 Bruno Haible <bruno@clisp.org>
49927 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
49930 2002-12-24 Karl Berry <karl@gnu.org>
49932 * config/config.guess: update from prep.
49934 2002-12-24 Bruno Haible <bruno@clisp.org>
49936 General infrasructure.
49937 * m4/README: Rewritten.
49938 * m4/onceonly.m4: New file.
49939 * m4/onceonly_2_57.m4: New file.
49942 * m4/atexit.m4: New file.
49945 * m4/strtod.m4: New file.
49948 * m4/strtol.m4: New file.
49951 * m4/strtoul.m4: New file.
49954 * m4/memchr.m4: New file.
49957 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
49958 (jm_FUNC_MEMCMP): Invoke it.
49961 * m4/memcpy.m4: New file.
49964 * m4/memmove.m4: New file.
49967 * m4/memset.m4: New file.
49970 * m4/strcspn.m4: New file.
49973 * m4/strpbrk.m4: New file.
49976 * m4/strstr.m4: New file.
49979 * m4/strerror.m4: New file.
49982 * m4/mktime.m4: Renamed from jm-mktime.m4.
49983 (gl_PREREQ_MKTIME): New macro.
49984 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
49987 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
49988 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
49989 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
49992 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
49993 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
49994 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
49997 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
49998 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
49999 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
50001 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
50004 * m4/xalloc.m4: New file.
50007 * m4/alloca.m4: New file.
50010 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
50011 (jm_FUNC_PUTENV): Invoke it.
50014 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
50015 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
50016 when invoked twice.
50017 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
50021 * m4/memrchr.m4: New file.
50024 * m4/stpcpy.m4: New file.
50027 * m4/strcase.m4: New file.
50030 * m4/strdup.m4: New file.
50033 * m4/strnlen.m4: New file.
50036 * m4/strndup.m4: New file.
50039 * m4/xstrtod.m4: New file.
50042 * m4/xstrtol.m4: New file.
50045 * m4/getdate.m4: New file.
50047 Module unlocked-io.
50048 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
50049 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
50050 * m4/jm-glibc-io.m4n: Remove file.
50052 Module long-options.
50053 * m4/long-options.m4: New file.
50056 * m4/md5.m4: New file.
50059 * m4/sha.m4: New file.
50062 * m4/getstr.m4: New file.
50065 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
50066 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
50067 <sys/types.h>, for size_t. Use the function name gnu_getline, not
50068 simply getline. Infoke gl_PREREQ_GETLINE.
50071 * m4/obstack.m4: New file.
50074 * m4/hash.m4: New file.
50077 * m4/readtokens.m4: New file.
50080 * m4/strverscmp.m4: New file.
50083 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
50087 * m4/strtoll.m4: New file.
50090 * m4/strtoull.m4: New file.
50093 * m4/strtoimax.m4: New file.
50096 * m4/strtoumax.m4: New file.
50099 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
50100 jm_AC_PREREQ_XSTRTOIMAX.
50101 Moved the strtol prerequisites to strtol.m4.
50102 Moved the strtoll prerequisites to strtoll.m4.
50103 Moved the strtoimax prerequisites to strtoimax.m4.
50106 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
50107 jm_AC_PREREQ_XSTRTOUMAX.
50108 Moved the strtoul prerequisites to strtoul.m4.
50109 Moved the strtoull prerequisites to strtoull.m4.
50110 Moved the strtoumax prerequisites to strtoumax.m4.
50113 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
50114 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
50117 * m4/dup2.m4: New file.
50120 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
50121 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
50124 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
50125 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
50127 Module gettimeofday.
50128 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
50129 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
50130 gl_PREREQ_GETTIMEOFDAY.
50133 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
50134 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
50137 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
50138 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
50139 jm_AC_TYPE_UINTMAX_T.
50140 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
50143 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
50144 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
50147 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
50148 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
50151 * m4/timespec.m4 (gl_TIMESPEC): New macro.
50152 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
50153 * m4/st_mtim.m4: Indentation.
50156 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
50157 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
50158 gl_PREREQ_NANOSLEEP.
50161 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
50162 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
50163 (gl_REGEX): New macro.
50166 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
50167 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
50170 * m4/rmdir.m4: New file.
50173 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
50174 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
50175 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
50178 * m4/dirname.m4: New file.
50181 * m4/getopt.m4: New file.
50183 Module unistd-safer.
50184 * m4/unistd-safer.m4: New file.
50187 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
50189 (gl_PREREQ_FNMATCH_EXTRA): New macro.
50190 (gl_FUNC_FNMATCH_POSIX): New macro.
50191 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
50192 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
50196 * m4/exclude.m4: New file.
50199 * m4/human.m4: New file.
50205 * m4/backupfile.m4: New file.
50206 * m4/d-ino.m4: Indentation.
50209 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
50210 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
50211 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
50214 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
50218 * m4/euidaccess.m4: New file.
50221 * m4/file-type.m4: New file.
50224 * m4/fileblocks.m4: New file.
50227 * m4/filemode.m4: New file.
50230 * m4/isdir.m4: New file.
50233 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
50234 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
50237 * m4/makepath.m4: New file.
50240 * m4/modechange.m4: New file.
50243 * m4/mountlist.m4: New file.
50244 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
50247 Module path-concat.
50248 * m4/path-concat.m4: New file.
50251 * m4/pathmax.m4: New file.
50254 * m4/same.m4: New file.
50257 * m4/save-cwd.m4: New file.
50260 * m4/savedir.m4: New file.
50263 * m4/xgetcwd.m4: New file.
50264 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
50267 * m4/xreadlink.m4: New file.
50270 * m4/safe-read.m4: New file.
50273 * m4/safe-write.m4: New file.
50276 * m4/closeout.m4: New file.
50278 Module stdio-safer.
50279 * m4/stdio-safer.m4: New file.
50282 * m4/getpass.m4: New file.
50285 * m4/getugroups.m4: New file.
50287 Module group-member.
50288 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
50289 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
50292 * m4/idcache.m4: New file.
50295 * m4/userspec.m4: New file.
50298 * m4/clock_time.m4: New file.
50299 * m4/gettime.m4: New file.
50302 * m4/settime.m4: New file.
50305 * m4/posixtm.m4: New file.
50307 Module gethostname.
50308 * m4/gethostname.m4: New file.
50311 * m4/canon-host.m4: New file.
50314 * m4/codeset.m4: New file, from gettext-0.11.5.
50315 * m4/gettext.m4: New file, from gettext-0.11.5.
50316 * m4/glibc21.m4: New file, from gettext-0.11.5.
50317 * m4/iconv.m4: New file, from gettext-0.11.5.
50318 * m4/intdiv0.m4: New file, from gettext-0.11.5.
50319 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
50320 * m4/inttypes.m4: New file, from gettext-0.11.5.
50321 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
50322 * m4/isc-posix.m4: New file, from gettext-0.11.5.
50323 * m4/lcmessage.m4: New file, from gettext-0.11.5.
50324 * m4/lib-ld.m4: New file, from gettext-0.11.5.
50325 * m4/lib-link.m4: New file, from gettext-0.11.5.
50326 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
50327 * m4/progtest.m4: New file, from gettext-0.11.5.
50328 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
50329 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
50330 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
50332 Module localcharset.
50333 * m4/localcharset.m4: New file.
50335 Module hard-locale.
50336 * m4/hard-locale.m4: New file.
50339 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
50341 * m4/mbrtowc.m4: Add comment.
50344 * m4/memcasecmp.m4: New file.
50347 * m4/memcoll.m4: New file.
50350 * m4/unicodeio.m4: New file.
50353 * m4/rpmatch.m4: New file.
50356 * m4/yesno.m4: New file.
50359 * m4/exitfail.m4: New file.
50362 * m4/c-stack.m4 (gl_C_STACK): New macro.
50363 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
50366 * m4/error.m4 (gl_ERROR): New macro.
50367 (jm_PREREQ_ERROR): Use onceonly macros.
50370 * m4/fatal.m4: New file.
50373 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
50374 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
50376 Module getpagesize.
50377 * m4/getpagesize.m4: New file.
50379 Module getusershell.
50380 * m4/getusershell.m4: New file.
50383 * m4/physmem.m4: New file.
50386 * m4/posixver.m4: New file.
50389 * m4/quotearg.m4: New file.
50392 * m4/quote.m4: New file.
50395 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
50398 * m4/sig2str.m4: New file.
50401 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
50403 * m4/intmax_t.m4: New file.
50404 * m4/d-type.m4: Indentation.
50405 * m4/jm-macros.m4: Update.
50406 * m4/prereq.m4 (jm_PREREQ): Update.
50407 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
50408 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
50409 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
50410 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
50411 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
50412 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
50413 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
50414 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
50415 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
50416 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
50417 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
50418 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
50419 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
50420 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
50421 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
50422 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
50423 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
50424 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
50425 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
50427 2002-12-24 Bruno Haible <bruno@clisp.org>
50429 * MODULES.txt: Update according to m4/ changes.
50432 * config.rpath: New file, from gettext-0.11.5.
50434 * modules/*: New module descriptions.
50435 * gnulib-tool: New file.
50436 * MODULES.html.sh: New file.
50438 2002-12-21 Karl Berry <karl@gnu.org>
50440 * doc/fdl.texi: update to version 1.2.
50442 2002-12-19 Karl Berry <karl@gnu.org>
50444 * config/config.guess: update from prep.
50446 2002-12-18 Bruno Haible <bruno@clisp.org>
50448 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
50449 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
50451 2002-12-17 Bruno Haible <bruno@clisp.org>
50453 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
50454 stdlib.h, string.h.
50456 2002-12-17 Bruno Haible <bruno@clisp.org>
50458 * lib/canon-host.c (strdup): Remove unused declaration.
50460 * lib/fsusage.c: Include full_read.h.
50461 (get_fs_usage): Use full_read instead of safe_read.
50463 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
50465 2002-12-12 Karl Berry <karl@gnu.org>
50467 * config/config.guess: update from prep.
50469 2002-12-11 Bruno Haible <bruno@clisp.org>
50471 * m4/setenv.m4: New file, from gettext-0.11.5.
50473 2002-12-11 Bruno Haible <bruno@clisp.org>
50475 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
50477 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
50480 2002-12-11 Bruno Haible <bruno@clisp.org>
50482 * setenv.c (alloca): Fall back to malloc.
50483 (freea): New macro.
50484 (setenv): Use freea() to free memory allocated with alloca().
50486 2002-11-13 Bruno Haible <bruno@clisp.org>
50488 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
50489 function declarations.
50490 * unsetenv.c (unsetenv): Likewise.
50492 2002-03-04 Bruno Haible <bruno@clisp.org>
50494 Portability to AIX 4.3.3.
50495 * unsetenv.c: New file, extracted from setenv.c.
50496 * setenv.c: Move the unsetenv() function to unsetenv.c.
50498 2001-12-20 Bruno Haible <bruno@clisp.org>
50500 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
50501 use malloc instead. For SunOS 4.
50503 2001-12-11 Bruno Haible <bruno@clisp.org>
50505 * setenv.c: Declare alloca.
50506 (compar_fn_t): New typedef.
50507 (KNOWN_VALUE, STORE_VALUE): Use it.
50509 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
50512 2002-12-10 Paul Eggert <eggert@twinsun.com>
50514 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
50515 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
50516 Choose values that are less likely to collide with system fnmatch
50518 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
50519 defined (e.g., a pure POSIX system).
50520 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
50521 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
50523 2002-12-06 Paul Eggert <eggert@twinsun.com>
50525 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
50526 a pain in practice to deal with generated m4 files. This change
50527 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
50529 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
50530 and jm-glibc-io.m4, as they are no longer a special case.
50531 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
50532 kludge and the auto-generation stuff. Check only whether the
50533 functions are declared, not whether they exist, since older hosts
50534 that don't declare the functions can't use the optimization anyway.
50536 2002-12-06 Jim Meyering <jim@meyering.net>
50538 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
50540 Merge in changes from libc's misc/error.c, in preparation
50541 for the merge of gnulib's changes back into libc.
50543 * lib/error.c (_): Define only if not already defined.
50544 Move definition to follow all #include directives.
50545 Include unlocked-io.h only if !_LIBC.
50546 [_LIBC]: Include <libio/libioP.h>.
50547 [USE_IN_LIBIO]: Include <libio/iolibio.h>
50548 (fflush): Tweak definition to use INTUSE.
50551 2002-12-05 Paul Eggert <eggert@twinsun.com>
50553 * lib/alloca.c [defined emacs]: Include "lisp.h".
50554 (xalloc_die) [defined emacs]: New macro.
50555 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
50556 [! defined emacs]: Include <xalloc.h>.
50557 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
50558 (pointer): Typedef to POINTER_TYPE *.
50559 (malloc): Remove decl; we now always use xmalloc.
50560 (alloca): Use old-style definition, since Emacs needs this.
50561 Check for arithmetic overflow when computing combined size.
50563 2002-12-04 Paul Eggert <eggert@twinsun.com>
50565 Do not generate unlocked-io.h automatically, since it's easier to
50566 maintain it by hand.
50568 * lib/unlocked-io.h: New file, from GNU diffutils,
50569 but with proper copyright notice and attribution.
50570 * lib/gen-uio: Remove.
50571 * lib/Makefile.am: Add copyright notice.
50572 (libfetish_a_SOURCES): Add unlocked-io.h.
50573 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
50574 (DISTCLEANFILES, io_functions): Remove macros.
50575 (EXTRA_DIST): Remove gen_uio.
50576 (unlocked-io.h): Remove rule.
50578 2002-12-04 Jim Meyering <jim@meyering.net>
50580 Reflect the fact that stat.c and lstat.c are no longer generated.
50581 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
50582 (DISTCLEANFILES): Likewise.
50583 (EXTRA_DIST): Likewise.
50584 (all_local): Don't depend on stat.c or lstat.c.
50585 (stat.c, lstat.c): Remove rules.
50586 (EXTRA_DIST): Remove xstat.in.
50588 * lib/xstat.in: Remove file. Contents moved into stat.c.
50589 * lib/stat.c: New file. Contents mostly from xstat.in.
50590 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
50591 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
50593 * lib/safe-read.c: Rework so that it may serve to define safe_write,
50595 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
50597 2002-12-03 Jim Meyering <jim@meyering.net>
50599 * lib/safe-read.c, safe-write.c: Change variable names and comments,
50600 but not semantics, to minimize the differences between these two files.
50601 (safe_read): Change comment to mention SAFE_READ_ERROR.
50603 * lib/safe-read.c (IS_EINTR): Define.
50604 (safe_read): Use IS_EINTR in place of in-function cpp directives.
50606 2002-12-02 Jim Meyering <jim@meyering.net>
50608 * lib/safe-read.c (EINTR): Define.
50609 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
50610 (INT_MAX): Provide fallback.
50611 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
50613 * lib/safe-read.h (SAFE_READ_ERROR): Define.
50615 2002-12-02 Bruno Haible <bruno@clisp.org>
50617 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
50618 Define, taken from safe-read.c.
50619 (INT_MAX): Provide fallback.
50620 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
50621 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
50623 * lib/safe-read.c (EINTR): Remove definition.
50624 (safe_read): Don't use EINTR if it is absent.
50626 2002-12-01 Jim Meyering <jim@meyering.net>
50628 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
50630 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
50632 2002-11-27 Paul Eggert <eggert@twinsun.com>
50634 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
50635 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
50636 with `if (! (value < limit)) abort ();', for readability.
50638 2002-11-26 Karl Berry <karl@gnu.org>
50640 * lib/strdup.c: copy from libc again, with jim's ok.
50641 * lib/.cppi-disable: re-add strdup.c
50643 2002-11-25 Karl Berry <karl@gnu.org>
50645 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
50646 instead of "strtol.c".
50648 2002-11-25 Karl Berry <karl@gnu.org>
50650 * config/install-sh: update from automake for variable quoting, $0 in
50653 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
50654 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
50657 2002-11-25 Jim Meyering <jim@meyering.net>
50659 * lib/mktime.c: Sync from libc, now that it has the latest fix.
50661 2002-11-24 Karl Berry <karl@gnu.org>
50663 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
50664 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
50666 2002-11-24 Jim Meyering <jim@meyering.net>
50668 Update from coreutils:
50670 * lib/mktime.c: Merge in changes from libc.
50672 Avoid a link-time failure on some Linux systems.
50673 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
50675 (__mon_yday): Declare with the STATIC attribute.
50676 (__mktime_internal): Likewise.
50677 Based on a report from Greg Schafer.
50679 2002-11-23 Jim Meyering <jim@meyering.net>
50681 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
50682 Use `unsigned', not `int', as type of index.
50684 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
50686 * lib/fsusage.c: Remove unneeded parentheses around operands of
50689 2002-11-22 Paul Eggert <eggert@twinsun.com>
50691 * lib/quotearg.h: Allow multiple inclusion by surrounding with
50692 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
50693 so that we can be included first.
50694 (PARAMS): Remove; we now assume C89 or later. All uses removed.
50695 * lib/quotearg.c: Include quotearg.h immediately after config.h.
50696 No need to include stddef.h or sys/types.h any more.
50697 Surround local include files with "", not "<>".
50698 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
50699 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
50700 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
50701 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
50702 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
50703 (ISPRINT): Remove; no longer needed now that we assume C89.
50705 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
50708 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
50709 quotearg_char): Use SIZE_MAX rather than
50710 (size_t) -1 when we are talking about "infinity".
50712 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
50714 2002-11-22 Paul Eggert <eggert@twinsun.com>
50716 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
50717 hint that one should use `if (! x) abort ();' rather than `assert
50718 (x);', and anyway it's one less thing to worry about configuring.
50719 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
50720 hash_rehash, hash_insert): Use abort rather than assert.
50722 2002-11-22 Bruno Haible <bruno@clisp.org>
50724 * lib/safe-read.h: Assume C89. Add comments.
50725 (safe_read): Change return type to size_t.
50726 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
50727 byte counts > SSIZE_MAX correctly.
50728 * lib/safe-write.h: New file.
50729 * lib/safe-write.c: New file.
50730 * lib/full-read.h: New file.
50731 * lib/full-read.c: New file.
50732 * lib/full-write.h: Assume C89. Add comments.
50733 * lib/full-write.c: Include safe-write.h.
50734 (full_write): Rewritten to use safe_write.
50735 Suggested by Jim Meyering and Paul Eggert.
50737 2002-11-21 Jim Meyering <jim@meyering.net>
50739 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
50741 Merge in changes from the coreutils.
50743 2002-09-25 Paul Eggert <eggert@twinsun.com>
50744 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
50746 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
50747 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
50748 int. Work more efficiently if X is the same width as uintmax_t.
50749 Do not compare X to -1, to avoid bogus compiler warning.
50750 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
50751 Don't assume that f_frsize and f_bsize are the same type.
50753 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
50754 warning on FreeBSD.
50756 * lib/makepath.c (make_path): Restore umask *before* creating the final
50758 (make_path): Minor reformatting.
50760 * lib/xmalloc.c: Adjust to work with new autoconf macros,
50761 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
50762 HAVE_MALLOC/HAVE_REALLOC.
50764 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
50765 dummy ones. At least on GNU/Linux systems, `auto' means something
50767 From Michael Stone.
50769 2002-11-21 Bruno Haible <bruno@clisp.org>
50771 Remove case insensitive option matching.
50772 * lib/argmatch.h (argcasematch): Remove declaration.
50773 (ARGCASEMATCH): Remove macro.
50774 (__xargmatch_internal): Remove case_sensitive argument.
50775 (XARGMATCH): Update.
50776 (XARGCASEMATCH): Remove macro.
50777 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
50778 case_sensitive argument.
50779 (argcasematch): Remove function.
50780 (__xargmatch_internal): Remove case_sensitive argument.
50781 (main): Use XARGMATCH instead of XARGCASEMATCH.
50783 * lib/xmalloc.c: Change compile-time error message. Add comment about
50784 required autoconf version.
50786 2002-11-20 Paul Eggert <eggert@twinsun.com>
50788 Merge argmatch cleanups from Bison. Assume C89.
50790 * lib/argmatch.c: Include config.h here, not in argmatch.h.
50791 Include stdlib.h, for EXIT_FAILURE.
50792 Always include <string.h>, since we assume C89.
50793 (EXIT_FAILURE): Remove pre-C89 bug workaround.
50794 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
50795 Include <stddef.h> instead, since it's all we need for size_t.
50796 (PARAMS): Remove. All uses removed.
50797 (ARRAY_CARDINALITY): Do not bother to #undef.
50798 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
50799 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
50800 Remove unnecessary parentheses.
50801 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
50802 Insert necessary parentheses.
50803 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
50804 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
50806 2002-11-19 Bruno Haible <bruno@clisp.org>
50808 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
50809 * lib/mbswidth.h: Include <stddef.h>, for size_t.
50811 * lib/mbswidth.h (PARAMS): Remove macro.
50812 (mbswidth, mbsnwidth): Use ANSI C function declarations.
50813 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
50815 * lib/gcd.h (PARAMS): Remove macro.
50816 (gcd): Use ANSI C function declarations.
50817 * lib/gcd.c (gcd): Likewise.
50819 2002-11-15 Bruno Haible <bruno@clisp.org>
50821 * lib/strcspn.c: Include <stddef.h>.
50822 (strcspn): Use ANSI C function declaration. Change return type to
50824 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
50825 (strpbrk): Use NULL.
50826 * lib/strpbrk.h (PARAMS): Remove macro.
50827 (strpbrk): Use ANSI C function declaration.
50828 * lib/strstr.c: Don't include <sys/types.h>.
50829 * lib/strstr.h (PARAMS): Remove macro.
50830 (strstr): Use ANSI C function declarations.
50832 2002-11-14 Karl Berry <karl@gnu.org>
50834 * config/mkinstalldirs: `do' on separate line, instead of
50837 2002-11-06 Bruno Haible <bruno@clisp.org>
50839 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
50840 * lib/gcd.c (gcd): Likewise.
50842 2002-11-05 Bruno Haible <bruno@clisp.org>
50844 * lib/gcd.h: New file, from gettext-0.11.5.
50845 * lib/gcd.c: New file, from gettext-0.11.5.
50847 2002-11-05 Bruno Haible <bruno@clisp.org>
50849 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
50850 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
50851 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
50852 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
50854 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
50856 * lib/makepath.c: Include gettext.h instead of <locale.h> and
50859 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
50860 * lib/human.c: Include gettext.h instead of <libintl.h>.
50861 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
50862 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
50863 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
50864 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
50865 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
50866 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
50867 (textdomain): Remove definition.
50868 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
50870 * lib/long-options.c: Remove include of <libintl.h> and definition of
50872 * lib/same.c: Remove include of <libintl.h> and definition of _.
50874 2002-11-04 Owen Taylor <otaylor@redhat.com>
50876 * lib/config.charset: A few additions for Solaris.
50878 2002-11-04 Bruno Haible <haible@clisp.cons.org>
50880 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
50881 * lib/localcharset.c (locale_charset): Declare as extern "C".
50883 2002-11-04 Bruno Haible <haible@clisp.cons.org>
50885 * lib/config.charset: msdos in uk_UA uses CP1125.
50887 2002-11-04 Bruno Haible <bruno@clisp.org>
50889 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
50890 * lib/strcase.h: New file, from GNU gettext-0.11.5.
50891 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
50892 * lib/strstr.h: New file, from GNU gettext-0.11.5.
50893 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
50895 2002-11-04 Bruno Haible <bruno@clisp.org>
50897 * lib/localcharset.c (locale_charset): Don't return an empty string.
50899 2002-11-04 Bruno Haible <bruno@clisp.org>
50901 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
50904 2002-11-04 Bruno Haible <bruno@clisp.org>
50906 * lib/config.charset: Update for newest glibc. Add canonical names
50907 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
50909 2002-11-04 Bruno Haible <bruno@clisp.org>
50911 * lib/config.charset: Add support for NetBSD.
50913 2002-11-04 Bruno Haible <bruno@clisp.org>
50915 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
50917 2002-11-01 Bruno Haible <bruno@clisp.org>
50919 * configure.in: Add AC_CONFIG_AUX_DIR call.
50920 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
50922 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
50924 2002-09-28 Karl Berry <karl@gnu.org>
50926 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
50927 installed automake until the next release, since changes have been
50930 2002-09-25 Karl Berry <karl@gnu.org>
50932 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
50933 * lib/getopt*: copy from libc/posix.
50934 * lib/gettext.h: copy from gettext.
50935 * lib/.cppi-disable: add strdup.c, gettext.h.
50937 2002-09-25 Karl Berry <karl@gnu.org>
50939 * config/srclist.txt: enable gettext.h check.
50940 * config/config.{guess,sub}: update from prep.
50941 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
50942 from automake 1.6.3.
50945 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
50947 * regex.c (PATFETCH): Remove the translating fetch.
50948 (PATFETCH_RAW): Rename to PATFETCH.
50949 (set_image_of_range): New fun.
50950 (SET_RANGE_TABLE_WORK_AREA): Use it.
50951 (regex_compile): Don't translate the pattern chars so eagerly.
50952 Only do it when inserting an `exactn' bytecode or when handling
50954 (mutually_exclusive_p): Avoid empty statement.
50956 2002-07-06 Jim Meyering <meyering@lucent.com>
50958 * m4/README: Don't mention Makefile.am.in.
50959 Outline how I've tested changes to .m4 files. Yep, it's a pain.
50961 2002-07-01 Jim Meyering <meyering@lucent.com>
50963 * lib/c-stack.c: Include sys/time.h.
50964 From Volker Borchert.
50966 2002-06-26 Paul Eggert <eggert@twinsun.com>
50968 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
50970 2002-06-26 Paul Eggert <eggert@twinsun.com>
50972 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
50973 New macro. Use it uniformly instead of
50974 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
50975 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
50976 reported by Vin Shelton.
50978 2002-06-22 Paul Eggert <eggert@twinsun.com>
50980 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
50981 Do not assume SA_SIGINFO behavior.
50982 Bug reported by Jim Meyering on NetBSD 1.5.2.
50984 2002-06-22 Jim Meyering <meyering@lucent.com>
50986 * m4/c-stack.m4: New file, from diffutils-2.8.2.
50987 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
50989 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
50990 now that configure.ac uses AC_GNU_SOURCE.
50991 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
50992 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
50994 Update to latest tools. Suggestions from Paul Eggert.
50995 * m4/stdbool.m4: New file, from diffutils-2.8.2.
50996 * m4/gnu-source.m4: Update from diffutils-2.8.2.
50997 * m4/fnmatch.m4: Likewise.
50998 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
50999 to AC_HEADER_STDBOOL
51001 2002-06-22 Jim Meyering <meyering@lucent.com>
51003 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
51004 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
51006 2002-06-22 Jim Meyering <meyering@lucent.com>
51008 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
51010 * lib/exitfail.c, exitfail.h: Likewise.
51011 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
51013 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
51015 (EXTRA_DIST): Add fnmatch_loop.c.
51016 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
51018 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
51019 * lib/fnmatch.c: Update from diffutils-2.8.2.
51020 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
51021 * lib/fnmatch.h: Remove file.
51023 2002-06-21 Jim Meyering <meyering@lucent.com>
51025 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
51026 * m4/mbrtowc.m4: Likewise.
51028 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
51029 * m4/mbswidth.m4: Reflect name change:
51030 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
51031 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
51033 * m4/lib-link.m4: Update from gettext-0.11.2.
51034 * m4/gettext.m4: Likewise.
51036 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
51037 From Alfred M. Szmidt.
51039 2002-06-18 Paul Eggert <eggert@twinsun.com>
51041 * lib/file-type.h: Report an error if neither S_ISREG nor
51042 S_IFREG is defined, instead of using a test specific to glibc
51043 2.2. This should be safe, since POSIX requires S_ISREG and
51044 Unix Version 7 had S_IFREG. We don't need to check for
51045 <sys/types.h> since we don't use any symbols that it defines.
51047 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
51049 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
51050 $@-t, so that each temporary file name is unique and valid in the first
51051 8 characters, for operation under DOS.
51053 2002-06-15 Paul Eggert <eggert@twinsun.com>
51055 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
51057 2002-06-15 Jim Meyering <meyering@lucent.com>
51059 Work even with DJGPP 2.03, which lacks support for symlinks.
51061 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
51063 * lib/lchown.c (S_ISLNK): Likewise.
51065 2002-06-15 Jim Meyering <meyering@lucent.com>
51067 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
51068 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
51069 have been included before this file.
51071 2002-06-14 Jim Meyering <meyering@lucent.com>
51073 * lib/file-type.h: Use the version from diffutils-2.8.2.
51074 * lib/file-type.c: Likewise.
51076 2002-06-07 Jim Meyering <meyering@lucent.com>
51078 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
51079 They're needed at least for NetBSD 1.5.2.
51080 ($statxfs_includes): Include those same headers.
51081 ($statxfs_includes): Include sys/vfs.h if available.
51082 ($statxfs_includes): Likewise for sys/statvfs.h.
51083 Check for the following members in both structs statfs and statvfs:
51084 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
51086 2002-06-01 Jim Meyering <meyering@lucent.com>
51088 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
51089 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
51091 2002-05-28 Jim Meyering <meyering@lucent.com>
51093 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
51094 Reported by Volker Borchert.
51096 2002-05-27 Jim Meyering <meyering@lucent.com>
51098 Fix a problem seen only on nonconforming systems whereby ls.c's
51099 use of localtime, and then of gettimeofday would cause trouble:
51100 the localtime call used to initialize rpl_gettimeofday's save
51101 mechanism would clobber ls's current local time information so
51102 that in any long listing the first file would always be listed
51103 with date 1970-01-01. Analysis by Volker Borchert.
51105 * lib/gettimeofday.c (localtime): Undefine.
51106 (rpl_localtime): New function.
51108 2002-05-27 Jim Meyering <meyering@lucent.com>
51110 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
51113 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
51114 use the replacement function; it wouldn't resolve at link time.
51115 Reported by Volker Borchert.
51117 2002-05-22 Jim Meyering <meyering@lucent.com>
51119 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
51121 * lib/file-type.h: New file.
51122 * lib/file-type.c (file_type): New file/function. Extracted from
51125 2002-04-30 Jim Meyering <meyering@lucent.com>
51127 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
51129 2002-04-29 Paul Eggert <eggert@twinsun.com>
51131 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
51133 2002-04-29 Paul Eggert <eggert@twinsun.com>
51135 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
51136 Do not check for alloca.h (no longer used) or stdbool.h (was never
51137 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
51139 2002-04-29 Paul Eggert <eggert@twinsun.com>
51141 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
51143 2002-04-29 Jim Meyering <meyering@lucent.com>
51145 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
51146 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
51147 Use AC_FUNC_STRNLEN here instead.
51149 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
51150 With autoconf-2.53a, it's part of AC_PROG_CC.
51152 2002-04-28 Paul Eggert <eggert@twinsun.com>
51154 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
51155 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
51157 2002-04-28 Paul Eggert <eggert@twinsun.com>
51159 * lib/sig2str.h, lib/sig2str.c: New files.
51160 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
51162 2002-04-28 Paul Eggert <eggert@twinsun.com>
51164 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
51165 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
51166 of 127, since 64 is the largest conceivable number for ancient
51168 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
51170 2002-04-28 Jim Meyering <meyering@lucent.com>
51172 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
51174 2002-04-24 Jim Meyering <meyering@lucent.com>
51176 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
51177 (jm_PREREQ): Use it.
51179 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
51180 mach/mach.h fcntl.h.
51181 Check for this function: setlocale.
51183 2002-04-24 Jim Meyering <meyering@lucent.com>
51185 * lib/gettext.h: New file, from Gettext.
51186 * lib/Makefile.am (INCLUDES): Remove -I../intl.
51187 (libfetish_a_SOURCES): Add gettext.h.
51189 2002-04-16 Jim Meyering <meyering@lucent.com>
51191 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
51192 ut_pid, ut_id, ut_exit.
51194 2002-04-16 Jim Meyering <meyering@lucent.com>
51196 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
51197 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
51198 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
51200 2002-04-12 Jim Meyering <meyering@lucent.com>
51202 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
51203 now-bogus check for f_type in sys/mount.h. Instead, just test for the
51204 existence of the getmntinfo function. Needed for Darwin 5.3.
51206 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
51207 This is necessary at least on Darwin 5.3.
51209 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
51210 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
51211 strnlen.o in the library, and that makes some versions of ranlib
51214 2002-04-12 Jim Meyering <meyering@lucent.com>
51216 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
51218 2002-04-09 Jim Meyering <meyering@lucent.com>
51220 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
51221 to be more precise. Rather than saying we're checking whether the
51222 function `works', say what we're testing.
51223 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
51224 Reported by Bruno Haible.
51226 2002-03-10 Jim Meyering <meyering@lucent.com>
51228 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
51229 Suggestion from Santiago Vila.
51231 2002-03-08 Jim Meyering <meyering@lucent.com>
51233 * lib/rename.c: Mention that this wrapper is needed also on
51234 mips-dec-ultrix4.4 systems.
51236 2002-03-02 Jim Meyering <meyering@lucent.com>
51238 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
51239 not HAVE_CLOCK_SETTIME.
51241 2002-02-27 Paul Eggert <eggert@twinsun.com>
51243 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
51244 Check for clock_settime.
51246 2002-02-27 Paul Eggert <eggert@twinsun.com>
51248 * lib/nanosleep.h: Rename to....
51249 * lib/timespec.h: New name for nanosleep.h. All uses changed.
51251 * lib/gettime.c: New file.
51252 * lib/settime.c: New file.
51253 * lib/stime.c: Remove.
51255 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
51256 timespec.h. Remove nanosleep.h.
51258 2002-02-25 Paul Eggert <eggert@twinsun.com>
51260 * m4/acl.m4: New file.
51261 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
51262 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
51264 2002-02-25 Paul Eggert <eggert@twinsun.com>
51266 * lib/acl.c, lib/acl.h: New files.
51267 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
51269 2002-02-24 Jim Meyering <meyering@lucent.com>
51271 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
51272 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
51273 cause trouble. Reported by Nelson Beebe.
51275 2002-02-23 Paul Eggert <eggert@twinsun.com>
51277 * lib/path-concat.c (xpath_concat): Reorder code to pacify
51278 compilers that don't know that xalloc_die never returns.
51280 2002-02-20 Jim Meyering <meyering@lucent.com>
51282 * lib/getdate.c: Regenerate using bison-1.33.
51284 2002-02-17 Jim Meyering <meyering@lucent.com>
51286 * config/config.guess (main): Don't use `head -1'; it's no longer
51287 portable. Use `sed 1q' instead.
51289 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
51291 * m4/codeset.m4: Upgrade to gettext-0.11.
51292 * m4/gettext.m4: Upgrade to gettext-0.11.
51293 * m4/glibc21.m4: Upgrade to gettext-0.11.
51294 * m4/iconv.m4: Upgrade to gettext-0.11.
51295 * m4/isc-posix.m4: Upgrade to gettext-0.11.
51296 * m4/lcmessage.m4: Upgrade to gettext-0.11.
51297 * m4/lib-ld.m4: New file, from gettext-0.11.
51298 * m4/lib-link.m4: New file, from gettext-0.11.
51299 * m4/lib-prefix.m4: New file, from gettext-0.11.
51300 * m4/progtest.m4: Upgrade to gettext-0.11.
51302 2002-02-15 Paul Eggert <eggert@twinsun.com>
51304 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
51305 (jm_PREREQ): Use it.
51307 2002-02-15 Paul Eggert <eggert@twinsun.com>
51309 * lib/posixver.c, lib/posixver.h: New files.
51310 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
51312 2002-02-02 Paul Eggert <eggert@twinsun.com>
51313 Bruno Haible <bruno@clisp.org>
51315 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
51316 (fwrite_success_callback): New declaration.
51317 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
51318 print_unicode_char. Call failure callback instead of error.
51319 (fwrite_success_callback): New function.
51320 (exit_failure_callback): New function.
51321 (fallback_failure_callback): New function.
51322 (print_unicode_char): Call unicode_to_mb.
51324 2002-01-26 Jim Meyering <meyering@lucent.com>
51326 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
51327 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
51329 2002-01-26 Jim Meyering <meyering@lucent.com>
51331 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
51333 2002-01-22 Paul Eggert <eggert@twinsun.com>
51335 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
51337 2002-01-22 Jim Meyering <meyering@lucent.com>
51339 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
51340 Otherwise, some versions of automake would omit the rule that makes
51341 Makefile from Makefile.in.
51343 2002-01-21 Paul Eggert <eggert@twinsun.com>
51345 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
51346 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
51347 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
51348 (memcoll): Set errno to zero if there is no error.
51350 * lib/quotearg.c (quotearg_buffer_restyled):
51351 Fix bug with quoting buffers containing NUL when backslashing escapes.
51352 This bug was exposed by the other changes in this patch.
51353 (quotearg_n_options): New arg ARGSIZE.
51354 All callers changed.
51355 (quoting_options_from_style): New function.
51356 (quotearg_n_style): Use it.
51357 (quotearg_n_style_mem): New function.
51359 * lib/quotearg.h (quotearg_n_style_mem): New function.
51361 2002-01-19 Jim Meyering <meyering@lucent.com>
51363 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
51364 Remove useless quotes: DF_PROG="df".
51365 * m4/strnlen.m4: New file.
51367 2002-01-16 Paul Eggert <eggert@twinsun.com>
51369 * lib/backupfile.c (ISDIGIT): Comment fix.
51370 * lib/getdate.y (ISDIGIT): Likewise.
51371 * lib/posixtm.c (ISDIGIT, year): Likewise.
51372 * lib/strverscmp.c (ISDIGIT): Likewise.
51373 * lib/userspec.c (ISDIGIT): Likewise.
51375 2002-01-16 Jim Meyering <meyering@lucent.com>
51377 * lib/getdate.y: Add three semicolons, each just before a closing
51378 brace. Bison (as of version 1.31) no longer papers over that mistake.
51380 2002-01-05 Jim Meyering <meyering@lucent.com>
51382 * lib/version-etc.c (version_etc_copyright): Update copyright year.
51384 2001-12-19 Paul Eggert <eggert@twinsun.com>
51386 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
51387 not silently exit merely because the output buffer happens to
51388 have nothing pending.
51390 2001-12-18 Paul Eggert <eggert@twinsun.com>
51392 See the big note in ../ChangeLog.
51393 * lib/human.c (suffixes): Prefer K to k for 1024.
51394 (generate_suffix_backwards): New function.
51395 (human_readable_inexact): Use it.
51396 * lib/xstrtol.c (__xstrtol): If there is no number but there
51397 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
51398 Accept 'K' as well as 'k'.
51400 2001-12-15 Jim Meyering <meyering@lucent.com>
51402 * lib/regex.h (__restrict_arr): Update from libc.
51404 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
51405 as `remote' if the name starts with `//'. Suggested by Michael Stone.
51408 2001-12-14 Jim Meyering <meyering@lucent.com>
51410 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
51411 Suggestion from Bruno Haible.
51413 2001-12-10 Jim Meyering <meyering@lucent.com>
51415 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
51416 xrealloc, Instead, include "xalloc.h".
51417 (initbuffer): Don't cast xmalloc return value to char*.
51418 (readline): Reword comment.
51419 Don't cast xrealloc return value to char*
51420 Return NULL, not 0.
51422 2001-12-09 Jim Meyering <meyering@lucent.com>
51424 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
51425 about `signed and unsigned type in conditional expression'.
51426 * lib/posixtm.c (posix_time_parse): Likewise.
51428 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
51430 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
51431 to avoid a pedantic warning.
51433 * lib/getstr.c: Don't include assert.h.
51434 (getstr): Remove warning-evoking assertions.
51435 Return -1 if offset parameter is out of bounds.
51436 Change the type of a local from int to size_t.
51438 * lib/strftime.c (my_strftime_localtime_r): Include this function
51439 definition in the `#if ! HAVE_TM_GMTOFF' block.
51441 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
51442 Include xalloc.h instead.
51444 2001-12-02 Jim Meyering <meyering@lucent.com>
51446 * lib/tempname.c: Don't declare getenv, thus reverting the change of
51447 2001-11-18. It's no longer necessary, now that stdlib.h is always
51450 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
51451 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
51453 2001-11-30 Akim Demaille <akim@epita.fr>
51455 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
51456 before being defined.
51458 2001-11-27 Paul Eggert <eggert@twinsun.com>
51460 * lib/quotearg.h (quotearg_n, quotearg_n_style):
51461 First arg is int, not unsigned.
51462 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
51463 (SIZE_MAX, UINT_MAX): New macros.
51464 (quotearg_n_options): Abort if N is negative.
51465 Avoid overflow check on hosts where size_t is 64 bits and int
51466 is 32 bits, as overflow is impossible there.
51467 Fix off-by-one typo that caused unnecessary reallocation.
51469 2001-11-27 Jim Meyering <meyering@lucent.com>
51471 * lib/tempname.c: Merge with version from libc.
51472 * lib/regex.c: Likewise.
51474 * lib/tempname.c: Include stdlib.h unconditionally. On some old
51475 systems for which STDC_HEADERS is 0, it was not included, resulting in
51476 a warning about an integer-to-pointer conversion problem with getenv.
51477 Reported by Volker Borchert.
51479 2001-11-26 Jim Meyering <meyering@lucent.com>
51481 * lib/gtod.h: Remove file.
51482 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
51483 * lib/gettimeofday.c: Don't include gtod.h.
51484 (GTOD_init): Remove function.
51485 (rpl_gettimeofday): Do its job here instead, rather than aborting.
51486 Suggestion from Volker Borchert.
51488 2001-11-23 Jim Meyering <meyering@lucent.com>
51490 * lib/hash.h (struct hash_table): Don't define here. Merely declare
51492 * lib/hash.c (struct hash_table): Define it here instead.
51494 2001-11-22 Jim Meyering <meyering@lucent.com>
51496 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
51498 2001-11-20 Jim Meyering <meyering@lucent.com>
51500 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
51501 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
51503 2001-11-19 Jim Meyering <meyering@lucent.com>
51505 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
51506 directory. Use "conftestXXXXXX" as the template.
51507 Suggestion from Paul Eggert.
51509 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
51510 immediately, so the test doesn't mistakenly hit the max-open-files
51513 2001-11-18 Paul Eggert <eggert@twinsun.com>
51515 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
51516 (TEMPORARIES): New macro.
51517 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
51518 removes an artificial limitation (e.g. HP-UX 10.20, where
51521 2001-11-18 Jim Meyering <meyering@lucent.com>
51523 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
51525 2001-11-18 Jim Meyering <meyering@lucent.com>
51527 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
51530 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
51531 files will be created before anything else.
51533 2001-11-17 Paul Eggert <eggert@twinsun.com>
51535 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
51536 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
51538 2001-11-17 Jim Meyering <meyering@lucent.com>
51540 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
51541 Prompted by a report from Bob Proulx.
51543 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
51544 Instead, require UTILS_FUNC_MKSTEMP.
51546 2001-11-17 Jim Meyering <meyering@lucent.com>
51548 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
51549 Now, that's done as part of AC_FUNC_STRTOD.
51551 2001-11-17 Jim Meyering <meyering@lucent.com>
51553 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
51554 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
51555 rather than group writable. Patch by Juan F. Codagnone.
51557 * lib/readtokens.c: Remove explicit declarations of xmalloc and
51558 xrealloc, Instead, include "xalloc.h".
51560 * lib/mountlist.c: Include unlocked-io.h after all system headers.
51561 Remove explicit declarations of xmalloc, xrealloc,
51562 and xstrdup. Instead, include "xalloc.h".
51564 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
51566 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
51568 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
51570 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
51571 Reported by Padraig Brady.
51573 * lib/mkstemp.c: #undef mkstemp.
51575 (rpl_mkstemp): Rename from mkstemp.
51578 2001-11-16 Jim Meyering <meyering@lucent.com>
51580 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
51581 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
51582 determine the amount of total physical memory, use pstat_getstatic.
51583 HPUX-11 doesn't define _SC_PHYS_PAGES.
51584 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
51585 If sysconf couldn't be used to determine the amount of available
51586 physical memory, use both pstat_getstatic and pstat_getdynamic.
51587 Based on a patch from Bob Proulx.
51589 2001-11-10 Jim Meyering <meyering@lucent.com>
51591 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
51592 (jm_PREREQ): Use it.
51594 2001-11-09 Jim Meyering <meyering@lucent.com>
51596 * m4/jm-macros.m4: Require autoconf-2.52f.
51597 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
51598 Use these AC_-prefixed names, not the AM_-prefixed ones.
51600 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
51602 2001-11-05 Jim Meyering <meyering@lucent.com>
51604 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
51606 2001-11-04 Jim Meyering <meyering@lucent.com>
51608 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
51611 2001-11-03 Jim Meyering <meyering@lucent.com>
51613 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
51616 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
51617 know the name of the variable in the macro definition.
51619 2001-11-03 Jim Meyering <meyering@lucent.com>
51621 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
51622 in argmatch_to_argument call.
51624 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
51627 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
51628 e.g., a fault due to an attempt to free a NULL pointer.
51630 2001-11-01 Jim Meyering <meyering@lucent.com>
51632 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
51633 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
51635 2001-11-01 Jim Meyering <meyering@lucent.com>
51637 * lib/dirfd.c, lib/dirfd.h: New files.
51638 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
51640 * lib/hash.c (hash_print) [TESTING]: Clean up.
51642 2001-10-22 Paul Eggert <eggert@twinsun.com>
51644 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
51645 to avoid a warning if -Wall.
51647 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
51650 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
51651 (per RMS's instructions, this is now the canonical source)
51652 * lgpl/, gpl/: New directories.
51654 2001-10-21 Paul Eggert <eggert@twinsun.com>
51656 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
51658 2001-10-21 Jim Meyering <meyering@lucent.com>
51660 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
51661 this code would end up calling gettext even in packages built
51662 with --disable-nls.
51663 * lib/getopt.c (_): Likewise.
51664 * lib/regex.c (_): Likewise.
51666 2001-10-20 Paul Eggert <eggert@twinsun.com>
51668 * m4/error.m4 (jm_PREREQ_ERROR):
51669 Do not invoke AC_CHECK_FUNCS with strerror_r, as
51670 AC_FUNC_STRERROR_R does that.
51671 Check for strerror declaration.
51673 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
51674 are supposed to have them these days.
51675 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
51676 Merge changes from latest Autoconf CVS.
51677 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
51678 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
51679 POSIX decided to standardize on the int flavor of strerror_r.
51681 2001-10-20 Paul Eggert <eggert@twinsun.com>
51683 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
51684 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
51685 Use strerror_r that is only a macro, even if it is not a function.
51686 (strerror): Check for HAVE_DECL_STRERROR before declaring.
51687 (private_strerror): Use prototypes, not old-style function definition.
51688 (print_errno_message): New function.
51689 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
51690 char*-flavored one.
51691 (error_tail, error, error_at_line): Use it.
51693 2001-10-11 Jim Meyering <meyering@lucent.com>
51695 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
51696 and quote_n (1, ... to avoid clobbering a buffer.
51698 2001-10-05 Jim Meyering <meyering@lucent.com>
51700 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
51702 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
51703 * lib/hash-pjw.h: New file.
51705 2001-09-30 Jim Meyering <meyering@lucent.com>
51707 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
51708 `struct fsstat' has the `f_fstypename' member.
51709 Use that to define FS_TYPE, which is now used to make
51710 the getfsstat link test tighter.
51712 2001-09-30 Jim Meyering <meyering@lucent.com>
51714 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
51715 Include <sys/ucred.h>, for Apple Darwin.
51716 Include sys/mount.h and sys/fs_types.h only if available.
51718 (read_filesystem_list): Use FS_TYPE.
51720 2001-09-29 Paul Eggert <eggert@twinsun.com>
51722 * lib/exclude.c (excluded_filename): 0 -> false, since it's
51725 2001-09-29 Jim Meyering <meyering@lucent.com>
51727 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
51728 [one-argument getmntent function]): Include stdio.h before mntent.h.
51729 SunOS 4.1.x needs it for the declaration of `FILE'.
51730 Patch by Volker Borchert.
51732 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
51733 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
51734 sys/fs_types.h, and make the link-test for getfsstat guard #include
51735 directives with appropriate #if HAVE_*_H tests so that we can
51736 detect getfsstat on Apple Darwin1.3.7 systems.
51737 Reported by Nelson Beebe.
51738 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
51740 2001-09-28 Paul Eggert <eggert@twinsun.com>
51742 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
51743 #defines strtoimax. Also treat the other strto* functions
51746 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
51747 Check for strtoul and strtoumax,
51748 as those declarations are made even in the signed case.
51749 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
51750 Likewise, for strtol and strtoimax.
51752 2001-09-28 Paul Eggert <eggert@twinsun.com>
51754 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
51755 #defines strtoimax. Also treat the other strto* functions
51758 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
51759 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
51760 (strtoimax, strtoumax): Do not declare if already defined as a macro.
51762 2001-09-26 Jim Meyering <meyering@lucent.com>
51764 Most macros in unlocked-io.h had the wrong number of arguments.
51765 * lib/gen-uio: New script.
51766 (USE_UNLOCKED_IO): Define to 1 if not already defined.
51767 * lib/unlocked-io.hin: Remove file.
51768 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
51769 rather than trying to embed it here.
51770 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
51771 Reported by Padraig Brady.
51773 2001-09-25 Volker Borchert <bt@teknon.de>
51775 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
51778 2001-09-24 Jim Meyering <meyering@lucent.com>
51780 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
51782 2001-09-23 Jim Meyering <meyering@lucent.com>
51784 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
51785 instead of the mere test for existence of mntent.h. The latter
51786 would get a false-positive on AIX 3.4 systems.
51787 In the outer getmntent if-block, don't die if neither of the getmntent
51788 tests succeeds. Instead, just fall through and continue with the
51791 2001-09-23 Jim Meyering <meyering@lucent.com>
51793 * lib/mountlist.c: Remove useless parentheses in #if directives.
51794 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
51795 the deprecated MOUNTED symbol is no longer defined in mntent.h.
51797 2001-09-22 Jim Meyering <meyering@lucent.com>
51799 * m4/gettext.m4: New file. From gettext.
51800 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
51801 * m4/progtest.m4: Likewise
51802 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
51803 * m4/glibc21.m4: Likewise.
51805 * m4/libintl.m4: Remove. No longer used.
51807 2001-09-22 Jim Meyering <meyering@lucent.com>
51809 * lib/localcharset.c: Update from latest gettext.
51810 * lib/config.charset: Likewise.
51812 2001-09-20 Jim Meyering <meyering@lucent.com>
51814 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
51816 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
51819 2001-09-20 Jim Meyering <meyering@lucent.com>
51821 * lib/xstrtol.c (strtoimax): Guard declaration with
51822 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
51823 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
51824 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
51825 (strtoumax): Likewise, for completeness (it wasn't necessary).
51827 2001-09-17 Paul Eggert <eggert@twinsun.com>
51829 * lib/strtoimax.c (HAVE_LONG_LONG):
51830 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
51831 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
51832 to work around bug in IBM C compiler.
51834 2001-09-17 Jim Meyering <meyering@lucent.com>
51836 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
51837 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
51838 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
51839 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
51840 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
51841 whenever the right hand side need not be expanded by the shell.
51843 2001-09-16 Paul Eggert <eggert@twinsun.com>
51845 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
51846 library. It's not correct, as some older glibcs are buggy.
51847 fnmatch wasn't fixed until glibc 2.2.
51849 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
51850 special shell magic here.
51852 2001-09-16 Jim Meyering <meyering@lucent.com>
51854 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
51855 * m4/jm-macros.m4: Require it.
51857 2001-09-16 Jim Meyering <meyering@lucent.com>
51859 * lib/mkdir.c: New file.
51861 2001-09-15 Jim Meyering <meyering@lucent.com>
51863 * m4/jm-macros.m4: Check for help2man.
51865 2001-09-11 Jim Meyering <meyering@lucent.com>
51867 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
51868 The body, by Paul Eggert, was moved here from configure.in.
51869 * m4/jm-macros.m4: Require UTILS_HOST_OS.
51871 2001-09-04 Paul Eggert <eggert@twinsun.com>
51873 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
51874 (jm_PREREQ): Use it.
51876 2001-09-04 Paul Eggert <eggert@twinsun.com>
51878 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
51879 Use ssize_t, not int, to store result of readlink.
51880 Check for ssize_t overflow as well as size_t overflow,
51881 as POSIX says the result of readlink is implementation-defined
51882 when ssize_t overflows.
51883 Remove unnecessary cast to char*.
51884 Use free+malloc instead of realloc, as the storage doesn't need
51885 to be preserved and it's clearer and can be more efficient that way.
51886 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
51887 * lib/xreadlink.h (xreadlink): Update prototype.
51889 2001-09-04 Paul Eggert <eggert@twinsun.com>
51891 * lib/xgetcwd.c: Revert some of the previous change; intead,
51892 fix the HAVE_GETCWD_NULL code to behave more like the
51893 !HAVE_GETCWD_NULL code used to.
51895 Include "xalloc.h".
51896 (xgetcwd): Do not return NULL when memory is exhausted; instead,
51899 2001-09-03 Paul Eggert <eggert@twinsun.com>
51901 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
51902 sys/param.h, as pathmax.h includes them.
51904 2001-09-03 Paul Eggert <eggert@twinsun.com>
51906 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
51907 (jm_PREREQ_XGETCWD): New macro.
51909 * m4/getcwd.m4: New file.
51911 2001-09-03 Paul Eggert <eggert@twinsun.com>
51913 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
51914 like the HAVE_GETCWD_NULL code.
51915 Include pathmax.h if not HAVE_GETCWD.
51916 Do not include xalloc.h.
51917 (INITIAL_BUFFER_SIZE): New symbol.
51918 Do not use xmalloc / xrealloc, since the caller is responsible for
51919 handling errors. Preserve errno around `free' during failure.
51920 Do not overrun buffer when using getwd.
51922 2001-09-03 Paul Eggert <eggert@twinsun.com>
51924 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
51925 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
51928 2001-09-03 Paul Eggert <eggert@twinsun.com>
51930 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
51931 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
51932 spotted by Jim Meyering.
51934 2001-09-03 Jim Meyering <meyering@lucent.com>
51936 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
51939 2001-09-02 Jim Meyering <meyering@lucent.com>
51941 * lib/error.c: Update from GNU libc.
51943 2001-09-01 Jim Meyering <meyering@lucent.com>
51945 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
51948 2001-09-01 Jim Meyering <meyering@lucent.com>
51950 * lib/xreadlink.c: New file.
51951 * lib/xreadlink.h: New file.
51952 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
51955 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
51956 doesn't conflict with sparc Solaris 7's definition in
51957 /usr/include/sys/int_types.h.
51959 * lib/exclude.c: Use `""', not `<>' to #include non-system header
51961 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
51962 and strncasecmp as r-values. Unixware didn't have declarations.
51964 2001-08-31 Paul Eggert <eggert@twinsun.com>
51966 * lib/xstrtol.h: Add copyright notice.
51967 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
51968 LONGINT_INVALID_SUFFIX_CHAR.
51970 2001-08-31 Paul Eggert <eggert@twinsun.com>
51972 * lib/xstrtol.c (strtoimax): New decl.
51974 2001-08-31 Paul Eggert <eggert@twinsun.com>
51976 * lib/xgetcwd.c: Don't include pathmax.h.
51977 Include stdlib.h and unistd.h if available.
51979 (xmalloc, xstrdup, free): Remove decls.
51980 (xgetcwd): Don't assume sizes fit in unsigned.
51981 Check for overflow when computing sizes.
51982 Simplify reallocation code.
51984 2001-08-31 Paul Eggert <eggert@twinsun.com>
51986 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
51987 a directory's st_size can have an arbitrary value, so the old
51988 usage could waste an arbitrary amount of memory. All uses
51990 * lib/savedir.h: Update prototype.
51992 2001-08-31 Paul Eggert <eggert@twinsun.com>
51994 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
51996 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
51999 Also, make the following further changes to make this file's
52000 configuration more similar to that of strtol.c:
52001 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
52002 (strtoumax, uintmax_t, strtoull, strtol): Remove.
52003 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
52004 (strtoimax): Renamed from strtoumax. All uses of unsigned values
52005 changed to signed values.
52007 And make the following changes as well:
52008 Fix copyright notice, as 1999 was missing.
52009 (verify): New macro.
52010 (strtoimax): Check sizes at compile-time, not run-time.
52011 Prefer strtol to strtoll if both work.
52012 (main): Remove; it was not that useful and was a pain to maintain.
52014 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
52016 2001-08-31 Jim Meyering <meyering@lucent.com>
52018 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
52019 Use an initial, malloc'd, buffer of length 128 rather than
52020 a statically allocated one of length 1024.
52022 2001-08-30 Paul Eggert <eggert@twinsun.com>
52024 Simplify code, partly by assuming autoconf 2.52 semantics.
52026 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
52028 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
52029 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
52031 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
52032 Move AC_REQUIRE to next-to-top level, to avoid confusion.
52033 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
52034 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
52035 jm_AC_HEADER_INTTYPES_H.
52036 * m4/jm-macros.m4 (jm_MACROS): Likewise.
52038 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
52040 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
52041 Quote first arg of AC_DEFUN.
52042 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
52043 since they are needed to parse the include file even if we need
52044 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
52045 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
52046 but with opposite signedness.
52048 2001-08-30 Paul Eggert <eggert@twinsun.com>
52050 Merge 'exclude' changes from tar 1.13.22.
52051 This fixes one or two unlikely storage allocation overflow bugs,
52052 but doesn't change user-visible behavior otherwise.
52054 2001-08-30 Paul Eggert <eggert@twinsun.com>
52056 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
52057 (jm_PREREQ_EXCLUDE): New macro.
52059 2001-08-30 Paul Eggert <eggert@twinsun.com>
52061 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
52064 2001-08-30 Paul Eggert <eggert@twinsun.com>
52066 * lib/hash.c: Remove '2001' from copyright notice.
52068 2001-08-30 Paul Eggert <eggert@twinsun.com>
52070 * lib/full-write.h: New file.
52071 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
52072 * lib/full-write.c: Correct credits, as cccp.c no longer
52073 exists and anyway it was so heavily changed from the old cccp
52074 code as to be unrecognizable. Include full-write.h.
52075 (full_write) Return size_t, with short writes meaning failure.
52076 All callers changed. This fixes a bug with large buffers
52078 * lib/utime.c: Include full-write.h.
52080 2001-08-30 Paul Eggert <eggert@twinsun.com>
52082 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
52083 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
52084 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
52085 Include if available.
52086 (<xalloc.h>): Include
52087 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
52088 (verify): New macro. Use it to verify that EXCLUDE macros do not
52089 collide with FNM macros.
52090 (struct patopts): New struct.
52091 (struct exclude): Use it, as exclude patterns now come with options.
52092 (new_exclude): Support above changes.
52093 (new_exclude, add_exclude_file):
52094 Initial size must now be a power of two to simplify overflow checking.
52095 (free_exclude, fnmatch_no_wildcards): New function.
52096 (excluded_filename): No longer requires options arg, as the options
52097 are determined by add_exclude. Now returns bool, not int.
52098 (excluded_filename, add_exclude):
52099 Add support for the fancy new exclusion options.
52100 (add_exclude, add_exclude_file): Now takes int options arg.
52101 Check for arithmetic overflow when computing sizes.
52102 (add_exclude_file): xrealloc might modify errno, so don't
52103 realloc until after errno might be used.
52105 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
52107 (free_exclude): New decl.
52108 (add_exclude, add_exclude_file): Now takes int options arg.
52109 (excluded_filename): No longer requires options arg, as the options
52110 are determined by add_exclude. Now returns bool, not int.
52112 2001-08-30 Paul Eggert <eggert@twinsun.com>
52114 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
52116 2001-08-27 Jim Meyering <meyering@lucent.com>
52118 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
52120 * lib/version-etc.c (N_): Remove definition.
52121 Revert most of last change.
52122 Instead, simply don't mark the `Copyright...' string for translation.
52123 Based on advice from Paul Eggert.
52125 * lib/strtoxmax.c: Tweak comment.
52127 2001-08-26 Jim Meyering <meyering@lucent.com>
52129 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
52131 * m4/xstrtoimax.m4: New file.
52132 * m4/xstrtoumax.m4: Add comments explaining why we
52133 AC_REPLACE_FUNCS(strtol).
52135 2001-08-26 Jim Meyering <meyering@lucent.com>
52137 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
52138 of copyright with `%s' so translators don't get an untranslated
52140 (COPYRIGHT_YEAR): Define.
52141 (version_etc): Use fprintf rather than fputs.
52142 Suggestion from Ulrich Drepper.
52144 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
52146 * lib/strtoll.c: New file, from GNU libc.
52147 * lib/xstrtoimax.c: New file.
52149 * lib/xstrtol.h: Add xstrtoimax.
52150 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
52151 * lib/strtoimax.c: New file. Likewise, but first define
52154 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
52156 * lib/strtoxmax.c: ... then renamed to this.
52158 2001-08-18 Paul Eggert <eggert@twinsun.com>
52160 * m4/inttypes.m4: Add AC_PREREQ(2.13).
52161 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
52162 (jm_AC_TYPE_INTMAX_T): New macro.
52163 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
52165 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
52167 * m4/longlong.m4: Renamed from ulonglong.m4.
52168 * m4/inttypes.m4: Renamed from inttypes_h.m4.
52169 * m4/uintmax_t.m4: Removed.
52171 2001-08-13 Paul Eggert <eggert@twinsun.com>
52173 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
52174 Port to Solaris 8, where 'sed' requires a space after the 'r'
52175 command, and where sh dislikes "$/". Clean up the spacing a bit.
52176 Redirect output to $tmp just once.
52178 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
52180 * lib/addext.c (<errno.h>): Include.
52181 (errno): Declare if not defined.
52182 (addext): Work correctly when pathconf returns -1 and leaves
52183 errno alone because there is no limit. Also, work even if
52184 pathconf returns a value greater than SIZE_MAX.
52186 2001-08-12 Jim Meyering <meyering@lucent.com>
52188 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
52189 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
52190 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
52191 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
52192 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
52193 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
52194 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
52195 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
52196 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
52197 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
52198 utime.m4, utimes.m4, xstrtoumax.m4:
52199 Quote the first argument in each use of AC_DEFUN.
52201 2001-08-12 Jim Meyering <meyering@lucent.com>
52203 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
52204 Simply `return getcwd (NULL, 0);'.
52205 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
52206 Use 1300 as initial value for length, not PATH_MAX.
52208 * lib/pathmax.h: Clean up cpp syntax.
52210 2001-08-12 Jim Meyering <meyering@lucent.com>
52212 * lib/gettimeofday.c: New file.
52213 * lib/gtod.h: New file.
52214 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
52216 2001-08-05 Jim Meyering <meyering@lucent.com>
52218 * m4/jm-macros.m4: Require autoconf-2.52.
52220 2001-08-04 Jim Meyering <meyering@lucent.com>
52222 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
52223 stmt, to get in sync with glibc.
52225 2001-08-03 Paul Eggert <eggert@twinsun.com>
52227 The following changes are from gettext 0.10.39 as maintained by
52230 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
52231 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
52232 with inverted sense. All uses changed.
52234 * lib/mbswidth.c: Don't include <limits.h>.
52235 Include <stdlib.h> and <string.h> unconditionally.
52236 (iswcntrl, mbsinit, ISCNTRL): New macros.
52237 (mbsnwidth): Use K&R style function declarations.
52238 Don't bother checking for MB_LEN_MAX == 1, since the compiler
52239 can optimize it when MB_CUR_MAX == 1.
52240 The width of control characters is zero, not 1.
52242 2001-08-03 Paul Eggert <eggert@twinsun.com>
52244 The following changes are from gettext 0.10.39 as maintained by
52245 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
52247 * m4/codeset.m4: Upgrade to serial AM1.
52248 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
52249 all uses changed. Quote first arg of AC_DEFUN.
52250 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
52252 * m4/iconv.m4: Upgrade to serial AM2.
52253 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
52254 Add --with-libconv-prefix.
52255 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
52256 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
52257 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
52258 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
52259 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
52261 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
52262 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
52263 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
52264 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
52265 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
52266 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
52267 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
52268 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
52269 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
52271 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
52274 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
52275 not the default value.
52277 2001-06-25 Bruno Haible <haible@clisp.cons.org>
52278 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
52279 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
52280 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
52281 Also check for iswcntrl, used for wcwidth fallback.
52282 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
52285 2001-08-03 Jim Meyering <meyering@lucent.com>
52287 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
52288 as it was in the original. Reported by Paul Eggert.
52290 2001-07-16 Jim Meyering <meyering@lucent.com>
52292 * m4/gettimeofday.m4: New file.
52293 Prompted by a report from Bernhard Baehr.
52295 2001-07-15 Jim Meyering <meyering@lucent.com>
52297 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
52298 stuff. Now it's in ../Makefile.cfg.
52300 2001-07-15 Jim Meyering <meyering@lucent.com>
52302 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
52303 (BUILT_SOURCES): Add unlocked-io.h.
52304 (io_functions): Define.
52305 (unlocked-io.h): New rule.
52306 (DISTCLEANFILES): Add unlocked-io.h.
52307 (all-local): Depend on unlocked-io.h, to ensure it is created.
52309 * lib/unlocked-io.hin: New file
52311 * lib/regex.c: Update from glibc.
52313 2001-07-05 Jim Meyering <meyering@lucent.com>
52315 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
52317 (libfetish_a_SOURCES): Put all .h files here instead.
52318 Remove a thus-exposed (better checks in automake) duplicate and
52319 two unnecessary .h files.
52321 2001-07-04 Jim Meyering <meyering@lucent.com>
52323 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
52324 that generates jm-glibc-io.m4 so that it doesn't trigger any make
52327 2001-07-02 Jim Meyering <meyering@lucent.com>
52329 The following changes were prompted by suggestions from Bruno Haible.
52331 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
52333 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
52334 definition of EXTRA_DIST.
52335 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
52336 ensure that the generated file is created/updated whenever the list
52337 of $(unlocked_functions) is changed.
52338 (jm-glibc-io.m4): New rule.
52339 (unlocked-io.h): New rule -- currently unused.
52341 2001-06-24 Jim Meyering <meyering@lucent.com>
52343 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
52344 unmatched right bracket, rather than kludging it with an extra,
52345 falsely-matching quote in a comment. Patch by Akim Demaille.
52347 2001-06-11 Jim Meyering <meyering@lucent.com>
52349 * lib/regex.c: Update from GNU libc.
52351 2001-05-27 Jim Meyering <meyering@lucent.com>
52353 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
52354 Check for ut_type in struct utmp.
52356 2001-05-27 Jim Meyering <meyering@lucent.com>
52358 * lib/readutmp.h (UT_TYPE): Define.
52360 2001-05-24 Jim Meyering <meyering@lucent.com>
52362 * lib/argmatch.c: Include "quote.h".
52363 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
52364 quote function. Reported by Göran Uddeborg.
52366 2001-05-22 Jim Meyering <meyering@lucent.com>
52368 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
52369 now that we use the package-supplied version unconditionally.
52370 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
52372 2001-05-21 Jim Meyering <meyering@lucent.com>
52374 * m4/regex.m4: Change a couple backticks to single quotes to avoid
52375 shell syntax errors.
52377 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
52379 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
52381 2001-05-20 Paul Eggert <eggert@twinsun.com>
52383 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
52384 Don't bother to check library strftime, since
52385 we'll be using our own my_strftime function anyway.
52386 Define my_strftime instead of strftime.
52388 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
52390 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
52391 which is not yet declared.
52393 2001-05-15 Jim Meyering <meyering@lucent.com>
52395 * m4/regex.m4: Use proper quoting so brackets appear in the test
52397 Reported by, and with help from, Bruno Haible.
52399 2001-05-13 Jim Meyering <meyering@lucent.com>
52401 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
52404 2001-05-11 Paul Eggert <eggert@twinsun.com>
52406 dirname code cleanup. base_name now behaves more compatibly
52407 with POSIX basename when given file names that have trailing
52408 slashes, and similarly for dir_name. Add new primitives
52409 base_len and dir_len. Put the directory-name-related decls
52412 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
52413 * lib/backupfile.c (base_name): Likewise.
52414 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
52415 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
52416 * lib/makepath.c (strip_trailing_slashes): Likewise.
52417 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
52418 ISSLASH): Likewise.
52419 * lib/rename.c (strip_trailing_slashes): Likewise.
52420 * lib/same.c (base_name): Likewise.
52421 * lib/stripslash.c (ISSLASH): Likewise.
52423 * lib/addext.c: Include <dirname.h> after size_t is defined.
52424 * lib/backupfile.c: Likewise.
52426 * lib/addext.c (addext): Use base_len to trim redundant
52427 trailing slashes instead of doing it ourselves.
52428 But do not trim the last slash if it is not redundant.
52430 * lib/backupfile.c (find_backup_file_name,
52431 max_backup_version): Use base_len instead of rolling it ourselves.
52432 Handle the case of "" and (on DOS) "C:" correctly.
52434 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
52435 needed. Include <string.h>, <dirname.h>.
52436 (base_name): Allow file names ending in slashes, other than names
52437 that are all slashes. In this case, return the basename followed
52438 by the slashes. This is more general, and can be used in places
52439 where the original base_name purposely had an assertion failure.
52440 (base_len): New function.
52442 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
52443 Do not include <assert.h>; no longer needed.
52445 (memrchr): Remove decl.
52446 (dir_name_r): Remove.
52447 (dir_len): Renamed from dirlen. All callers changed.
52448 Rewrite in terms of base_name, for simplicity and consistency.
52449 (dir_name): Never return NULL. All callers changed.
52450 Do not include <stdlib.h> in test program; no longer needed.
52451 return 0; is fine for test program.
52453 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
52455 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
52457 * lib/path-concat.c (path_concat): Use base_len to compute
52458 base length, not strlen; this means we cannot rely on memcpy
52461 * lib/same.c (STREQ): Remove.
52462 (same_name): Handle the case where the basename ends in trailing '/'.
52464 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
52465 a slash was stripped. Do not strip the last slash after a
52466 file system prefix.
52468 2001-05-11 Paul Eggert <eggert@twinsun.com>
52470 * lib/Makefile.am (libfetish_a_SOURCES):
52471 Add strftime.c, since we now compile it on all hosts.
52473 * lib/strftime.c (my_strftime):
52474 Define to nstrftime if emacs, but only if my_strftime is not defined.
52475 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
52476 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
52477 Add one more extra argument: a nanoseconds value.
52480 (my_strftime function): Add %N format.
52481 (emacs_strftimeu): Renamed from emacs_strftime,
52482 with extra ut argument.
52484 2001-05-09 Paul Eggert <eggert@twinsun.com>
52486 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
52488 2001-04-21 Jim Meyering <meyering@lucent.com>
52490 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
52493 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
52495 * m4/ftruncate.m4: Check for chsize.
52496 Link with ftruncate.o unconditionally if ftruncate is missing.
52497 This was required when cross-compiling to i586-mingw32msvc.
52499 2001-04-08 Jim Meyering <meyering@lucent.com>
52501 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
52502 recomputed; that's necessary when the offset spans a DST transition.
52503 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
52505 2001-04-02 Jim Meyering <meyering@lucent.com>
52507 * lib/regex.h, regex.c: Update from GNU libc.
52509 2001-03-24 Jim Meyering <meyering@lucent.com>
52511 * m4/jm-macros.m4: Require autoconf-2.49d.
52513 2001-03-20 Bruno Haible <haible@clisp.cons.org>
52515 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
52517 2001-03-19 Paul Eggert <eggert@twinsun.com>
52519 * lib/version-etc.c (version_etc_copyright): Update to 2001.
52521 2001-03-17 Jim Meyering <meyering@lucent.com>
52523 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
52524 now that the version in autoconf is equivalent.
52525 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
52527 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
52528 Suggestion from Akim Demaille.
52530 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
52531 (jm_PREREQ_TEMPNAME): New function.
52533 2001-03-16 Paul Eggert <eggert@twinsun.com>
52535 * lib/tempname.c (uint64_t): Define to uintmax_t if
52536 not defined, and if UINT64_MAX is not defined.
52537 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
52538 Reported by John David Anglin.
52540 2001-03-15 Bruno Haible <haible@clisp.cons.org>
52542 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
52543 resolve alias if codeset is empty.
52544 * lib/config.charset (BeOS): Use wildcard syntax.
52546 2001-03-13 Jim Meyering <meyering@lucent.com>
52548 * lib/path-concat.c (path_concat)
52549 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
52550 concatenating e.g., `C:' and `foo'.
52553 2001-03-06 Bruno Haible <haible@clisp.cons.org>
52555 * lib/localcharset.c (locale_charset): Don't use
52556 setlocale(LC_CTYPE,NULL). Don't return NULL.
52557 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
52559 2001-03-06 Bruno Haible <haible@clisp.cons.org>
52561 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
52562 support for DOS/DJGPP.
52564 2001-03-01 Paul Eggert <eggert@twinsun.com>
52566 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
52567 lacks mkstemp. Compile our own tempname.c if we compile our own
52568 mkstemp.c, as mkstemp relies on tempname.
52570 2001-03-01 Jim Meyering <meyering@lucent.com>
52572 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
52573 AH_VERBATIM really does output its argument verbatim.
52575 2001-02-28 Paul Eggert <eggert@twinsun.com>
52577 * lib/Makefile.am (libfetish_a_SOURCES):
52578 Add dup-safer.c, fopen-safer.c.
52579 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
52581 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
52582 * lib/unistd-safer.h: New files.
52584 2001-02-25 Paul Eggert <eggert@twinsun.com>
52586 The mkstemp replacement is taken from glibc 2.2.2, with some
52587 portability fixes for use outside glibc, as follows:
52589 * lib/tempname.c (struct_stat64): New macro.
52590 (direxists, __gen_tempname): Use it.
52591 This avoids a portability problem with Solaris 8.
52593 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
52594 (<stddef.h>, <stdint.h>, <string.h>):
52595 Include only if STDC_HEADERS || _LIBC.
52596 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
52597 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
52598 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
52599 (__set_errno): Define this macro if <errno.h> doesn't.
52600 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
52601 Define these macros if <stdio.h> doesn't.
52602 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
52603 Define these macros if <sys/stat.h>
52604 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
52605 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
52606 __xstat64): Define if not _LIBC.
52607 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
52608 (__gen_tempname): Invoke gettimeofday only if
52609 HAVE_GETTIMEOFDAY || _LIBC;
52610 otherwise, fall back on plain "time".
52611 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
52613 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
52615 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
52617 2001-02-18 Paul Eggert <eggert@twinsun.com>
52619 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
52621 2001-02-17 Paul Eggert <eggert@twinsun.com>
52623 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
52624 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
52625 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
52626 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
52628 2001-02-17 Paul Eggert <eggert@twinsun.com>
52630 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
52631 Remove workaround macros for hosts that have mbrtowc but not
52632 mbstate_t, as we now insist on proper declarations for both
52633 before using mbrtowc.
52635 2001-02-17 Jim Meyering <meyering@lucent.com>
52637 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
52638 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
52639 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
52642 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
52643 rather than AC_CACHE_VAL.
52645 2001-02-17 Jim Meyering <meyering@lucent.com>
52647 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
52648 around included file name.
52650 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
52652 * lib/strftime.c: Update from GNU libc (the only changes were to
52655 2001-02-17 Jim Meyering <meyering@lucent.com>
52657 * lib/regex.c: Update from libc.
52659 2001-02-17 Bruno Haible <haible@clisp.cons.org>
52661 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
52664 2001-02-16 Paul Eggert <eggert@twinsun.com>
52666 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
52667 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
52668 Reported by Mark Hounschell via Paul Eggert.
52670 2001-02-07 Jim Meyering <meyering@lucent.com>
52672 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
52674 2001-02-05 Jim Meyering <meyering@lucent.com>
52676 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
52677 it includes the patch required for `large file' support with at least
52678 HP-UX's 10.20 /bin/cc.
52680 2001-02-03 Jim Meyering <meyering@lucent.com>
52682 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
52683 AS_IF, now that it works once again (mysteriously).
52684 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
52686 2001-01-30 Jim Meyering <meyering@lucent.com>
52688 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
52689 * m4/chown.m4: Rename conftestchown to conftest.chown.
52690 * m4/rename.m4: s/conftestdir/conftest.d1/ and
52691 s/conftestdir2/conftest.d2/.
52692 * m4/utimes.m4: s/conftestdata/conftest.data/
52693 Inspired by Pavel Roskin's change in autoconf.
52695 2001-01-30 Bruno Haible <haible@clisp.cons.org>
52697 * lib/config.charset: Update for FreeBSD 4.2.
52699 2001-01-27 Jim Meyering <meyering@lucent.com>
52701 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
52703 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
52705 2001-01-26 Jim Meyering <meyering@lucent.com>
52707 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
52708 quotearg.c includes it.
52710 2001-01-26 Jim Meyering <meyering@lucent.com>
52712 * lib/quotearg.c: Include stddef.h.
52713 * lib/quote.c: Include stddef.h.
52714 Reported by Axel Kittenberger.
52716 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
52717 line in double quotes so that it evokes a better diagnostic.
52718 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
52719 Reported by Axel Kittenberger.
52721 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
52723 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
52724 as if it was a `charset'.
52726 2001-01-21 Bruno Haible <haible@clisp.cons.org>
52728 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
52731 2001-01-21 Bruno Haible <haible@clisp.cons.org>
52733 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
52734 to avoid a warning. Add back 'const' to inptr.
52736 2001-01-20 Jim Meyering <meyering@lucent.com>
52738 Be sure that headers are checked before used in code compiled
52739 for the type checks.
52740 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
52741 In place of that, invoke jm_CHECK_ALL_TYPES.
52742 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
52743 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
52744 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
52745 The check for ssize_t was mistakenly run before the test for unistd.h.
52747 The configure-time check for stdbool.h was missing.
52748 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
52749 (jm_PREREQ_HASH): New function.
52751 2001-01-17 Jim Meyering <meyering@lucent.com>
52753 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
52754 for autoconf-2.49c.
52755 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
52757 2001-01-16 Jim Meyering <meyering@lucent.com>
52759 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
52762 2001-01-14 Jim Meyering <meyering@lucent.com>
52764 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
52765 foo and bar. Create conftestdir/ in the script, not in the C code.
52766 Remove directories in the script, not in the C code.
52767 Remove conftestdir{,2} before trying to create the directory.
52768 Make the entire configure script fail if the mkdir fails.
52770 2001-01-14 Jim Meyering <meyering@lucent.com>
52772 * lib/rename.c: New file. From Volker Borchert.
52773 Include stdlib.h, string.h or strings.h, and xalloc.h.
52774 Use strip_trailing_slashes rather than open-coding it.
52776 2001-01-03 Paul Eggert <eggert@twinsun.com>
52778 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
52780 2001-01-03 Jim Meyering <meyering@lucent.com>
52782 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
52783 of local `inptr' to avoid warning with some system declarations of
52786 2001-01-02 Volker Borchert <bt@teknon.de>
52788 * m4/rename.m4: New file.
52789 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
52791 2001-01-01 Jim Meyering <meyering@lucent.com>
52793 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
52794 even on systems with utmpx.h. It's necessary for the declaration of
52795 utmp's ut_user member. Reported by Andreas Jaeger.
52797 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
52798 available. They are required for the declarations of getgrgid and
52800 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
52801 Reported by Andreas Jaeger.
52803 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
52805 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
52806 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
52807 so `make install' also works in VPATH builds.
52809 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
52811 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
52812 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
52813 can be used in subdirectories.
52815 2000-12-29 Paul Eggert <eggert@twinsun.com>
52817 * lib/modechange.c: Do not assume that mode_t uses the
52818 traditional octal encoding. E.g. "chmod 1 FOO" should set
52819 the other-execute bit of FOO even if S_IXOTH != 1.
52821 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
52822 WOTH, XOTH, ALLM): New macros.
52823 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
52824 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
52826 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
52827 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
52829 No need to use uintmax_t; unsigned long is long enough.
52830 Don't bother to get suffix since we don't use it.
52832 2000-12-26 Jim Meyering <meyering@lucent.com>
52834 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
52835 better with autoheader.
52837 2000-12-24 Jim Meyering <meyering@lucent.com>
52839 * lib/hash.c (is_prime): Return explicit boolean values.
52840 (hash_get_first): Return NULL to appease Irix5.6's 89.
52841 Reported by Nelson Beebe.
52843 2000-12-19 Bruno Haible <haible@clisp.cons.org>
52845 * lib/localcharset.c (locale_charset): Add support for Win32.
52847 2000-12-18 Paul Eggert <eggert@twinsun.com>
52849 * lib/physmem.h, lib/physmem.c: New files.
52851 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
52852 (noinst_HEADERS): Add physmem.h.
52854 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
52855 't' for compatibility with Solaris 8 sort.
52857 2000-12-18 Bruno Haible <haible@clisp.cons.org>
52859 * lib/config.charset: Add support for BeOS.
52861 2000-12-17 Jim Meyering <meyering@lucent.com>
52863 * m4/dos.m4 (jm_AC_DOS): New file and macro.
52864 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
52866 2000-12-16 Jim Meyering <meyering@lucent.com>
52868 This bug had a serious impact on chown: `chown N:M FILE' (for integer
52869 N and M) would have treated it like `chown N:N FILE'.
52871 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
52873 2000-12-16 Jim Meyering <meyering@lucent.com>
52875 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
52876 SHELLS_FILE to a file name that's useful on djgpp systems.
52878 (ADDITIONAL_DEFAULT_SHELLS): Define.
52879 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
52880 Based mostly on a patch from Prashant TR.
52882 2000-12-16 Bruno Haible <haible@clisp.cons.org>
52884 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
52885 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
52886 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
52888 2000-12-08 Andreas Schwab <schwab@suse.de>
52890 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
52891 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
52893 2000-12-07 Jim Meyering <meyering@lucent.com>
52895 * lib/stripslash.c (ISSLASH): Define.
52896 (strip_trailing_slashes): Use ISSLASH rather than comparing against
52900 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
52901 (dir_name_r): Declare this function as static.
52902 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
52903 manifest itself on a name containing a mix of slashes and
52905 Make this function work with names starting with a DOS-style
52906 drive letter and colon prefix.
52907 (dir_name): Append `.' if necessary.
52908 Based mostly on patches from Prashant TR and Eli Zaretskii.
52910 * lib/dirname.h (dir_name_r): Remove prototype.
52912 2000-12-06 Paul Eggert <eggert@twinsun.com>
52914 * m4/off_t-format.m4: Remove this file.
52915 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
52917 2000-12-06 Jim Meyering <meyering@lucent.com>
52919 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
52920 replacement strtoull, we may well need the replacement strtoul, too.
52921 Check for declarations of strtoul and strtoull.
52922 Check for strtol. Mainly as a cue to cause automake to include
52923 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
52924 Check for limits.h -- strtol.c needs it.
52926 2000-12-05 Jim Meyering <meyering@lucent.com>
52928 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
52930 2000-12-04 Jim Meyering <meyering@lucent.com>
52932 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
52933 Also include memory.h, stdlib.h, unistd.h if appropriate.
52934 Reported by Andreas Jaeger (conflicting declaration of malloc).
52936 2000-12-02 Jim Meyering <meyering@lucent.com>
52938 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
52939 * m4/jm-macros.m4 (jm_MACROS): require it.
52941 2000-12-02 Jim Meyering <meyering@lucent.com>
52943 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
52945 2000-12-01 Paul Eggert <eggert@twinsun.com>
52947 * lib/memrchr.c: Include <config.h> before any system include file.
52949 2000-11-30 Jim Meyering <meyering@lucent.com>
52951 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
52953 2000-11-30 Jim Meyering <meyering@lucent.com>
52955 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
52957 2000-11-29 Paul Eggert <eggert@twinsun.com>
52959 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
52961 2000-11-26 Jim Meyering <meyering@lucent.com>
52963 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
52965 2000-11-22 Paul Eggert <eggert@twinsun.com>
52967 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
52968 size of (size_t) -1; it's not portable.
52970 2000-11-17 Jim Meyering <meyering@lucent.com>
52972 * lib/strstr.c: Update from GNU libc.
52974 2000-11-17 Akim Demaille <akim@epita.fr>
52976 * lib/obstack.h: Formatting changes.
52977 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
52978 prevent type checking.
52979 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
52980 cast the value to (void *): assigning a `foo *' to a `void *'
52982 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
52984 2000-11-16 Jim Meyering <meyering@lucent.com>
52986 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
52988 2000-11-11 Jim Meyering <meyering@lucent.com>
52990 * lib/error.c: Add a couple #includes, merging from GNU libc version.
52992 2000-11-10 Jim Meyering <meyering@lucent.com>
52994 * lib/obstack.h: Update from GNU libc.
52995 * lib/obstack.c: Likewise.
52997 2000-11-08 Bruno Haible <haible@clisp.cons.org>
52999 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
53001 2000-11-06 Paul Eggert <eggert@twinsun.com>
53003 * lib/getusershell.c (setusershell): Use rewind rather than
53004 fseek/fseeko, to avoid configuration hassles with fseeko.
53005 Don't bother opening SHELLS_FILE if shellstream is NULL;
53006 it's not necessary.
53008 2000-11-05 Jim Meyering <meyering@lucent.com>
53010 * lib/makepath.h (make_dir): Declare.
53011 * lib/makepath.c (make_dir): Remove `static' attribute.
53014 2000-11-04 Jim Meyering <meyering@lucent.com>
53016 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
53018 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
53020 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
53021 last one in a bucket, advance to the next bucket.
53023 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
53025 * lib/fnmatch.c: Do not comment out all the code if we are using
53026 the GNU C library, because in some cases we are replacing buggy
53027 code in the GNU C library itself.
53029 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
53031 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
53032 (regex_compile): Catch bogus \(\1\).
53034 2000-10-30 Paul Eggert <eggert@twinsun.com>
53036 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
53037 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
53038 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
53040 2000-10-30 Paul Eggert <eggert@twinsun.com>
53042 * lib/error.h, getline.h, modechange.h:
53043 Remove "2000" from Copyright line, as the file hasn't been
53044 changed this year other than in the copyright notice.
53046 * lib/xalloc.h: Add "2000" to Copyright line, as this file
53047 was changed this year.
53049 2000-10-29 Jim Meyering <meyering@lucent.com>
53051 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
53053 * m4/ls-mntd-fs.m4: Likewise
53055 2000-10-29 Jim Meyering <meyering@lucent.com>
53057 * lib/xstat.in: Fix grammar in comment.
53059 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
53061 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
53062 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
53063 doesn't define __restrict_arr.
53065 2000-10-28 Jim Meyering <meyering@lucent.com>
53067 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
53068 (jm_PREREQ_MEMCHR): New function.
53070 2000-10-28 Jim Meyering <meyering@lucent.com>
53072 * lib/memchr.c: Update from libc.
53073 Adjust for portability:
53074 [HAVE_STDLIB_H]: Include stdlib.h.
53075 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
53076 Undef __memchr, too.
53077 [!weak_alias]: Define __memchr to memchr.
53079 * lib/regex.c: Update from libc.
53080 * lib/regex.h: Likewise.
53081 * lib/getopt1.c: Likewise.
53082 * lib/memcmp.c: Likewise.
53084 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
53085 Avoid using fseek, when possible -- it's broken by design.
53086 Patch by Ulrich Drepper.
53088 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
53090 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
53091 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
53092 Giving in to popular pressure to shut up the compiler with casts.
53094 2000-10-26 Jim Meyering <meyering@lucent.com>
53096 * lib/strftime.c: Update from libc.
53098 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
53100 * regex.c: More `unsigned char' -> `re_char' changes.
53101 Also change several `int' into `re_wchar_t'.
53102 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
53103 (PUSH_FAILURE_POINTER): Don't cast any more.
53104 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
53105 We want GCC to complain, since this piece of code makes
53106 re_match non-reentrant, which *should* be fixed.
53107 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
53108 (EXTEND_BUFFER): Use RETALLOC.
53109 (SET_LIST_BIT): Don't cast.
53110 (re_wchar_t): New type.
53111 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
53112 that those two functions will always properly return.
53113 (IMMEDIATE_QUIT_CHECK): Cast to void.
53114 (analyse_first): Use recursion rather than an explicit stack.
53115 (re_compile_fastmap): Can't fail anymore.
53116 (re_search_2): Don't check re_compile_fastmap for failure.
53117 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
53118 Now also sets the new value (passed in a new argument).
53119 (re_match_2_internal): Use it.
53120 Also, use a new var `reg' of type size_t when looping through regs
53121 rather than reuse the inappropriate `mcnt'.
53123 2000-10-25 Jim Meyering <meyering@lucent.com>
53125 * lib/obstack.c: Update from libc.
53127 2000-10-24 Kenichi Handa <handa@etl.go.jp>
53129 * regex.c (regex_compile): Change the way of handling a range from
53130 a char less than 256 to a char not less than 256.
53132 2000-10-24 Andrew Innes <andrewi@gnu.org>
53134 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
53136 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
53137 so that re_search functions only quit when callers expect them to.
53139 2000-10-23 Jim Meyering <meyering@lucent.com>
53141 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
53142 wrong. That set_locale call must not have any side effects.
53145 2000-10-22 Jim Meyering <meyering@lucent.com>
53147 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
53148 [CYCLIC]: Remove now-unused definition.
53150 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
53151 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
53152 Suggestion from Ulrich Drepper.
53154 2000-10-21 Jim Meyering <meyering@lucent.com>
53156 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
53157 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
53158 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
53160 2000-10-21 Jim Meyering <meyering@lucent.com>
53162 * lib/dirname.c (memrchr): Declare if necessary.
53163 (dir_name): Remove the restriction that there be no
53164 trailing slashes. Now, this code skips past them, effectively
53166 [TEST_DIRNAME] (main): New unit tests.
53168 * lib/memrchr.c: New file from GNU libc.
53169 Undef __memrchr, too.
53170 [!weak_alias]: Define __memrchr to memrchr.
53171 Guard weak_alias use with `#ifdef weak_alias'.
53173 2000-10-21 Jim Meyering <meyering@lucent.com>
53175 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
53176 (dir_name): Use dir_name_r.
53177 * lib/dirname.h (dir_name_r): Declare it.
53179 2000-10-17 Jim Meyering <meyering@lucent.com>
53181 * lib/quote.h (PARAMS): Define and use.
53182 Reported by Akim Demaille.
53184 * lib/getopt.c: Update from libc.
53186 2000-10-16 Jim Meyering <meyering@lucent.com>
53188 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
53192 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
53194 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
53196 2000-09-25 Jim Meyering <meyering@lucent.com>
53198 * lib/md5.h (rol): Define (from GnuPG).
53200 * lib/sha.c: Give credit (GnuPG) where due.
53201 (M): Use rol rather than open-coding it.
53202 Add a FIXME comment.
53204 2000-09-21 Jim Meyering <meyering@lucent.com>
53206 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
53207 Reported by Michael Stone.
53209 2000-09-20 Jim Meyering <meyering@lucent.com>
53211 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
53212 (noinst_HEADERS): Add sha.h.
53213 Based on code from Scott G. Miller and from GnuPG.
53215 2000-09-18 Jim Meyering <meyering@lucent.com>
53217 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
53218 LIBS. Otherwise, everyone ends up linking with -lelf for some
53220 Reported by Mike Stone.
53222 2000-09-15 Jim Meyering <meyering@lucent.com>
53224 * lib/regex.c: Update from libc.
53226 2000-09-10 Jim Meyering <meyering@lucent.com>
53228 * lib/getopt.c (_getopt_internal): Update from glibc.
53230 2000-09-09 Jim Meyering <meyering@lucent.com>
53232 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
53233 think it should be used as a general replacement for isascii.
53234 * lib/fnmatch.c: Likewise.
53235 * lib/mbswidth.c: Likewise
53236 * lib/regex.c: Likewise.
53239 * lib/userspec.c: Include sys/param.h and limits.h.
53241 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
53242 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
53243 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
53244 UID, GID. Check range.
53246 2000-09-06 Jim Meyering <meyering@lucent.com>
53248 * lib/getopt.c (_getopt_internal): Update from glibc.
53250 2000-08-30 Jim Meyering <meyering@lucent.com>
53252 * lib/strftime.c: Merge in changes from GNU libc.
53254 2000-08-26 Jim Meyering <meyering@lucent.com>
53256 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
53257 * m4/fpending.m4: New file.
53259 2000-08-26 Jim Meyering <meyering@lucent.com>
53261 * lib/closeout.c: Include "__fpending.h".
53262 (close_stdout_status): Return right away if there's nothing to flush.
53264 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
53265 * lib/__fpending.c: New file.
53266 * lib/__fpending.h: New file.
53268 2000-08-20 Jim Meyering <meyering@lucent.com>
53270 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
53271 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
53272 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
53274 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
53276 Improve fileutils installation on systems where running
53277 programs (like install) can't be unlinked.
53278 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
53279 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
53281 2000-08-07 Paul Eggert <eggert@twinsun.com>
53283 Standardize on "memory exhausted" instead of "Memory exhausted"
53284 or "virtual memory exhausted".
53285 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
53286 "virtual memory exhausted".
53287 * lib/same.c (same_name): Invoke xalloc_die instead of printing
53289 * lib/userspec.c (parse_user_spec): Likewise.
53290 * lib/bumpalloc.h: comment fix
53291 * lib/same.c, userspec.c: Include xalloc.h.
53293 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
53294 not char *const and pointing to a constant array.
53295 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
53296 (xrealloc): Comment fix.
53298 * lib/userspec.c (parse_user_spec):
53299 Don't translate a message until just before returning,
53300 to avoid unnecessary translation.
53302 2000-08-07 Jim Meyering <meyering@lucent.com>
53304 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
53305 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
53306 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
53307 getgroups.c, gethostname.c, getopt.h, group-member.c,
53308 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
53309 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
53310 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
53311 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
53312 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
53313 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
53314 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
53315 yesno.c: Back out Copyright date changes for each file with no change
53316 this year. This eases coordination with other programs using the same
53317 source code modules. From Paul Eggert.
53319 2000-08-06 Paul Eggert <eggert@twinsun.com>
53321 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
53322 not char, for compatibility with glibc 2.1.3 strftime.c.
53324 2000-08-03 Greg McGary <greg@mcgary.org>
53326 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
53327 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
53328 (EXTEND_BUFFER): Use them.
53330 2000-08-01 Jim Meyering <meyering@lucent.com>
53332 * lib/dirname.c (ISSLASH): Define.
53333 (BACKSLASH_IS_PATH_SEPARATOR): Define.
53334 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
53335 both `\' and `/' may be use as path separators.
53336 Based on a patch from Prashant TR.
53338 2000-07-31 Paul Eggert <eggert@twinsun.com>
53340 * lib/quotearg.c (quotearg_n_options): Don't make the initial
53341 slot vector a constant, since it might get modified.
53343 2000-07-31 Jim Meyering <meyering@lucent.com>
53345 * lib/xmalloc.c: Use `virtual memory exhausted', not
53346 `Memory exhausted'.
53347 * lib/obstack.c (print_and_abort): Likewise.
53349 2000-07-30 Paul Eggert <eggert@twinsun.com>
53351 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
53352 buffer, so that the caller can always quote one small
53353 component of a "memory exhausted" message in slot 0.
53354 From a suggestion by Jim Meyering.
53356 2000-07-30 Jim Meyering <meyering@lucent.com>
53358 * lib/makepath.c (make_path): Quote the other instance, too.
53360 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
53361 (STATIC_BUF_SIZE): Define.
53362 (quotearg_n_options): Use only statically allocated storage when
53363 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
53364 than STATIC_BUF_SIZE.
53366 2000-07-29 Jim Meyering <meyering@lucent.com>
53368 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
53369 * lib/dirname.c (dir_name): Likewise.
53371 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
53374 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
53375 (dir_name): Assert that there are no trailing slashes.
53377 2000-07-29 Bruno Haible <haible@clisp.cons.org>
53379 * lib/mbswidth.h (mbswidth): Add a flags argument.
53380 (mbswidth): New declaration.
53381 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
53382 * lib/mbswidth.c (mbswidth): Add a flags argument.
53383 (mbsnwidth): New function.
53385 2000-07-24 Jim Meyering <meyering@lucent.com>
53387 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
53389 2000-07-23 Paul Eggert <eggert@twinsun.com>
53391 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
53393 2000-07-23 Paul Eggert <eggert@twinsun.com>
53395 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
53396 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
53397 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
53398 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
53399 invoke multibyte primitives.
53401 2000-07-23 Paul Eggert <eggert@twinsun.com>
53404 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
53405 so that mbstate_t is always defined.
53407 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
53408 be 1 in at least one GCC installation, and this configuration
53409 error is likely to be common. Ignoring MB_LEN_MAX hurts
53410 performance on hosts that have mbrtowc but have only unibyte
53411 locales, but I assume these hosts are rare.
53413 2000-07-23 Paul Eggert <eggert@twinsun.com>
53415 * lib/mbswidth.c (_XOPEN_SOURCE):
53416 Don't define; this causes problems on Solaris 7.
53417 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
53419 2000-07-23 Jim Meyering <meyering@lucent.com>
53421 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
53422 too: getgrgid, getpwuid, getuid.
53424 2000-07-23 Jim Meyering <meyering@lucent.com>
53426 * lib/basename.c (base_name): Add an assertion.
53428 2000-07-23 Bruno Haible <haible@clisp.cons.org>
53430 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
53431 shadow its mbsinit function.
53433 2000-07-17 Bruno Haible <haible@clisp.cons.org>
53435 * lib/mbswidth.h: New file.
53436 * lib/mbswidth.c: New file.
53437 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
53438 (noinst_HEADERS): Add mbswidth.h.
53440 2000-07-17 Bruno Haible <haible@clisp.cons.org>
53442 * lib/config.charset: Add support for FreeBSD. Improve support for
53445 2000-07-16 Bruno Haible <haible@clisp.cons.org>
53447 * m4/mbswidth.m4: New file.
53448 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
53450 2000-07-15 Jim Meyering <meyering@lucent.com>
53452 * lib/makepath.c: Include quote.h.
53453 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
53454 corresponding argument in a `quote (...)' call.
53455 Give better diagnostics.
53457 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
53458 (noinst_HEADERS): Add quote.h.
53460 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
53461 from tar's src/misc.c.
53462 * lib/quote.h: New file. Prototypes for same.
53464 2000-07-14 Paul Eggert <eggert@twinsun.com>
53466 From a suggestion by Bruno Haible.
53467 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
53468 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
53469 to decide whether to define the BeOS workaround macro;
53470 this adjusts to the change to AC_MBSTATE_T.
53472 2000-07-14 Jim Meyering <meyering@lucent.com>
53474 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
53475 jm_AC_TYPE_UINTMAX_T.
53477 2000-07-13 Paul Eggert <eggert@twinsun.com>
53479 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
53481 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
53482 quotearg_buffer_restyled): Add support for
53483 clocale_quoting_style. Undo previous change to
53484 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
53485 and "{RIGHT QUOTATION MARK}" msgids.
53487 2000-07-10 Paul Eggert <eggert@twinsun.com>
53489 From a suggestion by Bruno Haible.
53490 * m4/mbstate_t.m4 (AC_MBSTATE_T):
53491 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
53492 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
53493 and mbstate_t, to a single-part test that simply defines mbstate_t.
53494 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
53495 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
53497 2000-07-10 Jim Meyering <meyering@lucent.com>
53499 * m4/strerror_r.m4: Mirror the correction made in autoconf.
53501 * m4/gnu-source.m4: Output to confdefs.h directly.
53502 Suggestion from Akim Demaille.
53504 2000-07-09 Paul Eggert <eggert@twinsun.com>
53506 The old behavior of quoting `like this' doesn't look good with
53507 newer, ISO-style fonts. See:
53508 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
53510 Instead, quote "like this" by default. Let the translator
53511 tailor the locale-specific quoting behavior by providing
53512 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
53514 * lib/quotearg.c (N_): New macro.
53515 (gettext_default): New function.
53516 (quotearg_buffer_restyled): Use
53517 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
53518 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
53520 2000-07-09 Jim Meyering <meyering@lucent.com>
53522 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
53523 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
53525 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
53526 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
53528 2000-07-09 Jim Meyering <meyering@lucent.com>
53530 * lib/Most files: Update copyright dates to include 2000.
53532 2000-07-08 Jim Meyering <meyering@lucent.com>
53534 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
53536 (xgethostname): Remove now-unnecessary #ifdef.
53537 Move declaration of `err' into loop where it's used.
53539 2000-07-05 Paul Eggert <eggert@twinsun.com>
53540 and Bruno Haible <haible@clisp.cons.org>
53542 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
53543 only if the test for an object-type mbstate_t fails. This
53544 prevents us from mistakenly reporting that mbstate_t is a
53545 system object type after we "#define mbstate_t int" to work
53548 2000-07-05 Paul Eggert <eggert@twinsun.com>
53549 and Bruno Haible <haible@clisp.cons.org>
53551 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
53553 2000-07-05 Bruno Haible <haible@clisp.cons.org>
53555 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
53557 Include <ctype.h> for use of isalpha.
53559 2000-07-05 Bruno Haible <haible@clisp.cons.org>
53561 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
53562 by allocating a larger buffer. Test the gethostname return value for
53563 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
53564 returns an error and ENAMETOOLONG isn't defined.
53566 2000-07-05 Bruno Haible <haible@clisp.cons.org>
53568 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
53571 2000-07-04 Jim Meyering <meyering@lucent.com>
53573 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
53574 of the deprecated AC_CHECKING.
53576 2000-07-04 Jim Meyering <meyering@lucent.com>
53578 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
53579 Reported by Bruno Haible.
53581 2000-07-04 Jim Meyering <meyering@lucent.com>
53583 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
53584 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
53587 2000-07-03 Paul Eggert <eggert@twinsun.com>
53589 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
53590 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
53592 2000-07-03 Paul Eggert <eggert@twinsun.com>
53593 and Bruno Haible <haible@clisp.cons.org>
53595 * lib/quotearg.c (mbrtowc):
53596 Assign to *pwc, and return 1 only if result is nonzero.
53597 (iswprint): Use ISPRINT when substituting our own mbrtowc.
53599 2000-07-03 Jim Meyering <meyering@lucent.com>
53601 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
53603 2000-07-03 Jim Meyering <meyering@lucent.com>
53605 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
53606 This is necessary to get a definition of e.g., UTMP_FILE on
53610 2000-07-02 Jim Meyering <meyering@lucent.com>
53612 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
53614 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
53615 AC_LIBOBJ(function_name).
53616 * m4/chown.m4: Likewise.
53617 * m4/fnmatch.m4: Likewise.
53618 * m4/ftruncate.m4: Likewise.
53619 * m4/getgroups.m4: Likewise.
53620 * m4/getline.m4: Likewise.
53621 * m4/group-member.m4: Likewise.
53622 * m4/jm-macros.m4: Likewise.
53623 * m4/lstat.m4: Likewise.
53624 * m4/malloc.m4: Likewise.
53625 * m4/memcmp.m4: Likewise.
53626 * m4/nanosleep.m4: Likewise.
53627 * m4/putenv.m4: Likewise.
53628 * m4/realloc.m4: Likewise.
53629 * m4/regex.m4: Likewise.
53630 * m4/stat.m4: Likewise.
53631 * m4/strftime.m4: Likewise.
53633 2000-07-02 Jim Meyering <meyering@lucent.com>
53635 * lib/quotearg.c (mbstate_t): Don't define here.
53637 2000-07-02 Jim Meyering <meyering@lucent.com>
53639 * lib/nanosleep.c (SIGCONT): Define if not already defined.
53641 2000-07-01 Jim Meyering <meyering@lucent.com>
53643 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
53645 2000-07-01 Jim Meyering <meyering@lucent.com>
53647 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
53650 2000-07-01 Bruno Haible <haible@clisp.cons.org>
53652 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
53653 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
53655 2000-07-01 Bruno Haible <haible@clisp.cons.org>
53657 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
53658 per change in ../m4/ls-mntd-fs.m4.
53659 (read_filesystem_list): Ignore symbolic links.
53661 2000-06-29 Jim Meyering <meyering@lucent.com>
53663 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
53664 for declaration of strcmp.
53666 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
53668 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
53669 Avoid warning by casting result to `char *' to remove `const'.
53671 2000-06-28 Jim Meyering <meyering@lucent.com>
53673 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
53674 included by quotearg.c, for which we perform this test. From
53677 2000-06-27 Bruno Haible <haible@clisp.cons.org>
53679 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
53680 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
53681 <utmpx.h> exists, put readutmp.o into LIBOBJS.
53683 2000-06-27 Bruno Haible <haible@clisp.cons.org>
53685 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
53687 2000-06-26 Paul Eggert <eggert@twinsun.com>
53689 savedir now sets errno on failure and invokes xmalloc to get memory.
53690 Fix a couple of other minor bugs while we're at it.
53692 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
53693 (NAMLEN): Remove macro.
53694 (malloc, realloc): Remove decls.
53695 (stpcpy): Likewise.
53696 ("xalloc.h"): Include.
53697 (NAME_SIZE_DEFAULT): New macro.
53698 (savedir): Use xmalloc / xrealloc to allocate memory.
53699 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
53700 Skip "" directory entries.
53701 Use strlen to calculate directory entry length, since the old method
53702 is rarely used these days and isn't worth supporting.
53703 Don't use a pointer after freeing it.
53704 Check for integer overflow when calculating allocation size.
53705 Use memcpy to copy entries, instead of stpcpy.
53706 Set errno properly when returning NULL.
53707 Check for readdir error.
53709 2000-06-26 Jim Meyering <meyering@lucent.com>
53711 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
53713 2000-06-25 Jim Meyering <meyering@lucent.com>
53715 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
53716 Linux header bug when _XOPEN_SOURCE is defined to 500.
53718 2000-06-25 Bruno Haible <haible@clisp.cons.org>
53720 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
53723 2000-06-25 Bruno Haible <haible@clisp.cons.org>
53725 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
53727 Don't include <stdlib.h>. Don't declare malloc, realloc.
53729 2000-06-24 Jim Meyering <meyering@lucent.com>
53731 * m4/strerror_r.m4: Revive this file -- to try out an experimental
53732 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
53733 for which strerror does return char*, but which lacks a conveniently
53734 accessible declaration of the function. If the compile-test says
53735 strerror_r doesn't work, then resort to a `run'-test that works on
53736 BeOS and segfaults on DEC Unix.
53738 2000-06-24 Jim Meyering <meyering@lucent.com>
53740 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
53742 2000-06-23 Paul Eggert <eggert@twinsun.com>
53744 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
53745 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
53747 2000-06-23 Paul Eggert <eggert@twinsun.com>
53749 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
53750 (mbrtowc, mbstate_t): Define substitutes if
53751 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
53752 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
53753 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
53755 2000-06-23 Jim Meyering <meyering@lucent.com>
53757 * m4/afs.m4: Add missing AC_MSG_RESULT.
53758 Reported by Bruno Haible.
53760 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
53761 Suggestion from Bruno Haible.
53763 2000-06-23 Jim Meyering <meyering@lucent.com>
53765 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
53767 2000-06-21 Jim Meyering <meyering@lucent.com>
53769 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
53771 2000-06-21 Jim Meyering <meyering@lucent.com>
53773 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
53774 (noinst_HEADERS): Add getstr.h.
53776 * lib/getline.c (getstr): Move into a separate file.
53777 * lib/getstr.c (getstr): New file, extracted from getline.c, with
53778 the following changes: new parameter, delim2; both delim[12]
53779 parameters have type `int', not `char'. The latter would lose
53780 with 8-bit delimiters.
53781 * lib/getstr.h: New file.
53783 2000-06-21 Bruno Haible <haible@clisp.cons.org>
53785 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
53786 than 1024, return a memory chunk of least possible size, instead
53787 of size PATH_MAX + 2. In the loop, increment the size proportionally.
53788 Use free/xmalloc instead of xrealloc to avoid copying for very long
53791 2000-06-21 Bruno Haible <haible@clisp.cons.org>
53793 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
53796 2000-06-21 Bruno Haible <haible@clisp.cons.org>
53798 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
53799 address, not strdup. Include <stdlib.h> and don't declare free().
53801 2000-06-19 Jim Meyering <meyering@lucent.com>
53803 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
53805 2000-06-18 Jim Meyering <meyering@lucent.com>
53807 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
53809 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
53810 `checking whether...' message to be consistent with that of the
53813 2000-06-18 Jim Meyering <meyering@lucent.com>
53815 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
53816 Besides, these days every porting target provides a mkdir function.
53818 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
53819 needed. (this snippet comes from src/system.h).
53821 2000-06-16 Bruno Haible <haible@clisp.cons.org>
53823 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
53825 2000-06-15 Paul Eggert <eggert@twinsun.com>
53827 * lib/human.c (adjust_value): New function.
53828 (human_readable_inexact): Apply rounding style even when
53829 printing approximate values.
53831 2000-06-14 Paul Eggert <eggert@twinsun.com>
53833 * lib/human.c (human_readable_inexact): Allow an input block
53834 size that is not a multiple of the output block size, and vice versa.
53835 Reported by Piergiorgio Sartor.
53837 2000-06-14 Paul Eggert <eggert@twinsun.com>
53839 * lib/getdate.y (get_date): Apply relative times after time
53840 zone indicator, not before. Reported by Todd A. Jacobs.
53842 2000-06-13 Jim Meyering <meyering@lucent.com>
53844 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
53846 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
53848 2000-06-12 Paul Eggert <eggert@twinsun.com>
53850 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
53852 2000-06-12 Jim Meyering <meyering@lucent.com>
53854 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
53855 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
53857 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
53858 the optional argument, `lib'.
53860 2000-06-08 Jim Meyering <meyering@lucent.com>
53862 * m4/largefile.m4: Remove file (now that it's part of autoconf).
53864 2000-06-04 Paul Eggert <eggert@twinsun.com>
53866 Rewrite largefile configuration so that we don't need to run
53867 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
53868 AC_CANONICAL_HOST in configure.in -- jmm]
53870 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
53871 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
53872 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
53873 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
53874 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
53876 Instead of inspecting the output of getconf, try to compile the
53877 test program without and with the macro definition.
53878 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
53879 for getconf. Instead, check for the needed flags by compiling
53882 2000-06-04 Paul Eggert <eggert@twinsun.com>
53884 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
53886 2000-06-04 Jim Meyering <meyering@lucent.com>
53888 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
53889 SunOS 4.1.4 for which gid_t is an unsigned type.
53891 2000-06-03 Jim Meyering <meyering@lucent.com>
53893 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
53894 now that autoconf requires that.
53896 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
53897 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
53898 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
53900 2000-06-03 Jim Meyering <meyering@lucent.com>
53902 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
53904 2000-06-03 Bruno Haible <haible@clisp.cons.org>
53906 * m4/glibc21.m4: New file.
53907 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
53909 2000-06-03 Bruno Haible <haible@clisp.cons.org>
53911 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
53912 newer, don't install charset.alias.
53913 * lib/config.charset: Change the Linux/glibc rules so they become empty
53914 on glibc-2.1 or newer.
53916 2000-06-02 Jim Meyering <meyering@lucent.com>
53918 * lib/mountlist.c: Back out last change. Instead, do this...
53919 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
53920 me_dummy member using the same `ignore'-testing code.
53921 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
53925 2000-05-29 Jim Meyering <meyering@lucent.com>
53927 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
53928 mounts with the `ignore' attribute. Based on a patch from
53931 2000-05-28 Jim Meyering <meyering@lucent.com>
53933 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
53934 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53935 * m4/stat.m4: Likewise.
53936 * m4/lstat.m4: Likewise.
53937 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
53939 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
53940 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
53942 2000-05-26 Jim Meyering <meyering@lucent.com>
53944 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
53946 2000-05-24 Jim Meyering <meyering@lucent.com>
53948 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
53949 autoconf requires that.
53950 * m4/lib-check.m4: Likewise.
53951 * m4/jm-macros.m4: Likewise.
53952 * m4/strftime.m4: Likewise.
53954 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
53955 AC_CHECK_DECLS, now that autoconf requires that.
53957 2000-05-22 Jim Meyering <meyering@lucent.com>
53959 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53960 * m4/lstat.m4: Likewise.
53962 2000-05-22 Jim Meyering <meyering@lucent.com>
53964 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
53966 2000-05-20 Jim Meyering <meyering@lucent.com>
53968 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
53969 (jm_PREREQ): Use it.
53971 2000-05-18 Jim Meyering <meyering@lucent.com>
53973 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
53974 back, too, since it may have been modified by allocate_entry.
53975 (hash_delete): Rewrite to use neither the assignment operator
53976 nor the comma operator in an if-expression.
53978 2000-05-15 Paul Eggert <eggert@twinsun.com>
53981 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
53982 Remove; no longer needed.
53983 "quotearg.h": Add include.
53984 (file_name): Do not bother to explicitly initialize to NULL; it's less
53985 efficient on some hosts.
53986 (close_stdout_status): Remove test as to whether stdout was already
53987 closed; it breaks for the case "echo x | sort >&-".
53988 Quote file name colons.
53989 Do not assume that _("write error") lacks format strings.
53991 2000-05-15 Jim Meyering <meyering@lucent.com>
53993 * lib/version-etc.c (version_etc_copyright): Update the copyright
53994 string used in all --version output.
53996 2000-05-14 Jim Meyering <meyering@lucent.com>
53998 * lib/closeout.c (close_stdout_set_file_name): New function.
53999 (close_stdout_status): Use new file-scoped global.
54000 Return right away if fstat says the stdout file descriptor is invalid.
54001 * lib/closeout.h (close_stdout_set_file_name): Declare.
54003 2000-05-10 Jim Meyering <meyering@lucent.com>
54005 * lib/closeout.c [default_exit_status]: New file-scoped variable.
54006 (close_stdout_set_status): New function.
54007 * lib/closeout.h (close_stdout_set_status): Declare.
54009 2000-05-09 Jim Meyering <meyering@lucent.com>
54011 * m4/gettext.m4: Rename this...
54012 * m4/libintl.m4: ...to this.
54014 2000-05-08 Jim Meyering <meyering@lucent.com>
54016 * lib/long-options.c: Don't include closeout.h.
54017 (parse_long_options): Don't call close_stdout for --version.
54019 2000-05-06 Paul Eggert <eggert@twinsun.com>
54021 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
54022 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
54023 2.1.3 bug. This avoids a clash when files like regex.c define
54026 2000-05-06 Jim Meyering <meyering@lucent.com>
54028 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
54029 (AC_REPLACE_FUNCS): Add strnlen.
54031 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
54032 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
54034 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
54035 AC_SEARCH_LIBS call for nanosleep.
54036 (LIB_NANOSLEEP): Set and AC_SUBST.
54038 2000-05-06 Jim Meyering <meyering@lucent.com>
54040 * lib/strnlen.c: Undefine __strnlen and strnlen.
54041 [!weak_alias]: Define __strnlen to strnlen.
54043 * lib/atexit.c: New file, from libiberty.
54045 2000-05-06 Jim Meyering <meyering@lucent.com>
54047 * lib/closeout.c (close_stdout_status): Also check for errors on the
54050 2000-05-05 Jim Meyering <meyering@lucent.com>
54052 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
54053 AC_SEARCH_LIBS call for clock_gettime.
54054 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
54056 * m4/search-libs.m4: Update from autoconf.
54058 su doesn't work on Solaris 2.6.
54059 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
54060 <shadow.h>. Reported by Dragos Harabor.
54062 2000-05-05 Bruno Haible <haible@clisp.cons.org>
54064 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
54065 memcpy instead of xmalloc, xrealloc, path_concat.
54066 (locale_charset): Treat empty environment variables as absent.
54067 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
54069 2000-05-04 Jim Meyering <meyering@lucent.com>
54071 * lib/getopt.c: Update from glibc.
54072 * lib/obstack.c: Likewise.
54073 * lib/obstack.h: Likewise.
54074 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
54077 * lib/regex.h: Likewise.
54078 * lib/strndup.c: Likewise.
54079 * lib/strnlen.c: New file, from glibc.
54081 2000-05-03 Jim Meyering <meyering@lucent.com>
54083 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
54085 2000-05-02 Paul Eggert <eggert@twinsun.com>
54087 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
54088 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
54089 compile-time test, rather than inspecting host and OS, to
54090 decide whether to define _LARGEFILE_SOURCE.
54092 2000-05-01 Jim Meyering <meyering@lucent.com>
54094 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
54096 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
54097 Based on a patch from Bruno Haible.
54099 2000-05-01 Jim Meyering <meyering@lucent.com>
54101 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
54103 2000-04-29 Jim Meyering <meyering@lucent.com>
54105 * lib/path-concat.c: Declare strdup only if it's not defined.
54106 * lib/canon-host.c: Likewise.
54108 2000-04-28 Jim Meyering <meyering@lucent.com>
54110 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
54111 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
54112 is included first, then limits.h is included by locale.h by libintl.h.
54113 From John David Anglin.
54115 2000-04-25 Jim Meyering <meyering@lucent.com>
54117 * lib/makepath.c (S_IRWXUGO): Define.
54118 (make_path): Always perform explicit chmod if MODE specifies any
54119 of the `special' permission bits. Prompted by a bug report against
54120 install from Mate Wierdl and Joost van Baal.
54122 2000-04-18 Jim Meyering <meyering@lucent.com>
54124 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
54125 (jm_PREREQ): Use it.
54127 2000-04-18 Jim Meyering <meyering@lucent.com>
54129 * lib/README: New file.
54131 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
54132 getpagesize. For BeOS. Based on a patch from Bruno Haible.
54134 2000-04-17 Jim Meyering <meyering@lucent.com>
54137 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
54138 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
54139 Suggestion from Akim Demaille.
54141 2000-04-17 Jim Meyering <meyering@lucent.com>
54143 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
54144 the definition of it to rpl_strftime also defined-away the system's
54147 2000-04-15 Jim Meyering <meyering@lucent.com>
54149 Use `C' to denote so-called `contiguous' files, the same way
54151 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
54152 (ftypelet): Use S_ISCTG.
54153 From Michael Deutschmann.
54155 2000-04-14 Jim Meyering <meyering@lucent.com>
54157 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
54158 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
54161 2000-04-14 Jim Meyering <meyering@lucent.com>
54163 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
54165 2000-04-13 Jim Meyering <meyering@lucent.com>
54167 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
54168 AH_VERBATIM to insert required #ifndef into config.h.in.
54169 Suggestion from Akim Demaille.
54171 2000-04-12 Jim Meyering <meyering@lucent.com>
54173 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
54174 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
54175 Christian Krackowizer.
54177 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
54178 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
54179 (AC_SYS_LARGEFILE): Require.
54180 (AM_C_PROTOTYPES): Require.
54182 2000-04-08 Jim Meyering <meyering@lucent.com>
54184 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
54185 names don't conflict. Reported by Eli Zaretskii.
54187 2000-04-07 Jim Meyering <meyering@lucent.com>
54189 * lib/putenv.c: Move inclusion of errno.h so it follows that of
54190 sys/types.h, to work around system header problems on AIX 3.2.5.
54193 2000-04-07 Bruno Haible <haible@clisp.cons.org>
54195 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
54196 bug. Deal with the different error behavior of Irix iconv.
54198 2000-04-05 Paul Eggert <eggert@twinsun.com>
54200 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
54201 IRIX if the installer said otherwise.
54203 2000-04-05 Jim Meyering <meyering@lucent.com>
54205 Portability tweaks required for ultrix4.3.
54206 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
54207 (jm_CHECK_DECLS): Add getutent to the list of functions.
54208 (_jm_DECL_HEADERS): Add utmpx.h.
54209 From John David Anglin.
54211 * m4/strftime.m4: Back out the 2000-04-02 change.
54212 Instead of that change, simply undefine putenv in the test program.
54214 2000-04-05 Jim Meyering <meyering@lucent.com>
54216 Portability tweaks required for ultrix4.3.
54217 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
54219 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
54220 * lib/canon-host.c: Declare strdup.
54221 * lib/path-concat.c: Likewise.
54222 From John David Anglin.
54224 2000-04-04 Jim Meyering <meyering@lucent.com>
54226 Be more DOS 8.3-friendly.
54227 * lib/ref-add.sin: Renamed from ref-add.sed.in.
54228 * lib/ref-del.sin: Renamed from ref-del.sed.in.
54229 * lib/Makefile.am: Reflect renaming.
54230 Reported by Eli Zaretskii.
54232 Use a temporary file name that won't clash with `charset.alias'
54233 in the DOS 8.3 name space.
54234 * lib/Makefile.am (charset_tmp): Define.
54235 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
54236 (uninstall-local): Likewise.
54237 Reported by Eli Zaretskii.
54239 2000-04-03 Jim Meyering <meyering@lucent.com>
54241 * m4/gettext.m4: Fix typo in comment.
54243 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
54244 textutils/configure.in). Suggestion from Paul Eggert.
54245 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
54247 2000-04-02 Paul Eggert <eggert@twinsun.com>
54249 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
54250 variable in the shell rather than using putenv, which isn't
54251 portable. This avoids the configure-time inter-test dependency
54252 on the potentially-renamed putenv function.
54254 2000-03-30 Paul Eggert <eggert@twinsun.com>
54256 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
54257 before checking struct stat.st_blksize, so that
54258 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
54260 2000-03-29 Paul Eggert <eggert@twinsun.com>
54262 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
54263 since strftime.c uses HAVE_STRFTIME to decide whether to use
54264 the underlying strftime.
54266 2000-03-29 Paul Eggert <eggert@twinsun.com>
54268 * lib/time/strftime.c (my_strftime): Make sure we call the system
54269 strftime, not ourselves, when invoking the underlying strftime.
54271 2000-03-24 Jim Meyering <meyering@lucent.com>
54273 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
54274 (charset_alias): Define.
54275 (install-exec-local): Factor out common code.
54276 (uninstall-local): Split lines longer than 80.
54277 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
54278 (SUFFIXES): Define.
54279 (.sed.in.sed): New rule. Don't redirect directly to $@.
54280 (CLEANFILES): Add ref-add.sed and ref-del.sed.
54282 2000-03-19 Bruno Haible <haible@clisp.cons.org>
54284 * lib/config.charset: Output a line containing "Packages using this
54286 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
54287 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
54288 ref-del.sed): New rules.
54290 2000-03-17 Jim Meyering <meyering@lucent.com>
54292 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
54293 Otherwise, include <strings.h>
54295 2000-03-17 Bruno Haible <haible@clisp.cons.org>
54297 * lib/unicodeio.c (utf8_wctomb): New function.
54298 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
54299 format instead of in UCS-4 with platform dependent endianness.
54301 2000-03-10 Jim Meyering <meyering@lucent.com>
54303 * m4/lib-check.m4: Look for getspnam in -lgen, too.
54304 From Marco Franzen.
54306 2000-03-07 Paul Eggert <eggert@twinsun.com>
54308 * lib/savedir.c (savedir): Work even if directory size is
54309 negative; this can happen with some screwy NFS configurations.
54311 2000-03-06 Jim Meyering <meyering@lucent.com>
54313 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
54314 if it's NULL (because we ran out of memory). From Bruno Haible.
54316 2000-03-05 Jim Meyering <meyering@lucent.com>
54318 * lib/localcharset.c ("path-concat.h"): Include.
54319 (get_charset_aliases): Use path_concat instead of ANSI string
54322 * lib/unicodeio.h (PARAMS): Define.
54323 Use it to guard prototype.
54325 2000-03-04 Jim Meyering <meyering@lucent.com>
54327 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
54328 for lib/localcharset.c.
54330 2000-03-04 Jim Meyering <meyering@lucent.com>
54332 * lib/Makefile.am (install-exec-local): Create $(libdir) before
54333 installing into it.
54334 (uninstall-local): Uncomment this rule so `make distcheck' works
54337 * lib/unicodeio.c (<errno.h>): Include it.
54338 (errno): Declare if not defined.
54340 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
54342 * lib/config.charset: New version, incorporating remarks from a linux
54343 i18n mailing list. From Bruno Haible.
54345 2000-03-04 Bruno Haible <haible@clisp.cons.org>
54347 * m4/codeset.m4: New file.
54348 * m4/iconv.m4: New file.
54349 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
54351 2000-03-03 Jim Meyering <meyering@lucent.com>
54353 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
54355 2000-03-02 Jim Meyering <meyering@lucent.com>
54357 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
54358 the messages come out on separate lines.
54360 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
54361 rather than jm_CHECK_DECLARATIONS.
54362 * m4/decl.m4: Remove now-unused file.
54364 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
54367 2000-03-02 Jim Meyering <meyering@lucent.com>
54369 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
54371 2000-03-01 Jim Meyering <meyering@lucent.com>
54373 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
54374 * lib/unicodeio.c: Likewise.
54376 2000-03-01 Bruno Haible <haible@clisp.cons.org>
54378 * lib/config.charset: New file.
54379 * lib/localcharset.c: New file.
54380 * lib/unicodeio.h, lib/unicodeio.c: New files.
54381 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
54382 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
54383 (noinst_HEADERS): Add unicodeio.h.
54384 (all-local, install-exec-local, charset.alias): New targets.
54386 2000-02-28 Paul Eggert <eggert@twinsun.com>
54388 * lib/quotearg.c (ALERT_CHAR): New macro.
54389 (quotearg_buffer_restyled): Use it.
54391 2000-02-27 Jim Meyering <meyering@lucent.com>
54393 * m4/check-decl.m4: Add getenv to the list.
54395 2000-02-27 Jim Meyering <meyering@lucent.com>
54397 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
54398 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
54400 * lib/backupfile.c: Guard inclusion of stdlib.h with
54401 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
54402 Declare malloc if needed.
54404 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
54405 `#ifndef HAVE_DECL..'
54406 now that autoconf always defines the HAVE_DECL_ symbols.
54407 * lib/human.c: Likewise.
54408 * lib/same.c: Likewise.
54409 * lib/strtoumax.c: Likewise.
54411 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
54412 declaration check was not run.
54413 * lib/hash.c: Likewise.
54414 * lib/human.c: Likewise.
54415 * lib/same.c: Likewise.
54416 * lib/strtoumax.c: Likewise.
54418 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
54419 `.', then first look up the entire `.'-containing string as a login
54422 2000-02-23 Jim Meyering <meyering@lucent.com>
54424 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
54425 in place of my hack.
54427 2000-02-18 Paul Eggert <eggert@twinsun.com>
54429 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
54430 (textint): New typedef.
54431 (parser_control): Member year changed from int to textint.
54433 (YYSTYPE): Removed; replaced by %union with int and textint members.
54434 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
54435 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
54436 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
54437 (tSNUMBER, tUNUMBER): Now of type <textintval>.
54438 (date, number, to_year): Use width of number in digits, not its value,
54439 to determine whether it's a 2-digit year, or a 2-digit time.
54440 (yylex): Store number of digits of numeric tokens.
54441 Reported by John Kendall.
54443 (parser_control): Changed from struct parser_control to typedef (for
54444 consistency). All uses changed.
54446 (tID): Removed; not used.
54447 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
54449 2000-02-14 Paul Eggert <eggert@twinsun.com>
54451 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
54452 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
54454 2000-02-12 Jim Meyering <meyering@lucent.com>
54456 * lib/userspec.c (ISDIGIT): Define it.
54457 (isdigit): Remove definition.
54458 (is_number): Use ISDIGIT, not isdigit.
54459 <libintl.h>: Include.
54460 (_ and N_): Define.
54461 (parse_user_spec): Mark translatable strings.
54463 2000-02-10 Jim Meyering <meyering@lucent.com>
54465 With these changes, nanosleep.[ch] are finally enough like the other
54466 lib/* replacement files to compile on a few more losing systems.
54468 * lib/nanosleep.h: Don't include config.h.
54469 Remove prototype from declaration of nanosleep.
54470 (PARAMS): Remove now-unneeded definition.
54471 * lib/nanosleep.c: #undef nanosleep.
54472 (rpl_nanosleep): Rename from nanosleep.
54474 2000-02-10 Jim Meyering <meyering@lucent.com>
54476 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
54477 gnu_nanosleep to rpl_nanosleep.
54479 2000-02-09 Jim Meyering <meyering@lucent.com>
54481 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
54482 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
54484 2000-02-08 Akim Demaille <akim@epita.fr>
54486 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
54487 `[' and `]' and remove uses of `changequote'.
54488 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
54489 (AC_SYS_LARGEFILE): Likewise.
54490 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
54491 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
54493 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
54494 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
54495 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
54496 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
54498 2000-02-05 Jim Meyering <meyering@lucent.com>
54500 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
54501 Remove explicit use of AC_HEADER_TIME. It is required by
54502 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
54503 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
54504 in autoconf whereby the expansion of the latter ended up preceding
54505 the expansion of its prerequisite, AC_HEADER_TIME.
54506 Reported by Volker Borchert.
54508 2000-02-03 Jim Meyering <meyering@lucent.com>
54510 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
54512 2000-02-03 Jim Meyering <meyering@lucent.com>
54514 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
54515 rather than with `#if HAVE_UTMPNAME'.
54517 2000-02-02 Jim Meyering <meyering@lucent.com>
54519 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
54520 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
54521 Reported by Eli Zaretskii.
54523 2000-02-01 Jim Meyering <meyering@lucent.com>
54525 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
54527 2000-01-31 Jim Meyering <meyering@lucent.com>
54529 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
54530 functions. Add the time.h and sys/time.h headers along with the
54531 AC_REQUIRE'ment of AC_HEADER_TIME.
54533 2000-01-31 Jim Meyering <meyering@lucent.com>
54535 * lib/nanosleep.h (nanosleep): Guard declaration with
54536 `#if ! HAVE_DECL_NANOSLEEP'.
54537 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
54538 the declaration in that vendor's sys/timers.h.
54539 Reported by Christian Krackowizer.
54541 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
54542 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
54543 (ISPRINT): Likewise.
54544 Reported by Tom Tromey.
54546 2000-01-30 Jim Meyering <meyering@lucent.com>
54548 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
54550 * m4/prereq.m4 (utmp_includes): Define.
54551 Check for ut_user and ut_name members in both struct utmpx
54554 2000-01-30 Jim Meyering <meyering@lucent.com>
54556 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
54557 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
54558 header files where only utmpx.ut_user is declared.
54560 * lib/readutmp.h (UT_USER): Define.
54562 2000-01-29 Jim Meyering <meyering@lucent.com>
54564 * m4/lib-check.m4: New file containing library-related checks from
54565 fileutils and sh-utils (textutils had none).
54567 2000-01-28 Jim Meyering <meyering@lucent.com>
54569 * m4/perl.m4: Change format of warning message to look more like that
54570 from the missing script. Suggestion from François Pinard.
54572 2000-01-25 Jim Meyering <meyering@lucent.com>
54574 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
54575 well as time.h in the compile check.
54576 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
54577 Fix typo in cross-compiling case: s/yes/no/.
54579 2000-01-23 Jim Meyering <meyering@lucent.com>
54581 * m4/jm-macros.m4: Move df-related tests here from
54582 fileutils/configure.in
54584 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
54585 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
54587 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
54588 s/space/ac_fsusage_space/.
54589 (jm_FILE_SYSTEM_USAGE): Take two parameters.
54591 * m4/ftruncate.m4: New file (derived from part of
54592 fileutils/configure.in).
54593 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
54594 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
54596 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
54597 AC_SUBST these here, rather than just in sh-util/configure.in, so
54598 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
54600 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
54601 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
54602 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
54603 (AC_SUBST(POW_LIBM)): Likewise.
54604 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
54606 2000-01-23 Jim Meyering <meyering@lucent.com>
54608 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
54611 2000-01-22 Jim Meyering <meyering@lucent.com>
54613 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
54615 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
54617 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
54619 (AC_CHECK_HEADERS): Likewise for sh-utils.
54620 (AC_CHECK_HEADERS): Likewise for textutils.
54621 Merge the three lists of headers.
54623 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
54624 from fileutils' configure.in.
54626 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
54627 code. Moved tests into their own function (_jm_DECL_HEADERS) in
54630 * m4/check-decl.m4: Use #if rather than #ifdef.
54631 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
54632 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
54633 (_jm_DECL_HEADERS): Define new function.
54634 (jm_CHECK_DECLARATIONS): Require it.
54636 2000-01-22 Jim Meyering <meyering@lucent.com>
54638 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
54639 [! HAVE_DECL_STRTOULL]: Declare strtoull.
54640 Required for some AIX systems. Reported by Christian Krackowizer.
54641 [TESTING] (main): New function.
54643 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
54644 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
54647 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
54650 * lib/strverscmp.c (ISDIGIT): Define.
54651 (strverscmp): Use ISDIGIT, not isdigit.
54653 2000-01-19 Jim Meyering <meyering@lucent.com>
54655 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
54656 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
54657 defines `struct timespec' in <sys/time.h>
54659 * m4/c-bs-a.m4: Remove uses of changequote altogether.
54660 Thanks to Akim for explaining.
54662 2000-01-17 Paul Eggert <eggert@twinsun.com>
54664 * lib/nanosleep.c (nanosleep):
54665 Don't use SA_INTERRUPT to decide whether to call sigaction, as
54666 POSIX.1 doesn't require SA_INTERRUPT and some systems
54667 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
54668 it's been part of POSIX.1 since day 1 (in 1988).
54670 2000-01-17 Jim Meyering <meyering@lucent.com>
54672 * lib/interlock: Remove unused file. Reported by François Pinard.
54674 2000-01-16 Paul Eggert <eggert@twinsun.com>
54676 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
54677 alert, backslash, formfeed, and vertical tab unnecessarily in
54678 shell quoting style.
54680 2000-01-16 Jim Meyering <meyering@lucent.com>
54682 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
54683 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
54684 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
54685 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
54687 2000-01-16 Jim Meyering <meyering@lucent.com>
54689 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
54690 because the latter didn't work.
54692 2000-01-15 Jim Meyering <meyering@lucent.com>
54694 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
54695 (AC_REPLACE_FUNCS): Add memcpy and memset.
54696 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
54698 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
54700 2000-01-12 Jim Meyering <meyering@lucent.com>
54702 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
54703 (jm_PREREQ): Use it.
54704 (jm_PREREQ_READUTMP): New macro.
54705 (jm_PREREQ): Use it.
54707 2000-01-11 Paul Eggert <eggert@twinsun.com>
54709 Quote multibyte characters correctly.
54710 * m4/c-bs-a.m4: New file.
54711 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
54712 (jm_PREREQ): Use it.
54714 2000-01-11 Paul Eggert <eggert@twinsun.com>
54716 * m4/uintmax_t.m4: Port to autoconf 2.13.
54718 2000-01-08 Jim Meyering <meyering@ascend.com>
54720 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
54721 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
54723 2000-01-04 Jim Meyering <meyering@ascend.com>
54725 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
54726 jm_STRUCT_DIRENT_D_TYPE.
54727 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
54728 jm_STRUCT_DIRENT_D_INO.
54729 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
54731 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
54733 * m4/utime.m4: Likewise.
54735 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
54736 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
54738 2000-01-03 Paul Eggert <eggert@twinsun.com>
54740 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
54741 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
54743 2000-01-02 Jim Meyering <meyering@ascend.com>
54745 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
54746 remember if this is necessary.
54748 1999-12-26 Jim Meyering <meyering@ascend.com>
54750 * m4/jm-macros.m4: Use it here.
54751 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
54753 1999-12-23 Jim Meyering <meyering@ascend.com>
54755 * m4/jm-macros.m4: Check for clock_gettime (moved from
54756 fileutils/configure.in)
54757 Check for gettimeofday.
54759 1999-12-20 Jim Meyering <meyering@ascend.com>
54761 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
54762 autoconf-2.14a-1999-12-20.
54764 1999-12-19 Jim Meyering <meyering@ascend.com>
54766 * m4/lstat-slash.m4: New file.
54767 * m4/jm-macros.m4: Use the new macro:
54768 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54770 1999-12-07 Jim Meyering <meyering@ascend.com>
54772 * m4/perl.m4: Require that File::Compare be available, too.
54773 Too many systems seem to lack it.
54775 * m4/strftime.m4: Add checks for most of the cpp macros tested in
54776 GNU's strftime.c. Prompted by a patch from Paul Eggert.
54778 1999-11-18 Paul Eggert <eggert@twinsun.com>
54780 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
54781 problem with the QNX 4.25 shell, which doesn't propagate exit
54782 status of failed commands inside shell assignments.
54784 1999-11-17 Jim Meyering <meyering@ascend.com>
54786 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
54788 1999-11-07 Jim Meyering <meyering@ascend.com>
54790 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
54792 1999-11-06 Jim Meyering <meyering@ascend.com>
54794 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
54795 * m4/jm-macros.m4 (jm_MACROS): Use it here.
54797 1999-11-05 Jim Meyering <meyering@ascend.com>
54799 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
54800 configure.in of textutils, fileutils, and sh-utils into this one
54801 (shared between those packages) file.
54802 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
54803 AC_STRUCT_ST_BLKSIZE.
54805 1999-11-03 Jim Meyering <meyering@ascend.com>
54807 * m4/ssize_t.m4: Remove file. No longer needed since the new version
54808 of AC_CHECK_TYPE checks includes unistd.h.
54809 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
54810 Suggestion from Akim Demaille.
54812 1999-10-30 Jim Meyering <meyering@ascend.com>
54814 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
54816 * m4/ls-mntd-fs.m4: Likewise.
54817 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
54818 * m4/jm-winsz1.m4: Likewise.
54820 * m4/const.m4: Remove file, since the fix made it into the experimental
54821 version of autoconf.
54822 * m4/mktime.m4: Likewise.
54824 * m4/check-type.m4: Remove file, now that the latest version of
54825 AC_CHECK_TYPE takes a third arg to specify additional #includes.
54827 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
54828 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
54831 1999-10-04 Jim Meyering <meyering@ascend.com>
54833 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
54835 1999-09-22 Paul Eggert <eggert@twinsun.com>
54837 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
54838 2.95.1 bug with HP-UX 10.20.
54840 1999-09-17 Jim Meyering <meyering@ascend.com>
54842 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
54843 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
54844 due to missing strdup (against sh-utils-2.0).
54846 1999-08-29 Jim Meyering <meyering@ascend.com>
54848 * m4/jm-macros.m4: Require jm_BISON.
54849 * m4/bison.m4: New file.
54851 1999-08-17 Paul Eggert <eggert@twinsun.com>
54853 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
54854 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
54856 1999-08-05 Jim Meyering <meyering@ascend.com>
54858 * m4/getline.m4: Rename test file from conftestdata to conftest.data
54859 to avoid conflicts with `conftest' on 8+3 filesystems.
54860 Suggestion from Eli Zaretskii.
54862 1999-08-04 Jim Meyering <meyering@ascend.com>
54864 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
54865 fileutils and sh-utils (textutils's getline test was inadequate).
54866 (AM_FUNC_GETLINE): Run this test.
54867 (AC_CHECK_FUNCS): Check for getdelim.
54868 Reported by Bob Proulx.
54870 1999-08-02 Jim Meyering <meyering@ascend.com>
54872 * m4/jm-macros.m4: Add a comment.
54874 1999-08-01 Paul Eggert <eggert@twinsun.com>
54876 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
54877 <inttypes.h> defines strtoumax as a macro (and not as a
54880 1999-08-01 Paul Eggert <eggert@twinsun.com>
54882 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
54883 that we can shift, multiply and divide unsigned long long
54884 values; Ultrix cc can't do it.
54886 1999-08-01 Paul Eggert <eggert@twinsun.com>
54888 * m4/mktime.m4: New file, which is a preview of what should appear
54889 in the next public autoconf release.
54891 1999-08-01 Paul Eggert <eggert@twinsun.com>
54893 * m4/lfs.m4: Remove this file.
54894 * m4/largefile.m4: New file. It contains the old contents of
54895 lfs.m4, except that all names with prefix AC_LFS have been
54896 changed to use the prefix AC_SYS_LARGEFILE instead, to be
54897 compatible with future autoconf versions. Also, some minor m4
54898 quoting problems have been fixed.
54900 1999-08-01 Paul Eggert <eggert@twinsun.com>
54902 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
54903 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
54904 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
54905 and simplify the shell code.
54907 1999-08-01 Jim Meyering <meyering@ascend.com>
54909 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
54912 1999-07-20 Jim Meyering <meyering@ascend.com>
54914 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
54916 1999-07-15 Jim Meyering <meyering@ascend.com>
54918 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
54920 1999-05-22 Jim Meyering <meyering@ascend.com>
54922 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
54924 1999-05-20 Jim Meyering <meyering@ascend.com>
54926 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
54927 Add a colon after each `then' in case $4 is empty.
54929 1999-05-16 Jim Meyering <meyering@ascend.com>
54931 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
54933 1999-05-10 Jim Meyering <meyering@ascend.com>
54935 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
54937 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
54940 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
54942 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
54944 1999-05-04 Paul Eggert <eggert@twinsun.com>
54946 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
54947 not CPPFLAGS, so that linking works correctly in IRIX.
54949 1999-04-30 Paul Eggert <eggert@twinsun.com>
54951 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
54953 1999-04-20 Paul Eggert <eggert@twinsun.com>
54955 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
54956 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
54957 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
54958 jm_AC_TYPE_UNSIGNED_LONG_LONG.
54959 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
54961 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
54963 1999-04-20 Jim Meyering <meyering@ascend.com>
54965 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
54966 AC_REPLACE xstroull if necessary. From Paul Eggert.
54967 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
54969 1999-04-18 Jim Meyering <meyering@ascend.com>
54971 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
54972 * m4/jm-macros.m4: Use it.
54974 1999-04-06 Jim Meyering <meyering@ascend.com>
54976 * m4/strftime.m4: Remove test for %f.
54978 1999-03-29 Jim Meyering <meyering@ascend.com>
54980 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
54981 superset of the AC_TYPE_* checks in the textutils, fileutils,
54982 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
54985 1999-03-28 Jim Meyering <meyering@ascend.com>
54987 * m4/jm-macros.m4: Define GNU_PACKAGE here.
54988 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
54989 replaced e.g., in the *.sh files of the sh-utils.
54991 1999-03-20 Jim Meyering <meyering@ascend.com>
54993 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
54994 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
54995 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
54997 1999-03-19 Jim Meyering <meyering@ascend.com>
54999 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
55001 1999-03-12 Jim Meyering <meyering@ascend.com>
55003 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
55005 1999-03-07 Jim Meyering <meyering@ascend.com>
55007 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
55010 1999-02-17 Jim Meyering <meyering@ascend.com>
55012 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
55013 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
55015 1999-02-07 Jim Meyering <meyering@ascend.com>
55017 * m4/group-member.m4: New file -- extracted from sh-utils'
55020 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
55021 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
55023 1999-02-06 Jim Meyering <meyering@ascend.com>
55025 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
55026 * m4/fnmatch.m4: Likewise.
55027 * m4/getgroups.m4: Likewise.
55028 * m4/lstat.m4: Likewise.
55029 * m4/malloc.m4: Likewise.
55030 * m4/putenv.m4: Likewise.
55031 * m4/realloc.m4: Likewise.
55032 * m4/regex.m4: Likewise.
55033 * m4/stat.m4: Likewise.
55034 * m4/strftime.m4: Likewise.
55035 Suggestion from Alain Magloire.
55037 * m4/chown.m4: Use `.$ac_objext', not `.o'.
55038 * m4/fnmatch.m4: Likewise.
55039 * m4/getgroups.m4: Likewise.
55040 * m4/getline.m4: Likewise.
55041 * m4/lstat.m4: Likewise.
55042 * m4/malloc.m4: Likewise.
55043 * m4/memcmp.m4: Likewise.
55044 * m4/putenv.m4: Likewise.
55045 * m4/realloc.m4: Likewise.
55046 * m4/regex.m4: Likewise.
55047 * m4/stat.m4: Likewise.
55048 * m4/strftime.m4: Likewise.
55049 Suggestion from Alain Magloire.
55051 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
55054 * m4/regex.m4: Add a run-time Test for proper operation of
55055 re_compile_pattern.
55057 1999-01-31 Jim Meyering <meyering@ascend.com>
55059 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
55061 1999-01-30 Jim Meyering <meyering@ascend.com>
55063 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
55065 * m4/jm-mktime.m4: Make this a wrapper around the official
55066 AM_FUNC_MKTIME rather than my private copy, now that the official one
55068 * m4/mktime.m4: Remove file.
55070 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
55071 * m4/uptime.m4: Likewise.
55072 * m4/uintmax_t.m4: Likewise.
55074 1999-01-28 Jim Meyering <meyering@ascend.com>
55076 * m4/jm-macros.m4: Use jm_AFS.
55077 * m4/afs.m4: New file (from fileutils' configure.in).
55079 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
55080 * m4/chown.m4: Likewise.
55081 * m4/d-ino.m4: Likewise.
55082 * m4/d-type.m4: Likewise.
55083 * m4/fnmatch.m4: Likewise.
55084 * m4/getgroups.m4: Likewise.
55085 * m4/gettext.m4: Likewise.
55086 * m4/jm-mktime.m4: Likewise.
55087 * m4/jm-winsz2.m4: Likewise.
55088 * m4/lcmessage.m4: Likewise.
55089 * m4/ls-mntd-fs.m4: Likewise.
55090 * m4/malloc.m4: Likewise.
55091 * m4/memcmp.m4: Likewise.
55092 * m4/putenv.m4: Likewise.
55093 * m4/realloc.m4: Likewise.
55094 * m4/st_mtim.m4: Likewise.
55095 * m4/strftime.m4: Likewise.
55097 1999-01-16 Jim Meyering <meyering@ascend.com>
55099 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
55100 (ARGMATCH_DIE_DECL): Define.
55102 1999-01-12 Jim Meyering <meyering@ascend.com>
55104 * m4/Makefile.am.in: Rewrite to avoid using fmt.
55105 Reported by Lars Hecking.
55107 1999-01-10 Jim Meyering <meyering@ascend.com>
55109 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
55111 * m4/inttypes_h.m4: Likewise.
55112 * m4/lstat.m4: Likewise.
55113 * m4/malloc.m4: Likewise.
55114 * m4/readdir.m4: Likewise.
55115 * m4/realloc.m4: Likewise.
55116 * m4/st_dm_mode.m4: Likewise.
55117 * m4/stat.m4: Likewise.
55118 * m4/utimbuf.m4: Likewise.
55119 * m4/utimes.m4: Likewise.
55121 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
55122 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
55123 comments in config.h.in are meaningful.
55125 * m4/jm-macros.m4: Require autoconf-2.13 here.
55127 * m4/regex.m4: By default, don't use the included regex.c on systems
55128 with glibc 2. Suggestion from Uli Drepper.
55130 1999-01-02 Jim Meyering <meyering@ascend.com>
55132 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
55134 1998-12-18 Jim Meyering <meyering@ascend.com>
55136 * m4/Makefile.am.in (Makefile.am): Simplify rule.
55137 Based on a suggestion from Lars Hecking.
55139 1998-11-16 Paul Eggert <eggert@twinsun.com>
55141 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
55143 1998-11-16 Jim Meyering <meyering@ascend.com>
55145 * m4/lfs.m4: Double-quote the `uname...` expression.
55147 1998-11-14 Jim Meyering <meyering@ascend.com>
55149 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
55150 * m4/stat.m4: Likewise.
55152 1998-11-03 Jim Meyering <meyering@ascend.com>
55154 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
55155 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
55157 1998-10-18 Jim Meyering <meyering@ascend.com>
55159 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
55161 1998-10-17 Jim Meyering <meyering@ascend.com>
55163 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
55164 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
55165 calls for those previously hard-coded headers. Instead, take a new
55167 (jm_CHECK_DECLARATIONS): Reflect interface change.
55168 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
55169 (jm_CHECK_DECL_LOCALTIME_R): New macro.
55171 * m4/mktime.m4: Test for spring-forward gap before long-running test.
55173 1998-10-14 Jim Meyering <meyering@ascend.com>
55175 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
55176 instead of "TZ=America/Vancouver". From Paul Eggert.
55178 1998-10-11 Jim Meyering <meyering@ascend.com>
55180 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
55181 This adds a test for a recently added compatibility fix for mktime.c.
55182 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
55184 1998-09-27 Jim Meyering <meyering@ascend.com>
55186 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
55188 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
55189 ../configure.in, including a change from Gordon Matzigkeit to allow
55190 cross-compiling for the Hurd.
55192 * m4/glibc.m4: New file/macro to test for the GNU C Library
55193 versions 1 and 2. From Gordon Matzigkeit.
55196 1998-09-21 Jim Meyering <meyering@ascend.com>
55198 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
55200 1998-08-18 Paul Eggert <eggert@twinsun.com>
55202 Port nanosecond-resolution times to UnixWare 2.1.2 and
55203 pedantic Solaris 2.6.
55205 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
55207 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
55208 Generate name of ns member, instead of just 1 or undef.
55209 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
55211 1998-08-15 Jim Meyering <meyering@ascend.com>
55213 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
55214 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
55215 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
55216 instead of jm_TYPE_SSIZE_T.
55218 1998-08-12 Jim Meyering <meyering@ascend.com>
55220 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
55222 1998-08-02 Jim Meyering <meyering@ascend.com>
55224 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
55225 in acconfig.h manually.
55227 1998-07-31 Paul Eggert <eggert@twinsun.com>
55229 * m4/st_mtim.m4: New file.
55231 1998-07-28 Jim Meyering <meyering@ascend.com>
55233 * m4/utimes.m4: Undef stat.
55235 1998-07-25 Jim Meyering <meyering@ascend.com>
55237 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
55238 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
55240 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
55242 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
55243 uid and gid actually remain unchanged.
55245 1998-07-07 Jim Meyering <meyering@ascend.com>
55247 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
55249 1998-07-04 Jim Meyering <meyering@ascend.com>
55251 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
55252 to prove that this macro can be used in packages without regex.c.
55254 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
55256 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
55259 1998-07-03 Jim Meyering <meyering@ascend.com>
55261 * m4/gettext.m4: Add -lintl if it's found to be necessary.
55263 * m4/gettext.m4: New file -- from gettext-0.10.35.
55264 * m4/lcmessage.m4: Likewise.
55265 * m4/progtest.m4: Likewise.
55267 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
55268 * m4/jm-macros.m4: Require the new macro.
55270 1998-06-29 Jim Meyering <meyering@ascend.com>
55272 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
55273 for the definition of NGROUPS (used in a system header included
55276 1998-06-28 Jim Meyering <meyering@ascend.com>
55278 * m4/ls-mntd-fs.m4: New file.
55279 * m4/fstypename.m4: New file.
55281 * m4/jm-macros.m4: Require the new macro.
55282 * m4/jm-glibc-io.m4: New file.
55284 1998-05-19 Jim Meyering <meyering@ascend.com>
55286 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
55287 * m4/lchown.m4: New file.
55289 * m4/Makefile.am.in: New file.
55290 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
55292 1998-05-14 Jim Meyering <meyering@ascend.com>
55294 * m4/Makefile.am (EXTRA_DIST): Add them.
55295 * m4/jm-macros.m4: New file.
55296 * m4/utimbuf.m4: New file.
55298 1998-05-12 Jim Meyering <meyering@ascend.com>
55300 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
55302 1998-05-11 Jim Meyering <meyering@ascend.com>
55304 * m4/isc-posix.m4: New file.
55306 1998-05-10 Jim Meyering <meyering@ascend.com>
55308 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
55310 1998-05-09 Jim Meyering <meyering@ascend.com>
55312 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
55313 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
55316 * m4/ssize_t.m4: New file.
55317 * m4/mktime.m4: Remove file -- the new automake has this now.
55319 1998-04-26 Jim Meyering <meyering@ascend.com>
55321 * m4/assert.m4: New file.
55322 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
55324 1998-04-05 Jim Meyering <meyering@ascend.com>
55326 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
55327 (jm_PREREQ): Use it here.
55329 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
55331 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
55334 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
55336 * m4/prereq.m4: New file.
55337 * m4/error.m4: New file.
55338 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
55340 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
55342 * m4/getline.m4: Don't set am_cv_func_working_getline before the
55343 cache-check for the same variable -- that defeated the purpose of
55344 the test; the test program was never run. This was a problem only
55345 on systems with losing getline functions -- HP-UX 10.20 is one.
55346 Reported by Bjorn Helgaas.
55348 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
55350 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
55352 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
55354 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
55356 * m4/const.m4: New file. Use an initializer in this declaration
55357 typedef int charset[2]; const charset x;
55358 Reported by Bob Glickstein.
55360 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
55362 * m4/chown.m4: Fix reversed types on -1 args to chown.
55365 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
55367 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
55368 Add lseek and memchr.
55370 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
55371 T.E.Dickey <dickey@clark.net> said that some older preprocessors
55372 have a 20-character limit on names.
55374 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
55376 * m4/inttypes_h.m4: New file.
55377 * m4/uintmax_t.m4: New file.
55378 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
55387 Copyright (C) 1997-2009 Free Software Foundation, Inc.
55389 Copying and distribution of this file, with or without
55390 modification, are permitted provided the copyright notice
55391 and this notice are preserved.