1 2010-03-07 Bruno Haible <bruno@clisp.org>
3 glob: Avoid #define replacements in C++ mode.
4 * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
5 (_gl_glob_errfunc_fn): New type.
6 (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
8 * modules/glob (Depends-on): Add c++defs, warn-on-use.
9 (Makefile.am): Update glob.h rule.
11 fcntl-h: Avoid #define replacements in C++ mode.
12 * lib/fcntl.in.h: Include c++defs.h.
13 (fcntl, open, openat): In C++, define a namespaced alias symbol.
14 * modules/fcntl-h (Depends-on): Add c++defs.
15 (Makefile.am): Update fcntl.h rule.
17 dirent: Avoid #define replacements in C++ mode.
18 * lib/dirent.in.h: Include c++defs.h.
19 (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
20 namespaced alias symbol.
21 (dirfd): Update declaration.
22 * modules/dirent (Depends-on): Add c++defs.
23 (Makefile.am): Update dirent.h rule.
25 ctype: Make it usable in C++ code.
26 * lib/ctype.in.h: Include c++defs.h.
27 (isblank): Declare as extern "C".
28 * modules/ctype (Depends-on): Add c++defs.
29 (Makefile.am): Update ctype.h rule.
32 * modules/c++defs: New file.
33 * build-aux/c++defs.h: New file.
34 Reported by John W. Eaton <jwe@gnu.org>.
36 2010-03-07 Bruno Haible <bruno@clisp.org>
38 logb: Provide missing declaration for Cygwin.
39 * lib/math.in.h (logb): New declaration.
40 * m4/logb.m4: New file.
41 * modules/logb (Files): Add m4/logb.m4.
42 (Depends-on): Add math.
43 (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
44 * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
45 (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
46 * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
47 * doc/posix-functions/logb.texi: Mention the Cygwin bug.
49 2010-03-07 Bruno Haible <bruno@clisp.org>
51 Fix test-cond link error.
52 * tests/test-cond.c: Include <stdio.h>.
54 2010-03-07 Bruno Haible <bruno@clisp.org>
56 Fix test-dirent-safer link error.
57 * modules/dirent-safer-tests (Makefile.am): Define
58 test_dirent_safer_LDADD.
60 2010-03-07 Bruno Haible <bruno@clisp.org>
62 * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
63 among default module list.
65 2010-03-07 Bruno Haible <bruno@clisp.org>
67 Fix link error on platforms with GNU libiconv.
68 * modules/unistr/u8-strcoll-tests (Makefile): Define
69 test_u8_strcoll_LDADD.
70 * modules/unistr/u16-strcoll-tests (Makefile): Define
71 test_u16_strcoll_LDADD.
72 * modules/unistr/u32-strcoll-tests (Makefile): Define
73 test_u32_strcoll_LDADD.
75 2010-03-07 Bruno Haible <bruno@clisp.org>
77 Use POSIX declarations for socket functions.
78 * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
79 rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
80 rpl_sendto): Change declaration to match POSIX.
81 * lib/connect.c (rpl_connect): Likewise.
82 * lib/accept.c (rpl_accept): Likewise.
83 * lib/bind.c (rpl_bind): Likewise.
84 * lib/getpeername.c (rpl_getpeername): Likewise.
85 * lib/getsockname.c (rpl_getsockname): Likewise.
86 * lib/recv.c (rpl_recv): Likewise.
87 * lib/send.c (rpl_send): Likewise.
88 * lib/recvfrom.c (rpl_recvfrom): Likewise.
89 * lib/sendto.c (rpl_sendto): Likewise.
91 2010-03-06 Bruno Haible <bruno@clisp.org>
93 Clarify access, euidaccess, faccessat.
94 * doc/posix-functions/faccessat.texi: Mention security problem under
95 "Other problems", not "Portability problems".
96 * doc/posix-functions/access.texi: Likewise. Mention a related security
98 * doc/glibc-functions/euidaccess.texi: Mention security problems.
99 * lib/euidaccess.c: Add comments about platforms.
100 * lib/unistd.in.h (access, euidaccess): Add warnings.
102 2010-03-07 Bruno Haible <bruno@clisp.org>
104 Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
105 * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
106 (POSIX_SPAWN_SETSCHEDULER): Likewise.
107 (POSIX_SPAWN_USEVFORK): Define in a way that works when
108 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
109 (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
110 declare when POSIX_SPAWN_SETSCHEDULER is zero.
111 (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
112 declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
113 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
114 POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
115 * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
116 replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
117 * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
118 * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
119 replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
120 * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
121 * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
122 nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
123 * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
125 * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
126 nothing if POSIX_SPAWN_SETSCHEDULER is zero.
127 * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
129 * tests/test-spawn.c (main): Make it work when
130 POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
132 2010-03-07 Bruno Haible <bruno@clisp.org>
134 Fix incorrect Makefile.am generation in German locale.
135 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
136 Execute sed command with character range in C locale.
138 2010-03-06 Bruno Haible <bruno@clisp.org>
140 Tests for module 'iconv-h'.
141 * modules/iconv-h-tests: New file.
142 * tests/test-iconv-h.c: New file.
144 New module 'iconv-h'.
145 * modules/iconv-h: New file.
146 * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
147 (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
148 (configure.ac): Remove gl_ICONV_H.
149 (Makefile.am): Remove rule for iconv.h.
151 2010-03-06 Bruno Haible <bruno@clisp.org>
153 More consistent naming of *.m4 files.
154 * m4/wctype_h.m4: Renamed from m4/wctype.m4.
155 * modules/wctype (Files): Update.
157 More consistent naming of *.m4 files.
158 * m4/wchar_h.m4: Renamed from m4/wchar.m4.
159 * modules/wchar (Files): Update.
161 2010-03-06 Jim Meyering <meyering@redhat.com>
163 euidaccess: relax license to LGPLv2+
164 * modules/euidaccess (License): Relax to LGPLv2+.
166 2010-03-06 Bruno Haible <bruno@clisp.org>
168 Prefer lib_SOURCES over unconditional AC_LIBOBJ.
169 * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
170 (Makefile.am): Augment lib_SOURCES instead.
172 2010-03-04 Jim Meyering <meyering@redhat.com>
174 utime: remove obsolete module
175 This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
176 unnecessary for years, and has been marked as obsolete for 10 months.
177 * modules/utime: Remove file.
178 * lib/utime.c: Remove file.
179 * m4/utime.m4: Remove file.
180 * m4/utimes-null.m4: Remove file.
181 * doc/posix-functions/utime.texi (utime): Remove reference to
182 the module. Move the sole "fixed by gnulib" item into the
183 "problems not fixed by Gnulib" list.
184 * MODULES.html.sh (func_all_modules): Remove reference to "utime".
186 2010-03-05 Simon Josefsson <simon@josefsson.org>
188 * modules/exit (License): Relax license to LGPLv2+.
189 (Status): Mark as obsolete.
190 * NEWS: Mention deprecated 'exit' module.
191 * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
192 of now obsolete 'exit'.
194 2010-03-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
196 fts-lgpl: remove unused module
197 * modules/fts-lgpl: Remove.
198 * MODULES.html.sh (func_all_modules): Adjust.
199 * check-module (find_included_lib_files): Adjust.
200 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
202 2010-03-02 Ben Walton <bwalton@artsci.utoronto.ca> (tiny change)
204 copy-acl: enhance Solaris ACL error handling
205 * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
206 * lib/set-mode-acl.c (qset_acl): Likewise.
208 2010-03-02 Bruno Haible <bruno@clisp.org>
210 spawn: Don't override the system defined values on FreeBSD 8.
211 * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
212 POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
213 POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
214 if HAVE_POSIX_SPAWN is 1.
215 Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
217 2010-03-01 Bruno Haible <bruno@clisp.org>
219 * doc/gnulib-tool.texi (Initial import): Clarify the requirements
222 2010-02-25 Bruno Haible <bruno@clisp.org>
224 Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
225 * gnulib-tool: Define 'echo' as a function only before the ksh alias
226 setting, not afterwards.
227 Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
229 2010-02-24 Eric Blake <eblake@redhat.com>
231 bootstrap, git-version-gen: use timestamp
232 * build-aux/git-version-gen (scriptversion): Force UTC.
233 * build-aux/bootstrap (scriptversion): New variable.
235 bootstrap: allow older git
236 * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
237 older than 1.6.4. Requested by the libvirt project.
239 2010-02-23 Eric Blake <eblake@redhat.com>
241 warn-on-use: work with old autoconf
242 * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
243 AS_VAR semantics of autoconf 2.60.
244 Reported by Bruno Haible.
246 bootstrap: improve some comments
247 * build-aux/bootstrap: Drop unneeded emacs hint. Add some
248 clarification comments.
250 gettimeofday: provide correct function
251 * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
252 when replacement is declared, otherwise provide gettimeofday.
253 Reported by Michael Goffioul.
255 2010-02-23 Jim Meyering <meyering@redhat.com>
257 lib-ignore: relax license to "unlimited", not LGPLv2+
258 * modules/lib-ignore (License): Relax to "unlimited".
260 2010-02-23 Jim Meyering <meyering@redhat.com>
262 lib-ignore: relax license to LGPLv2+
263 * modules/lib-ignore (License): Relax to LGPLv2+.
265 2010-02-22 Eric Blake <eblake@redhat.com>
267 lseek: avoid bash 3.2 broken pipe bug
268 * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
269 warning from bash 3.2.
270 Reported by Ben Pfaff, with analysis from Bruno Haible.
272 bootstrap: support non-FSF copyright holder
273 * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
274 bootstrap.conf override of COPYRIGHT_HOLDER.
275 (MSGID_BUGS_ADDRESS): Allow URL rather than email.
277 bootstrap: interoperate with gettext 0.14.1
278 * build-aux/bootstrap (slurp): Fix typo when using older gettext.
280 bootstrap: allow for alternate submodule location
281 * build-aux/bootstrap (gnulib_path): New variable; use instead of
282 hardcoding submodule location.
283 (gnulib_mk): Allow direct use of Makefile.am.
285 bootstrap: use GNULIB_SRCDIR to reduce disk usage
286 * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
287 rather than reconfiguring where the submodule points.
289 gettimeofday: restore support for platforms that lack function
290 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
291 replacement if function is missing.
292 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
293 * modules/sys_time (Makefile.am): Substitute it.
294 * lib/sys_time.in.h (gettimeofday): Check it.
295 Reported by Michael Goffioul.
297 2010-02-21 Bruno Haible <bruno@clisp.org>
299 * lib/stdio.in.h (obstack_printf): Fix typo.
301 2010-02-21 Jose E. Marchesi <jemarch@gnu.org>
303 vc-list-files: use bzr ls's -R option
304 * build-aux/vc-list-files: Invoke bazaar to generate a recursive
305 list of versioned files based on 'dir' (usage of -R in 'bzr ls').
307 2010-02-21 Jim Meyering <meyering@redhat.com>
309 init.sh: fix EXEEXT shims to work also for names like test-prog
310 * tests/init.sh: Re-exec a better shell, when needed.
311 If the current shell lacks support for posix $(...), an init.sh-using
312 test will now try to find a shell that supports that. If EXEEXT is
313 nonempty, we also require support for hyphen-in-alias-name and shell
314 substitutions like ${var#glob}. Failure to find such a shell results
317 2010-02-21 Bruno Haible <bruno@clisp.org>
319 Really work around around "broken pipe" error message from bash 3.2.
320 * gnulib-tool (func_reset_sigpipe): Remove function.
321 (echo): In bash 3.2, define to a function that uses printf.
322 Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
324 2010-02-20 Bruno Haible <bruno@clisp.org>
326 Restore support for automake 1.9.6 with autoconf 2.61.
327 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
328 Reported by James Youngman <jay@gnu.org>.
330 2010-02-20 Bruno Haible <bruno@clisp.org>
332 Improve *printf warning condition.
333 * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
334 also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
335 and the function is overridden due to SIGPIPE emulation.
337 2010-02-20 Bruno Haible <bruno@clisp.org>
339 * lib/stdio.in.h: Tweak comments.
341 2010-02-19 Bruno Haible <bruno@clisp.org>
343 Make it easier to find modules. New gnulib-tool option '--find'.
344 * gnulib-tool: New option --find.
345 (func_usage): Document it.
346 (func_sanitize_modulelist): New function, extracted from
348 (func_all_modules): Invoke it.
349 * doc/gnulib-tool.texi (Which modules?): New node.
351 2010-02-18 Markus Duft <mduft@gentoo.org> (tiny change)
353 * lib/sys_select.in.h: Provide select replacement even if
354 sys/select.h exists on a system, for Interix.
356 2010-02-18 Jim Meyering <meyering@redhat.com>
358 init.sh: don't use $(...) just yet
359 * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
360 to accommodate e.g., Solaris' /bin/sh.
362 2010-02-17 Bruno Haible <bruno@clisp.org>
364 * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
365 Reported by Ludovic Courtès <ludo@gnu.org>.
367 2010-02-16 Simon Josefsson <simon@josefsson.org>
369 * modules/userspec-tests (test_userspec_LDADD): Add variable, for
372 2010-02-17 Simon Josefsson <simon@josefsson.org>
374 * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
375 if not provided by the system's netdb.h. Reported by
376 ludo@gnu.org (Ludovic Courtès).
378 2010-02-15 Jim Meyering <meyering@redhat.com>
380 init.sh: improve portability and efficiency
381 * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
382 "dummy" in a for loop.
383 Use '!', not '^' to select the complement of a character set used
384 in a "case" statement.
385 Use shell variable manipulation, a la ${...%.exe}, rather than sed.
386 Suggestions from Eric Blake.
388 init.sh: automatically accommodate programs with the .exe suffix
389 Automatically arrange for an invocation of "prog" to execute the
390 program named "prog$EXEEXT" (usually prog.exe). Thus, all invocations
391 may use the simpler "prog", yet still work when built on a system
392 that requires specifying the added suffix.
393 Do this by constructing a function named "prog" that invokes
394 "prog.exe" for each .exe file in selected directories.
395 * tests/init.sh (find_exe_basenames_): New function.
396 (create_exe_shim_functions_): New function.
397 (path_prepend_): Use it.
399 maint.mk: mark syntax-check sc_*.m rules as .PHONY
400 * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
401 "make -t syntax-check" doesn't create a ton of sc_*.m files.
403 2010-02-14 Jim Meyering <meyering@redhat.com>
405 maint.mk: prohibit inclusion of "hash-pjw.h" without_use
406 * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
407 (sc_prohibit_hash_pjw_without_use): New rule.
409 maint.mk: allow the default upload destination dir to be overridden
410 * top/maint.mk (upload_dest_dir_): Define with a default that
411 preserves the status quo.
412 (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
413 Reported by Peter Simons.
415 maint.mk: prohibit inclusion of "hash.h" without_use
416 * top/maint.mk (sc_prohibit_hash_without_use): New rule.
418 2010-02-10 Jim Meyering <meyering@redhat.com>
420 maint.mk: prohibit inclusion of "ignore-value.h" without_use
421 * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
423 2010-02-09 Eric Blake <ebb9@byu.net>
424 and Bruno Haible <bruno@clisp.org>
426 obstack-printf-posix: ensure declaration
427 * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
428 extracted from gl_FUNC_OBSTACK_PRINTF.
429 (gl_FUNC_OBSTACK_PRINTF): Invoke it.
430 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
432 * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
433 if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
436 2010-02-08 Bruno Haible <bruno@clisp.org>
438 gnulib-tool: Fix typo in 2010-02-07 commit.
439 * gnulib-tool (func_get_dependencies): Fix typo in last commit.
440 Reported by Eric Blake.
442 2010-02-07 Bruno Haible <bruno@clisp.org>
444 gnulib-tool: Fix up caching patches.
445 * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
446 option --no-cache. Use associative arrays when supported by the shell.
447 (sed_comments): New variable.
448 (modcache): Renamed from do_cache.
449 (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
450 abbreviate unnecessarily.
451 (have_associative): New variable.
452 (func_cache_var): Define correctly for bash 1.x. Define in an optimized
453 way also for ksh and zsh.
454 (func_init_sed_convert_to_cache_statements): New function, extracted
455 from func_cache_lookup_module. Add support for associative arrays.
456 Don't set the c_MODULE_cached variable here. Ignore all lines before
457 the first field header. Remove only the final newline, not all trailing
458 newlines. Support empty fields correctly. Limit the use of 'eval' to
460 (func_get_description, func_get_status, func_get_notice,
461 func_get_applicability, func_get_filelist, func_get_dependencies,
462 func_get_autoconf_early_snippet, func_get_autoconf_snippet,
463 func_get_automake_snippet, func_get_include_directive,
464 func_get_link_directive, func_get_license, func_get_maintainer):
465 Update documentation. List the unoptimized code first. Add support for
466 associative arrays. Limit the use of 'eval' to assignments.
467 (func_get_applicability): Undo stylistic pessimisations.
468 (func_get_automake_snippet, func_get_include_directive): Reduce code
470 (func_modules_transitive_closure, func_modules_add_dummy,
471 func_modules_notice, func_modules_to_filelist, func_add_file,
472 func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
473 func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
474 func_create_testdir, func_create_megatestdir): Update documentation.
476 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
478 * gnulib-tool (func_cache_lookup_module): Store the module name
479 belonging to the cache variable; error out if two different
480 module names map to the same cache variable name.
482 2010-01-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
484 gnulib-tool: Make caching optional.
485 * gnulib-tool: Accept option --no-cache, turning off $do_cache.
486 Update matching short versions of --no-changelog.
487 (func_usage): Update.
488 (sed_extract_cache_prog): Renamed from ...
489 (sed_extract_prog): ... this; revert to old extraction script.
490 (func_get_description, func_get_status)
491 (func_get_notice, func_get_applicability, func_get_filelist)
492 (func_get_dependencies, func_get_autoconf_early_snippet)
493 (func_get_autoconf_snippet, func_get_automake_snippet)
494 (func_get_include_directive, func_get_link_directive)
495 (func_get_license, func_get_maintainer): If $do_cache is false,
496 use old, non-caching extraction scripts.
497 Suggestion by Bruno Haible.
499 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
501 gnulib-tool: cache module metainformation.
502 * gnulib-tool (sed_extract_prog): Match newline before each
503 header, and rewrite header to a shell variable suffix.
504 (func_cache_var, func_cache_lookup_module): New functions,
505 to turn a module name into a cache variable prefix, and to
506 look up and cache module metainformation.
507 (func_get_description, func_get_status)
508 (func_get_notice, func_get_applicability, func_get_filelist)
509 (func_get_dependencies, func_get_autoconf_early_snippet)
510 (func_get_autoconf_snippet, func_get_automake_snippet)
511 (func_get_include_directive, func_get_link_directive)
512 (func_get_license, func_get_maintainer): Use
513 func_cache_lookup_module.
515 2010-02-07 Bruno Haible <bruno@clisp.org>
517 fnctl: Fix missing dependency.
518 * modules/fcntl (Depends-on): Add getdtablesize.
519 Reported by John W. Eaton <jwe@gnu.org>.
521 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
523 Argp: fix recognition of short alias options.
525 * lib/argp-parse.c (convert_options): Fix improper use of
526 `|' between character values.
527 * tests/test-argp.c (group1_option): New alias option
529 (group1_parser): Special handling for 'r'.
530 (test15): New test case.
531 (test_fun): Add test15.
532 * tests/test-argp-2.sh: Update expected --help and --usage
535 2010-02-05 Sergey Poznyakoff <gray@gnu.org.ua>
537 * tests/test-argp.c: Fix indentation.
539 2010-02-04 Eric Blake <ebb9@byu.net>
541 gettimeofday: expose type of second argument
542 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
543 of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
544 * tests/test-gettimeofday.c: Use it to silence warning.
545 * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
548 2010-02-03 Jim Meyering <meyering@redhat.com>
550 regcomp.c: avoid the sole warning from gcc's -Wtype-limits
551 * lib/regcomp.c (TYPE_SIGNED): Define.
552 (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
554 regcomp.c: avoid a new -Wshadow warning
555 * lib/regcomp.c (create_initial_state): Do not shadow local "err".
557 2010-02-01 Jim Meyering <meyering@redhat.com>
559 removing useless parentheses in cpp #define directives
560 For motivation, see commit c0221df4, "define STREQ(a,b)
561 consistently, removing useless parentheses"
562 * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
563 * lib/mountlist.c (MNT_IGNORE): Likewise.
564 * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
566 2010-02-01 Eric Blake <ebb9@byu.net>
568 sys_time: use link-warning
569 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
570 (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
571 (gl_SYS_TIME_MODULE_INDICATOR): New macro.
572 * modules/sys_time (Depends-on): Add warn-on-use.
573 (Makefile.am): Always build replacement.
574 (configure.ac): Update substitutions.
575 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
576 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
577 bother with SYS_TIME_H.
578 * modules/gettimeofday (configure.ac): Declare indicator.
579 * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
582 closein-tests: silence compiler warning
583 * tests/test-closein.c (main): Ignore fread result.
584 * modules/closein-tests (Depends-on): Add ignore-value.
586 tests: silence warning about system return
587 * tests/test-areadlink-with-size.c (main): Ignore system result.
588 * tests/test-areadlink.c (main): Likewise.
589 * tests/test-areadlinkat-with-size.c (main): Likewise.
590 * tests/test-areadlinkat.c (main): Likewise.
591 * tests/test-canonicalize-lgpl.c (main): Likewise.
592 * tests/test-canonicalize.c (main): Likewise.
593 * tests/test-chown.c (main): Likewise.
594 * tests/test-fchownat.c (main): Likewise.
595 * tests/test-fdutimensat.c (main): Likewise.
596 * tests/test-fstatat.c (main): Likewise.
597 * tests/test-futimens.c (main): Likewise.
598 * tests/test-lchown.c (main): Likewise.
599 * tests/test-link.c (main): Likewise.
600 * tests/test-linkat.c (main): Likewise.
601 * tests/test-lstat.c (main): Likewise.
602 * tests/test-mkdir.c (main): Likewise.
603 * tests/test-mkdirat.c (main): Likewise.
604 * tests/test-mkfifo.c (main): Likewise.
605 * tests/test-mkfifoat.c (main): Likewise.
606 * tests/test-mknod.c (main): Likewise.
607 * tests/test-readlink.c (main): Likewise.
608 * tests/test-remove.c (main): Likewise.
609 * tests/test-rename.c (main): Likewise.
610 * tests/test-renameat.c (main): Likewise.
611 * tests/test-rmdir.c (main): Likewise.
612 * tests/test-symlink.c (main): Likewise.
613 * tests/test-symlinkat.c (main): Likewise.
614 * tests/test-unlink.c (main): Likewise.
615 * tests/test-unlinkat.c (main): Likewise.
616 * tests/test-utimens.c (main): Likewise.
617 * tests/test-utimensat.c (main): Likewise.
618 * modules/areadlink-tests (Depends-on): Add ignore-value.
619 * modules/areadlink-with-size-tests (Depends-on): Likewise.
620 * modules/areadlinkat-tests (Depends-on): Likewise.
621 * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
622 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
623 * modules/canonicalize-tests (Depends-on): Likewise.
624 * modules/chown-tests (Depends-on): Likewise.
625 * modules/fdutimensat-tests (Depends-on): Likewise.
626 * modules/futimens-tests (Depends-on): Likewise.
627 * modules/lchown-tests (Depends-on): Likewise.
628 * modules/link-tests (Depends-on): Likewise.
629 * modules/linkat-tests (Depends-on): Likewise.
630 * modules/lstat-tests (Depends-on): Likewise.
631 * modules/mkdir-tests (Depends-on): Likewise.
632 * modules/mkfifo-tests (Depends-on): Likewise.
633 * modules/mkfifoat-tests (Depends-on): Likewise.
634 * modules/mknod-tests (Depends-on): Likewise.
635 * modules/openat-tests (Depends-on): Likewise.
636 * modules/readlink-tests (Depends-on): Likewise.
637 * modules/remove-tests (Depends-on): Likewise.
638 * modules/rename-tests (Depends-on): Likewise.
639 * modules/renameat-tests (Depends-on): Likewise.
640 * modules/rmdir-tests (Depends-on): Likewise.
641 * modules/symlink-tests (Depends-on): Likewise.
642 * modules/symlinkat-tests (Depends-on): Likewise.
643 * modules/unlink-tests (Depends-on): Likewise.
644 * modules/utimens-tests (Depends-on): Likewise.
645 * modules/utimensat-tests (Depends-on): Likewise.
647 2010-01-31 Bruno Haible <bruno@clisp.org>
649 Perform the same test for many <math.h> functions.
650 * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
651 gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
652 * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
654 * modules/acos (configure.ac): Likewise.
655 * modules/asin (configure.ac): Likewise.
656 * modules/atan (configure.ac): Likewise.
657 * modules/atan2 (configure.ac): Likewise.
658 * modules/cbrt (configure.ac): Likewise.
659 * modules/copysign (configure.ac): Likewise.
660 * modules/cos (configure.ac): Likewise.
661 * modules/cosh (configure.ac): Likewise.
662 * modules/erf (configure.ac): Likewise.
663 * modules/erfc (configure.ac): Likewise.
664 * modules/exp (configure.ac): Likewise.
665 * modules/fmod (configure.ac): Likewise.
666 * modules/hypot (configure.ac): Likewise.
667 * modules/j0 (configure.ac): Likewise.
668 * modules/j1 (configure.ac): Likewise.
669 * modules/jn (configure.ac): Likewise.
670 * modules/lgamma (configure.ac): Likewise.
671 * modules/log (configure.ac): Likewise.
672 * modules/log10 (configure.ac): Likewise.
673 * modules/log1p (configure.ac): Likewise.
674 * modules/pow (configure.ac): Likewise.
675 * modules/remainder (configure.ac): Likewise.
676 * modules/sin (configure.ac): Likewise.
677 * modules/sinh (configure.ac): Likewise.
678 * modules/tan (configure.ac): Likewise.
679 * modules/tanh (configure.ac): Likewise.
680 * modules/y0 (configure.ac): Likewise.
681 * modules/y1 (configure.ac): Likewise.
682 * modules/yn (configure.ac): Likewise.
683 Suggested by Paolo Bonzini.
685 2010-01-31 Bruno Haible <bruno@clisp.org>
687 * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
689 2010-01-31 Bruno Haible <bruno@clisp.org>
691 Work around getdelim() bug on FreeBSD 8.0.
692 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
693 initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
695 * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
697 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
698 * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
699 * tests/test-getdelim.c (main): Also test result for a NULL buffer and
701 * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
703 2010-01-31 Bruno Haible <bruno@clisp.org>
705 Work around getline() bug on FreeBSD 8.0.
706 * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
708 * tests/test-getline.c (main): Likewise.
709 * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
710 Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
712 2010-01-28 Eric Blake <ebb9@byu.net>
714 regex: fix build failure
715 * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
718 2010-01-28 Jim Meyering <meyering@redhat.com>
720 regex: do not ignore memory allocation failure
721 * lib/regex_internal.c (create_cd_newstate): Detect
722 re_node_set_init_copy failure. Extracted from glibc commit
723 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
725 regex: sync more white-space changes from libc
726 * lib/regex_internal.c: White-space only changes.
727 * lib/regexec.c: Likewise.
729 regex: add many uses of __attribute_warn_unused_result__
730 * lib/regex_internal.c: Use __attribute_warn_unused_result__.
731 * lib/regexec.c: Likewise.
732 Extracted from a messy glibc commit.
734 regcomp.c: spelling and merge-artifact from glibc
735 * lib/regcomp.c: Merge remainder of glibc's
736 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
738 regcomp.c: sync white-space changes from glibc
739 * lib/regcomp.c: Merge to accommodate white space
740 changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
742 regcomp.c: do not ignore internal return values
743 * lib/regcomp.c: Do not ignore internal return values.
744 This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
745 but without its white-space changes and spelling fixes.
747 regex_internal.h: define __attribute_warn_unused_result__
748 * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
750 maint: add a syntax-check rule to check for vulnerable Makefile.in
751 * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
753 2010-01-27 Jim Meyering <meyering@redhat.com>
755 ncftpput-ftp: clean up spaces
756 * build-aux/ncftpput-ftp: Make Copyright line consistent.
757 Remove trailing blanks.
759 2010-01-27 Simon Josefsson <simon@josefsson.org>
761 * build-aux/git-version-gen: Fix copyright statement.
762 * build-aux/gnupload: Likewise.
763 * tests/test-arcfour.c: Likewise.
764 * tests/test-arctwo.c: Likewise.
765 * tests/test-count-one-bits.c: Likewise.
766 * tests/test-crc.c: Likewise.
767 * tests/test-des.c: Likewise.
768 * tests/test-gc-arcfour.c: Likewise.
769 * tests/test-gc-arctwo.c: Likewise.
770 * tests/test-gc-des.c: Likewise.
771 * tests/test-gc-hmac-md5.c: Likewise.
772 * tests/test-gc-hmac-sha1.c: Likewise.
773 * tests/test-gc-md2.c: Likewise.
774 * tests/test-gc-md4.c: Likewise.
775 * tests/test-gc-md5.c: Likewise.
776 * tests/test-gc-pbkdf2-sha1.c: Likewise.
777 * tests/test-gc-rijndael.c: Likewise.
778 * tests/test-gc-sha1.c: Likewise.
779 * tests/test-gc.c: Likewise.
780 * tests/test-gethostname.c: Likewise.
781 * tests/test-gettimeofday.c: Likewise.
782 * tests/test-hash.c: Likewise.
783 * tests/test-hmac-md5.c: Likewise.
784 * tests/test-hmac-sha1.c: Likewise.
785 * tests/test-md2.c: Likewise.
786 * tests/test-md4.c: Likewise.
787 * tests/test-md5.c: Likewise.
788 * tests/test-memchr.c: Likewise.
789 * tests/test-memchr2.c: Likewise.
790 * tests/test-memcmp.c: Likewise.
791 * tests/test-memmem.c: Likewise.
792 * tests/test-memrchr.c: Likewise.
793 * tests/test-rawmemchr.c: Likewise.
794 * tests/test-read-file.c: Likewise.
795 * tests/test-rijndael.c: Likewise.
796 * tests/test-sockets.c: Likewise.
797 * tests/test-strchrnul.c: Likewise.
798 * tests/test-strstr.c: Likewise.
799 * tests/test-strtod.c: Likewise.
800 * build-aux/ncftpput-ftp: Likewise.
802 2010-01-26 Eric Blake <ebb9@byu.net>
804 ignore-value: update recommended header name
805 * modules/ignore-value (Include): Only use <> for headers that
808 2010-01-26 Jim Meyering <meyering@redhat.com>
810 test-userspec.c: avoid compiler warnings
811 * tests/test-userspec.c (main): Avoid shadowing ("uid"),
812 and "initialization discards qualifiers..." warnings.
813 Put the first "uid" in its own scope, and make char* members "const".
815 2010-01-25 Bruno Haible <bruno@clisp.org>
817 gnulib-tool: Make warning diagnostics consistent.
818 * gnulib-tool (func_warning): New function.
819 Use it everywhere where gnulib-tool produces output to stderr and it is
822 2010-01-25 Bruno Haible <bruno@clisp.org>
824 Fix test dependencies.
825 * modules/xstrtol-tests (Depends-on): Add inttypes.
826 * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
828 2010-01-25 Pádraig Brady <P@draigBrady.com>
830 syntax-check: detect incorrect boolean macro values in config.h
831 * modules/maintainer-makefile (configure.ac): Parameterize the location
832 of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
833 The logic is from Eric Blake and the location indicated by Jim Meyering.
834 Note the more natural CONFIG_HEADER name is prohibited by automake
835 for backwards compatibility reasons.
836 * top/maint.mk (sc_Wundef_boolean): New rule.
838 2010-01-25 Jim Meyering <meyering@redhat.com>
840 bootstrap: detect MacOS 10.6's shasum, too
841 * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
842 Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
844 2010-01-23 Jim Meyering <meyering@redhat.com>
847 * modules/xstrtoll: New file.
848 * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
849 * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
850 * lib/xstrtoll.c, lib/xstrtoull.c: New files.
851 ./configure fails if you use this module and lack "long long".
852 * modules/xstrtoll-tests: New module.
853 * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
854 * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
855 new init.sh-based test framework.
857 2010-01-24 Bruno Haible <bruno@clisp.org>
859 Tests for module 'yn'.
860 * modules/yn-tests: New file.
861 * tests/test-yn.c: New file.
863 Tests for module 'y1'.
864 * modules/y1-tests: New file.
865 * tests/test-y1.c: New file.
867 Tests for module 'y0'.
868 * modules/y0-tests: New file.
869 * tests/test-y0.c: New file.
871 Tests for module 'tanh'.
872 * modules/tanh-tests: New file.
873 * tests/test-tanh.c: New file.
875 Tests for module 'tan'.
876 * modules/tan-tests: New file.
877 * tests/test-tan.c: New file.
879 Tests for module 'sqrt'.
880 * modules/sqrt-tests: New file.
881 * tests/test-sqrt.c: New file.
883 Tests for module 'sinh'.
884 * modules/sinh-tests: New file.
885 * tests/test-sinh.c: New file.
887 Tests for module 'sin'.
888 * modules/sin-tests: New file.
889 * tests/test-sin.c: New file.
891 Tests for module 'rint'.
892 * modules/rint-tests: New file.
893 * tests/test-rint.c: New file.
895 Tests for module 'remainder'.
896 * modules/remainder-tests: New file.
897 * tests/test-remainder.c: New file.
899 Tests for module 'pow'.
900 * modules/pow-tests: New file.
901 * tests/test-pow.c: New file.
903 Tests for module 'nextafter'.
904 * modules/nextafter-tests: New file.
905 * tests/test-nextafter.c: New file.
907 Tests for module 'modf'.
908 * modules/modf-tests: New file.
909 * tests/test-modf.c: New file.
911 Tests for module 'logb'.
912 * modules/logb-tests: New file.
913 * tests/test-logb.c: New file.
915 Tests for module 'log1p'.
916 * modules/log1p-tests: New file.
917 * tests/test-log1p.c: New file.
919 Tests for module 'log10'.
920 * modules/log10-tests: New file.
921 * tests/test-log10.c: New file.
923 Tests for module 'log'.
924 * modules/log-tests: New file.
925 * tests/test-log.c: New file.
927 Tests for module 'lgamma'.
928 * modules/lgamma-tests: New file.
929 * tests/test-lgamma.c: New file.
931 Tests for module 'ldexp'.
932 * modules/ldexp-tests: New file.
933 * tests/test-ldexp.c: New file.
935 Tests for module 'jn'.
936 * modules/jn-tests: New file.
937 * tests/test-jn.c: New file.
939 Tests for module 'j1'.
940 * modules/j1-tests: New file.
941 * tests/test-j1.c: New file.
943 Tests for module 'j0'.
944 * modules/j0-tests: New file.
945 * tests/test-j0.c: New file.
947 Tests for module 'hypot'.
948 * modules/hypot-tests: New file.
949 * tests/test-hypot.c: New file.
951 Tests for module 'fmod'.
952 * modules/fmod-tests: New file.
953 * tests/test-fmod.c: New file.
955 Tests for module 'fabs'.
956 * modules/fabs-tests: New file.
957 * tests/test-fabs.c: New file.
959 Tests for module 'exp'.
960 * modules/exp-tests: New file.
961 * tests/test-exp.c: New file.
963 Tests for module 'erfc'.
964 * modules/erfc-tests: New file.
965 * tests/test-erfc.c: New file.
967 Tests for module 'erf'.
968 * modules/erf-tests: New file.
969 * tests/test-erf.c: New file.
971 Tests for module 'cosh'.
972 * modules/cosh-tests: New file.
973 * tests/test-cosh.c: New file.
975 Tests for module 'cos'.
976 * modules/cos-tests: New file.
977 * tests/test-cos.c: New file.
979 Tests for module 'copysign'.
980 * modules/copysign-tests: New file.
981 * tests/test-copysign.c: New file.
983 Tests for module 'cbrt'.
984 * modules/cbrt-tests: New file.
985 * tests/test-cbrt.c: New file.
987 Tests for module 'atan2'.
988 * modules/atan2-tests: New file.
989 * tests/test-atan2.c: New file.
991 Tests for module 'atan'.
992 * modules/atan-tests: New file.
993 * tests/test-atan.c: New file.
995 Tests for module 'asin'.
996 * modules/asin-tests: New file.
997 * tests/test-asin.c: New file.
999 Tests for module 'acos'.
1000 * modules/acos-tests: New file.
1001 * tests/test-acos.c: New file.
1003 2010-01-24 Bruno Haible <bruno@clisp.org>
1005 Fix tests for common <math.h> functions.
1006 * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
1007 code snippet that references the function pointer, rather than merely
1008 calling the function. Substitute the FUNC_LIBM variable.
1009 * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
1010 * modules/acos (configure.ac): Likewise.
1011 * modules/asin (configure.ac): Likewise.
1012 * modules/atan (configure.ac): Likewise.
1013 * modules/atan2 (configure.ac): Likewise.
1014 * modules/cbrt (configure.ac): Likewise.
1015 * modules/copysign (configure.ac): Likewise.
1016 * modules/cos (configure.ac): Likewise.
1017 * modules/cosh (configure.ac): Likewise.
1018 * modules/erf (configure.ac): Likewise.
1019 * modules/erfc (configure.ac): Likewise.
1020 * modules/exp (configure.ac): Likewise.
1021 * modules/fabs (configure.ac): Likewise.
1022 * modules/fmod (configure.ac): Likewise.
1023 * modules/hypot (configure.ac): Likewise.
1024 * modules/j0 (configure.ac): Likewise.
1025 * modules/j1 (configure.ac): Likewise.
1026 * modules/jn (configure.ac): Likewise.
1027 * modules/ldexp (configure.ac): Likewise.
1028 * modules/lgamma (configure.ac): Likewise.
1029 * modules/log (configure.ac): Likewise.
1030 * modules/log10 (configure.ac): Likewise.
1031 * modules/log1p (configure.ac): Likewise.
1032 * modules/logb (configure.ac): Likewise.
1033 * modules/modf (configure.ac): Likewise.
1034 * modules/nextafter (configure.ac): Likewise.
1035 * modules/pow (configure.ac): Likewise.
1036 * modules/remainder (configure.ac): Likewise.
1037 * modules/rint (configure.ac): Likewise.
1038 * modules/sin (configure.ac): Likewise.
1039 * modules/sinh (configure.ac): Likewise.
1040 * modules/tan (configure.ac): Likewise.
1041 * modules/tanh (configure.ac): Likewise.
1042 * modules/y0 (configure.ac): Likewise.
1043 * modules/y1 (configure.ac): Likewise.
1044 * modules/yn (configure.ac): Likewise.
1046 2010-01-24 Bruno Haible <bruno@clisp.org>
1048 Tests: Defeat inlining of math functions by GCC >= 4.3.0.
1049 * tests/test-acosl.c (x): New variable.
1050 (main): Store argument in x and fetch it from x.
1051 * tests/test-asinl.c (x): New variable.
1052 (main): Store argument in x and fetch it from x.
1053 * tests/test-atanl.c (x): New variable.
1054 (main): Store argument in x and fetch it from x.
1055 * tests/test-cosl.c (x): New variable.
1056 (main): Store argument in x and fetch it from x.
1057 * tests/test-expl.c (x): New variable.
1058 (main): Store argument in x and fetch it from x.
1059 * tests/test-logl.c (x): New variable.
1060 (main): Store argument in x and fetch it from x.
1061 * tests/test-sinl.c (x): New variable.
1062 (main): Store argument in x and fetch it from x.
1063 * tests/test-sqrtl.c (x): New variable.
1064 (main): Store argument in x and fetch it from x.
1065 * tests/test-tanl.c (x): New variable.
1066 (main): Store argument in x and fetch it from x.
1068 2010-01-24 Bruno Haible <bruno@clisp.org>
1070 Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
1071 * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
1072 assignments to the initial TESTS_ENVIRONMENT.
1073 * doc/gnulib.texi (Unit test modules): Document it.
1074 * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
1076 * modules/btowc-tests (Makefile.am): Likewise.
1077 * modules/c-stack-tests (Makefile.am): Likewise.
1078 * modules/c-strcase-tests (Makefile.am): Likewise.
1079 * modules/copy-file-tests (Makefile.am): Likewise.
1080 * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
1081 * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
1082 * modules/mbrtowc-tests (Makefile.am): Likewise.
1083 * modules/mbscasecmp-tests (Makefile.am): Likewise.
1084 * modules/mbscasestr-tests (Makefile.am): Likewise.
1085 * modules/mbschr-tests (Makefile.am): Likewise.
1086 * modules/mbscspn-tests (Makefile.am): Likewise.
1087 * modules/mbsinit-tests (Makefile.am): Likewise.
1088 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
1089 * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
1090 * modules/mbspbrk-tests (Makefile.am): Likewise.
1091 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
1092 * modules/mbsrchr-tests (Makefile.am): Likewise.
1093 * modules/mbsrtowcs-tests (Makefile.am): Likewise.
1094 * modules/mbsspn-tests (Makefile.am): Likewise.
1095 * modules/mbsstr-tests (Makefile.am): Likewise.
1096 * modules/nl_langinfo-tests (Makefile.am): Likewise.
1097 * modules/unicase/locale-language-tests (Makefile.am): Likewise.
1098 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
1099 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
1100 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
1101 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
1102 * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
1103 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
1104 * modules/wcrtomb-tests (Makefile.am): Likewise.
1105 * modules/wcsnrtombs-tests (Makefile.am): Likewise.
1106 * modules/wcsrtombs-tests (Makefile.am): Likewise.
1107 * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
1108 assignments from TESTS_ENVIRONMENT.
1109 * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
1111 * modules/argp-version-etc-tests (Makefile.am): Likewise.
1112 * modules/atexit-tests (Makefile.am): Likewise.
1113 * modules/binary-io-tests (Makefile.am): Likewise.
1114 * modules/closein-tests (Makefile.am): Likewise.
1115 * modules/dprintf-posix-tests (Makefile.am): Likewise.
1116 * modules/exclude-tests (Makefile.am): Likewise.
1117 * modules/fflush-tests (Makefile.am): Likewise.
1118 * modules/fpending-tests (Makefile.am): Likewise.
1119 * modules/fprintf-posix-tests (Makefile.am): Likewise.
1120 * modules/freadahead-tests (Makefile.am): Likewise.
1121 * modules/freadptr-tests (Makefile.am): Likewise.
1122 * modules/freadseek-tests (Makefile.am): Likewise.
1123 * modules/fseek-tests (Makefile.am): Likewise.
1124 * modules/fseeko-tests (Makefile.am): Likewise.
1125 * modules/ftell-tests (Makefile.am): Likewise.
1126 * modules/ftello-tests (Makefile.am): Likewise.
1127 * modules/idpriv-drop-tests (Makefile.am): Likewise.
1128 * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
1129 * modules/lseek-tests (Makefile.am): Likewise.
1130 * modules/parse-duration-tests (Makefile.am): Likewise.
1131 * modules/perror-tests (Makefile.am): Likewise.
1132 * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
1133 * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
1134 * modules/pipe-tests (Makefile.am): Likewise.
1135 * modules/pread-tests (Makefile.am): Likewise.
1136 * modules/printf-posix-tests (Makefile.am): Likewise.
1137 * modules/select-tests (Makefile.am): Likewise.
1138 * modules/sigpipe-tests (Makefile.am): Likewise.
1139 * modules/tsearch-tests (Makefile.am): Likewise.
1140 * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
1141 * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
1142 * modules/uniname/uniname-tests (Makefile.am): Likewise.
1143 * modules/uniwidth/width-tests (Makefile.am): Likewise.
1144 * modules/vdprintf-posix-tests (Makefile.am): Likewise.
1145 * modules/version-etc-tests (Makefile.am): Likewise.
1146 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
1147 * modules/vprintf-posix-tests (Makefile.am): Likewise.
1148 * modules/xalloc-die-tests (Makefile.am): Likewise.
1149 * modules/xprintf-posix-tests (Makefile.am): Likewise.
1150 * modules/xstrtoimax-tests (Makefile.am): Likewise.
1151 * modules/xstrtol-tests (Makefile.am): Likewise.
1152 * modules/xstrtoumax-tests (Makefile.am): Likewise.
1153 * modules/yesno-tests (Makefile.am): Likewise.
1154 Suggested by Jim Meyering.
1156 2010-01-24 Bruno Haible <bruno@clisp.org>
1159 * doc/gnulib.texi (Writing modules): New chapter.
1160 (Miscellaneous Notes): Move sections "Comments" and "Header files" to
1163 2010-01-24 Jim Meyering <meyering@redhat.com>
1165 maint.mk: do not prepend "./" after filtering
1166 * top/maint.mk (_prepend_srcdir_prefix): New variable
1167 (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
1168 "./" when $(srcdir) is ".".
1170 define STREQ(a,b) consistently, removing useless parentheses
1171 #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
1172 since the only risk is that "a" or "b" contains an unparenthesized
1173 comma, but if either did that, STREQ would have 3 or more arguments.
1174 Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
1175 * lib/fts.c (STREQ): Remove unnecessary parentheses.
1176 * lib/hash-triple.c (STREQ): Likewise.
1177 * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
1178 * lib/getugroups.c (STREQ): Likewise.
1180 2010-01-23 Jim Meyering <meyering@redhat.com>
1182 maint.mk: fix syntax-check in a non-srcdir build directory
1183 * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
1184 introduced in my 2010-01-21 commit, a6da6c45. Reported by Eric Blake.
1186 2010-01-22 Jim Meyering <meyering@redhat.com>
1188 userspec: add unit tests
1189 * tests/test-userspec.c: New file.
1190 * modules/userspec-tests: Likewise.
1192 2010-01-21 Jim Meyering <meyering@redhat.com>
1194 maint.mk: handle source file names containing "." robustly
1195 * top/maint.mk (_dot_escaped_srcdir): Define.
1196 (VC_LIST): Use it in LHS of sed substitution.
1198 2010-01-21 Jiri Denemark <jdenemar@redhat.com>
1200 maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
1201 * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
1202 $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
1203 from a non-srcdir build.
1205 2010-01-20 Eric Blake <ebb9@byu.net>
1207 warn-on-use: use instead of link-warning
1208 * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
1209 * modules/unistd (Depends-on, Makefile.am): Likewise.
1210 * modules/arpa_inet (Depends-on): Replace link-warning with
1212 (Makefile.am): Update rules accordingly.
1213 * modules/ctype (Depends-on, Makefile.am): Likewise.
1214 * modules/dirent (Depends-on, Makefile.am): Likewise.
1215 * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
1216 * modules/inttypes (Depends-on, Makefile.am): Likewise.
1217 * modules/langinfo (Depends-on, Makefile.am): Likewise.
1218 * modules/locale (Depends-on, Makefile.am): Likewise.
1219 * modules/math (Depends-on, Makefile.am): Likewise.
1220 * modules/search (Depends-on, Makefile.am): Likewise.
1221 * modules/signal (Depends-on, Makefile.am): Likewise.
1222 * modules/spawn (Depends-on, Makefile.am): Likewise.
1223 * modules/stdlib (Depends-on, Makefile.am): Likewise.
1224 * modules/string (Depends-on, Makefile.am): Likewise.
1225 * modules/strings (Depends-on, Makefile.am): Likewise.
1226 * modules/sys_file (Depends-on, Makefile.am): Likewise.
1227 * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
1228 * modules/sys_select (Depends-on, Makefile.am): Likewise.
1229 * modules/sys_socket (Depends-on, Makefile.am): Likewise.
1230 * modules/sys_stat (Depends-on, Makefile.am): Likewise.
1231 * modules/sys_times (Depends-on, Makefile.am): Likewise.
1232 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
1233 * modules/wchar (Depends-on, Makefile.am): Likewise.
1234 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
1236 * m4/ctype.m4 (gl_CTYPE_H): Likewise.
1237 * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
1238 * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
1239 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
1240 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
1241 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
1242 * m4/math_h.m4 (gl_MATH_H): Likewise.
1243 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
1244 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
1245 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
1246 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
1247 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
1248 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
1249 * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
1250 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
1251 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
1252 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
1253 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
1254 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
1255 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
1256 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
1257 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1258 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
1259 * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
1261 * lib/ctype.in.h: Likewise.
1262 * lib/dirent.in.h: Likewise.
1263 * lib/fcntl.in.h: Likewise.
1264 * lib/inttypes.in.h: Likewise.
1265 * lib/langinfo.in.h: Likewise.
1266 * lib/locale.in.h: Likewise.
1267 * lib/math.in.h: Likewise.
1268 * lib/search.in.h: Likewise.
1269 * lib/signal.in.h: Likewise.
1270 * lib/spawn.in.h: Likewise.
1271 * lib/stdio.in.h: Likewise.
1272 * lib/stdlib.in.h: Likewise.
1273 * lib/string.in.h: Likewise.
1274 * lib/strings.in.h: Likewise.
1275 * lib/sys_file.in.h: Likewise.
1276 * lib/sys_ioctl.in.h: Likewise.
1277 * lib/sys_select.in.h: Likewise.
1278 * lib/sys_socket.in.h: Likewise.
1279 * lib/sys_stat.in.h: Likewise.
1280 * lib/sys_times.in.h: Likewise.
1281 * lib/sys_utsname.in.h: Likewise.
1282 * lib/unistd.in.h: Likewise.
1283 * lib/wchar.in.h: Likewise.
1285 2010-01-20 Bruno Haible <bruno@clisp.org>
1287 Avoid duplicate -lm.
1288 * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
1289 * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
1290 * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
1291 * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
1292 * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
1293 * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
1294 * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
1295 * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
1296 * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
1297 * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
1298 * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
1299 * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
1300 Reported by Paolo Bonzini.
1302 2010-01-19 Bruno Haible <bruno@clisp.org>
1304 langinfo, nl_langinfo: Relicense under LGPLv2+.
1305 * modules/langinfo (License): Change to LGPLv2+.
1306 * modules/nl_langinfo (License): Likewise.
1307 Patch by David Lutterkort <lutter@redhat.com>.
1309 2010-01-19 Bruno Haible <bruno@clisp.org>
1311 Avoid compilation error with cc on OSF/1 5.1.
1312 * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
1313 statement, not before.
1314 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1316 2010-01-18 Bruno Haible <bruno@clisp.org>
1318 Avoid a link error due to the __printf__ symbol.
1319 * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
1321 (__format__, __printf__): Remove definitions.
1322 * lib/argp-fmtstream.h: Likewise.
1323 * lib/argp.h: Likewise.
1324 * lib/error.h: Likewise.
1325 * lib/vasnprintf.h: Likewise.
1326 * lib/xprintf.h: Likewise.
1327 * lib/xvasprintf.h: Likewise.
1328 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1330 2010-01-18 Bruno Haible <bruno@clisp.org>
1332 Tests for module 'tanl'.
1333 * modules/tanl-tests: New file.
1334 * tests/test-tanl.c: New file.
1336 Tests for module 'sqrtl'.
1337 * modules/sqrtl-tests: New file.
1338 * tests/test-sqrtl.c: New file.
1340 Tests for module 'sinl'.
1341 * modules/sinl-tests: New file.
1342 * tests/test-sinl.c: New file.
1344 Tests for module 'logl'.
1345 * modules/logl-tests: New file.
1346 * tests/test-logl.c: New file.
1348 Tests for module 'expl'.
1349 * modules/expl-tests: New file.
1350 * tests/test-expl.c: New file.
1352 Tests for module 'cosl'.
1353 * modules/cosl-tests: New file.
1354 * tests/test-cosl.c: New file.
1356 Tests for module 'atanl'.
1357 * modules/atanl-tests: New file.
1358 * tests/test-atanl.c: New file.
1360 Tests for module 'asinl'.
1361 * modules/asinl-tests: New file.
1362 * tests/test-asinl.c: New file.
1364 Tests for module 'acosl'.
1365 * modules/acosl-tests: New file.
1366 * tests/test-acosl.c: New file.
1368 New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1369 * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
1370 tanl): Use the standard gnulib idiom.
1371 * lib/cosl.c: Don't include trigl.c and sincosl.c.
1372 * lib/sinl.c: Likewise.
1373 * lib/tanl.c: Don't include trigl.c.
1374 (kernel_tanl): Make static.
1375 * lib/sincosl.c: Include trigl.h first.
1376 * lib/trigl.c: Likewise.
1377 * m4/acosl.m4: New file.
1378 * m4/asinl.m4: New file.
1379 * m4/atanl.m4: New file.
1380 * m4/cosl.m4: New file.
1381 * m4/expl.m4: New file.
1382 * m4/logl.m4: New file.
1383 * m4/sinl.m4: New file.
1384 * m4/sqrtl.m4: New file.
1385 * m4/tanl.m4: New file.
1386 * m4/mathl.m4: Remove file.
1387 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
1388 variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
1389 Don't initialize GNULIB_MATHL.
1390 * modules/acosl: New file.
1391 * modules/asinl: New file.
1392 * modules/atanl: New file.
1393 * modules/cosl: New file.
1394 * modules/expl: New file.
1395 * modules/logl: New file.
1396 * modules/sinl: New file.
1397 * modules/sqrtl: New file.
1398 * modules/tanl: New file.
1399 * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
1400 for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
1401 substitute GNULIB_MATHL.
1402 * modules/mathl: Rewritten.
1403 * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
1404 * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
1405 * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
1406 * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
1407 * doc/posix-functions/expl.texi: Mention the 'expl' module.
1408 * doc/posix-functions/logl.texi: Mention the 'logl' module.
1409 * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
1410 * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
1411 * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
1413 2010-01-18 Bruno Haible <bruno@clisp.org>
1415 sqrt: Make gl_FUNC_SQRT requirable.
1416 * m4/sqrt.m4: New file.
1417 * modules/sqrt (Files): Add it.
1418 (configure.ac): Invoke gl_FUNC_SQRT.
1420 2010-01-18 Bruno Haible <bruno@clisp.org>
1422 New modules for common <math.h> functions.
1423 * m4/mathfunc.m4: New file.
1424 * modules/acos: New file.
1425 * modules/asin: New file.
1426 * modules/atan: New file.
1427 * modules/atan2: New file.
1428 * modules/cbrt: New file.
1429 * modules/copysign: New file.
1430 * modules/cos: New file.
1431 * modules/cosh: New file.
1432 * modules/erf: New file.
1433 * modules/erfc: New file.
1434 * modules/exp: New file.
1435 * modules/fabs: New file.
1436 * modules/fmod: New file.
1437 * modules/hypot: New file.
1438 * modules/j0: New file.
1439 * modules/j1: New file.
1440 * modules/jn: New file.
1441 * modules/ldexp: New file.
1442 * modules/lgamma: New file.
1443 * modules/log: New file.
1444 * modules/log10: New file.
1445 * modules/log1p: New file.
1446 * modules/logb: New file.
1447 * modules/modf: New file.
1448 * modules/nextafter: New file.
1449 * modules/pow: New file.
1450 * modules/remainder: New file.
1451 * modules/rint: New file.
1452 * modules/sin: New file.
1453 * modules/sinh: New file.
1454 * modules/sqrt: New file.
1455 * modules/tan: New file.
1456 * modules/tanh: New file.
1457 * modules/y0: New file.
1458 * modules/y1: New file.
1459 * modules/yn: New file.
1460 * doc/posix-functions/acos.texi: Mention the 'acos' module.
1461 * doc/posix-functions/asin.texi: Mention the 'asin' module.
1462 * doc/posix-functions/atan.texi: Mention the 'atan' module.
1463 * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
1464 * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
1465 * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
1466 * doc/posix-functions/cos.texi: Mention the 'cos' module.
1467 * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
1468 * doc/posix-functions/erf.texi: Mention the 'erf' module.
1469 * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
1470 * doc/posix-functions/exp.texi: Mention the 'exp' module.
1471 * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
1472 * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
1473 * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
1474 * doc/posix-functions/j0.texi: Mention the 'j0' module.
1475 * doc/posix-functions/j1.texi: Mention the 'j1' module.
1476 * doc/posix-functions/jn.texi: Mention the 'jn' module.
1477 * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
1478 * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
1479 * doc/posix-functions/log.texi: Mention the 'log' module.
1480 * doc/posix-functions/log10.texi: Mention the 'log10' module.
1481 * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
1482 * doc/posix-functions/logb.texi: Mention the 'logb' module.
1483 * doc/posix-functions/modf.texi: Mention the 'modf' module.
1484 * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
1485 * doc/posix-functions/pow.texi: Mention the 'pow' module.
1486 * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
1487 * doc/posix-functions/rint.texi: Mention the 'rint' module.
1488 * doc/posix-functions/sin.texi: Mention the 'sin' module.
1489 * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
1490 * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
1491 * doc/posix-functions/tan.texi: Mention the 'tan' module.
1492 * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
1493 * doc/posix-functions/y0.texi: Mention the 'y0' module.
1494 * doc/posix-functions/y1.texi: Mention the 'y1' module.
1495 * doc/posix-functions/yn.texi: Mention the 'yn' module.
1497 2010-01-18 Jim Meyering <meyering@redhat.com>
1499 ignore-value: relax license to LGPLv2+
1500 * modules/ignore-value (License): Relax to LGPLv2+.
1502 getdate: don't leak when TZ contains two or more '"'s
1503 * lib/getdate.y (get_date): Don't leak a copy of TZ for each
1504 double quote in TZ after the first one.
1506 readtokens: do not leak internal token_lengths buffer
1507 * lib/readtokens.c (readtokens): Free the local, lengths,
1508 when the supplied "token_lengths" parameter is NULL.
1510 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1512 Fix a couple of missing LIBTHREAD link failures on AIX.
1513 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
1515 * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
1517 Link test-poll against INET_PTON_LIB.
1518 * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
1519 for inet_pton on Solaris 10.
1521 2010-01-17 Bruno Haible <bruno@clisp.org>
1523 unistdio/*-sprintf: Fix typo in module description.
1524 * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
1525 * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
1526 * modules/unistdio/u16-sprintf (Depends-on): Likewise.
1527 * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
1528 * modules/unistdio/u32-sprintf (Depends-on): Likewise.
1529 * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
1530 * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
1531 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
1533 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1535 gnulib-tool: fix filelist for AIX, HP-UX ksh.
1536 * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
1537 variables in shell case patterns, for AIX and HP-UX ksh.
1539 Split large sed scripts, for HP-UX sed.
1540 * modules/stdio: Split sed scripts around 50 sed commands,
1541 to avoid HP-UX limit of 99 commands, in the near future.
1542 * modules/string: Likewise.
1543 * modules/unistd: Likewise.
1545 gnulib-tool: avoid writing in the current directory.
1546 * gnulib-tool (func_emit_lib_Makefile_am)
1547 (func_emit_tests_Makefile_am): Put temporary files in $tmp,
1548 not in the current directory, so concurrent gnulib-tool
1549 instances do not interfere.
1551 2010-01-16 Jim Meyering <meyering@redhat.com>
1553 doc: update users.txt
1554 * users.txt: Add grep.
1555 (diffutils, gzip): Update URLs.
1557 2010-01-12 Bruno Haible <bruno@clisp.org>
1559 posix_spawn: Avoid test failure on Cygwin.
1560 * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
1562 Reported by Simon Josefsson.
1564 2010-01-12 Bruno Haible <bruno@clisp.org>
1566 * tests/test-cond.c (main): When skipping the test, show the reason.
1568 2010-01-12 Simon Josefsson <simon@josefsson.org>
1570 * lib/striconv.c (str_cd_iconv): Avoid if before free.
1572 2010-01-12 Simon Josefsson <simon@josefsson.org>
1574 * top/maint.mk (VC_LIST_EXCEPT): Filter list through
1575 VC_LIST_ALWAYS_EXCLUDE_REGEX.
1577 2010-01-12 Eric Blake <ebb9@byu.net>
1579 build: guarantee AS_VAR_IF
1580 * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
1581 (gl_AS_VAR_IF): Move...
1582 * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
1583 Reported by Simon Josefsson.
1585 2010-01-12 Simon Josefsson <simon@josefsson.org>
1587 * lib/stdio.in.h: Fix typo.
1589 2010-01-12 Simon Josefsson <simon@josefsson.org>
1591 * m4/gc.m4: Check if linking to libgcrypt also needs linking to
1594 2010-01-12 Simon Josefsson <simon@josefsson.org>
1596 * tests/test-xalloc-die.sh: Use $EXEEXT.
1598 2010-01-12 Simon Josefsson <simon@josefsson.org>
1599 Bruno Haible <bruno@clisp.org>
1601 getlogin, getlogin_r: Avoid test failure.
1602 * tests/test-getlogin.c: Include <stdio.h>.
1603 (main): Skip the test when the function fails because stdin is not a
1605 * tests/test-getlogin_r.c: Include <stdio.h>.
1606 (main): Skip the test when the function fails because stdin is not a
1609 2010-01-11 Eric Blake <ebb9@byu.net>
1611 tests: avoid more large file warnings
1612 * tests/test-fflush.c: Avoid warning about ftell use.
1613 * tests/test-fseek.c: Avoid warning about fseek use.
1615 2010-01-10 Bruno Haible <bruno@clisp.org>
1617 nproc: Work better on Linux when /proc and /sys are not mounted.
1618 * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
1619 as lower bound when, on glibc/Linux systems,
1620 sysconf (_SC_NPROCESSORS_CONF) returns 1.
1621 Suggested by Pádraig Brady <P@draigbrady.com>.
1622 Reported by Dmitry V. Levin <ldv@altlinux.org>.
1625 * lib/nproc.c (num_processors_via_affinity_mask): New function,
1626 extracted from num_processors.
1627 (num_processors): Call it.
1629 2010-01-11 Jim Meyering <meyering@redhat.com>
1631 utimecmp: avoid new warning from upcoming gcc-4.5.0
1632 * lib/utimecmp.c (BILLION): Define using #define rather than an
1633 anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
1635 2010-01-11 Eric Blake <ebb9@byu.net>
1637 math: add portability warnings for classification macros
1638 * modules/math (Depends-on): Add warn-on-use.
1639 (Makefile.am): Provide new substitutions.
1640 * m4/math_h.m4 (gl_MATH_H): Require inline.
1641 * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
1642 (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
1643 (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
1646 unistd: warn on use of environ without module
1647 * modules/unistd (Depends-on): Add warn-on-use.
1648 (Makefile.am): Provide new substitutions.
1649 * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
1650 * lib/unistd.in.h (environ): Wrap with a warning helper function.
1652 stdio: warn on suspicious uses
1653 * modules/stdio (Depends-on): Add warn-on-use.
1654 (Makefile.am): Provide new substitutions.
1655 * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
1657 * lib/stdio.in.h (gets): Always warn on use.
1658 (fseek, ftell): Adjust when warnings are issued, and honor
1659 _GL_NO_LARGE_FILES as a way to silence the warning.
1660 * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
1661 any warning about large file offsets.
1662 * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
1663 * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
1664 * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
1665 * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
1666 * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
1667 * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
1668 * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
1669 * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
1671 warn-on-use: new module
1672 * modules/warn-on-use: New file.
1673 * build-aux/warn-on-use.h: Likewise.
1674 * m4/warn-on-use.m4: Likewise.
1675 * MODULES.html.sh (Support for building): Mention it.
1677 2010-01-10 Bruno Haible <bruno@clisp.org>
1679 Tests for module 'unistr/u32-strdup'.
1680 * modules/unistr/u32-strdup-tests: New file.
1681 * tests/unistr/test-u32-strdup.c: New file.
1683 Tests for module 'unistr/u16-strdup'.
1684 * modules/unistr/u16-strdup-tests: New file.
1685 * tests/unistr/test-u16-strdup.c: New file.
1687 Tests for module 'unistr/u8-strdup'.
1688 * modules/unistr/u8-strdup-tests: New file.
1689 * tests/unistr/test-u8-strdup.c: New file.
1690 * tests/unistr/test-strdup.h: New file.
1692 Tests for module 'unistr/u32-strncmp'.
1693 * modules/unistr/u32-strncmp-tests: New file.
1694 * tests/unistr/test-u32-strncmp.c: New file.
1696 Tests for module 'unistr/u16-strncmp'.
1697 * modules/unistr/u16-strncmp-tests: New file.
1698 * tests/unistr/test-u16-strncmp.c: New file.
1700 Tests for module 'unistr/u8-strncmp'.
1701 * modules/unistr/u8-strncmp-tests: New file.
1702 * tests/unistr/test-u8-strncmp.c: New file.
1703 * tests/unistr/test-strncmp.h: New file.
1705 Tests for module 'unistr/u32-strcoll'.
1706 * modules/unistr/u32-strcoll-tests: New file.
1707 * tests/unistr/test-u32-strcoll.c: New file.
1709 Tests for module 'unistr/u16-strcoll'.
1710 * modules/unistr/u16-strcoll-tests: New file.
1711 * tests/unistr/test-u16-strcoll.c: New file.
1713 Tests for module 'unistr/u8-strcoll'.
1714 * modules/unistr/u8-strcoll-tests: New file.
1715 * tests/unistr/test-u8-strcoll.c: New file.
1717 Tests for module 'unistr/u32-strcmp'.
1718 * modules/unistr/u32-strcmp-tests: New file.
1719 * tests/unistr/test-u32-strcmp.c: New file.
1720 * tests/unistr/test-u32-strcmp.h: New file.
1722 Tests for module 'unistr/u16-strcmp'.
1723 * modules/unistr/u16-strcmp-tests: New file.
1724 * tests/unistr/test-u16-strcmp.c: New file.
1725 * tests/unistr/test-u16-strcmp.h: New file.
1727 Tests for module 'unistr/u8-strcmp'.
1728 * modules/unistr/u8-strcmp-tests: New file.
1729 * tests/unistr/test-u8-strcmp.c: New file.
1730 * tests/unistr/test-u8-strcmp.h: New file.
1731 * tests/unistr/test-strcmp.h: New file.
1733 Tests for module 'unistr/u32-strncat'.
1734 * modules/unistr/u32-strncat-tests: New file.
1735 * tests/unistr/test-u32-strncat.c: New file.
1737 Tests for module 'unistr/u16-strncat'.
1738 * modules/unistr/u16-strncat-tests: New file.
1739 * tests/unistr/test-u16-strncat.c: New file.
1741 Tests for module 'unistr/u8-strncat'.
1742 * modules/unistr/u8-strncat-tests: New file.
1743 * tests/unistr/test-u8-strncat.c: New file.
1744 * tests/unistr/test-strncat.h: New file.
1746 Tests for module 'unistr/u32-strcat'.
1747 * modules/unistr/u32-strcat-tests: New file.
1748 * tests/unistr/test-u32-strcat.c: New file.
1750 Tests for module 'unistr/u16-strcat'.
1751 * modules/unistr/u16-strcat-tests: New file.
1752 * tests/unistr/test-u16-strcat.c: New file.
1754 Tests for module 'unistr/u8-strcat'.
1755 * modules/unistr/u8-strcat-tests: New file.
1756 * tests/unistr/test-u8-strcat.c: New file.
1757 * tests/unistr/test-strcat.h: New file.
1759 Tests for module 'unistr/u32-stpncpy'.
1760 * modules/unistr/u32-stpncpy-tests: New file.
1761 * tests/unistr/test-u32-stpncpy.c: New file.
1763 Tests for module 'unistr/u16-stpncpy'.
1764 * modules/unistr/u16-stpncpy-tests: New file.
1765 * tests/unistr/test-u16-stpncpy.c: New file.
1767 Tests for module 'unistr/u8-stpncpy'.
1768 * modules/unistr/u8-stpncpy-tests: New file.
1769 * tests/unistr/test-u8-stpncpy.c: New file.
1770 * tests/unistr/test-stpncpy.h: New file.
1772 Tests for module 'unistr/u32-strncpy'.
1773 * modules/unistr/u32-strncpy-tests: New file.
1774 * tests/unistr/test-u32-strncpy.c: New file.
1776 Tests for module 'unistr/u16-strncpy'.
1777 * modules/unistr/u16-strncpy-tests: New file.
1778 * tests/unistr/test-u16-strncpy.c: New file.
1780 Tests for module 'unistr/u8-strncpy'.
1781 * modules/unistr/u8-strncpy-tests: New file.
1782 * tests/unistr/test-u8-strncpy.c: New file.
1783 * tests/unistr/test-strncpy.h: New file.
1785 Tests for module 'unistr/u32-stpcpy'.
1786 * modules/unistr/u32-stpcpy-tests: New file.
1787 * tests/unistr/test-u32-stpcpy.c: New file.
1789 Tests for module 'unistr/u16-stpcpy'.
1790 * modules/unistr/u16-stpcpy-tests: New file.
1791 * tests/unistr/test-u16-stpcpy.c: New file.
1793 Tests for module 'unistr/u8-stpcpy'.
1794 * modules/unistr/u8-stpcpy-tests: New file.
1795 * tests/unistr/test-u8-stpcpy.c: New file.
1796 * tests/unistr/test-stpcpy.h: New file.
1798 Tests for module 'unistr/u32-strcpy'.
1799 * modules/unistr/u32-strcpy-tests: New file.
1800 * tests/unistr/test-u32-strcpy.c: New file.
1802 Tests for module 'unistr/u16-strcpy'.
1803 * modules/unistr/u16-strcpy-tests: New file.
1804 * tests/unistr/test-u16-strcpy.c: New file.
1806 Tests for module 'unistr/u8-strcpy'.
1807 * modules/unistr/u8-strcpy-tests: New file.
1808 * tests/unistr/test-u8-strcpy.c: New file.
1809 * tests/unistr/test-strcpy.h: New file.
1811 Tests for module 'unistr/u32-strnlen'.
1812 * modules/unistr/u32-strnlen-tests: New file.
1813 * tests/unistr/test-u32-strnlen.c: New file.
1815 Tests for module 'unistr/u16-strnlen'.
1816 * modules/unistr/u16-strnlen-tests: New file.
1817 * tests/unistr/test-u16-strnlen.c: New file.
1819 Tests for module 'unistr/u8-strnlen'.
1820 * modules/unistr/u8-strnlen-tests: New file.
1821 * tests/unistr/test-u8-strnlen.c: New file.
1822 * tests/unistr/test-strnlen.h: New file.
1824 Tests for module 'unistr/u32-strlen'.
1825 * modules/unistr/u32-strlen-tests: New file.
1826 * tests/unistr/test-u32-strlen.c: New file.
1828 Tests for module 'unistr/u16-strlen'.
1829 * modules/unistr/u16-strlen-tests: New file.
1830 * tests/unistr/test-u16-strlen.c: New file.
1832 Tests for module 'unistr/u8-strlen'.
1833 * modules/unistr/u8-strlen-tests: New file.
1834 * tests/unistr/test-u8-strlen.c: New file.
1836 Tests for module 'unistr/u32-prev'.
1837 * modules/unistr/u32-prev-tests: New file.
1838 * tests/unistr/test-u32-prev.c: New file.
1840 Tests for module 'unistr/u16-prev'.
1841 * modules/unistr/u16-prev-tests: New file.
1842 * tests/unistr/test-u16-prev.c: New file.
1844 Tests for module 'unistr/u8-prev'.
1845 * modules/unistr/u8-prev-tests: New file.
1846 * tests/unistr/test-u8-prev.c: New file.
1848 Tests for module 'unistr/u32-next'.
1849 * modules/unistr/u32-next-tests: New file.
1850 * tests/unistr/test-u32-next.c: New file.
1852 Tests for module 'unistr/u16-next'.
1853 * modules/unistr/u16-next-tests: New file.
1854 * tests/unistr/test-u16-next.c: New file.
1856 Tests for module 'unistr/u8-next'.
1857 * modules/unistr/u8-next-tests: New file.
1858 * tests/unistr/test-u8-next.c: New file.
1860 Tests for module 'unistr/u32-strmbtouc'.
1861 * modules/unistr/u32-strmbtouc-tests: New file.
1862 * tests/unistr/test-u32-strmbtouc.c: New file.
1864 Tests for module 'unistr/u16-strmbtouc'.
1865 * modules/unistr/u16-strmbtouc-tests: New file.
1866 * tests/unistr/test-u16-strmbtouc.c: New file.
1868 Tests for module 'unistr/u8-strmbtouc'.
1869 * modules/unistr/u8-strmbtouc-tests: New file.
1870 * tests/unistr/test-u8-strmbtouc.c: New file.
1872 Tests for module 'unistr/u32-strmblen'.
1873 * modules/unistr/u32-strmblen-tests: New file.
1874 * tests/unistr/test-u32-strmblen.c: New file.
1876 Tests for module 'unistr/u16-strmblen'.
1877 * modules/unistr/u16-strmblen-tests: New file.
1878 * tests/unistr/test-u16-strmblen.c: New file.
1880 Tests for module 'unistr/u8-strmblen'.
1881 * modules/unistr/u8-strmblen-tests: New file.
1882 * tests/unistr/test-u8-strmblen.c: New file.
1884 Tests for module 'unistr/u32-cpy-alloc'.
1885 * modules/unistr/u32-cpy-alloc-tests: New file.
1886 * tests/unistr/test-u32-cpy-alloc.c: New file.
1888 Tests for module 'unistr/u16-cpy-alloc'.
1889 * modules/unistr/u16-cpy-alloc-tests: New file.
1890 * tests/unistr/test-u16-cpy-alloc.c: New file.
1892 Tests for module 'unistr/u8-cpy-alloc'.
1893 * modules/unistr/u8-cpy-alloc-tests: New file.
1894 * tests/unistr/test-u8-cpy-alloc.c: New file.
1895 * tests/unistr/test-cpy-alloc.h: New file.
1897 Tests for module 'unistr/u32-mbsnlen'.
1898 * modules/unistr/u32-mbsnlen-tests: New file.
1899 * tests/unistr/test-u32-mbsnlen.c: New file.
1901 Tests for module 'unistr/u16-mbsnlen'.
1902 * modules/unistr/u16-mbsnlen-tests: New file.
1903 * tests/unistr/test-u16-mbsnlen.c: New file.
1905 Tests for module 'unistr/u8-mbsnlen'.
1906 * modules/unistr/u8-mbsnlen-tests: New file.
1907 * tests/unistr/test-u8-mbsnlen.c: New file.
1909 Tests for module 'unistr/u32-chr'.
1910 * modules/unistr/u32-chr-tests: New file.
1911 * tests/unistr/test-u32-chr.c: New file.
1913 Tests for module 'unistr/u16-chr'.
1914 * modules/unistr/u16-chr-tests: New file.
1915 * tests/unistr/test-u16-chr.c: New file.
1917 Tests for module 'unistr/u8-chr'.
1918 * modules/unistr/u8-chr-tests: New file.
1919 * tests/unistr/test-u8-chr.c: New file.
1920 * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
1922 Tests for module 'unistr/u32-cmp2'.
1923 * modules/unistr/u32-cmp2-tests: New file.
1924 * tests/unistr/test-u32-cmp2.c: New file.
1926 Tests for module 'unistr/u16-cmp2'.
1927 * modules/unistr/u16-cmp2-tests: New file.
1928 * tests/unistr/test-u16-cmp2.c: New file.
1930 Tests for module 'unistr/u8-cmp2'.
1931 * modules/unistr/u8-cmp2-tests: New file.
1932 * tests/unistr/test-u8-cmp2.c: New file.
1933 * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
1935 Tests for module 'unistr/u32-cmp'.
1936 * modules/unistr/u32-cmp-tests: New file.
1937 * tests/unistr/test-u32-cmp.c: New file.
1939 Tests for module 'unistr/u16-cmp'.
1940 * modules/unistr/u16-cmp-tests: New file.
1941 * tests/unistr/test-u16-cmp.c: New file.
1943 Tests for module 'unistr/u8-cmp'.
1944 * modules/unistr/u8-cmp-tests: New file.
1945 * tests/unistr/test-u8-cmp.c: New file.
1946 * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
1948 Tests for module 'unistr/u32-set'.
1949 * modules/unistr/u32-set-tests: New file.
1950 * tests/unistr/test-u32-set.c: New file.
1952 Tests for module 'unistr/u16-set'.
1953 * modules/unistr/u16-set-tests: New file.
1954 * tests/unistr/test-u16-set.c: New file.
1956 Tests for module 'unistr/u8-set'.
1957 * modules/unistr/u8-set-tests: New file.
1958 * tests/unistr/test-u8-set.c: New file.
1959 * tests/unistr/test-set.h: New file.
1961 Tests for module 'unistr/u32-move'.
1962 * modules/unistr/u32-move-tests: New file.
1963 * tests/unistr/test-u32-move.c: New file.
1965 Tests for module 'unistr/u16-move'.
1966 * modules/unistr/u16-move-tests: New file.
1967 * tests/unistr/test-u16-move.c: New file.
1969 Tests for module 'unistr/u8-move'.
1970 * modules/unistr/u8-move-tests: New file.
1971 * tests/unistr/test-u8-move.c: New file.
1972 * tests/unistr/test-move.h: New file.
1974 Tests for module 'unistr/u32-cpy'.
1975 * modules/unistr/u32-cpy-tests: New file.
1976 * tests/unistr/test-u32-cpy.c: New file.
1978 Tests for module 'unistr/u16-cpy'.
1979 * modules/unistr/u16-cpy-tests: New file.
1980 * tests/unistr/test-u16-cpy.c: New file.
1982 Tests for module 'unistr/u8-cpy'.
1983 * modules/unistr/u8-cpy-tests: New file.
1984 * tests/unistr/test-u8-cpy.c: New file.
1985 * tests/unistr/test-cpy.h: New file.
1987 2010-01-09 Bruno Haible <bruno@clisp.org>
1989 Tests for module 'unistr/u32-uctomb'.
1990 * modules/unistr/u32-uctomb-tests: New file.
1991 * tests/unistr/test-u32-uctomb.c: New file.
1993 Tests for module 'unistr/u16-uctomb'.
1994 * modules/unistr/u16-uctomb-tests: New file.
1995 * tests/unistr/test-u16-uctomb.c: New file.
1997 Tests for module 'unistr/u8-uctomb'.
1998 * modules/unistr/u8-uctomb-tests: New file.
1999 * tests/unistr/test-u8-uctomb.c: New file.
2001 Tests for module 'unistr/u32-mbtoucr'.
2002 * modules/unistr/u32-mbtoucr-tests: New file.
2003 * tests/unistr/test-u32-mbtoucr.c: New file.
2005 Tests for module 'unistr/u16-mbtoucr'.
2006 * modules/unistr/u16-mbtoucr-tests: New file.
2007 * tests/unistr/test-u16-mbtoucr.c: New file.
2009 Tests for module 'unistr/u8-mbtoucr'.
2010 * modules/unistr/u8-mbtoucr-tests: New file.
2011 * tests/unistr/test-u8-mbtoucr.c: New file.
2013 Tests for module 'unistr/u32-mbtouc'.
2014 * modules/unistr/u32-mbtouc-tests: New file.
2015 * tests/unistr/test-u32-mbtouc.c: New file.
2017 Tests for module 'unistr/u16-mbtouc'.
2018 * modules/unistr/u16-mbtouc-tests: New file.
2019 * tests/unistr/test-u16-mbtouc.c: New file.
2021 Tests for module 'unistr/u8-mbtouc'.
2022 * modules/unistr/u8-mbtouc-tests: New file.
2023 * tests/unistr/test-u8-mbtouc.c: New file.
2025 Tests for module 'unistr/u32-mbtouc-unsafe'.
2026 * modules/unistr/u32-mbtouc-unsafe-tests: New file.
2027 * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
2028 * tests/unistr/test-u32-mbtouc.h: New file.
2030 Tests for module 'unistr/u16-mbtouc-unsafe'.
2031 * modules/unistr/u16-mbtouc-unsafe-tests: New file.
2032 * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
2033 * tests/unistr/test-u16-mbtouc.h: New file.
2035 Tests for module 'unistr/u8-mbtouc-unsafe'.
2036 * modules/unistr/u8-mbtouc-unsafe-tests: New file.
2037 * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
2038 * tests/unistr/test-u8-mbtouc.h: New file.
2040 Tests for module 'unistr/u32-mblen'.
2041 * modules/unistr/u32-mblen-tests: New file.
2042 * tests/unistr/test-u32-mblen.c: New file.
2044 Tests for module 'unistr/u16-mblen'.
2045 * modules/unistr/u16-mblen-tests: New file.
2046 * tests/unistr/test-u16-mblen.c: New file.
2048 Tests for module 'unistr/u8-mblen'.
2049 * modules/unistr/u8-mblen-tests: New file.
2050 * tests/unistr/test-u8-mblen.c: New file.
2052 Tests for module 'unistr/u32-to-u16'.
2053 * modules/unistr/u32-to-u16-tests: New file.
2054 * tests/unistr/test-u32-to-u16.c: New file.
2056 Tests for module 'unistr/u32-to-u8'.
2057 * modules/unistr/u32-to-u8-tests: New file.
2058 * tests/unistr/test-u32-to-u8.c: New file.
2060 Tests for module 'unistr/u16-to-u32'.
2061 * modules/unistr/u16-to-u32-tests: New file.
2062 * tests/unistr/test-u16-to-u32.c: New file.
2064 Tests for module 'unistr/u16-to-u8'.
2065 * modules/unistr/u16-to-u8-tests: New file.
2066 * tests/unistr/test-u16-to-u8.c: New file.
2068 Tests for module 'unistr/u8-to-u32'.
2069 * modules/unistr/u8-to-u32-tests: New file.
2070 * tests/unistr/test-u8-to-u32.c: New file.
2072 Tests for module 'unistr/u8-to-u16'.
2073 * modules/unistr/u8-to-u16-tests: New file.
2074 * tests/unistr/test-u8-to-u16.c: New file.
2076 Tests for module 'unistr/u32-check'.
2077 * modules/unistr/u32-check-tests: New file.
2078 * tests/unistr/test-u32-check.c: New file.
2080 Tests for module 'unistr/u16-check'.
2081 * modules/unistr/u16-check-tests: New file.
2082 * tests/unistr/test-u16-check.c: New file.
2084 Tests for module 'unistr/u8-check'.
2085 * modules/unistr/u8-check-tests: New file.
2086 * tests/unistr/test-u8-check.c: New file.
2088 * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
2089 (category_equals): New function.
2090 (main): Add more tests.
2091 * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
2093 * tests/unictype/test-bidi_byname.c (main): Add more tests.
2095 2010-01-10 Bruno Haible <bruno@clisp.org>
2097 unistr/u*-strcoll: Try harder to distinguish different strings.
2098 * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
2099 compare s1 and s2 to see if they are different.
2101 2010-01-10 Bruno Haible <bruno@clisp.org>
2103 unistr/u*-stpncpy: Fix the return value.
2104 * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
2105 description of the return value consistent with stpncpy in glibc.
2106 * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
2107 written non-NUL unit.
2109 2010-01-10 Bruno Haible <bruno@clisp.org>
2111 unistr/u*-next: Add missing dependencies.
2112 * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
2113 * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
2114 * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
2116 2010-01-10 Bruno Haible <bruno@clisp.org>
2118 unistr/u8-mbsnlen: Fix return value for incomplete character.
2119 * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
2121 * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
2122 Remove unistr/u8-mblen.
2123 * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
2125 * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
2126 Remove unistr/u16-mblen.
2128 2010-01-10 Bruno Haible <bruno@clisp.org>
2130 wchar: Fix compilation error when <wchar.h> is used from coreutils.
2131 * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
2132 Reported by Brian Gough <bjg@gnu.org> and
2133 Chris Clayton <chris2553@googlemail.com> via
2134 Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
2136 2010-01-09 Bruno Haible <bruno@clisp.org>
2138 unistr/u16-to-u32: Reject invalid input.
2139 * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
2141 * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
2142 Remove unistr/u16-mbtouc.
2144 unistr/u16-to-u8: Reject invalid input.
2145 * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
2147 * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
2148 Remove unistr/u16-mbtouc.
2150 unistr/u8-to-u32: Reject invalid input.
2151 * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
2153 * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
2154 Remove unistr/u8-mbtouc.
2156 unistr/u8-to-u16: Reject invalid input.
2157 * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
2159 * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
2160 Remove unistr/u8-mbtouc.
2162 2010-01-09 Bruno Haible <bruno@clisp.org>
2164 Tests for module 'getlogin'.
2165 * modules/getlogin-tests: New file.
2166 * tests/test-getlogin.c: New file.
2168 New module 'getlogin'.
2169 * lib/unistd.in.h (getlogin): New declaration.
2170 * lib/getlogin.c: New file.
2171 * m4/getlogin.m4: New file.
2172 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
2174 * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
2176 * modules/getlogin: New file.
2177 * doc/posix-functions/getlogin.texi: Mention the new module.
2178 Reported by John W. Eaton <jwe@gnu.org>.
2180 2010-01-09 Bruno Haible <bruno@clisp.org>
2182 getlogin_r: Support for native Windows.
2183 * lib/getlogin_r.c: Include <windows.h>
2184 (getlogin_r): Implement for native Windows.
2185 * tests/test-getlogin_r.c (main): Also test with a huge buffer.
2186 Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
2187 via John W. Eaton <jwe@gnu.org>.
2189 2010-01-09 Bruno Haible <bruno@clisp.org>
2191 getlogin_r: Small fixes.
2192 * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
2194 * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
2195 before testing whether getlogin_r is declared. No need to set
2196 HAVE_DECL_GETLOGIN_R to 1.
2197 (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
2199 2010-01-09 Bruno Haible <bruno@clisp.org>
2201 * lib/unistd.in.h (getlogin_r): Add comment.
2203 2010-01-09 Bruno Haible <bruno@clisp.org>
2205 Tests for module 'getlogin_r'.
2206 * modules/getlogin_r-tests: New file.
2207 * tests/test-getlogin_r.c: New file.
2209 2010-01-09 Jim Meyering <meyering@redhat.com>
2211 maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
2212 * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
2213 also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
2215 2010-01-08 Simon Josefsson <simon@josefsson.org>
2217 * lib/dup2.c (rpl_dup2): Improve comment.
2219 2010-01-08 Eric Blake <ebb9@byu.net>
2221 maint.mk: allow packages to add makefile @@ exceptions
2222 * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
2223 (sc_makefile_check): Rename...
2224 (sc_makefile_at_at_check): ...to this, and use hook.
2226 dup2: work around mingw bug
2227 * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
2228 Reported by Simon Josefsson.
2230 2010-01-07 John W. Eaton <jwe@octave.org> (tiny change)
2232 glob: Fix C++ compilation.
2233 * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
2236 2010-01-07 Bruno Haible <bruno@clisp.org>
2238 Fix indentation of wctype.in.h, broken since 2007-01-06.
2239 * lib/wctype.in.h: Fix indentation of preprocessor directives.
2241 2010-01-07 Bruno Haible <bruno@clisp.org>
2243 mbslen: Avoid collision with system function.
2244 * lib/string.in.h [MirBSD]: Include <wchar.h>.
2245 (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
2246 * m4/mbslen.m4: New file.
2247 * modules/mbslen (Files): Add it.
2248 (configure.ac): Invoke gl_MBSLEN.
2249 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
2250 * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
2251 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
2252 via Ian Beckwith <ianb@erislabs.net>.
2254 2010-01-07 Bruno Haible <bruno@clisp.org>
2256 dirent: Document the last fix.
2257 * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
2259 2010-01-07 Bruno Haible <bruno@clisp.org>
2261 stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
2262 * lib/stdio.in.h: Include <sys/types.h> unconditionally.
2263 * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
2264 va_list are defined.
2265 * doc/posix-headers/stdio.texi: Document the bug of missing types.
2266 Reported by Eric Blake.
2268 2010-01-07 Bruno Haible <bruno@clisp.org>
2270 xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
2271 * modules/xlist (Depends-on): Add 'list',
2272 * modules/xoset (Depends-on): Add 'oset'.
2273 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
2275 2010-01-07 Bruno Haible <bruno@clisp.org>
2277 * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
2278 * doc/posix-functions/strncasecmp.texi: Likewise.
2280 2010-01-07 Bruno Haible <bruno@clisp.org>
2282 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
2284 2010-01-07 John W. Eaton <jwe@octave.org>
2286 wctype: allow C++ use
2287 * lib/wctype.in.h: Add extern "C" block for C++.
2289 2010-01-06 Eric Blake <ebb9@byu.net>
2291 maint.mk: detect incorrect GFDL usage
2292 * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
2294 2010-01-06 Jim Meyering <meyering@redhat.com>
2295 and Eric Blake <ebb9@byu.net>
2297 maint.mk: ignore multi-line copyright in NEWS
2298 * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
2300 2010-01-06 Eric Blake <ebb9@byu.net>
2302 select: add missing dependency
2303 * modules/select-tests (Depends-on): Move sockets dependency...
2304 * modules/select (Depends-on): ...here.
2305 Reported by Ian Beckwith.
2307 doc: regenerate INSTALL
2308 * doc/INSTALL: Reflect recent autoconf update.
2309 * doc/INSTALL.ISO: Likewise.
2310 * doc/INSTALL.UTF-8: Likewise.
2312 pread: fix compilation on glibc
2313 * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
2314 Reported by Ralf Wildenhues.
2316 dirent: fix test failure
2317 * lib/dirent.in.h (includes): Guarantee ino_t.
2318 Reported by Ralf Wildenhues.
2320 2010-01-06 Petr Salinger <Petr.Salinger@seznam.cz> (tiny change)
2322 linkat, renameat: avoid bad free
2323 * lib/at-func2.c (at_func2): Fix typo.
2324 Reported via Ian Beckwith, from http://bugs.debian.org/561117.
2326 2010-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2328 cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
2329 * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
2330 to avoid failure of symlink test later.
2332 2010-01-06 Eric Blake <ebb9@byu.net>
2334 stdio, unistd: guarantee ssize_t
2335 * lib/unistd.in.h (includes): Ensure that types required by POSIX
2336 2008 are exposed when needed.
2337 * lib/stdio.in.h (includes): Likewise.
2338 Reported by Ralf Wildenhues.
2340 2010-01-06 Paolo Bonzini <bonzini@gnu.org>
2342 nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
2343 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
2344 AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
2346 2010-01-06 Jim Meyering <meyering@redhat.com>
2348 readtokens: this module *does* require xalloc.h
2349 It uses only functions that were omitted by the old syntax-check rule.
2350 * lib/readtokens.c: Include "xalloc.h" once again.
2351 * modules/readtokens (Depends-on): Add xalloc.
2352 This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
2354 2010-01-05 Eric Blake <ebb9@byu.net>
2356 maint: support 'make announcement' from a VPATH build
2357 * top/maint.mk (announcement): Look for correct NEWS file.
2359 2010-01-05 Aurelien Jarno <aurelien@aurel32.net> (tiny change)
2361 utimens (fdutimens): ignore a negative FD, per contract
2362 * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
2363 when we have a valid file descriptor. Otherwise, using a brand
2364 new glibc (with just-patched futimens that now fails with EBADF)
2365 would cause this function to fail with ENOSYS.
2366 Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
2367 See also http://bugzilla.redhat.com/552320.
2369 2010-01-05 Eric Blake <ebb9@byu.net>
2371 strcase: document what it provides
2372 * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
2374 * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
2375 Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
2377 2010-01-05 Jim Meyering <meyering@redhat.com>
2379 maint: remove useless inclusions of "xalloc.h"
2380 * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2381 * lib/readtokens.c: Likewise.
2382 * lib/same.c: Likewise.
2383 * modules/getloadavg (Depends-on): Remove xalloc.
2384 * modules/readtokens: Likewise.
2385 * modules/same: Likewise.
2387 maint.mk: include 4 more function names in alloca.h-checking regexp
2388 * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
2389 regexp. Before, we would give a false-positive (saying alloca.h
2390 is included unnecessarily) when the only uses involved omitted symbols.
2392 xalloc.h: use consistent formatting
2393 * lib/xalloc.h: Move declarations to start in the first column.
2395 2010-01-05 Eric Blake <ebb9@byu.net>
2398 * lib/mkdir.c (includes): Drop unused header.
2399 Reported by John W. Eaton.
2401 2010-01-04 Jim Meyering <meyering@redhat.com>
2403 nl_langinfo: avoid configure-time syntax error
2404 * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
2405 for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
2406 the empty string. Don't let that provoke a shell syntax error.
2408 regcomp, regexec, fnmatch: avoid array bounds read error
2409 * lib/regcomp.c (build_equiv_class): From glibc:
2410 Use only the low 24 bits of a findidx return value as an index
2411 into the weights array. Patch by Ulrich Drepper:
2412 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
2413 * lib/regexec.c (check_node_accept_bytes): Likewise.
2414 * lib/fnmatch_loop.c (FCT): Likewise.
2416 regcomp: skip collseq lookup when there are no rules
2417 * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
2418 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
2420 regcomp: recognize ill-formed { } expressions
2421 * lib/regcomp.c (parse_dup_op): From glibc:
2422 http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
2424 regcomp: fix typo in comment
2425 * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
2426 s/satisfy/satisfies/.
2428 regcomp: sync from glibc: remove dead store
2429 * lib/regcomp.c (duplicate_node_closure): Remove useless
2430 search_duplicated_node call and dead store.
2432 regcomp: sync from glibc; always use nl_langinfo
2433 * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
2434 now that gnulib provides it. Recognize UTF8 as well as UTF-8.
2435 * modules/regex (Depends-on): Add nl_langinfo.
2437 2010-01-04 Eric Blake <ebb9@byu.net>
2439 fdopendir: fix configure test
2440 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
2442 2010-01-01 Bruno Haible <bruno@clisp.org>
2444 wchar: Remove unused configure check.
2445 * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
2447 2010-01-01 Eric Blake <ebb9@byu.net>
2449 headers: make check of system header explicit
2450 * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
2451 gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
2453 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
2454 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2455 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
2456 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
2458 * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
2460 Suggested by Bruno Haible.
2462 2010-01-01 Jim Meyering <meyering@redhat.com>
2464 ChangeLog: tweak to eliminate unnecessary copyright line
2465 * ChangeLog: Remove a copyright line that was mistakenly updated
2466 by today's update-copyright run. Reported by Eric Blake.
2468 test-update-copyright: don't let envvar setting cause test failure
2469 * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
2471 2010-01-01 Bruno Haible <bruno@clisp.org>
2473 localename: Avoid gcc warning.
2474 * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
2475 function if it is not used.
2477 2010-01-01 Jim Meyering <meyering@redhat.com>
2479 update nearly all FSF copyright year lists to include 2010
2480 Use the same procedure as for 2009, outlined in
2481 http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
2483 version-etc: set COPYRIGHT_YEAR to 2010
2484 * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
2486 2009-12-31 Eric Blake <ebb9@byu.net>
2488 doc: correct availability of cygwin 1.5.x getopt
2489 * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
2491 * doc/posix-functions/opterr.texi (opterr): Likewise.
2492 * doc/posix-functions/optind.texi (optind): Likewise.
2493 * doc/posix-functions/optopt.texi (optopt): Likewise.
2494 * doc/posix-functions/tzname.texi (tzname): Likewise.
2496 openat: update maintainer
2497 * modules/openat (Maintainer): Add myself.
2499 utimens: avoid shadowing warning
2500 * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
2501 buffers into one, to avoid shadowing, as well as avoiding a
2503 Reported by Jim Meyering.
2505 test-dup2: avoid compiler warning
2506 * tests/test-dup2.c (is_inheritable): Only define if used.
2508 2010-01-01 Bruno Haible <bruno@clisp.org>
2510 vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
2511 * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
2512 defined, use wctomb instead of wcrtomb.
2514 2010-01-01 Bruno Haible <bruno@clisp.org>
2516 iconv: Reject native Solaris iconv.
2517 * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
2518 * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
2520 2009-12-31 Bruno Haible <bruno@clisp.org>
2522 * tests/test-signal.c (main): Remove test of 'SIG'.
2524 2009-12-31 Bruno Haible <bruno@clisp.org>
2526 spawn: Fix incomplete fix.
2527 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2528 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2529 warnings for GNULIB_POSIXCHECK again.
2530 Reported by Eric Blake.
2532 2009-12-31 Bruno Haible <bruno@clisp.org>
2534 Avoid namespace pollution on glibc systems.
2535 * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
2536 * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
2537 * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
2540 2009-12-31 Bruno Haible <bruno@clisp.org>
2542 * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
2543 (gl_REPLACE_WCHAR_H): Turn into a no-op.
2544 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
2545 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
2546 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
2547 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
2548 * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
2550 2009-12-31 Bruno Haible <bruno@clisp.org>
2552 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
2553 gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
2556 2009-12-31 Bruno Haible <bruno@clisp.org>
2558 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
2561 2009-12-31 Bruno Haible <bruno@clisp.org>
2563 spawn: Fix misapplied patch.
2564 * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
2565 posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
2566 warnings for GNULIB_POSIXCHECK.
2568 2009-12-31 Bruno Haible <bruno@clisp.org>
2570 times: Update after sys_times changed.
2571 * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
2572 * modules/times (Files): Add it.
2573 (configure.ac): Invoke gl_FUNC_TIMES.
2575 2009-12-31 Bruno Haible <bruno@clisp.org>
2577 Use AC_C_INLINE where necessary.
2578 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
2579 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
2580 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
2581 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
2582 * m4/mbfile.m4 (gl_MBFILE): Likewise.
2583 * m4/mbiter.m4 (gl_MBITER): Likewise.
2584 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
2585 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
2586 * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
2587 * modules/u64 (configure.ac): Likewise.
2589 2009-12-31 Bruno Haible <bruno@clisp.org>
2591 Use AC_C_INLINE instead of module 'inline' where possible.
2592 * modules/inline (Description): Clarify purpose.
2593 * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
2594 * modules/count-one-bits (Depends-on): Remove inline.
2595 * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
2596 * modules/openat (Depends-on): Remove inline.
2597 * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
2598 instead of depending on module 'inline'.
2599 * modules/filevercmp (Depends-on, configure.ac): Likewise.
2600 * modules/unicase/cased (Depends-on, configure.ac): Likewise.
2601 * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
2602 * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
2603 * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
2604 * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
2605 * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
2606 * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
2607 * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
2608 * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
2609 * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
2610 * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
2611 * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
2612 * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
2613 * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
2614 * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
2615 * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
2616 * modules/unictype/property-alphabetic (Depends-on, configure.ac):
2618 * modules/unictype/property-ascii-hex-digit (Depends-on,
2619 configure.ac): Likewise.
2620 * modules/unictype/property-bidi-arabic-digit (Depends-on,
2621 configure.ac): Likewise.
2622 * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
2623 configure.ac): Likewise.
2624 * modules/unictype/property-bidi-block-separator (Depends-on,
2625 configure.ac): Likewise.
2626 * modules/unictype/property-bidi-boundary-neutral (Depends-on,
2627 configure.ac): Likewise.
2628 * modules/unictype/property-bidi-common-separator (Depends-on,
2629 configure.ac): Likewise.
2630 * modules/unictype/property-bidi-control (Depends-on, configure.ac):
2632 * modules/unictype/property-bidi-embedding-or-override (Depends-on,
2633 configure.ac): Likewise.
2634 * modules/unictype/property-bidi-eur-num-separator (Depends-on,
2635 configure.ac): Likewise.
2636 * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
2637 configure.ac): Likewise.
2638 * modules/unictype/property-bidi-european-digit (Depends-on,
2639 configure.ac): Likewise.
2640 * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
2641 configure.ac): Likewise.
2642 * modules/unictype/property-bidi-left-to-right (Depends-on,
2643 configure.ac): Likewise.
2644 * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
2645 configure.ac): Likewise.
2646 * modules/unictype/property-bidi-other-neutral (Depends-on,
2647 configure.ac): Likewise.
2648 * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
2650 * modules/unictype/property-bidi-segment-separator (Depends-on,
2651 configure.ac): Likewise.
2652 * modules/unictype/property-bidi-whitespace (Depends-on,
2653 configure.ac): Likewise.
2654 * modules/unictype/property-combining (Depends-on, configure.ac):
2656 * modules/unictype/property-composite (Depends-on, configure.ac):
2658 * modules/unictype/property-currency-symbol (Depends-on,
2659 configure.ac): Likewise.
2660 * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
2661 * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
2663 * modules/unictype/property-default-ignorable-code-point (Depends-on,
2664 configure.ac): Likewise.
2665 * modules/unictype/property-deprecated (Depends-on, configure.ac):
2667 * modules/unictype/property-diacritic (Depends-on, configure.ac):
2669 * modules/unictype/property-extender (Depends-on, configure.ac):
2671 * modules/unictype/property-format-control (Depends-on, configure.ac):
2673 * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
2675 * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
2677 * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
2679 * modules/unictype/property-hex-digit (Depends-on, configure.ac):
2681 * modules/unictype/property-hyphen (Depends-on, configure.ac):
2683 * modules/unictype/property-id-continue (Depends-on, configure.ac):
2685 * modules/unictype/property-id-start (Depends-on, configure.ac):
2687 * modules/unictype/property-ideographic (Depends-on, configure.ac):
2689 * modules/unictype/property-ids-binary-operator (Depends-on,
2690 configure.ac): Likewise.
2691 * modules/unictype/property-ids-trinary-operator (Depends-on,
2692 configure.ac): Likewise.
2693 * modules/unictype/property-ignorable-control (Depends-on,
2694 configure.ac): Likewise.
2695 * modules/unictype/property-iso-control (Depends-on, configure.ac):
2697 * modules/unictype/property-join-control (Depends-on, configure.ac):
2699 * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
2701 * modules/unictype/property-line-separator (Depends-on, configure.ac):
2703 * modules/unictype/property-logical-order-exception (Depends-on,
2704 configure.ac): Likewise.
2705 * modules/unictype/property-lowercase (Depends-on, configure.ac):
2707 * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
2708 * modules/unictype/property-non-break (Depends-on, configure.ac):
2710 * modules/unictype/property-not-a-character (Depends-on, configure.ac):
2712 * modules/unictype/property-numeric (Depends-on, configure.ac):
2714 * modules/unictype/property-other-alphabetic (Depends-on,
2715 configure.ac): Likewise.
2716 * modules/unictype/property-other-default-ignorable-code-point
2717 (Depends-on, configure.ac): Likewise.
2718 * modules/unictype/property-other-grapheme-extend (Depends-on,
2719 configure.ac): Likewise.
2720 * modules/unictype/property-other-id-continue (Depends-on,
2721 configure.ac): Likewise.
2722 * modules/unictype/property-other-id-start (Depends-on, configure.ac):
2724 * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
2726 * modules/unictype/property-other-math (Depends-on, configure.ac):
2728 * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
2730 * modules/unictype/property-paired-punctuation (Depends-on,
2731 configure.ac): Likewise.
2732 * modules/unictype/property-paragraph-separator (Depends-on,
2733 configure.ac): Likewise.
2734 * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
2736 * modules/unictype/property-pattern-white-space (Depends-on,
2737 configure.ac): Likewise.
2738 * modules/unictype/property-private-use (Depends-on, configure.ac):
2740 * modules/unictype/property-punctuation (Depends-on, configure.ac):
2742 * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
2744 * modules/unictype/property-radical (Depends-on, configure.ac):
2746 * modules/unictype/property-sentence-terminal (Depends-on,
2747 configure.ac): Likewise.
2748 * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
2750 * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
2751 * modules/unictype/property-terminal-punctuation (Depends-on,
2752 configure.ac): Likewise.
2753 * modules/unictype/property-titlecase (Depends-on, configure.ac):
2755 * modules/unictype/property-unassigned-code-value (Depends-on,
2756 configure.ac): Likewise.
2757 * modules/unictype/property-unified-ideograph (Depends-on,
2758 configure.ac): Likewise.
2759 * modules/unictype/property-uppercase (Depends-on, configure.ac):
2761 * modules/unictype/property-variation-selector (Depends-on,
2762 configure.ac): Likewise.
2763 * modules/unictype/property-white-space (Depends-on, configure.ac):
2765 * modules/unictype/property-xid-continue (Depends-on, configure.ac):
2767 * modules/unictype/property-xid-start (Depends-on, configure.ac):
2769 * modules/unictype/property-zero-width (Depends-on, configure.ac):
2771 * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
2772 * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
2775 2009-12-31 Bruno Haible <bruno@clisp.org>
2777 Remove unnecessary AC_C_INLINE invocation.
2778 * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
2781 2009-12-31 Jim Meyering <meyering@redhat.com>
2783 maint.mk: don't require explicit gpg_key_ID in cfg.mk
2784 * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
2785 With this change, we can all remove the gpg_key_ID = ... definition
2786 from our respective cfg.mk files.
2788 maint.mk: create announcement template in ~/, not in /tmp
2789 * top/maint.mk (emit_upload_commands): Adjust.
2790 (release-prep): Emit into ~/announce-..., not /tmp/announce-...
2791 Remove temporary file, .ci-msg.
2793 2009-12-31 Eric Blake <ebb9@byu.net>
2795 link-warning: always build headers with link warnings
2796 * modules/arpa_inet (Makefile.am): Always build replacement
2798 * modules/ctype (Makefile.am): Likewise.
2799 * modules/dirent (Makefile.am): Likewise.
2800 * modules/inttypes (Makefile.am): Likewise.
2801 * modules/langinfo (Makefile.am): Likewise.
2802 * modules/locale (Makefile.am): Likewise.
2803 * modules/spawn (Makefile.am): Likewise.
2804 * modules/sys_file (Makefile.am): Likewise.
2805 * modules/sys_ioctl (Makefile.am): Likewise.
2806 * modules/sys_select (Makefile.am): Likewise.
2807 * modules/sys_socket (Makefile.am): Likewise.
2808 * modules/sys_times (Makefile.am): Likewise.
2809 * modules/sys_utsname (Makefile.am): Likewise.
2810 * modules/sys_wait (Makefile.am): Likewise.
2811 * modules/wchar (Makefile.am): Likewise.
2812 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
2813 (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
2814 * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
2815 * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
2816 * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
2818 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
2819 * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
2820 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
2822 * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
2824 * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
2825 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
2826 (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
2827 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2828 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
2829 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2830 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2831 * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
2832 (gl_WCHAR_H_DEFAULTS): Likewise.
2834 2009-12-31 Eric Blake <ebb9@byu.net>
2836 signal, spawn: use link warnings
2837 * lib/signal.in.h (sigset_t): Make unconditional.
2838 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
2839 (sigpending, sigprocmask, sigaction): Add link warnings.
2840 * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
2841 (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
2842 (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
2843 (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
2844 (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
2845 (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
2846 (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
2847 (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
2848 (posix_spawn_file_actions_destroy)
2849 (posix_spawn_file_actions_addopen)
2850 (posix_spawn_file_actions_addclose)
2851 (posix_spawwn_file_actions_adddup2): Likewise.
2852 * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
2853 * tests/test-signal.c (main): Enhance test.
2855 spawn: improve wrapper support
2856 * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
2857 (gl_SPAWN_H_DEFAULTS): New defaults.
2858 * modules/spawn (Makefile.am): Substitute them.
2859 * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
2860 Only declare if missing or broken.
2862 sys_times, sys_utsname: use include_next
2863 * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
2865 (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
2866 * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
2867 (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
2868 * modules/sys_times (Depends-on): Add include_next.
2869 (Makefile.am): Substitute additional values.
2870 * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
2871 * lib/sys_times.in.h (includes): Include native header, if
2873 * lib/sys_utsname.in.h (includes): Likewise.
2874 * tests/test-sys_times.c (main): Enhance test.
2876 fdutimensat: revert prior patch
2877 * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
2879 Reported by Bruno Haible.
2881 2009-12-30 Eric Blake <ebb9@byu.net>
2883 sys_wait: drop link-warning dependency
2884 * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
2885 link-warning efforts.
2886 * lib/sys_wait.in.h: Likewise.
2888 fdutimensat: remove bogus dependency
2889 * modules/fdutimensat (Depends-on): Drop inline.
2892 * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
2894 2009-12-30 Bruno Haible <bruno@clisp.org>
2896 Fix compilation error with Solaris cc.
2897 * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
2898 * lib/unicase/u16-is-invariant.c: Likewise.
2899 * lib/unicase/u32-is-invariant.c: Likewise.
2900 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
2902 2009-12-30 Bruno Haible <bruno@clisp.org>
2905 * tests/test-localename.c (test_locale_name_thread): Skip unavailable
2907 Reported by Simon Josefsson <simon@josefsson.org>.
2909 2009-12-30 Bruno Haible <bruno@clisp.org>
2911 Fix compilation error on most platforms.
2912 * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
2913 Reported by Simon Josefsson <simon@josefsson.org>
2914 and Nelson H. F. Beebe <beebe@math.utah.edu>.
2916 2009-12-30 Eric Blake <ebb9@byu.net>
2918 futimens, utimensat: work around ntfs-3g bug
2919 * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
2920 a ctime bug is present, and expand workaround to cover ntfs-3g.
2921 * lib/utimens.c (fdutimens, lutimens): Likewise.
2922 (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
2923 (validate_timespec): Adjust return value.
2924 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
2925 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
2926 Reported by ctrn3e8 <ctrn3e8@gmail.com>.
2928 2009-12-29 Eric Blake <ebb9@byu.net>
2930 link-warning: make usage consistent
2931 * modules/ctype (Depends-on): Add link-warning.
2932 (Makefile.am): Update rules accordingly.
2933 * modules/langinfo (Depends-on, Makefile.am): Likewise.
2934 * modules/locale (Depends-on, Makefile.am): Likewise.
2935 * modules/sys_file (Makefile.am): Likewise.
2936 * modules/getopt-posix (Makefile.am): Delete unused link warning
2938 * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
2939 * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
2940 * lib/locale.in.h (GL_LINK_WARNING): Likewise.
2941 * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
2943 stdio: remove unused variables
2944 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
2945 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
2946 * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
2948 tests: test more substitute headers
2949 * modules/ctype-tests: New file.
2950 * modules/dirent-tests: Likewise.
2951 * modules/spawn-tests: Likewise.
2952 * modules/sys_file-tests: Likewise.
2953 * modules/sys_ioctl-tests: Likewise.
2954 * modules/sys_wait-tests: Likewise.
2955 * tests/test-ctype.c: Likewise.
2956 * tests/test-dirent.c: Likewise.
2957 * tests/test-spawn.c: Likewise.
2958 * tests/test-sys_file.c: Likewise.
2959 * tests/test-sys_ioctl.c: Likewise.
2960 * tests/test-sys_wait.c: Likewise.
2961 * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
2962 * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
2963 whether or not flock is in use.
2965 tests: remove License section from module
2966 * modules/arpa_inet-tests: Remove unneeded section.
2967 * modules/byteswap-tests: Likewise.
2968 * modules/ceilf-tests: Likewise.
2969 * modules/ceill-tests: Likewise.
2970 * modules/crypto/des-tests: Likewise.
2971 * modules/crypto/gc-arcfour-tests: Likewise.
2972 * modules/crypto/gc-arctwo-tests: Likewise.
2973 * modules/crypto/gc-des-tests: Likewise.
2974 * modules/crypto/gc-hmac-md5-tests: Likewise.
2975 * modules/crypto/gc-hmac-sha1-tests: Likewise.
2976 * modules/crypto/gc-md2-tests: Likewise.
2977 * modules/crypto/gc-md4-tests: Likewise.
2978 * modules/crypto/gc-md5-tests: Likewise.
2979 * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
2980 * modules/crypto/gc-rijndael-tests: Likewise.
2981 * modules/crypto/gc-sha1-tests: Likewise.
2982 * modules/crypto/gc-tests: Likewise.
2983 * modules/crypto/md2-tests: Likewise.
2984 * modules/crypto/md4-tests: Likewise.
2985 * modules/fcntl-h-tests: Likewise.
2986 * modules/floorf-tests: Likewise.
2987 * modules/floorl-tests: Likewise.
2988 * modules/frexp-nolibm-tests: Likewise.
2989 * modules/frexp-tests: Likewise.
2990 * modules/frexpl-nolibm-tests: Likewise.
2991 * modules/frexpl-tests: Likewise.
2992 * modules/getaddrinfo-tests: Likewise.
2993 * modules/inttypes-tests: Likewise.
2994 * modules/isfinite-tests: Likewise.
2995 * modules/isinf-tests: Likewise.
2996 * modules/ldexpl-tests: Likewise.
2997 * modules/locale-tests: Likewise.
2998 * modules/math-tests: Likewise.
2999 * modules/netdb-tests: Likewise.
3000 * modules/netinet_in-tests: Likewise.
3001 * modules/printf-frexp-tests: Likewise.
3002 * modules/printf-frexpl-tests: Likewise.
3003 * modules/priv-set-tests: Likewise.
3004 * modules/random_r-tests: Likewise.
3005 * modules/round-tests: Likewise.
3006 * modules/roundf-tests: Likewise.
3007 * modules/roundl-tests: Likewise.
3008 * modules/search-tests: Likewise.
3009 * modules/select-tests: Likewise.
3010 * modules/signal-tests: Likewise.
3011 * modules/stdbool-tests: Likewise.
3012 * modules/stddef-tests: Likewise.
3013 * modules/stdint-tests: Likewise.
3014 * modules/stdio-tests: Likewise.
3015 * modules/stdlib-tests: Likewise.
3016 * modules/string-tests: Likewise.
3017 * modules/strings-tests: Likewise.
3018 * modules/sys_select-tests: Likewise.
3019 * modules/sys_socket-tests: Likewise.
3020 * modules/sys_stat-tests: Likewise.
3021 * modules/sys_time-tests: Likewise.
3022 * modules/sys_utsname-tests: Likewise.
3023 * modules/sysexits-tests: Likewise.
3024 * modules/time-tests: Likewise.
3025 * modules/trunc-tests: Likewise.
3026 * modules/truncf-tests: Likewise.
3027 * modules/truncl-tests: Likewise.
3028 * modules/tsearch-tests: Likewise.
3029 * modules/unistd-tests: Likewise.
3030 * modules/wchar-tests: Likewise.
3031 * modules/wctype-tests: Likewise.
3033 tests: fix license on several tests
3034 * tests/test-des.c: Update to GPLv3+.
3035 * tests/test-flock.c: Likewise.
3036 * tests/test-fsync.c: Likewise.
3037 * tests/test-futimens.h: Likewise.
3038 * tests/test-gc-arcfour.c: Likewise.
3039 * tests/test-gc-arctwo.c: Likewise.
3040 * tests/test-gc-des.c: Likewise.
3041 * tests/test-gc-hmac-md5.c: Likewise.
3042 * tests/test-gc-hmac-sha1.c: Likewise.
3043 * tests/test-gc-md2.c: Likewise.
3044 * tests/test-gc-md4.c: Likewise.
3045 * tests/test-gc-md5.c: Likewise.
3046 * tests/test-gc-pbkdf2-sha1.c: Likewise.
3047 * tests/test-gc-rijndael.c: Likewise.
3048 * tests/test-gc-sha1.c: Likewise.
3049 * tests/test-gc.c: Likewise.
3050 * tests/test-getcwd.c: Likewise.
3051 * tests/test-link.c: Likewise.
3052 * tests/test-link.h: Likewise.
3053 * tests/test-lutimens.h: Likewise.
3054 * tests/test-md2.c: Likewise.
3055 * tests/test-md4.c: Likewise.
3056 * tests/test-mkdir.h: Likewise.
3057 * tests/test-rename.c: Likewise.
3058 * tests/test-rename.h: Likewise.
3059 * tests/test-safe-alloc.c: Likewise.
3060 * tests/test-utimens-common.h: Likewise.
3061 * tests/test-utimens.h: Likewise.
3063 maint: sync license texts
3064 * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
3065 * doc/gpl-3.0.texi: Revert copyright year update.
3066 * doc/lgpl-3.0.texi: Likewise.
3068 2009-12-29 Jim Meyering <meyering@redhat.com>
3070 update nearly all FSF copyright year lists to include 2009
3071 The files named by the following are exempted:
3072 grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
3073 test -f "$dst" && { echo "$dst"; continue; }
3074 test -d "$dst" || continue
3075 echo "$dst"/$(basename "$src")
3077 git ls-files tests/unictype >> exempt
3078 In the remaining files, convert to all-interval notation if
3079 - there is already at least one year interval like 2000-2003
3080 - the file is maintained by me
3081 - the file is in lib/uni*/, where that style already prevails
3082 Otherwise, use update-copyright's default.
3084 2009-12-29 Simon Josefsson <simon@josefsson.org>
3085 and Eric Blake <ebb9@byu.net>
3087 tests: don't require debug system() to pass
3088 * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
3089 * tests/test-rmdir.h (test_rmdir_func): Likewise.
3090 * tests/test-unlink.h (test_unlink_func): Likewise.
3091 * tests/test-fstatat.c (main): ...into callers.
3092 * tests/test-lstat.c (main): Likewise.
3093 * tests/test-rmdir.c (main): Likewise.
3094 * tests/test-unlink.c (main): Likewise.
3095 * tests/test-unlinkat.c (main): Likewise.
3096 * tests/test-areadlink-with-size.c (main): Don't require a
3097 debug-only system call to pass, aiding cross-testing to mingw.
3098 * tests/test-areadlink.c (main): Likewise.
3099 * tests/test-areadlinkat-with-size.c (main): Likewise.
3100 * tests/test-areadlinkat.c (main): Likewise.
3101 * tests/test-canonicalize-lgpl.c (main): Likewise.
3102 * tests/test-canonicalize.c (main): Likewise.
3103 * tests/test-chown.c (main): Likewise.
3104 * tests/test-fchownat.c (main): Likewise.
3105 * tests/test-lchown.c (main): Likewise.
3106 * tests/test-fdutimensat.c (main): Likewise.
3107 * tests/test-futimens.c (main): Likewise.
3108 * tests/test-link.c (main): Likewise.
3109 * tests/test-linkat.c (main): Likewise.
3110 * tests/test-mkdir.c (main): Likewise.
3111 * tests/test-mkdirat.c (main): Likewise.
3112 * tests/test-mkfifo.c (main): Likewise.
3113 * tests/test-mkfifoat.c (main): Likewise.
3114 * tests/test-mknod.c (main): Likewise.
3115 * tests/test-readlink.c (main): Likewise.
3116 * tests/test-remove.c (main): Likewise.
3117 * tests/test-rename.c (main): Likewise.
3118 * tests/test-renameat.c (main): Likewise.
3119 * tests/test-symlink.c (main): Likewise.
3120 * tests/test-symlinkat.c (main): Likewise.
3121 * tests/test-utimens.c (main): Likewise.
3122 * tests/test-utimensat.c (main): Likewise.
3124 2009-12-29 Simon Josefsson <simon@josefsson.org>
3126 * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
3127 on $(UNUSED_PARAMETER_H) to avoid build failure.
3129 2009-12-28 Jim Meyering <meyering@redhat.com>
3131 update-copyright: you may specify a max. line length other than 72
3132 * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
3134 maint: use consistent FSF copyright line syntax
3135 * lib/posixtm.c: Add missing comma in FSF copyright line.
3136 * lib/posixtm.h: Likewise.
3137 * lib/getugroups.c: Add missing ", Inc.".
3139 pmccabe2html: emit consistent FSF copyright; remove trailing blanks
3140 * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
3141 FSF copyright line. Remove trailing blanks.
3143 2009-12-28 Eric Blake <ebb9@byu.net>
3145 test-dup2: reduce dependencies
3146 * modules/cloexec (Configure.ac): Set witness.
3147 * modules/dup2-tests (Depends-on): Drop cloexec.
3148 * tests/test-dup2.c (main): Skip portion of test if cloexec module
3150 Suggested by Bruno Haible.
3152 2009-12-26 Bruno Haible <bruno@clisp.org>
3154 Remove an unneeded dependency.
3155 * modules/fseterr (Depends-on): Remove dup2.
3157 2009-12-26 Eric Blake <ebb9@byu.net>
3159 tests: use macros.h in more places
3160 * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
3161 (ASSERT_STREAM): Provide default of stderr.
3162 * tests/test-dirent-safer.c: Include macros.h, using alternate
3163 stream for assertions.
3164 * tests/test-dup-safer.c: Likewise.
3165 * tests/test-freopen-safer.c: Likewise.
3166 * tests/test-getopt.c: Likewise.
3167 * tests/test-openat-safer.c: Likewise.
3168 * tests/test-pipe.c: Likewise.
3169 * tests/test-popen-safer.c: Likewise.
3170 * modules/dirent-safer-tests (Files): Include macros.h.
3171 * modules/unistd-safer-tests (Files): Likewise.
3172 * modules/freopen-safer-tests (Files): Likewise.
3173 * modules/getopt-posix-tests (Files): Likewise.
3174 * modules/openat-safer-tests (Files): Likewise.
3175 * modules/pipe-tests (Files): Likewise.
3177 2009-12-26 Bruno Haible <bruno@clisp.org>
3179 javacomp: Portability fix.
3180 * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
3181 that it also works on Solaris.
3183 2009-12-26 Bruno Haible <bruno@clisp.org>
3185 localename: Fix storage allocation of gl_locale_name_thread's result.
3186 * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
3187 HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
3188 all platforms that have 'uselocale'.
3189 (gl_locale_name_thread_unsafe): New function, extracted from
3190 gl_locale_name_thread.
3191 (gl_locale_name_thread): Call struniq on all platforms that have
3193 * tests/test-localename.c (test_locale_name_thread): Check that the
3194 resulting strings are permanently allocated.
3195 * modules/localename-tests (Depends-on): Add strdup.
3197 2009-12-26 Bruno Haible <bruno@clisp.org>
3199 * tests/test-localename.c (categories): Fill in the strings.
3201 2009-12-26 Jim Meyering <meyering@redhat.com>
3203 isdir: complete the removal of m4/isdir.m4
3204 * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
3206 isdir: clean up, since at least grep still uses it
3207 * lib/isdir.c: Include "isdir.h".
3208 (S_ISDIR): Remove now-unneeded definition.
3209 * modules/isdir (Files): Add lib/isdir.h.
3210 * lib/isdir.h: New file, with declaration.
3211 * m4/isdir.m4: Remove file -- unneeded.
3213 2009-12-25 Bruno Haible <bruno@clisp.org>
3215 selinux-h: Make generated .h files standalone.
3216 * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
3217 definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
3218 * lib/se-selinux.in.h: Likewise.
3219 * modules/selinux-h (Depends-on): Add unused-parameter.
3220 (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
3221 selinux/selinux.h and selinux/context.h.
3222 Suggested by Eric Blake.
3224 2009-12-25 Bruno Haible <bruno@clisp.org>
3226 Move gl_FCNTL_O_FLAGS to a separate .m4 file.
3227 * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
3228 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
3229 * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
3230 * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
3232 2009-12-24 Bruno Haible <bruno@clisp.org>
3234 openat: Fix warning.
3235 * lib/openat-proc.c: Include <unistd.h>.
3237 2009-12-24 Bruno Haible <bruno@clisp.org>
3239 New module 'unused-parameter'.
3240 * build-aux/unused-parameter.h: New file, extracted from earlier
3242 * modules/unused-parameter: New file.
3243 * lib/unistr.h: Include unused-parameter.h.
3244 (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
3246 * modules/unistr/base (Depends-on): Add unused-parameter.
3248 2009-12-24 Bruno Haible <bruno@clisp.org>
3250 Add missing dependencies to 'extensions' module.
3251 * m4/extensions.m4: Add comment.
3252 * modules/accept4 (Depends-on): Add extensions.
3253 * modules/dup3 (Depends-on): Likewise.
3254 * modules/fcntl (Depends-on): Likewise.
3255 * modules/futimens (Depends-on): Likewise.
3256 * modules/mknod (Depends-on): Likewise.
3257 * modules/pipe2 (Depends-on): Likewise.
3258 * modules/stat-time (Depends-on): Likewise.
3259 * modules/strcasestr-simple (Depends-on): Likewise.
3260 * modules/strsignal (Depends-on): Likewise.
3261 * modules/utimensat (Depends-on): Likewise.
3262 * modules/localcharset (Depends-on): Likewise. Needed because of
3264 * modules/wcrtomb (Depends-on): Likewise. Needed because of
3266 * modules/wcsnrtombs (Depends-on): Likewise.
3267 * modules/wcsrtombs (Depends-on): Likewise.
3269 2009-12-24 Bruno Haible <bruno@clisp.org>
3271 binary-io: Avoid gcc warning due to SET_BINARY.
3272 * lib/binary-io.h (SET_BINARY): Cast the result to void.
3273 Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
3275 2009-12-24 Bruno Haible <bruno@clisp.org>
3277 Avoid future namespace pollution on glibc systems.
3278 * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
3279 * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
3280 * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
3283 2009-12-24 Bruno Haible <bruno@clisp.org>
3285 Refactor common macros used in tests.
3286 * tests/macros.h: New file.
3287 * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
3288 and/or <stdlib.h>, if appropriate.
3289 (ASSERT, SIZEOF): Remove macros.
3290 * tests/test-areadlink-with-size.c: Likewise.
3291 * tests/test-areadlinkat.c: Likewise.
3292 * tests/test-areadlinkat-with-size.c: Likewise.
3293 * tests/test-argmatch.c: Likewise.
3294 * tests/test-argv-iter.c: Likewise.
3295 * tests/test-array-mergesort.c: Likewise.
3296 * tests/test-array_list.c: Likewise.
3297 * tests/test-array_oset.c: Likewise.
3298 * tests/test-avltree_list.c: Likewise.
3299 * tests/test-avltree_oset.c: Likewise.
3300 * tests/test-avltreehash_list.c: Likewise.
3301 * tests/test-base64.c: Likewise.
3302 * tests/test-binary-io.c: Likewise.
3303 * tests/test-bitrotate.c: Likewise.
3304 * tests/test-btowc.c: Likewise.
3305 * tests/test-byteswap.c: Likewise.
3306 * tests/test-c-ctype.c: Likewise.
3307 * tests/test-c-stack.c: Likewise.
3308 * tests/test-c-strcasecmp.c: Likewise.
3309 * tests/test-c-strcasestr.c: Likewise.
3310 * tests/test-c-strncasecmp.c: Likewise.
3311 * tests/test-c-strstr.c: Likewise.
3312 * tests/test-canonicalize-lgpl.c: Likewise.
3313 * tests/test-canonicalize.c: Likewise.
3314 * tests/test-carray_list.c: Likewise.
3315 * tests/test-ceilf1.c: Likewise.
3316 * tests/test-ceilf2.c: Likewise.
3317 * tests/test-ceill.c: Likewise.
3318 * tests/test-chown.c: Likewise.
3319 * tests/test-cloexec.c: Likewise.
3320 * tests/test-copy-acl.c: Likewise.
3321 * tests/test-copy-file.c: Likewise.
3322 * tests/test-count-one-bits.c: Likewise.
3323 * tests/test-dprintf-posix.c: Likewise.
3324 * tests/test-dup2.c: Likewise.
3325 * tests/test-dup3.c: Likewise.
3326 * tests/test-duplocale.c: Likewise.
3327 * tests/test-fbufmode.c: Likewise.
3328 * tests/test-fchdir.c: Likewise.
3329 * tests/test-fchownat.c: Likewise.
3330 * tests/test-fcntl-safer.c: Likewise.
3331 * tests/test-fcntl.c: Likewise.
3332 * tests/test-fdopendir.c: Likewise.
3333 * tests/test-fdutimensat.c: Likewise.
3334 * tests/test-fflush2.c: Likewise.
3335 * tests/test-file-has-acl.c: Likewise.
3336 * tests/test-filevercmp.c: Likewise.
3337 * tests/test-flock.c: Likewise.
3338 * tests/test-floorf1.c: Likewise.
3339 * tests/test-floorf2.c: Likewise.
3340 * tests/test-floorl.c: Likewise.
3341 * tests/test-fnmatch.c: Likewise.
3342 * tests/test-fopen.h: Likewise.
3343 * tests/test-fpending.c: Likewise.
3344 * tests/test-fprintf-posix.c: Likewise.
3345 * tests/test-fpurge.c: Likewise.
3346 * tests/test-freadable.c: Likewise.
3347 * tests/test-freadahead.c: Likewise.
3348 * tests/test-freading.c: Likewise.
3349 * tests/test-freadptr.c: Likewise.
3350 * tests/test-freadptr2.c: Likewise.
3351 * tests/test-freadseek.c: Likewise.
3352 * tests/test-freopen.c: Likewise.
3353 * tests/test-frexp.c: Likewise.
3354 * tests/test-frexpl.c: Likewise.
3355 * tests/test-fseek.c: Likewise.
3356 * tests/test-fseeko.c: Likewise.
3357 * tests/test-fstatat.c: Likewise.
3358 * tests/test-fstrcmp.c: Likewise.
3359 * tests/test-fsync.c: Likewise.
3360 * tests/test-ftell.c: Likewise.
3361 * tests/test-ftello.c: Likewise.
3362 * tests/test-func.c: Likewise.
3363 * tests/test-futimens.c: Likewise.
3364 * tests/test-fwritable.c: Likewise.
3365 * tests/test-fwriting.c: Likewise.
3366 * tests/test-getcwd.c: Likewise.
3367 * tests/test-getdate.c: Likewise.
3368 * tests/test-getdelim.c: Likewise.
3369 * tests/test-getdtablesize.c: Likewise.
3370 * tests/test-getgroups.c: Likewise.
3371 * tests/test-getline.c: Likewise.
3372 * tests/test-getndelim2.c: Likewise.
3373 * tests/test-glob.c: Likewise.
3374 * tests/test-hash.c: Likewise.
3375 * tests/test-i-ring.c: Likewise.
3376 * tests/test-iconv-utf.c: Likewise.
3377 * tests/test-iconv.c: Likewise.
3378 * tests/test-idpriv-drop.c: Likewise.
3379 * tests/test-idpriv-droptemp.c: Likewise.
3380 * tests/test-inet_ntop.c: Likewise.
3381 * tests/test-inet_pton.c: Likewise.
3382 * tests/test-isblank.c: Likewise.
3383 * tests/test-isfinite.c: Likewise.
3384 * tests/test-isinf.c: Likewise.
3385 * tests/test-isnan.c: Likewise.
3386 * tests/test-isnand.h: Likewise.
3387 * tests/test-isnanf.h: Likewise.
3388 * tests/test-isnanl.h: Likewise.
3389 * tests/test-lchown.c: Likewise.
3390 * tests/test-ldexpl.c: Likewise.
3391 * tests/test-link.c: Likewise.
3392 * tests/test-linkat.c: Likewise.
3393 * tests/test-linked_list.c: Likewise.
3394 * tests/test-linkedhash_list.c: Likewise.
3395 * tests/test-localename.c: Likewise.
3396 * tests/test-lseek.c: Likewise.
3397 * tests/test-lstat.c: Likewise.
3398 * tests/test-mbmemcasecmp.c: Likewise.
3399 * tests/test-mbmemcasecoll.c: Likewise.
3400 * tests/test-mbrtowc.c: Likewise.
3401 * tests/test-mbscasecmp.c: Likewise.
3402 * tests/test-mbscasestr1.c: Likewise.
3403 * tests/test-mbscasestr2.c: Likewise.
3404 * tests/test-mbscasestr3.c: Likewise.
3405 * tests/test-mbscasestr4.c: Likewise.
3406 * tests/test-mbschr.c: Likewise.
3407 * tests/test-mbscspn.c: Likewise.
3408 * tests/test-mbsinit.c: Likewise.
3409 * tests/test-mbsncasecmp.c: Likewise.
3410 * tests/test-mbsnrtowcs.c: Likewise.
3411 * tests/test-mbspbrk.c: Likewise.
3412 * tests/test-mbspcasecmp.c: Likewise.
3413 * tests/test-mbsrchr.c: Likewise.
3414 * tests/test-mbsrtowcs.c: Likewise.
3415 * tests/test-mbsspn.c: Likewise.
3416 * tests/test-mbsstr1.c: Likewise.
3417 * tests/test-mbsstr2.c: Likewise.
3418 * tests/test-mbsstr3.c: Likewise.
3419 * tests/test-memchr.c: Likewise.
3420 * tests/test-memchr2.c: Likewise.
3421 * tests/test-memcmp.c: Likewise.
3422 * tests/test-memmem.c: Likewise.
3423 * tests/test-memrchr.c: Likewise.
3424 * tests/test-mkdir.c: Likewise.
3425 * tests/test-mkdirat.c: Likewise.
3426 * tests/test-mkfifo.c: Likewise.
3427 * tests/test-mkfifoat.c: Likewise.
3428 * tests/test-mknod.c: Likewise.
3429 * tests/test-nanosleep.c: Likewise.
3430 * tests/test-nl_langinfo.c: Likewise.
3431 * tests/test-obstack-printf.c: Likewise.
3432 * tests/test-open.c: Likewise.
3433 * tests/test-openat.c: Likewise.
3434 * tests/test-pipe-filter-gi1.c: Likewise.
3435 * tests/test-pipe-filter-gi2-main.c: Likewise.
3436 * tests/test-pipe-filter-ii1.c: Likewise.
3437 * tests/test-pipe-filter-ii2-main.c: Likewise.
3438 * tests/test-pipe2.c: Likewise.
3439 * tests/test-popen.h: Likewise.
3440 * tests/test-posixtm.c: Likewise.
3441 * tests/test-pread.c: Likewise.
3442 * tests/test-printf-frexp.c: Likewise.
3443 * tests/test-printf-frexpl.c: Likewise.
3444 * tests/test-printf-posix.c: Likewise.
3445 * tests/test-priv-set.c: Likewise.
3446 * tests/test-quotearg.c: Likewise.
3447 * tests/test-random_r.c: Likewise.
3448 * tests/test-rawmemchr.c: Likewise.
3449 * tests/test-rbtree_list.c: Likewise.
3450 * tests/test-rbtree_oset.c: Likewise.
3451 * tests/test-rbtreehash_list.c: Likewise.
3452 * tests/test-readlink.c: Likewise.
3453 * tests/test-remove.c: Likewise.
3454 * tests/test-rename.c: Likewise.
3455 * tests/test-renameat.c: Likewise.
3456 * tests/test-rmdir.c: Likewise.
3457 * tests/test-round1.c: Likewise.
3458 * tests/test-roundf1.c: Likewise.
3459 * tests/test-roundl.c: Likewise.
3460 * tests/test-safe-alloc.c: Likewise.
3461 * tests/test-sameacls.c: Likewise.
3462 * tests/test-set-mode-acl.c: Likewise.
3463 * tests/test-setenv.c: Likewise.
3464 * tests/test-sigaction.c: Likewise.
3465 * tests/test-signbit.c: Likewise.
3466 * tests/test-sleep.c: Likewise.
3467 * tests/test-snprintf-posix.c: Likewise.
3468 * tests/test-snprintf.c: Likewise.
3469 * tests/test-sprintf-posix.c: Likewise.
3470 * tests/test-stat-time.c: Likewise.
3471 * tests/test-stat.c: Likewise.
3472 * tests/test-strcasestr.c: Likewise.
3473 * tests/test-strchrnul.c: Likewise.
3474 * tests/test-strerror.c: Likewise.
3475 * tests/test-striconv.c: Likewise.
3476 * tests/test-striconveh.c: Likewise.
3477 * tests/test-striconveha.c: Likewise.
3478 * tests/test-strsignal.c: Likewise.
3479 * tests/test-strstr.c: Likewise.
3480 * tests/test-strtod.c: Likewise.
3481 * tests/test-strverscmp.c: Likewise.
3482 * tests/test-symlink.c: Likewise.
3483 * tests/test-symlinkat.c: Likewise.
3484 * tests/test-trunc1.c: Likewise.
3485 * tests/test-trunc2.c: Likewise.
3486 * tests/test-truncf1.c: Likewise.
3487 * tests/test-truncf2.c: Likewise.
3488 * tests/test-truncl.c: Likewise.
3489 * tests/test-uname.c: Likewise.
3490 * tests/test-unlink.c: Likewise.
3491 * tests/test-unlinkat.c: Likewise.
3492 * tests/test-unsetenv.c: Likewise.
3493 * tests/test-usleep.c: Likewise.
3494 * tests/test-utimens.c: Likewise.
3495 * tests/test-utimensat.c: Likewise.
3496 * tests/test-vasnprintf-posix.c: Likewise.
3497 * tests/test-vasnprintf-posix2.c: Likewise.
3498 * tests/test-vasnprintf.c: Likewise.
3499 * tests/test-vasprintf-posix.c: Likewise.
3500 * tests/test-vasprintf.c: Likewise.
3501 * tests/test-vdprintf-posix.c: Likewise.
3502 * tests/test-vfprintf-posix.c: Likewise.
3503 * tests/test-vprintf-posix.c: Likewise.
3504 * tests/test-vsnprintf-posix.c: Likewise.
3505 * tests/test-vsnprintf.c: Likewise.
3506 * tests/test-vsprintf-posix.c: Likewise.
3507 * tests/test-wcrtomb.c: Likewise.
3508 * tests/test-wcsnrtombs.c: Likewise.
3509 * tests/test-wcsrtombs.c: Likewise.
3510 * tests/test-wctype.c: Likewise.
3511 * tests/test-wcwidth.c: Likewise.
3512 * tests/test-xfprintf-posix.c: Likewise.
3513 * tests/test-xmemdup0.c: Likewise.
3514 * tests/test-xprintf-posix.c: Likewise.
3515 * tests/test-xvasprintf.c: Likewise.
3516 * tests/unicase/test-locale-language.c: Likewise.
3517 * tests/unicase/test-mapping-part1.h: Likewise.
3518 * tests/unicase/test-predicate-part1.h: Likewise.
3519 * tests/unicase/test-u8-casecmp.c: Likewise.
3520 * tests/unicase/test-u8-casecoll.c: Likewise.
3521 * tests/unicase/test-u8-casefold.c: Likewise.
3522 * tests/unicase/test-u8-is-cased.c: Likewise.
3523 * tests/unicase/test-u8-is-casefolded.c: Likewise.
3524 * tests/unicase/test-u8-is-lowercase.c: Likewise.
3525 * tests/unicase/test-u8-is-titlecase.c: Likewise.
3526 * tests/unicase/test-u8-is-uppercase.c: Likewise.
3527 * tests/unicase/test-u8-tolower.c: Likewise.
3528 * tests/unicase/test-u8-totitle.c: Likewise.
3529 * tests/unicase/test-u8-toupper.c: Likewise.
3530 * tests/unicase/test-u16-casecmp.c: Likewise.
3531 * tests/unicase/test-u16-casecoll.c: Likewise.
3532 * tests/unicase/test-u16-casefold.c: Likewise.
3533 * tests/unicase/test-u16-is-cased.c: Likewise.
3534 * tests/unicase/test-u16-is-casefolded.c: Likewise.
3535 * tests/unicase/test-u16-is-lowercase.c: Likewise.
3536 * tests/unicase/test-u16-is-titlecase.c: Likewise.
3537 * tests/unicase/test-u16-is-uppercase.c: Likewise.
3538 * tests/unicase/test-u16-tolower.c: Likewise.
3539 * tests/unicase/test-u16-totitle.c: Likewise.
3540 * tests/unicase/test-u16-toupper.c: Likewise.
3541 * tests/unicase/test-u32-casecmp.c: Likewise.
3542 * tests/unicase/test-u32-casecoll.c: Likewise.
3543 * tests/unicase/test-u32-casefold.c: Likewise.
3544 * tests/unicase/test-u32-is-cased.c: Likewise.
3545 * tests/unicase/test-u32-is-casefolded.c: Likewise.
3546 * tests/unicase/test-u32-is-lowercase.c: Likewise.
3547 * tests/unicase/test-u32-is-titlecase.c: Likewise.
3548 * tests/unicase/test-u32-is-uppercase.c: Likewise.
3549 * tests/unicase/test-u32-tolower.c: Likewise.
3550 * tests/unicase/test-u32-totitle.c: Likewise.
3551 * tests/unicase/test-u32-toupper.c: Likewise.
3552 * tests/unicase/test-ulc-casecmp.c: Likewise.
3553 * tests/unicase/test-ulc-casecoll.c: Likewise.
3554 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
3555 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
3556 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
3557 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
3558 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
3559 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
3560 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
3561 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
3562 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
3563 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
3564 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
3565 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
3566 * tests/unictype/test-bidi_byname.c: Likewise.
3567 * tests/unictype/test-bidi_name.c: Likewise.
3568 * tests/unictype/test-bidi_of.c: Likewise.
3569 * tests/unictype/test-bidi_test.c: Likewise.
3570 * tests/unictype/test-block_list.c: Likewise.
3571 * tests/unictype/test-block_of.c: Likewise.
3572 * tests/unictype/test-block_test.c: Likewise.
3573 * tests/unictype/test-categ_and.c: Likewise.
3574 * tests/unictype/test-categ_and_not.c: Likewise.
3575 * tests/unictype/test-categ_byname.c: Likewise.
3576 * tests/unictype/test-categ_name.c: Likewise.
3577 * tests/unictype/test-categ_none.c: Likewise.
3578 * tests/unictype/test-categ_of.c: Likewise.
3579 * tests/unictype/test-categ_or.c: Likewise.
3580 * tests/unictype/test-categ_test_withtable.c: Likewise.
3581 * tests/unictype/test-combining.c: Likewise.
3582 * tests/unictype/test-decdigit.c: Likewise.
3583 * tests/unictype/test-digit.c: Likewise.
3584 * tests/unictype/test-mirror.c: Likewise.
3585 * tests/unictype/test-numeric.c: Likewise.
3586 * tests/unictype/test-pr_byname.c: Likewise.
3587 * tests/unictype/test-pr_test.c: Likewise.
3588 * tests/unictype/test-predicate-part1.h: Likewise.
3589 * tests/unictype/test-scripts.c: Likewise.
3590 * tests/unictype/test-sy_c_ident.c: Likewise.
3591 * tests/unictype/test-sy_java_ident.c: Likewise.
3592 * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
3593 * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
3594 * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
3595 * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
3596 * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
3597 * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
3598 * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
3599 * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
3600 * tests/uninorm/test-canonical-decomposition.c: Likewise.
3601 * tests/uninorm/test-compat-decomposition.c: Likewise.
3602 * tests/uninorm/test-composition.c: Likewise.
3603 * tests/uninorm/test-decomposing-form.c: Likewise.
3604 * tests/uninorm/test-decomposition.c: Likewise.
3605 * tests/uninorm/test-u8-nfc.c: Likewise.
3606 * tests/uninorm/test-u8-nfd.c: Likewise.
3607 * tests/uninorm/test-u8-nfkc.c: Likewise.
3608 * tests/uninorm/test-u8-nfkd.c: Likewise.
3609 * tests/uninorm/test-u8-normcmp.c: Likewise.
3610 * tests/uninorm/test-u8-normcoll.c: Likewise.
3611 * tests/uninorm/test-u16-nfc.c: Likewise.
3612 * tests/uninorm/test-u16-nfd.c: Likewise.
3613 * tests/uninorm/test-u16-nfkc.c: Likewise.
3614 * tests/uninorm/test-u16-nfkd.c: Likewise.
3615 * tests/uninorm/test-u16-normcmp.c: Likewise.
3616 * tests/uninorm/test-u16-normcoll.c: Likewise.
3617 * tests/uninorm/test-u32-nfc.c: Likewise.
3618 * tests/uninorm/test-u32-nfd.c: Likewise.
3619 * tests/uninorm/test-u32-nfkc.c: Likewise.
3620 * tests/uninorm/test-u32-nfkd.c: Likewise.
3621 * tests/uninorm/test-u32-normalize-big.c: Likewise.
3622 * tests/uninorm/test-u32-normcmp.c: Likewise.
3623 * tests/uninorm/test-u32-normcoll.c: Likewise.
3624 * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
3625 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
3626 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
3627 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
3628 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
3629 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
3630 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
3631 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
3632 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
3633 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
3634 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
3635 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
3636 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
3637 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
3638 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
3639 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
3640 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
3641 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
3642 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
3643 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
3644 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
3645 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
3646 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
3647 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
3648 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
3649 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
3650 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
3651 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
3652 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
3653 * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
3654 * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
3655 * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
3656 * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
3657 * tests/uniwidth/test-u8-strwidth.c: Likewise.
3658 * tests/uniwidth/test-u8-width.c: Likewise.
3659 * tests/uniwidth/test-u16-strwidth.c: Likewise.
3660 * tests/uniwidth/test-u16-width.c: Likewise.
3661 * tests/uniwidth/test-u32-strwidth.c: Likewise.
3662 * tests/uniwidth/test-u32-width.c: Likewise.
3663 * tests/uniwidth/test-uc_width.c: Likewise.
3664 * tests/uniwidth/test-uc_width2.c: Likewise.
3665 * modules/acl-tests (Files): Add tests/macros.h.
3666 * modules/areadlink-tests (Files): Likewise.
3667 * modules/areadlink-with-size-tests (Files): Likewise.
3668 * modules/areadlinkat-tests (Files): Likewise.
3669 * modules/areadlinkat-with-size-tests (Files): Likewise.
3670 * modules/argmatch-tests (Files): Likewise.
3671 * modules/argv-iter-tests (Files): Likewise.
3672 * modules/array-list-tests (Files): Likewise.
3673 * modules/array-mergesort-tests (Files): Likewise.
3674 * modules/array-oset-tests (Files): Likewise.
3675 * modules/avltree-list-tests (Files): Likewise.
3676 * modules/avltree-oset-tests (Files): Likewise.
3677 * modules/avltreehash-list-tests (Files): Likewise.
3678 * modules/base64-tests (Files): Likewise.
3679 * modules/binary-io-tests (Files): Likewise.
3680 * modules/bitrotate-tests (Files): Likewise.
3681 * modules/btowc-tests (Files): Likewise.
3682 * modules/byteswap-tests (Files): Likewise.
3683 * modules/c-ctype-tests (Files): Likewise.
3684 * modules/c-stack-tests (Files): Likewise.
3685 * modules/c-strcase-tests (Files): Likewise.
3686 * modules/c-strcasestr-tests (Files): Likewise.
3687 * modules/c-strstr-tests (Files): Likewise.
3688 * modules/canonicalize-lgpl-tests (Files): Likewise.
3689 * modules/canonicalize-tests (Files): Likewise.
3690 * modules/carray-list-tests (Files): Likewise.
3691 * modules/ceilf-tests (Files): Likewise.
3692 * modules/ceill-tests (Files): Likewise.
3693 * modules/chown-tests (Files): Likewise.
3694 * modules/cloexec-tests (Files): Likewise.
3695 * modules/copy-file-tests (Files): Likewise.
3696 * modules/count-one-bits-tests (Files): Likewise.
3697 * modules/dprintf-posix-tests (Files): Likewise.
3698 * modules/dup2-tests (Files): Likewise.
3699 * modules/dup3-tests (Files): Likewise.
3700 * modules/duplocale-tests (Files): Likewise.
3701 * modules/fbufmode-tests (Files): Likewise.
3702 * modules/fchdir-tests (Files): Likewise.
3703 * modules/fcntl-safer-tests (Files): Likewise.
3704 * modules/fcntl-tests (Files): Likewise.
3705 * modules/fdopendir-tests (Files): Likewise.
3706 * modules/fdutimensat-tests (Files): Likewise.
3707 * modules/fflush-tests (Files): Likewise.
3708 * modules/filevercmp-tests (Files): Likewise.
3709 * modules/flock-tests (Files): Likewise.
3710 * modules/floorf-tests (Files): Likewise.
3711 * modules/floorl-tests (Files): Likewise.
3712 * modules/fnmatch-tests (Files): Likewise.
3713 * modules/fopen-safer-tests (Files): Likewise.
3714 * modules/fopen-tests (Files): Likewise.
3715 * modules/fpending-tests (Files): Likewise.
3716 * modules/fprintf-posix-tests (Files): Likewise.
3717 * modules/fpurge-tests (Files): Likewise.
3718 * modules/freadable-tests (Files): Likewise.
3719 * modules/freadahead-tests (Files): Likewise.
3720 * modules/freading-tests (Files): Likewise.
3721 * modules/freadptr-tests (Files): Likewise.
3722 * modules/freadseek-tests (Files): Likewise.
3723 * modules/freopen-tests (Files): Likewise.
3724 * modules/frexp-nolibm-tests (Files): Likewise.
3725 * modules/frexp-tests (Files): Likewise.
3726 * modules/frexpl-nolibm-tests (Files): Likewise.
3727 * modules/frexpl-tests (Files): Likewise.
3728 * modules/fseek-tests (Files): Likewise.
3729 * modules/fseeko-tests (Files): Likewise.
3730 * modules/fstrcmp-tests (Files): Likewise.
3731 * modules/fsync-tests (Files): Likewise.
3732 * modules/ftell-tests (Files): Likewise.
3733 * modules/ftello-tests (Files): Likewise.
3734 * modules/func-tests (Files): Likewise.
3735 * modules/futimens-tests (Files): Likewise.
3736 * modules/fwritable-tests (Files): Likewise.
3737 * modules/fwriting-tests (Files): Likewise.
3738 * modules/getcwd-tests (Files): Likewise.
3739 * modules/getdate-tests (Files): Likewise.
3740 * modules/getdelim-tests (Files): Likewise.
3741 * modules/getdtablesize-tests (Files): Likewise.
3742 * modules/getgroups-tests (Files): Likewise.
3743 * modules/getline-tests (Files): Likewise.
3744 * modules/getndelim2-tests (Files): Likewise.
3745 * modules/glob-tests (Files): Likewise.
3746 * modules/hash-tests (Files): Likewise.
3747 * modules/i-ring-tests (Files): Likewise.
3748 * modules/iconv-tests (Files): Likewise.
3749 * modules/iconv_open-utf-tests (Files): Likewise.
3750 * modules/idpriv-drop-tests (Files): Likewise.
3751 * modules/idpriv-droptemp-tests (Files): Likewise.
3752 * modules/inet_ntop-tests (Files): Likewise.
3753 * modules/inet_pton-tests (Files): Likewise.
3754 * modules/isblank-tests (Files): Likewise.
3755 * modules/isfinite-tests (Files): Likewise.
3756 * modules/isinf-tests (Files): Likewise.
3757 * modules/isnan-tests (Files): Likewise.
3758 * modules/isnand-nolibm-tests (Files): Likewise.
3759 * modules/isnand-tests (Files): Likewise.
3760 * modules/isnanf-nolibm-tests (Files): Likewise.
3761 * modules/isnanf-tests (Files): Likewise.
3762 * modules/isnanl-nolibm-tests (Files): Likewise.
3763 * modules/isnanl-tests (Files): Likewise.
3764 * modules/lchown-tests (Files): Likewise.
3765 * modules/ldexpl-tests (Files): Likewise.
3766 * modules/link-tests (Files): Likewise.
3767 * modules/linkat-tests (Files): Likewise.
3768 * modules/linked-list-tests (Files): Likewise.
3769 * modules/linkedhash-list-tests (Files): Likewise.
3770 * modules/localename-tests (Files): Likewise.
3771 * modules/lseek-tests (Files): Likewise.
3772 * modules/lstat-tests (Files): Likewise.
3773 * modules/mbmemcasecmp-tests (Files): Likewise.
3774 * modules/mbmemcasecoll-tests (Files): Likewise.
3775 * modules/mbrtowc-tests (Files): Likewise.
3776 * modules/mbscasecmp-tests (Files): Likewise.
3777 * modules/mbscasestr-tests (Files): Likewise.
3778 * modules/mbschr-tests (Files): Likewise.
3779 * modules/mbscspn-tests (Files): Likewise.
3780 * modules/mbsinit-tests (Files): Likewise.
3781 * modules/mbsncasecmp-tests (Files): Likewise.
3782 * modules/mbsnrtowcs-tests (Files): Likewise.
3783 * modules/mbspbrk-tests (Files): Likewise.
3784 * modules/mbspcasecmp-tests (Files): Likewise.
3785 * modules/mbsrchr-tests (Files): Likewise.
3786 * modules/mbsrtowcs-tests (Files): Likewise.
3787 * modules/mbsspn-tests (Files): Likewise.
3788 * modules/mbsstr-tests (Files): Likewise.
3789 * modules/memchr-tests (Files): Likewise.
3790 * modules/memchr2-tests (Files): Likewise.
3791 * modules/memcmp-tests (Files): Likewise.
3792 * modules/memmem-tests (Files): Likewise.
3793 * modules/memrchr-tests (Files): Likewise.
3794 * modules/mkdir-tests (Files): Likewise.
3795 * modules/mkfifo-tests (Files): Likewise.
3796 * modules/mkfifoat-tests (Files): Likewise.
3797 * modules/mknod-tests (Files): Likewise.
3798 * modules/nanosleep-tests (Files): Likewise.
3799 * modules/nl_langinfo-tests (Files): Likewise.
3800 * modules/obstack-printf-tests (Files): Likewise.
3801 * modules/open-tests (Files): Likewise.
3802 * modules/openat-tests (Files): Likewise.
3803 * modules/pipe-filter-gi-tests (Files): Likewise.
3804 * modules/pipe-filter-ii-tests (Files): Likewise.
3805 * modules/pipe2-tests (Files): Likewise.
3806 * modules/popen-safer-tests (Files): Likewise.
3807 * modules/popen-tests (Files): Likewise.
3808 * modules/posixtm-tests (Files): Likewise.
3809 * modules/pread-tests (Files): Likewise.
3810 * modules/printf-frexp-tests (Files): Likewise.
3811 * modules/printf-frexpl-tests (Files): Likewise.
3812 * modules/printf-posix-tests (Files): Likewise.
3813 * modules/priv-set-tests (Files): Likewise.
3814 * modules/quotearg-tests (Files): Likewise.
3815 * modules/random_r-tests (Files): Likewise.
3816 * modules/rawmemchr-tests (Files): Likewise.
3817 * modules/rbtree-list-tests (Files): Likewise.
3818 * modules/rbtree-oset-tests (Files): Likewise.
3819 * modules/rbtreehash-list-tests (Files): Likewise.
3820 * modules/readlink-tests (Files): Likewise.
3821 * modules/remove-tests (Files): Likewise.
3822 * modules/rename-tests (Files): Likewise.
3823 * modules/renameat-tests (Files): Likewise.
3824 * modules/rmdir-tests (Files): Likewise.
3825 * modules/round-tests (Files): Likewise.
3826 * modules/roundf-tests (Files): Likewise.
3827 * modules/roundl-tests (Files): Likewise.
3828 * modules/safe-alloc-tests (Files): Likewise.
3829 * modules/setenv-tests (Files): Likewise.
3830 * modules/sigaction-tests (Files): Likewise.
3831 * modules/signbit-tests (Files): Likewise.
3832 * modules/sleep-tests (Files): Likewise.
3833 * modules/snprintf-posix-tests (Files): Likewise.
3834 * modules/snprintf-tests (Files): Likewise.
3835 * modules/sprintf-posix-tests (Files): Likewise.
3836 * modules/stat-tests (Files): Likewise.
3837 * modules/stat-time-tests (Files): Likewise.
3838 * modules/strcasestr-tests (Files): Likewise.
3839 * modules/strchrnul-tests (Files): Likewise.
3840 * modules/strerror-tests (Files): Likewise.
3841 * modules/striconv-tests (Files): Likewise.
3842 * modules/striconveh-tests (Files): Likewise.
3843 * modules/striconveha-tests (Files): Likewise.
3844 * modules/strsignal-tests (Files): Likewise.
3845 * modules/strstr-tests (Files): Likewise.
3846 * modules/strtod-tests (Files): Likewise.
3847 * modules/strverscmp-tests (Files): Likewise.
3848 * modules/symlink-tests (Files): Likewise.
3849 * modules/symlinkat-tests (Files): Likewise.
3850 * modules/trunc-tests (Files): Likewise.
3851 * modules/truncf-tests (Files): Likewise.
3852 * modules/truncl-tests (Files): Likewise.
3853 * modules/uname-tests (Files): Likewise.
3854 * modules/unicase/cased-tests (Files): Likewise.
3855 * modules/unicase/ignorable-tests (Files): Likewise.
3856 * modules/unicase/locale-language-tests (Files): Likewise.
3857 * modules/unicase/tolower-tests (Files): Likewise.
3858 * modules/unicase/totitle-tests (Files): Likewise.
3859 * modules/unicase/toupper-tests (Files): Likewise.
3860 * modules/unicase/u8-casecmp-tests (Files): Likewise.
3861 * modules/unicase/u8-casecoll-tests (Files): Likewise.
3862 * modules/unicase/u8-casefold-tests (Files): Likewise.
3863 * modules/unicase/u8-is-cased-tests (Files): Likewise.
3864 * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
3865 * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
3866 * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
3867 * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
3868 * modules/unicase/u8-tolower-tests (Files): Likewise.
3869 * modules/unicase/u8-totitle-tests (Files): Likewise.
3870 * modules/unicase/u8-toupper-tests (Files): Likewise.
3871 * modules/unicase/u16-casecmp-tests (Files): Likewise.
3872 * modules/unicase/u16-casecoll-tests (Files): Likewise.
3873 * modules/unicase/u16-casefold-tests (Files): Likewise.
3874 * modules/unicase/u16-is-cased-tests (Files): Likewise.
3875 * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
3876 * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
3877 * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
3878 * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
3879 * modules/unicase/u16-tolower-tests (Files): Likewise.
3880 * modules/unicase/u16-totitle-tests (Files): Likewise.
3881 * modules/unicase/u16-toupper-tests (Files): Likewise.
3882 * modules/unicase/u32-casecmp-tests (Files): Likewise.
3883 * modules/unicase/u32-casecoll-tests (Files): Likewise.
3884 * modules/unicase/u32-casefold-tests (Files): Likewise.
3885 * modules/unicase/u32-is-cased-tests (Files): Likewise.
3886 * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
3887 * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
3888 * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
3889 * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
3890 * modules/unicase/u32-tolower-tests (Files): Likewise.
3891 * modules/unicase/u32-totitle-tests (Files): Likewise.
3892 * modules/unicase/u32-toupper-tests (Files): Likewise.
3893 * modules/unicase/ulc-casecmp-tests (Files): Likewise.
3894 * modules/unicase/ulc-casecoll-tests (Files): Likewise.
3895 * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
3896 * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
3897 * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
3898 * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
3899 * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
3900 * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
3901 * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
3902 * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
3903 * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
3904 * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
3905 * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
3906 * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
3907 * modules/unictype/bidicategory-byname-tests (Files): Likewise.
3908 * modules/unictype/bidicategory-name-tests (Files): Likewise.
3909 * modules/unictype/bidicategory-of-tests (Files): Likewise.
3910 * modules/unictype/bidicategory-test-tests (Files): Likewise.
3911 * modules/unictype/block-list-tests (Files): Likewise.
3912 * modules/unictype/block-of-tests (Files): Likewise.
3913 * modules/unictype/block-test-tests (Files): Likewise.
3914 * modules/unictype/category-C-tests (Files): Likewise.
3915 * modules/unictype/category-Cc-tests (Files): Likewise.
3916 * modules/unictype/category-Cf-tests (Files): Likewise.
3917 * modules/unictype/category-Cn-tests (Files): Likewise.
3918 * modules/unictype/category-Co-tests (Files): Likewise.
3919 * modules/unictype/category-Cs-tests (Files): Likewise.
3920 * modules/unictype/category-L-tests (Files): Likewise.
3921 * modules/unictype/category-Ll-tests (Files): Likewise.
3922 * modules/unictype/category-Lm-tests (Files): Likewise.
3923 * modules/unictype/category-Lo-tests (Files): Likewise.
3924 * modules/unictype/category-Lt-tests (Files): Likewise.
3925 * modules/unictype/category-Lu-tests (Files): Likewise.
3926 * modules/unictype/category-M-tests (Files): Likewise.
3927 * modules/unictype/category-Mc-tests (Files): Likewise.
3928 * modules/unictype/category-Me-tests (Files): Likewise.
3929 * modules/unictype/category-Mn-tests (Files): Likewise.
3930 * modules/unictype/category-N-tests (Files): Likewise.
3931 * modules/unictype/category-Nd-tests (Files): Likewise.
3932 * modules/unictype/category-Nl-tests (Files): Likewise.
3933 * modules/unictype/category-No-tests (Files): Likewise.
3934 * modules/unictype/category-P-tests (Files): Likewise.
3935 * modules/unictype/category-Pc-tests (Files): Likewise.
3936 * modules/unictype/category-Pd-tests (Files): Likewise.
3937 * modules/unictype/category-Pe-tests (Files): Likewise.
3938 * modules/unictype/category-Pf-tests (Files): Likewise.
3939 * modules/unictype/category-Pi-tests (Files): Likewise.
3940 * modules/unictype/category-Po-tests (Files): Likewise.
3941 * modules/unictype/category-Ps-tests (Files): Likewise.
3942 * modules/unictype/category-S-tests (Files): Likewise.
3943 * modules/unictype/category-Sc-tests (Files): Likewise.
3944 * modules/unictype/category-Sk-tests (Files): Likewise.
3945 * modules/unictype/category-Sm-tests (Files): Likewise.
3946 * modules/unictype/category-So-tests (Files): Likewise.
3947 * modules/unictype/category-Z-tests (Files): Likewise.
3948 * modules/unictype/category-Zl-tests (Files): Likewise.
3949 * modules/unictype/category-Zp-tests (Files): Likewise.
3950 * modules/unictype/category-Zs-tests (Files): Likewise.
3951 * modules/unictype/category-and-not-tests (Files): Likewise.
3952 * modules/unictype/category-and-tests (Files): Likewise.
3953 * modules/unictype/category-byname-tests (Files): Likewise.
3954 * modules/unictype/category-name-tests (Files): Likewise.
3955 * modules/unictype/category-none-tests (Files): Likewise.
3956 * modules/unictype/category-of-tests (Files): Likewise.
3957 * modules/unictype/category-or-tests (Files): Likewise.
3958 * modules/unictype/category-test-withtable-tests (Files): Likewise.
3959 * modules/unictype/combining-class-tests (Files): Likewise.
3960 * modules/unictype/ctype-alnum-tests (Files): Likewise.
3961 * modules/unictype/ctype-alpha-tests (Files): Likewise.
3962 * modules/unictype/ctype-blank-tests (Files): Likewise.
3963 * modules/unictype/ctype-cntrl-tests (Files): Likewise.
3964 * modules/unictype/ctype-digit-tests (Files): Likewise.
3965 * modules/unictype/ctype-graph-tests (Files): Likewise.
3966 * modules/unictype/ctype-lower-tests (Files): Likewise.
3967 * modules/unictype/ctype-print-tests (Files): Likewise.
3968 * modules/unictype/ctype-punct-tests (Files): Likewise.
3969 * modules/unictype/ctype-space-tests (Files): Likewise.
3970 * modules/unictype/ctype-upper-tests (Files): Likewise.
3971 * modules/unictype/ctype-xdigit-tests (Files): Likewise.
3972 * modules/unictype/decimal-digit-tests (Files): Likewise.
3973 * modules/unictype/digit-tests (Files): Likewise.
3974 * modules/unictype/mirror-tests (Files): Likewise.
3975 * modules/unictype/numeric-tests (Files): Likewise.
3976 * modules/unictype/property-alphabetic-tests (Files): Likewise.
3977 * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
3978 * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
3979 * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
3981 * modules/unictype/property-bidi-block-separator-tests (Files):
3983 * modules/unictype/property-bidi-boundary-neutral-tests (Files):
3985 * modules/unictype/property-bidi-common-separator-tests (Files):
3987 * modules/unictype/property-bidi-control-tests (Files): Likewise.
3988 * modules/unictype/property-bidi-embedding-or-override-tests (Files):
3990 * modules/unictype/property-bidi-eur-num-separator-tests (Files):
3992 * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
3994 * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
3995 * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
3997 * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
3998 * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
4000 * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
4001 * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
4002 * modules/unictype/property-bidi-segment-separator-tests (Files):
4004 * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
4005 * modules/unictype/property-byname-tests (Files): Likewise.
4006 * modules/unictype/property-combining-tests (Files): Likewise.
4007 * modules/unictype/property-composite-tests (Files): Likewise.
4008 * modules/unictype/property-currency-symbol-tests (Files): Likewise.
4009 * modules/unictype/property-dash-tests (Files): Likewise.
4010 * modules/unictype/property-decimal-digit-tests (Files): Likewise.
4011 * modules/unictype/property-default-ignorable-code-point-tests (Files):
4013 * modules/unictype/property-deprecated-tests (Files): Likewise.
4014 * modules/unictype/property-diacritic-tests (Files): Likewise.
4015 * modules/unictype/property-extender-tests (Files): Likewise.
4016 * modules/unictype/property-format-control-tests (Files): Likewise.
4017 * modules/unictype/property-grapheme-base-tests (Files): Likewise.
4018 * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
4019 * modules/unictype/property-grapheme-link-tests (Files): Likewise.
4020 * modules/unictype/property-hex-digit-tests (Files): Likewise.
4021 * modules/unictype/property-hyphen-tests (Files): Likewise.
4022 * modules/unictype/property-id-continue-tests (Files): Likewise.
4023 * modules/unictype/property-id-start-tests (Files): Likewise.
4024 * modules/unictype/property-ideographic-tests (Files): Likewise.
4025 * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
4026 * modules/unictype/property-ids-trinary-operator-tests (Files):
4028 * modules/unictype/property-ignorable-control-tests (Files): Likewise.
4029 * modules/unictype/property-iso-control-tests (Files): Likewise.
4030 * modules/unictype/property-join-control-tests (Files): Likewise.
4031 * modules/unictype/property-left-of-pair-tests (Files): Likewise.
4032 * modules/unictype/property-line-separator-tests (Files): Likewise.
4033 * modules/unictype/property-logical-order-exception-tests (Files):
4035 * modules/unictype/property-lowercase-tests (Files): Likewise.
4036 * modules/unictype/property-math-tests (Files): Likewise.
4037 * modules/unictype/property-non-break-tests (Files): Likewise.
4038 * modules/unictype/property-not-a-character-tests (Files): Likewise.
4039 * modules/unictype/property-numeric-tests (Files): Likewise.
4040 * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
4041 * modules/unictype/property-other-default-ignorable-code-point-tests
4043 * modules/unictype/property-other-grapheme-extend-tests (Files):
4045 * modules/unictype/property-other-id-continue-tests (Files): Likewise.
4046 * modules/unictype/property-other-id-start-tests (Files): Likewise.
4047 * modules/unictype/property-other-lowercase-tests (Files): Likewise.
4048 * modules/unictype/property-other-math-tests (Files): Likewise.
4049 * modules/unictype/property-other-uppercase-tests (Files): Likewise.
4050 * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
4051 * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
4052 * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
4053 * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
4054 * modules/unictype/property-private-use-tests (Files): Likewise.
4055 * modules/unictype/property-punctuation-tests (Files): Likewise.
4056 * modules/unictype/property-quotation-mark-tests (Files): Likewise.
4057 * modules/unictype/property-radical-tests (Files): Likewise.
4058 * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
4059 * modules/unictype/property-soft-dotted-tests (Files): Likewise.
4060 * modules/unictype/property-space-tests (Files): Likewise.
4061 * modules/unictype/property-terminal-punctuation-tests (Files):
4063 * modules/unictype/property-test-tests (Files): Likewise.
4064 * modules/unictype/property-titlecase-tests (Files): Likewise.
4065 * modules/unictype/property-unassigned-code-value-tests (Files):
4067 * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
4068 * modules/unictype/property-uppercase-tests (Files): Likewise.
4069 * modules/unictype/property-variation-selector-tests (Files): Likewise.
4070 * modules/unictype/property-white-space-tests (Files): Likewise.
4071 * modules/unictype/property-xid-continue-tests (Files): Likewise.
4072 * modules/unictype/property-xid-start-tests (Files): Likewise.
4073 * modules/unictype/property-zero-width-tests (Files): Likewise.
4074 * modules/unictype/scripts-tests (Files): Likewise.
4075 * modules/unictype/syntax-c-ident-tests (Files): Likewise.
4076 * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
4077 * modules/unictype/syntax-java-ident-tests (Files): Likewise.
4078 * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
4079 * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
4080 * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
4081 * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
4082 * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
4083 * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
4084 * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
4085 * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
4086 * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
4087 * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
4088 * modules/uninorm/compat-decomposition-tests (Files): Likewise.
4089 * modules/uninorm/composition-tests (Files): Likewise.
4090 * modules/uninorm/decomposing-form-tests (Files): Likewise.
4091 * modules/uninorm/decomposition-tests (Files): Likewise.
4092 * modules/uninorm/filter-tests (Files): Likewise.
4093 * modules/uninorm/nfc-tests (Files): Likewise.
4094 * modules/uninorm/nfd-tests (Files): Likewise.
4095 * modules/uninorm/nfkc-tests (Files): Likewise.
4096 * modules/uninorm/nfkd-tests (Files): Likewise.
4097 * modules/uninorm/u8-normcmp-tests (Files): Likewise.
4098 * modules/uninorm/u8-normcoll-tests (Files): Likewise.
4099 * modules/uninorm/u16-normcmp-tests (Files): Likewise.
4100 * modules/uninorm/u16-normcoll-tests (Files): Likewise.
4101 * modules/uninorm/u32-normcmp-tests (Files): Likewise.
4102 * modules/uninorm/u32-normcoll-tests (Files): Likewise.
4103 * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
4104 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
4105 * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
4106 * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
4107 * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
4108 * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
4109 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
4110 * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
4111 * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
4112 * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
4113 * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
4114 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
4115 * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
4116 * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
4117 * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
4118 * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
4119 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
4120 * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
4121 * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
4122 * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
4123 * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
4124 * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
4125 * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
4126 * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
4127 * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
4128 * modules/uniwidth/u8-width-tests (Files): Likewise.
4129 * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
4130 * modules/uniwidth/u16-width-tests (Files): Likewise.
4131 * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
4132 * modules/uniwidth/u32-width-tests (Files): Likewise.
4133 * modules/uniwidth/width-tests (Files): Likewise.
4134 * modules/unlink-tests (Files): Likewise.
4135 * modules/unsetenv-tests (Files): Likewise.
4136 * modules/usleep-tests (Files): Likewise.
4137 * modules/utimens-tests (Files): Likewise.
4138 * modules/utimensat-tests (Files): Likewise.
4139 * modules/vasnprintf-posix-tests (Files): Likewise.
4140 * modules/vasnprintf-tests (Files): Likewise.
4141 * modules/vasprintf-posix-tests (Files): Likewise.
4142 * modules/vasprintf-tests (Files): Likewise.
4143 * modules/vdprintf-posix-tests (Files): Likewise.
4144 * modules/vfprintf-posix-tests (Files): Likewise.
4145 * modules/vprintf-posix-tests (Files): Likewise.
4146 * modules/vsnprintf-posix-tests (Files): Likewise.
4147 * modules/vsnprintf-tests (Files): Likewise.
4148 * modules/vsprintf-posix-tests (Files): Likewise.
4149 * modules/wcrtomb-tests (Files): Likewise.
4150 * modules/wcsnrtombs-tests (Files): Likewise.
4151 * modules/wcsrtombs-tests (Files): Likewise.
4152 * modules/wctype-tests (Files): Likewise.
4153 * modules/wcwidth-tests (Files): Likewise.
4154 * modules/xmemdup0-tests (Files): Likewise.
4155 * modules/xprintf-posix-tests (Files): Likewise.
4156 * modules/xvasprintf-tests (Files): Likewise.
4158 2009-12-24 Eric Blake <ebb9@byu.net>
4160 test-nanosleep: fix typo
4161 * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
4163 Reported by Bruno Haible.
4165 2009-12-24 Bruno Haible <bruno@clisp.org>
4167 Reduce namespace pollution on glibc systems.
4168 * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
4169 * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
4171 * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
4172 <getopt.h> on glibc systems.
4173 * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
4175 * lib/fcntl.c: Include <unistd.h> here instead.
4177 2009-12-24 Bruno Haible <bruno@clisp.org>
4179 * lib/stdlib.in.h (includes): Fix typo in today's commit.
4181 2009-12-24 Eric Blake <ebb9@byu.net>
4183 tests: add signature checks
4184 * tests/signature.h (SIGNATURE_CHECK): New file.
4185 * modules/atexit-tests (Files): Use it.
4186 * modules/btowc-tests (Files): Likewise.
4187 * modules/canonicalize-lgpl-tests (Files): Likewise.
4188 * modules/ceilf-tests (Files): Likewise.
4189 * modules/ceill-tests (Files): Likewise.
4190 * modules/chown-tests (Files): Likewise.
4191 * modules/dprintf-posix-tests (Files): Likewise.
4192 * modules/dup2-tests (Files): Likewise.
4193 * modules/dup3-tests (Files): Likewise.
4194 * modules/duplocale-tests (Files): Likewise.
4195 * modules/fchdir-tests (Files): Likewise.
4196 * modules/fcntl-tests (Files): Likewise.
4197 * modules/fdopendir-tests (Files): Likewise.
4198 * modules/fflush-tests (Files): Likewise.
4199 * modules/flock-tests (Files): Likewise.
4200 * modules/floorf-tests (Files): Likewise.
4201 * modules/floorl-tests (Files): Likewise.
4202 * modules/fnmatch-tests (Files): Likewise.
4203 * modules/fopen-tests (Files): Likewise.
4204 * modules/fprintf-posix-tests (Files): Likewise.
4205 * modules/freopen-tests (Files): Likewise.
4206 * modules/frexp-nolibm-tests (Files): Likewise.
4207 * modules/frexp-tests (Files): Likewise.
4208 * modules/frexpl-nolibm-tests (Files): Likewise.
4209 * modules/frexpl-tests (Files): Likewise.
4210 * modules/fseek-tests (Files): Likewise.
4211 * modules/fseeko-tests (Files): Likewise.
4212 * modules/fsync-tests (Files): Likewise.
4213 * modules/ftell-tests (Files): Likewise.
4214 * modules/ftello-tests (Files): Likewise.
4215 * modules/futimens-tests (Files): Likewise.
4216 * modules/getaddrinfo-tests (Files): Likewise.
4217 * modules/getcwd-tests (Files): Likewise.
4218 * modules/getdelim-tests (Files): Likewise.
4219 * modules/getdtablesize-tests (Files): Likewise.
4220 * modules/getgroups-tests (Files): Likewise.
4221 * modules/gethostname-tests (Files): Likewise.
4222 * modules/getline-tests (Files): Likewise.
4223 * modules/getopt-posix-tests (Files): Likewise.
4224 * modules/gettimeofday-tests (Files): Likewise.
4225 * modules/glob-tests (Files): Likewise.
4226 * modules/iconv-tests (Files): Likewise.
4227 * modules/inet_ntop-tests (Files): Likewise.
4228 * modules/inet_pton-tests (Files): Likewise.
4229 * modules/isblank-tests (Files): Likewise.
4230 * modules/lchown-tests (Files): Likewise.
4231 * modules/ldexpl-tests (Files): Likewise.
4232 * modules/link-tests (Files): Likewise.
4233 * modules/linkat-tests (Files): Likewise.
4234 * modules/lseek-tests (Files): Likewise.
4235 * modules/lstat-tests (Files): Likewise.
4236 * modules/mbrtowc-tests (Files): Likewise.
4237 * modules/mbsinit-tests (Files): Likewise.
4238 * modules/mbsnrtowcs-tests (Files): Likewise.
4239 * modules/mbsrtowcs-tests (Files): Likewise.
4240 * modules/memchr-tests (Files): Likewise.
4241 * modules/memcmp-tests (Files): Likewise.
4242 * modules/memmem-tests (Files): Likewise.
4243 * modules/memrchr-tests (Files): Likewise.
4244 * modules/mkdir-tests (Files): Likewise.
4245 * modules/mkfifo-tests (Files): Likewise.
4246 * modules/mkfifoat-tests (Files): Likewise.
4247 * modules/mknod-tests (Files): Likewise.
4248 * modules/nanosleep-tests (Files): Likewise.
4249 * modules/nl_langinfo-tests (Files): Likewise.
4250 * modules/obstack-printf-tests (Files): Likewise.
4251 * modules/open-tests (Files): Likewise.
4252 * modules/openat-tests (Files): Likewise.
4253 * modules/perror-tests (Files): Likewise.
4254 * modules/pipe2-tests (Files): Likewise.
4255 * modules/poll-tests (Files): Likewise.
4256 * modules/popen-tests (Files): Likewise.
4257 * modules/posix_spawn-tests (Files): Likewise.
4258 * modules/posix_spawnp-tests (Files): Likewise.
4259 * modules/pread-tests (Files): Likewise.
4260 * modules/printf-posix-tests (Files): Likewise.
4261 * modules/pty-tests (Files): Likewise.
4262 * modules/random_r-tests (Files): Likewise.
4263 * modules/rawmemchr-tests (Files): Likewise.
4264 * modules/readlink-tests (Files): Likewise.
4265 * modules/remove-tests (Files): Likewise.
4266 * modules/rename-tests (Files): Likewise.
4267 * modules/renameat-tests (Files): Likewise.
4268 * modules/rmdir-tests (Files): Likewise.
4269 * modules/round-tests (Files): Likewise.
4270 * modules/roundf-tests (Files): Likewise.
4271 * modules/roundl-tests (Files): Likewise.
4272 * modules/select-tests (Files): Likewise.
4273 * modules/setenv-tests (Files): Likewise.
4274 * modules/sigaction-tests (Files): Likewise.
4275 * modules/sleep-tests (Files): Likewise.
4276 * modules/snprintf-posix-tests (Files): Likewise.
4277 * modules/snprintf-tests (Files): Likewise.
4278 * modules/sprintf-posix-tests (Files): Likewise.
4279 * modules/stat-tests (Files): Likewise.
4280 * modules/strcasestr-tests (Files): Likewise.
4281 * modules/strchrnul-tests (Files): Likewise.
4282 * modules/strerror-tests (Files): Likewise.
4283 * modules/strsignal-tests (Files): Likewise.
4284 * modules/strstr-tests (Files): Likewise.
4285 * modules/strtod-tests (Files): Likewise.
4286 * modules/strverscmp-tests (Files): Likewise.
4287 * modules/symlink-tests (Files): Likewise.
4288 * modules/symlinkat-tests (Files): Likewise.
4289 * modules/times-tests (Files): Likewise.
4290 * modules/trunc-tests (Files): Likewise.
4291 * modules/truncf-tests (Files): Likewise.
4292 * modules/truncl-tests (Files): Likewise.
4293 * modules/tsearch-tests (Files): Likewise.
4294 * modules/uname-tests (Files): Likewise.
4295 * modules/unlink-tests (Files): Likewise.
4296 * modules/unsetenv-tests (Files): Likewise.
4297 * modules/usleep-tests (Files): Likewise.
4298 * modules/utimensat-tests (Files): Likewise.
4299 * modules/vasprintf-tests (Files): Likewise.
4300 * modules/vdprintf-posix-tests (Files): Likewise.
4301 * modules/vfprintf-posix-tests (Files): Likewise.
4302 * modules/vprintf-posix-tests (Files): Likewise.
4303 * modules/vsnprintf-posix-tests (Files): Likewise.
4304 * modules/vsnprintf-tests (Files): Likewise.
4305 * modules/vsprintf-posix-tests (Files): Likewise.
4306 * modules/wcrtomb-tests (Files): Likewise.
4307 * modules/wcsnrtombs-tests (Files): Likewise.
4308 * modules/wcsrtombs-tests (Files): Likewise.
4309 * modules/wcwidth-tests (Files): Likewise.
4310 * tests/test-isfinite.c (isfinite): Ensure macro declaration.
4311 * tests/test-isinf.c (isinf): Likewise.
4312 * tests/test-isnan.c (isnan): Likewise.
4313 * tests/test-signbit.c (signbit): Likewise.
4314 * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
4315 declaration, either as macro or with correct signature.
4316 (select): Ensure function under test is declared with correct
4317 signature in correct header.
4318 * tests/test-atexit.c (atexit): Likewise.
4319 * tests/test-btowc.c (btowc): Likewise.
4320 * tests/test-canonicalize-lgpl.c (realpath)
4321 (canonicalize_file_name): Likewise.
4322 * tests/test-ceilf1.c (ceilf): Likewise.
4323 * tests/test-ceill.c (ceill): Likewise.
4324 * tests/test-chown.c (chown): Likewise.
4325 * tests/test-dprintf-posix.c (dprintf): Likewise.
4326 * tests/test-dup2.c (dup2): Likewise.
4327 * tests/test-dup3.c (dup3): Likewise.
4328 * tests/test-duplocale.c (duplocale): Likewise.
4329 * tests/test-fchdir.c (fchdir): Likewise.
4330 * tests/test-fchownat.c (fchownat): Likewise.
4331 * tests/test-fcntl.c (fcntl): Likewise.
4332 * tests/test-fdopendir.c (fdopendir): Likewise.
4333 * tests/test-fflush.c (fflush): Likewise.
4334 * tests/test-flock.c (flock): Likewise.
4335 * tests/test-floorf1.c (floorf): Likewise.
4336 * tests/test-floorl.c (floorl): Likewise.
4337 * tests/test-fnmatch.c (fnmatch): Likewise.
4338 * tests/test-fopen.c (fopen): Likewise.
4339 * tests/test-fprintf-posix.c (fprintf): Likewise.
4340 * tests/test-freopen.c (freopen): Likewise.
4341 * tests/test-frexp.c (frexp): Likewise.
4342 * tests/test-frexpl.c (frexpl): Likewise.
4343 * tests/test-fseek.c (fseek): Likewise.
4344 * tests/test-fseeko.c (fseeko): Likewise.
4345 * tests/test-fstatat.c (fstatat): Likewise.
4346 * tests/test-fsync.c (fsync): Likewise.
4347 * tests/test-ftell.c (ftell): Likewise.
4348 * tests/test-ftello.c (ftello): Likewise.
4349 * tests/test-futimens.c (futimens): Likewise.
4350 * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
4351 (gai_strerror): Likewise.
4352 * tests/test-getcwd.c (getcwd): Likewise.
4353 * tests/test-getdelim.c (getdelim): Likewise.
4354 * tests/test-getdtablesize.c (getdtablesize): Likewise.
4355 * tests/test-getgroups.c (getgroups): Likewise.
4356 * tests/test-gethostname.c (gethostname): Likewise.
4357 * tests/test-getline.c (getline): Likewise.
4358 * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
4360 * tests/test-gettimeofday.c (gettimeofday): Likewise.
4361 * tests/test-glob.c (glob, globfree): Likewise.
4362 * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
4363 * tests/test-inet_ntop.c (inet_ntop): Likewise.
4364 * tests/test-inet_pton.c (inet_pton): Likewise.
4365 * tests/test-isblank.c (isblank): Likewise.
4366 * tests/test-lchown.c (lchown): Likewise.
4367 * tests/test-ldexpl.c (ldexpl): Likewise.
4368 * tests/test-link.c (link): Likewise.
4369 * tests/test-linkat.c (linkat): Likewise.
4370 * tests/test-lseek.c (lseek): Likewise.
4371 * tests/test-lstat.c (lstat): Likewise.
4372 * tests/test-mbrtowc.c (mbrtowc): Likewise.
4373 * tests/test-mbsinit.c (mbsinit): Likewise.
4374 * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
4375 * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
4376 * tests/test-memchr.c (memchr): Likewise.
4377 * tests/test-memcmp.c (memcmp): Likewise.
4378 * tests/test-memmem.c (memmem): Likewise.
4379 * tests/test-memrchr.c (memrchr): Likewise.
4380 * tests/test-mkdir.c (mkdir): Likewise.
4381 * tests/test-mkdirat.c (mkdirat): Likewise.
4382 * tests/test-mkfifo.c (mkfifo): Likewise.
4383 * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
4384 * tests/test-mknod.c (mknod): Likewise.
4385 * tests/test-nanosleep.c (nanosleep): Likewise.
4386 * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
4387 * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
4389 * tests/test-open.c (open): Likewise.
4390 * tests/test-openat.c (openat): Likewise.
4391 * tests/test-perror.c (perror): Likewise.
4392 * tests/test-pipe2.c (pipe2): Likewise.
4393 * tests/test-poll.c (poll): Likewise.
4394 * tests/test-popen.c (popen, pclose): Likewise.
4395 * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
4396 (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
4397 (posix_spawnattr_setflags, posix_spawn_file_actions_init)
4398 (posix_spawn_file_actions_destroy)
4399 (posix_spawn_file_actions_addclose)
4400 (posix_spawn_file_actions_addopen)
4401 (posix_spawn_file_actions_adddup2): Likewise.
4402 * tests/test-posix_spawn3.c (posix_spawn): Likewise.
4403 * tests/test-pread.c (pread): Likewise.
4404 * tests/test-printf-posix.c (printf): Likewise.
4405 * tests/test-pty.c (openpty, forkpty): Likewise.
4406 * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
4407 (random_r): Likewise.
4408 * tests/test-rawmemchr.c (rawmemchr): Likewise.
4409 * tests/test-readlink.c (readlink): Likewise.
4410 * tests/test-remove.c (remove): Likewise.
4411 * tests/test-rename.c (rename): Likewise.
4412 * tests/test-renameat.c (renameat): Likewise.
4413 * tests/test-rmdir.c (rmdir): Likewise.
4414 * tests/test-round1.c (round): Likewise.
4415 * tests/test-roundf1.c (roundf): Likewise.
4416 * tests/test-roundl.c (roundl): Likewise.
4417 * tests/test-setenv.c (setenv): Likewise.
4418 * tests/test-sigaction.c (sigaction): Likewise.
4419 * tests/test-sleep.c (sleep): Likewise.
4420 * tests/test-snprintf.c (snprintf): Likewise.
4421 * tests/test-sprintf-posix.c (sprintf): Likewise.
4422 * tests/test-stat.c (stat): Likewise.
4423 * tests/test-stpncpy.c (stpncpy): Likewise.
4424 * tests/test-strcasestr.c (strcasestr): Likewise.
4425 * tests/test-strchrnul.c (strchrnul): Likewise.
4426 * tests/test-strerror.c (strerror): Likewise.
4427 * tests/test-strsignal.c (strsignal): Likewise.
4428 * tests/test-strstr.c (strstr): Likewise.
4429 * tests/test-strtod.c (strtod): Likewise.
4430 * tests/test-strverscmp.c (strverscmp): Likewise.
4431 * tests/test-symlink.c (symlink): Likewise.
4432 * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
4433 * tests/test-times.c (times): Likewise.
4434 * tests/test-trunc1.c (trunc): Likewise.
4435 * tests/test-truncf1.c (truncf): Likewise.
4436 * tests/test-truncl.c (truncl): Likewise.
4437 * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
4439 * tests/test-uname.c (uname): Likewise.
4440 * tests/test-unlink.c (unlink): Likewise.
4441 * tests/test-unlinkat.c (unlinkat): Likewise.
4442 * tests/test-unsetenv.c (unsetenv): Likewise.
4443 * tests/test-usleep.c (usleep): Likewise.
4444 * tests/test-utimensat.c (utimensat): Likewise.
4445 * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
4446 * tests/test-vdprintf-posix.c (vdprintf): Likewise.
4447 * tests/test-vfprintf-posix.c (vfprintf): Likewise.
4448 * tests/test-vprintf-posix.c (vprintf): Likewise.
4449 * tests/test-vsnprintf.c (vsnprintf): Likewise.
4450 * tests/test-vsprintf-posix.c (vsprintf): Likewise.
4451 * tests/test-wcrtomb.c (wcrtomb): Likewise.
4452 * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
4453 * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
4454 * tests/test-wcwidth.c (wcwidth): Likewise.
4456 build: pull in conditional headers during GNULIB_POSIXCHECK
4457 * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
4458 definitions from any conditionally-included headers.
4459 * lib/stdlib.in.h (includes): Likewise.
4460 * lib/unistd.in.h (includes): Likewise.
4462 2009-12-24 Bruno Haible <bruno@clisp.org>
4464 * tests/test-argv-iter.c: Include header file being tested immediately
4466 * tests/test-base64.c: Likewise.
4467 * tests/test-flock.c: Likewise.
4468 * tests/test-fsync.c: Likewise.
4469 * tests/test-getdate.c: Likewise.
4470 * tests/test-getndelim2.c: Likewise.
4471 * tests/test-isfinite.c: Likewise.
4472 * tests/test-isinf.c: Likewise.
4473 * tests/test-strerror.c: Likewise.
4474 * tests/test-strsignal.c: Likewise.
4476 2009-12-23 Eric Blake <ebb9@byu.net>
4478 unistd: work around cygwin bug
4479 * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
4480 * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
4481 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
4483 2009-12-23 Bruno Haible <bruno@clisp.org>
4485 localename: More tests.
4486 * tests/test-localename.c (SIZEOF): New macro.
4487 (categories): New variable.
4488 (test_locale_name, test_locale_name_posix, test_locale_name_environ,
4489 test_locale_name_default): Add test w.r.t. thread locale.
4490 (test_locale_name_thread): New function.
4493 localename: Make aware of thread locale.
4494 * lib/localename.h (gl_locale_name_thread): New declaration.
4495 (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
4496 behaviour with respect to thread locale.
4497 * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
4498 <langinfo.h>, glthread/lock.h.
4499 (SIZE_BITS): New macro.
4500 (string_hash): New function.
4501 (struct hash_node): New type.
4502 (HASH_TABLE_SIZE): New macro.
4503 (struniq_hash_table, struniq_lock): New variables.
4504 (struniq): New function.
4505 (gl_locale_name_thread): New function.
4506 (gl_locale_name): Invoke it.
4507 * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
4508 * modules/localename (Depends-on): Add lock.
4509 Reported by Mike Gran <spk121@yahoo.com>.
4511 2009-12-23 Eric Blake <ebb9@byu.net>
4514 * modules/va-args: New file.
4515 * m4/va-args.m4 (gl_VA_ARGS): Likewise.
4516 * MODULES.html.sh (Core language properties): Mention it.
4518 gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
4519 * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
4520 named alias for __attribute__((__unused__)).
4521 * lib/chown.c: Update client.
4522 * lib/fchmodat.c: Likewise.
4523 * lib/fts.c: Likewise.
4524 * lib/getdate.y: Likewise.
4525 * lib/getgroups.c: Likewise.
4526 * lib/getopt.c: Likewise.
4527 * lib/getugroups.c: Likewise.
4528 * lib/mkdir.c: Likewise.
4529 * lib/mkfifo.c: Likewise.
4530 * lib/mkfifoat.c: Likewise.
4531 * lib/mknod.c: Likewise.
4532 * lib/mknodat.c: Likewise.
4533 * lib/readlink.c: Likewise.
4534 * lib/se-context.in.h: Likewise.
4535 * lib/se-selinux.in.h: Likewise.
4536 * lib/sockets.c: Likewise.
4537 * lib/symlink.c: Likewise.
4538 * lib/symlinkat.c: Likewise.
4539 * lib/unicodeio.c: Likewise.
4540 * lib/unistr.h: Likewise.
4541 * tests/test-areadlink.c: Likewise.
4542 * tests/test-areadlinkat.c: Likewise.
4543 * tests/test-filenamecat.c: Likewise.
4544 * tests/test-fseeko.c: Likewise.
4545 * tests/test-ftello.c: Likewise.
4546 * tests/test-getdate.c: Likewise.
4547 * tests/test-getgroups.c: Likewise.
4548 * tests/test-gethostname.c: Likewise.
4549 * tests/test-quotearg.c: Likewise.
4550 * tests/test-version-etc.c: Likewise.
4551 * tests/test-xalloc-die.c: Likewise.
4552 * tests/test-xfprintf-posix.c: Likewise.
4553 * tests/test-xprintf-posix.c: Likewise.
4554 * tests/test-xvasprintf.c: Likewise.
4556 tests: avoid compiler warnings
4557 * tests/test-fcntl.c (main): Delete unused parameters.
4558 * tests/test-freopen-safer.c (main): Likewise.
4559 * tests/test-xalloc-die.c (main): Mark unused parameters.
4560 * tests/test-fseeko.c (main): Likewise.
4561 * tests/test-ftello.c (main): Likewise.
4562 * tests/test-nanosleep.c (main): Avoid declaration warning.
4563 * tests/test-sleep.c (main): Likewise.
4564 * tests/test-unsetenv.c (main): Silence warning about string
4566 * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4568 2009-12-23 Bruno Haible <bruno@clisp.org>
4570 * tests/test-localename.c (test_locale_name): New function, extracted
4571 from main. Also test mixed situations.
4572 (test_locale_name_posix, test_locale_name_environ,
4573 test_locale_name_default): New functions.
4574 (main): Invoke them all.
4575 * modules/localename-tests (configure.ac): Test for newlocale.
4577 2009-12-23 Bruno Haible <bruno@clisp.org>
4579 unistd: Ensure getcwd gets declared before being overridden.
4580 * lib/unistd.in.h: Conditionally include <io.h>.
4582 2009-12-22 Bruno Haible <bruno@clisp.org>
4584 wchar: Diagnose broken combination of glibc and gcc versions and flags.
4585 * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
4586 (gl_WCHAR_H): Invoke it.
4587 * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
4588 * doc/posix-headers/wchar.texi: Mention the interoperability problem.
4589 Reported by Karl Berry <karl@freefriends.org>.
4591 2009-12-22 Eric Blake <ebb9@byu.net>
4593 math, unistd: avoid redundant includes
4594 * lib/math.in.h (isnan): No need to re-include <math.h>.
4595 * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
4597 getsubopt: work around cygwin bug
4598 * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
4599 avoid conflicting with system getsubopt.
4600 * doc/posix-functions/getsubopt.texi (getsubopt): Document the
4603 getopt: synchronize from glibc
4604 * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
4605 parameter order. Adjust all callers.
4606 (_getopt_internal_r, main): Adjust quoting in error messages.
4607 Drop considerations for outdated POSIX 1003.2 error message.
4608 * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
4610 * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
4612 test-getopt: test stderr behavior
4613 * modules/getopt-posix-tests (Depends-on): Add dup2.
4614 * tests/test-getopt.c (ASSERT): Avoid stderr.
4615 (main): Move stderr to a temporary file.
4616 * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
4617 Instead, add parameter to inform caller if output occurred.
4618 (test_getopt): Adjust all existing tests to expect silence, and
4619 add new tests of leading ":".
4620 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4621 glibc shortcomings with leading "-:" or "+:" in optstring.
4622 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4624 * doc/posix-functions/getopt.texi (getopt): Likewise.
4626 test-getopt: enhance test
4627 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
4629 * tests/test-getopt.c (OPTIND_MIN): Move...
4630 * tests/test-getopt.h (OPTIND_MIN): ...here.
4631 * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
4632 Require that optind=0 works, since modern BSD supports it in
4633 addition to optreset, and since coreutils expects it.
4634 (test_getopt_long_only): New test.
4635 * doc/glibc-functions/getopt_long.texi (getopt_long): Document
4636 glibc shortcomings with 'W;', and enforcement of optind=0.
4637 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
4640 2009-12-21 Bruno Haible <bruno@clisp.org>
4642 localename: Improvements for MacOS X and Cygwin.
4643 * lib/localename.h (gl_locale_name_environ): New declaration.
4644 * lib/localename.c (gl_locale_name_environ): New function, extracted from
4645 gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
4646 (gl_locale_name_posix): Invoke it.
4647 (gl_locale_name_default): Add comments. Use Windows native API also on
4650 2009-12-21 Bruno Haible <bruno@clisp.org>
4652 Update list of Win32 locale ids.
4653 * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
4654 (LANG_SAMI): Renamed from LANG_SAAMI.
4655 (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
4656 LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
4657 LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
4658 LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
4659 (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
4660 SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
4661 SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
4662 SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
4663 SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
4664 SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
4665 SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
4666 SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
4667 SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
4668 SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
4669 SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
4670 SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
4671 SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
4672 SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
4673 SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
4674 SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
4675 SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
4676 SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
4677 SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
4678 SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
4679 SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
4680 SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
4681 SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
4682 SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
4683 SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
4684 SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
4685 SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
4686 SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
4687 SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
4688 SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
4689 SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
4690 SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
4691 SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
4692 SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
4693 SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
4694 SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
4695 SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
4696 SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
4697 SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
4698 SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
4699 SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
4700 SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
4701 SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
4702 SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
4703 SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
4704 SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
4705 SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
4706 SUBLANG_ZULU_SOUTH_AFRICA): New macros.
4707 (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
4708 locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
4709 Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
4710 Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
4711 Add more languages and countries for Sami, Sorbian. Add more countries
4712 for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
4713 for Pashto. Change country for Syriac, Tswana.
4715 2009-12-21 Eric Blake <ebb9@byu.net>
4717 test-utimens: avoid spurious failure
4718 * tests/test-chown.h (nap): Factor...
4719 * tests/nap.h: ...into new file.
4720 * tests/test-lchown.h (nap): Avoid duplication.
4721 * tests/test-utimens-common.h (nap): Use shared implementation,
4722 necessary on file systems with 1-second resolution.
4723 * modules/chown-tests (Files): Include new file.
4724 * modules/fdutimensat-tests (Files): Likewise.
4725 * modules/futimens-tests (Files): Likewise.
4726 * modules/lchown-tests (Files): Likewise.
4727 * modules/openat-tests (Files): Likewise.
4728 * modules/utimens-tests (Files): Likewise.
4729 * modules/utimensat-tests (Files): Likewise.
4731 2009-12-19 Eric Blake <ebb9@byu.net>
4733 futimens, utimensat: work around Linux bug
4734 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
4735 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4736 * lib/utimensat.c (rpl_utimensat): Work around it.
4737 * lib/futimens.c (rpl_futimens): Adjust comment.
4739 utimens: work around Linux ctime bug
4740 * lib/utimens.c (detect_ctime_bug): New helper function.
4741 (update_timespec): Differentiate between workaround needed for
4742 this bug vs. what is needed for systems that lack utimensat.
4743 (fdutimens, lutimens): Work around bug.
4745 utimens: check for ctime update
4746 * tests/test-utimens-common.h (check_ctime): Define.
4747 * tests/test-utimens.h (test_utimens): Expose the Linux bug.
4748 * tests/test-futimens.h (test_futimens): Likewise.
4749 * tests/test-lutimens.h (test_lutimens): Likewise.
4750 * doc/posix-functions/futimens.texi (futimens): Document the bug.
4751 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
4753 2009-12-19 Bruno Haible <bruno@clisp.org>
4755 dprintf-posix: Check against memory leak fixed on 2009-12-15.
4756 * tests/test-dprintf-posix2.sh: New file.
4757 * tests/test-dprintf-posix2.c: New file.
4758 * modules/dprintf-posix-tests (Files): Add them.
4759 (configure.ac): Check for getrlimit and setrlimit.
4760 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4762 2009-12-19 Bruno Haible <bruno@clisp.org>
4764 fprintf-posix: Check against memory leak fixed on 2009-12-15.
4765 * tests/test-fprintf-posix3.sh: New file.
4766 * tests/test-fprintf-posix3.c: New file.
4767 * modules/fprintf-posix-tests (Files): Add them.
4768 (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
4770 2009-12-19 Eric Blake <ebb9@byu.net>
4772 dirfd: fix prototype
4773 * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
4774 * lib/dirfd.c (dirfd): Likewise.
4776 canonicalize: reduce memory usage
4777 * lib/canonicalize.c (canonicalize_filename_mode): Trim the
4779 Reported by Solar Designer <solar@openwall.com>.
4781 2009-12-19 Bruno Haible <bruno@clisp.org>
4783 New module attribute 'Applicability'.
4784 * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
4785 * gnulib-tool: New option --extract-applicability.
4786 (func_usage): Document it.
4787 (sed_extract_prog): Recognize it.
4788 (func_get_applicability): New function.
4789 (func_import): Generalize handling of 'link-warning' module.
4790 * modules/link-warning (Applicability): New section.
4791 * modules/arg-nonnull (Applicability): New section.
4792 Repoted by Simon Josefsson <simon@josefsson.org>.
4794 2009-12-19 Bruno Haible <bruno@clisp.org>
4797 * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
4798 * lib/fseeko.c (rpl_fseeko): Likewise.
4800 2009-12-16 José E. Marchesi <jemarch@gnu.org> (tiny change)
4802 * lib/gl_list.h: Fix typo in comment.
4804 2009-12-16 Eric Blake <ebb9@byu.net>
4806 fcntl: use to simplify other modules
4807 * modules/cloexec (Depends-on): Add fcntl.
4808 * modules/fchdir (Depends-on): Likewise.
4809 * modules/fd-safer-flag (Depends-on): Likewise.
4810 * modules/unistd-safer (Depends-on): Likewise.
4811 * modules/dup3 (configure.ac): Set module indicator.
4812 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
4814 * lib/fchdir.c (_gl_register_dup): Fix comment.
4815 * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
4816 * lib/dup-safer.c (dup_safer): Likewise.
4817 * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
4818 * lib/dup3.c (dup3): Likewise.
4819 * tests/test-fchdir.c (main): Enhance test.
4820 Fixes a dup_cloexec bug reported by OndÅ™ej VaÅ¡Ãk.
4822 fcntl: port portions of fcntl to mingw
4823 * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
4824 * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
4825 replacement for mingw.
4826 * modules/fcntl (Description): Update.
4827 (Depends-on): Add dup2.
4828 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
4829 * modules/fcntl-h (Makefile.am): Substitute it.
4830 * lib/fcntl.in.h (fcntl): Update declaration.
4831 (F_DUPFD, F_GETFD): New macros, when needed.
4832 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
4833 * doc/posix-functions/fcntl.texi (fcntl): Likewise.
4834 * tests/test-fcntl.c (check_flags, main): Enhance test for items
4837 fcntl: work around cygwin bug in F_DUPFD
4838 * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
4839 (gl_FUNC_FCNTL): Use it. Test for F_DUPFD bug.
4840 * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
4841 <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
4842 * doc/posix-functions/fcntl.texi (fcntl): Document it.
4844 fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
4845 * modules/fcntl (Files): List new files.
4846 (configure.ac): Run a test.
4847 * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
4848 * lib/fcntl.c (rpl_fcntl): Likewise.
4849 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
4850 (gl_FCNTL_H): Always replace fcntl.h.
4851 * modules/fcntl-h (Makefile.am): Substitute witnesses.
4852 * lib/fcntl.in.h (fcntl): Declare replacement.
4853 (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
4854 needed, plus a witness.
4855 * doc/posix-functions/fcntl.texi (fcntl): Document this.
4856 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
4857 * tests/test-fcntl.c: New file.
4858 * modules/fcntl-tests: Likewise.
4860 binary-io: avoid potential compilation warning
4861 * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
4864 fflush: avoid compilation error on NetBSD
4865 * lib/fflush.c (update_fpos_cache): Use a union to safely convert
4866 between off_t and fpos_t, since the latter is sometimes a struct.
4867 * lib/fseeko.c (rpl_fseeko): Likewise.
4868 Reported by Alexander Nasonov <alnsn@yandex.ru>.
4870 2009-12-15 Eric Blake <ebb9@byu.net>
4872 fcntl-h, stdio, sys_ioctl: fix declarations
4873 * lib/stdio.in.h (dprintf): Use of link warning on a variadic
4874 function must not take arguments.
4875 * lib/sys_ioctl.in.h (ioctl): Likewise.
4876 * lib/fcntl.in.h (openat): Likewise. Declare extern.
4877 (open): Add a link warning.
4879 2009-12-15 Jim Meyering <meyering@redhat.com>
4881 areadlink, areadlink-with-size: relax license to LGPLv2+
4882 * modules/areadlink (License): Relax to LGPLv2+.
4883 * modules/areadlink-with-size (License): Likewise.
4885 2009-12-15 Joel E. Denny <jdenny@clemson.edu>
4886 Bruno Haible <bruno@clisp.org>
4888 *printf: Fix memory leak.
4889 * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
4890 * lib/vfprintf.c (vfprintf): Likewise.
4891 * lib/dprintf.c (dprintf): Likewise.
4892 * lib/vdprintf.c (vdprintf): Likewise.
4894 2009-12-14 Eric Blake <ebb9@byu.net>
4896 accept4: adjust module dependencies
4897 * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
4899 utimens: one more try at avoiding compiler warning
4900 * lib/utimens.c (lutimens): Lower scope of result.
4902 2009-12-13 Bruno Haible <bruno@clisp.org>
4904 Move the malloc checking from module 'list' to new module 'xlist'.
4905 * modules/xlist: New file.
4906 * lib/gl_xlist.h: New file.
4907 * lib/gl_xlist.c: New file.
4908 * lib/gl_list.h (gl_list_create_empty, gl_list_create,
4909 gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
4910 gl_list_add_last, gl_list_add_before, gl_list_add_after,
4911 gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
4912 (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
4913 gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
4914 gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
4915 gl_sortedlist_nx_add): New declarations.
4916 (struct gl_list_implementation): Rename and change methods accordingly.
4917 (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
4918 (gl_list_nx_create): Renamed from gl_list_create.
4919 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4920 (gl_list_nx_set_at): Renamed from gl_list_set_at.
4921 (gl_list_nx_add_first): Renamed from gl_list_add_first.
4922 (gl_list_nx_add_last): Renamed from gl_list_add_last.
4923 (gl_list_nx_add_before): Renamed from gl_list_add_before.
4924 (gl_list_nx_add_after): Renamed from gl_list_add_after.
4925 (gl_list_nx_add_at): Renamed from gl_list_add_at.
4926 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4927 * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
4928 gl_list_create_empty.
4929 (gl_list_nx_create): Renamed from gl_list_create.
4930 (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
4931 (gl_list_nx_set_at): Renamed from gl_list_set_at.
4932 (gl_list_nx_add_first): Renamed from gl_list_add_first.
4933 (gl_list_nx_add_last): Renamed from gl_list_add_last.
4934 (gl_list_nx_add_before): Renamed from gl_list_add_before.
4935 (gl_list_nx_add_after): Renamed from gl_list_add_after.
4936 (gl_list_nx_add_at): Renamed from gl_list_add_at.
4937 (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
4938 * lib/gl_array_list.c: Don't include xalloc.h.
4939 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
4940 NULL upon out-of-memory.
4941 (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
4943 (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
4944 Change return type to 'int'.
4945 (gl_array_nx_set_at): Renamed from gl_array_set_at.
4946 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4947 (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
4949 (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
4951 (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
4953 (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
4955 (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
4957 (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
4959 (gl_array_list_implementation): Update.
4960 * lib/gl_carray_list.c: Don't include xalloc.h.
4961 (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
4962 Return NULL upon out-of-memory.
4963 (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
4965 (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
4966 Change return type to 'int'.
4967 (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
4968 (grow): Change return type to 'int'. Return -1 upon out-of-memory.
4969 (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
4971 (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
4973 (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
4975 (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
4976 (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
4977 (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
4979 (gl_carray_list_implementation): Update.
4980 * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
4981 * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
4982 gl_linked_create_empty. Return NULL upon out-of-memory.
4983 (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
4985 (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
4986 Change return type to 'int'. Return -1 upon out-of-memory.
4987 (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
4989 (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
4991 (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
4993 (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
4994 NULL upon out-of-memory.
4995 (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
4997 (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
4999 (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
5001 * lib/gl_linked_list.c: Don't include xalloc.h.
5002 (gl_linked_list_implementation): Update.
5003 * lib/gl_linkedhash_list.c: Don't include xalloc.h.
5004 (add_to_bucket): Change return type to 'int'.
5005 (gl_linkedhash_list_implementation): Update.
5006 * lib/gl_anytree_list1.h (free_subtree): New function.
5007 * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
5008 gl_tree_create_empty. Return NULL upon out-of-memory.
5009 (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
5010 Change return type to 'int'. Return -1 upon out-of-memory.
5011 (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
5013 (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
5014 (gl_tree_remove_node): New function, moved here from
5015 lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
5016 (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
5018 * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
5019 malloc, not xmalloc. Return NULL upon out-of-memory.
5020 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5022 (gl_tree_remove_node_from_tree): New function, extracted from
5023 gl_tree_remove_node.
5024 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5026 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5028 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5030 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5032 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5033 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
5034 not xmalloc. Return NULL upon out-of-memory.
5035 (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
5037 (gl_tree_remove_node_from_tree): New function, extracted from
5038 gl_tree_remove_node.
5039 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
5041 (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
5043 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
5045 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
5047 (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
5048 * lib/gl_avltree_list.c: Don't include xalloc.h. Include
5049 gl_anytree_list1.h before gl_anyavltree_list2.h.
5050 (gl_avltree_list_implementation): Update.
5051 * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
5052 gl_anytree_list1.h before gl_anyavltree_list2.h.
5053 (gl_rbtree_list_implementation): Update.
5054 * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
5055 Change return type to 'int'. Return -1 upon out-of-memory. Use
5057 * lib/gl_avltreehash_list.c: Don't include xalloc.h.
5058 (gl_avltreehash_list_implementation): Update.
5059 * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
5060 (gl_rbtreehash_list_implementation): Update.
5061 * modules/array-list (Depends-on): Remove xalloc.
5062 * modules/carray-list (Depends-on): Likewise.
5063 * modules/linked-list (Depends-on): Likewise.
5064 * modules/linkedhash-list (Depends-on): Likewise.
5065 * modules/avltree-list (Depends-on): Likewise.
5066 * modules/rbtree-list (Depends-on): Likewise.
5067 * modules/avltreehash-list (Depends-on): Likewise.
5068 * modules/rbtreehash-list (Depends-on): Likewise.
5070 * modules/xsublist: New file.
5071 * lib/gl_xsublist.h: New file.
5072 * lib/gl_xsublist.c: New file.
5073 * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
5074 (gl_sublist_nx_create): New declaration.
5075 * lib/gl_sublist.c: Don't include xalloc.h.
5076 (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
5077 (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
5078 (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
5079 Change return type to 'int'. Return -1 upon out-of-memory.
5080 (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
5082 (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
5083 NULL upon out-of-memory.
5084 (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
5086 (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
5087 NULL upon out-of-memory.
5088 (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
5089 NULL upon out-of-memory.
5090 (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
5092 (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
5093 (gl_sublist_list_implementation): Update.
5094 (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
5096 * modules/sublist (Depends-on): Remove xalloc.
5098 * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
5099 * tests/test-carray_list.c: Likewise.
5100 * tests/test-linked_list.c: Likewise.
5101 * tests/test-linkedhash_list.c: Likewise.
5102 * tests/test-avltree_list.c: Likewise.
5103 * tests/test-rbtree_list.c: Likewise.
5104 * tests/test-avltreehash_list.c: Likewise.
5105 * tests/test-rbtreehash_list.c: Likewise.
5106 * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
5107 * modules/carray-list-tests (Makefile.am): Likewise.
5108 * modules/linked-list-tests (Makefile.am): Likewise.
5109 * modules/linkedhash-list-tests (Makefile.am): Likewise.
5110 * modules/avltree-list-tests (Makefile.am): Likewise.
5111 * modules/rbtree-list-tests (Makefile.am): Likewise.
5112 * modules/avltreehash-list-tests (Makefile.am): Likewise.
5113 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
5115 * NEWS: Mention the changes.
5117 * lib/clean-temp.c: Include gl_xlist.h.
5118 * modules/clean-temp (Depends-on): Add xlist.
5120 * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
5121 * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
5123 * tests/test-array_oset.c: Include gl_xlist.h.
5124 * modules/array-oset-tests (Depends-on): Add xlist.
5126 Reported by José E. Marchesi <jemarch@gnu.org>.
5128 2009-12-13 Bruno Haible <bruno@clisp.org>
5130 Move the malloc checking from module 'oset' to new module 'xoset'.
5131 * modules/xoset: New file.
5132 * lib/gl_xoset.h: New file.
5133 * lib/gl_xoset.c: New file.
5134 * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
5136 (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
5137 (struct gl_oset_implementation): Rename and change methods accordingly.
5138 (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
5139 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5140 'int'. Mark as __warn_unused_result__.
5141 * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
5142 gl_oset_create_empty.
5143 (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
5145 * lib/gl_array_oset.c: Don't include xalloc.h.
5146 (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
5147 malloc, not xmalloc.
5148 (grow): Change return type to 'int'. Don't call xalloc_die.
5149 (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
5151 (gl_array_nx_add): Renamed from gl_array_add. Change return type to
5153 (gl_array_oset_implementation): Update.
5154 * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
5155 gl_tree_create_empty.
5156 (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
5158 * lib/gl_avltree_oset.c: Don't include xalloc.h.
5159 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5161 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5163 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5165 (gl_avltree_oset_implementation): Update.
5166 * lib/gl_rbtree_oset.c: Don't include xalloc.h.
5167 (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
5169 (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
5171 (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
5173 (gl_rbtree_oset_implementation): Update.
5174 * modules/array-oset (Depends-on): Remove xalloc.
5175 * modules/avltree-oset (Depends-on): Likewise.
5176 * modules/rbtree-oset (Depends-on): Likewise.
5177 * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
5178 * tests/test-avltree_oset.c: Likewise.
5179 * tests/test-rbtree_oset.c: Likewise.
5180 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
5181 * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
5182 * modules/rbtree-oset-tests (Makefile.am): Likewise.
5183 * NEWS: Mention the change.
5185 2009-12-05 Alfred M. Szmidt <ams@gnu.org>
5187 maint.mk: allow a project to override release-prep commands
5188 * top/maint.mk (alpha, beta, stable): Move release-preparatory
5189 commands into a new rule.
5190 (release-prep): New rule.
5191 (release-prep-hook): New overridable variable.
5193 2009-12-13 Bruno Haible <bruno@clisp.org>
5195 * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
5197 2009-12-13 Jim Meyering <meyering@redhat.com>
5199 maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
5200 * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
5202 2009-12-12 Bruno Haible <bruno@clisp.org>
5205 * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
5207 2009-12-12 Karl Berry <karl@gnu.org>
5209 * config/srclist.txt (strtoll.c): tab changes, no more sync.
5211 2009-12-12 Bruno Haible <bruno@clisp.org>
5213 * m4/po.m4: Undo incorrect untabification.
5215 2009-12-12 Bruno Haible <bruno@clisp.org>
5217 c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
5218 * modules/c-strtod (Depends-on): Add locale.
5219 * modules/c-strtold (Depends-on): Likewise.
5221 2009-12-12 Bruno Haible <bruno@clisp.org>
5223 * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
5225 2009-12-11 Eric Blake <ebb9@byu.net>
5227 setenv: relax requirement in light of POSIX ruling
5228 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
5230 * tests/test-setenv.c (main): Relax test.
5231 * tests/test-unsetenv.c (main): Likewise.
5232 * doc/posix-functions/setenv.texi (setenv): Document this.
5233 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
5235 2009-12-11 Bruno Haible <bruno@clisp.org>
5237 New module 'fd-safer-flag'.
5238 * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
5239 * lib/dup-safer.c (dup_safer_flag): Remove function.
5240 * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
5241 * lib/fd-safer.c (fd_safer_flag): Remove function.
5242 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
5243 * modules/cloexec (configure.ac): Drop indicator macro.
5244 * modules/fd-safer-flag: New file.
5245 * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
5246 * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
5247 * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
5249 2009-12-11 Bruno Haible <bruno@clisp.org>
5251 Tests for module 'nl_langinfo'.
5252 * modules/nl_langinfo-tests: New file.
5253 * tests/test-nl_langinfo.sh: New file.
5254 * tests/test-nl_langinfo.c: New file.
5256 New module 'nl_langinfo'.
5257 * lib/nl_langinfo.c: New file.
5258 * m4/nl_langinfo.m4: New file.
5259 * modules/nl_langinfo: New file.
5260 * doc/posix-functions/nl_langinfo.texi: Mention the new module.
5262 2009-12-11 Bruno Haible <bruno@clisp.org>
5264 Tests for module 'langinfo'.
5265 * modules/langinfo-tests: New file.
5266 * tests/test-langinfo.c: New file.
5268 New module 'langinfo'.
5269 * lib/langinfo.in.h: New file.
5270 * m4/langinfo_h.m4: New file.
5271 * modules/langinfo: New file.
5272 * doc/posix-headers/langinfo.texi: Mention the new module.
5274 2009-12-11 Bruno Haible <bruno@clisp.org>
5276 * lib/config.charset: Untabify.
5278 2009-12-11 Bruno Haible <bruno@clisp.org>
5280 * modules/unistd-safer (configure.ac): Drop indicator macro.
5282 2009-12-11 Bruno Haible <bruno@clisp.org>
5284 Move pipe2-safer code to its own file.
5285 * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
5286 * lib/pipe-safer.c (pipe2_safer): Remove function.
5287 * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
5288 (Makefile.am): Add it to lib_SOURCES.
5290 2009-12-10 Bruno Haible <bruno@clisp.org>
5292 * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
5294 2009-12-10 Bruno Haible <bruno@clisp.org>
5296 Declare which arguments expect non-NULL values, for GCC and clang.
5297 * build-aux/arg-nonnull.h: New file.
5298 * modules/arg-nonnull: New file.
5299 * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
5300 (inet_ntop, inet_pton): Use it.
5301 * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
5302 (closedir, dirfd, opendir, scandir, alphasort): Use it.
5303 * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
5304 (open, openat): Use it.
5305 * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
5307 * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
5308 (getopt, getopt_long, getopt_long_only): Use it.
5309 * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
5310 * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
5312 * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
5313 (iconv_open): Use it.
5314 * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
5315 (strtoimax, strtoumax): Use it.
5316 * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
5317 (duplocale): Use it.
5318 * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
5319 (frexp, frexpl): Use it.
5320 * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
5321 (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
5322 * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
5323 (tsearch, tfind, tdelete, twalk): Use it.
5324 * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
5325 (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
5326 sigpending): Use it.
5327 * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
5328 (posix_spawn, posix_spawnp, posix_spawnattr_init,
5329 posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
5330 posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
5331 posix_spawnattr_setsigmask, posix_spawnattr_getflags,
5332 posix_spawnattr_setflags, posix_spawnattr_getpgroup,
5333 posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
5334 posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
5335 posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
5336 posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
5337 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
5339 * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
5340 (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
5341 rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
5342 obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
5343 rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
5344 vfprintf, vprintf, vsnprintf, vsprintf): Use it.
5345 * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
5346 (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
5347 mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
5348 setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
5349 strtoull, unsetenv): Use it.
5350 * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
5351 (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
5352 strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
5353 strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
5354 mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
5355 mbsspn, mbssep, mbstok_r, strverscmp): Use it.
5356 * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
5357 (strcasecmp, strncasecmp): Use it.
5358 * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
5359 (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
5360 rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
5361 rpl_setsockopt): Use it.
5362 * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
5363 (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
5364 mkfifoat, mknod, mknodat, stat, utimensat): Use it.
5365 * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
5366 (gettimeofday): Use it.
5367 * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
5369 * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
5371 * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
5372 (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
5373 * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
5374 (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
5375 getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
5376 pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
5377 unlinkat, write): Use it.
5378 * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
5379 (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
5380 * lib/argv-iter.h: Include arg-nonnull.h.
5381 (_ATTRIBUTE_NONNULL_): Remove macro.
5382 (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
5383 argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
5384 * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
5386 * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
5387 * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
5388 * lib/glob.c (_GL_ARG_NONNULL): Likewise.
5389 * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
5390 * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
5391 * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
5392 * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
5393 * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
5394 * modules/arpa_inet (Depends-on): Add arg-nonnull.
5395 (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
5396 * modules/dirent (Depends-on): Add arg-nonnull.
5397 (Makefile.am): Insert arg-nonnull.h into dirent.h.
5398 * modules/fcntl-h (Depends-on): Add arg-nonnull.
5399 (Makefile.am): Insert arg-nonnull.h into fcntl.h.
5400 * modules/fnmatch (Depends-on): Add arg-nonnull.
5401 (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
5402 * modules/getopt-posix (Depends-on): Add arg-nonnull.
5403 (Makefile.am): Insert arg-nonnull.h into getopt.h.
5404 * modules/glob (Depends-on): Add arg-nonnull.
5405 (Makefile.am): Insert arg-nonnull.h into glob.h.
5406 * modules/iconv_open (Depends-on): Add arg-nonnull.
5407 (Makefile.am): Insert arg-nonnull.h into iconv.h.
5408 * modules/inttypes (Depends-on): Add arg-nonnull.
5409 (Makefile.am): Insert arg-nonnull.h into inttypes.h.
5410 * modules/locale (Depends-on): Add arg-nonnull.
5411 (Makefile.am): Insert arg-nonnull.h into locale.h.
5412 * modules/math (Depends-on): Add arg-nonnull.
5413 (Makefile.am): Insert arg-nonnull.h into math.h.
5414 * modules/netdb (Depends-on): Add arg-nonnull.
5415 (Makefile.am): Insert arg-nonnull.h into netdb.h.
5416 * modules/search (Depends-on): Add arg-nonnull.
5417 (Makefile.am): Insert arg-nonnull.h into search.h.
5418 * modules/signal (Depends-on): Add arg-nonnull.
5419 (Makefile.am): Insert arg-nonnull.h into signal.h.
5420 * modules/spawn (Depends-on): Add arg-nonnull.
5421 (Makefile.am): Insert arg-nonnull.h into spawn.h.
5422 * modules/stdio (Depends-on): Add arg-nonnull.
5423 (Makefile.am): Insert arg-nonnull.h into stdio.h.
5424 * modules/stdlib (Depends-on): Add arg-nonnull.
5425 (Makefile.am): Insert arg-nonnull.h into stdlib.h.
5426 * modules/string (Depends-on): Add arg-nonnull.
5427 (Makefile.am): Insert arg-nonnull.h into string.h.
5428 * modules/strings (Depends-on): Add arg-nonnull.
5429 (Makefile.am): Insert arg-nonnull.h into strings.h.
5430 * modules/sys_socket (Depends-on): Add arg-nonnull.
5431 (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
5432 * modules/sys_stat (Depends-on): Add arg-nonnull.
5433 (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
5434 * modules/sys_time (Depends-on): Add arg-nonnull.
5435 (Makefile.am): Insert arg-nonnull.h into sys/time.h.
5436 * modules/sys_times (Depends-on): Add arg-nonnull.
5437 (Makefile.am): Insert arg-nonnull.h into sys/times.h.
5438 * modules/sys_utsname (Depends-on): Add arg-nonnull.
5439 (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
5440 * modules/time (Depends-on): Add arg-nonnull.
5441 (Makefile.am): Insert arg-nonnull.h into time.h.
5442 * modules/unistd (Depends-on): Add arg-nonnull.
5443 (Makefile.am): Insert arg-nonnull.h into unistd.h.
5444 * modules/wchar (Depends-on): Add arg-nonnull.
5445 (Makefile.am): Insert arg-nonnull.h into wchar.h.
5446 * modules/argv-iter (Depends-on): Add arg-nonnull.
5447 * tests/test-canonicalize.c (null_ptr): New function.
5449 * tests/test-canonicalize-lgpl.c (null_ptr): New function.
5451 * tests/test-memmem.c (null_ptr): New function.
5453 Reported by Jim Meyering.
5455 2009-12-10 Bruno Haible <bruno@clisp.org>
5457 Use spaces for indentation, not tabs.
5458 * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
5459 * m4/*.m4: Untabify.
5460 * build-aux/*.h: Untabify.
5461 * tests/**/*.[hc]: Untabify.
5462 * README: New section "Indent with spaces, not TABs", based on
5463 coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
5464 * NEWS: Mention the change.
5466 2009-12-10 Bruno Haible <bruno@clisp.org>
5468 pty test: Fix link error.
5469 * modules/pty-tests (Makefile.am): Add the default LDADD value to
5472 2009-12-07 Simon Josefsson <simon@josefsson.org>
5474 * modules/pty: New file.
5475 * modules/pty-tests: New file.
5476 * m4/pty.m4: New file.
5477 * tests/test-pty.c: New file.
5478 * doc/glibc-headers/pty.texi: Modified.
5479 * doc/glibc-functions/forkpty.texi: Modified.
5480 * doc/glibc-functions/openpty.texi: Modified.
5482 2009-12-10 Bruno Haible <bruno@clisp.org>
5484 Avoid syntax error in C++ mode.
5485 * lib/stdio.in.h (rename): Don't use parameter name 'new'.
5487 2009-12-10 Bruno Haible <bruno@clisp.org>
5489 Use sed with option -e.
5490 * gnulib-tool (func_version, func_emit_copyright_notice,
5491 func_emit_initmacro_end, func_import, func_create_testdir): Pass
5493 * modules/link-warning (Makefile.am): Likewise.
5495 2009-12-10 Jim Meyering <meyering@redhat.com>
5497 mgetgroups: do not write bytes beyond end of malloc'd buffer
5498 * lib/mgetgroups.c: Fix an off-by-one error. When we have no
5499 username, we call getgroups with a one-element-shorter buffer,
5500 but still told it the length was original, max_n_groups.
5502 2009-12-09 Eric Blake <ebb9@byu.net>
5504 cloexec: relax license
5505 * modules/cloexec (Maintainer): Add myself.
5506 (License): Use LGPL, not GPL.
5508 link-warning: optimize generation
5509 * modules/link-warning (Makefile.am): Reduce process usage.
5511 2009-12-09 Bruno Haible <bruno@clisp.org>
5513 * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
5514 workaround was added on 2009-11-17.
5516 2009-12-09 Jim Meyering <meyering@redhat.com>
5517 Bruno Haible <bruno@clisp.org>
5519 link-warning: Allow extra lines at the top of build-aux/link-warning.h.
5520 * modules/link-warning (Makefile.am): Make the comment-removing sed
5521 command more robust in the face of bootstrap-prepended comment lines.
5523 2009-12-09 Bruno Haible <bruno@clisp.org>
5525 * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
5528 2009-12-09 Simon Josefsson <simon@josefsson.org>
5529 Bruno Haible <bruno@clisp.org>
5531 * build-aux/link-warning.h: Add copyright notice.
5532 * modules/link-warning (Makefile.am): Generate link-warning.h from
5533 build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
5534 * NEWS: Mention change in link-warning module.
5535 * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
5536 * modules/dirent (Makefile.am): Add dependency to dirent.h.
5537 * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
5538 * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
5539 * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
5540 * modules/math (Makefile.am): Add dependency to math.h.
5541 * modules/search (Makefile.am): Add dependency to search.h.
5542 * modules/signal (Makefile.am): Add dependency to signal.h.
5543 * modules/spawn (Makefile.am): Add dependency to spawn.h.
5544 * modules/stdio (Makefile.am): Add dependency to stdio.h.
5545 * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
5546 * modules/string (Makefile.am): Add dependency to string.h.
5547 * modules/strings (Makefile.am): Add dependency to strings.h.
5548 * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
5549 * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
5550 * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
5551 * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
5552 * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
5553 * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
5554 * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
5555 * modules/unistd (Makefile.am): Add dependency to unistd.h.
5556 * modules/wchar (Makefile.am): Add dependency to wchar.h.
5558 2009-12-09 Bruno Haible <bruno@clisp.org>
5560 fchdir: Optimize away rpl_fstat when possible.
5561 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
5562 REPLACE_OPEN_DIRECTORY.
5563 * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
5565 2009-12-09 Bruno Haible <bruno@clisp.org>
5567 * lib/fchdir.c: Update comment.
5569 2009-12-09 Bruno Haible <bruno@clisp.org>
5571 * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
5573 2009-12-08 Eric Blake <ebb9@byu.net>
5575 fchdir: avoid memory leak on re-registration.
5576 * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
5578 2009-12-08 Jim Meyering <meyering@redhat.com>
5580 init.sh: avoid Solaris 10 /bin/sh portability problem
5581 Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
5583 $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
5584 $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
5586 tests/init.sh relied on that, accepting a --set-path=DIR argument,
5587 and two tests used that idiom.
5588 * tests/init.sh: Update suggested usage comments.
5589 (path_prepend_): New function, to be used in place
5590 of the --src-path=DIR option.
5591 (setup_): Move PATH-prepending code into path_prepend_.
5592 * tests/test-pread.sh: Adapt to new usage.
5593 * tests/test-xalloc-die.sh: Likewise.
5595 2009-12-08 Simon Josefsson <simon@josefsson.org>
5597 * doc/gnulib.texi (Glibc pty.h): Add.
5598 * doc/glibc-functions/forkpty.texi: Add.
5599 * doc/glibc-functions/openpty.texi: Add.
5600 Suggested by Bruno Haible.
5602 2009-12-08 Eric Blake <ebb9@byu.net>
5604 fchdir: fix logic bugs
5605 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
5606 * tests/test-fchdir.c (main): Enhance test.
5607 * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
5610 dup2: fix logic bugs
5611 * lib/dup2.c (dup2): Fix logic bugs. Use HAVE_DUP2 rather than
5612 REPLACE_DUP2 to decide when rpl_dup2 is needed.
5613 * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
5615 (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
5617 2009-12-07 Eric Blake <ebb9@byu.net>
5619 unlink: fix m4 detection
5620 * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
5622 unistd-safer: add unit test
5623 * modules/unistd-safer-tests: New file.
5624 * tests/test-dup-safer.c: Likewise.
5625 * tests/test-cloexec.c (setmode): Avoid compiler warning.
5626 * tests/test-dup2.c (setmode): Likewise.
5627 * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
5629 cloexec: preserve text vs. binary across dup_cloexec
5630 * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
5632 * modules/dup2-tests (Depends-on): Add binary-io.
5633 * modules/cloexec-tests (Depends-on): Likewise.
5634 * tests/test-dup2.c (setmode, is_mode): New helpers.
5635 (main): Add tests that translation mode is preserved.
5636 * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
5637 Reported by Bruno Haible.
5639 mgetgroups: reduce duplicate listings
5640 * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
5642 * tests/test-chown.h (test_chown): Simplify client.
5643 * tests/test-lchown.h (test_lchown): Likewise.
5645 2009-12-06 Bruno Haible <bruno@clisp.org>
5647 * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
5650 2009-12-06 Bruno Haible <bruno@clisp.org>
5652 * lib/progname.c: Include stdio.h, stdlib.h.
5653 (set_program_name): Reject a NULL argument.
5655 2009-12-05 Eric Blake <ebb9@byu.net>
5657 pipe2-safer: new module
5658 * modules/pipe2-safer: New file.
5659 * lib/unistd-safer.h (pipe2_safer): New prototype.
5660 * lib/unistd--.h (pipe2): New wrapper.
5661 * lib/pipe-safer.c (pipe2_safer): New function.
5662 * modules/pipe (Depends-on): Add pipe2-safer.
5663 * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
5665 stdlib-safer: preserve cloexec flag for mkostemp[s]
5666 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
5669 unistd-safer: allow preservation of cloexec status via flag
5670 * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
5672 * lib/dup-safer.c (dup_safer_flag): New function.
5673 * lib/fd-safer.c (fd_safer_flag): Likewise.
5674 * modules/cloexec (configure.ac): Set witness.
5676 test-dup2: enhance test
5677 * modules/dup2-tests (Depends-on): Add cloexec.
5678 * tests/test-dup2.c (main): Enhance test.
5680 cloexec: add dup_cloexec
5681 * lib/cloexec.h (dup_cloexec): New prototype. Add copyright
5682 header and comments.
5683 * lib/cloexec.c (set_cloexec_flag): Add comments.
5684 (dup_cloexec): New function, with mingw implementation borrowed
5686 * lib/w32spawn.h (dup_noinherit): ...here.
5687 * modules/execute (Depends-on): Add cloexec.
5688 * modules/pipe (Depends-on): Likewise.
5689 * modules/cloexec (Depends-on): Add dup2.
5690 * modules/cloexec-tests (Files): New file.
5691 * tests/test-cloexec.c: Likewise.
5693 test-xalloc-die: fix test for mingw
5694 * modules/xalloc-die-tests (Files): Add tests/init.sh.
5695 * tests/test-xalloc-die.sh: Rewrite to use init.sh. Strip
5696 directory and .exe suffix off argv[0] output.
5698 test-fseeko: fix test for mingw
5699 * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
5700 than undefining fseek, so test will pass on mingw.
5702 2009-12-05 Bruno Haible <bruno@clisp.org>
5704 * lib/progname.h (set_program_name): Clarify specification.
5705 * lib/progname.c (set_program_name): Likewise.
5706 Reported by Jim Meyering.
5708 2009-12-05 Jim Meyering <meyering@redhat.com>
5710 maint.mk: backslash-escape parens in default regexp
5711 * top/maint.mk (news-check-regexp): Now that we're using grep -E,
5712 backslash-escape the literal parentheses.
5714 maint.mk: news-date-check: use grep -E
5715 * top/maint.mk (today): Define a Make variable, not a...
5716 (news-date-check): ...shell variable.
5717 (news-date-regexp): Use the Make variable.
5718 Use grep's -E option. Change the failing diagnostic to mention
5719 the variable, $(news-date-regexp).
5721 2009-12-04 Alfred M. Szmidt <ams@gnu.org>
5723 maintainer-makefile: allow customization of NEWS entry format
5724 * top/maint.mk (news-date-regexp): New overridable variable.
5725 (news-date-check): Use it.
5727 2009-12-04 Eric Blake <ebb9@byu.net>
5729 mgetgroups: add xgetgroups, and avoid ENOSYS failures
5730 * lib/mgetgroups.h (xgetgroups): New prototype.
5731 * lib/mgetgroups.c (xgetgroups): New wrapper.
5732 (mgetgroups): Handle ENOSYS.
5733 * modules/mgetgroups (Depends-on): Add realloc.
5734 Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
5736 mgetgroups: avoid argument promotion issues with -1
5737 * lib/mgetgroups.c (mgetgroups): A cast is required when checking
5739 * tests/test-chown.h (getegid, test_chown): Likewise.
5740 * tests/test-lchown.h (getegid, test_lchown): Likewise.
5742 2009-12-03 Paolo Bonzini <bonzini@gnu.org>
5744 exclude: Fix header file problems.
5745 * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
5747 2009-12-01 Jim Meyering <meyering@redhat.com>
5749 fts: fts_open: do not let an empty string cause immediate failure
5750 This is required in support of GNU rm, for which the command
5751 "rm A '' B" must process and remove both A and B, in spite of
5752 the empty string argument.
5753 * lib/fts.c (fts_open): Do not let the presence of an empty string
5754 cause fts_open to fail immediately. Most fts-using tools must be
5755 able to process all arguments, in order, and can be expected to
5756 diagnose such arguments themselves.
5758 2009-11-30 Eric Blake <ebb9@byu.net>
5760 utimens: fix compilation error
5761 * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
5762 Declare variable at right scope.
5764 2009-11-29 Jim Meyering <meyering@redhat.com>
5766 bootstrap: handle perl-5.11's changed --version output
5767 * build-aux/bootstrap (get_version): Handle perl separately,
5768 since perl-5.11's --version output is different.
5770 2009-11-28 Jim Meyering <meyering@redhat.com>
5772 userspec: depend on the inttostr module, too
5773 * modules/userspec (Depends-on): Add inttostr.
5775 userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
5776 * lib/userspec.c (parse_with_separator): Do not accept a user ID
5777 number of MAXUID when it evaluates to (uid_t) -1.
5778 Likewise for group ID. Reported by Matt McCutchen in
5779 <http://savannah.gnu.org/bugs/?28113>
5781 userspec: reformat to use spaces, not TABs
5782 * lib/userspec.c: Expand TABs to spaces.
5783 Add Emacs' "indent-tabs-mode: nil" hint.
5785 2009-11-27 Eric Blake <ebb9@byu.net>
5787 getopt-gnu: flush out another BSD bug
5788 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
5789 * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
5791 * tests/test-getopt.h (test_getopt): End lists with NULL.
5792 * tests/test-getopt_long.h (test_getopt_long): Likewise.
5793 (test_getopt_long_posix): Enhance test.
5794 * modules/getopt-posix-tests (Depends-on): Add stdbool.
5795 * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
5797 * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
5800 2009-11-27 Simon Josefsson <simon@josefsson.org>
5802 * modules/idpriv-droptemp-tests (Notice): Fix text.
5804 2009-11-27 Jim Meyering <meyering@redhat.com>
5806 test-xalloc-die: avoid spurious failure due to libtool argv difference
5807 In a libtool-enabled project, this test would fail due to a difference
5808 in the emitted program name, e.g.,
5809 -test-xalloc-die: memory exhausted
5810 +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
5811 Use program to avoid that.
5812 * modules/xalloc-die-tests (Depends-on): Add progname.
5813 * tests/test-xalloc-die.c: Include progname.h".
5814 (program_name): Remove decl.
5815 (main): Call set_program_name.
5816 * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
5818 2009-11-26 Richard Jones <rjones@redhat.com>
5820 w32sock: leave win32 error in place.
5821 * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
5823 2009-11-26 Eric Blake <ebb9@byu.net>
5825 init.sh: suggest to use skip_ and fail_ functions in comments
5826 * tests/init.sh: Add a sentence.
5828 2009-11-25 Bruno Haible <bruno@clisp.org>
5830 init.sh: add documentation in comments
5831 * tests/init.sh: Add some developer and user documentation.
5833 2009-11-26 Jim Meyering <meyering@redhat.com>
5835 init.sh: accommodate even those who specify bogus srcdir manually
5836 * tests/init.sh: Normally, srcdir is guaranteed by automake and
5837 configure-time tests to be sanitized, so that there is no need to
5838 use "$srcdir" in Makefile rules and shell scripts. Using $srcdir
5839 (with no double quotes) suffices. However, since tests may be
5840 invoked manually, and since you may explicitly set srcdir to the
5841 name of a directory containing spaces, do quote its uses here.
5842 * tests/test-pread.sh: Likewise.
5843 Suggested by Bruno Haible.
5845 test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
5846 * tests/test-pread.sh: Write no data into the pipe, because
5847 test-pread actually reads none. This avoids a diagnostic,
5848 "bash: echo: write error: Broken pipe", that arises in the unusual
5849 event something is ignoring SIGPIPE, and might be interpreted
5850 as some sort of failure. Reported by Bruno Haible.
5852 2009-11-25 Jim Meyering <meyering@redhat.com>
5854 test-pread: cover failure with ESPIPE and EINVAL
5855 * tests/test-pread.c (main): Test for failure, too.
5856 * tests/test-pread.sh: Invoke with stdin on a pipe.
5857 Suggested by Eric Blake.
5859 pread: improvement and fix
5860 * modules/pread (Depends-on): Depend on lseek, for portability to
5861 e.g., mingw. Suggested by Eric Blake.
5862 * lib/pread.c (__libc_read): Define. Reported by Richard W.M. Jones.
5864 unistd.in.h: correct declaration of pread
5865 * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
5866 Reported by Richard W.M. Jones.
5868 test-pread.sh: distribute the test script
5869 * modules/pread-tests (Files): Include test-pread.sh.
5871 test-pread.sh: clean up
5872 * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
5873 * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
5874 That is unnecessary, since it's always ".".
5875 Suggestion from Eric Blake.
5877 test-pread.sh: make executable
5878 * tests/test-pread.sh: Set executable bit.
5879 Reported by Eric Blake.
5881 correct typo in test-pread.sh
5882 * tests/test-pread.sh: Add #! line.
5885 * tests/test-pread.c: New file.
5886 * tests/test-pread.sh: Likewise.
5887 * modules/pread-tests: Likewise.
5890 * modules/pread: New file.
5891 * lib/unistd.in.h (pread): Define/declare.
5892 * lib/pread.c (pread): New file.
5893 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
5894 * modules/unistd (Makefile.am): Substitute witnesses.
5895 * doc/posix-functions/pread.texi (pread): Update.
5896 * MODULES.html.sh: Add pread.
5898 2009-11-25 Jim Meyering <meyering@redhat.com>
5900 tests/init.sh: new file to be used via most *.sh tests
5901 * tests/init.sh: New file.
5903 2009-11-25 Eric Blake <ebb9@byu.net>
5905 utimens: work around older Linux failure with symlinks
5906 * lib/utimens.c (lutimensat_works_really): New variable.
5907 (fdutimens, lutimens): Use it to manage kernels that support
5908 nanosecond times on files, but not on symlinks.
5909 Reported by OndÅ™ej VaÅ¡Ãk.
5911 utimes: fix configure grammar
5912 * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
5914 2009-11-25 Paolo Bonzini <bonzini@gnu.org>
5916 regex: Fix fastmap for multibyte character ranges.
5917 * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
5918 characters when a multibyte character range is included.
5920 2009-11-22 Andy Wingo <wingo@pobox.com>
5922 version-etc: work also with AM_INIT_AUTOMAKE's no-define option
5923 * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
5925 2009-11-24 Bruno Haible <bruno@clisp.org>
5927 doc: Most *_l functions exist in MacOS X 10.5.
5928 * doc/posix-functions/duplocale.texi: Update platforms list.
5929 * doc/posix-functions/freelocale.texi: Likewise.
5930 * doc/posix-functions/newlocale.texi: Likewise.
5931 * doc/posix-functions/uselocale.texi: Likewise.
5932 * doc/posix-functions/isalnum_l.texi: Likewise.
5933 * doc/posix-functions/isalpha_l.texi: Likewise.
5934 * doc/posix-functions/isblank_l.texi: Likewise.
5935 * doc/posix-functions/iscntrl_l.texi: Likewise.
5936 * doc/posix-functions/isdigit_l.texi: Likewise.
5937 * doc/posix-functions/isgraph_l.texi: Likewise.
5938 * doc/posix-functions/islower_l.texi: Likewise.
5939 * doc/posix-functions/isprint_l.texi: Likewise.
5940 * doc/posix-functions/ispunct_l.texi: Likewise.
5941 * doc/posix-functions/isspace_l.texi: Likewise.
5942 * doc/posix-functions/isupper_l.texi: Likewise.
5943 * doc/posix-functions/iswalnum_l.texi: Likewise.
5944 * doc/posix-functions/iswalpha_l.texi: Likewise.
5945 * doc/posix-functions/iswblank_l.texi: Likewise.
5946 * doc/posix-functions/iswcntrl_l.texi: Likewise.
5947 * doc/posix-functions/iswctype_l.texi: Likewise.
5948 * doc/posix-functions/iswdigit_l.texi: Likewise.
5949 * doc/posix-functions/iswgraph_l.texi: Likewise.
5950 * doc/posix-functions/iswlower_l.texi: Likewise.
5951 * doc/posix-functions/iswprint_l.texi: Likewise.
5952 * doc/posix-functions/iswpunct_l.texi: Likewise.
5953 * doc/posix-functions/iswspace_l.texi: Likewise.
5954 * doc/posix-functions/iswupper_l.texi: Likewise.
5955 * doc/posix-functions/iswxdigit_l.texi: Likewise.
5956 * doc/posix-functions/isxdigit_l.texi: Likewise.
5957 * doc/posix-functions/nl_langinfo_l.texi: Likewise.
5958 * doc/posix-functions/strcasecmp_l.texi: Likewise.
5959 * doc/posix-functions/strcoll_l.texi: Likewise.
5960 * doc/posix-functions/strfmon_l.texi: Likewise.
5961 * doc/posix-functions/strftime_l.texi: Likewise.
5962 * doc/posix-functions/strncasecmp_l.texi: Likewise.
5963 * doc/posix-functions/strxfrm_l.texi: Likewise.
5964 * doc/posix-functions/tolower_l.texi: Likewise.
5965 * doc/posix-functions/toupper_l.texi: Likewise.
5966 * doc/posix-functions/towctrans_l.texi: Likewise.
5967 * doc/posix-functions/towlower_l.texi: Likewise.
5968 * doc/posix-functions/towupper_l.texi: Likewise.
5969 * doc/posix-functions/wcscoll_l.texi: Likewise.
5970 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
5971 * doc/posix-functions/wctrans_l.texi: Likewise.
5972 * doc/posix-functions/wctype_l.texi: Likewise.
5973 * doc/glibc-functions/strptime_l.texi: Likewise.
5974 * doc/glibc-functions/strtod_l.texi: Likewise.
5975 * doc/glibc-functions/strtof_l.texi: Likewise.
5976 * doc/glibc-functions/strtol_l.texi: Likewise.
5977 * doc/glibc-functions/strtold_l.texi: Likewise.
5978 * doc/glibc-functions/strtoll_l.texi: Likewise.
5979 * doc/glibc-functions/strtoul_l.texi: Likewise.
5980 * doc/glibc-functions/strtoull_l.texi: Likewise.
5981 * doc/glibc-functions/wcsftime_l.texi: Likewise.
5982 * doc/glibc-functions/wcstod_l.texi: Likewise.
5983 * doc/glibc-functions/wcstof_l.texi: Likewise.
5984 * doc/glibc-functions/wcstol_l.texi: Likewise.
5985 * doc/glibc-functions/wcstold_l.texi: Likewise.
5986 * doc/glibc-functions/wcstoll_l.texi: Likewise.
5987 * doc/glibc-functions/wcstoul_l.texi: Likewise.
5988 * doc/glibc-functions/wcstoull_l.texi: Likewise.
5990 2009-11-24 Bruno Haible <bruno@clisp.org>
5992 duplocale: Fix logic bug.
5993 * lib/duplocale.c: Don't include <langinfo.h>.
5994 (_NL_LOCALE_NAME): Remove macro.
5995 (rpl_duplocale): Use setlocale instead of nl_langinfo.
5996 * tests/test-duplocale.c (main): Also test duplocale after uselocale.
5998 2009-11-23 Jim Meyering <meyering@redhat.com>
6000 test-update-copyright: don't hard-code /usr/bin/perl
6001 * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
6002 perl to print the current year. Gilles Espinasse reported that
6003 the replaced use of perl was hard-coded as /usr/bin/perl.
6005 2009-11-23 Bruno Haible <bruno@clisp.org>
6007 duplocale: Add support for glibc 2.3.x.
6008 * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
6010 2009-11-22 Bruno Haible <bruno@clisp.org>
6012 vasnprintf: Tiny optimization.
6013 * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
6016 2009-11-22 Bruno Haible <bruno@clisp.org>
6018 Tests for module 'duplocale'.
6019 * modules/duplocale-tests: New file.
6020 * tests/test-duplocale.c: New file.
6022 New module 'duplocale'.
6023 * m4/duplocale.m4: New file.
6024 * lib/locale.in.h (duplocale): New declaration.
6025 * lib/duplocale.c: New file.
6026 * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
6027 gl_LOCALE_H_DEFAULTS): New macros.
6028 (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
6029 gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
6030 * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
6032 * modules/duplocale: New file.
6033 * doc/posix-functions/duplocale.texi: Mention the glibc bug.
6035 2009-11-22 Bruno Haible <bruno@clisp.org>
6037 * modules/locale-tests (configure.ac): Test for newlocale function.
6038 * tests/test-locale.c: When the system has extended locale functions,
6039 verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
6041 locale: Make locale_t available when possible.
6042 * lib/locale.in.h: Include <xlocale.h> when it exists.
6043 * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
6044 replace <locale.h> if it does not define locale_t but <xlocale.h> does.
6045 * modules/locale (Depends-on): Add extensions.
6046 (Makefile.am): Also substitute HAVE_XLOCALE_H.
6047 * doc/posix-headers/locale.texi: Document the problem with locale_t.
6049 2009-11-22 Bruno Haible <bruno@clisp.org>
6052 * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
6054 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
6055 * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6056 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
6058 2009-11-22 Bruno Haible <bruno@clisp.org>
6060 error: account for the possibility of freopen (stdout).
6061 * lib/error.c: Include <unistd.h>.
6062 (flush_stdout): New function, extracted from error and error_at_line.
6063 Determine stdout's fd dynamically.
6064 (error, error_at_line): Invoke flush_stdout.
6065 * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
6066 * modules/error (Depends-on): Add unistd.
6068 2009-11-22 Bruno Haible <bruno@clisp.org>
6070 diffseq: Add comment.
6071 * lib/diffseq.h (IF_LINT): Add comment about pitfall.
6073 2009-11-22 Jim Meyering <meyering@redhat.com>
6075 c-stack: avoid defining an unused static function
6076 * lib/c-stack.c (find_stack_direction): Do not define this function
6077 when it will not be used.
6079 diffseq: avoid spurious gcc warnings
6080 * lib/diffseq.h (IF_LINT2): Define.
6081 (compareseq): Use it to initialize two members of "part".
6082 This avoids two used-uninitialized warnings.
6084 2009-11-21 Jim Meyering <meyering@redhat.com>
6086 c-stack: avoid "ignoring return value of `write'" warning
6087 * lib/c-stack.c: Include "ignore-value.h".
6088 (die): Explicitly ignore each write return value.
6089 * modules/c-stack (Depends-on): Add ignore-value.
6091 2009-11-21 Bruno Haible <bruno@clisp.org>
6093 diffseq: reduce scope of variable 'best'.
6094 * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
6095 variable, earlier used for two different purposes.
6097 2009-11-21 Jim Meyering <meyering@redhat.com>
6099 diffseq: remove useless assignment to "best"
6100 * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
6101 assignment. At that point "best" is already guaranteed to be zero.
6103 2009-11-20 Eric Blake <ebb9@byu.net>
6105 build: mention ftp redirector in release announcements
6106 * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
6107 values that used to come from cfg.mk; mention FTP redirect URL.
6108 * build-aux/announce-gen: Mention the mirror list.
6109 Suggested by Karl Berry.
6111 nanosleep: improve port to mingw
6112 * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
6113 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
6114 LIB_NANOSLEEP, but only when needed.
6115 * modules/select (Link): Document LIBSOCKET.
6116 * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
6119 nanosleep: work around cygwin bug
6120 * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
6121 Fix logic bug when nanosleep fails. Work around cygwin 1.5.x
6123 (getnow): Delete, not needed.
6124 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
6126 * modules/nanosleep (Depends-on): Add intprops and verify. Drop
6127 clock-time, gettime.
6128 * doc/posix-functions/nanosleep.texi (nanosleep): Document the
6130 * modules/nanosleep-tests: New test.
6131 * tests/test-nanosleep.c: New file.
6133 sleep: work around cygwin bug
6134 * lib/sleep.c (rpl_sleep): Work around the bug.
6135 * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
6136 (gl_PREREQ_SLEEP): Delete unused macro.
6137 * modules/sleep (Depends-on): Add verify.
6138 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6139 * modules/unistd (Makefile.am): Substitute witness.
6140 * lib/unistd.in.h (sleep): Update prototype.
6141 * doc/posix-functions/sleep.texi (sleep): Document the bug.
6142 * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
6143 * modules/sleep-tests (Depends-on): Check for alarm.
6145 2009-11-20 Jim Meyering <meyering@redhat.com>
6147 maint.mk: improve sc_prohibit_magic_number_exit
6148 * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
6149 so it does not match uses like System.exit(1).
6150 Add comments showing how to correct all offenders.
6152 2009-11-19 Eric Blake <ebb9@byu.net>
6154 xalloc-die-tests: add missing library
6155 * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
6157 test-xvasprintf: silence compiler warnings
6158 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
6159 empty string from gcc.
6161 2009-11-19 Jim Meyering <meyering@redhat.com>
6163 xfreopen: new module, from coreutils
6164 * modules/xfreopen: New module.
6165 * lib/xfreopen.c: New file.
6166 * lib/xfreopen.h: New file.
6167 * MODULES.html.sh (File stream based Input/Output"): Add it.
6169 2009-11-19 Eric Blake <ebb9@byu.net>
6171 manywarnings: depend on warnings
6172 * modules/manywarnings (Depends-on): Add warnings.
6174 build: avoid compiler warnings
6175 * lib/select.c (rpl_select): Delete unused variable.
6176 * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
6178 2009-11-18 Eric Blake <ebb9@byu.net>
6180 tests: avoid false negative with --with-packager
6181 * tests/test-version-etc.sh: Discard packager information.
6182 * tests/test-argp-version-etc-1.sh: Likewise.
6183 Reported by Mike Frysinger.
6185 utimens: fix regression on Solaris
6186 * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
6187 * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
6188 can only change fd timestamps via futimesat. Instead, use an
6189 additional witness macro to avoid BSD bug.
6190 Reported by Jim Meyering.
6192 2009-11-17 Eric Blake <ebb9@byu.net>
6194 usleep: use it to simplify tests
6195 * modules/stat-time-tests (Depends-on): Add usleep.
6196 (configure.ac): Drop usleep check.
6197 * modules/chown-tests (Depends-on, configure.ac): Likewise.
6198 * modules/lchown-tests (Depends-on, configure.ac): Likewise.
6199 * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
6200 * modules/futimens-tests (Depends-on, configure.ac): Likewise.
6201 * modules/openat-tests (Depends-on, configure.ac): Likewise.
6202 * modules/utimens-tests (Depends-on, configure.ac): Likewise.
6203 * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
6204 * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
6206 * tests/test-chown.h (nap): Rely on nicer usleep semantics.
6207 * tests/test-lchown.h (nap): Likewise.
6208 * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
6209 * tests/test-stat-time.c (nap): Likewise.
6210 * tests/test-utimens-common.h (nap): Update comments.
6213 * modules/usleep: New file.
6214 * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
6215 * lib/usleep.c (usleep): Likewise.
6216 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
6217 * modules/unistd (Makefile.am): Substitute witnesses.
6218 * lib/unistd.in.h (usleep): Add declaration.
6219 * doc/pastposix-functions/usleep.texi (usleep): Document this.
6220 * MODULES.html.sh (Date and time): Likewise.
6221 * modules/usleep-tests (Depends-on): New test.
6222 * tests/test-usleep.c: New file.
6224 chown: work around OpenBSD bug
6225 * lib/chown.c (rpl_chown): Work around the bug.
6226 * lib/lchown.c (rpl_lchown): Attempt to do likewise.
6227 * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
6228 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
6229 * modules/chown (Depends-on): Add stdbool.
6230 * modules/lchown (Depends-on): Likewise.
6231 * doc/posix-functions/chown.texi (chown): Document the bug.
6232 * doc/posix-functions/lchown.texi (lchown): Likewise.
6233 * tests/test-lchown.h (test_chown): Relax test.
6235 mkstemp: avoid conflict with C++ keyword template
6236 * lib/mkdtemp.c (mkdtemp): Change spelling of template.
6237 * lib/mkostemp.c (mkostemp): Likewise.
6238 * lib/mkostemps.c (mkostemps): Likewise.
6239 * lib/mkstemp.c (mkstemp): Likewise.
6240 * lib/mkstemps.c (mkstemps): Likewise.
6242 xalloc-die-tests: optimize
6243 * tests/test-xalloc-die.sh: Reduce number of processes.
6245 2009-11-17 Simon Josefsson <simon@josefsson.org>
6247 * gnulib-tool: Support LGPLv3+ licenses in module files. Tiny
6248 patch from ludo@gnu.org (Ludovic Courtès).
6250 2009-11-17 Jim Meyering <meyering@redhat.com>
6252 version-etc: use proper license string
6253 * modules/version-etc (License): Use LGPL, not LGPLv3+.
6254 * modules/version-etc-fsf: Likewise.
6256 2009-11-17 Simon Josefsson <simon@josefsson.org>
6258 * tests/test-xalloc-die.sh: Add license. Check that nothing is
6259 printed to stdout. Deal with EOL differences.
6261 2009-11-17 Eric Blake <ebb9@byu.net>
6263 unsetenv: work around Solaris bug
6264 * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
6265 * lib/unsetenv.c (rpl_unsetenv): Work around it.
6266 Reported by Jim Meyering.
6268 vasnprintf: avoid compiler warnings
6269 * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
6271 * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
6273 2009-11-17 Simon Josefsson <simon@josefsson.org>
6275 * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
6276 settings since xalloc-die is no longer the self test,
6279 2009-11-17 Jim Meyering <meyering@redhat.com>
6281 test-xalloc-die.sh: make the code agree with the commit log
6282 * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
6283 at the end, just in case you happen to have a test-xalloc-die
6284 program in some other PATH directory.
6286 test-xalloc-die.sh: fix a portability bug
6287 * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
6288 Instead, set PATH to start with "." and invoke via "test-xalloc-die".
6289 Otherwise, argv[0] (as often seen in diagnostics) would be too
6290 system-dependent, sometimes with, and sometimes without the leading "./".
6292 version-etc-fsf: relax license to LGPLv3+
6293 * modules/version-etc-fsf (License): Relax license.
6295 2009-11-16 Eric Blake <ebb9@byu.net>
6297 xalloc-die-tests: avoid printing null pointer
6298 * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
6300 * tests/test-xalloc-die.c (program_name): Declare.
6301 * tests/test-xalloc-die.sh (tmpfiles): New file.
6303 setenv, unsetenv: work around various bugs
6304 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
6305 (setenv) [HAVE_SETENV]: Work around bugs.
6306 * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
6307 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
6309 (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
6310 * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
6311 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
6312 * modules/stdlib (Makefile.am): Update substitutions.
6313 * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
6314 * doc/posix-functions/setenv.texi (setenv): Document the bugs.
6315 * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
6316 * modules/setenv-tests: New test.
6317 * modules/unsetenv-tests: Likewise.
6318 * tests/test-setenv.c: New file.
6319 * tests/test-unsetenv.c: Likewise.
6321 2009-11-16 Jim Meyering <meyering@redhat.com>
6323 version-etc: relax license to LGPLv3+
6324 * modules/version-etc (License): Relax license.
6326 better AC_REQUIRE expanded-before-required-warning avoidance
6327 * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
6328 with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
6329 Suggested by Eric Blake. This change also reverts commit 1b712ba8,
6330 which is no longer needed.
6332 2009-11-16 Eric Blake <ebb9@byu.net>
6334 test-freading: clean up temporary file
6335 * tests/test-freading.c (main): Remove file on success, and use
6336 ASSERT more liberally.
6337 Reported by Jim Meyering.
6339 2009-11-16 Jim Meyering <meyering@redhat.com>
6341 avoid new AC_REQUIRE expanded-before-required warnings
6342 * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
6344 * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
6345 * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
6347 2009-11-15 Simon Josefsson <simon@josefsson.org>
6349 * tests/test-xalloc-die.c: New file.
6350 * modules/xalloc-die-tests: New file.
6351 * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
6352 XFAIL_TESTS so it can be appended by modules.
6354 2009-11-15 Simon Josefsson <simon@josefsson.org>
6356 * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898. Reported
6357 by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
6359 2009-11-14 Eric Blake <ebb9@byu.net>
6361 fnmatch: avoid compiler warning
6362 * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
6363 to silence compiler warning about mismatch signedness in ?:.
6364 Reported by Robert Millan.
6366 intprops: add double-inclusion guard
6367 * lib/intprops.h: Allow idempotent includes.
6368 Suggested by Bruce Korb.
6370 openat: detect Solaris fchownat bug
6371 * lib/fchownat.c (rpl_fchownat): Work around Solaris bug. Avoid
6372 penalizing glibc chownat when only lchownat is broken.
6373 * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
6374 trailing slash bugs.
6375 * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
6376 * modules/openat-tests (Files): Include more files.
6377 (Depends-on): Add mgetgroups, sleep, stat-time.
6378 (configure.ac): Add additional checks.
6379 (Makefile.am): Build new test.
6380 * tests/test-fchownat.c: New file.
6382 lchown: detect Solaris and FreeBSD bug
6383 * lib/lchown.c (rpl_lchown): Work around bug.
6384 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
6385 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6386 * modules/unistd (Makefile.am): Populate it.
6387 * lib/unistd.in.h (lchown): Update declaration.
6388 * doc/posix-functions/lchown.texi (lchown): Document the bug.
6389 * modules/lchown-tests: New file.
6390 * tests/test-lchown.h (test_lchown): Likewise.
6391 * tests/test-lchown.c (main): Likewise.
6393 chown: detect Solaris and FreeBSD bug
6394 * lib/chown.c (rpl_chown): Work around bug.
6395 * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
6396 (gl_PREREQ_CHOWN): Delete.
6397 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
6398 * modules/unistd (Makefile.am): Populate it.
6399 * lib/unistd.in.h (chown): Update declaration.
6400 * lib/lchown.c (chown): Update client.
6401 * modules/lchown (Depends-on): Add lstat.
6402 * doc/posix-functions/chown.texi (chown): Document the bug.
6403 * doc/posix-functions/getgroups.texi (getgroups): Document
6405 * modules/chown-tests: New file.
6406 * tests/test-chown.h (test_chown): Likewise.
6407 * tests/test-chown.c (main): Likewise.
6409 2009-11-14 Robert Millan <rmh.grub@aybabtu.com> (tiny change)
6411 gnulib-tool: correctly detect absence of m4 directories
6412 * gnulib-tool: Avoid extra newline on data passed to wc -l.
6414 2009-11-14 Jim Meyering <meyering@redhat.com>
6416 maint.mk: Prohibit inclusion of "xalloc.h" without use.
6417 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6419 2009-11-14 John W. Eaton <jwe@gnu.org>
6421 strftime.h: wrap funtion declaration in extern "C" block
6422 * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
6424 2009-11-13 Eric Blake <ebb9@byu.net>
6426 getgroups: avoid compiler warning
6427 * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
6429 getgroups: work around FreeBSD bug
6430 * lib/getgroups.c (rpl_getgroups): Work around the bug.
6431 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
6432 * doc/posix-functions/getgroups.texi (getgroups): Document it.
6433 * tests/test-getgroups.c (main): Fix buffer overrun.
6435 getgroups: avoid compilation failure
6436 * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
6437 * modules/getgroups (Depends-on): Add stdint.
6439 2009-11-13 Jim Meyering <meyering@redhat.com>
6441 test-getgroups: avoid compilation failure
6442 * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
6444 2009-11-13 Eric Blake <ebb9@byu.net>
6446 mgetgroups: new module, taken from coreutils
6447 * modules/mgetgroups: New file.
6448 * lib/mgetgroups.h: Likewise.
6449 * lib/mgetgroups.c (mgetgroups): Likewise.
6450 * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
6451 * MODULES.html.sh (Users and groups): Mention it.
6453 getgroups: don't expose GETGROUPS_T to user
6454 * lib/getgroups.c (rpl_getgroups): Change signature. Copy array
6455 an element at a time if GETGROUPS_T is wrong size.
6456 * lib/getugroups.h (getugroups): Change signature.
6457 * lib/unistd.in.h (getgroups): Likewise.
6458 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
6459 signature needs fixing.
6460 * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
6462 * modules/group-member (Depends-on): Add getgroups.
6463 * lib/group-member.c (group_info, get_group_info): Use gid_t.
6464 (group_member): Rely on getgroups replacement.
6465 * lib/getugroups.c (getugroups): Use gid_t.
6466 * tests/test-getgroups.c (main): Likewise.
6467 * NEWS: Mention the signature change.
6468 * doc/posix-functions/getgroups.texi (getgroups): Mention the
6469 problem with signature.
6470 * doc/glibc-functions/setgroups.texi (setgroups): Mention that
6471 GETGROUPS_T is still useful for setgroups.
6473 getgroups, getugroups: provide stubs for mingw
6474 * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
6475 * lib/getugroups.c (getugroups): Likewise.
6476 * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
6477 function. Modernize replacement scheme.
6478 (gl_PREREQ_GETGROUPS): Delete.
6479 * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
6480 * modules/getgroups (configure.ac): Declare witness.
6481 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
6482 * modules/unistd (Depends-on): Substitute witness.
6483 * lib/unistd.in.h (getgroups): Declare replacement.
6485 getgroups: avoid calling exit
6486 * modules/getgroups (Depends-on): Add malloc-posix and unistd,
6488 * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
6490 * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
6491 exiting, in the rare case of malloc failure.
6493 getgroups: fix logic error
6494 * lib/getgroups.c (rpl_getgroups): Don't fail if current process
6495 has more than 20 groups.
6496 * modules/getgroups-tests: New test.
6497 * tests/test-getgroups.c: New file.
6499 2009-11-13 Simon Josefsson <simon@josefsson.org>
6501 * tests/test-base64.c: Improve.
6503 2009-11-13 Simon Josefsson <simon@josefsson.org>
6505 * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
6506 Blake <ebb9@byu.net>.
6508 2009-11-13 Simon Josefsson <simon@josefsson.org>
6510 * tests/test-xvasprintf.c: Add %s%s related checks.
6512 2009-11-12 Eric Blake <ebb9@byu.net>
6514 version-etc: match standards.texi style
6515 * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
6516 and use <> only for URLs.
6518 2009-11-10 Kamil Dudka <kdudka@redhat.com>
6520 fts: do not fail on a submount during traversal
6521 * lib/fts.c (fts_build): Read the stat info again after opening
6522 a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
6523 Original report at http://bugzilla.redhat.com/501848.
6525 2009-11-12 Jim Meyering <meyering@redhat.com>
6527 bootstrap: sync from coreutils
6528 * build-aux/bootstrap (bootstrap_epilogue): New function.
6529 Use git_modules_config in one more place. This make bootstrap's
6530 --gnulib-srcdir option more useful for testing.
6532 bootstrap: generalize autoheader check
6533 * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
6536 2009-11-11 Eric Blake <ebb9@byu.net>
6538 mkfifoat: use new modules for Solaris and BSD bugs
6539 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
6540 * lib/mkfifoat.c (mknodat): Split...
6541 * lib/mknodat.c (mknodat): ...into new file.
6542 * modules/mkfifoat (Files): Ship new file.
6543 (Depends-on): Add mkfifo, mknod.
6544 * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
6545 (Depends-on): Add symlink.
6546 * tests/test-mkfifoat.c (main): Enhance test. Drop portions now
6547 redundant with test_mkfifo.h.
6548 (do_mkfifoat, do_mknodat): New helpers.
6551 * modules/mknod: New file.
6552 * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
6553 * lib/mknod.c (mknod): Likewise.
6554 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6556 * modules/sys_stat (Makefile.am): Substitute them.
6557 * lib/sys_stat.in.h (mknod): Declare replacement.
6558 * MODULES.html.sh (Support for systems lacking POSIX:2008):
6560 * doc/posix-functions/mknod.texi (mknod): Likewise.
6561 * modules/mknod-tests: New test.
6562 * tests/test-mknod.c: Likewise.
6565 * modules/mkfifo: New file.
6566 * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
6567 * lib/mkfifo.c (mkfifo): Likewise.
6568 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
6570 * modules/sys_stat (Makefile.am): Substitute them.
6571 * lib/sys_stat.in.h (mkfifo): Declare replacement.
6572 * MODULES.html.sh (Support for systems lacking POSIX:2008):
6574 * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
6575 * modules/mkfifo-tests: New test.
6576 * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
6577 from test-mkfifoat.c.
6578 * tests/test-mkfifo.c: New file.
6580 readlink: detect FreeBSD bug
6581 * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
6583 * doc/posix-functions/readlink.texi (readlink): Document the bug.
6584 * tests/test-readlink.h (test_readlink): Enhance test.
6586 symlink: detect FreeBSD bug
6587 * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
6589 * doc/posix-functions/symlink.texi (symlink): Document the bug.
6590 * tests/test-symlink.h (test_symlink): Enhance test.
6592 2009-11-10 Eric Blake <ebb9@byu.net>
6594 link: detect FreeBSD bug
6595 * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
6597 * doc/posix-functions/link.texi (link): Document the bug.
6598 * tests/test-link.h (test_link): Enhance test.
6599 * tests/test-linkat.c (main): Update caller.
6601 unlink, remove: detect FreeBSD bug
6602 * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
6604 * doc/posix-functions/unlink.texi (unlink): Document the bug.
6605 * doc/posix-functions/remove.texi (remove): Likewise.
6606 * tests/test-unlink.h (test_unlink): Enhance test.
6607 * tests/test-remove.c (main): Likewise.
6609 2009-11-09 Eric Blake <ebb9@byu.net>
6611 rename: detect FreeBSD bug
6612 * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
6614 * modules/renameat-tests (Depends-on): Add filenamecat.
6615 * tests/test-rename.h (test_rename): Allow one more errno.
6616 * tests/test-renameat.c (main): Likewise.
6617 * doc/posix-functions/rename.texi (rename): Document the bug.
6619 open: detect FreeBSD bug
6620 * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
6622 * doc/posix-functions/open.texi (open): Document the bug.
6623 * doc/posix-functions/utimes.texi (utimes): Likewise.
6624 * tests/test-open.h (test_open): Add parameters, and test symlink
6626 * tests/test-open.c (main): Adjust caller.
6627 * tests/test-fcntl-safer.c (main): Likewise.
6628 * modules/open-tests (Depends-on): Add stdbool, symlink.
6629 * modules/fcntl-safer-tests (Depends-on): Likewise.
6630 * tests/test-openat.c (main): Add test-open tests.
6632 stat: detect FreeBSD bug
6633 * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
6635 * doc/posix-functions/stat.texi (stat): Document the bug.
6636 * tests/test-stat.h (test_stat_func): Add argument.
6637 * tests/test-stat.c (main): Adjust caller.
6638 * tests/test-fstatat.c (main): Likewise.
6639 * modules/stat-tests (Depends-on): Add stdbool, symlink.
6640 Reported by Jim Meyering.
6642 2009-11-09 James Youngman <jay@gnu.org>
6644 strftime.c: include ignore-value.h only when FPRINTFTIME is defined
6645 * lib/strftime.c: Correct placement of #include "ignore-value.h".
6647 2009-11-08 Jim Meyering <meyering@redhat.com>
6649 utimens: remove invalid futimesat call
6650 * lib/utimens.c (fdutimens): Remove invalid futimesat call.
6651 It used the file descriptor of the target file as the DIR_FD
6652 parameter and NULL as the file name. That caused failure with
6653 errno == EFAULT on FreeBSD-8.0-rc2
6655 2009-11-07 Eric Blake <ebb9@byu.net>
6657 fflush, freadseek: use fseeko, not fseek
6658 * lib/fflush.c (clear_ungetc_buffer_preserving_position)
6659 (clear_ungetc_buffer): Avoid potential problems on large files.
6660 * lib/freadseek.c (freadseek): Likewise.
6661 * modules/freadseek (Depends-on): Add fseeko.
6662 * modules/fseek (configure.ac): Set a witness.
6663 * tests/test-fflush.c (main): Use fseeko.
6664 * tests/test-fpurge.c (fseek): Disable link warning.
6665 * tests/test-freadable.c (fseek): Likewise.
6666 * tests/test-freading.c (fseek): Likewise.
6667 * tests/test-fseeko.c (fseek): Likewise.
6668 * tests/test-ftell.c (fseek): Likewise.
6669 * tests/test-ftello.c (fseek): Likewise.
6670 * tests/test-fwritable.c (fseek): Likewise.
6671 * tests/test-fwriting.c (fseek): Likewise.
6673 2009-11-06 Simon Josefsson <simon@josefsson.org>
6675 * modules/memchr (Depends-on): Drop getpagesize dependency.
6677 2009-11-06 Simon Josefsson <simon@josefsson.org>
6679 * build-aux/pmccabe2html: Disable execute bit. Suggested by
6680 Reported by Ludovic Courtès.
6681 * build-aux/pmccabe2html: Improve example usage.
6682 * build-aux/pmccabe2html: Drop #! header. Doc fix.
6684 2009-11-06 Jim Meyering <meyering@redhat.com>
6686 do-release-commit-and-tag: New module.
6687 Automate the release-commit and tag process.
6688 * build-aux/do-release-commit-and-tag: New script, from coreutils.
6689 * modules/do-release-commit-and-tag: New file.
6690 * MODULES.html.sh (Support for maintaining and releasing): Add it.
6692 2009-11-06 Simon Josefsson <simon@josefsson.org>
6694 * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
6695 because test-select.c uses inet_pton.
6697 2009-11-06 Simon Josefsson <simon@josefsson.org>
6699 * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
6700 GETADDRINFO_LIB. Bump serial number.
6701 * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
6702 Suggested by Eric Blake <ebb9@byu.net>.
6704 2009-11-05 Eric Blake <ebb9@byu.net>
6706 strtod: detect darwin bug
6707 * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
6708 Reported by Leo Davis.
6710 freopen-safer: new module
6711 * modules/freopen-safer: New module.
6712 * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
6713 * lib/freopen-safer.c (freopen_safer): New file.
6714 * lib/stdio-safer.h (freopen_safer): New declaration.
6715 * lib/stdio--.h (freopen): New override.
6716 * MODULES.html.sh (File stream based Input/Output): Mention it.
6717 * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
6718 freopen-safer module.
6719 * doc/posix-functions/stderr.texi (stderr): Likewise.
6720 * doc/posix-functions/stdin.texi (stdin): Likewise.
6721 * doc/posix-functions/stdout.texi (stdout): Likewise.
6722 * modules/freopen-safer-tests: New test.
6723 * tests/test-reopen-safer.c: New file.
6725 2009-11-05 Jim Meyering <meyering@redhat.com>
6727 maint.mk: Prohibit inclusion of "close-stream.h" without use.
6728 * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
6730 2009-11-05 Simon Josefsson <simon@josefsson.org>
6732 * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
6734 2009-11-05 Simon Josefsson <simon@josefsson.org>
6736 * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
6738 2009-11-05 Simon Josefsson <simon@josefsson.org>
6741 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6742 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6744 2009-11-05 Simon Josefsson <simon@josefsson.org>
6746 * tests/test-func.c: Also test value of __func__.
6748 2009-11-05 Simon Josefsson <simon@josefsson.org>
6750 * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
6751 may be an 8-bit type. Reported by Bruno Haible <bruno@clisp.org>.
6753 2009-11-05 Bruno Haible <bruno@clisp.org>
6756 * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
6757 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
6758 Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
6760 2009-11-05 Bruno Haible <bruno@clisp.org>
6762 Tests for module 'inet_pton'.
6763 * modules/inet_pton-tests: New file.
6764 * tests/test-inet_pton.c: New file.
6766 2009-11-05 Bruno Haible <bruno@clisp.org>
6768 Tests for module 'inet_ntop'.
6769 * modules/inet_ntop-tests: New file.
6770 * tests/test-inet_ntop.c: New file.
6772 2009-11-04 Eric Blake <ebb9@byu.net>
6774 stdlib-safer: wrap all mkstemp variants
6775 * modules/mkostemp (configure.ac): Set witness.
6776 * modules/mkostemps (configure.ac): Likewise.
6777 * modules/mkstemps (configure.ac): Likewise.
6778 * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
6779 (mkstemps_safer): Wrap more functions.
6780 * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
6782 * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
6783 (mkstemps_safer): Implement the wrappers.
6785 mkstemps, mkostemps: new modules
6786 * modules/mkostemps: New module.
6787 * modules/mkstemps: Likewise.
6788 * lib/mkostemps.c (mkostemps): New file.
6789 * lib/mkstemps.c (mkstemps): Likewise.
6790 * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
6791 * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
6792 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
6793 * modules/stdlib (Makefile.am): Substitute them.
6794 * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
6795 * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
6796 * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
6797 * doc/gnulib.texi (Glibc stdlib.h): Include them.
6798 * MODULES.html.sh (File system functions): Mention them.
6800 tempname: resync from glibc
6801 * lib/tempname.c (__gen_tempname): Add suffixlen argument. Use
6802 same values for __GT_FILE as glibc. Abort even when assertions
6804 * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
6805 match its value otherwise. Allow idempotent inclusion.
6806 * lib/mkdtemp.c (mkdtemp): Adjust caller.
6807 * lib/mkostemp.c (mkostemp): Likewise.
6808 * lib/mkstemp.c (mkstemp): Likewise.
6809 * lib/tmpfile.c (tmpfile): Likewise.
6810 * NEWS: Document this.
6812 utimens: fix use of futimens on older Linux
6813 * lib/utimens.c (fdutimens): Use updated, rather than original,
6814 timespec to avoid bug in older Linux kernel.
6815 Reported by Simon Josefsson.
6817 2009-11-04 Bruno Haible <bruno@clisp.org>
6819 Make num_processors more flexible and consistent.
6820 * lib/nproc.h (enum nproc_query): New type.
6821 (num_processors): Add a 'query' argument.
6822 * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
6823 (num_processors): Add a 'query' argument. Test the value of the
6824 OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
6825 mingw, count the number of CPUs available for the current process.
6826 * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
6827 Check for sched_getaffinity and sched_getaffinity_np.
6828 * modules/nproc (Depends-on): Add c-ctype, extensions.
6829 * NEWS: Mention the change.
6831 2009-11-03 Bruno Haible <bruno@clisp.org>
6833 * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
6835 2009-11-03 Jim Meyering <meyering@redhat.com>
6837 test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
6838 * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
6841 2009-11-02 Eric Blake <ebb9@byu.net>
6843 mktime, timegm: share common declaration
6844 * lib/mktime-internal.h: New file.
6845 * lib/mktime.c: Use it rather than open-coding a declaration.
6846 * lib/timegm.c: Likewise.
6847 * modules/mktime (Files): Ship it.
6848 * modules/timegm (Files): Likewise.
6849 Suggested by Bruno Haible.
6851 test-update-copyright: update test to match script changes
6852 * tests/test-update-copyright.sh: Avoid hard-coding perl
6853 location. Don't update *.bak created by earlier runs.
6855 2009-11-02 Paul Eggert <eggert@cs.ucla.edu>
6856 Simon Josefsson <simon@josefsson.org>
6857 Bruno Haible <bruno@clisp.org>
6859 Fix link error on Solaris 8.
6860 * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
6861 also in libnsl. Define also INET_PTON_LIB.
6862 * modules/inet_pton (Link): New section.
6864 2009-11-02 Simon Josefsson <simon@josefsson.org>
6865 Bruno Haible <bruno@clisp.org>
6867 * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
6868 * modules/inet_ntop (Link): New section.
6869 Reported by Boyan Kasarov <bkasarov@gmail.com>.
6871 2009-11-02 Eric Blake <ebb9@byu.net>
6873 maint: avoid compiler warnings in m4 macros
6874 * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
6875 * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
6877 2009-11-02 Simon Josefsson <simon@josefsson.org>
6879 * m4/pmccabe2html.m4: Remove file.
6880 * modules/pmccabe2html: Drop pmccabe2html.m4. Don't call m4
6881 function. Change maintainer.
6882 * build-aux/pmccabe2html: Use /bin/sh with magic instead of
6883 hard-coding path to awk. Tiny patch from ludo@gnu.org (Ludovic
6886 2009-10-31 Eric Blake <ebb9@byu.net>
6888 fseeko: fix m4 regression
6889 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro. Fixes
6890 regression from 2009-10-27.
6891 Reported by Ralf Wildenhues.
6893 2009-10-31 Jim Meyering <meyering@redhat.com>
6895 inttostr: aesthetics and improved (compile-time) safety
6896 Define inttype_is_signed rather than inttype_is_unsigned,
6897 since the sole use is via "#if inttype_is_signed".
6898 * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
6899 inttype_is_unsigned.
6900 * lib/offtostr.c (inttype_is_signed): Likewise.
6901 * lib/uinttostr.c (inttype_is_signed): Likewise.
6902 * lib/umaxtostr.c (inttype_is_signed): Likewise.
6903 * lib/inttostr.c (inttostr): Use verify to cross-check the
6904 inttype_is_signed value and the signedness of the actual type.
6905 * modules/inttostr (Depends-on): Add verify.
6907 2009-10-30 Eric Blake <ebb9@byu.net>
6909 build: avoid compiler warnings
6910 * lib/fchmodat.c (lchmod): Mark unused variables.
6911 * lib/getopt.c (_getopt_initialize): Likewise.
6912 * lib/mktime.c (__mktime_internal): Provide prototype.
6913 * lib/inttostr.c (inttostr): Avoid compiler warning even with
6914 older gcc that do not understand #pragma GCC diagnostic.
6915 * lib/uinttostr.c (inttype_is_unsigned): Define.
6916 * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
6918 2009-10-30 Michael Haubenwallner <michael.haubenwallner@salomon.at>
6920 stat: fix compilation on AIX
6921 * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
6922 only see struct stat64.
6924 2009-10-30 Eric Blake <ebb9@byu.net>
6926 exclude: make more robust
6927 * lib/exclude.c (excluded_file_name): Abort on unexpected value,
6928 rather than masking a coding bug.
6929 Suggested by Bruno Haible.
6931 2009-10-30 Jim Meyering <meyering@redhat.com>
6933 perl scripts: remove #!/usr/bin/perl in favor of more portable...
6934 Rather than putting #!/usr/bin/perl on the first line,
6935 start with a variant of what's recommended by "man perlrun" that
6936 invokes the first "perl" program from your shell's search path.
6937 * build-aux/gitlog-to-changelog: Replace #!... as above.
6938 Add a "Local Variables" perl mode setting.
6939 Prompted by a patch from Ludovic Courtès.
6940 Improved by Eric Blake.
6941 * build-aux/useless-if-before-free: Likewise.
6942 * build-aux/announce-gen: Likewise.
6943 * build-aux/update-copyright: Likewise.
6945 2009-10-29 Eric Blake <ebb9@byu.net>
6947 filenamecat-lgpl: adjust clients
6948 * modules/linkat (Depends-on): Use filenamecat-lgpl, not
6950 * modules/renameat (Depends-on): Likewise.
6952 filenamecat: split into filenamecat-lgpl
6953 * modules/filenamecat-lgpl: New module.
6954 * modules/filenamecat (Files): Move library-safe files into
6956 (Depends-on): Add filenamecat-lgpl.
6957 (configure.ac): Declare witness.
6958 * lib/filenamecat.h (file_name_concat): Only declare when using
6960 * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
6962 * lib/filenamecat-lgpl.c: ...into new file.
6963 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
6964 (gl_FILE_NAME_CONCAT): Use it.
6965 * MODULES.html.sh (File system functions): Mention new module.
6967 argp: avoid memory leak
6968 * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
6969 * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
6970 base_name, since the latter malloc()s and can call exit().
6971 Leak introduced 2006-07-03.
6973 dirname-lgpl: adjust clients that don't need full dirname
6974 * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
6975 * modules/filenamecat (Depends-on): Likewise.
6976 * modules/linkat (Depends-on): Likewise.
6977 * modules/mkancesdirs (Depends-on): Likewise.
6978 * modules/mkdir (Depends-on): Likewise.
6979 * modules/openat (Depends-on): Likewise.
6980 * modules/savewd (Depends-on): Likewise.
6981 * modules/rename (Depends-on): Likewise.
6982 (License): Relax license.
6983 * modules/mkdir-tests (Depends-on): Drop progname.
6984 (Makefile.am): Delete unneeded LDADD.
6985 * modules/rename-tests (Depends-on, Makefile.am): Likewise.
6987 dirname: split into dirname-lgpl
6988 * modules/dirname-lgpl: New module.
6989 * modules/dirname (Files): Move library-safe files into
6991 (Depends-on): Add dirname-lgpl.
6992 (configure.ac): Declare witness.
6993 * modules/double-slash-root (License): Relax license.
6994 * lib/dirname.h (base_name, dir_name): Only declare when using GPL
6996 * lib/dirname.c (dir_len, mdir_name): Move...
6997 * lib/dirname-lgpl.c: ...into new file.
6998 * lib/basename.c (last_component, base_len): Move...
6999 * lib/basename-lgpl.c: ...into new file.
7000 * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
7001 (gl_DIRNAME): Use it.
7002 * MODULES.html.sh (Enhancements for POSIX:2008 functions):
7004 * modules/dirname-tests (Depends-on): Add progname.
7005 * tests/test-dirname.c (program_name): Delete.
7007 mkdir: make safe for libraries
7008 * modules/mkdir (Depends-on): Drop xalloc.
7009 * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
7012 tests: avoid some compiler warnings
7013 * tests/test-getaddrinfo.c (simple): Mark static, and allow string
7015 * tests/test-memchr.c (main): Avoid type mismatch.
7016 * tests/test-arpa_inet.c (main): Avoid unused parameters.
7017 * tests/test-base64.c (main): Likewise.
7018 * tests/test-getdelim.c (main): Likewise.
7019 * tests/test-gethostname.c (main): Likewise.
7020 * tests/test-getline.c (main): Likewise.
7021 * tests/test-netinet_in.c (main): Likewise.
7022 * tests/test-select.c (open_server_socket, main): Likewise.
7023 * tests/test-select-stdin.c (main): Likewise.
7024 * tests/test-sockets.c (main): Likewise.
7025 * tests/test-strsignal.c (main): Likewise.
7026 * tests/test-sys_select.c (main): Likewise.
7027 * tests/test-sys_socket.c (main): Likewise.
7028 * tests/test-u64.c (main): Likewise.
7029 * tests/test-xfprintf-posix.c (main): Likewise.
7030 * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
7032 sockets: avoid compiler warning
7033 * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
7035 maint: detect usage(1) and other suspicious exits
7036 * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
7038 2009-10-29 Jim Meyering <meyering@redhat.com>
7040 timespec: long-to-int truncation could make timespec_cmp malfunction
7041 * lib/timespec.h (timespec_cmp): Do not interpret a difference of
7042 a multiple of 2^32 nanoseconds as no difference.
7044 2009-10-28 Jim Meyering <meyering@redhat.com>
7046 fprintftime: wrap macro code argument in "do {...} while(0)"
7047 * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
7048 cpy macro must be a statement that can be followed by a semicolon.
7049 Now that the else clause contains a comment and is hence longer
7050 than one line, I require curly braces. That in turn requires
7051 that we wrap this code block in the standard do...while(0).
7053 fprintftime: remove stray semicolon from previous change
7054 * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
7056 fprintftime: avoid a warning about ignored fwrite return value
7057 * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
7058 (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
7060 * modules/fprintftime (Depends-on): Add ignore-value.
7062 exclude: avoid an unwarranted warning
7063 * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
7065 2009-10-27 Eric Blake <ebb9@byu.net>
7067 fseek: avoid compilation failure when fflush is replaced
7068 * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
7069 * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
7071 * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
7072 module is not in use; since REPLACE_FSEEK worked otherwise.
7073 (GNULIB_FTELLO): Likewise for ftell.
7074 Reported by Ian Beckwith and others.
7076 2009-10-27 Bruno Haible <bruno@clisp.org>
7078 * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
7079 Reported by Jim Meyering.
7081 2009-10-27 Jim Meyering <jim@meyering.net>
7082 Bruno Haible <bruno@clisp.org>
7084 Avoid warning despite dropping the return value of fwrite.
7085 * lib/unicodeio.c: Include ignore-value.h.
7086 (fwrite_success_callback): Explicitly ignore fwrite's return value.
7087 * modules/unicodeio (Depends-on): Add ignore-value.
7089 2009-10-26 Eric Blake <ebb9@byu.net>
7091 areadlinkat: fix fallback path
7092 * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
7095 2009-10-22 Pádraig Brady <P@draigBrady.com>
7097 Use a better IO block size for modern systems
7098 * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
7099 * lib/md2.c: Likewise.
7100 * lib/md4.c: Likewise.
7101 * lib/md5.c: Likewise.
7102 * lib/sha1.c: Likewise.
7103 * lib/sha256.c: Likewise.
7104 * lib/sha512.c: Likewise.
7106 2009-10-22 Eric Blake <ebb9@byu.net>
7108 tests: avoid several compiler warnings
7109 * tests/test-getcwd.c (main): Avoid buffer underflow.
7110 * tests/test-getdate.c (main): String literals are not safe with
7111 putenv, so use setenv. Declare unused argument.
7112 * modules/getdate-tests (Depends-on): Add setenv.
7113 * tests/test-argv-iter.c (main): Declare unused argument. Avoid
7114 problems with string literals in char *.
7115 * tests/test-hash.c (main): Avoid shadowing declaration.
7116 (insert_new): Treat string literals as char const *.
7117 * tests/test-getopt.h (test_getopt): Likewise.
7118 (getopt_loop): Alter types to minimize casting elsewhere.
7119 * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
7120 (test_getopt_long_posix): Likewise.
7121 (do_getopt_long): Add wrapper to minimize casting.
7122 * tests/test-atexit.c (clear_temp_file): Use void.
7123 * tests/test-areadlink-with-size.c (main): Declare unused
7125 * tests/test-areadlink.c (main): Likewise.
7126 * tests/test-areadlinkat-with-size.c (main): Likewise.
7127 * tests/test-areadlinkat.c (main): Likewise.
7128 * tests/test-canonicalize-lgpl.c (main): Likewise.
7129 * tests/test-canonicalize.c (main): Likewise.
7130 * tests/test-dirent-safer.c (main): Likewise.
7131 * tests/test-dirname.c (main): Likewise.
7132 * tests/test-dup2.c (main): Likewise.
7133 * tests/test-fchdir.c (main): Likewise.
7134 * tests/test-fcntl-h.c (main): Likewise.
7135 * tests/test-fcntl-safer.c (main): Likewise.
7136 * tests/test-fdopendir.c (main): Likewise.
7137 * tests/test-fdutimensat.c (main): Likewise.
7138 * tests/test-fflush.c (main): Likewise.
7139 * tests/test-filenamecat.c (main): Likewise.
7140 * tests/test-filevercmp.c (main): Likewise.
7141 * tests/test-fopen-safer.c (main): Likewise.
7142 * tests/test-fopen.c (main): Likewise.
7143 * tests/test-fpending.c (main): Likewise.
7144 * tests/test-fpurge.c (main): Likewise.
7145 * tests/test-freading.c (main): Likewise.
7146 * tests/test-fstatat.c (main): Likewise.
7147 * tests/test-fsync.c (main): Likewise.
7148 * tests/test-futimens.c (main): Likewise.
7149 * tests/test-getndelim2.c (main): Likewise.
7150 * tests/test-gettimeofday.c (main): Likewise.
7151 * tests/test-getopt.c (main): Likewise.
7152 * tests/test-i-ring.c (main): Likewise.
7153 * tests/test-inttypes.c (main): Likewise.
7154 * tests/test-link.c (main): Likewise.
7155 * tests/test-lstat.c (main): Likewise.
7156 * tests/test-math.c (main): Likewise.
7157 * tests/test-md5.c (main): Likewise.
7158 * tests/test-memchr2.c (main): Likewise.
7159 * tests/test-memrchr.c (main): Likewise.
7160 * tests/test-mkdir.c (main): Likewise.
7161 * tests/test-mkdirat.c (main): Likewise.
7162 * tests/test-mkfifoat.c (main): Likewise.
7163 * tests/test-open.c (main): Likewise.
7164 * tests/test-openat-safer.c (main): Likewise.
7165 * tests/test-openat.c (main): Likewise.
7166 * tests/test-quotearg.c (main): Likewise.
7167 * tests/test-rawmemchr.c (main): Likewise.
7168 * tests/test-readlink.c (main): Likewise.
7169 * tests/test-remove.c (main): Likewise.
7170 * tests/test-rename.c (main): Likewise.
7171 * tests/test-renameat.c (main): Likewise.
7172 * tests/test-rmdir.c (main): Likewise.
7173 * tests/test-sha1.c (main): Likewise.
7174 * tests/test-signal.c (main): Likewise.
7175 * tests/test-sigaction.c (main): Likewise.
7176 * tests/test-stat.c (main): Likewise.
7177 * tests/test-stat-time.c (main): Likewise.
7178 * tests/test-stddef.c (main): Likewise.
7179 * tests/test-stdint.c (main): Likewise.
7180 * tests/test-stdio.c (main): Likewise.
7181 * tests/test-stdlib.c (main): Likewise.
7182 * tests/test-strchrnul.c (main): Likewise.
7183 * tests/test-strerror.c (main): Likewise.
7184 * tests/test-string.c (main): Likewise.
7185 * tests/test-strtod.c (main): Likewise.
7186 * tests/test-strverscmp.c (main): Likewise.
7187 * tests/test-symlink.c (main): Likewise.
7188 * tests/test-symlinkat.c (main): Likewise.
7189 * tests/test-sys_stat.c (main): Likewise.
7190 * tests/test-sys_time.c (main): Likewise.
7191 * tests/test-time.c (main): Likewise.
7192 * tests/test-unistd.c (main): Likewise.
7193 * tests/test-unlink.c (main): Likewise.
7194 * tests/test-unlinkat.c (main): Likewise.
7195 * tests/test-utimens.c (main): Likewise.
7196 * tests/test-utimensat.c (main): Likewise.
7197 * tests/test-version-etc.c (main): Likewise.
7198 * tests/test-wchar.c (main): Likewise.
7199 * tests/test-wctype.c (main): Likewise.
7200 * tests/test-xprintf-posix.c (main): Likewise.
7201 * tests/test-posixtm.c (main): Likewise.
7202 (STREQ): Delete unused macro.
7203 * tests/test-linkat.c (main): Declare unused arguments. Avoid
7205 * tests/test-memchr.c (main): Likewise.
7207 2009-10-21 Eric Blake <ebb9@byu.net>
7209 areadlinkat: avoid failure on older glibc
7210 * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
7211 rather than mis-comparing 0 against FUNC_RESULT of char*.
7213 2009-10-21 Bruno Haible <bruno@clisp.org>
7215 * modules/stpncpy (License): Relicense under LGPLv2+.
7216 Reported by David Lutterkort <lutter@redhat.com>.
7218 2009-10-20 Eric Blake <ebb9@byu.net>
7220 utimensat: work around Solaris 9 bug
7221 * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
7222 has trailing slash bugs.
7223 * tests/test-lutimens.h (test_lutimens): Enhance test.
7224 * tests/test-utimens.h (test_utimens): Likewise.
7225 * doc/posix-functions/utime.texi (utime): Enhance documentation.
7226 * doc/posix-functions/utimes.texi (utimes): Likewise.
7227 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7228 * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
7229 * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
7230 * doc/posix-functions/futimens.texi (futimens): Likewise.
7232 fdutimensat: new module
7233 * modules/fdutimensat: New file.
7234 * lib/fdutimensat.c (fdutimensat): Likewise.
7235 * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
7236 * MODULES.html.sh (File system functions): Mention module.
7237 * modules/fdutimensat-tests: New test.
7238 * tests/test-fdutimensat.c: Likewise.
7240 doc: regenerate INSTALL
7241 * doc/INSTALL: Reflect recent autoconf update.
7242 * doc/INSTALL.ISO: Likewise.
7243 * doc/INSTALL.UTF-8: Likewise.
7245 2009-10-20 Pádraig Brady <P@draigBrady.com>
7247 acl: warn if ACL support is not detected
7248 * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
7250 2009-10-19 Giuseppe Scrivano <gscrivano@gnu.org>
7252 * lib/nproc.h: Add extern "C" block for C++.
7254 2009-10-18 Reuben Thomas <rrt@sc3d.org>
7255 Bruno Haible <bruno@clisp.org>
7257 * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
7258 * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
7259 * doc/posix-functions/isalpha.texi: Likewise.
7260 * doc/posix-functions/isblank.texi: Likewise.
7261 * doc/posix-functions/iscntrl.texi: Likewise.
7262 * doc/posix-functions/isdigit.texi: Likewise.
7263 * doc/posix-functions/isgraph.texi: Likewise.
7264 * doc/posix-functions/islower.texi: Likewise.
7265 * doc/posix-functions/isprint.texi: Likewise.
7266 * doc/posix-functions/ispunct.texi: Likewise.
7267 * doc/posix-functions/isspace.texi: Likewise.
7268 * doc/posix-functions/isupper.texi: Likewise.
7269 * doc/posix-functions/isxdigit.texi: Likewise.
7271 2009-10-18 Bruno Haible <bruno@clisp.org>
7273 Tests for module 'isblank'.
7274 * modules/isblank-tests: New file.
7275 * tests/test-isblank.c: New file.
7277 New module 'isblank'.
7278 * lib/isblank.c: New file.
7279 * m4/isblank.m4: New file.
7280 * modules/isblank: New file.
7281 * doc/posix-functions/isblank.texi: Mention the new module.
7283 2009-10-18 Bruno Haible <bruno@clisp.org>
7286 * lib/ctype.in.h: New file.
7287 * m4/ctype.m4: New file.
7288 * modules/ctype: New file.
7289 * doc/posix-headers/ctype.texi: Mention the new module.
7291 2009-10-18 Jim Meyering <meyering@redhat.com>
7293 m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
7294 Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
7295 right after its initialization, rather than farther down.
7296 Keeping these in close proximity makes it easier to ensure
7297 that each such variable is initialized. E.g.,
7300 AC_SUBST([LIB_CLOCK_GETTIME])
7302 This change also increments these serial numbers.
7303 * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
7304 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7305 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7307 2009-10-18 Bruno Haible <bruno@clisp.org>
7309 Don't let environment variables perturb build.
7310 * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
7311 (gl_PREREQ_GETHRXTIME): ... not here.
7313 2009-10-18 Bruno Haible <bruno@clisp.org>
7315 Avoid symlink attack in localcharset module.
7316 * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
7317 (O_NOFOLLOW): Define fallback.
7318 (get_charset_aliases): Don't open the file if it is a symbolic link.
7319 * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
7321 (gl_FCNTL_H): Require it.
7322 * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
7323 * modules/localcharset (Files): Add m4/fcntl_h.m4.
7324 Reported by Fergal Glynn <fglynn@veracode.com>.
7326 2009-10-18 Bruno Haible <bruno@clisp.org>
7328 Implement nproc for mingw.
7329 * lib/nproc.c: Include <windows.h>
7330 (num_processors): On native Windows platforms, try GetSystemInfo.
7332 2009-10-18 Bruno Haible <bruno@clisp.org>
7334 Implement nproc for IRIX.
7335 * lib/nproc.c: Include <sys/sysmp.h>.
7336 (num_processors): On IRIX systems, try sysmp.
7337 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
7339 2009-10-18 Bruno Haible <bruno@clisp.org>
7341 Implement nproc for HP-UX.
7342 * lib/nproc.c: Include <sys/pstat.h>
7343 (num_processors): On HP-UX systems, try pstat_getdynamic.
7344 * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
7347 2009-10-18 Giuseppe Scrivano <gscrivano@gnu.org>
7348 Bruno Haible <bruno@clisp.org>
7350 Implement nproc for NetBSD, OpenBSD.
7351 * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
7352 (ARRAY_SIZE): New macro.
7353 (num_processors): On BSD systems, try sysctl of HW_NCPU.
7354 * m4/nproc.m4: New file.
7355 * modules/nproc (Files): Add m4/nproc.m4.
7356 (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
7357 (Makefile.am): Instead, augment lib_SOURCES.
7359 2009-10-18 Bruno Haible <bruno@clisp.org>
7361 Fix recognition of sys/sysctl.h on OpenBSD 4.0.
7362 * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
7365 2009-10-16 Eric Blake <ebb9@byu.net>
7367 utimensat: new module
7368 * modules/utimensat: New file.
7369 * lib/utimensat.c (utimensat): Likewise.
7370 * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
7371 * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
7372 so we can work around Linux bugs.
7373 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7374 * modules/sys_stat (Makefile.am): Substitute them.
7375 * lib/sys_stat.in.h (utimensat): Declare it.
7376 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7377 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7378 * modules/utimensat-tests: New test.
7379 * tests/test-utimensat.c: Likewise.
7381 utimens: let lutimens work on non-symlinks
7382 * lib/utimens.c (lutimens): Fall back to utimens rather than
7383 failing with ENOSYS, when file is not a symlink.
7384 (utimens): Reduce redirection.
7385 * tests/test-lutimens.h (test_lutimens): Update test to cover
7387 * tests/test-utimens.h (test_utimens): Update test to cover
7389 * tests/test-utimens.c (main): Update caller.
7391 utimens: cache whether utimensat syscall works
7392 * lib/utimens.c (utimensat_works_really): New cache variable.
7393 (fdutimens, lutimens): Use it to avoid failing syscall.
7395 test-stat-time, test-utimens: improve portability
7396 * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
7397 ext4 on alpha, and for cygwin.
7398 * tests/test-utimens-common.h: New file.
7399 (nap): Factor delays into single function.
7400 * tests/test-lutimens.h (test_lutimens): Use new header.
7401 * tests/test-futimens.h (test_futimens): Likewise.
7402 * tests/test-utimens.h (test_utimens): Likewise. Also, force NFS
7403 timestamps to occur from same machine, as was done previously for
7405 * modules/utimens-tests (Files): Ship new file.
7406 * modules/futimens-tests (Files): Likewise.
7407 Reported in part by Jim Meyering.
7409 sys_stat: sort replacement declarations
7410 * lib/sys_stat.in.h: Sort declarations.
7411 * lib/futimens.c (futimens): Fix typo.
7413 2009-10-15 Jim Meyering <meyering@redhat.com>
7415 don't let environment settings perturb build
7416 Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
7417 could cause a configure-time and/or build-time malfunction.
7418 Typically, a configure-time function-in-library test is performed
7423 prefix_saved_LIBS=$LIBS
7424 AC_SEARCH_LIBS([FUNC], [LIB_NAME],
7425 [test "$ac_cv_search_FUNC" = "none required" ||
7426 LIB_VAR=$ac_cv_search_FUNC])
7427 LIBS=$prefix_saved_LIBS
7429 However, in each of the files affected by this change, the LIB_VAR=
7430 initialization was omitted. Thus, when set in the environment, its
7431 value would propagate into generated Makefiles when FUNC is not found
7433 * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
7434 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
7435 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
7437 2009-10-14 Eric Blake <ebb9@byu.net>
7439 fchdir: avoid infinite recursion in mingw
7440 * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
7443 test-stat-time: port to mingw
7444 * tests/test-stat-time.c (force_unlink): Return a value.
7445 (test_ctime) [W32]: Fix compilation error.
7446 (nap): Don't call usleep with too large an argument. Use
7448 * doc/pastposix-functions/usleep.texi (usleep): Document the
7451 2009-10-13 Jim Meyering <meyering@redhat.com>
7453 use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
7454 * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
7455 * modules/pipe-filter-ii: Likewise.
7456 * modules/sys_socket-tests: Likewise.
7457 * modules/tsearch-tests: Likewise.
7458 * Makefile (sc_prefer_ac_check_funcs_once): New rule.
7459 (check): Depend on it.
7461 2009-10-12 Eric Blake <ebb9@byu.net>
7463 utimens-tests: port to NFS file systems
7464 * tests/test-utimens.h (test_utimens): Refactor utimecmp
7465 comparisons to avoid spurious failures from timestamp drift
7466 between NFS machines.
7468 2009-10-12 Eric Blake <ebb9@byu.net>
7470 stat-time-tests: minor cleanups
7471 * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
7472 * tests/test-stat-time.c (nap): Separate assignment from call.
7473 Suggested by Paolo Bonzini and Bruno Haible.
7475 sys_stat: guarantee struct timespec
7476 * lib/sys_stat.in.h (includes): Always include <time.h>
7477 * modules/sys_stat (Depends-on): Add time.
7478 * tests/test-sys_stat.c: Guarantee struct timespec, as well as
7479 mode_t permission values.
7480 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
7481 get at subsecond timestamps.
7483 2009-10-10 Eric Blake <ebb9@byu.net>
7485 futimens: new module
7486 * modules/futimens: New file.
7487 * lib/futimens.c (futimens): Likewise.
7488 * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
7489 * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
7490 we can work around Linux bugs.
7491 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
7492 * modules/sys_stat (Makefile.am): Substitute them.
7493 * lib/sys_stat.in.h (futimens): Declare it.
7494 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7495 * doc/posix-functions/futimens.texi (futimens): Likewise.
7496 * modules/futimens-tests: New test.
7497 * tests/test-futimens.c: Likewise.
7499 utimens: introduce fdutimens
7500 * lib/utimens.h (fdutimens): New prototype.
7501 * lib/utimens.c (gl_futimens): Move guts...
7502 (fdutimens): ...to new interface.
7503 * tests/test-utimens.c (do_fdutimens): Use it.
7505 utimens: add UTIME_NOW and UTIME_OMIT support
7506 * lib/utimens.c (validate_timespec, update_timespec): New helper
7508 (gl_futimens, lutimens): Use them.
7509 * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
7511 (Link): Mention resulting library dependency.
7512 * modules/utimecmp (Link): Likewise.
7513 * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
7514 (Makefile.am): Pick up library dependency.
7515 * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
7517 * tests/test-sys_stat.c: Test the definitions.
7518 * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
7519 * NEWS: Document library dependency.
7521 utimecmp: support symlink timestamps
7522 * lib/utimecmp.c (utimecmp): Use new interface. Skip effort of
7523 hashing when possible. Use pathconf when available.
7524 (SYSCALL_RESOLUTION): Recognize tighter resolution.
7525 * modules/utimecmp (Depends-on): Add lstat.
7527 utimens: add lutimens interface
7528 * lib/utimens.c (lutimens): New function.
7529 * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
7530 * lib/utimens.h (lutimens): Declare new interface.
7531 * tests/test-utimens.c (main): Enhance test.
7532 * tests/test-lutimens.h (test_lutimens): New file.
7533 * modules/utimens-tests (Files): Distribute it.
7534 (Depends-on): Add symlink.
7535 (configure.ac): Check for usleep.
7537 utimens: validate futimens usage
7538 * lib/utimens.c (gl_futimens): Require valid fd up front, using
7539 fewer syscalls on failure later on. Avoid compiler warning on
7541 * modules/utimens (Depends-on): Add dup2.
7544 * modules/utimens-tests: New test.
7545 * tests/test-utimens.h: New file.
7546 * tests/test-futimens.h: Likewise.
7547 * tests/test-utimens.c: Likewise.
7549 doc: mention timestamp portability issues
7550 * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
7552 * doc/posix-functions/utime.texi (utime): Likewise.
7553 * doc/posix-functions/utimes.texi (utimes): Likewise.
7554 * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
7556 * doc/posix-functions/futimens.texi (futimens): Mention utimens
7558 * doc/posix-functions/utimensat.texi (utimensat): Likewise.
7559 Mention weakness with symlink timestamps.
7560 * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
7561 to utimensat/futimens instead.
7562 * doc/gnulib.texi (Glibc sys/time.h): Include new file.
7564 test-dup2: enhance test
7565 * tests/test-dup2.c (main): Also check AT_FDCWD.
7567 test-stat-time: avoid more spurious failures
7568 * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
7569 xfs; and avoid race if the two timestamps cross quantization edge.
7571 relocatable: prefer 'file system' over 'filesystem'
7572 * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
7573 (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
7574 * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
7575 * doc/relocatable.texi (Enabling Relocatability): Likewise.
7576 * lib/relocatable.c (compute_curr_prefix): Likewise.
7578 2009-10-10 Jim Meyering <meyering@redhat.com>
7580 stat-time-tests: check for the usleep function
7581 * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
7583 2009-10-10 Bruno Haible <bruno@clisp.org>
7585 * modules/xnanosleep: Put the Link section after the Include section.
7587 2009-10-09 Eric Blake <ebb9@byu.net>
7589 dup2: work around FreeBSD 6.1 bug
7590 * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
7591 * doc/posix-functions/dup2.texi (dup2): Document it.
7592 Reported by Nelson H. F. Beebe and Jim Meyering.
7594 test-stat-time: port to buggy NFS clients
7595 * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
7596 (test_ctime): Also skip test if mtime and ctime are skewed.
7598 maint: prefer 'file system' over 'filesystem'
7599 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
7600 * doc/posix-functions/lstat.texi (lstat): Likewise.
7601 * lib/file-has-acl.c (file_has_acl): Likewise.
7602 * lib/fwriteerror.c [TEST]: Likewise.
7603 * tests/test-areadlink.h (test_areadlink): Likewise.
7604 * tests/test-areadlinkat-with-size.c (main): Likewise.
7605 * tests/test-areadlinkat.c (main): Likewise.
7606 * tests/test-canonicalize-lgpl.c (main): Likewise.
7607 * tests/test-canonicalize.c (main): Likewise.
7608 * tests/test-fstatat.c (main): Likewise.
7609 * tests/test-linkat.c (main): Likewise.
7610 * tests/test-lstat.h (test_lstat_func): Likewise.
7611 * tests/test-mkdir.h (test_mkdir): Likewise.
7612 * tests/test-readlink.h (test_readlink): Likewise.
7613 * tests/test-remove.c (main): Likewise.
7614 * tests/test-rename.h (test_rename): Likewise.
7615 * tests/test-renameat.c (main): Likewise.
7616 * tests/test-rmdir.h (test_rmdir_func): Likewise.
7617 * tests/test-symlink.h (test_symlink): Likewise.
7618 * tests/test-symlinkat.c (main): Likewise.
7619 * tests/test-unlink.h (test_unlink_func): Likewise.
7620 * tests/test-unlinkat.c (main): Likewise.
7622 maint: make realtime library usage explicit
7623 * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
7624 * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
7625 * modules/settime (Link): Likewise.
7626 * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
7628 test-stat-time: speed up execution
7629 * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
7631 (nap): New helper function.
7632 (prepare_test): Use it to reduce sleep time.
7633 (test_mtime, test_ctime, test_birthtime): Allow for subsecond
7635 * modules/stat-time-tests (configure.ac): Check for usleep.
7637 2009-10-09 Jim Meyering <meyering@redhat.com>
7639 selinux-h: always use getfilecon wrappers
7640 * lib/getfilecon.c: New file.
7641 * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
7642 [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
7643 [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
7644 (fgetfilecon): Provide a stub.
7645 * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
7646 AC_SUBST SELINUX_SELINUX_H, since now we're generating that
7647 file unconditionally.
7648 When <selinux/selinux.h> is found, arrange to use wrappers.
7649 * modules/selinux-h (Files): Add getfilecon.c.
7650 (Makefile.am): Substitute include-next-related bits
7651 into the now-always-generated selinux/selinux.h file.
7652 * doc/glibc-functions/lgetfilecon.texi: New file.
7653 * doc/glibc-functions/fgetfilecon.texi: New file.
7654 * doc/glibc-functions/getfilecon.texi: New file.
7655 * doc/glibc-functions/getfilecon-desc.texi: New file.
7656 * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
7657 which to pull in the new files.
7658 * MODULES.html.sh (Misc): Add selinux-h.
7660 2009-10-08 Jim Meyering <meyering@redhat.com>
7662 unistd: fix comment typo
7663 * lib/unistd.in.h (euidaccess): Fix a comment typo.
7665 2009-10-08 Eric Blake <ebb9@byu.net>
7667 areadlink: use SIZE_MAX consistently
7668 * modules/areadlink (Depends-on): Add stdint.
7669 * modules/areadlink-with-size (Depends-on): Likewise.
7670 * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
7671 gives NULL; drop sys/types, since unistd gives size_t; and add
7672 stdint for SIZE_MAX.
7673 (SIZE_MAX): Rely on headers.
7674 * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
7676 * lib/areadlink.c (includes): Drop sys/types, and add stdint.
7677 (SIZE_MAX): Likewise.
7678 (INITIAL_BUF_SIZE): Turn into enum.
7679 * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
7681 2009-10-08 Jim Meyering <meyering@redhat.com>
7683 areadlinkat: avoid compilation failure
7684 * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
7685 Fix typo in comment.
7687 2009-10-07 Eric Blake <ebb9@byu.net>
7689 areadlinkat-with-size: new module
7690 * modules/areadlinkat-with-size: New module.
7691 * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
7692 * lib/areadlink.h (areadlinkat): Declare it.
7693 * MODULES.html.sh (File system functions): Mention it.
7694 * modules/areadlinkat-with-size-tests: New test.
7695 * tests/test-areadlinkat-with-size.c: New file.
7697 xreadlinkat: new module
7698 * modules/xreadlinkat: New module.
7699 * lib/xreadlinkat.c (xreadlinkat): New file.
7700 * lib/xreadlink.h (xreadlinkat): Declare it.
7701 * MODULES.html.sh (File system functions): Mention it.
7703 areadlinkat: new module
7704 * lib/at-func.c (FUNC_FAIL): New define.
7705 (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
7706 * modules/areadlinkat: New module.
7707 * lib/linkat.c (areadlinkat): Move...
7708 * lib/areadlinkat.c (areadlinkat): ...to new file.
7709 * lib/areadlink.h (areadlinkat): Declare it.
7710 * modules/linkat (Depends-on): Add areadlinkat.
7711 * MODULES.html.sh (File system functions): Mention it.
7712 * modules/areadlinkat-tests: New test.
7713 * tests/test-areadlinkat.c: New file.
7715 areadlink, areadlink-with-size: add tests
7716 * modules/areadlink-tests: New test.
7717 * modules/areadlink-with-size-tests: Likewise.
7718 * tests/test-areadlink.h: New file.
7719 * tests/test-areadlink.c: Likewise.
7720 * tests/test-areadlink-with-size.c: Likewise.
7722 maint: minor cleanups
7723 * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
7724 _UNUSED_PARAMETER_ instead.
7725 * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
7726 * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
7727 * modules/linkat-tests (Files): Distribute test-link.h.
7729 openat, utimens: whitespace cleanup
7730 * lib/openat.c: Prefer space throughout, rather than mix of 8
7732 * lib/at-func.c: Likewise.
7733 * lib/utimens.c: Likewise.
7735 openat: avoid using wrong fd
7736 * lib/openat.c (openat_permissive): Reject user's fd if saving the
7737 working directory chooses same fd.
7738 * lib/at-func.c (AT_FUNC_NAME): Likewise.
7740 mkdir, mkdirat: fix cygwin 1.5.x bug
7741 * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
7742 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
7743 * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
7745 (gl_PREREQ_MKDIR): Delete unused macro.
7746 * modules/mkdir (Files): Track file rename.
7747 (configure.ac): Update macro name.
7748 * modules/openat (Depends-on): Add mkdir.
7749 * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
7751 mkdir, mkdirat: add tests
7752 * modules/mkdir-tests: New test.
7753 * tests/test-mkdir.h: New file.
7754 * tests/test-mkdir.c: Likewise.
7755 * tests/test-mkdirat.c: Likewise.
7756 * modules/openat-tests (Files): Add new files.
7757 (Makefile.am): Run new test.
7759 2009-10-06 Eric Blake <ebb9@byu.net>
7761 doc: tweak *at function documentation
7762 * doc/posix-functions/faccessat.texi (faccessat): Mention
7763 known issue with replacement.
7764 * doc/posix-functions/fchdir.texi (fchdir): Likewise.
7765 * doc/posix-functions/linkat.texi (linkat): Likewise.
7766 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
7767 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
7768 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
7769 * doc/posix-functions/renameat.texi (renameat): Likewise.
7770 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
7772 openat: fix GNU/Hurd bug in unlinkat
7773 * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
7775 * doc/posix-functions/unlink.texi (unlink): Document this.
7776 * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
7778 fdopendir: fix GNU/Hurd bug
7779 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
7780 allowing non-directory fds.
7781 * lib/fdopendir.c (rpl_fdopendir): Work around it.
7782 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
7783 * modules/dirent (Makefile.am): Substitute it.
7784 * lib/dirent.in.h (fdopendir): Declare replacement.
7785 * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
7786 * tests/test-fdopendir.c (main): Test something other than
7787 /dev/null, since on Hurd that behaves like a directory.
7789 test-symlink: port to GNU/Hurd
7790 * tests/test-symlink.h (test_symlink): Relax expected errno.
7792 doc: tweak more cygwin information
7793 * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
7794 now compatible with glibc.
7795 * doc/posix-functions/getopt.texi (getopt): Likewise.
7797 getopt-gnu: add another test
7798 * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
7799 guarantee behavior relied on by m4.
7800 * tests/test-getopt.c (main): Use it.
7801 * modules/getopt-posix-tests (Depends-on): Add setenv.
7802 See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
7804 getopt: fix compilation on darwin
7805 * lib/getopt.in.h (includes): Leave breadcrumbs during system
7807 * lib/unistd.in.h (getopt): Use them to avoid recursive include.
7808 Reported by Ludovic Courtès.
7810 2009-10-06 Bruno Haible <bruno@clisp.org>
7812 * modules/size_max (Description): Discourage its use.
7813 Reported by Simon Josefsson.
7815 2009-10-06 Jim Meyering <meyering@redhat.com>
7817 linkat: avoid compilation failure
7818 * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
7820 2009-10-05 Eric Blake <ebb9@byu.net>
7822 linkat: support Linux 2.6.17
7823 * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
7824 linkat on Linux, but allow cache variable override.
7825 * lib/linkat.c (rpl_linkat): Define override.
7826 * modules/linkat (Depends-on): Add symlinkat.
7827 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
7828 * modules/unistd (Makefile.am): Substitute it.
7829 * lib/unistd.in.h (linkat): Declare replacement.
7830 Reported by Pádraig Brady.
7832 quotearg: port test to systems with C.UTF-8 locale
7833 * tests/test-quotearg.c (struct result_strings): Add another
7834 member, differentiating between C.ASCII and C.UTF-8 handling.
7835 (compare_strings): Add parameter.
7836 (main): Adjust all callers.
7838 getopt: avoid clash with FreeBSD _getopt_internal
7839 * lib/getopt.in.h (_getopt_internal): Override the name.
7840 * lib/getopt_int.h (includes): Pick up any overrides.
7841 Reported by Reuben Thomas.
7843 hash: allow C89 compilation
7844 * lib/hash.c (check_tuning): Move declaration before statement.
7845 Reported by Reuben Thomas.
7847 2009-10-05 Karl Berry <karl@gnu.org>
7849 * doc/gnulib.texi: @include execvpe.texi, missing for several days.
7851 2009-10-04 Paolo Bonzini <bonzini@gnu.org>
7852 Bruno Haible <bruno@clisp.org>
7854 * lib/uname.c (uname): Use a table-driven algorithm to compute
7855 Windows NT versions.
7857 2009-10-04 Bruno Haible <bruno@clisp.org>
7859 * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
7860 program_invocation_short_name.
7861 * modules/progname (configure.ac): Test for presence of
7862 program_invocation_short_name.
7863 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
7865 2009-10-04 Bruno Haible <bruno@clisp.org>
7867 * lib/progname.c (set_program_name): Fix comment.
7868 Reported by Jim Meyering.
7870 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
7871 Bruno Haible <bruno@clisp.org>
7873 * lib/uname.c: Include <string.h>.
7874 (uname): Do only one call to GetVersionEx in the common case.
7876 2009-10-03 Paolo Bonzini <bonzini@gnu.org>
7877 Bruno Haible <bruno@clisp.org>
7879 * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
7880 PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
7881 (uname): Add support for Windows CE and various non-x86 CPU types.
7883 2009-10-03 Bruno Haible <bruno@clisp.org>
7885 * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
7886 invocation to tests/configure.ac.
7887 Reported by Ian Beckwith <ianb@erislabs.net>.
7889 2009-10-02 Eric Blake <ebb9@byu.net>
7891 fchdir: avoid compiler warning
7892 * lib/fchdir.c (canonicalize_file_name)
7893 [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
7895 test-open: support mingw errno values
7896 * tests/test-open.h (test_open): Relax test.
7897 * tests/test-fopen.h (test_fopen): Likewise.
7898 * tests/test-openat-safer.c (main): Likewise.
7900 open: fix opening directory on mingw
7901 * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
7903 test-open: on GNU/Hurd, /dev/null is a directory
7904 * tests/test-fopen.h (main): Rename...
7905 (test_fopen): ...to this. Use a guaranteed non-directory when
7906 confirming open behavior on trailing slash.
7907 * tests/test-openat-safer.c (main): Likewise.
7908 * tests/test-open.h (main): Likewise....
7909 (test_open): ...to this.
7910 * tests/test-fopen.c (main): Adjust caller.
7911 * tests/test-fopen-safer.c (main): Likewise.
7912 * tests/test-open.c (main): Likewise.
7913 * tests/test-fcntl-safer.c (main): Likewise.
7914 Reported by Samuel Thibault.
7916 rename, fchdir: don't ignore chdir failure
7917 * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
7918 * lib/rename.c (rpl_rename) [W32]: Likewise.
7919 (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
7920 an empty destination directory if source cannot be renamed,
7921 although there is still possibility for failure.
7922 * doc/posix-functions/rename.texi (rename): Document the race.
7923 Reported by Jim Meyering.
7925 maint: cleanup whitespace in recent commits
7926 * lib/rename.c (rpl_rename): Remove tabs.
7927 * tests/test-link.h (test_link): Likewise.
7928 * lib/fchdir.c (get_name): Likewise.
7929 Reported by Jim Meyering.
7931 2009-10-02 Ben Pfaff <blp@gnu.org>
7933 relocatable-prog-wrapper: Add missing dependency on
7935 * modules/relocatable-prog-wrapper: Add dependency.
7936 Reported by Ian Beckwith <ianb@erislabs.net>.
7938 2009-10-02 Eric Blake <ebb9@byu.net>
7940 renameat: fix Solaris bugs
7941 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
7943 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
7944 * modules/stdio (Makefile.am): Substitute it.
7945 * lib/stdio.in.h (renameat): Declare replacement.
7946 * lib/renameat.c (rpl_renameat): Implement fix.
7948 renameat: new module
7949 * modules/renameat: New file.
7950 * lib/renameat.c (renameat): Likewise.
7951 * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
7952 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
7953 * modules/stdio (Makefile.am): Substitute them.
7954 * lib/stdio.in.h (renameat): Declare it.
7955 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
7956 * doc/posix-functions/renameat.texi (renameat): Likewise.
7957 * modules/renameat-tests: New test.
7958 * tests/test-renameat.c: Likewise.
7960 rename: fix mingw bugs
7961 * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
7962 directory overwrite bugs.
7964 rename: fix another cygwin 1.5 bug
7965 * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
7967 * lib/rename.c (rpl_rename): Don't penalize NetBSD with
7968 unnecessary cygwin workarounds. Also work around bug with moving
7969 full directory onto an empty one.
7970 * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
7972 rename-dest-slash: merge into rename module
7973 * modules/rename-dest-slash (Status): Mark obsolete.
7974 (Depends-on): Add rename.
7975 (Files): Let rename do it all.
7976 * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
7977 subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
7978 * m4/rename-dest-slash.m4: ...so this file can be deleted.
7979 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
7980 * lib/rename.c (rpl_rename): Update comments.
7982 rename: fix cygwin 1.5.x bugs
7983 * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
7984 * lib/rename.c (rpl_rename): Work around them.
7985 * modules/rename (Depends-on): Add same-inode.
7987 rename: fix Solaris 10 bug
7988 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7989 * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
7992 rename: fix Solaris 9 bug
7993 * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
7994 on non-directory. Avoid calling exit.
7995 * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
7997 * modules/rename-tests (Depends-on): Drop lstat.
7998 * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
7999 (gl_PREREQ_RENAME): Delete unused macro.
8001 rename-dest-slash: fix NetBSD bug
8002 * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
8004 * modules/rename-dest-slash (Depends-on): Add same-inode.
8006 rename-tests: new test, exposes several platform bugs
8007 * modules/rename-tests: New file.
8008 * tests/test-rename.h: Likewise.
8009 * tests/test-rename.c: Likewise.
8010 * doc/posix-functions/rename.texi (rename): Improve documentation,
8011 including bugs that will eventually be fixed in gnulib.
8013 2009-10-02 Paolo Bonzini <bonzini@gnu.org>
8015 * lib/uname.c: Include <stdlib.h>
8016 (uname): Assume version info is available.
8018 2009-10-02 Jim Meyering <meyering@redhat.com>
8020 gnu-web-doc-update: correct --help output
8021 * build-aux/gnu-web-doc-update: Make --help output relevant.
8023 gnu-web-doc-update: add standard options
8024 * build-aux/gnu-web-doc-update: Add --help, --version, etc.
8026 gnu-web-doc-update: New module.
8027 Use this script to automatically update the on-line web documentation
8028 for your GNU project at http://www.gnu.org/software/$pkg/manual/
8029 * modules/gnu-web-doc-update: New file, from coreutils.
8030 * build-aux/gnu-web-doc-update: New script.
8032 2009-10-01 Paolo Bonzini <bonzini@gnu.org>
8034 link: LoadLibrary is not needed.
8035 * lib/link.c: Use GetModuleHandle.
8037 2009-10-01 Eric Blake <ebb9@byu.net>
8039 getopt: bump serial number
8040 * m4/getopt.m4: Increment serial number, to account for 2009-09-24
8043 tests: tighten link, rmdir, and remove tests
8044 * tests/test-link.h (includes): No need to use <config.h> here.
8045 Clean up if directory hard link was created, otherwise test for
8047 * tests/test-linkat.c (main): Simplify.
8048 * tests/test-remove.c (main): Enhance test for trailing '.'.
8049 * tests/test-rmdir.h (test_rmdir_func): Likewise.
8051 2009-10-01 Jim Meyering <meyering@redhat.com>
8053 maint.mk: requiring "make major" was annoying, for a "minor" release.
8054 What is intended is "stable", to contrast with alpha and beta,
8055 so require "make stable", not "make major".
8056 * build-aux/announce-gen (%valid_release_types): s/major/stable/.
8057 (get_tool_versions): Likewise.
8058 * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
8060 2009-09-30 Ben Pfaff <blp@gnu.org>
8062 Fix broken build of replacement for Windows tmpfile().
8063 * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
8064 flags argument added along with the 'mkostemp' module.
8066 2009-09-28 Bruno Haible <bruno@clisp.org>
8068 Avoid identifier clash with POSIX function 'remove' defined as a macro.
8069 * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
8071 (gl_list_remove): Update.
8072 * lib/gl_list.c (gl_list_remove): Update.
8073 * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
8075 (gl_oset_remove): Update.
8076 * lib/gl_list.c (gl_oset_remove): Update.
8077 Reported by Eric Blake.
8079 2009-09-28 Eric Blake <ebb9@byu.net>
8081 doc: mention yet more cygwin 1.7 status
8082 * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
8084 * doc/glibc-functions/execvpe.texi (execvpe): New file.
8085 * doc/gnulib.texi (Glibc unistd.h): Mention it.
8087 argp: fix test failure
8088 * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
8089 that are not upper-case. Pass correct range to tolower.
8091 2009-09-27 Jim Meyering <meyering@redhat.com>
8093 test-yesno: work around sparc-dash here-document infelicity
8094 Without this change, the literal \177 byte in a here document
8095 would make dash 0.5.5.1-3 access uninitialized memory.
8096 * tests/test-yesno.sh: Don't put the \177 byte in the here document.
8097 Instead, use a marker, "@", and filter through tr to create the desired
8098 contents. Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
8100 2009-09-27 Bruno Haible <bruno@clisp.org>
8102 Disable untested support for new flavours of ACLs on AIX.
8103 * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
8105 * lib/set-mode-acl.c (qset_acl): Likewise.
8107 2008-12-07 Bruno Haible <bruno@clisp.org>
8109 Add support for new flavours of ACLs on AIX. (Untested.)
8110 * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
8111 (file_has_acl): Add support for newer AIX.
8112 * lib/set-mode-acl.c (qset_acl): Likewise.
8113 * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
8114 Rainer Tammer <tammer@tammer.net>.
8116 2009-09-26 Eric Blake <ebb9@byu.net>
8118 argp: fix compilation of getopt
8119 * lib/getopt.in.h (includes): Use different guard than glibc.
8120 Reported by Sergey Poznyakoff.
8122 doc: mention more cygwin 1.7 status
8123 * doc/posix-functions/access.texi (access): Mention cygwin 1.5
8125 * doc/posix-functions/execl.texi (execl): Likewise.
8126 * doc/posix-functions/execle.texi (execle): Likewise.
8127 * doc/posix-functions/execlp.texi (execlp): Likewise.
8128 * doc/posix-functions/execv.texi (execv): Likewise.
8129 * doc/posix-functions/execve.texi (execve): Likewise.
8130 * doc/posix-functions/execvp.texi (execvp): Likewise.
8131 * doc/glibc-functions/canonicalize_file_name.texi
8132 (canonicalize_file_name): Cygwin 1.7 now provides this.
8133 * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
8134 * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
8135 on AT_SYMLINK_NOFOLLOW.
8137 2009-09-24 Eric Blake <ebb9@byu.net>
8139 test-linkat: make test more robust
8140 * tests/test-linkat.c (main): Avoid collision with EEXIST.
8142 getopt: fix inclusion guards for cygwin
8143 * modules/getopt-posix (Depends-on): Add include-next.
8144 (Makefile.am): Substitute more items in replacement header.
8145 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
8147 * lib/getopt.in.h (includes): Use split inclusion guard, and
8148 prefer <getopt.h> over include <unistd.h> when one is present.
8149 (option): Also override name of 'struct option'.
8151 same-inode: revert prior change; it is not yet ready
8152 * NEWS: Undo mention of this change.
8153 * lib/same-inode.h (same-inode.h): Undo tri-state change.
8154 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8155 * lib/cycle-check.c (cycle_check): Likewise.
8156 * lib/same.c (same_name): Likewise.
8157 * lib/at-func2.c (at_func2): Likewise.
8159 2009-09-23 Eric Blake <ebb9@byu.net>
8162 * modules/linkat: New file.
8163 * lib/at-func2.c (at_func2): Likewise.
8164 * lib/linkat.c (linkat): Likewise.
8165 * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
8166 * lib/openat-priv.h (at_func2): Add declaration.
8167 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8168 * modules/unistd (Makefile.am): Substitute them.
8169 * lib/unistd.in.h (linkat): Declare it.
8170 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8171 * doc/posix-functions/linkat.texi (linkat): Likewise.
8172 * doc/posix-functions/link.texi (link): Tweak wording.
8173 * tests/test-link.c (main): Move guts...
8174 * tests/test-link.h (test_link): ...into new file.
8175 * modules/linkat-tests: New test.
8176 * tests/test-linkat.c: Likewise.
8177 * modules/link-tests (Files): Ship new file.
8178 (Depends-on): Add stdbool.
8180 dirname: add library-safe mdir_name
8181 * lib/dirname.h (mdir_name): New prototype.
8182 * lib/dirname.c (dir_name): Move guts...
8183 (mdir_name): ...to new function that avoids xalloc_die.
8185 fchdir: another mingw fix
8186 * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
8187 * lib/fchdir.c (get_name): New helper method; skips canonicalize
8188 on mingw (where it has not yet been ported), and make it optional
8190 (_gl_register_fd): Use it.
8192 same-inode: make SAME_INODE tri-state, to port to mingw
8193 * NEWS: Mention this change.
8194 * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
8195 st_ino always being 0.
8196 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
8197 * lib/cycle-check.c (cycle_check): Likewise.
8198 * lib/same.c (same_name): Likewise.
8200 lstat: avoid mingw compilation error
8201 * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
8202 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
8204 * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
8206 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
8207 the checks for lstat.
8208 (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
8210 link: fix test failure on Solaris 9
8211 * lib/link.c (rpl_link): Don't assume link will catch bogus
8212 trailing slash on source.
8214 test-symlinkat: enhance test
8215 * tests/test-readlink.c (main): Move guts...
8216 * tests/test-readlink.h (test_readlink): ...into new file.
8217 * tests/test-symlink.c (main): Move guts...
8218 * tests/test-symlink.h (test_symlink): ...into new file.
8219 * tests/test-symlinkat.c (main): Use new files for further
8221 (do_symlink, do_readlink): New helper functions.
8222 * modules/symlink-tests (Files): Ship new file.
8223 (Depends-on): Add stdbool.
8224 * modules/readlink-tests (Files): Ship new file.
8225 (Depends-on): Add stdbool.
8226 * modules/symlinkat-tests (Files): Use new files.
8228 2009-09-23 Eric Blake <ebb9@byu.net>
8230 readlink: document portability issue with symlink length
8231 * doc/posix-functions/lstat.texi (lstat): Mention that some file
8232 systems have bogus st_size on symlinks, and mention the
8233 areadlink-with-size module.
8234 * doc/posix-functions/fstatat.texi (fstatat): Likewise.
8235 * doc/posix-functions/readlink.texi (readlink): Mention the
8236 areadlink module, and ERANGE failure.
8237 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
8238 * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
8240 readlink: fix Solaris 9 bug with trailing slash
8241 * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
8242 * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
8243 * doc/posix-functions/readlink.texi (readlink): Document this.
8244 * modules/readlink-tests: New test.
8245 * tests/test-readlink.c: Likewise.
8247 readlink: fix cygwin 1.5.x bug with return type
8248 * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
8249 * lib/unistd.in.h (readlink): Use ssize_t.
8250 * lib/readlink.c (readlink): Likewise.
8251 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8252 * modules/unistd (Makefile.am): Substitute it.
8253 * lib/unistd.in.h (readlink): Declare replacement.
8254 * doc/posix-functions/readlink.texi (readlink): Document this.
8256 symlink: use throughout gnulib
8257 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
8258 * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
8259 symlink is not used.
8260 * modules/symlinkat (Depends-on): Add symlink.
8261 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8262 * modules/canonicalize-tests (Depends-on): Likewise.
8263 * modules/lstat-tests (Depends-on): Likewise.
8264 * modules/openat-tests (Depends-on): Likewise.
8265 * modules/remove-tests (Depends-on): Likewise.
8266 * modules/rmdir-tests (Depends-on): Likewise.
8267 * modules/unlink-tests (Depends-on): Likewise.
8268 * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
8269 * tests/test-canonicalize.c (symlink): Likewise.
8270 * tests/test-fstatat.c (symlink): Likewise.
8271 * tests/test-lstat.c (symlink): Likewise.
8272 * tests/test-remove.c (symlink): Likewise.
8273 * tests/test-rmdir.c (symlink): Likewise.
8274 * tests/test-unlink.c (symlink): Likewise.
8275 * tests/test-unlinkat.c (symlink): Likewise.
8277 symlink: new module, for Solaris 9 bug
8278 * modules/symlink: New file.
8279 * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
8280 * lib/symlink.c: Likewise.
8281 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
8282 * modules/unistd (Makefile.am): Substitute them.
8283 * lib/unistd.in.h (symlink): Declare replacement.
8284 * MODULES.html.sh (File system functions): Mention it.
8285 * doc/posix-functions/symlink.texi (symlink): Likewise.
8286 * modules/symlink-tests: New test.
8287 * tests/test-symlink.c: Likewise.
8289 2009-09-23 Bruno Haible <bruno@clisp.org>
8291 * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
8293 Test case: gnulib-tool --import --with-tests atexit inttypes.
8294 Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
8296 2009-09-23 Bruno Haible <bruno@clisp.org>
8298 * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
8299 subcommand, not in a subshell.
8301 2009-09-22 Eric Blake <ebb9@byu.net>
8303 unistd: sort replacement declarations
8304 * lib/unistd.in.h: Sort declarations.
8306 open, openat: minor optimization
8307 * lib/open.c (open): If open succeeded, len is non-zero.
8308 * lib/openat.c (rpl_openat): Likewise.
8310 link-follow: ensure correct result
8311 * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
8312 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
8313 distinguish between possible failures.
8315 2009-09-21 Eric Blake <ebb9@byu.net>
8317 fts: avoid compiler warning
8318 * lib/fts.c (dirent_inode_sort_may_be_useful)
8319 (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
8321 2009-09-19 Bruno Haible <bruno@clisp.org>
8323 * lib/progreloc.c (canonicalize_file_name): New declaration.
8325 2009-09-19 Eric Blake <ebb9@byu.net>
8328 * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
8330 openat: fix openat bugs on Solaris 9
8331 * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
8332 * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
8333 * modules/openat (Depends-on): Add open.
8334 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
8335 * modules/fcntl-h (Makefile.am): Substitute it.
8336 * lib/fcntl.in.h (openat): Declare replacement.
8337 * doc/posix-functions/openat.texi (openat): Document this.
8339 openat: move fstatat and unlinkat into correct files
8340 * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
8342 * lib/openat.c (fstatat, unlinkat): Move...
8343 * lib/fstatat.c (fstatat): ...into correct files.
8344 * lib/unlinkat.c (unlinkat): Likewise.
8346 openat: fix unlinkat bugs on Solaris 9
8347 * lib/unlinkat.c (unlinkat): New file.
8348 * modules/openat (Depends-on): Add unlink.
8349 (Files): Distribute it.
8350 * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
8351 trailing slash behavior is broken.
8352 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
8353 * modules/unistd (Makefile.am): Substitute it.
8354 * lib/unistd.in.h (unlinkat): Declare replacement.
8355 * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
8357 openat: fix fstatat bugs on Solaris 9
8358 * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
8360 * doc/posix-functions/fstatat.texi (fstatat): Document this.
8362 test-unlinkat: enhance test, to expose Solaris 9 bug
8363 * tests/test-unlink.c (main): Factor guts...
8364 * tests/test-unlink.h (test_rmdir_func): ...into new file.
8365 * tests/test-rmdir.h (test_rmdir_func): Add parameter.
8366 * tests/test-rmdir.c (main): Adjust caller.
8367 * tests/test-unlinkat.c (main): Likewise. Add unlink tests.
8368 (unlinker): New helper function.
8369 (rmdirat): Enhance check.
8370 * modules/rmdir-tests (Depends-on): Add stdbool.
8371 * modules/unlink-tests (Depends-on): Likewise.
8372 (Files): Add test-unlink.h.
8373 * modules/openat-tests (Files): Likewise.
8374 (Depends-on): Add unlinkdir.
8376 test-fstatat: new test, to expose Solaris 9 bugs
8377 * tests/test-stat.c (main): Factor guts...
8378 * tests/test-stat.h (test_stat_func): ...into new file.
8379 * tests/test-lstat.c (main): Factor guts...
8380 * tests/test-lstat.h (test_lstat_func): ...into new file.
8381 * tests/test-fstatat.c: New file.
8382 * modules/stat-tests (Files): Add test-stat.h.
8383 * modules/lstat-tests (Files): Add test-lstat.h.
8384 (Depends-on): Add stdbool.
8385 * modules/openat-tests (Depends-on): Add pathmax.
8386 (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
8387 (Makefile.am): Run new test.
8389 remove: new module, for mingw and Solaris 9 bugs
8390 * modules/remove: New file.
8391 * lib/remove.c: Likewise.
8392 * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
8393 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
8394 * modules/stdio (Makefile.am): Use them.
8395 * lib/stdio.in.h (remove): Declare replacement.
8396 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8397 * doc/posix-functions/remove.texi (remove): Likewise.
8398 * modules/remove-tests: New test.
8399 * tests/test-remove.c: Likewise.
8401 unlink: new module, for Solaris 9 bug
8402 * modules/unlink: New file.
8403 * lib/unlink.c: Likewise.
8404 * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
8405 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
8406 * modules/unistd (Makefile.am): Use them.
8407 * lib/unistd.in.h (stat): Declare replacement.
8408 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8409 * doc/posix-functions/unlink.texi (unlink): Likewise.
8410 * modules/unlink-tests: New test.
8411 * tests/test-unlink.c: Likewise.
8413 lstat: fix Solaris 9 bug
8414 * lib/lstat.c (lstat): Also check for trailing slash on
8415 non-symlink, non-directories. Use stat module to simplify logic.
8416 * doc/posix-functions/lstat.texi (lstat): Document it.
8417 * modules/lstat-tests (Depends-on): Add errno, same-inode.
8418 (configure.ac): Check for symlink.
8419 * tests/test-lstat.c (main): Add more tests.
8421 stat: add as dependency to other modules
8422 * modules/chown (Depends-on): Add stat.
8423 * modules/euidaccess (Depends-on): Likewise.
8424 * modules/fchdir (Depends-on): Likewise.
8425 * modules/isdir (Depends-on): Likewise.
8426 * modules/link (Depends-on): Likewise.
8427 * modules/lstat (Depends-on): Likewise.
8428 * modules/mkdir-p (Depends-on): Likewise.
8429 * modules/modechange (Depends-on): Likewise.
8430 * modules/open (Depends-on): Likewise.
8431 * modules/readlink (Depends-on): Likewise.
8432 * modules/same (Depends-on): Likewise.
8434 stat: fix Solaris 9 bug
8435 * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
8437 * lib/stat.c (rpl_stat): Work around it.
8438 * doc/posix-functions/stat.texi (stat): Update documentation.
8440 stat: new module, for mingw bug
8441 * modules/stat: New file.
8442 * lib/stat.c: Likewise.
8443 * m4/stat.m4 (gl_FUNC_STAT): Likewise.
8444 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8445 * modules/sys_stat (Makefile.am): Use them.
8446 * lib/sys_stat.in.h (stat): Declare replacement.
8447 * lib/openat.c (fstatat): Deal with lstat and stat being function
8449 * modules/openat (Depends-on): Add inline.
8450 * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
8451 * doc/posix-functions/stat.texi (stat): Likewise.
8452 * modules/stat-tests: New test.
8453 * tests/test-stat.c: Likewise.
8455 2009-09-19 Jim Meyering <meyering@redhat.com>
8457 syntax-check: detect unnecessary inclusion of canonicalize.h
8458 * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
8460 2009-09-19 Eric Blake <ebb9@byu.net>
8462 canonicalize-lgpl: adjust clients to use correct header
8463 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8464 (gl_CANONICALIZE_LGPL): Use correct shell quoting.
8465 * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
8466 * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
8467 * lib/progreloc.c (includes): Likewise.
8469 2009-09-19 Jim Meyering <meyering@redhat.com>
8471 test-posixtm.c: correct a comment
8472 * tests/test-posixtm.c: Correct first-line comment.
8473 Spotted by Eric Blake.
8475 2009-09-16 Jim Meyering <meyering@redhat.com>
8477 posixtm-tests: make T const-correct; add a test case
8478 * tests/test-posixtm.c (T): Declare const.
8479 Add a test for -(2^31+1).
8480 Remove useless can-succeed-only-in-2002 test.
8482 posixtm-tests: adjust the sole failing test
8483 * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
8484 expected output matches what mktime now produces. Cross-checked via
8485 erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
8487 posixtm: move #ifdef'd tests into a new module
8488 * lib/posixtm.c (posixtime): Remove #ifdef'd tests. Move to...
8489 * tests/test-posixtm.c: ... this new file.
8490 * modules/posixtm-tests: New module.
8492 2009-09-19 Eric Blake <ebb9@byu.net>
8494 openat: simplify use of at-func.c
8495 * lib/at-func.c (includes): Include prerequisites here, to
8496 simplify requirements on client files.
8497 * lib/openat-priv.h: Add double-inclusion guard.
8498 * lib/faccessat.c (includes): Simplify.
8499 * lib/fchmodat.c (includes): Likewise.
8500 * lib/fchownat.c (includes): Likewise.
8501 * lib/mkdirat.c (includes): Likewise.
8502 * lib/mkfifoat.c (includes): Likewise.
8503 * lib/symlinkat.c (includes): Likewise.
8505 openat: allow return of fd 0
8506 * modules/chdir-long (Depends-on): Relax openat-safer to openat.
8507 * modules/save-cwd (Depends-on): Replace fcntl-safer with
8509 * lib/chdir-long.c (includes): Replace "fcntl--.h" with
8510 <fcntl.h>; this module does not leak fds.
8511 * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
8512 must be allowed to return 0, leaving openat_safer to add the
8514 (openat_permissive): Avoid writing to just-opened fd 2 if
8515 restoring the current directory fails.
8516 * lib/openat-die.c (openat_restore_fail): Add comment.
8517 * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
8518 (save_cwd): Guarantee safe fd, but without use of open_safer.
8519 * tests/test-openat.c: New test.
8520 * modules/openat-tests (Files, Makefile.am): Distribute and build
8523 relocatable-prog-wrapper: fix build
8524 * modules/relocatable-prog-wrapper (Files): Update name of
8525 canonicalize m4 file, broken on 2009-09-17.
8526 Reported by emad hajjar <aleppos@hotmail.com>.
8528 2009-09-19 Bruno Haible <bruno@clisp.org>
8530 * lib/safe-alloc.h: Use the standard header with GPL copyright.
8531 * lib/safe-alloc.c: Likewise.
8532 Reported by Ian Beckwith <ianb@erislabs.net>.
8534 2009-09-18 Bruno Haible <bruno@clisp.org>
8536 * gnulib-tool: Add advice to "cannot find configure.ac" error message.
8537 Reported by <erobles@sensacd.com.mx>.
8539 2009-09-17 Eric Blake <ebb9@byu.net>
8541 canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
8542 * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
8543 slashes when checking if last component is missing.
8544 * tests/test-canonicalize.c (main): Test this.
8546 canonicalize, canonicalize-lgpl: honor // if distinct from /
8547 * modules/canonicalize (Files): Add double-slash-root.m4.
8548 * modules/canonicalize-lgpl (Files): Likewise.
8549 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
8550 (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
8551 * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
8552 fallback definition.
8553 (canonicalize_filename_mode): Use it to protect //.
8554 * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
8555 (__realpath): Likewise.
8556 * tests/test-canonicalize.c (main): Test this.
8557 * tests/test-canonicalize-lgpl.c (main): Likewise.
8558 * modules/canonicalize-tests (Depends-on): Add same-inode.
8559 * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
8561 canonicalize-lgpl: fix glibc bug with trailing slash
8562 * m4/canonicalize-lgpl.m4: Move contents...
8563 * m4/canonicalize.m4: ...here.
8564 (gl_CANONICALIZE_LGPL): Factor realpath check...
8565 (gl_FUNC_REALPATH_WORKS): ...into new macro. Enhance to catch
8566 glibc 2.3.5 bug, fixed 2005-04-27.
8567 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
8568 (gl_PREREQ_CANONICALIZE_LGPL): Inline...
8569 (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
8570 * modules/canonicalize-lgpl (Files): Manage file rename.
8571 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8572 * modules/stdlib (Makefile.am): Substitute witness.
8573 * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
8575 * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
8576 replacement is required.
8577 * lib/canonicalize.c (canonicalize_file_name): Likewise.
8578 * doc/glibc-functions/canonicalize_file_name.texi
8579 (canonicalize_file_name): Document this.
8580 * doc/posix-functions/realpath.texi (realpath): Likewise.
8582 canonicalize-lgpl: reject non-directory with trailing slash
8583 * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
8584 * tests/test-canonicalize-lgpl.c (main): Enhance test. This
8585 catches failures in glibc 2.3.5.
8586 * tests/test-canonicalize.c (main): Likewise.
8588 canonicalize-lgpl: use native realpath if it works
8589 * lib/canonicalize-lgpl.c (realpath): Guard with
8590 FUNC_REALPATH_WORKS.
8591 * lib/stdlib.in.h (realpath): Make declaration optional based on
8593 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
8594 native realpath works.
8595 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
8596 * modules/stdlib (Makefile.am): Substitute witness.
8598 canonicalize, canonicalize-lgpl: use <stdlib.h>
8599 * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
8600 (Include): Mention <stdlib.h>.
8601 (configure.ac): Mention functions we provide.
8602 * modules/canonicalize (configure.ac): Likewise.
8603 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
8604 realpath if canonicalize_file_name is missing.
8605 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
8606 * modules/stdlib (Makefile.am): Substitute witnesses.
8607 * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
8608 * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
8609 * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
8610 * NEWS: Document this.
8611 * doc/glibc-functions/canonicalize_file_name.texi
8612 (canonicalize_file_name): Likewise.
8613 * doc/posix-functions/realpath.texi (realpath): Likewise.
8614 * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
8616 test-canonicalize: consolidate into single C program
8617 * tests/test-canonicalize.sh: Delete; move setup into...
8618 * tests/test-canonicalize.c (main): ...the program, making it
8619 easier to run in debugger. Add some tests.
8620 * modules/canonicalize-tests (Files): Remove unused file.
8621 (Depends-on): Add progname.
8622 (configure.ac, Makefile.am): Simplify.
8624 test-canonicalize-lgpl: consolidate into single C program
8625 * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
8626 * tests/test-canonicalize-lgpl.c (main): ...the program, making it
8627 easier to run in debugger. Add some tests.
8628 * modules/canonicalize-lgpl-tests (Files): Remove unused file.
8629 (configure.ac, Makefile.am): Simplify.
8631 canonicalize: avoid resolvepath
8632 * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
8634 * lib/canonicalize.c (includes): Simplify.
8635 (canonicalize_file_name): Drop resolvepath implementation.
8636 * modules/canonicalize (Depends-on): Drop filenamecat.
8638 canonicalize: don't lose errno
8639 * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
8642 canonicalize: simplify errno handling
8643 * lib/canonicalize.c (__set_errno): Delete macro, and use direct
8646 canonicalize, canonicalize-lgpl: update module dependencies
8647 * modules/canonicalize (Depends-on): Add extensions, lstat,
8649 (Files): Drop pathmax.h.
8650 (configure.ac): Adjust macro name.
8651 * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
8652 lstat, stdlib, sys_stat.
8653 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
8654 (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
8656 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
8657 (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
8658 (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
8659 * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
8660 declaration, if available.
8661 * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
8662 we can rely on the readlink module.
8663 (MAXSYMLINKS): Also consult SYMLOOP_MAX.
8664 (includes): Use <unistd.h> unconditionally.
8666 2009-09-17 Eric Blake <ebb9@byu.net>
8668 maint: make Include sections of modules consistent
8669 * modules/alloca: Use only header name; no need to list #include.
8670 * modules/alloca-opt: Likewise.
8671 * modules/arpa_inet: Likewise.
8672 * modules/canon-host: Likewise.
8673 * modules/configmake: Likewise.
8674 * modules/dirent: Likewise.
8675 * modules/eealloc: Likewise.
8676 * modules/environ: Likewise.
8677 * modules/fchdir: Likewise.
8678 * modules/fcntl: Likewise.
8679 * modules/fcntl-h: Likewise.
8680 * modules/gethrxtime: Likewise.
8681 * modules/gettime: Likewise.
8682 * modules/ignore-value: Likewise.
8683 * modules/inet_ntop: Likewise.
8684 * modules/inet_pton: Likewise.
8685 * modules/inttypes: Likewise.
8686 * modules/isnand-nolibm: Likewise.
8687 * modules/isnanf-nolibm: Likewise.
8688 * modules/mbchar: Likewise.
8689 * modules/mbfile: Likewise.
8690 * modules/mbiter: Likewise.
8691 * modules/mbuiter: Likewise.
8692 * modules/netdb: Likewise.
8693 * modules/netinet_in: Likewise.
8694 * modules/nproc: Likewise.
8695 * modules/pagealign_alloc: Likewise.
8696 * modules/poll: Likewise.
8697 * modules/printf-frexp: Likewise.
8698 * modules/pthread: Likewise.
8699 * modules/putenv: Likewise.
8700 * modules/random_r: Likewise.
8701 * modules/relocatable-prog: Likewise.
8702 * modules/search: Likewise.
8703 * modules/select: Likewise.
8704 * modules/selinux-h: Likewise.
8705 * modules/settime: Likewise.
8706 * modules/signal: Likewise.
8707 * modules/size_max: Likewise.
8708 * modules/socklen: Likewise.
8709 * modules/ssize_t: Likewise.
8710 * modules/stdarg: Likewise.
8711 * modules/stdbool: Likewise.
8712 * modules/stddef: Likewise.
8713 * modules/stdint: Likewise.
8714 * modules/stdio: Likewise.
8715 * modules/stdlib: Likewise.
8716 * modules/string: Likewise.
8717 * modules/strings: Likewise.
8718 * modules/sys_file: Likewise.
8719 * modules/sys_ioctl: Likewise.
8720 * modules/sys_select: Likewise.
8721 * modules/sys_socket: Likewise.
8722 * modules/sys_stat: Likewise.
8723 * modules/sys_time: Likewise.
8724 * modules/sys_times: Likewise.
8725 * modules/sys_utsname: Likewise.
8726 * modules/sys_wait: Likewise.
8727 * modules/sysexits: Likewise.
8728 * modules/time: Likewise.
8729 * modules/times: Likewise.
8730 * modules/tmpfile: Likewise.
8731 * modules/trim: Likewise.
8732 * modules/unistd: Likewise.
8733 * modules/wchar: Likewise.
8734 * modules/wctype: Likewise.
8736 2009-09-17 Bruno Haible <bruno@clisp.org>
8738 Make getdate.y compile on QNX and NetBSD 5 / i386.
8739 * m4/getdate.m4 (gl_GETDATE): Conditionally define
8740 TIME_T_FITS_IN_LONG_INT.
8741 * lib/getdate.y (long_time_t): New type.
8742 (relative_time): Change type of 'seconds' field to long_time_t.
8743 (get_date): Update types of local variables. Check against overflow
8744 during conversion from long_time_t to time_t.
8745 Reported by Matt Kraai <kraai@ftbfs.org>
8746 and Hasso Tepper <hasso@netbsd.org>.
8748 2009-09-17 Bruno Haible <bruno@clisp.org>
8750 * modules/COPYING: Update copyright years.
8751 * modules/README: Likeiwse.
8752 * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
8753 Reported by Ian Beckwith <ianb@erislabs.net>.
8755 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
8757 * users.txt: Update references for gnuit package.
8759 2009-09-17 Ian Beckwith <ianb@erislabs.net> (tiny change)
8761 * m4/getdelim.m4: Fix typo in copyright line.
8763 2009-09-17 Bruno Haible <bruno@clisp.org>
8765 * lib/atoll.c: Use the standard header with GPL copyright.
8766 * lib/argz.in.h: Likewise.
8767 * lib/glob.c: Likewise.
8768 * lib/glob-libc.h: Likewise.
8769 * lib/random_r.c: Likewise.
8770 * lib/siglist.h: Likewise.
8771 * lib/strsignal.c: Likewise.
8772 Reported by Ian Beckwith <ianb@erislabs.net>.
8774 2009-09-17 Eric Blake <ebb9@byu.net>
8776 rmdir: ensure correct dependency order
8777 * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
8779 2009-09-17 Bruno Haible <bruno@clisp.org>
8781 Disable assertion that fails on NetBSD 5 / i386.
8782 * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
8783 Reported by Sam Steingold <sds@gnu.org>
8784 and Hasso Tepper <hasso@netbsd.org>.
8786 2009-09-16 Eric Blake <ebb9@byu.net>
8788 unlinkdir: port to mingw
8789 * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
8790 on which no one can unlink a directory.
8792 stdlib: sort witness names
8793 * modules/stdlib (Makefile.am): Sort replacements.
8794 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
8795 * lib/stdlib.in.h: Likewise.
8797 parse-duration-tests: avoid link failure
8798 * modules/parse-duration-tests (test_parse_duration_LDADD): Add
8800 Reported by Tom G. Christensen.
8802 openat-tests: ensure unlinkat behaves like rmdir
8803 * tests/test-rmdir.c (main): Factor guts...
8804 * tests/test-rmdir.h (test_rmdir_func): ...into new file.
8805 * modules/rmdir-tests (Files): Ship new file.
8806 * modules/openat-tests: New test.
8807 * tests/test-unlinkat.c: Likewise.
8809 rmdir-errno: mark obsolete, it is unsafe for cross-compilation
8810 * modules/rmdir-errno (Status, Notice): Now obsolete.
8812 rmdir: work around cygwin 1.5.x and mingw bugs
8813 * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
8814 * lib/rmdir.c (rmdir): Work around it.
8815 * modules/rmdir (Status, Notice): No longer obsolete.
8816 (Files): Add dos.m4.
8817 (Depends-on): Add unistd.
8818 (configure.ac): Set witnesses.
8819 (License): Relax to LGPLv2+.
8820 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
8821 * modules/unistd (Makefile.am): Substitute witnesses.
8822 * lib/unistd.in.h (rmdir): Declare replacement.
8823 * doc/posix-functions/rmdir.texi (rmdir): Document this.
8824 * modules/rmdir-tests: New tests.
8825 * tests/test-rmdir.c: Likewise.
8827 2009-09-15 Eric Blake <ebb9@byu.net>
8829 fchdir: improve use of replacement functions
8830 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
8831 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
8832 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
8834 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
8835 * modules/sys_stat (Makefile.am): Substitute correct witness.
8836 * modules/dirent (Makefile.am): Likewise.
8837 * modules/unistd (Makefile.am): Likewise.
8838 * lib/dirent.in.h (opendir, closedir): Use better witnesses.
8839 * lib/unistd.in.h (dup): Likewise.
8840 * lib/sys_stat.in.h (fstat): Likewise.
8842 maint: ignore gnulib-tool temp files
8843 * .gitignore: Ignore files created during gnulib-tool --test.
8845 2009-09-13 Jim Meyering <meyering@redhat.com>
8847 posixtm: don't reject a time that specify "60" as the number of seconds
8848 * lib/posixtm.c (posixtime): The code to reject invalid dates
8849 would also reject a time specified with the .60 suffix.
8850 But POSIX allows that, in order to accommodate leap seconds.
8852 (main): Adjust tests accordingly.
8853 * modules/posixtm (Depends-on): Add stpcpy.
8855 2009-09-11 Jim Meyering <meyering@redhat.com>
8857 announce-gen: include [$release_type] in emitted Subject:
8858 * build-aux/announce-gen (get_tool_versions): Include [$release_type],
8859 e.g., [stable] in the emitted Subject: line.
8861 2009-09-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8863 Remove obsolete macros from several modules.
8864 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
8865 obsolete Autoconf macros with their modern counterparts.
8866 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
8867 * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
8868 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
8869 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
8870 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
8871 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
8872 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
8873 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8874 * m4/poll.m4 (gl_FUNC_POLL): Likewise.
8875 * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
8876 * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8877 * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8878 * m4/select.m4 (gl_FUNC_SELECT): Likewise.
8879 * m4/sockets.m4 (gl_SOCKETS): Likewise.
8880 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
8881 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
8882 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
8883 * m4/time_r.m4 (gl_TIME_R): Likewise.
8884 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
8885 * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
8886 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
8888 Fix copyright header in build-aux scripts.
8889 * build-aux/git-version-gen: Fix copyright header to match GPLv3
8891 * build-aux/ncftpput-ftp: Likewise.
8892 * build-aux/update-copyright: Likewise.
8894 2009-09-09 Eric Blake <ebb9@byu.net>
8896 test-link: allow Linux choice of errno
8897 * tests/test-link.c (main): Relax test for alternate error.
8899 strndup: fix improper m4 caching
8900 * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
8901 inside AC_CACHE_CHECK. Use REPLACE_STRNDUP, not HAVE_STRNDUP.
8902 (gl_PREREQ_STRNDUP): Delete.
8903 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
8904 * modules/string (Makefile.am): Substitute it.
8905 * lib/string.in.h (strndup): Modernize prototype.
8907 getcwd: port to mingw
8908 * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
8909 different from the POSIX assumptions made throughout the getcwd
8910 module; fortunately, the mingw getcwd does not need replacement.
8911 (gl_FUNC_GETCWD_NULL): Skip test on mingw.
8912 * modules/getcwd-tests: New test.
8913 * tests/test-getcwd.c: Likewise.
8915 link: fix platform bugs
8916 * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
8917 * lib/link.c (link): Work around them. Fix related mingw bug.
8918 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
8919 * modules/unistd (Makefile.am): Substitute it.
8920 * lib/unistd.in.h (link): Declare replacement.
8921 * doc/posix-functions/link.texi (link): Document this.
8922 * modules/link (Depends-on): Add strdup-posix, sys_stat.
8924 test-link: consolidate into single C program, test more cases
8925 * tests/test-link.sh: Delete.
8926 * tests/test-link.c: Test more error conditions. Exposes bugs on
8927 at least Cygwin and Solaris.
8928 * modules/link-tests (Files): Remove unused file.
8929 (Depends-on): Add errno, sys_stat.
8930 (Makefile.am): Simplify.
8932 2009-09-08 Bruno Haible <bruno@clisp.org>
8934 Work around towlower, towupper bug on mingw.
8935 * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
8936 * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
8937 * doc/posix-functions/towlower.texi: Mention the mingw bug.
8938 * doc/posix-functions/towupper.texi: Likewise.
8939 Reported by Eric Blake.
8941 2009-09-08 Jim Meyering <meyering@redhat.com>
8943 build: don't try to run autoheader if we don't use it
8944 * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
8945 is not used in configure.ac.
8947 2009-09-08 Eric Blake <ebb9@byu.net>
8949 euidaccess: fix compilation error
8950 * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
8952 rawmemchr: relax license
8953 * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
8955 Reported by Jim Meyering.
8957 mkfifoat: new module
8958 * modules/mkfifoat: New file.
8959 * lib/mkfifoat.c: Likewise.
8960 * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
8961 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
8962 * modules/sys_stat (Makefile.am): Use them.
8963 * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
8964 * MODULES.html.sh (File system functions): Mention module.
8965 * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
8966 * doc/posix-functions/mknodat.texi (mknodat): Likewise.
8967 * modules/mkfifoat-tests: New test.
8968 * tests/test-mkfifoat.c: Likewise.
8970 strchrnul: relax license
8971 * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
8973 Reported by Jim Meyering.
8975 2009-09-08 Eric Blake <ebb9@byu.net>
8977 fstatat: fix compilation on Solaris
8978 * lib/fstatat.c (includes): Add fcntl.h.
8979 Reported by Pádraig Brady.
8981 2009-09-07 Eric Blake <ebb9@byu.net>
8983 rename: modernize replacement
8984 * modules/rename (Depends-on): Add stdio.
8985 (configure.ac): Declare witness.
8986 * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
8987 stdio take care of replacement.
8988 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
8989 * modules/stdio (Makefile.am): Substitute them.
8990 * lib/stdio.in.h (rename): Declare replacement.
8991 * lib/rename.c (includes): Allow cross-compilation to non-windows
8993 * doc/posix-functions/rename.texi (rename): Improve
8996 stdio: sort witness names
8997 * modules/stdio (Makefile.am): Sort replacements.
8998 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
8999 * lib/stdio.in.h: Likewise.
9001 getcwd: minor cleanups
9002 * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
9003 (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
9005 openat: provide more convenience names
9006 * modules/faccessat (configure.ac): Add C witness.
9007 * lib/unistd.in.h (readlinkat): Fix typo.
9008 * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
9009 convenience wrappers.
9010 * top/maint.mk (sc_prohibit_openat_without_use): Allow these
9011 wrappers in syntax checks.
9013 2009-09-06 Eric Blake <ebb9@byu.net>
9015 doc: fix comments in recent patches
9016 * lib/faccessat.c: Mention correct function.
9017 * lib/fchmodat.c: Likewise.
9018 * lib/fchownat.c: Likewise.
9019 * lib/symlinkat.c: Likewise.
9020 * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
9023 faccessat, symlinkat: continue cleanup of previous patch
9024 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
9025 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9026 * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
9027 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
9028 * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
9029 * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
9032 2009-09-06 Bruno Haible <bruno@clisp.org>
9034 * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
9035 (fstatat): Declare if GNULIB_FSTATAT is set.
9036 (mkdirat): Declare if GNULIB_MKDIRAT is set.
9037 * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
9038 (unlinkat): Declare if GNULIB_UNLINKAT is set.
9039 * modules/fcntl-h (Files): Remove m4/openat.m4.
9040 * modules/sys_stat (Files): Remove m4/openat.m4.
9041 (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
9042 GNULIB_MKDIRAT instead of GNULIB_OPENAT.
9043 * modules/unistd (Files): Remove m4/openat.m4.
9044 (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
9046 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
9047 HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
9048 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
9049 GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
9050 HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
9052 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
9053 GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
9054 Don't require gl_OPENAT_DEFAULTS.
9055 * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
9056 gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
9057 GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
9058 (gl_OPENAT_DEFAULTS): Remove macro.
9060 2009-09-06 Bruno Haible <bruno@clisp.org>
9062 * modules/openat (configure.ac): Remove unneeded witness.
9064 2009-09-06 Bruno Haible <bruno@clisp.org>
9066 Set errno to ENOSYS when a function is entirely unsupported.
9067 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
9069 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9070 * modules/chown (Depends-on): Remove errno.
9072 2009-09-06 Bruno Haible <bruno@clisp.org>
9074 * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
9076 2009-09-06 Bruno Haible <bruno@clisp.org>
9078 * lib/sys_stat.in.h: Fix preprocessor command indentation.
9080 2009-09-06 Ben Pfaff <blp@gnu.org>
9081 Bruno Haible <bruno@clisp.org>
9083 Work around a glibc bug in strtok_r.
9084 * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
9085 Undefine if UNDEFINE_STRTOK_R is set.
9086 * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
9087 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
9088 REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
9089 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
9090 * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
9092 * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
9094 2009-09-06 Sergey Poznyakoff <gray@gnu.org.ua>
9097 * lib/exclude.c: Include wctype.h
9099 2009-09-06 Akim Demaille <demaille@gostai.com>
9101 bootstrap: improve error message
9102 * build-aux/bootstrap (find_tool): Upon failure, report the list
9104 Honor the initial value of the envvar.
9106 2009-09-05 Eric Blake <ebb9@byu.net>
9108 symlinkat: new module
9109 * modules/symlinkat: New file.
9110 * lib/symlinkat.c: Likewise.
9111 * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
9112 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
9113 * modules/unistd (Makefile.am): Use them.
9114 * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
9115 (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
9116 * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
9117 * MODULES.html.sh (File system functions): Mention module.
9118 * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
9119 * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
9120 * modules/symlinkat-tests: New test.
9121 * tests/test-symlinkat.c: Likewise.
9123 test-openat-safer: add more checks
9124 * tests/test-openat-safer.c (main): Check more code paths.
9126 2009-09-05 Jim Meyering <meyering@redhat.com>
9128 syntax-check: detect unnecessary inclusion of openat.h
9129 * top/maint.mk (sc_prohibit_openat_without_use): New rule.
9131 2009-09-05 Bruno Haible <bruno@clisp.org>
9133 Support towlower, towupper.
9134 * doc/posix-functions/towlower.texi: Mention module wctype.
9135 * doc/posix-functions/towupper.texi: Likewise.
9136 * lib/wctype.in.h (towlower, towupper): New functions.
9137 * tests/test-wctype.c: Include stdio.h, stdlib.h.
9138 (ASSERT): New macro.
9140 (main): Test also towlower, towupper. Test WEOF argument.
9141 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
9143 2009-09-05 Bruno Haible <bruno@clisp.org>
9145 Fix conversion behaviour when the input is invalid.
9146 * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
9147 mark occurring in first pass of indirect conversion.
9148 * tests/test-striconveh.c (main): Test conversion of invalid ASCII
9150 Found by clang's static analyzer.
9152 2009-09-05 Bruno Haible <bruno@clisp.org>
9154 * tests/test-striconveh.c (main): Test indirect conversion on platforms
9155 where direct conversion is possible.
9157 2009-09-04 Eric Blake <ebb9@byu.net>
9159 openat: fail with ENOENT on empty name
9160 * lib/openat-proc.c (openat_proc_name): Special-case the empty
9163 link-follow: fix logic bug in prior patch
9164 * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
9165 reversed sense of yes and no in prior patch. Avoid confusing
9166 compilation failure with desired semantics.
9168 link-follow: accomodate mingw and cross-compilation
9169 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
9170 (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this. Change
9171 cross-compilation results to -1, to make linkat easier to
9172 implement when cross-compiling. Trivially support mingw.
9173 * modules/link-follow (configure.ac): Call new name.
9174 * NEWS: Mention this.
9176 2009-09-03 Eric Blake <ebb9@byu.net>
9178 faccessat: compile replacement
9179 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
9182 fts: fix compilation error
9183 * lib/fts.c (includes): Re-add "openat.h", for
9184 openat_needs_fchdir.
9186 faccessat: new module
9187 * modules/faccessat: New file.
9188 * lib/faccessat.c: Likewise.
9189 * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
9190 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
9191 * modules/unistd (Makefile.am): Use it.
9192 * lib/unistd.in.h (faccessat): Declare it.
9193 (F_OK, X_OK, W_OK, R_OK): Provide definitions.
9194 * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
9195 * MODULES.html.sh (File system functions): Mention it.
9196 * doc/posix-functions/faccessat.texi (faccessat): Likewise.
9197 * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
9199 euidaccess: prefer POSIX over non-standard implementation
9200 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
9201 * lib/euidaccess.c (euidaccess): Use it if available.
9203 openat: make template easier to use
9204 * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
9205 AT_FUNC_F2 to be undefined.
9206 (VALIDATE_FLAG): New macro; use it to reject bad flags.
9207 (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
9208 * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
9209 * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
9210 * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
9212 * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
9213 * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
9214 [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
9217 openat: declare in POSIX headers
9218 * NEWS: Mention this.
9219 * modules/openat (configure.ac): Declare witnesses.
9220 (Depends-on): Add fcntl-h, sys_stat, unistd.
9221 (Include): Mention correct headers.
9222 * modules/fcntl-h (Depends-on): Add link-warning.
9223 (Files): Add openat.m4.
9224 (Makefile.am): Substitute witnesses.
9225 * modules/sys_stat (Files, Makefile.am): Likewise.
9226 * modules/unistd (Files, Makefile.am): Likewise.
9227 * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
9228 (gl_OPENAT_DEFAULTS): New macro.
9229 * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
9230 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
9231 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
9232 (SYS_STAT_H): Remove unused variable.
9233 * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
9234 * lib/fcntl--.h (includes): Remove unneeded header.
9235 * lib/openat-safer.c (includes): Likewise.
9236 * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
9237 (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
9238 appropriate headers.
9239 (__OPENAT_PREFIX): Delete.
9240 * lib/fcntl.in.h (openat): Provide declaration.
9241 (AT_FDCWD): Fix Solaris bug.
9242 (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
9243 * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
9244 * lib/fchmodat.c (includes): Adjust to find declaration.
9245 * lib/fchownat.c (includes): Likewise.
9246 * lib/mkdirat.c (includes): Likewise.
9247 * lib/fstatat.c (includes): Likewise. Ensure original fstatat is
9250 2009-09-02 Eric Blake <ebb9@byu.net>
9252 errno: use consistently
9253 * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
9254 * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
9255 * lib/canonicalize.c (ELOOP): Likewise.
9256 * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
9257 * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
9258 * lib/lchown.c (EOPNOTSUPP): Likewise.
9259 * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
9260 * lib/savewd.c (ESTALE): Likewise.
9261 * lib/settime.c (ENOSYS): Likewise.
9262 * lib/utimens.c (ENOSYS): Likewise.
9263 * lib/xgethostname.c (ENAMETOOLONG): Likewise.
9264 * lib/chdir-safer.c (ELOOP): Likewise.
9265 (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
9266 * modules/c-stack (Depends-on): Add errno.
9267 * modules/canonicalize (Depends-on): Likewise.
9268 * modules/chdir-safer (Depends-on): Likewise.
9269 * modules/fdopendir (Depends-on): Likewise.
9270 * modules/inet_ntop (Depends-on): Likewise.
9271 * modules/inet_pton (Depends-on): Likewise.
9272 * modules/lchown (Depends-on): Likewise.
9273 * modules/openat (Depends-on): Likewise.
9274 * modules/savewd (Depends-on): Likewise.
9275 * modules/settime (Depends-on): Likewise.
9276 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
9278 fts: avoid leaking fds
9279 * modules/fts (Depends-on): Add cloexec.
9280 * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
9283 fts: make directory fds more robust
9284 * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
9285 (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
9287 backupfile, chdir-long, fts, savedir: make safer
9288 * lib/backupfile.c (includes): Use "dirent--.h", since
9289 numbered_backup can write to stderr during readdir.
9290 * lib/savedir.c (includes): Likewise.
9291 * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
9292 emulation can write to stderr on failure.
9293 * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
9294 * lib/getcwd.c: Document why opendir_safer is unused.
9295 * lib/glob.c: Likewise.
9296 * lib/scandir.c: Likewise.
9297 * lib/openat-proc.c: Likewise, for open_safer.
9298 * modules/backupfile (Depends-on): Add dirent-safer.
9299 * modules/savedir (Depends-on): Likewise.
9300 * modules/fts (Depends-on): Add dirent-safer and openat-safer.
9301 * modules/chdir-long (Depends-on): Add openat-safer.
9303 openat-safer: new module
9304 * modules/openat-safer: New file.
9305 * lib/openat-safer.c: Likewise.
9306 * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
9307 * lib/fcntl-safer.h (openat_safer): Declare.
9308 * lib/fcntl--.h (openat): Override.
9309 * MODULES.html.sh (File descriptor based I/O): Mention it.
9310 * lib/openat.h: Add double-inclusion guards.
9311 * lib/openat.c (includes): Only include "fcntl-safer.h", not
9312 "fcntl--.h", so we can implement openat.
9313 * modules/openat-safer-tests: New test.
9314 * tests/test-openat-safer.c: New file.
9316 dirent-safer: new module
9317 * modules/dirent-safer: New file.
9318 * lib/dirent--.h: Likewise.
9319 * lib/dirent-safer.h: Likewise.
9320 * lib/opendir-safer.c: Likewise.
9321 * m4/dirent-safer.m4: Likewise.
9322 * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
9323 * modules/dirent-safer-tests: New test.
9324 * tests/test-dirent-safer.c: New file.
9325 * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
9327 fdopendir: optimize on mingw
9328 * lib/unistd.in.h (_gl_directory_name): New prototype.
9329 * lib/fchdir.c (_gl_directory_name): Implement it.
9330 (fchdir): Use it to simplify implementation.
9331 * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
9332 fchdir, when available, to avoid calling [f]chdir().
9334 fdopendir: split into its own module
9335 * lib/openat.c (fdopendir): Move...
9336 * lib/fdopendir.c: ...into new file.
9337 * modules/fdopendir: New module.
9338 * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
9339 * modules/openat (Depends-on): Add fdopendir.
9340 * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
9342 * modules/savedir (Depends-on): Only need fdopendir, not full
9344 * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
9345 * lib/openat.h (fdopendir): Drop prototype.
9346 * lib/dirent.in.h (fdopendir): Provide prototype.
9347 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
9348 * modules/dirent (Makefile.am): Substitute them.
9349 * MODULES.html.sh (File system functions): Mention it.
9350 * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
9351 * modules/fdopendir-tests: New file.
9352 * tests/test-fdopendir.c: Likewise.
9354 fchdir: use more consistent macro convention
9355 * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
9356 * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
9357 REPLACE_FCHDIR, rather than relying on config.h macros.
9358 * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
9359 inside a single make-time REPLACE_FCHDIR block, rather than using
9360 the config.h FCHDIR_REPLACEMENT.
9361 * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
9362 AC_SUBST'd, also AC_DEFINE it. Don't define FCHDIR_REPLACEMENT.
9363 Manage fstat replacement.
9364 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
9366 * modules/sys_stat (Files): Add m4/unistd_h.m4.
9367 (Makefile.am): Substitute REPLACE_FCHDIR.
9368 * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
9370 * lib/dup-safer.c (dup_safer): Likewise.
9371 * lib/dup2.c (rpl_dup2): Likewise.
9372 * lib/dup3.c (rpl_dup3): Likewise.
9373 * lib/open.c (rpl_open): Likewise.
9375 fchdir: simplify error handling, and support dup3
9376 * modules/fchdir (Depends-on): Use strdup-posix, not strdup. Add
9377 stdbool, malloc-posix, realloc-posix.
9378 * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
9379 (ensure_dirs_slot): Return false on allocation failure.
9381 (_gl_register_dup): New function.
9382 (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
9383 (_gl_register_fd): Close fd on allocation failure.
9384 * lib/fcntl.in.h (_gl_register_fd): Update signature.
9385 * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
9387 (rpl_dup2_fchdir): Delete prototype.
9388 * lib/open.c (open): Update caller.
9389 * lib/dup2.c (dup2): Track fchdir metadata.
9390 * lib/dup3.c (dup3): Likewise.
9391 * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
9392 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
9394 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9396 * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
9397 AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
9398 don't pass arguments to AC_OUTPUT.
9400 2009-09-02 Bruno Haible <bruno@clisp.org>
9402 * modules/mkdtemp (License): Relicense under LGPLv2+.
9403 Reported by Paolo Bonzini.
9405 2009-09-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9407 Replace uses of obsolete autoconf macros in Jim's modules.
9408 The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
9409 AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
9410 can evoke a warning from autoconf when run with -Wobsolete
9411 enabled. They were declared obsolete for good reasons (see
9412 the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
9413 recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
9414 should not continue using the deprecated macros.
9415 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
9416 obsolete Autoconf macros with modern counterparts.
9417 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
9418 * m4/dos.m4 (gl_AC_DOS): Likewise.
9419 * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
9420 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
9421 * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
9422 * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
9423 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
9424 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
9425 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
9426 * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
9427 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
9429 * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
9430 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
9431 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
9432 * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
9433 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
9434 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
9436 2009-09-01 Eric Blake <ebb9@byu.net>
9438 fchdir: fix off-by-one bug in previous patch
9439 * lib/fchdir.c (rpl_fstat): Use correct bounds.
9440 (_gl_unregister_fd): Delete useless if.
9442 2009-09-01 Daniel P. Berrange <berrange@redhat.com>
9444 maint.mk: sort the list of syntax-check rules
9445 * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
9446 easier to get a sense of progress when the rules are run sequentially
9447 and take a long time.
9449 2009-09-01 Simon Josefsson <simon@josefsson.org>
9451 * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
9452 * modules/netinet_in: Likewise.
9453 * modules/sys_file: Likewise.
9454 * modules/sys_ioctl: Likewise.
9455 * modules/sys_select: Likewise.
9456 * modules/sys_socket: Likewise.
9457 * modules/sys_stat: Likewise.
9458 * modules/sys_time: Likewise.
9459 * modules/sys_times: Likewise.
9460 * modules/sys_utsname: Likewise.
9461 * modules/sys_wait: Likewise.
9463 2009-09-01 Jim Meyering <meyering@redhat.com>
9465 fts: help ensure that return values are not ignored
9466 * lib/fts_.h (__GNUC_PREREQ): Define.
9467 (__attribute_warn_unused_result__): Define.
9468 (fts_children, fts_close, fts_open, fts_read): Declare with
9469 __attribute_warn_unused_result__.
9471 fts: fts_close now fails also when closing a dir file descriptor fails
9472 * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
9473 and propagate to caller, along with errno.
9475 announce-gen: correct formatting in --help output
9476 * build-aux/announce-gen (usage): Move the one-line description in
9477 --help output "up", to where it belongs, just after Usage:.
9479 2009-08-31 Eric Blake <ebb9@byu.net>
9481 fchdir: port to mingw
9482 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
9483 * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
9484 opened, then use a substitute.
9485 * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
9487 * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
9488 (_gl_register_fd): No need to check stat if open already filters
9490 (fchdir): Fix error condition to match POSIX.
9491 * modules/fchdir (Depends-on): Add sys_stat.
9492 * doc/posix-functions/open.texi (open): Document the limitation.
9493 * modules/fchdir-tests: New file.
9494 * tests/test-fchdir.c: Likewise.
9496 canonicalize: allow cross-testing from cygwin to mingw
9497 * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
9498 (Makefile.am): Pass it through TESTS_ENVIRONMENT.
9499 * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
9501 * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
9502 target does not support symlinks.
9503 * tests/test-canonicalize-lgpl.sh: Likewise.
9505 chown: avoid compilation warning on mingw
9506 * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
9507 * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
9509 * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
9510 * modules/chown (Depends-on): Add errno.
9512 2009-08-31 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
9514 * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
9517 2009-08-31 Jim Meyering <meyering@redhat.com>
9519 canonicalize: remove useless initialization
9520 * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
9521 initialization of local, "end".
9523 2009-08-30 Bruno Haible <bruno@clisp.org>
9525 Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
9526 * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
9529 2009-08-30 Bruno Haible <bruno@clisp.org>
9531 * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
9532 /usr/xpg4/bin/tr when it exists.
9533 * tests/test-pipe-filter-gi1.sh: Likewise.
9535 2009-08-30 Bruno Haible <bruno@clisp.org>
9537 Work around deficient /usr/bin/id program on Solaris.
9538 * tests/test-file-has-acl.sh (ID): New variable.
9539 * tests/test-set-mode-acl.sh (ID): Likewise.
9540 * tests/test-copy-acl.sh (ID): Likewise.
9541 * tests/test-copy-file.sh (ID): Likewise.
9543 2009-08-30 Bruno Haible <bruno@clisp.org>
9545 New module 'xstriconveh'.
9546 * lib/xstriconveh.h: New file.
9547 * lib/xstriconveh.c: New file.
9548 * modules/xstriconveh: New file.
9550 2009-08-30 Bruno Haible <bruno@clisp.org>
9552 Make it easier to use mem_cd_iconveh.
9553 * lib/striconveh.h (iconveh_t): New type.
9554 (iconveh_open, iconveh_close): New declarations.
9555 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9556 with a single 'const iconveh_t *' argument.
9557 * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
9558 (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
9559 with a single 'const iconveh_t *' argument.
9560 (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
9561 * tests/test-striconveh.c (main): Update.
9562 * NEWS: Mention the change.
9564 2009-08-30 Bruno Haible <bruno@clisp.org>
9566 * doc/posix-functions/iconv_open.texi: Mention indirect conversion
9569 2009-08-30 Bruno Haible <bruno@clisp.org>
9571 Work around iconv_open problem on Solaris.
9572 * lib/iconv_open-solaris.gperf: New file.
9573 * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
9574 * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
9575 * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
9576 (Makefile.am): Add rule for iconv_open-solaris.h. Augment
9577 BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
9578 * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
9580 2009-08-29 Jim Meyering <meyering@redhat.com>
9582 maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
9583 * top/maint.mk (cvs-check): Remove target; it was just an alias
9584 to the better-named vc-diff-check.
9585 (maintainer-distcheck): Remove rule. It was used only from
9586 the (alpha/beta/major) target, and all of its commands but one
9587 were coreutils-specific.
9588 (vc-dist): Remove rule.
9589 (alpha beta major): Run "$(MAKE) distcheck" explicitly.
9590 Run vc-diff-check, not vc-dist.
9591 Run $(MAKE) dist with XZ_OPT=-9ev. Note spelling, with "-".
9593 2009-08-27 Bruno Haible <bruno@clisp.org>
9595 * tests/test-bitrotate.c (main): Remove test that uses a shift count
9598 2009-08-27 Bruno Haible <bruno@clisp.org>
9600 * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
9602 * doc/func.texi: Document the SunPRO C bug.
9604 2009-08-27 Bruno Haible <bruno@clisp.org>
9606 Fix link error on Solaris.
9607 * tests/test-parse-duration.c (xstrdup): Remove function.
9609 2009-08-26 Pádraig Brady <P@draigbrady.com>
9611 ignore-value: handle pointer types, too
9612 * lib/ignore-value.h (__attribute__): Remove definition.
9613 (ignore_value): Remove use of "__attribute__ ((unused))" in favor
9614 of a more concise and more-often effective "(void) i" statement.
9615 (ignore_ptr): New function to suppress warnings from functions that
9616 return pointers, and to make it explicit that one function doesn't
9619 2009-08-25 Bruno Haible <bruno@clisp.org>
9621 dup2: work around a Linux bug.
9622 * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
9623 * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
9624 * doc/posix-functions/dup2.texi: Mention the Linux bug.
9625 Reported by Simon Josefsson.
9627 2009-08-25 Jim Meyering <meyering@redhat.com>
9629 libguestfs uses gnulib
9630 * users.txt: Add libguestfs.
9632 2009-08-24 Eric Blake <ebb9@byu.net>
9634 dup2, pipe2: fix some recent test failures on cygwin 1.5.x
9635 * lib/pipe2.c (includes): Add binary-io.h.
9636 * lib/dup2.c (rpl_dup2): Correct buggy errno value.
9638 2009-08-24 Bruno Haible <bruno@clisp.org>
9640 Tolerate declared but missing accept4 syscall.
9641 * lib/accept4.c (accept4): Invoke original accept4 function first, if
9643 * lib/sys_socket.in.h (accept4): If the function is already present,
9645 * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
9646 * modules/accept4 (Makefile.am): Compile accept4.c always.
9647 Reported by Paolo Bonzini and Eric Blake.
9649 2009-08-23 Bruno Haible <bruno@clisp.org>
9651 New module 'accept4'.
9652 * lib/sys_socket.in.h (accept4): New declaration.
9653 * lib/accept4.c: New file.
9654 * m4/accept4.m4: New file.
9655 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9656 GNULIB_ACCEPT4, HAVE_ACCEPT4.
9657 * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
9659 * modules/accept4: New file.
9660 * doc/glibc-functions/accept4.texi: Mention the new module.
9662 2009-08-24 Jim Meyering <meyering@redhat.com>
9664 progname: also set global program_invocation_name, when possible
9665 Before this change, a libtool-enabled program that calls glibc's
9666 error function would report the program name as
9667 "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
9668 * modules/progname (configure.ac): Check for a declaration of
9669 program_invocation_name.
9670 * lib/progname.c: Include <errno.h>.
9671 (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
9672 Set program_invocation_name.
9674 2009-08-23 Bruno Haible <bruno@clisp.org>
9676 * lib/dup3.c: Include <string.h>.
9678 2009-08-23 Bruno Haible <bruno@clisp.org>
9680 * lib/dup3.c (dup3): Test only once whether the system actually exists.
9681 * lib/pipe2.c (pipe2): Likewise.
9682 Suggested by Eric Blake.
9684 2009-08-23 Bruno Haible <bruno@clisp.org>
9686 Tolerate declared but missing dup3 syscall.
9687 * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
9688 * lib/unistd.in.h (dup3): If the function is already present,
9690 * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
9691 * modules/dup3 (Makefile.am): Compile dup3.c always.
9692 Reported by Paolo Bonzini.
9694 2009-08-23 Bruno Haible <bruno@clisp.org>
9696 Tolerate declared but missing pipe2 syscall.
9697 * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
9699 * lib/unistd.in.h (pipe2): If the function is already present,
9701 * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
9702 * modules/pipe2 (Makefile.am): Compile pipe2.c always.
9703 Reported by Paolo Bonzini.
9705 2009-08-23 Bruno Haible <bruno@clisp.org>
9707 * lib/pipe2.c (pipe2): Move #ifs inside function.
9709 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
9711 quotearg: document limitations of quote_these_too
9712 * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
9713 those limitations are created.
9714 * lib/quotearg.h (set_char_quoting): Document that digits and
9715 letters that are special after backslash are not permitted.
9716 (quotearg_char): Cross-reference set_char_quoting documentation.
9718 2009-08-23 Joel E. Denny <jdenny@clemson.edu>
9720 quotearg: implement custom_quoting_style
9721 * lib/quotearg.c: (struct quoting_options): Add left_quote and
9723 (set_custom_quoting): New public function.
9724 (quotearg_buffer_restyled): Add left_quote and right_quote
9725 arguments, handle them very much like locale quoting, and update
9727 (quotearg_n_custom): New public function.
9728 (quotearg_n_custom_mem): New public function.
9729 (quotearg_custom): New public function.
9730 (quotearg_custom_mem): New public function.
9731 * lib/quotearg.h: Prototype and document new public functions.
9732 (enum quoting_style): For escape_quoting_style and
9733 clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
9734 ignored even though they're otherwise like c_quoting_style.
9735 Add custom_quoting_style member and document with comparison to
9736 clocale_quoting_style.
9737 * tests/test-quotearg.c (custom_quotes): New array.
9738 (custom_results): New array.
9739 (main): Extend to test custom quoting.
9741 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
9743 quotearg: fix right quote escaping when it's in quote_these_too
9744 * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
9745 quote, be sure to prepend only one backslash.
9746 * tests/test-quotearg.c (use_quote_double_quotes): New function.
9749 2009-08-22 Joel E. Denny <jdenny@clemson.edu>
9751 quotearg-tests: test escaping of embedded locale quotes
9752 * tests/test-quotearg.c (struct result_strings): Add member for
9754 (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
9755 (inputs): Add new input.
9756 (results_g): Add expected results.
9757 (flag_results): Likewise.
9758 (locale_results): Likewise.
9759 (compare_strings): Check those.
9761 2009-08-23 Bruno Haible <bruno@clisp.org>
9763 Tests for module 'dup3'.
9764 * modules/dup3-tests: New file.
9765 * tests/test-dup3.c: New file.
9768 * lib/unistd.in.h (dup3): New declaration.
9769 * lib/dup3.c: New file.
9770 * m4/dup3.m4: New file.
9771 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
9773 * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
9774 * modules/dup3: New file.
9775 * doc/glibc-functions/dup3.texi: Mention the new module.
9777 2009-08-23 Bruno Haible <bruno@clisp.org>
9779 Tweak the dup2 test.
9780 * tests/test-dup2.c (main): Create the test file empty. Verify that an
9781 out-of-range fd yields EBADF. Verify that after writing to /dev/null,
9782 the test file is still empty. Fix argument order of lseek.
9784 2009-08-23 Bruno Haible <bruno@clisp.org>
9786 Avoid test link errors when the modules getopt-gnu, gettext are used.
9787 * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
9788 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9790 2009-08-23 Bruno Haible <bruno@clisp.org>
9792 Fix getdtablesize() on mingw.
9793 * lib/getdtablesize.c (getdtablesize): Implement differently.
9794 * lib/unistd.in.h (getdtablesize): Improve comment.
9796 2009-08-23 Bruno Haible <bruno@clisp.org>
9798 New module 'mkostemp'.
9799 Based on Ulrich Drepper's 2007-08-10 change in glibc.
9800 * lib/stdlib.in.h (mksotemp): New declaration.
9801 * lib/mkostemp.c: New file, from glibc with modifications.
9802 * lib/tempname.h (GT_FILE): Remove outdated comment.
9803 (gen_tempname): Add flags argument.
9804 * lib/tempname.c (__GT_BIGFILE): Remove macro.
9805 (__GT_FILE): Map to 1.
9806 (small_open, large_open): Remove macros.
9807 (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
9808 * lib/mkstemp.c (mkstemp): Update.
9809 * lib/mkdtemp.c (mkdtemp): Likewise.
9810 * m4/mkostemp.m4: New file.
9811 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
9813 * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
9815 * modules/mkostemp: New file, based on modules/mkstemp.
9816 * doc/glibc-functions/mkostemp.texi: Mention the new module.
9817 * NEWS: Mention the change.
9819 2009-08-23 Bruno Haible <bruno@clisp.org>
9821 * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
9822 Reported by Eric Blake.
9824 2009-08-23 Bruno Haible <bruno@clisp.org>
9826 * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
9827 Reported by Eric Blake.
9829 2009-08-23 Bruno Haible <bruno@clisp.org>
9831 * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
9832 * modules/pipe2 (Depends-on): Likewise.
9834 2009-08-23 Eric Blake <ebb9@byu.net>
9836 fcntl-h: add O_TTY_INIT support
9837 * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
9838 * tests/test-fcntl-h.c (o): Test it.
9839 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9841 fcntl-h: rename from fcntl, in preparation for fcntl(2)
9842 * modules/fcntl: Move <fcntl.h> header replacement...
9843 * modules/fcntl-h: ...to new name, so as not to collide with
9844 like-named function.
9845 * tests/test-fcntl.c: Rename...
9846 * tests/test-fcntl-h.c: ...to this. Test FD_CLOEXEC.
9847 * modules/fcntl-tests: Rename...
9848 * modules/fcntl-h-tests: ...to this. Update test file name.
9849 * modules/chdir-long (Depends-on): Update clients.
9850 * modules/chdir-safer (Depends-on): Likewise.
9851 * modules/fcntl-safer (Depends-on): Likewise.
9852 * modules/fts (Depends-on): Likewise.
9853 * modules/mkancesdirs (Depends-on): Likewise.
9854 * modules/mkdir-p (Depends-on): Likewise.
9855 * modules/open (Depends-on): Likewise.
9856 * modules/savewd (Depends-on): Likewise.
9857 * MODULES.html.sh (systems lacking POSIX:2008): Update name.
9858 * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
9860 2009-08-22 Bruno Haible <bruno@clisp.org>
9862 * modules/binary-io (License): Relicense under LGPL.
9863 * modules/pipe2 (License): Likewise.
9865 2009-08-22 Bruno Haible <bruno@clisp.org>
9867 * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
9869 * lib/pipe-filter-gi.c (filter_init): Likewise.
9870 Reported by Eric Blake.
9872 2009-08-22 Bruno Haible <bruno@clisp.org>
9874 * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
9875 * modules/pipe (Depends-on): Add pipe2.
9877 2009-08-22 Bruno Haible <bruno@clisp.org>
9879 Tests for module 'pipe2'.
9880 * modules/pipe2-tests: New file.
9881 * tests/test-pipe2.c: New file.
9884 * lib/unistd.in.h (pipe2): New declaration.
9885 * lib/pipe2.c: New file.
9886 * m4/pipe2.m4: New file.
9887 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
9889 * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
9890 * modules/pipe2: New file.
9891 * doc/glibc-functions/pipe2.texi: Mention the new module.
9893 2009-08-22 Bruno Haible <bruno@clisp.org>
9895 Reference some new glibc functions.
9896 * doc/glibc-functions/accept4.texi: New file.
9897 * doc/glibc-functions/dup3.texi: New file.
9898 * doc/glibc-functions/mkostemp.texi: New file.
9899 * doc/glibc-functions/pipe2.texi: New file.
9900 * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
9901 (Glibc sys/socket.h): Refer to accept4.
9902 (Glibc unistd.h): Refer to dup3, pipe2.
9903 Reported by Eric Blake.
9905 2009-08-22 Jim Meyering <meyering@redhat.com>
9906 Bruno Haible <bruno@clisp.org>
9908 annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
9909 This makes it so packages using automake-1.11's silent-rules option
9910 can print e.g., a single "GEN configmake.h" line, rather than
9911 the 30+ statements that perform the job. If you want to see the
9912 actual commands, you can still run "make V=1".
9913 * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
9914 so that make output is abbreviated when those variables are defined
9916 * modules/argz: Likewise.
9917 * modules/arpa_inet: Likewise.
9918 * modules/byteswap: Likewise.
9919 * modules/configmake: Likewise.
9920 * modules/dirent: Likewise.
9921 * modules/errno: Likewise.
9922 * modules/fcntl: Likewise.
9923 * modules/float: Likewise.
9924 * modules/fnmatch: Likewise.
9925 * modules/getopt-posix: Likewise.
9926 * modules/glob: Likewise.
9927 * modules/iconv_open: Likewise.
9928 * modules/inttypes: Likewise.
9929 * modules/localcharset: Likewise.
9930 * modules/locale: Likewise.
9931 * modules/math: Likewise.
9932 * modules/netdb: Likewise.
9933 * modules/netinet_in: Likewise.
9934 * modules/poll: Likewise.
9935 * modules/posix_spawnp-tests: Likewise.
9936 * modules/sched: Likewise.
9937 * modules/search: Likewise.
9938 * modules/selinux-h: Likewise.
9939 * modules/signal: Likewise.
9940 * modules/spawn: Likewise.
9941 * modules/stdarg: Likewise.
9942 * modules/stdbool: Likewise.
9943 * modules/stddef: Likewise.
9944 * modules/stdint: Likewise.
9945 * modules/stdio: Likewise.
9946 * modules/stdlib: Likewise.
9947 * modules/string: Likewise.
9948 * modules/strings: Likewise.
9949 * modules/sys_file: Likewise.
9950 * modules/sys_ioctl: Likewise.
9951 * modules/sys_select: Likewise.
9952 * modules/sys_socket: Likewise.
9953 * modules/sys_stat: Likewise.
9954 * modules/sys_time: Likewise.
9955 * modules/sys_times: Likewise.
9956 * modules/sys_utsname: Likewise.
9957 * modules/sys_wait: Likewise.
9958 * modules/sysexits: Likewise.
9959 * modules/time: Likewise.
9960 * modules/unistd: Likewise.
9961 * modules/wchar: Likewise.
9962 * modules/wctype: Likewise.
9964 2009-08-22 Jim Meyering <meyering@redhat.com>
9966 announce-gen: detect write failure
9967 * build-aux/announce-gen: Add Coda at end.
9968 Remove equivalent-but-more-verbose block at top.
9970 2009-08-19 Akim Demaille <demaille@gostai.com>
9972 bootstrap: --help to stdout.
9973 * bootstrap (usage): Don't send --help to stderr.
9974 Use a here doc instead of a long string.
9976 2009-08-21 Eric Blake <ebb9@byu.net>
9978 test-popen-safer: split from test-popen
9979 * tests/test-popen.c (main): Move...
9980 * tests/test-popen.h: ...into new file.
9981 * tests/test-popen-safer2.c: New file.
9982 * modules/popen-tests (Files): Add test-popen.h.
9983 * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
9984 Suggested by Bruno Haible.
9986 test-fcntl-safer: split from test-open
9987 * tests/test-open.c (main): Move...
9988 * tests/test-open.h: ...into new file.
9989 * tests/test-fcntl-safer.c: New file.
9990 * modules/open-tests (Files): Add test-open.h.
9991 * modules/fcntl-safer-tests: New file.
9992 Suggested by Bruno Haible.
9994 test-fopen-safer: split from test-fopen
9995 * tests/test-fopen.c (main): Move...
9996 * tests/test-fopen.h: ...into new file.
9997 * tests/test-fopen-safer.c: New file.
9998 * modules/fopen-tests (Files): Add test-fopen.h.
9999 * modules/fopen-safer-tests: New file.
10000 Suggested by Bruno Haible.
10002 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10004 popen-safer: test O_CLOEXEC at run-time.
10005 * lib/popen-safer.c: Test O_CLOEXEC at run-time.
10007 2009-08-21 Paolo Bonzini <bonzini@gnu.org>
10009 fcntl: move more flags to the header
10010 * lib/cloexec.c: Do not define FD_CLOEXEC here.
10011 * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
10012 * lib/fcntl.in.h: Do both things here.
10014 2009-08-21 Jim Meyering <meyering@redhat.com>
10016 consistently remove $@-t before redirecting to it
10017 * modules/argz: Remove $@-t and $@ before redirecting to the former.
10018 * modules/alloca-opt: Likewise.
10019 * modules/byteswap: Likewise.
10020 * modules/fnmatch: Likewise.
10021 * modules/getopt-posix: Likewise.
10022 * modules/glob: Likewise.
10023 * modules/poll: Likewise.
10024 * modules/posix_spawnp-tests: Likewise.
10025 * modules/sys_socket: Likewise.
10026 * modules/sysexits: Likewise.
10028 2009-08-21 Eric Blake <ebb9@byu.net>
10030 popen: simplify access to original popen
10031 * lib/popen.c (rpl_popen): No need to worry about popen being a
10033 Reported by Bruno Haible.
10035 2009-08-20 Eric Blake <ebb9@byu.net>
10037 build: avoid some compiler warnings
10038 * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
10039 * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
10041 (new_exclude_segment, excluded_file_pattern_p)
10042 (excluded_file_name_p): Reduce scope.
10043 * lib/vasnprintf.c (decimal_point_char): Avoid warning on
10044 old-style declaration.
10046 2009-08-20 Simon Josefsson <simon@josefsson.org>
10048 * tests/test-exclude1.sh: Handle Windows EOL.
10049 * tests/test-exclude2.sh: Likewise.
10050 * tests/test-exclude3.sh: Likewise.
10051 * tests/test-exclude4.sh: Likewise.
10052 * tests/test-exclude5.sh: Likewise.
10053 * tests/test-exclude6.sh: Likewise.
10054 * tests/test-exclude7.sh: Likewise.
10056 2009-08-19 Akim Demaille <demaille@gostai.com>
10058 bootstrap: find sha1sum when named gsha1sum.
10059 * bootstrap (find_tool): New.
10063 2009-08-20 Jim Meyering <meyering@redhat.com>
10065 maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
10066 * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
10067 expression that converts "." in a file name to "\." in the resulting
10068 regexp. Start with a dummy statement, so that prior shell variable
10069 definitions are expanded portably. Reported by Simon Josefsson.
10071 2009-08-20 Paolo Bonzini <bonzini@gnu.org>
10073 Fix polling for writeability of a screen buffer.
10074 * lib/poll.c: Distinguish input and screen buffers for the
10075 Win32 implementation.
10076 * lib/select.c: Likewise.
10078 2009-08-19 Eric Blake <ebb9@byu.net>
10080 popen-safer: prevent popen from clobbering std descriptors
10081 * modules/popen-safer: New file.
10082 * lib/popen-safer.c: Likewise.
10083 * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
10084 * lib/stdio--.h (popen): Provide override.
10085 * lib/stdio-safer.h (popen_safer): Provide declaration.
10086 * tests/test-popen.c (includes): Partially test this.
10087 * modules/popen-safer-tests: New file, for more tests.
10088 * tests/test-popen-safer.c: Likewise.
10089 * MODULES.html.sh (file stream based Input/Output): Mention it.
10091 tests: test some of the *-safer modules
10092 * modules/fopen-safer (Depends-on): Add fopen.
10093 * modules/fcntl-safer (Depends-on): Add fcntl.
10094 * modules/stdlib-safer (Depends-on): Add stdlib.
10095 (configure.ac): Set indicator.
10096 * modules/unistd-safer (configure.ac): Likewise.
10097 * modules/tmpfile-safer (configure.ac): Likewise.
10098 (Depends-on): Add tmpfile.
10099 * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
10101 * tests/test-fopen.c (includes): Test safer versions when they are
10103 * tests/test-open.c (includes): Likewise.
10105 popen: fix cygwin 1.5 bug when stdin closed
10106 * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
10107 * modules/popen: New file.
10108 * modules/popen-tests: Likewise.
10109 * tests/test-popen.c: Likewise.
10110 * m4/popen.m4: Likewise.
10111 * lib/popen.c: Likewise.
10112 * lib/stdio.in.h (popen): New declaration.
10113 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
10114 * modules/stdio (Makefile.am): Likewise.
10115 * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
10117 2009-08-17 Joel E. Denny <jdenny@clemson.edu>
10119 maint.mk: give full control over update-copyright exclusions
10120 * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
10121 ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
10122 (update-copyright): Don't force inclusion of top-level
10123 ChangeLog. Don't force exclusion of all COPYING files, but make
10124 them the default exclusion instead.
10126 2009-08-16 Bruno Haible <bruno@clisp.org>
10128 Fix test failures on Solaris 10.
10129 * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
10130 tests when Solaris iconv() is used.
10131 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
10132 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
10133 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
10134 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
10135 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
10137 2009-08-16 Bruno Haible <bruno@clisp.org>
10139 Fix test failures on Solaris 10.
10140 * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
10141 'tr' program and pass it as first argument.
10142 * tests/test-pipe-filter-gi1.sh: Likewise.
10143 * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
10144 program as first argument.
10145 * tests/test-pipe-filter-gi1.c (main): Likewise.
10147 2009-08-16 Eric Blake <ebb9@byu.net>
10149 fpurge: fix previous commits
10150 * modules/fpurge (Makefile.am): Make replacement conditional,
10151 partially reverting 2007-04-29 change; missed in previous
10153 * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
10156 2009-08-16 Bruno Haible <bruno@clisp.org>
10158 Clarify fpurge's effect on the file position.
10159 * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
10160 * tests/test-fpurge.c (main): Make a second pass for checking the file
10163 2009-08-16 Bruno Haible <bruno@clisp.org>
10165 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
10166 declaration of fpurge is missing.
10167 * tests/test-fpurge.c (main): Check that the file has not more contents
10168 than expected. Close the file before removing it.
10170 2009-08-15 Eric Blake <ebb9@byu.net>
10172 fpurge: don't wrap working cygwin implementation
10173 * lib/fpurge.c (fpurge): Fix comment typo.
10174 * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
10175 1.7 to avoid replacement.
10176 * tests/test-fpurge.c (main): Enhance test.
10178 2009-08-15 Eric Blake <ebb9@byu.net>
10179 and Jim Meyering <meyering@redhat.com>
10181 test-update-copyright: skip if perl is insufficient
10182 * tests/test-update-copyright.sh: Failure to run maintainer tool
10183 should not cause testsuite failure on cygwin 1.5.
10185 2009-08-14 Eric Blake <ebb9@byu.net>
10187 doc: mention more functions added in cygwin 1.7.0
10188 * doc/posix-headers/limits.texi (limits.h): Update for recent
10190 * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
10191 * doc/posix-functions/wordexp.texi (wordexp): Likewise.
10192 * doc/posix-functions/wordfree.texi (wordfree): Likewise.
10193 * doc/posix-functions/setlocale.texi (setlocale): Likewise.
10194 * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
10196 2009-08-14 Eric Blake <ebb9@byu.net>
10198 maint.mk: simplify update-copyright rule
10199 * top/maint.mk (update-copyright-local): Delete, and document how
10200 to do it in cfg.mk instead.
10201 (update-copyright-exclude-regexp): Delete, and document how to do
10202 it in .x-update-copyright instead.
10203 (update-copyright): Simplify, thanks to VC_LIST_EXCEPT. Don't
10206 2009-08-14 Bruno Haible <bruno@clisp.org>
10208 * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
10210 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10212 maint.mk: support update-copyright-env
10213 * top/maint.mk (update-copyright-env): Define place-holder.
10214 (update-copyright): Expand $(update-copyright-env) before
10215 invoking update-copyright.
10217 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10219 update-copyright: implement forced reformatting
10220 * build-aux/update-copyright: Implement and document
10221 UPDATE_COPYRIGHT_FORCE.
10222 * tests/test-update-copyright.sh: Test it.
10224 2009-08-14 Eric Blake <ebb9@byu.net>
10225 and Bruno Haible <bruno@clisp.org>
10227 stddef: fix NetBSD 5.0 NULL bug, rather than working around it
10228 * tests/test-locale.c: Revert previous patch related to NULL.
10229 * tests/test-stdio.c: Likewise.
10230 * tests/test-stdlib.c: Likewise.
10231 * tests/test-string.c: Likewise.
10232 * tests/test-unistd.c: Likewise.
10233 * modules/time-tests (Depends-on): Add verify.
10234 * modules/wchar-tests (Depends-on): Likewise.
10235 * tests/test-time.c: Test for NULL compliance.
10236 * tests/test-wchar.c: Likewise.
10237 * modules/locale (Depends-on): Add stddef.
10238 * modules/stdio (Depends-on): Likewise.
10239 * modules/stdlib (Depends-on): Likewise.
10240 * modules/string (Depends-on): Likewise.
10241 * modules/time (Depends-on): Likewise.
10242 * modules/unistd (Depends-on): Likewise.
10243 * modules/wchar (Depends-on): Likewise.
10244 * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
10245 * lib/stdlib.in.h (includes): Likewise.
10246 * lib/string.in.h (includes): Likewise.
10247 * lib/time.in.h (includes): Likewise.
10248 * lib/unistd.in.h (includes): Likewise.
10249 * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
10251 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
10252 * m4/stddef_h.m4: New file.
10253 * modules/stddef: Likewise.
10254 * lib/stddef.in.h: Likewise.
10255 * modules/stddef-tests: Likewise.
10256 * tests/test-stddef.c: Likewise.
10257 * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
10258 * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
10259 * doc/posix-headers/locale.texi (locale.h): Likewise.
10260 * doc/posix-headers/stdio.texi (stdio.h): Likewise.
10261 * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
10262 * doc/posix-headers/string.texi (string.h): Likewise.
10263 * doc/posix-headers/time.texi (time.h): Likewise.
10264 * doc/posix-headers/unistd.texi (unistd.h): Likewise.
10265 * doc/posix-headers/wchar.texi (wchar.h): Likewise.
10267 2009-08-14 Eric Blake <ebb9@byu.net>
10269 doc: improve git diff of texinfo files
10270 * .gitattributes: Add rule for *.texi files, with hint on how to
10272 Copied from m4, and based on a report by Bruno Haible.
10274 2009-08-14 Bruno Haible <bruno@clisp.org>
10276 Disable multithread support by default on Cygwin 1.5.x for real.
10277 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
10279 2009-08-14 Joel E. Denny <jdenny@clemson.edu>
10281 update-copyright: much ado about intervals
10282 * build-aux/update-copyright: Implement and document
10283 UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
10284 of copyright year intervals.
10285 Also, document UPDATE_COPYRIGHT_YEAR.
10286 * tests/test-update-copyright.sh: Test it.
10288 update-copyright: convert 2-digit to 4-digit years
10289 * build-aux/update-copyright: Implement and document.
10290 * tests/test-update-copyright.sh: Update.
10292 2009-08-14 Jim Meyering <meyering@redhat.com>
10294 test-exclude: avoid coreutils "make check" failure
10295 * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
10296 just as in test-argmatch.c.
10298 2009-08-13 Eric Blake <ebb9@byu.net>
10300 test-dup2: fix bad assumption
10301 * tests/test-dup2.c (main): Tolerate leaked fds from environment.
10302 Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
10304 test-version-etc: fix CRLF portability issue
10305 * tests/test-version-etc.sh: Use tr, not sed, as not all sed
10307 * tests/test-argp-version-etc-1.sh: Likewise.
10309 getopt: update client modules
10310 * modules/argp (Depends-on): Use getopt-gnu.
10311 * modules/git-merge-changelog (Depends-on): Likewise.
10312 * modules/long-options (Depends-on): Likewise.
10313 * modules/xstrtol (Depends-on): Likewise.
10315 2009-08-13 Simon Josefsson <simon@josefsson.org>
10317 * tests/test-version-etc.sh: Don't fail on different
10318 project/version. Don't fail on CRLF differences. Rewrite to use
10319 multiple -e instead of multiple sed forks, suggested by Eric Blake
10321 * tests/test-argp-version-etc-1.sh: Likewise.
10323 2009-08-13 Simon Josefsson <simon@josefsson.org>
10325 * tests/test-version-etc.sh: Don't fail on different
10328 2009-08-12 Bruno Haible <bruno@clisp.org>
10330 Tests for modules 'getopt-posix', 'getopt-gnu'.
10331 * modules/getopt-posix-tests: New file.
10332 * tests/test-getopt.c: New file.
10333 * tests/test-getopt.h: New file.
10334 * tests/test-getopt_long.h: New file.
10336 New modules 'getopt-posix', 'getopt-gnu'.
10337 * modules/getopt-gnu: New file, renamed from modules/getopt.
10338 * modules/getopt-posix: New file.
10339 * modules/getopt: Turn into an obsolete alias for getopt-gnu.
10340 * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
10341 (gl_GETOPT): Remove macro.
10342 (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
10343 Disable the test against BSD systems that declare optreset. Test
10344 against mingw bug. Test against lack of support of optional arguments
10346 * doc/glibc-headers/getopt.texi: Update module name and list of
10347 relevant platforms.
10348 * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
10349 'getopt-gnu' and more portability problems.
10350 * NEWS: Mention the changes.
10352 2009-08-12 Bruno Haible <bruno@clisp.org>
10354 Ensure that optarg etc. get declared by <unistd.h>.
10355 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
10356 AC_USE_SYSTEM_EXTENSIONS.
10357 * modules/getopt (Depends-on): Add 'extensions'.
10359 2009-08-12 Bruno Haible <bruno@clisp.org>
10361 Avoid test link errors.
10362 * modules/pipe-filter-ii-tests (Makefile.am): Define
10363 test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
10364 * modules/pipe-filter-gi-tests (Makefile.am): Define
10365 test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
10366 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10368 2009-08-12 Bruno Haible <bruno@clisp.org>
10370 * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
10371 gl_GETOPT_SUBSTITUTE before.
10372 (gl_GETOPT): Use it.
10373 * m4/argp.m4 (gl_ARGP): Update.
10374 Reported by Sergey Poznyakoff.
10376 * m4/getopt.m4: Reorder macros.
10377 (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
10378 (gl_GETOPT_SUBSTITUTE): Remove macro.
10380 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
10382 Minor improvement in gitlog-to-changelog
10384 * build-aux/gitlog-to-changelog: New option `--format' makes
10385 output format string configurable.
10387 2009-08-12 Sergey Poznyakoff <gray@gnu.org.ua>
10389 Optimize exclude: use hash tables for non-wildcard patterns.
10391 * lib/exclude.c: Include hash.h and mbuiter.h
10392 (struct exclude_pattern, exclude_segment): New data types.
10393 (struct exclude): Rewrite.
10394 (fnmatch_pattern_has_wildcards): New function.
10395 (new_exclude_segment, free_exclude_segment): New functions.
10396 (excluded_file_pattern_p, excluded_file_name_p): New functions.
10397 (excluded_file_name, add_exclude): Rewrite using new struct exclude.
10398 * lib/exclude.h (is_fnmatch_pattern): New prototype.
10399 * modules/exclude: Depend on hash and mbuiter.
10401 * modules/exclude-tests: New file.
10402 * tests/test-exclude.c: New file.
10403 * tests/test-exclude1.sh: New file.
10404 * tests/test-exclude2.sh: New file.
10405 * tests/test-exclude3.sh: New file.
10406 * tests/test-exclude4.sh: New file.
10407 * tests/test-exclude5.sh: New file.
10408 * tests/test-exclude6.sh: New file.
10409 * tests/test-exclude7.sh: New file.
10411 2009-08-12 Bruno Haible <bruno@clisp.org>
10413 Ensure that getopt() gets declared by <unistd.h>.
10414 * lib/unistd.in.h: Conditionally include getopt.h.
10415 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
10416 Set GNULIB_UNISTD_H_GETOPT.
10417 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10418 GNULIB_UNISTD_H_GETOPT.
10419 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
10421 2009-08-12 Bruno Haible <bruno@clisp.org>
10424 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
10425 gl_replace_getopt instead of GETOPT_H.
10427 2009-08-12 Bruno Haible <bruno@clisp.org>
10429 * m4/getopt.m4: Add comments.
10431 2009-08-12 Bruno Haible <bruno@clisp.org>
10433 Disable multithread support by default on Cygwin 1.5.x.
10434 * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
10435 set gl_use_threads=no if not specified otherwise.
10437 2009-08-11 Bruno Haible <bruno@clisp.org>
10439 Avoid compilation error on NetBSD 5.0.
10440 * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
10441 * tests/test-stdio.c: Likewise.
10442 * tests/test-stdlib.c: Likewise.
10443 * tests/test-string.c: Likewise.
10444 * tests/test-unistd.c: Likewise.
10445 Reported by Greg Troxel <gdt@ir.bbn.com>
10446 at <https://savannah.gnu.org/support/?106973>.
10448 2009-08-11 Bruno Haible <bruno@clisp.org>
10450 * modules/dup2-tests (Depends-on): Remove close.
10452 Undo 2009-07-19 commit.
10453 * modules/acl-tests (Depends-on): Remove close.
10454 * modules/binary-io-tests (Depends-on): Likewise.
10455 * modules/closein-tests (Depends-on): Likewise.
10456 * modules/flock-tests (Depends-on): Likewise.
10457 * modules/fsync-tests (Depends-on): Likewise.
10458 * modules/lseek-tests (Depends-on): Likewise.
10459 * modules/pipe-tests (Depends-on): Likewise.
10460 * modules/posix_spawn-tests (Depends-on): Likewise.
10461 * modules/posix_spawnp-tests (Depends-on): Likewise.
10462 * modules/stat-time-tests (Depends-on): Likewise.
10463 * modules/yesno-tests (Depends-on): Likewise.
10465 2009-08-10 Bruno Haible <bruno@clisp.org>
10467 * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
10469 2009-08-10 Bruno Haible <bruno@clisp.org>
10472 * lib/write.c (rpl_write): Cast result of _get_osfhandle.
10474 2009-08-10 Bruno Haible <bruno@clisp.org>
10476 Don't optimize AC_LIBOBJs, as they may appear in different contexts.
10477 * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
10478 not only the first time.
10479 * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
10480 * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
10481 * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
10482 is 1, not only the the first time.
10484 2009-08-10 Bruno Haible <bruno@clisp.org>
10486 Make it possible to use module 'gethostname' without module 'close'.
10487 * lib/unistd.in.h (close): Evoke a link error only if
10488 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10489 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10490 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10491 * modules/unistd (Makefile.am): Substitute
10492 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10493 * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
10494 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
10495 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
10496 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10497 * modules/sys_ioctl (Makefile.am): Substitute
10498 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10499 * modules/socket (configure.ac): On native Windows, set
10500 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
10501 SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
10502 Reported by Sam Steingold <sds@gnu.org>.
10504 2009-08-10 Bruno Haible <bruno@clisp.org>
10506 * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
10507 * modules/ioctl (configure.ac): Likewise.
10509 2009-08-10 Bruno Haible <bruno@clisp.org>
10511 Avoid collision between gnulib wrapper and libintl wrapper.
10512 * lib/stdio-write.c (printf): Don't define if a printf wrapper is
10513 already defined in intl/printf.c.
10514 (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
10515 (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
10517 2009-08-09 Bruno Haible <bruno@clisp.org>
10519 Make <sys/select.h> really self-contained, also on Solaris 10.
10520 * lib/sys_select.in.h: Include <string.h>.
10521 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
10522 Solaris 10 problem.
10523 * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
10524 * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
10525 Reported by Jim Meyering.
10527 2009-08-09 Bruno Haible <bruno@clisp.org>
10529 Avoid warnings from 'aclocal' that are due to a use of macro name
10530 AM_XGETTEXT_OPTION that is not defined in automake.
10531 * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
10533 * modules/error (configure.ac): Likewise.
10534 * modules/propername (configure.ac): Likewise.
10535 * modules/vasprintf (configure.ac): Likewise.
10536 * modules/verror (configure.ac): Likewise.
10537 * modules/xprintf (configure.ac): Likewise.
10538 * modules/xvasprintf (configure.ac): Likewise.
10540 2009-08-08 Bruno Haible <bruno@clisp.org>
10542 Avoid compilation error in C++ mode.
10543 * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
10544 Reported by Sam Steingold <sds@gnu.org>.
10546 2009-08-08 Bruno Haible <bruno@clisp.org>
10548 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
10549 for the various Unix platforms.
10550 * doc/posix-headers/limits.texi: Update platforms list regarding
10552 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10554 2009-08-07 Jim Meyering <meyering@redhat.com>
10556 selinux-at: fix typo in a comment
10557 * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
10558 Spotted by Paolo Bonzini.
10560 selinux-at: remove redundant m4 code, add documentation
10561 * modules/selinux-at (configure.ac): Remove redundant code.
10562 LIB_SELINUX is already set via the dependent module, selinux-h.
10563 (Include): Add quotes around selinux-at.h.
10564 * lib/selinux-at.h: Add documentation.
10565 Reported by Bruno Haible in
10566 http://marc.info/?l=gnulib-bug&m=124958988300749
10568 2009-08-07 Bruno Haible <bruno@clisp.org>
10570 Avoid link error on MacOS X 10.3 and 10.4.
10571 * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
10572 on non-ELF systems.
10573 * lib/argp-pv.c (argp_program_version): Likewise.
10574 Reported by Simon Josefsson.
10576 2009-08-07 Simon Josefsson <simon@josefsson.org>
10578 * tests/test-version-etc.sh: Use $EXEEXT.
10580 2009-08-06 Joel E. Denny <jdenny@clemson.edu>
10582 update-copyright: update documentation to point to maint.mk
10583 * build-aux/update-copyright: Here.
10585 2009-08-06 Jim Meyering <meyering@redhat.com>
10587 maint.mk: support update-copyright-local
10588 * top/maint.mk (update-copyright-local): Define place-holder.
10589 (update-copyright): Depend on $(update-copyright-local).
10591 2009-08-06 Jim Meyering <meyering@redhat.com>
10593 selinux-at: new module
10594 Initially written for coreutils, this module will soon be
10595 used by findutils, too.
10596 * MODULES.html.sh [Misc]: Add selinux-at.
10597 * lib/selinux-at.h: New file, from coreutils.
10598 * lib/selinux-at.c: Likewise.
10599 * modules/selinux-at: Likewise.
10600 (License): Change from LGPL to GPL, since it depends
10601 on the GPL'd openat module.
10604 * README: Remove references to cogito.
10605 Remove cvs-repo-updating instructions from 2007.
10606 Don't imply that CVS is better if you have limited disk space.
10608 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
10610 update-copyright: support C-style comments
10611 * build-aux/update-copyright: Implement and document.
10612 * tests/test-update-copyright.sh: Test.
10614 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
10616 update-copyright: support omitted "(C)"
10617 * build-aux/update-copyright: Implement and document. Also,
10618 allow variable whitespace before "(C)".
10619 * tests/test-update-copyright.sh: Test.
10621 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
10623 update-copyright: don't trip on non-FSF copyright statements
10624 * build-aux/update-copyright: Fix so that the first correctly
10625 formatted FSF copyright statement is recognized no matter what
10626 appears before it. Update documentation.
10627 * tests/test-update-copyright.sh: Test that.
10629 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
10631 update-copyright: clean up code a little
10632 * build-aux/update-copyright: Append "_re" to the name of any
10633 variable holding a regular expression.
10634 Replace "old" and "new" with "stmt" in variable names.
10635 Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
10637 Format code more consistently.
10639 2009-08-05 Joel E. Denny <jdenny@clemson.edu>
10641 update-copyright-tests: improve portability
10642 * tests/test-update-copyright.sh: Use cmp if diff cannot handle
10643 -u or /dev/null. Suggested by Jim Meyering and Eric Blake.
10645 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
10647 update-copyright: support @copyright{} and ©
10648 * build-aux/update-copyright: Implement and document.
10649 * tests/test-update-copyright.sh: Test.
10651 2009-08-04 Jim Meyering <meyering@redhat.com>
10653 update-copyright-tests: correctly test EOL=\r\n handling
10654 * tests/test-update-copyright.sh: Put \r at the end of some lines
10655 for the dos-eol tests. Based on a patch by Joel E. Denny.
10657 maint.mk: make update-copyright exclusion list more configurable
10658 * top/maint.mk (update-copyright): Default to excluding COPYING,
10659 but allow an override, in case someone does want to update that file.
10661 maint.mk: don't update copyright date in COPYING
10662 * top/maint.mk (update-copyright): Exclude COPYING.
10664 maint.mk: add a copyright-updating rule
10665 * top/maint.mk (update-copyright): New rule.
10666 Derived from coreutils/Makefile.am.
10668 update-copyright: rename some variables
10669 * build-aux/update-copyright: Rename a few variables for clarity.
10670 Tweak syntax. List Joel E. Denny as coauthor.
10672 2009-08-03 Joel E. Denny <jdenny@clemson.edu>
10674 update-copyright: fix bug for 2-digit last year and add tests
10675 * build-aux/update-copyright: Fix bug.
10676 Use UPDATE_COPYRIGHT_YEAR from environment as current year if
10678 * modules/update-copyright-tests: New
10679 * tests/test-update-copyright.sh: New.
10681 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
10683 update-copyright: handle leading tabs in line prefix
10684 * build-aux/update-copyright: Count leading tabs as 8 spaces
10685 when computing margin. This helps with the formatting of
10686 ChangeLogs, for example.
10687 Fix documentation a little.
10689 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
10691 update-copyright: support EOL=\r\n
10692 * build-aux/update-copyright: Implement that.
10694 2009-07-31 Joel E. Denny <jdenny@clemson.edu>
10696 update-copyright: automatically format copyright statements
10697 * build-aux/update-copyright: Implement that.
10698 Also, be a little more predictable and safer by always failing
10699 when the full copyright format is not perfectly recognized as an
10700 unbroken whole. Discussed at
10701 <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
10702 Rewrite documentation.
10704 2009-08-03 Bruno Haible <bruno@clisp.org>
10706 * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
10708 2009-08-02 Bruno Haible <bruno@clisp.org>
10710 Tests for module 'uname'.
10711 * modules/uname-tests: New file.
10712 * tests/test-uname.c: New file.
10714 New module 'uname'.
10715 * lib/uname.c: New file.
10716 * m4/uname.m4: New file.
10717 * modules/uname: New file.
10718 * doc/posix-functions/uname.texi: Mention the new module.
10720 2009-08-02 Bruno Haible <bruno@clisp.org>
10722 Tests for module 'sys_utsname'.
10723 * modules/sys_utsname-tests: New file.
10724 * tests/test-sys_utsname.c: New file.
10726 New module 'sys_utsname'.
10727 * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
10728 * m4/sys_utsname_h.m4: New file.
10729 * modules/sys_utsname: New file.
10730 * doc/posix-headers/sys_utsname.texi: Mention the new module.
10732 2009-08-02 Bruno Haible <bruno@clisp.org>
10734 Implicitly initialize the sockets library.
10735 * lib/gethostname.c: Include sockets.h.
10736 (rpl_gethostname): Invoke gl_sockets_startup.
10737 * lib/socket.c: Include sockets.h.
10738 (rpl_socket): Invoke gl_sockets_startup.
10739 * modules/gethostname (Depends-on): Add sockets.
10740 * modules/socket (Depends-on): Likewise.
10741 * tests/test-poll.c: Don't include sockets.h.
10742 (main): Don't invoke gl_sockets_startup.
10743 * tests/test-select.c: Don't include sockets.h.
10744 (main): Don't invoke gl_sockets_startup.
10746 2009-08-02 Bruno Haible <bruno@clisp.org>
10748 Allow multiple calls to gl_sockets_startup.
10749 * lib/sockets.c (initialized_sockets_version): New variable.
10750 (gl_sockets_startup): Do nothing if already called for this or a higher
10752 (gl_sockets_cleanup): Reset initialized_sockets_version.
10754 2009-08-03 Simon Josefsson <simon@josefsson.org>
10756 * tests/test-argp-version-etc-1.sh: Use EXEEXT. Don't fail on
10757 different project/version.
10759 2009-08-02 Paolo Bonzini <bonzini@gnu.org>
10760 Bruno Haible <bruno@clisp.org>
10762 Tests for module 'pipe-filter-gi'.
10763 * modules/pipe-filter-gi-tests: New file.
10764 * tests/test-pipe-filter-gi1.sh: New file.
10765 * tests/test-pipe-filter-gi1.c: New file.
10766 * tests/test-pipe-filter-gi2.sh: New file.
10767 * tests/test-pipe-filter-gi2-main.c: New file.
10768 * tests/test-pipe-filter-gi2-child.c: New file.
10770 New module 'pipe-filter-gi'.
10771 * lib/pipe-filter-gi.c: New file.
10772 * modules/pipe-filter-gi: New file.
10774 2009-08-02 Bruno Haible <bruno@clisp.org>
10775 Paolo Bonzini <bonzini@gnu.org>
10777 Tests for module 'pipe-filter-ii'.
10778 * modules/pipe-filter-ii-tests: New file.
10779 * tests/test-pipe-filter-ii1.sh: New file.
10780 * tests/test-pipe-filter-ii1.c: New file.
10781 * tests/test-pipe-filter-ii2.sh: New file.
10782 * tests/test-pipe-filter-ii2-main.c: New file.
10783 * tests/test-pipe-filter-ii2-child.c: New file.
10785 New module 'pipe-filter-ii'.
10786 * lib/pipe-filter.h: New file.
10787 * lib/pipe-filter-ii.c: New file.
10788 * lib/pipe-filter-aux.h: New file.
10789 * modules/pipe-filter-ii: New file.
10791 2009-08-02 Simon Josefsson <simon@josefsson.org>
10793 * lib/gc-libgcrypt.c: Change copyright to FSF.
10794 * lib/gc-gnulib.c: Likewise.
10796 2009-08-02 Martin Lambers <marlam@marlam.de> (tiny change)
10798 * lib/gethostname.c: Include limits.h.
10800 2009-08-02 Simon Josefsson <simon@josefsson.org>
10801 Bruno Haible <bruno@clisp.org>
10803 Ensure HOST_NAME_MAX as part of the gethostname module.
10804 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
10805 define also HOST_NAME_MAX.
10806 * tests/test-gethostname.c: Include <limits.h>.
10807 (main): Check also HOST_NAME_MAX.
10808 * doc/posix-headers/limits.texi: Document the mingw problem.
10810 2009-08-02 Bruno Haible <bruno@clisp.org>
10812 * lib/gethostname.c (gethostname): Fix handling of large len argument.
10815 2009-03-31 Simon Josefsson <simon@josefsson.org>
10817 * lib/gethostname.c: Add Windows wrapper.
10818 * m4/gethostname.m4: Look for gethostname in -lws2_32.
10819 * modules/gethostname: Depend on sys_socket & errno, for also
10820 added lib/w32sock.h. Add GETHOSTNAME_LIB link directive.
10821 * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
10823 2009-07-31 Jim Meyering <meyering@redhat.com>
10825 getloadavg: fix symbol name in comment
10826 * lib/getloadavg.c: Correct a typo I introduced when adding
10827 comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
10828 Matt Kraai spotted the problem.
10830 2009-07-29 Matt Kraai <mkraai@beckman.com>
10832 getloadavg: check whether n_name is a pointer, for QNX 6.4.1
10833 * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
10834 code also if ! defined N_NAME_POINTER.
10835 * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
10836 This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
10837 but the n_name member is a 12-byte array.
10839 2009-07-29 Joel E. Denny <jdenny@clemson.edu>
10841 update-copyright: generalize comment handling
10842 * build-aux/update-copyright: Handle copyright statements
10843 within more comment styles.
10845 Report any file with an external copyright holder or parse failure.
10847 2009-07-29 Jim Meyering <meyering@redhat.com>
10849 mktime: correct setting of REPLACE_MKTIME
10850 * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
10852 update-copyright: new module
10853 * modules/update-copyright: New file.
10854 * build-aux/update-copyright: New file.
10855 * MODULES.html.sh (maint+release support): Add update-copyright.
10857 2009-07-27 Bruno Haible <bruno@clisp.org>
10859 Fix compilation error when <ctime> is used and mktime is replaced.
10860 * lib/time.in.h (mktime): New declaration.
10861 * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
10862 REPLACE_MKTIME instead of defining mktime in config.h.
10863 * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
10864 * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
10865 Reported by Ross McFarland <rwmcfa1@neces.com>.
10867 2009-07-27 Bruno Haible <bruno@clisp.org>
10869 * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
10870 Reported by Matt Kraai <mkraai@beckman.com>.
10872 2009-07-25 Jim Meyering <meyering@redhat.com>
10874 maint.mk: avoid warnings about missing files
10875 * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
10876 diagnostic when .prev-version does not exist.
10877 (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
10878 (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
10879 nonexistent cfg.mk.
10880 Suggestions from Simon Josefsson.
10882 2009-07-25 Bruno Haible <bruno@clisp.org>
10884 * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
10885 defined as macros. Needed on QNX 6.4.1.
10886 Reported by Matt Kraai <mkraai@beckman.com>.
10888 2009-07-23 Jim Meyering <meyering@redhat.com>
10890 maint.mk: invoke "make dist" with a working value of XZ_OPT
10891 * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
10893 2009-07-22 Matt Kraai <mkraai@beckman.com> (tiny change)
10895 Make fseeko.c compile on QNX.
10896 * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
10898 2009-07-22 Peter Simons <simons@cryp.to>
10900 C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
10901 * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
10902 * lib/md4.h: Likewise.
10903 * lib/md5.h: Likewise.
10904 * lib/sha1.h: Likewise.
10905 * lib/sha256.h: Likewise.
10906 * lib/sha512.h: Likewise.
10908 tests-sha1: don't assign literal string to 'char *' variable
10909 * tests/test-sha1.c (main): Declare locals with "const" to match
10910 attributes of the right hand side.
10912 2009-07-21 Eric Blake <ebb9@byu.net>
10914 dup2: fix more mingw problems
10915 * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
10917 * doc/posix-functions/dup2.texi (dup2): Document the bug.
10918 * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
10919 * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
10920 (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
10921 care of mingw bugs.
10923 2009-07-21 Jim Meyering <meyering@redhat.com>
10925 vc-list-files: avoid failure when /bin/sh is dash
10926 * build-aux/vc-list-files: Avoid a shell portability problem with dash.
10927 On some Debian based systems, /bin/sh is a symlink to dash, and running
10928 this command would omit the "/" following each 'tests' prefix:
10929 dash -x build-aux/vc-list-files -C . tests
10930 That is because bash and dash work differently:
10931 $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
10935 2009-07-21 Eric Blake <ebb9@byu.net>
10937 dup2-tests: test previous patch
10938 * modules/dup2-tests: New file.
10939 * tests/test-dup2.c: Likewise.
10940 * tests/test-open.c (main): Avoid unspecified behavior.
10941 * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
10944 dup2: work around mingw and cygwin 1.5 bug
10945 * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
10946 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
10947 * modules/unistd (Makefile.am): Substitute it.
10948 * lib/unistd.in.h (dup2): Declare the replacement.
10949 * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
10950 * doc/posix-functions/dup2.texi (dup2): Document the bugs.
10951 * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
10952 * modules/execute (Depends-on): Add dup2.
10953 * modules/fseterr (Depends-on): Likewise.
10954 * modules/pipe (Depends-on): Likewise.
10955 * modules/posix_spawn-internal (Depends-on): Likewise.
10957 2009-07-21 Bruno Haible <bruno@clisp.org>
10959 * modules/.gitattributes: New file.
10961 2009-07-20 Bruno Haible <bruno@clisp.org>
10963 * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
10966 2009-07-20 Eric Blake <ebb9@byu.net>
10968 test-pipe: make a bit more robust.
10969 * tests/test-pipe.c (myerr): Allow error messages regardless of
10970 what we do to stderr.
10971 (test_pipe): Rearrange to avoid deadlock.
10972 (child_main): Try a larger read, to ensure we avoided deadlock.
10973 * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
10974 * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
10977 2009-07-19 Jim Meyering <meyering@redhat.com>
10979 fts: avoid false-positive cycle-detection
10980 * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
10981 for each new command line argument.
10983 2009-07-19 Bruno Haible <bruno@clisp.org>
10985 Fix build error on mingw with the modules sys_select and unistd.
10986 * modules/acl-tests (Depends-on): Add close.
10987 * modules/binary-io-tests (Depends-on): Likewise.
10988 * modules/closein-tests (Depends-on): Likewise.
10989 * modules/flock-tests (Depends-on): Likewise.
10990 * modules/fsync-tests (Depends-on): Likewise.
10991 * modules/lseek-tests (Depends-on): Likewise.
10992 * modules/pipe-tests (Depends-on): Likewise.
10993 * modules/posix_spawn-tests (Depends-on): Likewise.
10994 * modules/posix_spawnp-tests (Depends-on): Likewise.
10995 * modules/stat-time-tests (Depends-on): Likewise.
10996 * modules/yesno-tests (Depends-on): Likewise.
10998 2009-07-19 Bruno Haible <bruno@clisp.org>
11000 Unify conditionals.
11001 * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
11002 macros, not at the compiler macros.
11003 * lib/pipe.c: Likewise.
11004 * lib/execute.c: Likewise.
11005 * lib/spawni.c: Likewise.
11007 2009-07-19 Bruno Haible <bruno@clisp.org>
11009 Fix handling of closed stdin/stdout/stderr on mingw.
11010 * lib/w32spawn.h: Include unistd.h.
11011 (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
11012 file descriptor with O_NOINHERIT flag.
11013 (fd_safer_noinherit): New function, based on fd-safer.c.
11014 (dup_safer_noinherit): New function, based on dup-safer.c.
11015 (undup_safer_noinherit): New function.
11016 * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
11017 dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
11018 * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
11019 instead of fd_safer.
11020 * tests/test-pipe.c: Include <windows.h>.
11021 (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
11023 * tests/test-pipe.c (child_main, parent_main): New functions, extracted
11025 (test_pipe): Pass an extra argument for disambiguation.
11026 (main): Invoke parent_main or child_main.
11028 * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
11031 2009-07-18 Eric Blake <ebb9@byu.net>
11033 test-pipe: fix mingw build
11034 * tests/test-pipe.c (main): Avoid fcntl on mingw.
11036 2009-07-18 Bruno Haible <bruno@clisp.org>
11038 * modules/pipe-tests (Makefile.am): Fix typo.
11040 2009-07-18 Eric Blake <ebb9@byu.net>
11042 error: fix mingw build
11043 * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
11044 Reported by Bruno Haible.
11046 error: avoid undefined use of stdout
11047 * lib/error.c (error, error_at_line): Check that fd 1 is open
11048 before flushing stdout. Avoids a crash on cygwin when libsigsegv
11049 is handling faults and the close_stdout module wants to report the
11050 detection of closed stdout as an error.
11052 2009-07-17 Eric Blake <ebb9@byu.net>
11054 pipe: be robust in face of closed fds
11055 * lib/pipe.c (create_pipe): Closed standard descriptors in parent
11056 should cause child to misbehave.
11057 * modules/pipe-tests: New module.
11058 * tests/test-pipe.c: New file.
11059 * tests/test-pipe.sh: New file.
11060 Reported by Akim Demaille.
11062 2009-07-14 Bruno Haible <bruno@clisp.org>
11064 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
11065 Reported by anonymous kc.
11067 2009-07-07 Jim Meyering <meyering@redhat.com>
11069 maint.mk: don't look for translatable strings in *.m4 or *.mk
11070 * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
11071 when searching for translatable strings.
11073 2009-07-05 Jim Meyering <meyering@redhat.com>
11075 remove superfluous parentheses in STREQ definition
11076 * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
11077 * lib/getugroups.c (STREQ): Likewise.
11078 * lib/fnmatch.c (STREQ): Likewise.
11079 Spotted by Bruno Haible.
11081 2009-07-04 Jim Meyering <meyering@redhat.com>
11083 argv-iter: new module
11084 * MODULES.html.sh: Add argv-iter.
11085 * lib/argv-iter.c, lib/argv-iter.h: New files.
11086 * modules/argv-iter: New file.
11087 * modules/argv-iter-tests: New file.
11088 * tests/test-argv-iter.c: Test it.
11090 2009-07-04 Bruno Haible <bruno@clisp.org>
11093 * lib/git-merge-changelog.c (compute_mapping): In the case where file1
11094 contains more exact copies of a given entry than file2, leave the extra
11095 copies unpaired rather than aborting.
11096 Reported by Eric Blake.
11098 2009-07-02 Bruno Haible <bruno@clisp.org>
11100 Speedup git-merge-changelog for git cherry-pick.
11101 * lib/git-merge-changelog.c (struct entries_mapping): New type.
11102 (entries_mapping_get): New function, extracted from compute_mapping.
11103 (entries_mapping_reverse_get): New function.
11104 (compute_mapping): Add a 'full' argument. Return the result in a
11105 'struct entries_mapping'.
11106 (main): Update. Access the mappings through entries_mapping_get.
11107 Reported by Eric Blake.
11109 2009-07-02 Bruno Haible <bruno@clisp.org>
11111 * lib/git-merge-changelog.c (compute_mapping): Fix determination of
11114 2009-07-02 Bruno Haible <bruno@clisp.org>
11116 Speed up approximate search for matching ChangeLog entries.
11117 * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
11118 argument. Call fstrcmp_bounded instead of fstrcmp.
11119 (compute_mapping, try_split_merged_entry, main): Update callers.
11121 2009-07-02 Bruno Haible <bruno@clisp.org>
11123 * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
11125 2009-06-30 Bruno Haible <bruno@clisp.org>
11127 Reduce the number of uc_is_cased calls.
11128 * lib/unicase.h (casing_suffix_context_t): Add
11129 'first_char_except_ignorable' field.
11130 * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
11131 (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
11132 * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
11133 Update initializer.
11134 * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
11135 case-ignorable characters.
11136 * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
11137 * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
11138 * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
11139 * modules/unicase/u16-suffix-context (Depends-on): Likewise.
11140 * modules/unicase/u32-suffix-context (Depends-on): Likewise.
11142 2009-06-30 Bruno Haible <bruno@clisp.org>
11144 Tests for module 'unicase/ignorable'.
11145 * modules/unicase/ignorable-tests: New file.
11146 * tests/unicase/test-ignorable.c: New file, generated by
11149 Tests for module 'unicase/cased'.
11150 * modules/unicase/cased-tests: New file.
11151 * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
11152 * tests/unicase/test-predicate-part1.h: New file, derived from
11153 tests/unictype/test-predicate-part1.h.
11154 * tests/unicase/test-predicate-part2.h: New file, same as
11155 tests/unictype/test-predicate-part2.h.
11157 Fix evaluation of "Before C" condition of FINAL_SIGMA.
11158 * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
11159 (output_casing_properties): New function.
11161 * lib/unicase/cased.h: New file, generated by gen-uni-tables.
11162 * lib/unicase/cased.c: Include unictype/bitmap.h.
11163 (uc_is_cased): Define through a bitmap lookup.
11164 * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
11165 * lib/unicase/ignorable.c: Include unictype/bitmap.h.
11166 (uc_is_case_ignorable): Define through a bitmap lookup.
11167 * modules/unicase/cased (Files): Add lib/unicase/cased.h,
11168 lib/unictype/bitmap.h.
11169 (Depends-on): Add inline. Clean up.
11170 * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
11171 lib/unictype/bitmap.h.
11172 (Depends-on): Add inline. Clean up.
11173 * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
11175 * tests/unicase/test-u16-tolower.c (main): Likewise.
11176 * tests/unicase/test-u32-tolower.c (main): Likewise.
11178 2009-06-30 Bruno Haible <bruno@clisp.org>
11180 * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
11181 * lib/unicase/u16-casemap.c: Likewise.
11182 * lib/unicase/u32-casemap.c: Likewise.
11184 2009-06-29 Bruno Haible <bruno@clisp.org>
11186 Define u32_casefold as a wrapper around u32_ct_casefold.
11187 * lib/unicase/u32-casefold.c: Update.
11188 * modules/unicase/u32-casefold (Depends-on): Add
11189 unicase/u32-ct-casefold, unicase/empty-prefix-context,
11190 unicase/empty-suffix-context. Clean up.
11192 Define u16_casefold as a wrapper around u16_ct_casefold.
11193 * lib/unicase/u16-casefold.c: Update.
11194 * modules/unicase/u16-casefold (Depends-on): Add
11195 unicase/u16-ct-casefold, unicase/empty-prefix-context,
11196 unicase/empty-suffix-context. Clean up.
11198 Define u8_casefold as a wrapper around u8_ct_casefold.
11199 * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
11200 * lib/unicase/u8-casefold.c: Update.
11201 * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
11202 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11204 Define u32_totitle as a wrapper around u32_ct_totitle.
11205 * lib/unicase/u32-totitle.c: Update.
11206 * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
11207 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11209 Define u16_totitle as a wrapper around u16_ct_totitle.
11210 * lib/unicase/u16-totitle.c: Update.
11211 * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
11212 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11214 Define u8_totitle as a wrapper around u8_ct_totitle.
11215 * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
11217 (FUNC): Delegate to U_CT_TOTITLE.
11218 * lib/unicase/u8-totitle.c: Update.
11219 * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
11220 unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
11222 * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
11224 * modules/unicase/u32-tolower (Depends-on): Add
11225 unicase/empty-prefix-context, unicase/empty-suffix-context.
11227 * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
11229 * modules/unicase/u16-tolower (Depends-on): Add
11230 unicase/empty-prefix-context, unicase/empty-suffix-context.
11232 * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
11233 * modules/unicase/u8-tolower (Depends-on): Add
11234 unicase/empty-prefix-context, unicase/empty-suffix-context.
11236 * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
11238 * modules/unicase/u32-toupper (Depends-on): Add
11239 unicase/empty-prefix-context, unicase/empty-suffix-context.
11241 * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
11243 * modules/unicase/u16-toupper (Depends-on): Add
11244 unicase/empty-prefix-context, unicase/empty-suffix-context.
11246 * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
11247 * modules/unicase/u8-toupper (Depends-on): Add
11248 unicase/empty-prefix-context, unicase/empty-suffix-context.
11250 New module 'unicase/u32-ct-casefold'.
11251 * lib/unicase/u32-ct-casefold.c: New file.
11252 * modules/unicase/u32-ct-casefold: New file.
11254 New module 'unicase/u16-ct-casefold'.
11255 * lib/unicase/u16-ct-casefold.c: New file.
11256 * modules/unicase/u16-ct-casefold: New file.
11258 New module 'unicase/u8-ct-casefold'.
11259 * lib/unicase/u8-ct-casefold.c: New file.
11260 * lib/unicase/u-ct-casefold.h: New file, derived from
11261 lib/unicase/u-casefold.h.
11262 * modules/unicase/u8-ct-casefold: New file.
11264 New module 'unicase/u32-ct-totitle'.
11265 * lib/unicase/u32-ct-totitle.c: New file.
11266 * modules/unicase/u32-ct-totitle: New file.
11268 New module 'unicase/u16-ct-totitle'.
11269 * lib/unicase/u16-ct-totitle.c: New file.
11270 * modules/unicase/u16-ct-totitle: New file.
11272 New module 'unicase/u8-ct-totitle'.
11273 * lib/unicase/u8-ct-totitle.c: New file.
11274 * lib/unicase/u-ct-totitle.h: New file, derived from
11275 lib/unicase/u-totitle.h.
11276 * modules/unicase/u8-ct-totitle: New file.
11278 New module 'unicase/u32-ct-tolower'.
11279 * lib/unicase/u32-ct-tolower.c: New file.
11280 * modules/unicase/u32-ct-tolower: New file.
11282 New module 'unicase/u16-ct-tolower'.
11283 * lib/unicase/u16-ct-tolower.c: New file.
11284 * modules/unicase/u16-ct-tolower: New file.
11286 New module 'unicase/u8-ct-tolower'.
11287 * lib/unicase/u8-ct-tolower.c: New file.
11288 * modules/unicase/u8-ct-tolower: New file.
11290 New module 'unicase/u32-ct-toupper'.
11291 * lib/unicase/u32-ct-toupper.c: New file.
11292 * modules/unicase/u32-ct-toupper: New file.
11294 New module 'unicase/u16-ct-toupper'.
11295 * lib/unicase/u16-ct-toupper.c: New file.
11296 * modules/unicase/u16-ct-toupper: New file.
11298 New module 'unicase/u8-ct-toupper'.
11299 * lib/unicase/u8-ct-toupper.c: New file.
11300 * modules/unicase/u8-ct-toupper: New file.
11302 Add context arguments to u*_casemap functions.
11303 * lib/unicase/unicasemap.h: Include unicase.h.
11304 (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
11305 suffix_context arguments.
11306 * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
11308 (FUNC): Add prefix_context and suffix_context arguments. Use
11309 uc_is_cased and uc_is_case_ignorable.
11310 * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
11311 * lib/unicase/u16-casemap.c: Likewise.
11312 * lib/unicase/u32-casemap.c: Likewise.
11313 * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
11314 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11315 * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
11316 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11317 * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
11318 (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
11320 New module 'unicase/u32-suffix-context'.
11321 * lib/unicase/u32-suffix-context.c: New file.
11322 * modules/unicase/u32-suffix-context: New file.
11324 New module 'unicase/u16-suffix-context'.
11325 * lib/unicase/u16-suffix-context.c: New file.
11326 * modules/unicase/u16-suffix-context: New file.
11328 New module 'unicase/u8-suffix-context'.
11329 * lib/unicase/u8-suffix-context.c: New file.
11330 * lib/unicase/u-suffix-context.h: New file.
11331 * modules/unicase/u8-suffix-context: New file.
11333 New module 'unicase/empty-suffix-context'.
11334 * lib/unicase/empty-suffix-context.c: New file.
11335 * modules/unicase/empty-suffix-context: New file.
11337 New module 'unicase/u32-prefix-context'.
11338 * lib/unicase/u32-prefix-context.c: New file.
11339 * modules/unicase/u32-prefix-context: New file.
11341 New module 'unicase/u16-prefix-context'.
11342 * lib/unicase/u16-prefix-context.c: New file.
11343 * modules/unicase/u16-prefix-context: New file.
11345 New module 'unicase/u8-prefix-context'.
11346 * lib/unicase/u8-prefix-context.c: New file.
11347 * lib/unicase/u-prefix-context.h: New file.
11348 * lib/unicase/context.h: New file.
11349 * modules/unicase/u8-prefix-context: New file.
11351 New module 'unicase/empty-prefix-context'.
11352 * lib/unicase/empty-prefix-context.c: New file.
11353 * modules/unicase/empty-prefix-context: New file.
11355 New module 'unicase/ignorable'.
11356 * lib/unicase/ignorable.c: New file.
11357 * modules/unicase/ignorable: New file.
11359 New module 'unicase/cased'.
11360 * lib/unicase/caseprop.h: New file.
11361 * lib/unicase/cased.c: New file.
11362 * modules/unicase/cased: New file.
11364 New functions for case mapping of substrings.
11365 * lib/unicase.h (casing_prefix_context_t): New type.
11366 (unicase_empty_prefix_context): New variable.
11367 (u8_casing_prefix_context, u16_casing_prefix_context,
11368 u32_casing_prefix_context, u8_casing_prefixes_context,
11369 u16_casing_prefixes_context, u32_casing_prefixes_context): New
11371 (casing_suffix_context_t): New type.
11372 (unicase_empty_suffix_context): New variable.
11373 (u8_casing_suffix_context, u16_casing_suffix_context,
11374 u32_casing_suffix_context, u8_casing_suffixes_context,
11375 u16_casing_suffixes_context, u32_casing_suffixes_context,
11376 u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
11377 u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
11378 u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
11381 2009-06-28 Jim Meyering <meyering@redhat.com>
11383 boostrap: indent only with spaces
11384 * build-aux/bootstrap: Indent only with spaces, never TABs.
11386 bootstrap: split long lines
11387 * build-aux/bootstrap: Keep line length < 80.
11389 bootstrap: sync from coreutils
11390 * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
11391 just as autoreconf does. Verify a list of prerequisite
11392 package-name,version-number pairs if defined in bootstrap.conf.
11393 Refer to README-prereq, if prerequisites are not satisfied.
11395 2009-06-27 Eric Blake <ebb9@byu.net>
11397 tests: add test for bogus NULL definition
11398 * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
11399 * tests/test-stdlib.c: Likewise.
11400 * tests/test-string.c: Likewise.
11401 * tests/test-locale.c: Likewise.
11402 * tests/test-unistd.c: Likewise.
11403 * modules/stdio-tests (Depends-on): Add verify.
11404 * modules/stdlib-tests (Depends-on): Likewise.
11405 * modules/string-tests (Depends-on): Likewise.
11406 * modules/locale-tests (Depends-on): Likewise.
11407 * modules/unistd-tests (Depends-on): Likewise.
11409 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
11411 * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
11412 self-explaining comment.
11413 * m4/selinux-selinux-h: Update serial.
11414 (gl_LIBSELINUX): New macro, adding a warning for missing development
11415 packages to code extracted from...
11416 (gl_HEADERS_SELINUX_SELINUX_H): ... this one. Require gl_LIBSELINUX.
11417 Add warning for missing development packages here, too.
11419 2009-06-26 Paolo Bonzini <bonzini@gnu.org>
11421 * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
11423 2009-06-25 Eric Blake <ebb9@byu.net>
11425 version-etc: fix regression
11426 * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
11428 (version_etc): Use it, to catch bugs with trailing NULL.
11429 * lib/version-etc.c (version_etc_arn): Delete unused argument.
11430 (version_etc_va): Fix logic bug.
11431 * modules/version-etc-tests: Add test.
11432 * tests/test-version-etc.c: New file.
11433 * tests/test-version-etc.sh: Likewise.
11435 2009-06-25 Sam Steingold <sds@gnu.org>
11437 * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
11438 mbtowc declaration.
11440 2009-06-25 Eric Blake <ebb9@byu.net>
11442 fpurge: migrate into <stdio.h>
11443 * lib/fpurge.h: Delete...
11444 * lib/stdio.in.h (fpurge): ...and declare here, instead.
11445 * lib/fpurge.c (fpurge): Change declaring header.
11446 * modules/fpurge (Files): Drop deleted file.
11447 (Depends-on): Add stdio.
11448 (configure.ac): Set witness.
11449 * modules/stdio (Makefile.am): Support fpurge macros.
11450 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11451 * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
11452 * lib/fflush.c: Update client.
11453 * tests/test-fpurge.c: Likewise.
11454 * NEWS: Mention the change.
11456 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11458 * lib/argp-version-etc.c (program_authors): Add const
11460 * lib/version-etc.c: Fix typos in the comments.
11461 * modules/argp-version-etc: Depends on version-etc.
11463 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11465 argp-version-etc: new module.
11467 * lib/argp-version-etc.c: New file.
11468 * lib/argp-version-etc.h: New file.
11469 * modules/argp-version-etc: New file.
11470 * modules/argp-version-etc-tests: New file.
11471 * tests/test-argp-version-etc.c: New test.
11472 * tests/test-argp-version-etc-1.sh: New test.
11474 2009-06-25 Sergey Poznyakoff <gray@gnu.org.ua>
11476 Provide additional interfaces and documentation for version-etc
11479 * lib/version-etc.c (version_etc_arn, version_etc_ar): New
11481 * lib/version-etc.h (version_etc_arn, version_etc_ar): New
11484 2009-06-24 Bruno Haible <bruno@clisp.org>
11486 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
11487 HAVE_LIB${NAME} macro.
11488 Reported by Sam Steingold <sds@gnu.org>.
11490 2009-06-23 Simon Josefsson <simon@josefsson.org>
11492 * modules/hash-tests (test_hash_LDADD): Link to libintl when
11495 2009-06-21 Bruno Haible <bruno@clisp.org>
11497 Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
11499 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
11500 together with LIB${NAME}, LTLIB${NAME}.
11501 Reported by Sam Steingold <sds@gnu.org>.
11503 2009-06-20 Jim Meyering <meyering@redhat.com>
11505 tests: make sc_require_test_exit_idiom more generic
11506 * top/maint.mk (Exit_witness_file): New overridable variable.
11507 (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
11508 Relax test for /^Exit \$fail$$/ to just /^Exit ./.
11510 2009-06-19 Jim Meyering <meyering@redhat.com>
11512 hash: reverse order of src/dst parameters in an internal interface
11513 * lib/hash.c (transfer_entries): Reverse order of parameters to
11514 put DST before SRC. Adjust callers.
11516 tests: test-hash: avoid wholesale duplication
11517 * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
11518 Instead, use a loop and add a single conditional.
11520 tests: test-hash: allow seed selection via a command line argument
11521 * tests/test-hash.c (get_seed): New function.
11524 2009-06-19 Eric Blake <ebb9@byu.net>
11526 hash: avoid memory leak on allocation failure
11527 * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
11528 failure. Factor repeated algorithm...
11529 (transfer_entries): ...into new helper routine.
11530 (hash_delete): React to hash_rehash return value.
11532 hash: reduce memory pressure in hash_rehash no-op case
11533 * lib/hash.c (next_prime): Avoid overflow.
11534 (hash_initialize): Factor bucket size computation...
11535 (compute_bucket_size): ...into new helper function.
11536 (hash_rehash): Use new function and open coding to reduce memory
11537 pressure, and avoid a memory leak in USE_OBSTACK code.
11538 Reported by Jim Meyering.
11540 2009-06-18 Eric Blake <ebb9@byu.net>
11542 hash: make rotation more obvious
11543 * modules/hash (Depends-on): Add bitrotate and stdint.
11544 * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
11545 * lib/hash.c (headers): Drop limits.h. Add stdint.h.
11546 (SIZE_MAX): Rely on headers for definition.
11547 (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
11548 (raw_hasher): Use rotr_sz.
11549 Suggested by Jim Meyering.
11551 hash: fix memory leak in last patch
11552 * lib/hash.c (hash_rehash): Avoid memory leak.
11554 hash: avoid no-op rehashing
11555 * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
11557 hash: provide default callback functions
11558 * lib/hash.c (raw_hasher, raw_comparator): New functions.
11559 (hash_initialize): Use them as defaults.
11560 * tests/test-hash.c (main): Test this.
11562 hash: minor optimization
11563 * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
11565 (hash_initialize): Document this promise.
11566 (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
11567 * tests/test-hash.c (hash_compare_strings): Test this.
11569 2009-06-18 Bruno Haible <bruno@clisp.org>
11571 * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
11572 going to be replaced anyway.
11574 2009-06-18 Bruno Haible <bruno@clisp.org>
11576 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
11578 (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
11579 be replaced anyway.
11581 2009-06-18 Eric Blake <ebb9@byu.net>
11583 hash: check for resize before insertion
11584 * lib/hash.c (hash_insert): Check whether bucket usage exceeds
11585 threshold before insertion, so that a pathological hash_rehash
11586 that fills every bucket can still trigger another rehash.
11588 2009-06-18 Jim Meyering <meyering@redhat.com>
11590 hash-tests: add a loop around the small tests
11591 * tests/test-hash.c (main): Repeat small tests with selected
11592 small initial table sizes.
11594 2009-06-17 Eric Blake <ebb9@byu.net>
11596 hash: minor cleanups
11597 * lib/hash.h (hash_entry): Make opaque, by moving...
11598 * lib/hash.c (hash_entry): ...here.
11599 (hash_insert): Clarify restrictions on what can be inserted.
11600 (hash_get_next): Clarify when it is safe to remove an element
11602 (check_tuning): Skip verification when tuning is known safe.
11603 (hash_initialize): Clarify restrictions on tuning.
11605 2009-06-17 Jim Meyering <jim@meyering.net>
11606 and Eric Blake <ebb9@byu.net>
11608 hash-tests: new module
11609 * modules/hash-tests: New file.
11610 * tests/test-hash.c: New file.
11612 2009-06-17 Eric Blake <ebb9@byu.net>
11614 strstr-simple: document new module
11615 * MODULES.html.sh: Document new module.
11617 strstr, strcasestr: replace on platforms with broken memchr
11618 * modules/strstr: Split into...
11619 * modules/strstr-simple: ...new module that does not care about
11620 performance, but does care about glibc bug.
11621 * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
11622 (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
11623 if platform memchr is broken, per Debian bug 521737.
11624 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
11626 * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
11627 * doc/posix-functions/strstr.texi (strstr): Document the fix.
11628 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
11629 * modules/mountlist (Depends-on): Add strstr-simple.
11630 * modules/gen-uni-tables (Depends-on): Likewise.
11631 * modules/argz (Depends-on): Add strstr.
11633 2009-06-17 Bruno Haible <bruno@clisp.org>
11635 * modules/posix_spawn-internal (Depends-on): Add errno.
11637 2009-06-17 Bruno Haible <bruno@clisp.org>
11639 Define missing ESTALE on Interix 3.5.
11640 * lib/errno.in.h (ESTALE): Assign a value if missing.
11641 * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
11642 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
11644 * doc/posix-headers/errno.texi: Mention the Interix bug.
11645 Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
11647 2009-06-15 Eric Blake <ebb9@byu.net>
11649 memchr, memchr2: add valgrind exception
11650 * lib/memchr.valgrind: New file.
11651 * lib/memchr2.valgrind: New file.
11652 * modules/memchr (Files): Distribute valgrind file.
11653 * modules/memchr2 (Files): Likewise.
11655 docs: memchr is no longer obsolete
11656 * MODULES.html.sh: Move memchr from obsolete to string.h section.
11657 * lib/string.in.h (memchr): Simplify logic.
11659 2009-06-14 Jim Meyering <meyering@redhat.com>
11661 link-follow: fix the "checking..." message to not mention trailing slash
11662 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
11663 never considered trailing slashes.
11665 2009-06-14 Bruno Haible <bruno@clisp.org>
11667 * m4/memchr.m4: Mention also the bug on IA-64.
11668 * doc/posix-functions/memchr.texi: Likewise.
11670 2009-06-12 Eric Blake <ebb9@byu.net>
11672 memchr: detect broken x86_64 and alpha implementations
11673 * modules/memchr-tests (Depends-on): Move mmap detection...
11674 * modules/memchr (Depends-on): ...here.
11675 (configure.ac): Set indicator.
11676 * lib/string.in.h (memchr): Declare replacement.
11677 * modules/string (Makefile.am): Trigger replacement.
11678 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
11679 * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
11681 * doc/posix-functions/memchr.texi (memchr): Document the bug.
11682 * modules/getpagesize (License): Relax license.
11684 2009-06-11 Bruno Haible <bruno@clisp.org>
11686 * lib/idpriv.h: Add more references.
11688 2009-06-08 Bruno Haible <bruno@clisp.org>
11690 Tests for module 'idpriv-droptemp'.
11691 * modules/idpriv-droptemp-tests: New file.
11692 * tests/test-idpriv-droptemp.sh: New file.
11693 * tests/test-idpriv-droptemp.su.sh: New file.
11694 * tests/test-idpriv-droptemp.c: New file.
11696 New module 'idpriv-droptemp'.
11697 * lib/idpriv-droptemp.c: New file.
11698 * modules/idpriv-droptemp: New file.
11700 2009-06-08 Bruno Haible <bruno@clisp.org>
11702 Tests for module 'idpriv-drop'.
11703 * modules/idpriv-drop-tests: New file.
11704 * tests/test-idpriv-drop.sh: New file.
11705 * tests/test-idpriv-drop.su.sh: New file.
11706 * tests/test-idpriv-drop.c: New file.
11708 New module 'idpriv-drop'.
11709 * lib/idpriv.h: New file.
11710 * lib-idpriv-drop.c: New file.
11711 * m4/idpriv.m4: New file.
11712 * modules/idpriv-drop: New file.
11714 2009-06-08 Bruno Haible <bruno@clisp.org>
11716 * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
11717 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11718 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11719 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11720 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11721 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11722 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11724 2009-06-08 Eric Blake <ebb9@byu.net>
11726 test-strstr: use memory fence, when possible
11727 * tests/test-strstr.c (main): Use memory fence, in order to be
11728 more likely to trigger Debian bug 521737.
11729 * modules/strstr-tests (Files): Pull in additional files.
11731 memchr: no longer obsolete, for wider field testing
11732 * modules/memchr (Status, Notice): Delete, this module is no
11734 * modules/vasnprintf (Depends-on): Add memchr.
11736 2009-06-07 Jim Meyering <meyering@redhat.com>
11738 hash: declare some functions with the warn_unused_result attribute
11739 * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
11741 2009-06-07 Bruno Haible <bruno@clisp.org>
11743 * tests/test-alignof.c: Don't test int64_t if it does not exist.
11744 Reported by Eric Blake.
11746 2009-06-06 Eric Blake <ebb9@byu.net>
11748 test-alignof: fix typo with long double
11749 * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
11752 2009-06-06 Neil Jerram <neil@ossau.uklinux.net> (tiny change)
11754 Escape non-texinfo { and }s.
11755 * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
11758 2009-06-04 Jim Meyering <meyering@redhat.com>
11760 gitlog-to-changelog: don't infloop on an empty commit log
11761 * build-aux/gitlog-to-changelog: Warn about an empty log message.
11762 Reported by Boris Petersen <transacid@centerim.org>.
11764 2009-06-03 Mike Frysinger <vapier@gentoo.org>
11766 version-etc: extend for packagers
11767 Add three new configure options, intended for packagers:
11768 --with-packager="packager name"
11769 --with-packager-version="packager-specific version"
11770 --with-packager-bug-reports="packager bug reporting"
11771 An example with coreutils:
11773 --with-packager=Gentoo \
11774 --with-packager-bug-report=http://bugs.gentoo.org/ \
11775 --with-packager-version="patchset 1.6"
11776 $ ./src/ls --version | head -n2
11777 ls (GNU coreutils) 7.1-dirty
11778 Packaged by Gentoo (patchset 1.6)
11779 Note that the bug reporting info via --help doesn't show up because
11780 coreutils uses its own custom emit_bug_reporting_address() implementation
11781 in src/system.h. If it didn't, it'd look like:
11782 $ ./src/ls --help | tail -n4
11783 Report bugs to <bug-coreutils@gnu.org>.
11784 Report Gentoo bugs to <http://bugs.gentoo.org/>.
11785 GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
11786 General help using GNU software: <http://www.gnu.org/gethelp/>.
11787 * lib/version-etc.c: Print new information, if provided.
11788 * m4/version-etc.m4: New file.
11789 * modules/version-etc (Files): Add m4/version-etc.m4.
11790 (configure.ac): Add gl_VERSION_ETC.
11792 2009-05-31 Bruno Haible <bruno@clisp.org>
11794 * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
11796 * modules/alignof-tests (Dependencies): Add stdint.
11797 Reported by Eric Blake.
11799 2009-05-31 Bruno Haible <bruno@clisp.org>
11801 * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
11802 restriction due to compiler bugs.
11803 Reported by Eric Blake.
11805 2009-05-31 Simon Josefsson <simon@josefsson.org>
11806 Bruno Haible <bruno@clisp.org>
11808 Fix test-alignof failure.
11809 * lib/alignof.h (alignof_slot): New macro.
11810 (alignof_type): New macro, with the same semantics as the previous
11812 (alignof): Alias to alignof_slot.
11813 * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
11814 check that the results are usable as constant expressions.
11816 2009-05-31 Bruno Haible <bruno@clisp.org>
11818 * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
11819 * tests/test-memchr.c (main): Check that memchr does not read past the
11820 first occurrence of the byte.
11821 * tests/test-strstr.c (main): Update comment.
11822 Suggested by Eric Blake.
11824 2009-05-30 Bruno Haible <bruno@clisp.org>
11826 * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
11827 detail how to use dumpbin.
11828 Reported by David Byron <dbyron@dbyron.com>.
11830 2009-06-02 Simon Josefsson <simon@josefsson.org>
11832 * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
11834 2009-06-02 Simon Josefsson <simon@josefsson.org>
11836 * m4/manywarnings.m4: Add GCC 4.4 warnings.
11838 2009-05-28 Bruno Haible <bruno@clisp.org>
11840 * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
11843 2009-05-28 Simon Josefsson <simon@josefsson.org>
11845 * gnulib-tool (func_import): Transform license on build-aux/ files too.
11847 2009-05-27 Simon Josefsson <simon@josefsson.org>
11849 * gnulib-tool (sed_transform_main_lib_file)
11850 (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
11853 2009-05-26 Simon Josefsson <simon@josefsson.org>
11855 * tests/test-strstr.c: Add another self-test.
11856 * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
11857 strdup. Suggested by Eric Blake <ebb9@byu.net>.
11859 2009-05-23 Bruno Haible <bruno@clisp.org>
11861 * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
11864 2009-05-21 Bruno Haible <bruno@clisp.org>
11866 Simplify use of mode_t varargs.
11867 * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
11868 uses 'mode_t' or 'int'.
11869 * lib/openat.c (openat): Likewise.
11870 * lib/open-safer.c (open_safer): Likewise.
11871 * m4/mode_t.m4: New file.
11872 * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
11873 * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
11874 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
11875 * modules/open (Files): Add m4/mode_t.m4.
11876 * modules/openat (Files): Likewise.
11877 * modules/fcntl-safer (Files): Likewise.
11878 Suggested by Eric Blake.
11880 2009-05-21 Pádraig Brady <P@draigbrady.com>
11882 * doc/glibc-functions/fallocate.texi: New file.
11883 * doc/gnulib.texi: Include it.
11885 2009-05-21 Eric Blake <ebb9@byu.net>
11886 Bruno Haible <bruno@clisp.org>
11888 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
11890 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
11892 2009-05-21 Eric Blake <ebb9@byu.net>
11893 Bruno Haible <bruno@clisp.org>
11895 Second attempt to work around an AIX 5.3, 6.1 compiler bug with
11896 include_next. Fix of 2008-11-20 commit.
11897 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
11898 NEXT_AS_FIRST_DIRECTIVE_FOO_H.
11899 * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
11901 * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
11902 instead of NEXT_MATH_H.
11904 2009-05-21 Bruno Haible <bruno@clisp.org>
11906 Avoid redefinition warnings for SIZE_MAX.
11907 * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
11908 Reported by Simon Josefsson.
11910 2009-05-21 Bruno Haible <bruno@clisp.org>
11912 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
11915 2009-05-20 Bruno Haible <bruno@clisp.org>
11917 Make zeroptr.h work on mingw.
11918 * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
11920 * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
11921 * modules/memchr2-tests (configure.ac): Likewise.
11922 * modules/memcmp-tests (configure.ac): Likewise.
11923 * modules/memmem-tests (configure.ac): Likewise.
11924 * modules/memrchr-tests (configure.ac): Likewise.
11925 Reported by Simon Josefsson.
11927 2009-05-20 Simon Josefsson <simon@josefsson.org>
11929 * tests/test-glob.c: Include string.h for strcmp prototype.
11931 2009-05-20 Simon Josefsson <simon@josefsson.org>
11933 * modules/getdelim (Depends-on): Add explicit stdint, although it
11934 was implicitly already pulled in via realloc-posix.
11935 * lib/getdelim.c: Get SIZE_MAX from stdint.h.
11937 2009-05-20 Simon Josefsson <simon@josefsson.org>
11939 MinGW and IRIX does not have sa_family_t type. Reported by "Tom
11940 G. Christensen" <tgc@jupiterrise.com>.
11941 * m4/sys_socket_h.m4: Check for sa_family_t.
11942 * lib/sys_socket.in.h: Typedef sa_family_t when needed.
11943 * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
11944 * tests/test-sys_socket.c: Check that sa_family_t works.
11946 2009-05-18 Eric Blake <ebb9@byu.net>
11948 maint.mk: allow gnulib_dir in VPATH build
11949 * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
11951 2009-05-15 Jim Meyering <meyering@redhat.com>
11953 maint.mk: Give gnulib_dir a default definition.
11954 * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
11955 Thus, most packages no longer need to specify this variable in cfg.mk
11957 2009-05-14 Tom Prince <tom.prince@ualberta.net> (tiny change)
11959 rename.m4: fix typos that would make non-mingw cross-configure fail
11960 * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
11962 2009-05-13 Eric Blake <ebb9@byu.net>
11964 mmap-anon: avoid out-of-order autoconf expansion
11965 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
11966 SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
11967 * modules/memchr-tests (Depends-on): Add extensions.
11968 * modules/memchr2-tests (Depends-on): Add extensions.
11969 * modules/memcmp-tests (Depends-on): Add extensions.
11970 * modules/memmem-tests (Depends-on): Add extensions.
11971 * modules/memrchr-tests (Depends-on): Add extensions.
11973 2009-05-13 Bruno Haible <bruno@clisp.org>
11975 Make some tests ISO C 99 compliant.
11976 * tests/zerosize-ptr.h: New file.
11977 * tests/test-memchr.c: Include zerosize-ptr.h.
11978 (main): Use a zero-size object pointer instead of NULL.
11979 * tests/test-memchr2.c: Include zerosize-ptr.h.
11980 (main): Use a zero-size object pointer instead of NULL.
11981 * tests/test-memcmp.c: Include zerosize-ptr.h.
11982 (main): Use a zero-size object pointer instead of NULL.
11983 * tests/test-memmem.c: Include zerosize-ptr.h.
11984 (main): Use a zero-size object pointer instead of NULL.
11985 * tests/test-memrchr.c: Include zerosize-ptr.h.
11986 (main): Use a zero-size object pointer instead of NULL.
11987 * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
11989 (Depends-on): Add getpagesize.
11990 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11991 * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
11993 (Depends-on): Add getpagesize.
11994 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11995 * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
11997 (Depends-on): Add getpagesize.
11998 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
11999 * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
12001 (Depends-on): Add getpagesize.
12002 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12003 * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
12005 (Depends-on): Add getpagesize.
12006 (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
12008 2009-05-12 Bruno Haible <bruno@clisp.org>
12010 Tests for module 'alignof'.
12011 * modules/alignof-tests: New file.
12012 * tests/test-alignof.c: New file.
12014 2009-05-12 Bruno Haible <bruno@clisp.org>
12017 * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
12018 vendor compilers that are always correct.
12020 2009-05-12 Bruno Haible <bruno@clisp.org>
12022 Make the MAP_ANONYMOUS detection work on HP-UX 11.
12023 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
12024 not whether its fully works.
12026 2009-05-12 Bruno Haible <bruno@clisp.org>
12028 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
12030 2009-05-12 Jim Meyering <meyering@redhat.com>
12032 * top/maint.mk: Adjust backslash alignment.
12034 2009-05-11 Simon Josefsson <simon@josefsson.org>
12036 * top/maint.mk: Make $(srcdir)/build-aux configurable.
12038 2009-05-11 Eric Blake <ebb9@byu.net>
12040 argp: avoid undefined behavior
12041 * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
12044 2009-05-08 Simon Josefsson <simon@josefsson.org>
12046 * tests/test-vc-list-files-git.sh: Do git config of user.email and
12047 user.name to prevent git commit from complaining.
12049 2009-05-10 Bruno Haible <bruno@clisp.org>
12051 * gnulib-tool (func_import, func_create_testdir, copy-file): Change
12052 sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
12053 it rewrites every file name only once.
12054 Reported by Simon Josefsson. Helped by Ralf Wildenhues.
12056 2009-05-08 Bruno Haible <bruno@clisp.org>
12058 * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
12061 2009-05-08 Simon Josefsson <simon@josefsson.org>
12063 * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
12064 sockaddr_storage test.
12066 2009-05-07 Simon Josefsson <simon@josefsson.org>
12068 * modules/sys_socket (Makefile.am): Substitute
12069 HAVE_STRUCT_SOCKADDR_STORAGE. Depend on alignof.
12070 * m4/sys_socket_h.m4: Check for sockaddr_storage.
12071 * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
12072 * tests/test-sys_socket.c: Check sockaddr_storage.
12074 2009-05-08 Bruno Haible <bruno@clisp.org>
12076 New module 'alignof'.
12077 * lib/alignof.h: New file.
12078 * modules/alignof: New file.
12080 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12081 Bruno Haible <bruno@clisp.org>
12083 Fix test-file-has-acl on FreeBSD.
12084 * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
12085 mask is implicitly added.
12086 * tests/test-file-has-acl.c: Include <signal.h>.
12087 (main): Terminate the test after 5 seconds.
12088 * modules/acl-tests (configure.ac): Check for alarm function.
12090 2009-05-04 Bruno Haible <bruno@clisp.org>
12092 Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
12093 * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
12094 * modules/errno (configure.ac): Drop AC_REQUIRE.
12095 * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
12096 * modules/multiarch (configure.ac): Drop AC_REQUIRE.
12098 2009-05-04 Simon Josefsson <simon@josefsson.org>
12100 * modules/glob-tests: New module.
12101 * tests/test-glob.c: Add.
12103 2009-05-04 Simon Josefsson <simon@josefsson.org>
12105 * modules/fnmatch-tests: New module.
12106 * tests/test-fnmatch.c: Add.
12108 2009-05-04 Eric Blake <ebb9@byu.net>
12110 maint: make the new no-submodule-changes rule VPATH-safe
12111 * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
12113 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12114 Bruno Haible <bruno@clisp.org>
12116 acl: Fix infinite loop on FreeBSD.
12117 * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
12118 of return value from acl_get_entry.
12119 * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
12122 2009-05-03 Bruno Haible <bruno@clisp.org>
12124 * lib/acl-internal.h (acl_entries): Clarify return value.
12125 * lib/acl_entries.c (acl_entries): Likewise.
12127 2009-05-04 David Bartley <dtbartle@csclub.uwaterloo.ca>
12129 Bug fix in acl module.
12130 * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
12132 2009-05-03 Bruno Haible <bruno@clisp.org>
12134 Create gperf-generated file in the source dir, not in the build dir.
12135 * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
12136 iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
12137 * modules/unicase/locale-language (unicase/locale-languages.h):
12139 * modules/unicase/special-casing (unicase/special-casing-table.h):
12141 * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
12142 * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
12143 * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
12144 Reported by Ralf Wildenhues.
12146 2009-05-03 Bruno Haible <bruno@clisp.org>
12148 * modules/fnmatch (Description, configure.ac): Taken from
12150 * modules/fnmatch-posix: Turn into a symbolic reference to the
12151 'fnmatch' module, and deprecate.
12152 * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
12154 2009-05-03 Bruno Haible <bruno@clisp.org>
12156 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
12157 gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
12158 Reported by Ralf Wildenhues.
12160 2009-05-04 Simon Josefsson <simon@josefsson.org>
12162 * m4/fnmatch.m4: Fix fnmatch re-define.
12164 2009-04-27 David Bartley <dtbartle@csclub.uwaterloo.ca>
12166 priv-set: new module and tests; adapt write-any-file
12167 * lib/priv-set.c: New file.
12168 * lib/priv-set.h: New file.
12169 * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
12170 * lib/write-any-file.c: Simplify by using priv-set module.
12171 * m4/priv-set.m4: New file.
12172 * modules/priv-set: New file.
12173 * modules/unlinkdir: Add dependency on priv-set module.
12174 * modules/write-any-file: Likewise.
12176 Tests for module 'priv-set'.
12177 * modules/priv-set-tests: New file.
12178 * tests/test-priv-set.c: New file.
12180 2009-05-03 Jim Meyering <meyering@redhat.com>
12181 Bruno Haible <bruno@clisp.org>
12183 * lib/propername.c (proper_name_utf8): Ignore no-op translations;
12184 use the converted UTF-8 variant of the name instead.
12186 2009-05-03 Jim Meyering <meyering@redhat.com>
12188 tests: tighten some getdate tests
12189 * tests/test-getdate.c (main): Tighten tests: require equality,
12190 not just greater than. Set TZ envvar to UTC0.
12192 2009-05-03 Giuseppe Scrivano <gscrivano@gnu.org>
12194 getdate: correctly interpret "next monday" when run on a Monday
12195 * lib/getdate.y (get_date): Correct the calculation of tm_mday so
12196 that e.g., "next tues" (when run on a tuesday) results in a date
12197 that is one week in the future, and not today's date.
12198 I.e., add a week when the wday is the same as the current one.
12199 Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
12200 and earlier by Martin Bernreuther and Jan Minář.
12201 * tests/test-getdate.c (main): Check that "next DAY" is always in
12202 the future and that "last DAY" is always in the past.
12204 2009-05-02 Jim Meyering <meyering@redhat.com>
12206 build: ensure that a release build fails when a submodule is unclean
12207 * top/maint.mk (no-submodule-changes): New rule.
12208 (alpha beta major): Depend on it.
12210 2009-05-02 Bruno Haible <bruno@clisp.org>
12212 Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
12213 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
12214 shell variable gl_fnmatch_required to detect which variant is
12216 (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
12217 gl_FUNC_FNMATCH_POSIX.
12218 * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
12219 exclude fnmatch-posix.
12221 2009-05-02 Bruno Haible <bruno@clisp.org>
12223 Relicense mbsrtowcs and strnlen1 under LGPLv2+.
12224 * modules/mbsrtowcs (License): Change to LGPLv2+.
12225 * modules/strnlen1 (License): Likewise.
12226 Reported by Simon Josefsson.
12228 2009-05-02 Bruno Haible <bruno@clisp.org>
12230 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
12232 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
12233 gnulib-tool was called with option --source-base=lib.
12235 2009-05-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12237 Use automake *-local hooks without commands, for extensibility.
12238 * modules/localcharset (Makefile.am): Rename install-exec-local
12239 rule to install-exec-localcharset, and make it a prerequisite of
12240 install-exec-local. Likewise, rename the uninstall-local rule to
12241 uninstall-localcharset, and make it a prerequisite of the former.
12243 2009-05-01 Bruno Haible <bruno@clisp.org>
12245 * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
12246 * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12247 set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
12248 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
12249 * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
12250 * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12251 m4/locale-zh.m4, m4/codeset.m4.
12253 * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
12254 set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
12255 * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
12258 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
12259 REPLACE_WCRTOMB if mbstate_t must be replaced.
12260 * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
12261 Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
12263 2009-05-01 Bruno Haible <bruno@clisp.org>
12265 Avoid compiler warnings when redefining macros defined by <libintl.h>.
12266 * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
12267 dngettext, dcngettext, textdomain, bindtextdomain,
12268 bind_textdomain_codeset): Undefine before redefining.
12270 2009-04-30 Bruno Haible <bruno@clisp.org>
12272 Fix bug introduced on 2009-04-25.
12273 * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
12274 gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
12275 * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
12277 * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
12279 * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
12281 Reported by Elbert_Pol <elbert.pol@gmail.com>.
12283 2009-04-28 Bruno Haible <bruno@clisp.org>
12286 * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
12287 * lib/uninorm.h (u*_normxfrm): Fix description of return value.
12288 * lib/unicase.h (u*_casexfrm): Likewise.
12289 Reported by Paolo Bonzini.
12291 2009-04-28 Bruno Haible <bruno@clisp.org>
12293 Fix a compilation error.
12294 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
12295 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
12296 Reported by Jim Meyering.
12298 2009-04-27 Bruno Haible <bruno@clisp.org>
12300 New module 'libunistring'.
12301 * modules/libunistring: New file.
12302 * m4/libunistring.m4: New file.
12303 * MODULES.html.sh (Unicode string functions): Add it.
12305 2009-04-27 Eric Blake <ebb9@byu.net>
12307 maint.mk: allow package-specific header to provide <config.h>
12308 * top/maint.mk (sc_require_config_h): New variable.
12309 (sc_require_config_h, sc_require_config_h_first): Use it.
12311 2009-04-27 Simon Josefsson <simon@josefsson.org>
12313 * top/maint.mk (sc_avoid_if_before_free): Except
12314 useless-if-before-free script.
12316 2009-04-27 Eric Blake <ebb9@byu.net>
12318 maintainer-makefile: depend on all required helper scripts
12319 * modules/maintainer-makefile (Depends-on): Add vc-list-files and
12320 useless-if-before-free.
12321 * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
12322 version, rather than assuming gnulib checkout is available.
12323 Reported by Simen Josefsson.
12325 2009-04-26 Bruno Haible <bruno@clisp.org>
12327 Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
12328 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
12331 2009-04-26 Bruno Haible <bruno@clisp.org>
12333 * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
12334 * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
12335 AC_LIB_HAVE_LINKFLAGS.
12337 2009-04-26 Bruno Haible <bruno@clisp.org>
12339 Simplify calling convention of u*_conv_from_encoding.
12340 * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
12341 u32_conv_from_encoding): Expect a resultbuf argument and return the
12342 result directly as a pointer.
12343 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
12344 * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
12345 * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
12346 * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
12347 * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
12348 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12350 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
12351 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
12352 * lib/vasnprintf.c (VASNPRINTF): Update.
12353 * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
12354 * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
12355 * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
12356 * NEWS: Mention the change.
12358 2009-04-26 Bruno Haible <bruno@clisp.org>
12360 Simplify calling convention of u*_conv_to_encoding.
12361 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
12362 u32_conv_to_encoding): Expect a resultbuf argument and return the
12363 result directly as a pointer.
12364 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12365 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
12366 freeing scaled_offsets if mem_iconveha failed.
12367 * lib/unicase/u-casexfrm.h (FUNC): Update.
12368 * lib/uninorm/u-normxfrm.h (FUNC): Update.
12369 * lib/vasnprintf.c (VASNPRINTF): Update.
12370 * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
12371 * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
12372 * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
12373 * NEWS: Mention the change.
12375 2009-04-26 Bruno Haible <bruno@clisp.org>
12377 Avoid test failures on AIX and OSF/1.
12378 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
12380 * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
12381 * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
12383 * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
12384 * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
12385 * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
12386 * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
12387 * doc/posix-functions/malloc.texi: Document the portability problem
12388 related to malloc(0).
12390 2009-04-26 Bruno Haible <bruno@clisp.org>
12392 * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
12393 * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
12394 * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
12396 2009-04-25 Bruno Haible <bruno@clisp.org>
12398 Avoid link error when creating a namespace clean library.
12399 * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
12400 as macro with arguments if already defined as an alias.
12401 * lib/signbitf.c (gl_signbitf): Don't undefine.
12402 * lib/signbitd.c (gl_signbitd): Don't undefine.
12403 * lib/signbitl.c (gl_signbitl): Don't undefine.
12405 2009-04-25 Jim Meyering <meyering@redhat.com>
12407 vc-list-files: fix another quoting bug
12408 * build-aux/vc-list-files: Avoid sed backslash expansion
12409 of pathological directory names.
12411 2009-04-25 Eric Blake <ebb9@byu.net>
12413 vc-list-files: fix shell quoting error
12414 * build-aux/vc-list-files: Protect against $ in $dir. Normalize
12417 2009-04-25 Jim Meyering <meyering@redhat.com>
12419 vc-list-files: restore lost functionality with subdir argument
12420 * build-aux/vc-list-files: When given a non-"." sub-directory
12421 argument, substitute the $dir/ prefix back onto each resulting name.
12422 Otherwise, coreutils' root_tests check would fail.
12424 2009-04-24 Eric Blake <ebb9@byu.net>
12426 vc-list-files: ignore git symlinks
12427 * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
12428 than ls-files, to ignore git symlinks.
12430 maint.mk: import improvements from m4
12431 * top/maint.mk (VC-tag): Use signing key from cfg.mk.
12432 (move_if_change): Delete unused macro.
12433 (news-date-check, vc-diff-check): Support VPATH builds.
12434 (announcement): Likewise. Split --bootstrap-tools list...
12435 (boostrap-tools): ...into separate list, which can be overridden
12437 (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
12438 requiring dependency on useless-if-before-free module.
12439 (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
12440 Support VPATH builds.
12442 2009-04-24 Jim Meyering <meyering@redhat.com>
12444 maint.mk: remove coreutils-specific rules and variables
12445 * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
12446 (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
12447 (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
12449 maint.mk: remove obsolete rule
12450 * top/maint.mk (rel-check): Remove rule.
12451 (WGET, WGETFLAGS): Remove now-unused variables.
12453 2009-04-24 Simon Josefsson <simon@josefsson.org>
12455 * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
12458 * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
12459 '$(PATH_SEPARATOR)' instead of ':'.
12461 2009-04-24 Simon Josefsson <simon@josefsson.org>
12463 * lib/getopt1.c (main): Use 'const' for static array.
12465 2009-04-24 Simon Josefsson <simon@josefsson.org>
12467 * top/maint.mk: Sync with coreutils.
12468 * NEWS: Explain incompatibilities.
12470 2009-04-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
12471 Bruno Haible <bruno@clisp.org>
12473 Fix cross-compilation results.
12474 * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
12475 statement, as third argument of AC_TRY_RUN.
12476 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
12477 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
12479 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
12480 * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
12482 * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12483 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
12484 * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
12486 2009-04-20 Bruno Haible <bruno@clisp.org>
12488 Avoid test failure on mingw.
12489 * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
12491 2009-04-20 Bruno Haible <bruno@clisp.org>
12493 Avoid compilation error on mingw.
12494 * modules/localename-tests (Depends-on): Add locale.
12496 2009-04-19 Bruno Haible <bruno@clisp.org>
12498 Support for building a shared library on Windows platforms.
12499 * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
12500 (main): Test the presence of UNINORM_NFC here.
12501 * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
12502 (main): Test the presence of UNINORM_NFD here.
12503 * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
12504 (main): Test the presence of UNINORM_NFKC here.
12505 * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
12506 (main): Test the presence of UNINORM_NFKD here.
12508 2009-04-19 Bruno Haible <bruno@clisp.org>
12510 Avoid a compiler warning.
12511 * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
12512 Change type of variable 'sequence'.
12514 2009-04-19 Bruno Haible <bruno@clisp.org>
12516 * modules/configmake (Makefile.am): When the contents of configmake.h
12517 does not change, arrange to preserve its modification time.
12519 2009-04-17 Simon Josefsson <simon@josefsson.org>
12521 * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
12524 2009-04-16 Jim Meyering <meyering@redhat.com>
12526 useless-if-before-free: improve conversion code
12527 * build-aux/useless-if-before-free: Adjust code-in-comment to match
12528 "...!= 0" as well as "...!= NULL". emacs has one of the former.
12530 2009-04-14 Bruno Haible <bruno@clisp.org>
12532 * modules/fcntl (Depends-on): Add extensions.
12533 * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
12535 2009-04-12 Ben Pfaff <blp@gnu.org>
12537 Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
12538 * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
12540 2009-03-20 Ben Pfaff <blp@gnu.org>
12542 Make rename replace existing destinations on Windows.
12543 * m4/rename.m4: Add test for Mingw.
12544 * lib/rename.c: Add rename replacement that uses MoveFileEx with
12545 MOVEFILE_REPLACE_EXISTING to replace existing destination files.
12546 * doc/posix-functions/rename.texi: Document.
12548 2009-04-10 Bruno Haible <bruno@clisp.org>
12550 New include file "iconveh.h".
12551 * lib/iconveh.h: New file, extracted from lib/striconveh.h.
12552 * lib/striconveh.h: Include it.
12553 (enum iconv_ilseq_handler): Remove definition.
12554 * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
12556 * lib/striconveha.c: Include striconveh.h.
12557 * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
12558 * modules/striconveh (Files): Add lib/iconveh.h.
12559 * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
12562 2009-04-10 Bruno Haible <bruno@clisp.org>
12564 * lib/uniconv.h: Update comment.
12566 2009-04-10 Bruno Haible <bruno@clisp.org>
12568 * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
12570 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12571 * lib/unistr/u16-mbtouc-aux.c: Likewise.
12572 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12573 * lib/unistr/u8-mbtouc.c: Inside libunistring, include
12574 "unistring-notinline.h", so that the function gets defined always.
12575 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12576 * lib/unistr/u8-uctomb.c: Likewise.
12577 * lib/unistr/u16-mbtouc.c: Likewise.
12578 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12579 * lib/unistr/u16-uctomb.c: Likewise.
12580 * lib/unistr/u32-mbtouc.c: Likewise.
12581 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12582 * lib/unistr/u32-uctomb.c: Likewise.
12584 2009-04-10 Bruno Haible <bruno@clisp.org>
12586 Mark 'utime' obsolete.
12587 * modules/utime (Status, Notice): New sections.
12588 Suggested by Jim Meyering.
12590 Fix cross-compile guess for utime test.
12591 * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
12593 * doc/posix-functions/utime.texi: Give more precisions.
12594 Reported by Jan <ipif@ymail.com>.
12596 2009-04-09 Kamil Dudka <kdudka@redhat.com>
12598 filevercmp: correct today's change
12599 * lib/filevercmp.c: Also handle coreutils' test inputs.
12600 * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
12602 Fix regression in 'filevercmp' module. Thanks Sven Joachim
12604 * lib/filevercmp.c: Special handle for "", "." and "..".
12605 * tests/test-filevercmp.c: Enlarge the set suite.
12607 2009-04-07 Jim Meyering <meyering@redhat.com>
12609 useless-if-before-free: show how to remove braced useless free, too
12610 * build-aux/useless-if-before-free: still only in a comment, though.
12612 2009-04-07 Reuben Thomas <rrt@sc3d.org>
12614 maint.mk: import changes to syntax-check macros from coreutils
12615 * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
12616 Use them in the relevant macros.
12618 2009-04-06 Bruno Haible <bruno@clisp.org>
12620 Fix unportable use of bit-fields.
12621 * lib/unicase/special-casing.h (struct special_casing_rule): Change the
12622 bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
12623 AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
12625 2009-04-06 Bruno Haible <bruno@clisp.org>
12627 Avoid test failures on AIX and OSF/1.
12628 * tests/unicase/test-u8-casefold.c (check): Account for the possibility
12629 that malloc(0) = NULL.
12630 * tests/unicase/test-u8-tolower.c (check): Likewise.
12631 * tests/unicase/test-u8-totitle.c (check): Likewise.
12632 * tests/unicase/test-u8-toupper.c (check): Likewise.
12633 * tests/unicase/test-u16-casefold.c (check): Likewise.
12634 * tests/unicase/test-u16-tolower.c (check): Likewise.
12635 * tests/unicase/test-u16-totitle.c (check): Likewise.
12636 * tests/unicase/test-u16-toupper.c (check): Likewise.
12637 * tests/unicase/test-u32-casefold.c (check): Likewise.
12638 * tests/unicase/test-u32-tolower.c (check): Likewise.
12639 * tests/unicase/test-u32-totitle.c (check): Likewise.
12640 * tests/unicase/test-u32-toupper.c (check): Likewise.
12641 * tests/uninorm/test-u8-nfc.c (check): Likewise.
12642 * tests/uninorm/test-u8-nfd.c (check): Likewise.
12643 * tests/uninorm/test-u8-nfkc.c (check): Likewise.
12644 * tests/uninorm/test-u8-nfkd.c (check): Likewise.
12645 * tests/uninorm/test-u16-nfc.c (check): Likewise.
12646 * tests/uninorm/test-u16-nfd.c (check): Likewise.
12647 * tests/uninorm/test-u16-nfkc.c (check): Likewise.
12648 * tests/uninorm/test-u16-nfkd.c (check): Likewise.
12649 * tests/uninorm/test-u32-nfc.c (check): Likewise.
12650 * tests/uninorm/test-u32-nfd.c (check): Likewise.
12651 * tests/uninorm/test-u32-nfkc.c (check): Likewise.
12652 * tests/uninorm/test-u32-nfkd.c (check): Likewise.
12654 2009-04-05 Bruno Haible <bruno@clisp.org>
12656 Work around an autoconf limitation.
12657 * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
12658 comment line if it would be longer than 3 KB.
12660 2009-04-05 Bruno Haible <bruno@clisp.org>
12662 Avoid test failure with libiconv-1.13.
12663 * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
12664 of the expected test results.
12666 2009-04-05 Bruno Haible <bruno@clisp.org>
12668 * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
12669 noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
12670 that it should be installed.
12672 2009-04-05 Bruno Haible <bruno@clisp.org>
12674 * gnulib-tool: New option --copy-file.
12675 (func_usage): Document it.
12676 (func_dest_tmpfilename): Moved out of func_import.
12677 (func_add_file, func_update_file): New functions, extracted from
12679 (func_import): Update.
12681 2009-04-05 Karl Berry <karl@gnu.org>
12683 * README: prominently mention gnulib-tool.
12684 Rearrange sections so getting the code is near the top.
12686 2009-04-05 Bruno Haible <bruno@clisp.org>
12688 * lib/unicase.h: Mention u*_cmp2.
12689 * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12690 * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
12691 * lib/unicase/ulc-casecmp.c: Likewise.
12692 * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
12693 * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
12694 * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
12696 * modules/unicase/ulc-casecmp (Depends-on): Likewise.
12697 * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
12699 * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
12702 * lib/uninorm.h: Mention u*_cmp2.
12703 * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
12704 * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
12705 * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
12706 * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
12707 * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
12709 * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
12711 * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
12714 New module 'unistr/u32-cmp2'.
12715 * lib/unistr/u32-cmp2.c: New file.
12716 * modules/unistr/u32-cmp2: New file.
12718 New module 'unistr/u16-cmp2'.
12719 * lib/unistr/u16-cmp2.c: New file.
12720 * modules/unistr/u16-cmp2: New file.
12722 New module 'unistr/u8-cmp2'.
12723 * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
12724 * lib/unistr/u8-cmp2.c: New file.
12725 * lib/unistr/u-cmp2.h: New file.
12726 * modules/unistr/u8-cmp2: New file.
12728 2009-04-05 Bruno Haible <bruno@clisp.org>
12730 * lib/unictype.h (uc_property_is_valid): New macro.
12731 * tests/unictype/test-pr_byname.c (main): Use it.
12733 * lib/unistr.h: Doc fixes.
12734 * lib/uniconv.h: Doc fixes.
12735 * lib/unictype.h: Doc fixes.
12737 2009-04-03 Paul Eggert <eggert@cs.ucla.edu>
12739 Port coreutils 7.2 to Solaris 8.
12741 * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
12742 * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
12743 for Solaris 8. This is a bit of a hack, as it means it's the
12744 caller's responsibility to add -lnsl if needed, but most likely it
12745 won't be needed since only getaddrinfo uses this and getaddrinfo
12746 isn't needed on Solaris 8.
12748 * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
12749 problem to Solaris 8 encountered with coreutils 7.2, which
12750 resulted in a message "fnmatch.c:292: warning: passing argument 4
12751 of 'mbsrtowcs' from incompatible pointer type". Also, add mbsinit
12752 at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
12754 2009-04-03 Simon Josefsson <simon@josefsson.org>
12756 * m4/ld-version-script.m4: Add FIXME comment.
12758 2009-04-02 Simon Josefsson <simon@josefsson.org>
12760 * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
12761 SOVERSION variable.
12763 2009-04-02 Bruno Haible <bruno@clisp.org>
12765 * Makefile (info, html, dvi, pdf): Combine the rules.
12766 Suggested by Jim Meyering.
12768 2009-04-01 Bruno Haible <bruno@clisp.org>
12770 * Makefile (info, html, dvi, pdf): New targets.
12771 Reported by Reuben Thomas <rrt@sc3d.org>.
12773 2009-04-01 Bruno Haible <bruno@clisp.org>
12775 * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
12776 can be put into PATH.
12777 Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
12779 2009-04-01 Bruno Haible <bruno@clisp.org>
12781 * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
12783 2009-04-01 Bruno Haible <bruno@clisp.org>
12785 Rename module 'visibility'.
12786 * modules/lib-symbol-visibility: Renamed from modules/visibility.
12787 * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
12788 * doc/gnulib.texi: Update.
12789 * MODULES.html.sh (Misc): Update.
12790 * NEWS: Mention the change.
12792 2009-04-01 Simon Josefsson <simon@josefsson.org>
12794 * modules/lib-msvc-compat: New module. Thanks to Bruno Haible
12795 <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
12796 Eric Blake <ebb9@byu.net> for review.
12797 * MODULES.html.sh: Add lib-msvc-compat.
12798 * doc/gnulib.texi: Link to new section.
12799 * m4/ld-output-def.m4: New file.
12800 * doc/ld-output-def.texi: New file.
12802 2009-04-01 Simon Josefsson <simon@josefsson.org>
12804 Rename ld-version-script to lib-symbol-versions. Suggested by
12805 Bruno Haible <bruno@clisp.org>.
12806 * modules/ld-version-script: Renamed to lib-symbol-versions.
12807 * doc/ld-version-script.texi: Fix module name.
12808 * MODULES.html.sh: Add lib-symbol-versions.
12810 2009-03-31 Simon Josefsson <simon@josefsson.org>
12812 * modules/u64-tests: New file.
12813 * tests/test-u64.c: New file.
12815 2009-03-04 Simon Josefsson <simon@josefsson.org>
12817 * MODULES.html.sh: Mention u64.
12818 * modules/u64: New module.
12819 * modules/crypto/sha512: Depend on u64 module instead of providing
12822 2009-03-27 Eric Blake <ebb9@byu.net>
12824 test-strerror: make debugging EAI_SYSTEM easier
12825 * modules/getaddrinfo-tests (Depends-on): Add strerror.
12826 * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
12827 failure was EAI_SYSTEM.
12829 2009-03-25 Bruno Haible <bruno@clisp.org>
12831 Fix a problem with --enable-relocatable on Solaris 7.
12832 * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
12835 2009-03-25 Eric Blake <ebb9@byu.net>
12837 test-sockets: avoid gcc warning
12838 * tests/test-sockets.c (main): Silence compiler warning.
12840 2009-03-25 Paul Eggert <eggert@cs.ucla.edu>
12842 New modules nproc, pthread, contributed by Glen Lenker.
12844 * MODULES.html.sh: Add pthread, nproc.
12845 * lib/nproc.c: New file.
12846 * lib/nproc.h: New file.
12847 * lib/pthread.in.h: New file.
12848 * m4/pthread.m4: New file.
12849 * modules/nproc: New file.
12850 * modules/pthread: New file.
12852 2009-03-24 Simon Josefsson <simon@josefsson.org>
12854 * modules/unicase/locale-language-tests (test_locale_language_LDADD):
12857 2009-03-24 Kamil Dudka <kdudka@redhat.com>
12859 filevercmp: handle simple~ and numbered.~3~ backup suffixes
12860 * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
12861 * tests/test-filevercmp.c: Add tests for backup suffixes.
12863 2009-03-24 Simon Josefsson <simon@josefsson.org>
12865 * modules/stdlib (Depends-on): Add stdint, needed when defining
12866 struct random_data on, for example, HP-UX 10.20. Reported by
12867 Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12869 2009-03-24 Simon Josefsson <simon@josefsson.org>
12871 * lib/readline.c (readline): Call fflush on stdout after printing
12874 2009-03-20 Bruno Haible <bruno@clisp.org>
12876 Remove dependency from 'close' module to -lws2_32 on native Windows.
12877 * lib/close-hook.h: New file.
12878 * lib/close-hook.c: New file.
12879 * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
12881 (_gl_close_fd_maybe_socket): Remove function.
12882 (rpl_close): Invoke execute_all_close_hooks instead of
12883 _gl_close_fd_maybe_socket.
12884 * lib/sockets.c: Include close-hook.h, w32sock.h.
12885 (close_fd_maybe_socket): New function, essentially from lib/close.c.
12886 (close_sockets_hook): New variable.
12887 (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
12888 (gl_sockets_cleanup): Unregister it.
12889 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
12890 * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
12891 * modules/close-hook: New file.
12892 * modules/close (Files): Remove lib/w32sock.h.
12893 (Depends-on): Add close-hook.
12894 (Link): Remove section.
12895 * modules/sockets (Files): Add lib/w32sock.h.
12896 (Depends-on): Add close-hook.
12897 * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
12899 * NEWS: Mention that LIB_CLOSE is gone.
12901 2009-03-23 Eric Blake <ebb9@byu.net>
12903 signal-tests: test previous patch
12904 * tests/test-signal.c: New file.
12905 * modules/signal-tests: Likewise.
12907 signal.h: always support 'volatile sig_atomic_t'
12908 * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
12909 (gl_SIGNAL_H_DEFAULTS): Add a default.
12910 * modules/signal (Makefile.am): Substitute if needed.
12911 * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
12912 users can blindly add volatile.
12913 * doc/posix-headers/signal.texi (signal.h): Document it.
12914 Reported by Matthew Woehlke.
12916 2009-03-23 Jim Meyering <meyering@redhat.com>
12918 pathmax: PATH_MAX: use pathconf only when available
12919 * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
12920 only if HAVE_PATHCONF is defined. Patch by Sylvain Beucler.
12921 * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
12922 This avoids a link failure in a PSP cross-compilation environment
12923 described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
12925 * lib/vasnprintf.c (divide): Fix typo in comment.
12927 2009-03-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12929 * gnulib-tool (func_filter_filelist): Fix comment.
12931 2009-03-20 Bruno Haible <bruno@clisp.org>
12933 Make sockets.h self-contained.
12934 * lib/sockets.c: Include sockets.h first.
12935 * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
12937 2009-03-19 Eric Blake <ebb9@byu.net>
12939 doc: mention more functions added in cygwin 1.7.0
12940 * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
12942 * doc/posix-functions/log2f.texi: Likewise.
12944 2009-03-19 Jim Meyering <meyering@redhat.com>
12946 fsusage: avoid syntax error due to statement-before-declaration
12947 * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
12948 after all declarations. Reported by Matthew Woehlke in
12949 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
12951 2009-03-18 Eric Blake <ebb9@byu.net>
12953 build-aux/compile: sync from automake
12954 * build-aux/compile: New file, from automake.
12955 * config/srclist.txt: Mention build-aux/compile.
12957 2009-03-17 Bruno Haible <bruno@clisp.org>
12959 * lib/git-merge-changelog.c: Fix typo in comment.
12960 Reported by Reuben Thomas <rrt@sc3d.org>.
12962 2009-03-17 Reuben Thomas <rrt@sc3d.org>
12964 * m4/regex.m4: update and improve help for
12965 --without-included-regex.
12967 2009-03-17 Simon Josefsson <simon@josefsson.org>
12969 * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
12970 failure on missing include files.
12972 2009-03-17 Eric Blake <ebb9@byu.net>
12974 doc: mention more functions added in cygwin 1.7.0
12975 * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
12977 * doc/posix-functions/fwscanf.texi: Likewise.
12978 * doc/posix-functions/swprintf.texi: Likewise.
12979 * doc/posix-functions/swscanf.texi: Likewise.
12980 * doc/posix-functions/vfwprintf.texi: Likewise.
12981 * doc/posix-functions/vfwscanf.texi: Likewise.
12982 * doc/posix-functions/vswprintf.texi: Likewise.
12983 * doc/posix-functions/vswscanf.texi: Likewise.
12984 * doc/posix-functions/vwprintf.texi: Likewise.
12985 * doc/posix-functions/vwscanf.texi: Likewise.
12986 * doc/posix-functions/wcscasecmp.texi: Likewise.
12987 * doc/posix-functions/wcsdup.texi: Likewise.
12988 * doc/posix-functions/wcsftime.texi: Likewise.
12989 * doc/posix-functions/wcsncasecmp.texi: Likewise.
12990 * doc/posix-functions/wprintf.texi: Likewise.
12991 * doc/posix-functions/wscanf.texi: Likewise.
12992 * doc/glibc-functions/gethostbyname2.texi: Likewise.
12994 2009-03-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12996 maint.mk: really add $(AM_MAKEFLAGS)
12997 * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
12998 was inadvertently omitted in the last commit.
12999 Spotted by Bruno Haible.
13001 maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
13002 * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
13003 $(AM_MAKEFLAGS)' rather than plain `make'.
13005 gnulib-tool: execute $MAKE not make
13006 * gnulib-tool: Default $MAKE to 'make'.
13007 (func_create_testdir, func_create_megatestdir): Use $MAKE rather
13008 than make. Initialize $MAKE in the do-autobuild script.
13010 gnulib-tool: use $MAKE not make in generated files
13011 * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
13012 make, in generated files. Initialize $MAKE in the do-autobuild
13015 * top/GNUmakefile (_have-git-version-gen): Fix typo.
13017 GNUmakefile: disable parallelism only for multiple, recursive targets
13018 * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
13019 additions in the Makefile.
13020 (AM_RECURSIVE_TARGETS): New macro, override only if not provided
13022 (.NOTPARALLEL): Only disable parallel builds if multiple targets
13023 are listed on the command line and at least one of them is
13024 listed in $(ALL_RECURSIVE_TARGETS).
13026 2009-03-14 Bruno Haible <bruno@clisp.org>
13028 * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
13029 utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
13030 * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
13031 * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
13032 utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
13033 * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
13034 * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
13036 * modules/unistr/u8-strchr (Depends-on): Likewise.
13037 * modules/unistr/u8-strrchr (Depends-on): Likewise.
13038 * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
13040 * modules/unistr/u16-strchr (Depends-on): Likewise.
13041 * modules/unistr/u16-strrchr (Depends-on): Likewise.
13043 2009-03-12 Bruno Haible <bruno@clisp.org>
13045 Work around select() bug on Interix 3.5.
13046 * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
13047 * lib/select.c (rpl_select): Add an implementation for Unix platforms.
13048 * m4/select.m4: New file.
13049 * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
13050 * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
13051 * modules/select (Files): Add m4/select.m4.
13052 (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
13053 * modules/nanosleep (Depends-on): Add select.
13054 * modules/poll (Depends-on): Likewise.
13055 * doc/posix-functions/select.texi: Mention the Interix bug.
13056 Reported by Markus Duft <mduft@gentoo.org>.
13058 * lib/select.c: Renamed from lib/winsock-select.c.
13059 * modules/select (Files): Add lib/select.c, remove
13060 lib/winsock-select.c.
13061 (configure.ac): Update.
13063 2009-03-12 Jim Meyering <meyering@redhat.com>
13065 avoid gcc warnings about unused macro definitions
13066 * lib/readtokens.c (STREQ): Remove unused definition.
13067 * lib/xmalloc.c (SIZE_MAX): Likewise.
13068 * lib/openat-die.c (N_): Likewise.
13069 * lib/mountlist.c (SIZE_MAX): Remove definition.
13070 Instead, include <stdint.h>.
13071 * lib/readutmp.c: Likewise.
13072 * modules/readutmp (Depends-on): Add stdint.
13073 * modules/mountlist (Depends-on): Add stdint.
13074 * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
13076 2009-03-10 Bruno Haible <bruno@clisp.org>
13078 Tests for module 'mbmemcasecoll'.
13079 * modules/mbmemcasecoll-tests: New file.
13080 * tests/test-mbmemcasecoll1.sh: New file.
13081 * tests/test-mbmemcasecoll2.sh: New file.
13082 * tests/test-mbmemcasecoll3.sh: New file.
13083 * tests/test-mbmemcasecoll.c: New file.
13085 New module 'mbmemcasecoll'.
13086 * lib/mbmemcasecoll.h: New file.
13087 * lib/mbmemcasecoll.c: New file.
13088 * modules/mbmemcasecoll: New file.
13090 * tests/test-mbmemcasecmp.h: New file, extracted from
13091 tests/test-mbmemcasecmp.c.
13092 * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
13093 (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
13095 * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
13097 2009-03-09 Bruno Haible <bruno@clisp.org>
13099 Tests for module 'mbmemcasecmp'.
13100 * modules/mbmemcasecmp-tests: New file.
13101 * tests/test-mbmemcasecmp1.sh: New file.
13102 * tests/test-mbmemcasecmp2.sh: New file.
13103 * tests/test-mbmemcasecmp3.sh: New file.
13104 * tests/test-mbmemcasecmp.c: New file.
13106 New module 'mbmemcasecmp'.
13107 * lib/mbmemcasecmp.h: New file.
13108 * lib/mbmemcasecmp.c: New file.
13109 * modules/mbmemcasecmp: New file.
13111 2009-03-09 Bruno Haible <bruno@clisp.org>
13113 Tests for module 'unicase/ulc-casecoll'.
13114 * modules/unicase/ulc-casecoll-tests: New file.
13115 * tests/unicase/test-ulc-casecoll1.sh: New file.
13116 * tests/unicase/test-ulc-casecoll2.sh: New file.
13117 * tests/unicase/test-ulc-casecoll.c: New file.
13119 New module 'unicase/ulc-casecoll'.
13120 * lib/unicase.h (ulc_casecoll): New declaration.
13121 * lib/unicase/ulc-casecoll.c: New file.
13122 * modules/unicase/ulc-casecoll: New file.
13124 New module 'unicase/ulc-casexfrm'.
13125 * lib/unicase.h (ulc_casexfrm): New declaration.
13126 * lib/unicase/ulc-casexfrm.c: New file.
13127 * modules/unicase/ulc-casexfrm: New file.
13129 2009-03-09 Bruno Haible <bruno@clisp.org>
13131 Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
13134 * m4/mbscasecmp.m4: Remove file.
13135 * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
13136 (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
13138 * m4/mbscasestr.m4: Remove file.
13139 * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
13140 (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
13142 * m4/mbschr.m4: Remove file.
13143 * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
13144 (configure.ac): Remove gl_FUNC_MBSCHR invocation.
13146 * m4/mbscspn.m4: Remove file.
13147 * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
13148 (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
13150 * m4/mbslen.m4: Remove file.
13151 * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
13152 (configure.ac): Remove gl_FUNC_MBSLEN invocation.
13154 * m4/mbsncasecmp.m4: Remove file.
13155 * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
13156 (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
13158 * m4/mbsnlen.m4: Remove file.
13159 * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
13160 (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
13162 * m4/mbspbrk.m4: Remove file.
13163 * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
13164 (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
13166 * m4/mbspcasecmp.m4: Remove file.
13167 * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
13168 (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
13170 * m4/mbsrchr.m4: Remove file.
13171 * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
13172 (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
13174 * m4/mbssep.m4: Remove file.
13175 * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
13176 (configure.ac): Remove gl_FUNC_MBSSEP invocation.
13178 * m4/mbsspn.m4: Remove file.
13179 * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
13180 (configure.ac): Remove gl_FUNC_MBSSPN invocation.
13182 * m4/mbsstr.m4: Remove file.
13183 * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
13184 (configure.ac): Remove gl_FUNC_MBSSTR invocation.
13186 * m4/mbstok_r.m4: Remove file.
13187 * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
13188 (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
13190 * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
13192 * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
13193 AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
13195 * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
13197 2009-03-08 Bruno Haible <bruno@clisp.org>
13199 Tests for module 'unicase/ulc-casecmp'.
13200 * modules/unicase/ulc-casecmp-tests: New file.
13201 * tests/unicase/test-ulc-casecmp1.sh: New file.
13202 * tests/unicase/test-ulc-casecmp2.sh: New file.
13203 * tests/unicase/test-ulc-casecmp.c: New file.
13205 New module 'unicase/ulc-casecmp'.
13206 * lib/unicase.h (ulc_casecmp): New declaration.
13207 * lib/unicase/ulc-casecmp.c: New file.
13208 * lib/unicase/u-casecmp.h (FUNC): Change argument types to
13209 'const SRC_UNIT *'.
13210 * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
13211 * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
13212 * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
13213 * modules/unicase/ulc-casecmp: New file.
13215 Tests for module 'unicase/u32-is-cased'.
13216 * modules/unicase/u32-is-cased-tests: New file.
13217 * tests/unicase/test-u32-is-cased.c: New file.
13219 Tests for module 'unicase/u16-is-cased'.
13220 * modules/unicase/u16-is-cased-tests: New file.
13221 * tests/unicase/test-u16-is-cased.c: New file.
13223 Tests for module 'unicase/u8-is-cased'.
13224 * modules/unicase/u8-is-cased-tests: New file.
13225 * tests/unicase/test-u8-is-cased.c: New file.
13226 * tests/unicase/test-is-cased.h: New file.
13228 New module 'unicase/u32-is-cased'.
13229 * lib/unicase/u32-is-cased.c: New file.
13230 * modules/unicase/u32-is-cased: New file.
13232 New module 'unicase/u16-is-cased'.
13233 * lib/unicase/u16-is-cased.c: New file.
13234 * modules/unicase/u16-is-cased: New file.
13236 New module 'unicase/u8-is-cased'.
13237 * lib/unicase/u8-is-cased.c: New file.
13238 * lib/unicase/u-is-cased.h: New file.
13239 * modules/unicase/u8-is-cased: New file.
13241 Tests for module 'unicase/u32-is-casefolded'.
13242 * modules/unicase/u32-is-casefolded-tests: New file.
13243 * tests/unicase/test-u32-is-casefolded.c: New file.
13245 Tests for module 'unicase/u16-is-casefolded'.
13246 * modules/unicase/u16-is-casefolded-tests: New file.
13247 * tests/unicase/test-u16-is-casefolded.c: New file.
13249 Tests for module 'unicase/u8-is-casefolded'.
13250 * modules/unicase/u8-is-casefolded-tests: New file.
13251 * tests/unicase/test-u8-is-casefolded.c: New file.
13252 * tests/unicase/test-is-casefolded.h: New file.
13254 New module 'unicase/u32-is-casefolded'.
13255 * lib/unicase/u32-is-casefolded.c: New file.
13256 * modules/unicase/u32-is-casefolded: New file.
13258 New module 'unicase/u16-is-casefolded'.
13259 * lib/unicase/u16-is-casefolded.c: New file.
13260 * modules/unicase/u16-is-casefolded: New file.
13262 New module 'unicase/u8-is-casefolded'.
13263 * lib/unicase/u8-is-casefolded.c: New file.
13264 * modules/unicase/u8-is-casefolded: New file.
13266 Tests for module 'unicase/u32-is-titlecase'.
13267 * modules/unicase/u32-is-titlecase-tests: New file.
13268 * tests/unicase/test-u32-is-titlecase.c: New file.
13270 Tests for module 'unicase/u16-is-titlecase'.
13271 * modules/unicase/u16-is-titlecase-tests: New file.
13272 * tests/unicase/test-u16-is-titlecase.c: New file.
13274 Tests for module 'unicase/u8-is-titlecase'.
13275 * modules/unicase/u8-is-titlecase-tests: New file.
13276 * tests/unicase/test-u8-is-titlecase.c: New file.
13277 * tests/unicase/test-is-titlecase.h: New file.
13279 New module 'unicase/u32-is-titlecase'.
13280 * lib/unicase/u32-is-titlecase.c: New file.
13281 * modules/unicase/u32-is-titlecase: New file.
13283 New module 'unicase/u16-is-titlecase'.
13284 * lib/unicase/u16-is-titlecase.c: New file.
13285 * modules/unicase/u16-is-titlecase: New file.
13287 New module 'unicase/u8-is-titlecase'.
13288 * lib/unicase/u8-is-titlecase.c: New file.
13289 * modules/unicase/u8-is-titlecase: New file.
13291 Tests for module 'unicase/u32-is-lowercase'.
13292 * modules/unicase/u32-is-lowercase-tests: New file.
13293 * tests/unicase/test-u32-is-lowercase.c: New file.
13295 Tests for module 'unicase/u16-is-lowercase'.
13296 * modules/unicase/u16-is-lowercase-tests: New file.
13297 * tests/unicase/test-u16-is-lowercase.c: New file.
13299 Tests for module 'unicase/u8-is-lowercase'.
13300 * modules/unicase/u8-is-lowercase-tests: New file.
13301 * tests/unicase/test-u8-is-lowercase.c: New file.
13302 * tests/unicase/test-is-lowercase.h: New file.
13304 New module 'unicase/u32-is-lowercase'.
13305 * lib/unicase/u32-is-lowercase.c: New file.
13306 * modules/unicase/u32-is-lowercase: New file.
13308 New module 'unicase/u16-is-lowercase'.
13309 * lib/unicase/u16-is-lowercase.c: New file.
13310 * modules/unicase/u16-is-lowercase: New file.
13312 New module 'unicase/u8-is-lowercase'.
13313 * lib/unicase/u8-is-lowercase.c: New file.
13314 * modules/unicase/u8-is-lowercase: New file.
13316 Tests for module 'unicase/u32-is-uppercase'.
13317 * modules/unicase/u32-is-uppercase-tests: New file.
13318 * tests/unicase/test-u32-is-uppercase.c: New file.
13320 Tests for module 'unicase/u16-is-uppercase'.
13321 * modules/unicase/u16-is-uppercase-tests: New file.
13322 * tests/unicase/test-u16-is-uppercase.c: New file.
13324 Tests for module 'unicase/u8-is-uppercase'.
13325 * modules/unicase/u8-is-uppercase-tests: New file.
13326 * tests/unicase/test-u8-is-uppercase.c: New file.
13327 * tests/unicase/test-is-uppercase.h: New file.
13329 New module 'unicase/u32-is-uppercase'.
13330 * lib/unicase/u32-is-uppercase.c: New file.
13331 * modules/unicase/u32-is-uppercase: New file.
13333 New module 'unicase/u16-is-uppercase'.
13334 * lib/unicase/u16-is-uppercase.c: New file.
13335 * modules/unicase/u16-is-uppercase: New file.
13337 New module 'unicase/u8-is-uppercase'.
13338 * lib/unicase/u8-is-uppercase.c: New file.
13339 * modules/unicase/u8-is-uppercase: New file.
13341 New module 'unicase/u32-is-invariant'.
13342 * lib/unicase/u32-is-invariant.c: New file.
13343 * modules/unicase/u32-is-invariant: New file.
13345 New module 'unicase/u16-is-invariant'.
13346 * lib/unicase/u16-is-invariant.c: New file.
13347 * modules/unicase/u16-is-invariant: New file.
13349 New module 'unicase/u8-is-invariant'.
13350 * lib/unicase/u8-is-invariant.c: New file.
13351 * lib/unicase/invariant.h: New file.
13352 * lib/unicase/u-is-invariant.h: New file.
13353 * modules/unicase/u8-is-invariant: New file.
13355 Tests for module 'unicase/u32-casecoll'.
13356 * modules/unicase/u32-casecoll-tests: New file.
13357 * tests/unicase/test-u32-casecoll.c: New file.
13359 Tests for module 'unicase/u16-casecoll'.
13360 * modules/unicase/u16-casecoll-tests: New file.
13361 * tests/unicase/test-u16-casecoll.c: New file.
13363 Tests for module 'unicase/u8-casecoll'.
13364 * modules/unicase/u8-casecoll-tests: New file.
13365 * tests/unicase/test-u8-casecoll.c: New file.
13367 New module 'unicase/u32-casecoll'.
13368 * lib/unicase/u32-casecoll.c: New file.
13369 * modules/unicase/u32-casecoll: New file.
13371 New module 'unicase/u16-casecoll'.
13372 * lib/unicase/u16-casecoll.c: New file.
13373 * modules/unicase/u16-casecoll: New file.
13375 New module 'unicase/u8-casecoll'.
13376 * lib/unicase/u8-casecoll.c: New file.
13377 * lib/unicase/u-casecoll.h: New file.
13378 * modules/unicase/u8-casecoll: New file.
13380 New module 'unicase/u32-casexfrm'.
13381 * lib/unicase/u32-casexfrm.c: New file.
13382 * modules/unicase/u32-casexfrm: New file.
13384 New module 'unicase/u16-casexfrm'.
13385 * lib/unicase/u16-casexfrm.c: New file.
13386 * modules/unicase/u16-casexfrm: New file.
13388 New module 'unicase/u8-casexfrm'.
13389 * lib/unicase/u8-casexfrm.c: New file.
13390 * lib/unicase/u-casexfrm.h: New file.
13391 * modules/unicase/u8-casexfrm: New file.
13393 Tests for module 'unicase/u32-casecmp'.
13394 * modules/unicase/u32-casecmp-tests: New file.
13395 * tests/unicase/test-u32-casecmp.c: New file.
13397 Tests for module 'unicase/u16-casecmp'.
13398 * modules/unicase/u16-casecmp-tests: New file.
13399 * tests/unicase/test-u16-casecmp.c: New file.
13401 Tests for module 'unicase/u8-casecmp'.
13402 * modules/unicase/u8-casecmp-tests: New file.
13403 * tests/unicase/test-u8-casecmp.c: New file.
13404 * tests/unicase/test-casecmp.h: New file.
13406 New module 'unicase/u32-casecmp'.
13407 * lib/unicase/u32-casecmp.c: New file.
13408 * modules/unicase/u32-casecmp: New file.
13410 New module 'unicase/u16-casecmp'.
13411 * lib/unicase/u16-casecmp.c: New file.
13412 * modules/unicase/u16-casecmp: New file.
13414 New module 'unicase/u8-casecmp'.
13415 * lib/unicase/u8-casecmp.c: New file.
13416 * lib/unicase/u-casecmp.h: New file.
13417 * modules/unicase/u8-casecmp: New file.
13419 Tests for module 'unicase/u32-casefold'.
13420 * modules/unicase/u32-casefold-tests: New file.
13421 * tests/unicase/test-u32-casefold.c: New file.
13423 Tests for module 'unicase/u16-casefold'.
13424 * modules/unicase/u16-casefold-tests: New file.
13425 * tests/unicase/test-u16-casefold.c: New file.
13427 Tests for module 'unicase/u8-casefold'.
13428 * modules/unicase/u8-casefold-tests: New file.
13429 * tests/unicase/test-u8-casefold.c: New file.
13431 New module 'unicase/u32-casefold'.
13432 * lib/unicase/u32-casefold.c: New file.
13433 * modules/unicase/u32-casefold: New file.
13435 New module 'unicase/u16-casefold'.
13436 * lib/unicase/u16-casefold.c: New file.
13437 * modules/unicase/u16-casefold: New file.
13439 New module 'unicase/u8-casefold'.
13440 * lib/unicase/u8-casefold.c: New file.
13441 * lib/unicase/u-casefold.h: New file.
13442 * modules/unicase/u8-casefold: New file.
13444 New module 'unicase/tocasefold'.
13445 * lib/unicase/casefold.h: New file.
13446 * lib/unicase/tocasefold.c: New file.
13447 * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
13448 * modules/unicase/tocasefold: New file.
13450 Tests for module 'unicase/u32-totitle'.
13451 * modules/unicase/u32-totitle-tests: New file.
13452 * tests/unicase/test-u32-totitle.c: New file.
13454 Tests for module 'unicase/u16-totitle'.
13455 * modules/unicase/u16-totitle-tests: New file.
13456 * tests/unicase/test-u16-totitle.c: New file.
13458 Tests for module 'unicase/u8-totitle'.
13459 * modules/unicase/u8-totitle-tests: New file.
13460 * tests/unicase/test-u8-totitle.c: New file.
13462 New module 'unicase/u32-totitle'.
13463 * lib/unicase/u32-totitle.c: New file.
13464 * modules/unicase/u32-totitle: New file.
13466 New module 'unicase/u16-totitle'.
13467 * lib/unicase/u16-totitle.c: New file.
13468 * modules/unicase/u16-totitle: New file.
13470 New module 'unicase/u8-totitle'.
13471 * lib/unicase/u8-totitle.c: New file.
13472 * lib/unicase/u-totitle.h: New file.
13473 * modules/unicase/u8-totitle: New file.
13475 Tests for module 'unicase/u32-tolower'.
13476 * modules/unicase/u32-tolower-tests: New file.
13477 * tests/unicase/test-u32-tolower.c: New file.
13479 Tests for module 'unicase/u16-tolower'.
13480 * modules/unicase/u16-tolower-tests: New file.
13481 * tests/unicase/test-u16-tolower.c: New file.
13483 Tests for module 'unicase/u8-tolower'.
13484 * modules/unicase/u8-tolower-tests: New file.
13485 * tests/unicase/test-u8-tolower.c: New file.
13487 New module 'unicase/u32-tolower'.
13488 * lib/unicase/u32-tolower.c: New file.
13489 * modules/unicase/u32-tolower: New file.
13491 New module 'unicase/u16-tolower'.
13492 * lib/unicase/u16-tolower.c: New file.
13493 * modules/unicase/u16-tolower: New file.
13495 New module 'unicase/u8-tolower'.
13496 * lib/unicase/u8-tolower.c: New file.
13497 * modules/unicase/u8-tolower: New file.
13499 Tests for module 'unicase/u32-toupper'.
13500 * modules/unicase/u32-toupper-tests: New file.
13501 * tests/unicase/test-u32-toupper.c: New file.
13503 Tests for module 'unicase/u16-toupper'.
13504 * modules/unicase/u16-toupper-tests: New file.
13505 * tests/unicase/test-u16-toupper.c: New file.
13507 Tests for module 'unicase/u8-toupper'.
13508 * modules/unicase/u8-toupper-tests: New file.
13509 * tests/unicase/test-u8-toupper.c: New file.
13511 New module 'unicase/u32-toupper'.
13512 * lib/unicase/u32-toupper.c: New file.
13513 * modules/unicase/u32-toupper: New file.
13515 New module 'unicase/u16-toupper'.
13516 * lib/unicase/u16-toupper.c: New file.
13517 * modules/unicase/u16-toupper: New file.
13519 New module 'unicase/u8-toupper'.
13520 * lib/unicase/u8-toupper.c: New file.
13521 * modules/unicase/u8-toupper: New file.
13523 New module 'unicase/u32-casemap'.
13524 * lib/unicase/u32-casemap.c: New file.
13525 * modules/unicase/u32-casemap: New file.
13527 New module 'unicase/u16-casemap'.
13528 * lib/unicase/u16-casemap.c: New file.
13529 * modules/unicase/u16-casemap: New file.
13531 New module 'unicase/u8-casemap'.
13532 * lib/unicase/unicasemap.h: New file.
13533 * lib/unicase/u8-casemap.c: New file.
13534 * lib/unicase/u-casemap.h: New file.
13535 * modules/unicase/u8-casemap: New file.
13537 New module 'unicase/special-casing'.
13538 * lib/unicase/special-casing.h: New file.
13539 * lib/unicase/special-casing.c: New file.
13540 * lib/unicase/special-casing-table.gperf: New file, generated by
13542 * modules/unicase/special-casing: New file.
13544 Tests for module 'unicase/locale-language'.
13545 * modules/unicase/locale-language-tests: New file.
13546 * tests/unicase/test-locale-language.sh: New file.
13547 * tests/unicase/test-locale-language.c: New file.
13549 New module 'unicase/locale-language'.
13550 * lib/unicase/locale-language.c: New file.
13551 * lib/unicase/locale-languages.gperf: New file.
13552 * modules/unicase/locale-language: New file.
13554 Generate more tables for case conversion and case folding.
13555 * lib/gen-uni-tables.c (SCC_*): New enum items.
13556 (struct special_casing_rule): New type.
13557 (casing_rules, num_casing_rules, allocated_casing_rules): New
13559 (add_casing_rule, fill_casing_rules): New functions.
13560 (struct casefold_rule): New type.
13561 (casefolding_rules, num_casefolding_rules,
13562 allocated_casefolding_rules): New variables.
13563 (fill_casefolding_rules): New function.
13564 (unicode_casefold): New variable.
13565 (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
13566 sort_casing_rules, output_casing_rules): New functions.
13567 (main): Accept to more arguments: SpecialCasing.txt and
13568 CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
13569 redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
13570 Output mapping for casefolding.
13572 * lib/unicase.h: Include stdbool.h, uninorm.h.
13573 (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
13574 u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
13575 (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
13577 (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
13579 (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
13580 (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
13582 (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
13583 u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
13584 u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
13585 u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
13587 * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
13589 2009-03-08 Bruno Haible <bruno@clisp.org>
13591 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13592 u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
13593 * lib/uninorm/u-normcmp.h (FUNC): Likewise.
13594 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13596 2009-03-07 Bruno Haible <bruno@clisp.org>
13598 Adjust u*_normcmp, u*_normcoll API.
13599 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
13600 u16_normcoll, u32_normcoll): Change failure conventions.
13601 * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
13602 errno and return -1.
13603 * lib/uninorm/u-normcoll.h (FUNC): Likewise.
13605 2009-03-07 Bruno Haible <bruno@clisp.org>
13607 Tests for module 'uninorm/u32-normcoll'.
13608 * modules/uninorm/u32-normcoll-tests: New file.
13609 * tests/uninorm/test-u32-normcoll.c: New file.
13611 Tests for module 'uninorm/u16-normcoll'.
13612 * modules/uninorm/u16-normcoll-tests: New file.
13613 * tests/uninorm/test-u16-normcoll.c: New file.
13615 Tests for module 'uninorm/u8-normcoll'.
13616 * modules/uninorm/u8-normcoll-tests: New file.
13617 * tests/uninorm/test-u8-normcoll.c: New file.
13619 2009-03-07 Bruno Haible <bruno@clisp.org>
13621 * tests/uninorm/test-u32-normcmp.h: New file, extracted from
13622 tests/uninorm/test-u32-normcmp.c.
13623 * tests/uninorm/test-u32-normcmp.c: Include it.
13624 (test_nonascii): New function, extracted from main. Add some more
13626 (main): Invoke test_ascii and test_nonascii.
13627 * modules/uninorm/u32-normcmp-tests (Files): Add
13628 tests/uninorm/test-u32-normcmp.h.
13629 (Depends-on): Remove uninorm/u32-normcmp.
13631 * tests/uninorm/test-u16-normcmp.h: New file, extracted from
13632 tests/uninorm/test-u16-normcmp.c.
13633 * tests/uninorm/test-u16-normcmp.c: Include it.
13634 (test_nonascii): New function, extracted from main. Add some more
13636 (main): Invoke test_ascii and test_nonascii.
13637 * modules/uninorm/u16-normcmp-tests (Files): Add
13638 tests/uninorm/test-u16-normcmp.h.
13639 (Depends-on): Remove uninorm/u16-normcmp.
13641 * tests/uninorm/test-u8-normcmp.h: New file, extracted from
13642 tests/uninorm/test-u8-normcmp.c.
13643 * tests/uninorm/test-u8-normcmp.c: Include it.
13644 (test_nonascii): New function, extracted from main. Add some more
13646 (main): Invoke test_ascii and test_nonascii.
13647 * modules/uninorm/u8-normcmp-tests (Files): Add
13648 tests/uninorm/test-u8-normcmp.h.
13649 (Depends-on): Remove uninorm/u8-normcmp.
13651 2009-03-07 Bruno Haible <bruno@clisp.org>
13653 New module 'uninorm/u32-normcoll'.
13654 * lib/uninorm/u32-normcoll.c: New file.
13655 * modules/uninorm/u32-normcoll: New file.
13657 New module 'uninorm/u16-normcoll'.
13658 * lib/uninorm/u16-normcoll.c: New file.
13659 * modules/uninorm/u16-normcoll: New file.
13661 New module 'uninorm/u8-normcoll'.
13662 * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
13664 * lib/uninorm/u8-normcoll.c: New file.
13665 * lib/uninorm/u-normcoll.h: New file.
13666 * modules/uninorm/u8-normcoll: New file.
13668 New module 'uninorm/u32-normxfrm'.
13669 * lib/uninorm/u32-normxfrm.c: New file.
13670 * modules/uninorm/u32-normxfrm: New file.
13672 New module 'uninorm/u16-normxfrm'.
13673 * lib/uninorm/u16-normxfrm.c: New file.
13674 * modules/uninorm/u16-normxfrm: New file.
13676 New module 'uninorm/u8-normxfrm'.
13677 * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
13679 * lib/uninorm/u8-normxfrm.c: New file.
13680 * lib/uninorm/u-normxfrm.h: New file.
13681 * modules/uninorm/u8-normxfrm: New file.
13683 2009-03-07 Bruno Haible <bruno@clisp.org>
13685 * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
13686 * modules/uninorm/u16-normcmp (Depends-on): Likewise.
13687 * modules/uninorm/u32-normcmp (Depends-on): Likewise.
13689 2009-03-07 Bruno Haible <bruno@clisp.org>
13691 New module 'memxfrm'.
13692 * lib/memxfrm.h: New file.
13693 * lib/memxfrm.c: New file.
13694 * modules/memxfrm: New file.
13696 2009-03-07 Bruno Haible <bruno@clisp.org>
13698 New module 'memcmp2'.
13699 * lib/memcmp2.h: New file.
13700 * lib/memcmp2.c: New file.
13701 * modules/memcmp2: New file.
13703 2009-03-07 Bruno Haible <bruno@clisp.org>
13705 Tests for module 'uninorm/decomposing-form'.
13706 * modules/uninorm/decomposing-form-tests: New file.
13707 * tests/uninorm/test-decomposing-form.c: New file.
13709 New module 'uninorm/decomposing-form'.
13710 * lib/uninorm.h (uninorm_decomposing_form): New declaration.
13711 * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
13712 Add 'decomposing_variant' field.
13713 * lib/uninorm/decomposing-form.c: New file.
13714 * lib/uninorm/nfc.c (uninorm_nfc): Update.
13715 * lib/uninorm/nfd.c (uninorm_nfd): Update.
13716 * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
13717 * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
13718 * modules/uninorm/decomposing-form: New file.
13719 * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
13720 * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
13722 2009-03-07 Bruno Haible <bruno@clisp.org>
13724 * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
13727 2009-03-06 Bruno Haible <bruno@clisp.org>
13729 Tests for module 'uninorm/u32-normcmp'.
13730 * tests/uninorm/test-u32-normcmp.c: New file.
13731 * modules/uninorm/u32-normcmp-tests: New file.
13733 Tests for module 'uninorm/u16-normcmp'.
13734 * tests/uninorm/test-u16-normcmp.c: New file.
13735 * modules/uninorm/u16-normcmp-tests: New file.
13737 Tests for module 'uninorm/u8-normcmp'.
13738 * tests/uninorm/test-u8-normcmp.c: New file.
13739 * modules/uninorm/u8-normcmp-tests: New file.
13741 New module 'uninorm/u32-normcmp'.
13742 * lib/uninorm/u32-normcmp.c: New file.
13743 * modules/uninorm/u32-normcmp: New file.
13745 New module 'uninorm/u16-normcmp'.
13746 * lib/uninorm/u16-normcmp.c: New file.
13747 * modules/uninorm/u16-normcmp: New file.
13749 New module 'uninorm/u8-normcmp'.
13750 * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
13752 * lib/uninorm/u8-normcmp.c: New file.
13753 * lib/uninorm/u-normcmp.h: New file.
13754 * modules/uninorm/u8-normcmp: New file.
13756 2009-03-06 Bruno Haible <bruno@clisp.org>
13758 * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
13759 Reported by Eric Blake.
13761 2009-03-06 Eric Blake <ebb9@byu.net>
13762 Bruno Haible <bruno@clisp.org>
13764 * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
13765 * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
13767 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13768 * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
13770 (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
13772 2009-03-06 Eric Blake <ebb9@byu.net>
13774 * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
13775 to avoid compiler warnings.
13776 * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
13778 2009-03-05 Bruno Haible <bruno@clisp.org>
13780 * tests/test-ftell.c (main): Disable test beyond end of file on
13782 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13784 2009-03-05 Kamil Dudka <kdudka@redhat.com>
13786 * lib/filevercmp.c: Move hidden files up in ordering.
13787 * tests/test-filevercmp.c: Add tests for hidden files.
13789 2009-03-04 Bruno Haible <bruno@clisp.org>
13791 * modules/visibility (Makefile.am): Augment AM_CFLAGS.
13792 * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
13794 Reported by Simon Josefsson.
13796 2009-03-03 Bruno Haible <bruno@clisp.org>
13798 * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
13799 Reported by Simon Josefsson.
13801 * doc/ld-version-script.texi: Update node reference.
13803 2009-03-03 Bruno Haible <bruno@clisp.org>
13805 * modules/visibility (License): Change to 'unlimited'.
13806 Suggested by Simon Josefsson.
13808 2009-03-03 Jim Meyering <meyering@redhat.com>
13810 unlinkdir: cannot_unlink_dir may modify process state
13811 * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
13812 it's neither thread-safe nor appropriate for use in a library.
13814 2009-03-03 Eric Blake <ebb9@byu.net>
13816 test-closein: silence test under Darwin
13817 * tests/test-closein.sh: Ignore stderr from cat, since we don't
13818 care if it dies from EPIPE or EBADF.
13820 2009-03-03 Bruno Haible <bruno@clisp.org>
13822 * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
13824 * doc/visibility.texi: Fix @node and @section.
13826 2009-03-03 Simon Josefsson <simon@josefsson.org>
13828 * doc/gnulib.texi: Link to sections for ld version script and
13830 * doc/visibility.texi: Add @node and @section.
13831 * modules/ld-version-script: New module.
13832 * m4/ld-version-script.m4: New file.
13833 * doc/ld-version-script.texi: New file.
13835 2009-03-02 David Lutterkort <lutter@redhat.com>
13837 * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
13838 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13840 2009-03-02 Bruno Haible <bruno@clisp.org>
13842 * doc/visibility.texi: Mention libtool's -export-symbols option.
13844 2009-03-02 Jim Meyering <meyering@redhat.com>
13846 announce-gen: new option: --no-print-checksums
13847 * build-aux/announce-gen (usage): Describe it.
13848 (print_checksums): Print a newline here, not in the [*] footnote.
13851 2009-03-01 Bruno Haible <bruno@clisp.org>
13853 Use socklen_t in the native Windows replacements prototypes.
13854 * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
13856 * lib/getsockopt.c (rpl_getsockopt): Likewise.
13857 * lib/setsockopt.c (rpl_setsockopt): Likewise.
13858 * modules/getsockopt (Depends-on): Add socklen.
13859 * modules/setsockopt (Depends-on): Add socklen.
13861 2009-03-01 Bruno Haible <bruno@clisp.org>
13863 * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
13866 2009-03-01 Eric Blake <ebb9@byu.net>
13867 Bruno Haible <bruno@clisp.org>
13869 * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
13871 * lib/wait-process.c (wait_subprocess): Omit error message about
13872 deadly signal sent to the child of termsigp != NULL.
13874 2009-03-01 Eric Blake <ebb9@byu.net>
13876 * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
13878 2009-03-01 Bruno Haible <bruno@clisp.org>
13880 Avoid a gcc warning.
13881 * tests/test-sched.c (b): Make global.
13882 Reported by Eric Blake.
13884 2009-01-19 Martin Lambers <marlam@marlam.de>
13886 Provide POSIX semantics for socket timeout options on W32.
13887 * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
13888 * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
13889 * modules/setsockopt: Depend on sys_time module for struct timeval.
13890 * modules/getsockopt: Depend on sys_time module for struct timeval.
13892 2009-03-01 Simon Josefsson <simon@josefsson.org>
13894 * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
13895 __USE_GNU, for consistency with netdb.in.h.
13896 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13898 2009-03-01 Bruno Haible <bruno@clisp.org>
13900 More support for FreeMiNT.
13901 * lib/fseeko.c (rpl_fseeko): Complete last commit.
13902 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13904 2009-03-01 Bruno Haible <bruno@clisp.org>
13906 More support for FreeMiNT.
13907 * lib/fpurge.c (fpurge): Correct last commit.
13908 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13910 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13912 Fix unportable awk script in vc-list-files.
13913 * build-aux/vc-list-files: In the replacement awk script, use
13914 substr with a second argument of 1, not zero.
13915 Report by Simon Josefsson.
13917 2009-02-28 Bruno Haible <bruno@clisp.org>
13919 More support for FreeMiNT.
13920 * lib/freading.c (freading) [__MINT__]: Use new macros that were added
13922 * lib/fwriting.c (fwriting): Likewise.
13923 Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
13925 2009-02-28 Bruno Haible <bruno@clisp.org>
13927 * tests/test-freadseek.c (main): Disable test beyond end of file on
13929 * tests/test-ftello.c (main): Likewise.
13930 Patch by Alan Hourihane <alanh@fairlite.co.uk>.
13932 2009-02-28 Bruno Haible <bruno@clisp.org>
13934 Add tentative support for FreeMiNT.
13935 * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
13936 * lib/fpurge.c (fpurge): Likewise.
13937 * lib/freadable.c (freadable): Likewise.
13938 * lib/freading.c (freading): Likewise.
13939 * lib/freadptr.c (freadptr): Likewise.
13940 * lib/freadseek.c (freadptrinc): Likewise.
13941 * lib/fseeko.c (rpl_fseeko): Likewise.
13942 * lib/fseterr.c (fseterr): Likewise.
13943 * lib/fwritable.c (fwritable): Likewise.
13944 * lib/fwriting.c (fwriting): Likewise.
13945 * lib/freadahead.c (freadahead): Likewise, based on code by Alan
13947 Reported by Alan Hourihane <alanh@fairlite.co.uk>.
13949 2009-02-28 Bruno Haible <bruno@clisp.org>
13951 * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
13953 Reported by Jim Meyering.
13955 2009-02-28 Bruno Haible <bruno@clisp.org>
13957 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
13958 Mention the results of these tests on various platforms.
13959 * doc/posix-functions/fprintf.texi: Mention platforms in canonical
13961 * doc/posix-functions/printf.texi: Likewise.
13962 * doc/posix-functions/snprintf.texi: Likewise.
13963 * doc/posix-functions/sprintf.texi: Likewise.
13964 * doc/posix-functions/vfprintf.texi: Likewise.
13965 * doc/posix-functions/vprintf.texi: Likewise.
13966 * doc/posix-functions/vsnprintf.texi: Likewise.
13967 * doc/posix-functions/vsprintf.texi: Likewise.
13968 * doc/glibc-functions/obstack_printf.texi: Likewise.
13969 * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13971 2009-02-28 Bruno Haible <bruno@clisp.org>
13973 * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
13974 Reported by Loïc Minier <lool@dooz.org>.
13976 2009-02-27 Bruno Haible <bruno@clisp.org>
13978 * gnulib-tool (func_import): Make the sed expression used to create the
13979 sed script for updating the .gitignore file POSIX compliant.
13980 Reported by Eric Blake.
13982 2009-02-27 Bruno Haible <bruno@clisp.org>
13984 * gnulib-tool (sed): Don't alias as "sed --posix".
13985 Reported by Eric Blake.
13987 2009-02-27 Bruno Haible <bruno@clisp.org>
13989 Avoid test link errors.
13990 * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
13991 * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
13992 * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
13993 * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
13994 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13996 2009-02-27 Bruno Haible <bruno@clisp.org>
13998 Avoid spurious "(cached)" in configure output.
13999 * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
14000 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
14001 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
14002 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
14003 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
14004 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
14005 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
14006 * m4/stdarg.m4 (gl_STDARG_H): Likewise.
14007 Reported by Eric Blake.
14009 2009-02-27 Eric Blake <ebb9@byu.net>
14011 printf: fix regression in previous patch
14012 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
14014 2009-02-27 Bruno Haible <bruno@clisp.org>
14016 * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
14018 * lib/stdint.in.h: Likewise.
14019 Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
14021 2009-02-27 Eric Blake <ebb9@byu.net>
14023 doc: mention more functions added in cygwin 1.7.0
14024 * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
14026 * doc/posix-functions/open_wmemstream.texi: Likewise.
14027 * doc/posix-functions/wcsnlen.texi: Likewise.
14028 * doc/posix-functions/wcsnrtombs.texi: Likewise.
14029 * doc/posix-functions/wcstod.texi: Likewise.
14030 * doc/posix-functions/wcstof.texi: Likewise.
14031 * doc/posix-functions/wcstoimax.texi: Likewise.
14032 * doc/posix-functions/wcstok.texi: Likewise.
14033 * doc/posix-functions/wcstoumax.texi: Likewise.
14035 Detect bug in cygwin 1.5.x *printf on 1-character %ls.
14036 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
14037 * doc/posix-functions/fprintf.texi: Update.
14038 * doc/posix-functions/printf.texi: Update.
14039 * doc/posix-functions/snprintf.texi: Update.
14040 * doc/posix-functions/sprintf.texi: Update.
14041 * doc/posix-functions/vfprintf.texi: Update.
14042 * doc/posix-functions/vprintf.texi: Update.
14043 * doc/posix-functions/vsnprintf.texi: Update.
14044 * doc/posix-functions/vsprintf.texi: Update.
14045 * doc/glibc-functions/obstack_printf.texi: Update.
14046 * doc/glibc-functions/obstack_vprintf.texi: Update.
14048 2009-02-26 Eric Blake <ebb9@byu.net>
14050 avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
14051 * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
14052 compilation bug by using runtime conversion.
14053 * m4/isfinite.m4 (gl_ISFINITE): Likewise.
14054 * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
14055 * modules/ceill-tests (Files): Use nan.h.
14056 * modules/floorl-tests (Files): Likewise.
14057 * modules/frexpl-tests (Files): Likewise.
14058 * modules/isnanl-tests (Files): Likewise.
14059 * modules/ldexpl-tests (Files): Likewise.
14060 * modules/roundl-tests (Files): Likewise.
14061 * modules/truncl-tests (Files): Likewise.
14062 * tests/test-ceill.c (main): Use a working NaN.
14063 * tests/test-floorl.c (main): Likewise.
14064 * tests/test-frexpl.c (main): Likewise.
14065 * tests/test-isnan.c (test_long_double): Likewise.
14066 * tests/test-isnanl.h (main): Likewise.
14067 * tests/test-ldexpl.h (main): Likewise.
14068 * tests/test-roundl.h (main): Likewise.
14069 * tests/test-truncl.h (main): Likewise.
14070 See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
14072 2009-02-26 Eric Blake <ebb9@byu.net>
14073 Bruno Haible <bruno@clisp.org>
14075 Work around a *printf bug with %ls on Solaris.
14076 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
14077 precision is specified, sprintf stops converting the wide string
14078 argument when the number of bytes that have been produced by this
14079 conversion equals or exceeds the precision.
14080 * doc/posix-functions/fprintf.texi: Update.
14081 * doc/posix-functions/printf.texi: Update.
14082 * doc/posix-functions/snprintf.texi: Update.
14083 * doc/posix-functions/sprintf.texi: Update.
14084 * doc/posix-functions/vfprintf.texi: Update.
14085 * doc/posix-functions/vprintf.texi: Update.
14086 * doc/posix-functions/vsnprintf.texi: Update.
14087 * doc/posix-functions/vsprintf.texi: Update.
14088 * doc/glibc-functions/obstack_printf.texi: Update.
14089 * doc/glibc-functions/obstack_vprintf.texi: Update.
14091 2009-02-26 Eric Blake <ebb9@byu.net>
14093 stdlib: favor compiler check of random.h
14094 * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check. Needed
14095 to avoid an ObjC random.h installed by Swarm.
14097 2009-02-26 Bruno Haible <bruno@clisp.org>
14099 Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
14100 * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
14101 Reported by Gary V. Vaughan <gary@gnu.org>.
14103 2009-02-26 Bruno Haible <bruno@clisp.org>
14105 Fix *printf behaviour regarding the %ls directive.
14106 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
14107 * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
14108 NEED_PRINTF_DIRECTIVE_LS.
14109 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
14110 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
14111 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
14112 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
14113 gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
14114 * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
14115 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14116 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
14117 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
14118 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
14119 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
14120 * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
14121 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
14122 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14123 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
14124 * doc/posix-functions/fprintf.texi: Update.
14125 * doc/posix-functions/printf.texi: Update.
14126 * doc/posix-functions/snprintf.texi: Update.
14127 * doc/posix-functions/sprintf.texi: Update.
14128 * doc/posix-functions/vfprintf.texi: Update.
14129 * doc/posix-functions/vprintf.texi: Update.
14130 * doc/posix-functions/vsnprintf.texi: Update.
14131 * doc/posix-functions/vsprintf.texi: Update.
14132 * doc/glibc-functions/obstack_printf.texi: Update.
14133 * doc/glibc-functions/obstack_vprintf.texi: Update.
14134 Reported by Eric Blake.
14136 2009-02-25 Bruno Haible <bruno@clisp.org>
14138 * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
14140 Reported by Gary V. Vaughan <gary@gnu.org>.
14142 2009-02-25 Bruno Haible <bruno@clisp.org>
14144 Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
14145 * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
14146 (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
14147 * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
14148 Reported by Gary V. Vaughan <gary@gnu.org>.
14150 2009-02-25 Bruno Haible <bruno@clisp.org>
14152 Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
14153 * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
14154 INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
14155 * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
14156 Reported by Gary V. Vaughan <gary@gnu.org>.
14158 2009-02-25 Eric Blake <ebb9@byu.net>
14160 tests: skip fseek/ftell tests if ungetc is broken
14161 * m4/ungetc.m4: New file.
14162 * modules/fseek-tests: Split test, so ungetc dependency is
14163 separate from rest of test.
14164 * modules/fseeko-tests: Likewise.
14165 * modules/ftell-tests: Likewise.
14166 * modules/ftello-tests: Likewise.
14167 * tests/test-fseek.c (main): Isolate ungetc dependency.
14168 * tests/test-fseeko.c (main): Likewise.
14169 * tests/test-ftell.c (main): Likewise.
14170 * tests/test-ftello.c (main): Likewise.
14171 * tests/test-fseek2.sh: New file.
14172 * tests/test-fseeko2.sh: Likewise.
14173 * tests/test-ftell2.sh: Likewise.
14174 * tests/test-ftello2.sh: Likewise.
14176 2009-02-25 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
14178 test-getaddrinfo: fix usage of skip return code 77
14179 * tests/test-gettaddrinfo.c: Return skip code 77 only
14180 for first occurance of skip (4x77 is not 77)
14182 2009-02-25 Gary V. Vaughan <gary@gnu.org>
14184 strtod: avoid C99 decl-after-statement
14185 * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
14187 2009-02-24 Eric Blake <ebb9@byu.net>
14189 strtod: detect HP-UX 11.31 bug
14190 * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
14191 Reported by Gary V. Vaughan.
14193 2009-02-23 Bruno Haible <bruno@clisp.org>
14195 Fix invalid read past end of memory block.
14196 * lib/vasnprintf.c (DCHAR_SET): Define.
14197 (local_wcslen): Define only when needed.
14198 (local_strnlen, local_wcsnlen): New functions.
14199 (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
14200 directives that involve a conversion ourselves.
14201 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
14202 wcsnlen, mbrtowc, wcrtomb.
14203 * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
14204 * tests/test-vasprintf-posix.c (test_function): Likewise.
14205 * tests/test-snprintf-posix.h (test_function): Likewise.
14206 * tests/test-sprintf-posix.h (test_function): Likewise.
14207 Reported by Ben Pfaff <blp@cs.stanford.edu>.
14209 2009-02-22 Bruno Haible <bruno@clisp.org>
14211 Implement new clarified decomposition of Hangul syllables.
14212 * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
14213 of type LTV, return only a pairwise decomposition.
14214 * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
14216 * tests/uninorm/test-decomposition.c (main): Updated expected result.
14217 * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
14218 * tests/uninorm/test-compat-decomposition.c (main): Likewise.
14220 2009-02-22 Bruno Haible <bruno@clisp.org>
14222 * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
14223 zero-length results and shrink excess allocated memory.
14224 * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
14225 * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
14226 * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
14227 * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
14228 * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
14229 * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
14230 * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
14231 * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
14232 * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
14233 * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
14234 * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
14235 * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
14237 2009-02-21 Bruno Haible <bruno@clisp.org>
14239 * doc/gnulib.texi: Include safe-alloc.texi earlier.
14240 * doc/safe-alloc.texi: Terminate sentences with a period. Use two
14241 spaces after a period. Put a space between a macro name and its
14242 argument list. Trivial rewordings.
14243 * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
14244 * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
14245 (main): Return 0 explicitly.
14247 2009-02-21 Bruno Haible <bruno@clisp.org>
14249 Tests for module 'uninorm/filter'.
14250 * tests/uninorm/test-uninorm-filter-nfc.c: New file.
14251 * modules/uninorm/filter-tests: New file.
14253 New module 'uninorm/filter'.
14254 * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
14255 uninorm_filter_flush, uninorm_filter_free): New declarations.
14256 * lib/uninorm/uninorm-filter.c: New file.
14257 * modules/uninorm/filter: New file.
14259 2009-02-21 Bruno Haible <bruno@clisp.org>
14261 Tests for module 'uninorm/nfkc'.
14262 * tests/uninorm/test-nfkc.c: New file.
14263 * tests/uninorm/test-u8-nfkc.c: New file.
14264 * tests/uninorm/test-u16-nfkc.c: New file.
14265 * tests/uninorm/test-u32-nfkc.c: New file.
14266 * tests/uninorm/test-u32-nfkc-big.sh: New file.
14267 * tests/uninorm/test-u32-nfkc-big.c: New file.
14268 * modules/uninorm/nfkc-tests: New file.
14270 New module 'uninorm/nfkc'.
14271 * lib/uninorm/nfkc.c: New file.
14272 * modules/uninorm/nfkc: New file.
14274 Tests for module 'uninorm/nfkd'.
14275 * tests/uninorm/test-nfkd.c: New file.
14276 * tests/uninorm/test-u8-nfkd.c: New file.
14277 * tests/uninorm/test-u16-nfkd.c: New file.
14278 * tests/uninorm/test-u32-nfkd.c: New file.
14279 * tests/uninorm/test-u32-nfkd-big.sh: New file.
14280 * tests/uninorm/test-u32-nfkd-big.c: New file.
14281 * modules/uninorm/nfkd-tests: New file.
14283 New module 'uninorm/nfkd'.
14284 * lib/uninorm/nfkd.c: New file.
14285 * modules/uninorm/nfkd: New file.
14287 Tests for module 'uninorm/nfc'.
14288 * tests/uninorm/test-nfc.c: New file.
14289 * tests/uninorm/test-u8-nfc.c: New file.
14290 * tests/uninorm/test-u16-nfc.c: New file.
14291 * tests/uninorm/test-u32-nfc.c: New file.
14292 * tests/uninorm/test-u32-nfc-big.sh: New file.
14293 * tests/uninorm/test-u32-nfc-big.c: New file.
14294 * modules/uninorm/nfc-tests: New file.
14296 New module 'uninorm/nfc'.
14297 * lib/uninorm/nfc.c: New file.
14298 * modules/uninorm/nfc: New file.
14300 Tests for module 'uninorm/nfd'.
14301 * tests/uninorm/test-nfd.c: New file.
14302 * tests/uninorm/test-u8-nfd.c: New file.
14303 * tests/uninorm/test-u16-nfd.c: New file.
14304 * tests/uninorm/test-u32-nfd.c: New file.
14305 * tests/uninorm/test-u32-nfd-big.sh: New file.
14306 * tests/uninorm/test-u32-nfd-big.c: New file.
14307 * tests/uninorm/test-u32-normalize-big.h: New file.
14308 * tests/uninorm/test-u32-normalize-big.c: New file.
14309 * tests/uninorm/NormalizationTest.txt: New file, created from
14310 Unicode 5.1.0 NormalizationTest.txt.
14311 * modules/uninorm/nfd-tests: New file.
14313 New module 'uninorm/nfd'.
14314 * lib/uninorm/nfd.c: New file.
14315 * modules/uninorm/nfd: New file.
14317 New module 'uninorm/u32-normalize'.
14318 * lib/uninorm/u32-normalize.c: New file.
14319 * modules/uninorm/u32-normalize: New file.
14321 New module 'uninorm/u16-normalize'.
14322 * lib/uninorm/u16-normalize.c: New file.
14323 * modules/uninorm/u16-normalize: New file.
14325 New module 'uninorm/u8-normalize'.
14326 * lib/uninorm/u8-normalize.c: New file.
14327 * lib/uninorm/normalize-internal.h: New file.
14328 * lib/uninorm/u-normalize-internal.h: New file.
14329 * modules/uninorm/u8-normalize: New file.
14331 New module 'uninorm/decompose-internal'.
14332 * lib/uninorm/decompose-internal.c: New file.
14333 * modules/uninorm/decompose-internal: New file.
14335 Tests for module 'uninorm/composition'.
14336 * tests/uninorm/test-composition.c: New file.
14337 * modules/uninorm/composition-tests: New file.
14339 New module 'uninorm/composition'.
14340 * lib/uninorm/composition.c: New file.
14341 * lib/uninorm/composition-table.gperf: New file, generated by
14343 * modules/uninorm/composition: New file.
14345 Tests for module 'uninorm/compat-decomposition'.
14346 * tests/uninorm/test-compat-decomposition.c: New file.
14347 * modules/uninorm/compat-decomposition-tests: New file.
14349 New module 'uninorm/compat-decomposition'.
14350 * lib/uninorm/decompose-internal.h: New file.
14351 * lib/uninorm/compat-decomposition.c: New file.
14352 * modules/uninorm/compat-decomposition: New file.
14354 Tests for module 'uninorm/canonical-decomposition'.
14355 * tests/uninorm/test-canonical-decomposition.c: New file.
14356 * modules/uninorm/canonical-decomposition-tests: New file.
14358 New module 'uninorm/canonical-decomposition'.
14359 * lib/uninorm/canonical-decomposition.c: New file.
14360 * modules/uninorm/canonical-decomposition: New file.
14362 Tests for module 'uninorm/decomposition'.
14363 * tests/uninorm/test-decomposition.c: New file.
14364 * modules/uninorm/decomposition-tests: New file.
14366 New module 'uninorm/decomposition'.
14367 * lib/uninorm/decomposition.c: New file.
14368 * modules/uninorm/decomposition: New file.
14370 New module 'uninorm/decomposition-table'.
14371 * lib/uninorm/decomposition-table.h: New file.
14372 * lib/uninorm/decomposition-table.c: New file.
14373 * lib/uninorm/decomposition-table1.h: New file, generated by
14375 * lib/uninorm/decomposition-table2.h: New file, generated by
14377 * modules/uninorm/decomposition-table: New file.
14379 * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
14380 (UC_DECOMP_*): New enumeration items.
14381 (get_decomposition): New function.
14382 (struct decomp_table): New type.
14383 (output_decomposition, output_decomposition_tables): New functions.
14384 (unicode_composition_exclusions): New variable.
14385 (fill_composition_exclusions, debug_output_composition_tables): New
14387 (main): Accept one more argument. Invoke fill_composition_exclusions.
14388 Output decomposition and composition tables.
14390 New module 'uninorm/base'.
14391 * lib/uninorm.h: New file.
14392 * lib/unictype.h: Update comment.
14393 * modules/uninorm/base: New file.
14395 2009-02-21 David Lutterkort <lutter@redhat.com>
14397 Tests for module 'safe-alloc'.
14398 * tests/test-safe-alloc.c: New file.
14399 * modules/safe-alloc-tests: New file.
14401 New module 'safe-alloc'.
14402 * lib/safe-alloc.h: New file.
14403 * lib/safe-alloc.c: New file.
14404 * m4/safe-alloc.m4: New file.
14405 * modules/safe-alloc: New file.
14406 * doc/safe-alloc.texi: New file.
14407 * doc/gnulib.texi: Include it.
14408 * MODULES.html.sh (Memory management functions <stdlib.h>): Add
14411 2009-02-18 Bruno Haible <bruno@clisp.org>
14413 Fix link error on non-glibc systems.
14414 * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
14416 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14418 2009-02-18 Jim Meyering <meyering@redhat.com>
14420 fts: avoid used-uninitialized error due to recent change
14421 * lib/fts.c (fts_read): Guard uses of the new member,
14422 parent->fts_n_dirs_remaining, since it's not relevant for
14423 the parent of a directory specified on the command-line.
14425 2009-02-17 James Youngman <jay@gnu.org>
14426 Bruno Haible <bruno@clisp.org>
14428 * m4/include_next.m4: Reformulate comment.
14430 2009-02-16 Jim Meyering <meyering@redhat.com>
14432 fts: add #if guards so that the fts_lgpl module still builds
14433 * lib/fts.c: Guard just-added hash-table-using parts with
14434 #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
14435 Reported by Simon Josefsson.
14437 2009-02-15 Bruno Haible <bruno@clisp.org>
14439 * modules/array-mergesort-tests: New file.
14440 * tests/test-array-mergesort.c: New file.
14442 New module 'array-mergesort'.
14443 * modules/array-mergesort: New file.
14444 * lib/array-mergesort.h: New file.
14446 2009-02-15 Bruno Haible <bruno@clisp.org>
14448 Fix 2009-02-07 commit.
14449 * lib/gen-uni-tables.c (output_predicate, output_category,
14450 output_combclass, output_bidi_category, output_decimal_digit,
14451 output_digit, output_numeric, output_mirror, output_scripts,
14452 output_ident_category, output_simple_mapping): Fix format directives.
14453 (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
14455 2009-02-15 Albert Chin-A-Young <china@thewrittenword.com>
14457 * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
14458 fixes are available from IBM.
14460 2009-02-13 Jim Meyering <meyering@redhat.com>
14462 fts: arrange not to stat non-directories in more cases
14463 This makes GNU find (when it doesn't need to stat each file)
14464 *much* more efficient at traversing reiserfs file systems.
14465 * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
14466 (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
14467 * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
14468 (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
14469 (leaf_optimization_applies): New function.
14470 (LCO_hash, LCO_compare): New helper functions.
14471 (link_count_optimize_ok): New function.
14472 (fts_stat): Initialize new member (if dir).
14473 (fts_read): Decrement parent's fts_n_dirs_remaining count if
14474 we've just stat'ed a directory. Skip the stat call when possible.
14476 Note this AFS-related exchange:
14477 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
14478 and note find's pioctl call in find/fstype.c.
14479 But that is necessary only if you want to enable the
14480 optimization for AFS, and for now, I don't.
14482 fts: move a function definition "up" (no semantic change)
14483 * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
14484 "up" to precede upcoming use of a related function.
14486 2009-02-11 Jim Meyering <meyering@redhat.com>
14488 fts: correct internal computation of nlinks (optimization-related)
14489 * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
14490 whether the current entry is a directory, so don't test it.
14492 2009-02-10 Bruno Haible <bruno@clisp.org>
14494 Tests for module 'uniwbrk/ulc-wordbreaks'.
14495 * modules/uniwbrk/ulc-wordbreaks-tests: New file.
14496 * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
14497 * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
14499 Tests for module 'uniwbrk/u32-wordbreaks'.
14500 * modules/uniwbrk/u32-wordbreaks-tests: New file.
14501 * tests/uniwbrk/test-u32-wordbreaks.c: New file.
14503 Tests for module 'uniwbrk/u16-wordbreaks'.
14504 * modules/uniwbrk/u16-wordbreaks-tests: New file.
14505 * tests/uniwbrk/test-u16-wordbreaks.c: New file.
14507 Tests for module 'uniwbrk/u8-wordbreaks'.
14508 * modules/uniwbrk/u8-wordbreaks-tests: New file.
14509 * tests/uniwbrk/test-u8-wordbreaks.c: New file.
14511 2009-02-10 Bruno Haible <bruno@clisp.org>
14513 * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
14515 * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
14516 * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
14517 * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
14519 2009-02-10 Simon Josefsson <simon@josefsson.org>
14521 * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
14522 inline keywords. Reported by Bruno Haible <bruno@clisp.org>.
14524 2009-02-10 Bruno Haible <bruno@clisp.org>
14526 * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
14527 * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
14528 * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
14529 * lib/unilbrk/u8-possible-linebreaks.c: Update.
14530 * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
14531 * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
14533 2009-02-09 Simon Josefsson <simon@josefsson.org>
14535 * lib/sockets.h (gl_fd_to_handle): New function.
14537 * tests/test-sockets.c: Call gl_fd_to_handle.
14539 2009-02-09 Bruno Haible <bruno@clisp.org>
14541 * doc/havelib.texi: Document the conventions on bi-arch systems.
14543 2009-02-08 Bruno Haible <bruno@clisp.org>
14545 Document the AC_LIB_LINKFLAGS macro.
14546 * doc/havelib.texi: New file, mostly written on 2005-05-24.
14547 * doc/gnulib.texi: Include it.
14549 2009-02-08 Bruno Haible <bruno@clisp.org>
14551 Fix wrong order of sections, compared to TOC.
14552 * doc/gnulib.texi: Include relocatable-maint.texi after the
14553 "Regular expressions" node, not before.
14555 2009-02-08 Bruno Haible <bruno@clisp.org>
14557 Tests for module 'unicase/totitle'.
14558 * modules/unicase/totitle-tests: New file.
14560 Tests for module 'unicase/tolower'.
14561 * modules/unicase/tolower-tests: New file.
14563 Tests for module 'unicase/toupper'.
14564 * modules/unicase/toupper-tests: New file.
14565 * tests/unicase/test-mapping-part1.h: New file.
14566 * tests/unicase/test-mapping-part2.h: New file.
14568 New module 'unicase/totitle'.
14569 * modules/unicase/totitle: New file.
14570 * lib/unicase/totitle.c: New file.
14572 New module 'unicase/tolower'.
14573 * modules/unicase/tolower: New file.
14574 * lib/unicase/tolower.c: New file.
14576 New module 'unicase/toupper'.
14577 * modules/unicase/toupper: New file.
14578 * lib/unicase/toupper.c: New file.
14579 * lib/unicase/simple-mapping.h: New file.
14581 * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
14582 (mapping_table): New structure.
14583 (output_simple_mapping): New function.
14584 (main): Invoke output_simple_mapping_test and output_simple_mapping.
14585 * modules/gen-uni-tables (Description): Update.
14586 * lib/unicase/toupper.h: New file, automatically generated by
14588 * lib/unicase/tolower.h: New file, automatically generated by
14590 * lib/unicase/totitle.h: New file, automatically generated by
14592 * tests/unicase/test-uc_toupper.c: New file, automatically generated by
14594 * tests/unicase/test-uc_tolower.c: New file, automatically generated by
14596 * tests/unicase/test-uc_totitle.c: New file, automatically generated by
14599 New module 'unicase/base'.
14600 * modules/unicase/base: New file.
14601 * lib/unicase.h: New file.
14603 2009-02-08 Bruno Haible <bruno@clisp.org>
14605 New module 'uniwbrk/ulc-wordbreaks'.
14606 * modules/uniwbrk/ulc-wordbreaks: New file.
14607 * lib/uniwbrk/ulc-wordbreaks.c: New file.
14609 New module 'uniwbrk/u32-wordbreaks'.
14610 * modules/uniwbrk/u32-wordbreaks: New file.
14611 * lib/uniwbrk/u32-wordbreaks.c: New file.
14613 New module 'uniwbrk/u16-wordbreaks'.
14614 * modules/uniwbrk/u16-wordbreaks: New file.
14615 * lib/uniwbrk/u16-wordbreaks.c: New file.
14617 New module 'uniwbrk/u8-wordbreaks'.
14618 * modules/uniwbrk/u8-wordbreaks: New file.
14619 * lib/uniwbrk/u8-wordbreaks.c: New file.
14620 * lib/uniwbrk/u-wordbreaks.h: New file.
14622 New module 'uniwbrk/table'.
14623 * modules/uniwbrk/table: New file.
14624 * lib/uniwbrk/wbrktable.h: New file.
14625 * lib/uniwbrk/wbrktable.c: New file.
14627 New module 'uniwbrk/wordbreak-property'.
14628 * modules/uniwbrk/wordbreak-property: New file.
14629 * lib/uniwbrk/wordbreak-property.c: New file.
14631 * lib/gen-uni-tables.c (WBP_*): New enum items.
14632 (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
14633 (unicode_org_wbp): New variable.
14634 (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
14636 (wbp_table): New structure.
14637 (output_wbp, output_wbrk_tables): New functions.
14638 (main): Accept additional argument. Invoke fill_org_wbp,
14639 debug_output_wbrk_tables, debug_output_org_wbrk_tables,
14640 output_wbrk_tables.
14641 * modules/gen-uni-tables (Description): Update.
14642 * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
14645 New module 'uniwbrk/base'.
14646 * modules/uniwbrk/base: New file.
14647 * lib/uniwbrk.h: New file.
14649 2009-02-08 Bruno Haible <bruno@clisp.org>
14651 Update to Unicode 5.1.0.
14652 * lib/gen-uni-tables.c (is_property_alphabetic): Include
14654 (is_property_default_ignorable_code_point): Don't include characters
14655 of category Cc or Cs and not-a-characters.
14656 (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
14657 U+0D79, U+109E, U+109F, U+A60C.
14658 * lib/unictype/bidi_of.h: Regenerated.
14659 * lib/unictype/blocks.h: Regenerated.
14660 * lib/unictype/categ_C.h: Regenerated.
14661 * lib/unictype/categ_Cf.h: Regenerated.
14662 * lib/unictype/categ_Cn.h: Regenerated.
14663 * lib/unictype/categ_L.h: Regenerated.
14664 * lib/unictype/categ_Ll.h: Regenerated.
14665 * lib/unictype/categ_Lm.h: Regenerated.
14666 * lib/unictype/categ_Lo.h: Regenerated.
14667 * lib/unictype/categ_Lu.h: Regenerated.
14668 * lib/unictype/categ_M.h: Regenerated.
14669 * lib/unictype/categ_Mc.h: Regenerated.
14670 * lib/unictype/categ_Me.h: Regenerated.
14671 * lib/unictype/categ_Mn.h: Regenerated.
14672 * lib/unictype/categ_N.h: Regenerated.
14673 * lib/unictype/categ_Nd.h: Regenerated.
14674 * lib/unictype/categ_Nl.h: Regenerated.
14675 * lib/unictype/categ_No.h: Regenerated.
14676 * lib/unictype/categ_P.h: Regenerated.
14677 * lib/unictype/categ_Pd.h: Regenerated.
14678 * lib/unictype/categ_Pe.h: Regenerated.
14679 * lib/unictype/categ_Pf.h: Regenerated.
14680 * lib/unictype/categ_Pi.h: Regenerated.
14681 * lib/unictype/categ_Po.h: Regenerated.
14682 * lib/unictype/categ_Ps.h: Regenerated.
14683 * lib/unictype/categ_S.h: Regenerated.
14684 * lib/unictype/categ_Sk.h: Regenerated.
14685 * lib/unictype/categ_Sm.h: Regenerated.
14686 * lib/unictype/categ_So.h: Regenerated.
14687 * lib/unictype/categ_of.h: Regenerated.
14688 * lib/unictype/combining.h: Regenerated.
14689 * lib/unictype/ctype_alnum.h: Regenerated.
14690 * lib/unictype/ctype_alpha.h: Regenerated.
14691 * lib/unictype/ctype_graph.h: Regenerated.
14692 * lib/unictype/ctype_lower.h: Regenerated.
14693 * lib/unictype/ctype_print.h: Regenerated.
14694 * lib/unictype/ctype_punct.h: Regenerated.
14695 * lib/unictype/ctype_upper.h: Regenerated.
14696 * lib/unictype/decdigit.h: Regenerated.
14697 * lib/unictype/digit.h: Regenerated.
14698 * lib/unictype/mirror.h: Regenerated.
14699 * lib/unictype/numeric.h: Regenerated.
14700 * lib/unictype/pr_alphabetic.h: Regenerated.
14701 * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
14702 * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
14703 * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
14704 * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
14705 * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
14706 * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
14707 * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
14708 * lib/unictype/pr_combining.h: Regenerated.
14709 * lib/unictype/pr_dash.h: Regenerated.
14710 * lib/unictype/pr_decimal_digit.h: Regenerated.
14711 * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
14712 * lib/unictype/pr_deprecated.h: Regenerated.
14713 * lib/unictype/pr_diacritic.h: Regenerated.
14714 * lib/unictype/pr_extender.h: Regenerated.
14715 * lib/unictype/pr_format_control.h: Regenerated.
14716 * lib/unictype/pr_grapheme_base.h: Regenerated.
14717 * lib/unictype/pr_grapheme_extend.h: Regenerated.
14718 * lib/unictype/pr_grapheme_link.h: Regenerated.
14719 * lib/unictype/pr_id_continue.h: Regenerated.
14720 * lib/unictype/pr_id_start.h: Regenerated.
14721 * lib/unictype/pr_ideographic.h: Regenerated.
14722 * lib/unictype/pr_ignorable_control.h: Regenerated.
14723 * lib/unictype/pr_lowercase.h: Regenerated.
14724 * lib/unictype/pr_math.h: Regenerated.
14725 * lib/unictype/pr_numeric.h: Regenerated.
14726 * lib/unictype/pr_other_alphabetic.h: Regenerated.
14727 * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
14728 * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
14729 * lib/unictype/pr_other_id_continue.h: Regenerated.
14730 * lib/unictype/pr_other_lowercase.h: Regenerated.
14731 * lib/unictype/pr_other_math.h: Regenerated.
14732 * lib/unictype/pr_punctuation.h: Regenerated.
14733 * lib/unictype/pr_sentence_terminal.h: Regenerated.
14734 * lib/unictype/pr_soft_dotted.h: Regenerated.
14735 * lib/unictype/pr_terminal_punctuation.h: Regenerated.
14736 * lib/unictype/pr_unassigned_code_value.h: Regenerated.
14737 * lib/unictype/pr_unified_ideograph.h: Regenerated.
14738 * lib/unictype/pr_uppercase.h: Regenerated.
14739 * lib/unictype/pr_xid_continue.h: Regenerated.
14740 * lib/unictype/pr_xid_start.h: Regenerated.
14741 * lib/unictype/pr_zero_width.h: Regenerated.
14742 * lib/unictype/scripts.h: Regenerated.
14743 * lib/unictype/scripts_byname.gperf: Regenerated.
14744 * lib/unictype/sy_java_ident.h: Regenerated.
14745 * lib/unilbrk/lbrkprop1.h: Regenerated.
14746 * lib/unilbrk/lbrkprop2.h: Regenerated.
14747 * tests/unictype/test-categ_C.c: Regenerated.
14748 * tests/unictype/test-categ_Cf.c: Regenerated.
14749 * tests/unictype/test-categ_Cn.c: Regenerated.
14750 * tests/unictype/test-categ_L.c: Regenerated.
14751 * tests/unictype/test-categ_Ll.c: Regenerated.
14752 * tests/unictype/test-categ_Lm.c: Regenerated.
14753 * tests/unictype/test-categ_Lo.c: Regenerated.
14754 * tests/unictype/test-categ_Lu.c: Regenerated.
14755 * tests/unictype/test-categ_M.c: Regenerated.
14756 * tests/unictype/test-categ_Mc.c: Regenerated.
14757 * tests/unictype/test-categ_Me.c: Regenerated.
14758 * tests/unictype/test-categ_Mn.c: Regenerated.
14759 * tests/unictype/test-categ_N.c: Regenerated.
14760 * tests/unictype/test-categ_Nd.c: Regenerated.
14761 * tests/unictype/test-categ_Nl.c: Regenerated.
14762 * tests/unictype/test-categ_No.c: Regenerated.
14763 * tests/unictype/test-categ_P.c: Regenerated.
14764 * tests/unictype/test-categ_Pd.c: Regenerated.
14765 * tests/unictype/test-categ_Pe.c: Regenerated.
14766 * tests/unictype/test-categ_Pf.c: Regenerated.
14767 * tests/unictype/test-categ_Pi.c: Regenerated.
14768 * tests/unictype/test-categ_Po.c: Regenerated.
14769 * tests/unictype/test-categ_Ps.c: Regenerated.
14770 * tests/unictype/test-categ_S.c: Regenerated.
14771 * tests/unictype/test-categ_Sk.c: Regenerated.
14772 * tests/unictype/test-categ_Sm.c: Regenerated.
14773 * tests/unictype/test-categ_So.c: Regenerated.
14774 * tests/unictype/test-ctype_alnum.c: Regenerated.
14775 * tests/unictype/test-ctype_alpha.c: Regenerated.
14776 * tests/unictype/test-ctype_graph.c: Regenerated.
14777 * tests/unictype/test-ctype_lower.c: Regenerated.
14778 * tests/unictype/test-ctype_print.c: Regenerated.
14779 * tests/unictype/test-ctype_punct.c: Regenerated.
14780 * tests/unictype/test-ctype_upper.c: Regenerated.
14781 * tests/unictype/test-decdigit.h: Regenerated.
14782 * tests/unictype/test-digit.h: Regenerated.
14783 * tests/unictype/test-numeric.h: Regenerated.
14784 * tests/unictype/test-pr_alphabetic.c: Regenerated.
14785 * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
14786 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
14787 * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
14788 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
14789 * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
14790 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
14791 * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
14792 * tests/unictype/test-pr_combining.c: Regenerated.
14793 * tests/unictype/test-pr_dash.c: Regenerated.
14794 * tests/unictype/test-pr_decimal_digit.c: Regenerated.
14795 * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
14796 * tests/unictype/test-pr_deprecated.c: Regenerated.
14797 * tests/unictype/test-pr_diacritic.c: Regenerated.
14798 * tests/unictype/test-pr_extender.c: Regenerated.
14799 * tests/unictype/test-pr_format_control.c: Regenerated.
14800 * tests/unictype/test-pr_grapheme_base.c: Regenerated.
14801 * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
14802 * tests/unictype/test-pr_grapheme_link.c: Regenerated.
14803 * tests/unictype/test-pr_id_continue.c: Regenerated.
14804 * tests/unictype/test-pr_id_start.c: Regenerated.
14805 * tests/unictype/test-pr_ideographic.c: Regenerated.
14806 * tests/unictype/test-pr_ignorable_control.c: Regenerated.
14807 * tests/unictype/test-pr_lowercase.c: Regenerated.
14808 * tests/unictype/test-pr_math.c: Regenerated.
14809 * tests/unictype/test-pr_numeric.c: Regenerated.
14810 * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
14811 * tests/unictype/test-pr_other_default_ignorable_code_point.c:
14813 * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
14814 * tests/unictype/test-pr_other_id_continue.c: Regenerated.
14815 * tests/unictype/test-pr_other_lowercase.c: Regenerated.
14816 * tests/unictype/test-pr_other_math.c: Regenerated.
14817 * tests/unictype/test-pr_punctuation.c: Regenerated.
14818 * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
14819 * tests/unictype/test-pr_soft_dotted.c: Regenerated.
14820 * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
14821 * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
14822 * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
14823 * tests/unictype/test-pr_uppercase.c: Regenerated.
14824 * tests/unictype/test-pr_xid_continue.c: Regenerated.
14825 * tests/unictype/test-pr_xid_start.c: Regenerated.
14826 * tests/unictype/test-pr_zero_width.c: Regenerated.
14828 Update to Unicode 5.1.0.
14829 * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
14830 U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
14831 U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
14832 U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
14833 U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
14834 U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
14835 U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
14836 U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
14837 U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
14838 (nonspacing_table_ind): Update.
14839 * tests/uniwidth/test-uc_width2.sh: Update expected result.
14841 Update to Unicode 5.1.0.
14842 * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
14844 * lib/uniname/uniname.c (unicode_character_name,
14845 unicode_name_character): Add the range 0x1Fxxx to the code transform.
14846 * lib/uniname/uninames.h: Regenerated.
14847 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
14849 2009-02-07 Bruno Haible <bruno@clisp.org>
14851 Merge gen-ctype and gen-lbrk into a single program.
14852 * lib/gen-uni-tables.c: New file, incorporating
14853 lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
14854 Add directory prefixes to the names of the generated files.
14855 * lib/unictype/gen-ctype.c: Remove file.
14856 * lib/unilbrk/gen-lbrk.c: Remove file.
14857 * modules/gen-uni-tables: New file.
14858 * modules/unictype/gen-ctype: Remove file.
14859 * modules/unilbrk/gen-lbrk: Remove file.
14861 2009-02-07 Bruno Haible <bruno@clisp.org>
14863 * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
14865 New module 'unistr/u32-strcoll'.
14866 * modules/unistr/u32-strcoll: New file.
14867 * lib/unistr/u32-strcoll.c: New file.
14869 New module 'unistr/u16-strcoll'.
14870 * modules/unistr/u16-strcoll: New file.
14871 * lib/unistr/u16-strcoll.c: New file.
14873 New module 'unistr/u8-strcoll'.
14874 * modules/unistr/u8-strcoll: New file.
14875 * lib/unistr/u8-strcoll.c: New file.
14876 * lib/unistr/u-strcoll.h: New file.
14878 2009-02-07 Bruno Haible <bruno@clisp.org>
14880 * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
14881 * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14882 * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
14883 * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
14884 * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
14885 * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
14887 2009-02-07 Bruno Haible <bruno@clisp.org>
14890 * lib/unictype/gen-ctype.c (output_predicate, output_category,
14891 output_combclass, output_bidi_category, output_decimal_digit,
14892 output_digit, output_numeric, output_mirror, output_scripts,
14893 output_ident_category): Use proper width specifier in format strings.
14895 2009-02-07 Bruno Haible <bruno@clisp.org>
14897 * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
14900 2009-02-07 Jim Meyering <meyering@redhat.com>
14902 regex: avoid compilation failure with upcoming gcc-4.4
14903 * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
14904 [workaround for PGC prior to 6.1-2]. Otherwise, we'd get this:
14905 "... error: integer overflow in preprocessor expression".
14907 2009-02-05 Ben Pfaff <blp@gnu.org>
14909 Fix link errors on Windows when close module is used.
14910 * modules/close: Add $(LIB_CLOSE) to Link section.
14911 * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
14912 $(LIB_CLOSE) on Windows.
14914 2009-02-05 Jim Meyering <meyering@redhat.com>
14916 still avoid unused-parameter warnings, but do it cleanly
14917 * lib/fsusage.c (UNUSED_PARAM): Remove definition.
14918 (get_fs_usage): Cast to void instead.
14919 * lib/mountlist.c (UNUSED_PARAM): Remove definition.
14920 (dev_from_mount_options, read_file_system_list): Cast to void.
14921 Prompted by Bruno Haible.
14923 2009-02-04 Jim Meyering <meyering@redhat.com>
14925 fsusage.c: correct copyright year
14926 * lib/fsusage.c: Reflect year in which the change is pushed into
14928 avoid misc. warnings
14929 * lib/fsusage.c (UNUSED_PARAM): Define.
14930 (get_fs_usage): Mark parameter "disk" as unused.
14931 * lib/getugroups.c (getgrent): Use "void" in prototype.
14932 * lib/mountlist.c: Mark unused parameters.
14933 (read_file_system_list): Declare a local with "const".
14934 * lib/nanosleep.c (getnow): Declare static.
14935 * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
14937 dirfd: set errno upon failure
14938 * lib/dirfd.c: Include <errno.h>.
14939 Set errno to ENOTSUP when returning -1.
14940 * modules/dirfd (Depends-on): Add errno.
14941 Suggested by John Kodis <kodis@comcast.net>.
14943 2009-02-01 Bruno Haible <bruno@clisp.org>
14945 Don't assume sizeof (long) >= sizeof (void *).
14946 * lib/memcmp.c: Include stdint.h.
14947 (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
14948 srcp2 to 'const byte *'.
14949 (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
14950 types to uintptr_t.
14951 (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
14952 * modules/memcmp (Depends-on): Add stdint.
14953 Reported by Ozkan Sezer <sezeroz@gmail.com>.
14955 2009-01-30 Eric Blake <ebb9@byu.net>
14957 fix more require-before-expand issues
14958 * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
14959 expand, AC_PROG_AWK.
14960 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
14962 2009-01-28 Eric Blake <ebb9@byu.net>
14964 version-etc: use consistent URL formatting
14965 * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
14966 Improve formatting. Use fputs for string without %.
14968 2009-01-28 Jim Meyering <meyering@redhat.com>
14970 00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
14971 * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
14972 "underquoted definition of NAME" from autoconf-2.59.
14974 2009-01-28 Bruno Haible <bruno@clisp.org>
14976 * doc/gnulib.texi: Add "Obsolete modules" to index.
14978 2009-01-28 Jim Meyering <meyering@redhat.com>
14980 useless-if-before-free: recognize more variants
14981 * build-aux/useless-if-before-free: Also recognize e.g.,
14982 if (NULL != p) free (p);
14984 2009-01-27 Mark McLoughlin <markmc@redhat.com>
14986 test-getaddrinfo: skip (don't fail) this test when there's no network
14987 * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
14988 on the presumption that it means you lack network access.
14990 2009-01-26 Jim Meyering <meyering@redhat.com>
14992 fflush: avoid warnings on modern systems
14993 * lib/fflush.c (rpl_fflush): Move declarations of locals,
14994 pos and result, into scopes where they're used.
14996 2009-01-26 Eric Blake <ebb9@byu.net>
14998 Silence warning reintroduced by recent extensions patch.
14999 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
15000 (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
15003 Backport improved autoconf semantics of AC_DEFUN_ONCE.
15004 * m4/00gnulib.m4: New file.
15005 * gnulib-tool (func_get_filelist): Always use it.
15006 * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
15007 Reported by Bruno Haible, with suggestions from Paolo Bonzini.
15009 2009-01-25 Bruno Haible <bruno@clisp.org>
15011 Make test-quotearg work on MacOS X and AIX.
15012 * tests/test-quotearg.sh: New file.
15013 * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
15014 * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
15015 * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
15016 include <libintl.h>.
15017 (fake_locale): Remove variable.
15018 (gettext, dgettext, dcgettext): Remove functions.
15019 (main): Instead of setting a fake locale, set a real locale. Call
15020 textdomain and bindtextdomain.
15021 * modules/quotearg-tests (Files): Add the new files.
15022 (Depends-on): Add gettext, setenv, unsetenv.
15023 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
15024 (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
15025 Augment TESTS_ENVIRONMENT.
15027 2009-01-25 Bruno Haible <bruno@clisp.org>
15029 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
15030 fr_FR.ISO8859-1 locale on MacOS X.
15031 * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
15032 ja_JP.eucJP locale on MacOS X.
15033 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
15034 zh_CN.GB18030 locale on MacOS X.
15036 2009-01-25 Bruno Haible <bruno@clisp.org>
15038 Avoid link errors on MacOS X 10.3.
15039 * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
15040 * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
15042 2009-01-25 Bruno Haible <bruno@clisp.org>
15044 * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15045 * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
15046 * modules/pipe (Files): Remove m4/posix_spawn.m4.
15047 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15048 posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
15049 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15050 posix_spawnattr_init, posix_spawnattr_setsigmask,
15051 posix_spawnattr_setflags, posix_spawnattr_destroy.
15053 * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
15054 * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
15055 * modules/execute (Files): Remove m4/posix_spawn.m4.
15056 (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
15057 posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
15058 posix_spawnattr_init, posix_spawnattr_setsigmask,
15059 posix_spawnattr_setflags, posix_spawnattr_destroy.
15061 2009-01-25 Bruno Haible <bruno@clisp.org>
15063 * lib/glthread/threadlib.c: Include <stdlib.h>.
15065 2009-01-25 Bruno Haible <bruno@clisp.org>
15067 * lib/glthread/threadlib.c (dummy): New declaration.
15069 2009-01-25 Bruno Haible <bruno@clisp.org>
15071 * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
15072 multibyte characters also for the GB18030 encoding. Don't crash when
15073 the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
15075 2009-01-25 Bruno Haible <bruno@clisp.org>
15077 Avoid redefining 'struct random_data' on OSF/1 5.1.
15078 * lib/stdlib.in.h: Include <random.h> if it exists.
15079 * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
15080 HAVE_RANDOM_H. Include <random.h> when testing whether
15081 'struct random_data' exists.
15082 * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
15084 2009-01-25 Bruno Haible <bruno@clisp.org>
15086 Don't install charset.alias on MacOS X >= 10.3.
15087 * lib/localcharset.c (DARWIN7): New macro.
15088 (get_charset_aliases): Hardcode the result for Darwin7.
15089 * modules/localcharset (install-exec-local): Don't install
15090 charset.alias on MacOS X >= 10.3, if the file does not yet exist.
15092 2009-01-25 Bruno Haible <bruno@clisp.org>
15094 Don't install charset.alias on mingw and Cygwin.
15095 * modules/localcharset (install-exec-local): Don't install
15096 charset.alias on mingw and Cygwin, if the file does not yet exist.
15097 The result for these platforms is hardcoded in localcharset.c.
15099 2009-01-25 Bruno Haible <bruno@clisp.org>
15101 Make it possible again to use AC_GNU_SOURCE together with gnulib.
15102 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
15103 before requiring AC_USE_SYSTEM_EXTENSIONS.
15105 2009-01-25 Jim Meyering <meyering@redhat.com>
15107 c-strtod: avoid warnings
15108 * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
15109 "assignment discards qualifiers from pointer target type" warnings.
15111 2009-01-24 Bruno Haible <bruno@clisp.org>
15113 Add support for non-UTF-8 locales on MacOS X.
15114 * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
15115 canonical encodings. For Darwin 7 and newer, don't map traditional
15116 encodings to UTF-8.
15117 Reported by Vincent Lefevre <vincent@vinc17.org>
15118 at <http://savannah.gnu.org/bugs/?25235>.
15120 2009-01-24 Bruno Haible <bruno@clisp.org>
15122 * doc/gnulib.texi (Obsolete modules): New section.
15123 Reported by Mike Frysinger <vapier@gentoo.org>.
15125 2009-01-24 Bruno Haible <bruno@clisp.org>
15127 * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
15130 2009-01-24 Bruno Haible <bruno@clisp.org>
15132 * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
15133 Reported by Eric Blake.
15135 2009-01-24 Bruno Haible <bruno@clisp.org>
15137 * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
15138 set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
15139 Reported by Gary V. Vaughan <gary@gnu.org>.
15141 2009-01-24 Bruno Haible <bruno@clisp.org>
15143 * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
15145 2009-01-23 Bruno Haible <bruno@clisp.org>
15147 Make c-strtod, c-strtold usable in libraries.
15148 * lib/c-strtod.c: Include string.h instead of xalloc.h.
15149 (C_STRTOD): Call strdup instead of xstrdup.
15150 * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
15151 * modules/c-strtold (Depends-on): Likewise.
15152 * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
15153 * NEWS: Mention the change.
15154 Reported by Michael Gold <mgold@ncf.ca>.
15156 2009-01-23 Jim Meyering <meyering@redhat.com>
15158 c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
15159 * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
15160 ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
15162 2009-01-23 Simon Josefsson <simon@josefsson.org>
15164 * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
15166 * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
15167 * modules/version-etc (Description): Update.
15169 2009-01-22 Bruno Haible <bruno@clisp.org>
15171 Cache the C locale object.
15172 * lib/c-strtod.c (c_locale_cache): New variable.
15173 (c_locale): New function.
15174 (C_STRTOD): Use it, and don't call freelocale.
15175 * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
15176 Suggested by Paolo Bonzini.
15178 2009-01-21 Bruno Haible <bruno@clisp.org>
15180 * lib/getloadavg.c (getloadavg): Check c_strtod result against error
15181 conditions other than overflow.
15183 2009-01-21 Bruno Haible <bruno@clisp.org>
15185 * lib/c-strtod.c: Include errno.h.
15186 (C_STRTOD): Check against NULL return from newlocale. Preserve errno
15187 value from STRTOD_L and STRTOD.
15189 2009-01-21 Bruno Haible <bruno@clisp.org>
15190 and Jim Meyering <meyering@redhat.com>
15192 nanosleep: skip configure test (fail it) for apple universal builds
15193 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
15194 universal builds, assume that nanosleep does not work.
15195 * modules/nanosleep (Depends-on): Add multiarch.
15197 mktime: skip configure test (fail it) for apple universal builds
15198 * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
15199 universal builds, assume that mktime does not work.
15200 * modules/mktime (Depends-on): Add multiarch.
15202 2009-01-21 Eric Blake <ebb9@byu.net>
15204 multiarch: avoid expand-before-require warning
15205 * modules/multiarch (configure.ac): Require, rather than expand,
15207 * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
15208 (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
15209 enforce that all clients require it. Partial reversion of
15212 error: avoid expand-before-require warning
15213 * modules/errno (configure.ac): Require, rather than expand,
15215 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
15216 (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
15217 enforce that all clients require it.
15219 gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
15220 * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
15221 obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
15222 and rely solely on gl_USE_SYSTEM_EXTENSIONS.
15224 2009-01-21 Paolo Bonzini <bonzini@gnu.org>
15227 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
15229 regex: do not depend on obsolete modules.
15230 * modules/regex: Remove memcmp and memmove.
15232 2009-01-20 Bruno Haible <bruno@clisp.org>
15234 Make the 'link' module link on Windows NT 4.
15235 * lib/link.c (_WIN32_WINNT): Don't define.
15236 (CreateHardLinkFuncType): New type.
15237 (CreateHardLinkFunc, initialized): New variables.
15238 (initialize): New function.
15239 (link): Invoke CreateHardLink indirectly through the function pointer.
15241 2009-01-20 Bruno Haible <bruno@clisp.org>
15243 Fix compilation failure on mingw.
15244 * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
15246 2009-01-20 Michael Gold <mgold@ncf.ca> (tiny change)
15248 * doc/c-strtod.texi: Mention a couple of restrictions.
15250 2009-01-20 Jim Meyering <meyering@redhat.com>
15252 gettimeofday: move more declarations out of functions
15253 * lib/gettimeofday.c: Move extern declarations of tzset and
15254 gmtime out of containing functions. Prompted by Bruno Haible.
15256 2009-01-20 Paolo Bonzini <bonzini@gnu.org>
15258 regex: do not depend on obsolete modules.
15259 * modules/regex: Remove memcmp and memmove.
15261 2009-01-19 Bruno Haible <bruno@clisp.org>
15263 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15264 * modules/uniconv/u16-conv-from-enc (configure.ac): Require
15265 gl_BIGENDIAN, not AC_C_BIGENDIAN.
15266 * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
15267 * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
15269 2009-01-19 Bruno Haible <bruno@clisp.org>
15271 * tests/test-link.c: Include <errno.h>.
15272 (main): Exit with code 77 when a hard link cannot be created due to
15274 * tests/test-link.sh: Skip test when a hard link cannot be created due
15275 to the file system.
15276 Suggested by Eric Blake.
15278 2009-01-19 Martin Lambers <marlam@marlam.de>
15280 * modules/link-tests: New file.
15281 * tests/test-link.sh: New file.
15282 * tests/test-link.c: New file.
15284 2009-01-19 Eric Blake <ebb9@byu.net>
15286 doc: mention another function added in cygwin 1.7.0
15287 * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
15288 Another new function in cygwin 1.7.
15290 2009-01-19 Bruno Haible <bruno@clisp.org>
15292 Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
15293 * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
15294 * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
15295 gl_BIGENDIAN, not AC_C_BIGENDIAN.
15296 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
15297 * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
15298 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
15299 * m4/md4.m4 (gl_MD4): Likewise.
15300 * m4/md5.m4 (gl_MD5): Likewise.
15301 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
15302 * m4/sha1.m4 (gl_SHA1): Likewise.
15303 * m4/sha256.m4 (gl_SHA256): Likewise.
15304 * m4/sha512.m4 (gl_SHA512): Likewise.
15306 2009-01-19 Bruno Haible <bruno@clisp.org>
15308 * modules/uniname/uniname-tests (Depends-on): Add progname.
15309 * tests/uniname/test-uninames.c: Include progname.h.
15310 (main): Call set_program_name.
15312 * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
15313 * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
15314 (main): Call set_program_name.
15316 * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
15317 * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
15318 (main): Call set_program_name.
15320 * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
15321 * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
15322 (main): Call set_program_name.
15324 * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
15325 * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
15326 (main): Call set_program_name.
15328 * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
15329 * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
15330 (main): Call set_program_name.
15332 * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
15333 * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
15334 (main): Call set_program_name.
15336 * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
15337 * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
15338 (main): Call set_program_name.
15340 * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
15341 * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
15342 (main): Call set_program_name.
15344 2009-01-19 Eric Blake <ebb9@byu.net>
15346 test-unistd: test previous patch
15347 * tests/test-unistd.c: Test *_FILENO macros.
15349 unistd: guarantee STDIN_FILENO here, for OS/2 EMX
15350 * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15351 Guarantee a definition.
15352 * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
15353 * modules/unistd-safer (Depends-on): Add dependency on unistd.
15354 * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
15355 * lib/dup-safer.c (STDERR_FILENO): Likewise.
15356 * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15358 * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
15359 * lib/fopen-safer.c (STDERR_FILENO): Likewise.
15360 * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
15362 * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
15363 * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
15364 (STDERR_FILENO): Likewise.
15365 * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
15366 (STDERR_FILENO): Likewise.
15367 * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
15368 (STDERR_FILENO): Likewise.
15369 Reported by Elbert Pol.
15371 2009-01-19 Eric Blake <ebb9@byu.net>
15373 doc: mention more functions added in cygwin 1.7.0
15374 * doc/posix-functions/abort.texi (abort): Update wording related
15376 * doc/posix-functions/daylight.texi (daylight): Likewise.
15377 * doc/posix-functions/optarg.texi (optarg): Likewise.
15378 * doc/posix-functions/optarg.texi (opterr): Likewise.
15379 * doc/posix-functions/optarg.texi (optind): Likewise.
15380 * doc/posix-functions/optarg.texi (optopt): Likewise.
15381 * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
15382 worked in 1.5.x, and was withdrawn in 1.7.
15383 * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
15384 * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
15386 * doc/posix-functions/perror.texi (perror): Likewise.
15387 * doc/posix-functions/printf.texi (printf): Likewise.
15388 * doc/posix-functions/snprintf.texi (snprintf): Likewise.
15389 * doc/posix-functions/sprintf.texi (sprintf): Likewise.
15390 * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
15391 * doc/posix-functions/vprintf.texi (vprintf): Likewise.
15392 * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
15393 * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
15394 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
15396 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
15398 * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
15400 * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
15401 * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
15403 * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
15404 * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
15405 * doc/posix-functions/confstr.texi (confstr): Likewise.
15406 * doc/posix-functions/dprintf.texi (dprintf): Likewise.
15407 * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
15408 * doc/posix-functions/fgetws.texi (fgetws): Likewise.
15409 * doc/posix-functions/fputwc.texi (fputwc): Likewise.
15410 * doc/posix-functions/fputws.texi (fputws): Likewise.
15411 * doc/posix-functions/fwide.texi (fwide): Likewise.
15412 * doc/posix-functions/getwc.texi (getwc): Likewise.
15413 * doc/posix-functions/getwchar.texi (getwchar): Likewise.
15414 * doc/posix-functions/putwc.texi (putwc): Likewise.
15415 * doc/posix-functions/putwchar.texi (putwchar): Likewise.
15416 * doc/posix-functions/sigignore.texi (sigignore): Likewise.
15417 * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
15418 * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
15419 * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
15420 * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
15421 * doc/posix-functions/wcstol.texi (wcstol): Likewise.
15422 * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
15423 * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
15424 * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
15425 * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
15427 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
15429 ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
15430 * lib/ioctl.c: Include <sys/ioctl.h>.
15432 2009-01-19 Simon Josefsson <simon@josefsson.org>
15434 * modules/getdate-tests (Depends-on): Add progname.
15435 * tests/test-getdate.c: Use progname module, to avoid link errors
15436 on non-glibc systems.
15438 2009-01-18 Simon Josefsson <simon@josefsson.org>
15440 * modules/filenamecat-tests (Depends-on): Add progname.
15441 * modules/fstrcmp-tests (Depends-on): Likewise.
15443 * tests/test-filenamecat.c: Use progname module, to avoid link
15444 errors on non-glibc systems.
15445 * tests/test-fstrcmp.c: Likewise.
15447 2009-01-19 Daniel P. Berrange <berrange@redhat.com>
15449 gettimeofday: avoid warning: nested extern declaration of 'localtime'
15450 * lib/gettimeofday.c: Move extern declaration out of function.
15452 2009-01-18 Bruno Haible <bruno@clisp.org>
15454 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
15455 * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
15456 (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
15458 2009-01-18 Bruno Haible <bruno@clisp.org>
15460 * lib/strftime.c (MEMPCPY): Remove unused macro.
15461 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
15463 2009-01-18 Martin Lambers <marlam@marlam.de>
15466 * lib/unistd.in.h (link): New declaration.
15467 * lib/link.c: New file.
15468 * m4/link.m4: New file.
15469 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
15471 * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
15472 * modules/link: New file.
15473 * doc/posix-functions/link.texi: Mention the new module.
15475 2009-01-18 Bruno Haible <bruno@clisp.org>
15477 * tests/test-avltree_list.c (main): Call set_program_name.
15478 * tests/test-avltree_oset.c (main): Likewise.
15479 * tests/test-obstack-printf.c: Include progname.h.
15480 (main): Call set_program_name.
15481 * tests/test-quotearg.c: Include progname.h.
15482 (main): Call set_program_name.
15483 * tests/test-xmemdup0.c: Include progname.h.
15484 (main): Call set_program_name.
15486 2009-01-18 Bruno Haible <bruno@clisp.org>
15488 New module 'alphasort'.
15489 * lib/dirent.in.h (alphasort): New declaration.
15490 * lib/alphasort.c: New file, from glibc with modifications.
15491 * m4/alphasort.m4: New file.
15492 * modules/alphasort: New file.
15493 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
15495 * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
15497 * doc/posix-functions/alphasort.texi: Mention the new module and the
15498 portability problems.
15500 2009-01-18 Bruno Haible <bruno@clisp.org>
15502 New module 'scandir'.
15503 * lib/dirent.in.h (scandir): New declaration.
15504 * lib/scandir.c: New file, from glibc with modifications.
15505 * m4/scandir.m4: New file.
15506 * modules/scandir: New file.
15507 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
15509 * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
15511 * doc/posix-functions/scandir.texi: Mention the new module and the
15512 portability problems.
15514 2009-01-17 Bruno Haible <bruno@clisp.org>
15516 * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
15517 Update documentation.
15518 (func_remove_suffix): Escape all dots in the suffix. Update
15520 (func_filter_filelist): Update documentation.
15521 Reported by Ralf Wildenhues.
15523 2009-01-17 Bruno Haible <bruno@clisp.org>
15525 * modules/dprintf-posix-tests: New file.
15526 * tests/test-dprintf-posix.sh: New file.
15527 * tests/test-dprintf-posix.c: New file.
15529 New modules 'dprintf', 'dprintf-posix'.
15530 * lib/stdio.in.h (dprintf): New declaration.
15531 * lib/dprintf.c: New file.
15532 * m4/dprintf.m4: New file.
15533 * m4/dprintf-posix.m4: New file.
15534 * modules/dprintf: New file.
15535 * modules/dprintf-posix: New file.
15536 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
15537 HAVE_DPRINTF, REPLACE_DPRINTF.
15538 * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
15539 HAVE_DPRINTF, REPLACE_DPRINTF.
15540 * doc/posix-functions/dprintf.texi: Mention the new modules.
15542 2009-01-17 Bruno Haible <bruno@clisp.org>
15544 * modules/vdprintf-posix-tests: New file.
15545 * tests/test-vdprintf-posix.sh: New file.
15546 * tests/test-vdprintf-posix.c: New file.
15548 New modules 'vdprintf', 'vdprintf-posix'.
15549 * lib/stdio.in.h (vdprintf): New declaration.
15550 * lib/vdprintf.c: New file.
15551 * m4/vdprintf.m4: New file.
15552 * m4/vdprintf-posix.m4: New file.
15553 * modules/vdprintf: New file.
15554 * modules/vdprintf-posix: New file.
15555 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
15556 HAVE_VDPRINTF, REPLACE_VDPRINTF.
15557 * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
15558 HAVE_VDPRINTF, REPLACE_VDPRINTF.
15559 * doc/posix-functions/vdprintf.texi: Mention the new modules.
15561 2009-01-17 Bruno Haible <bruno@clisp.org>
15563 Fix replacement of fopen on mingw.
15564 * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
15567 2009-01-17 Bruno Haible <bruno@clisp.org>
15569 Fix compilation error on HP-UX 11.00, present since 2008-09-24.
15570 * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
15572 2009-01-17 Bruno Haible <bruno@clisp.org>
15574 Avoid test-fflush2.sh failure on mingw.
15575 * tests/test-fflush2.c: Include binary-io.h.
15576 (main): Put standard input into binary mode.
15577 * modules/fflush-tests (Depends-on): Add binary-io.
15579 2009-01-17 Bruno Haible <bruno@clisp.org>
15581 * lib/wchar.in.h: In another particular situation, include only the
15582 system's <wchar.h> file.
15583 (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
15584 Reported by Albert Chin-A-Young <china@thewrittenword.com>
15585 and Thomas Guyot-Sionnest <dermoth@aei.ca>.
15587 2009-01-17 Bruno Haible <bruno@clisp.org>
15589 Support for stripping executables in --enable-relocatable.
15590 * build-aux/install-reloc: Expect one more argument, or an environment
15591 variable RELOC_STRIP_PROG. If set, strip the destination program and
15593 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
15595 * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
15596 to set RELOCATABLE_STRIP.
15597 * NEWS: Mention the new Makefile requirement.
15599 2009-01-17 Bruno Haible <bruno@clisp.org>
15601 * build-aux/install-reloc: Remove debugging information left over by
15602 C compiler on MacOS X.
15604 2009-01-17 Bruno Haible <bruno@clisp.org>
15606 Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
15607 * lib/progreloc.c (find_executable): Fix type of pointer passed to
15608 _NSGetExecutablePath.
15610 2009-01-16 Jim Meyering <meyering@redhat.com>
15612 strerror: avoid warnings about discarding "const"
15613 * lib/strerror.c (rpl_strerror): Instead of returning a const
15614 string from each and every "case", use a variable, and add a single
15615 cast after the switch.
15617 2009-01-16 Albert Chin-A-Young <china@thewrittenword.com>
15619 * lib/arpa_inet.in.h: Add extern "C" block for C++.
15621 2009-01-16 Bruno Haible <bruno@clisp.org>
15623 * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
15624 array initializer syntax that also works in C++ mode.
15625 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15627 2009-01-16 Jim Meyering <meyering@redhat.com>
15629 poll: suppress a warning
15630 * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
15631 to ignore "...unsigned expression < 0 is always false" warnings.
15633 2009-01-16 Daniel P. Berrange <berrange@redhat.com>
15635 poll: remove declarations of unused variables
15636 * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
15637 sockbuf and optlen.
15639 2009-01-15 Bruno Haible <bruno@clisp.org>
15641 Make fflush-after-ungetc POSIX compliant on BSD systems.
15642 * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
15643 (clear_ungetc_buffer): Implement also for other systems.
15644 (rpl_fflush): On glibc systems, invoke
15645 clear_ungetc_buffer_preserving_position. Otherwise, invoke
15646 clear_ungetc_buffer after fetching the stream's position, not before.
15648 2009-01-15 Bruno Haible <bruno@clisp.org>
15650 Make fflush-after-ungetc POSIX compliant on glibc systems.
15651 * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
15653 * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
15654 (rpl_fflush): On glibc systems, simply call the system's fflush
15655 function after clearing the ungetc buffer.
15656 * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
15657 Instead, lseek only to the end of file, then use the system's fseeko
15658 for the rest. On glibc systems, reset the EOF indicator bit.
15660 2009-01-15 Jim Meyering <meyering@redhat.com>
15662 openmp.m4: revert quote-adding change, for portability to older autoconf
15663 * m4/openmp.m4: Remove the quotes added on 2009-01-14.
15664 This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
15665 Simon Josefsson noticed the problem when using autoconf-2.61.
15667 2009-01-15 Bruno Haible <bruno@clisp.org>
15669 * tests/test-fflush2.sh: Invoke test-fflush2 twice.
15670 * tests/test-fflush2.c (ASSERT): Always fail.
15671 (main): Add two tests for fflush() after ungetc(), taking into account
15672 the Austin Group's clarification.
15673 Suggested by Eric Blake.
15675 2009-01-15 Albert Chin-A-Young <china@thewrittenword.com>
15677 mktime.m4: remove K&R-style function prototypes
15678 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
15679 for the Sun C++ compiler.
15681 2009-01-14 Bruno Haible <bruno@clisp.org>
15683 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
15684 while including <wchar.h>.
15685 * lib/wchar.in.h: In two particular situations on HP-UX, include only
15686 the system's <wchar.h> file.
15687 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
15689 2009-01-14 Bruno Haible <bruno@clisp.org>
15691 * m4/csharp.m4: Don't mention gettext on the serial number line.
15692 * m4/csharpexec.m4: Likewise.
15693 * m4/eaccess.m4: Likewise.
15694 * m4/javaexec.m4: Likewise.
15695 * m4/sig_atomic_t.m4: Likewise.
15696 * m4/tmpdir.m4: Likewise.
15697 * m4/intldir.m4: Bump gettext version.
15698 * m4/lib-ld.m4: Likewise.
15700 2009-01-14 Bruno Haible <bruno@clisp.org>
15702 * lib/progname.c (set_program_name): Add more comments.
15703 Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
15705 2009-01-14 Simon Josefsson <simon@josefsson.org>
15707 * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
15708 were sys/stat.h does not define it.
15710 2009-01-14 Jim Meyering <meyering@redhat.com>
15712 many *.m4 files: improve m4 quoting
15713 99% of this change was performed by running the following commands:
15714 git ls-files | grep '\.m4$' | xargs perl -pi \
15715 -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
15716 -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15717 -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
15718 -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
15719 perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
15720 The remainder were to add Copyright dates, increment serial numbers,
15721 undo some changes in comments, exclude m4/intl.m4, and add quotes
15722 around the "1" in ",1" where the unusual spacing prohibited the
15723 above regexps from doing the job. For more details, see
15724 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
15725 * m4/acl.m4: Modified.
15726 * m4/afs.m4: Likewise.
15727 * m4/alloca.m4: Likewise.
15728 * m4/argp.m4: Likewise.
15729 * m4/argz.m4: Likewise.
15730 * m4/atexit.m4: Likewise.
15731 * m4/bison-i18n.m4: Likewise.
15732 * m4/bison.m4: Likewise.
15733 * m4/byteswap.m4: Likewise.
15734 * m4/c-stack.m4: Likewise.
15735 * m4/c-strtod.m4: Likewise.
15736 * m4/calloc.m4: Likewise.
15737 * m4/canonicalize-lgpl.m4: Likewise.
15738 * m4/chown.m4: Likewise.
15739 * m4/clock_time.m4: Likewise.
15740 * m4/codeset.m4: Likewise.
15741 * m4/copy-file.m4: Likewise.
15742 * m4/csharp.m4: Likewise.
15743 * m4/csharpcomp.m4: Likewise.
15744 * m4/csharpexec.m4: Likewise.
15745 * m4/d-ino.m4: Likewise.
15746 * m4/d-type.m4: Likewise.
15747 * m4/dirfd.m4: Likewise.
15748 * m4/double-slash-root.m4: Likewise.
15749 * m4/eaccess.m4: Likewise.
15750 * m4/eealloc.m4: Likewise.
15751 * m4/environ.m4: Likewise.
15752 * m4/errno_h.m4: Likewise.
15753 * m4/euidaccess.m4: Likewise.
15754 * m4/execute.m4: Likewise.
15755 * m4/fatal-signal.m4: Likewise.
15756 * m4/fchdir.m4: Likewise.
15757 * m4/fcntl_h.m4: Likewise.
15758 * m4/fileblocks.m4: Likewise.
15759 * m4/filenamecat.m4: Likewise.
15760 * m4/findprog.m4: Likewise.
15761 * m4/flexmember.m4: Likewise.
15762 * m4/fnmatch.m4: Likewise.
15763 * m4/fopen.m4: Likewise.
15764 * m4/fpending.m4: Likewise.
15765 * m4/fprintf-posix.m4: Likewise.
15766 * m4/free.m4: Likewise.
15767 * m4/frexp.m4: Likewise.
15768 * m4/frexpl.m4: Likewise.
15769 * m4/fsusage.m4: Likewise.
15770 * m4/ftruncate.m4: Likewise.
15771 * m4/gc-camellia.m4: Likewise.
15772 * m4/gc-random.m4: Likewise.
15773 * m4/gc.m4: Likewise.
15774 * m4/getaddrinfo.m4: Likewise.
15775 * m4/getcwd-abort-bug.m4: Likewise.
15776 * m4/getcwd-path-max.m4: Likewise.
15777 * m4/getdate.m4: Likewise.
15778 * m4/getdomainname.m4: Likewise.
15779 * m4/getgroups.m4: Likewise.
15780 * m4/gethostname.m4: Likewise.
15781 * m4/gethrxtime.m4: Likewise.
15782 * m4/getline.m4: Likewise.
15783 * m4/getloadavg.m4: Likewise.
15784 * m4/getndelim2.m4: Likewise.
15785 * m4/getpass.m4: Likewise.
15786 * m4/gettext.m4: Likewise.
15787 * m4/gettime.m4: Likewise.
15788 * m4/gettimeofday.m4: Likewise.
15789 * m4/gnulib-common.m4: Likewise.
15790 * m4/group-member.m4: Likewise.
15791 * m4/host-os.m4: Likewise.
15792 * m4/iconv.m4: Likewise.
15793 * m4/iconv_open.m4: Likewise.
15794 * m4/inet_ntop.m4: Likewise.
15795 * m4/inet_pton.m4: Likewise.
15796 * m4/inline.m4: Likewise.
15797 * m4/intldir.m4: Likewise.
15798 * m4/intlmacosx.m4: Likewise.
15799 * m4/intmax.m4: Likewise.
15800 * m4/intmax_t.m4: Likewise.
15801 * m4/inttypes.m4: Likewise.
15802 * m4/inttypes_h.m4: Likewise.
15803 * m4/inttypes-pri.m4: Likewise.
15804 * m4/isapipe.m4: Likewise.
15805 * m4/isnand.m4: Likewise.
15806 * m4/isnanf.m4: Likewise.
15807 * m4/isnanl.m4: Likewise.
15808 * m4/javacomp.m4: Likewise.
15809 * m4/javaexec.m4: Likewise.
15810 * m4/jm-winsz1.m4: Likewise.
15811 * m4/jm-winsz2.m4: Likewise.
15812 * m4/lchown.m4: Likewise.
15813 * m4/lcmessage.m4: Likewise.
15814 * m4/ldexpl.m4: Likewise.
15815 * m4/lib-ld.m4: Likewise.
15816 * m4/lib-link.m4: Likewise.
15817 * m4/libsigsegv.m4: Likewise.
15818 * m4/link-follow.m4: Likewise.
15819 * m4/localcharset.m4: Likewise.
15820 * m4/locale-fr.m4: Likewise.
15821 * m4/locale-ja.m4: Likewise.
15822 * m4/locale-tr.m4: Likewise.
15823 * m4/locale-zh.m4: Likewise.
15824 * m4/lock.m4: Likewise.
15825 * m4/longlong.m4: Likewise.
15826 * m4/ls-mntd-fs.m4: Likewise.
15827 * m4/lstat.m4: Likewise.
15828 * m4/malloc.m4: Likewise.
15829 * m4/mathl.m4: Likewise.
15830 * m4/mbrtowc.m4: Likewise.
15831 * m4/mbstate_t.m4: Likewise.
15832 * m4/mbswidth.m4: Likewise.
15833 * m4/memchr.m4: Likewise.
15834 * m4/memcmp.m4: Likewise.
15835 * m4/memcpy.m4: Likewise.
15836 * m4/memmem.m4: Likewise.
15837 * m4/memmove.m4: Likewise.
15838 * m4/mempcpy.m4: Likewise.
15839 * m4/memrchr.m4: Likewise.
15840 * m4/memset.m4: Likewise.
15841 * m4/minmax.m4: Likewise.
15842 * m4/mkdir-slash.m4: Likewise.
15843 * m4/mkdtemp.m4: Likewise.
15844 * m4/mktime.m4: Likewise.
15845 * m4/mmap-anon.m4: Likewise.
15846 * m4/mountlist.m4: Likewise.
15847 * m4/nanosleep.m4: Likewise.
15848 * m4/nls.m4: Likewise.
15849 * m4/nocrash.m4: Likewise.
15850 * m4/open.m4: Likewise.
15851 * m4/openat.m4: Likewise.
15852 * m4/openmp.m4: Likewise.
15853 * m4/pathmax.m4: Likewise.
15854 * m4/perl.m4: Likewise.
15855 * m4/physmem.m4: Likewise.
15856 * m4/pipe.m4: Likewise.
15857 * m4/po.m4: Likewise.
15858 * m4/poll.m4: Likewise.
15859 * m4/posixtm.m4: Likewise.
15860 * m4/posixver.m4: Likewise.
15861 * m4/printf-frexp.m4: Likewise.
15862 * m4/printf-frexpl.m4: Likewise.
15863 * m4/printf-posix.m4: Likewise.
15864 * m4/printf-posix-rpl.m4: Likewise.
15865 * m4/printf.m4: Likewise.
15866 * m4/progtest.m4: Likewise.
15867 * m4/putenv.m4: Likewise.
15868 * m4/readline.m4: Likewise.
15869 * m4/readlink.m4: Likewise.
15870 * m4/readutmp.m4: Likewise.
15871 * m4/realloc.m4: Likewise.
15872 * m4/regex.m4: Likewise.
15873 * m4/relocatable.m4: Likewise.
15874 * m4/relocatable-lib.m4: Likewise.
15875 * m4/rename-dest-slash.m4: Likewise.
15876 * m4/rename.m4: Likewise.
15877 * m4/rmdir-errno.m4: Likewise.
15878 * m4/rmdir.m4: Likewise.
15879 * m4/roundf.m4: Likewise.
15880 * m4/roundl.m4: Likewise.
15881 * m4/rpmatch.m4: Likewise.
15882 * m4/save-cwd.m4: Likewise.
15883 * m4/selinux-selinux-h.m4: Likewise.
15884 * m4/setenv.m4: Likewise.
15885 * m4/settime.m4: Likewise.
15886 * m4/sig2str.m4: Likewise.
15887 * m4/sig_atomic_t.m4: Likewise.
15888 * m4/signalblocking.m4: Likewise.
15889 * m4/signbit.m4: Likewise.
15890 * m4/sigpipe.m4: Likewise.
15891 * m4/sockets.m4: Likewise.
15892 * m4/sockpfaf.m4: Likewise.
15893 * m4/st_dm_mode.m4: Likewise.
15894 * m4/stat-time.m4: Likewise.
15895 * m4/stdbool.m4: Likewise.
15896 * m4/stdint.m4: Likewise.
15897 * m4/stdint_h.m4: Likewise.
15898 * m4/stpcpy.m4: Likewise.
15899 * m4/stpncpy.m4: Likewise.
15900 * m4/strcase.m4: Likewise.
15901 * m4/strchrnul.m4: Likewise.
15902 * m4/strcspn.m4: Likewise.
15903 * m4/strdup.m4: Likewise.
15904 * m4/strftime.m4: Likewise.
15905 * m4/strndup.m4: Likewise.
15906 * m4/strnlen.m4: Likewise.
15907 * m4/strpbrk.m4: Likewise.
15908 * m4/strptime.m4: Likewise.
15909 * m4/strsep.m4: Likewise.
15910 * m4/strtod.m4: Likewise.
15911 * m4/strtoimax.m4: Likewise.
15912 * m4/strtok_r.m4: Likewise.
15913 * m4/strtol.m4: Likewise.
15914 * m4/strtoll.m4: Likewise.
15915 * m4/strtoul.m4: Likewise.
15916 * m4/strtoull.m4: Likewise.
15917 * m4/strtoumax.m4: Likewise.
15918 * m4/strverscmp.m4: Likewise.
15919 * m4/threadlib.m4: Likewise.
15920 * m4/timegm.m4: Likewise.
15921 * m4/tm_gmtoff.m4: Likewise.
15922 * m4/tmpdir.m4: Likewise.
15923 * m4/tmpfile.m4: Likewise.
15924 * m4/tzset.m4: Likewise.
15925 * m4/uintmax_t.m4: Likewise.
15926 * m4/unlinkdir.m4: Likewise.
15927 * m4/unlocked-io.m4: Likewise.
15928 * m4/uptime.m4: Likewise.
15929 * m4/userspec.m4: Likewise.
15930 * m4/utimbuf.m4: Likewise.
15931 * m4/utime.m4: Likewise.
15932 * m4/utimes-null.m4: Likewise.
15933 * m4/utimes.m4: Likewise.
15934 * m4/vararrays.m4: Likewise.
15935 * m4/vasnprintf.m4: Likewise.
15936 * m4/vfprintf-posix.m4: Likewise.
15937 * m4/vprintf-posix.m4: Likewise.
15938 * m4/wait-process.m4: Likewise.
15939 * m4/wchar_t.m4: Likewise.
15940 * m4/wint_t.m4: Likewise.
15941 * m4/write-any-file.m4: Likewise.
15942 * m4/yield.m4: Likewise.
15944 2009-01-13 Bruno Haible <bruno@clisp.org>
15946 Avoid test-copy-file.sh failures when ACL support insufficient.
15947 * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
15949 * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
15950 Reported by Jim Meyering.
15952 2009-01-13 Bruno Haible <bruno@clisp.org>
15954 * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
15955 m4/inttypes_h.m4, needed by m4/intmax_t.m4.
15956 * modules/unistdio/u8-printf-parse (Files): Likewise.
15957 * modules/unistdio/u32-printf-parse (Files): Likewise.
15958 * modules/unistdio/ulc-printf-parse (Files): Likewise.
15960 2009-01-13 Simon Josefsson <simon@josefsson.org>
15962 * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
15963 and m4/inttypes_h.m4 too.
15965 2009-01-12 Eric Blake <ebb9@byu.net>
15967 tests: IRIX 6.2 cc can't compile -0.0 into .data
15968 * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
15969 rather than at compile-time.
15970 * tests/test-floorl.c (minus_zero): Likewise.
15971 * tests/test-frexpl.c (minus_zero): Likewise.
15972 * tests/test-isnan.c (minus_zerol): Likewise.
15973 * tests/test-isnanl.h (minus_zero): Likewise.
15974 * tests/test-ldexpl.c (minus_zero): Likewise.
15975 * tests/test-roundl.c (minus_zero): Likewise.
15976 * tests/test-signbit.c (minus_zerol): Likewise.
15977 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
15978 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
15979 * tests/test-truncl.c (minus_zero): Likewise.
15980 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
15981 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
15982 Reported by Tom G. Christensen and Nelson H. F. Beebe.
15984 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
15986 regex: fix glibc bug 9697
15987 * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
15990 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
15992 regex: fix glibc bug 697
15993 * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
15994 being NULL also if there are no backreferences.
15996 2009-01-09 Paolo Bonzini <bonzini@gnu.org>
15998 regex: merge glibc changes
15999 * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
16000 * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
16001 re_string_skip_chars, re_string_reconstruct): Likewise.
16002 * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
16004 2009-01-07 Jim Meyering <meyering@redhat.com>
16006 poll: filter through cppi
16007 * lib/poll.c: Indent cpp directives to reflect nesting.
16009 2009-01-07 Daniel P. Berrange <berrange@redhat.com>
16011 poll: don't return uninitialized
16012 * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
16014 2009-01-06 Jeremy Olexa <darkside@gentoo.org> (tiny change)
16016 avoid compile failure on AIX 6.1
16017 * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
16018 Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
16020 2009-01-04 Jim Meyering <meyering@redhat.com>
16022 remove duplicate inclusion of <stdio.h>
16023 * tests/test-fprintf-posix.c: Likewise.
16024 * tests/test-printf-posix.c: Likewise.
16025 * tests/test-snprintf-posix.c: Likewise.
16026 * tests/test-sprintf-posix.c: Likewise.
16027 * tests/test-vasprintf-posix.c: Likewise.
16028 * tests/test-vfprintf-posix.c: Likewise.
16029 * tests/test-vprintf-posix.c: Likewise.
16030 * tests/test-vsnprintf-posix.c: Likewise.
16031 * tests/test-vsprintf-posix.c: Likewise.
16033 2009-01-03 Jim Meyering <meyering@redhat.com>
16035 gnulib-tool: fix sed-based filtering
16036 * gnulib-tool (func_filter_filelist): Remove extra backslash
16037 in sed_fff_filter definition.
16039 2009-01-02 Jim Meyering <meyering@redhat.com>
16041 strftime: avoid compilation failure on Solaris 2.6
16042 * modules/strftime (Depends-on): Add mbrlen and mbsinit.
16043 * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
16044 Don't #define mbrlen or mbsinit, since now they're guaranteed to
16045 be available. Reported by Tom G. Christensen. Details in
16046 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
16048 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16049 Bruno Haible <bruno@clisp.org>
16051 Speed up gnulib-tool by doing more string processing through shell
16053 * gnulib-tool (fast_func_append): New variable.
16054 (func_remove_prefix, func_remove_suffix): New functions.
16055 (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
16056 (func_filter_filelist): New function.
16057 (func_get_dependencies): Use func_remove_suffix instead of sed.
16058 (func_get_automake_snippet): Use func_filter_filelist instead of a
16059 subshell and sed invocation.
16061 2009-01-01 Bruno Haible <bruno@clisp.org>
16063 Fix a security bug.
16064 * gnulib-tool (func_import, import, update): Don't allow the characters
16065 '"', '$', '`', '\' in macro arguments that become part of commands that
16068 2009-01-01 Bruno Haible <bruno@clisp.org>
16070 * gnulib-tool (func_reset_sigpipe): Add more comments.
16072 2009-01-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16074 * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
16075 func_emit_tests_Makefile_am, func_import): Abort loops early if we
16076 already know the answer.
16078 2009-01-01 Jim Meyering <meyering@redhat.com>
16080 * lib/version-etc.c (version_etc_va): Update copyright year.
16082 2008-12-30 Bruno Haible <bruno@clisp.org>
16084 * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
16085 LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
16086 Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
16088 2008-12-29 Eric Blake <ebb9@byu.net>
16090 multiarch: avoid autoconf AC_REQUIRE bug
16091 * m4/multiarch.m4 (gl_MULTIARCH): Split body...
16092 (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
16094 Reported by Bruno Haible, and analyzed in
16095 http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
16097 2008-12-29 Bruno Haible <bruno@clisp.org>
16099 * gnulib-tool (func_import): When generating sed-ignore-removed, handle
16100 files in subdirectories correctly.
16101 Reported by Ralf Wildenhues.
16103 2008-12-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
16105 * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
16106 rather than 'join FILE -', for Solaris join.
16108 2008-12-29 Bruno Haible <bruno@clisp.org>
16110 * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
16112 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
16113 * m4/glibc2.m4 (gt_GLIBC2): Likewise.
16114 * m4/glibc21.m4 (gl_GLIBC21): Likewise.
16115 * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
16116 * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
16117 * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
16118 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
16119 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
16120 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
16121 * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
16122 * m4/nls.m4 (AM_NLS): Likewise.
16123 * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
16124 * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
16125 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
16126 * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
16127 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
16128 * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
16129 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
16130 * m4/visibility.m4 (gl_VISIBILITY): Likewise.
16131 * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
16132 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
16133 * m4/xsize.m4 (gl_XSIZE): Likewise.
16134 Suggested by Jim Meyering.
16136 2008-11-17 Bruce Korb <bkorb@gnu.org>
16138 * lib/parse-duration.h: non-iso form accepts years, months weeks, too
16139 * lib/parse-duration.c: use a switch instead of cascading if's.
16141 2008-12-29 Eric Blake <ebb9@byu.net>
16143 wchar.h: supply WEOF on Irix 5.3
16144 * lib/wchar.in.h (wint_t): Also supply WEOF.
16145 * lib/wctype.in.h (wint_t): Likewise.
16146 * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
16147 * doc/posix-headers/wctype.texi (wctype.h): Likewise.
16148 Reported by Tom G. Christensen.
16150 2008-12-26 Bruno Haible <bruno@clisp.org>
16152 * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
16155 2008-12-26 Bruno Haible <bruno@clisp.org>
16157 * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
16159 2008-12-26 Bruno Haible <bruno@clisp.org>
16161 * lib/stdint.in.h: Move the include of <wchar.h> down until after all
16162 the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
16163 not __STDC_CONSTANT_MACROS.
16164 Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
16166 2008-12-25 Bruno Haible <bruno@clisp.org>
16168 Add support for universal builds to vasnprintf.
16169 * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
16170 universal builds, guess no.
16171 * modules/vasnprintf-posix (Depends-on): Add multiarch.
16172 * modules/vasprintf-posix (Depends-on): Likewise.
16173 * modules/fprintf-posix (Depends-on): Likewise.
16174 * modules/vfprintf-posix (Depends-on): Likewise.
16175 * modules/snprintf-posix (Depends-on): Likewise.
16176 * modules/vsnprintf-posix (Depends-on): Likewise.
16177 * modules/sprintf-posix (Depends-on): Likewise.
16178 * modules/vsprintf-posix (Depends-on): Likewise.
16179 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16180 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16181 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16182 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16183 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16184 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16185 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16187 Add support for universal builds to <inttypes.h>.
16188 * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
16189 _SCNu64_PREFIX): In Apple
16190 universal builds, define directly, using _LP64.
16191 * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
16192 INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
16193 * modules/inttypes (Depends-on): Add multiarch.
16194 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16196 Add support for universal builds to <stdint.h>.
16197 * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
16198 universal builds, define directly, using _LP64.
16199 * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
16200 Apple universal builds, don't test for the size and suffix of ptrdiff_t
16202 * modules/stdint (Depends-on): Add multiarch.
16203 (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
16205 New module 'multiarch'.
16206 * modules/multiarch: New file.
16207 * m4/multiarch.m4: New file.
16209 2008-12-25 Bruno Haible <bruno@clisp.org>
16211 * gnulib-tool (func_create_testdir): Avoid failure of mv command.
16213 2008-12-25 Bruno Haible <bruno@clisp.org>
16215 * modules/btowc (License): Relicense under LGPLv2+.
16216 * modules/mbsinit (License): Likewise.
16217 * modules/mbrtowc (License): Likewise.
16218 * modules/wcrtomb (License): Likewise.
16219 * modules/streq (License): Likewise.
16220 Reported by David Lutterkort <lutter@redhat.com>.
16222 2008-12-23 Bruno Haible <bruno@clisp.org>
16224 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
16226 2008-12-23 Bruno Haible <bruno@clisp.org>
16228 Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
16229 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
16230 GETADDRINFO_LIB, not in LIBS.
16231 * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
16232 * modules/canon-host (Link): Likewise.
16233 * NEWS: Mention the change.
16234 * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
16237 2008-12-22 Bruno Haible <bruno@clisp.org>
16239 * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
16240 * doc/posix-functions/iswalpha_l.texi: Likewise.
16241 * doc/posix-functions/iswblank_l.texi: Likewise.
16242 * doc/posix-functions/iswcntrl_l.texi: Likewise.
16243 * doc/posix-functions/iswctype_l.texi: Likewise.
16244 * doc/posix-functions/iswdigit_l.texi: Likewise.
16245 * doc/posix-functions/iswgraph_l.texi: Likewise.
16246 * doc/posix-functions/iswlower_l.texi: Likewise.
16247 * doc/posix-functions/iswprint_l.texi: Likewise.
16248 * doc/posix-functions/iswpunct_l.texi: Likewise.
16249 * doc/posix-functions/iswspace_l.texi: Likewise.
16250 * doc/posix-functions/iswupper_l.texi: Likewise.
16251 * doc/posix-functions/iswxdigit_l.texi: Likewise.
16252 * doc/posix-functions/mbsnrtowcs.texi: Likewise.
16253 * doc/posix-functions/open_wmemstream.texi: Likewise.
16254 * doc/posix-functions/swscanf.texi: Likewise.
16255 * doc/posix-functions/towctrans_l.texi: Likewise.
16256 * doc/posix-functions/towlower.texi: Likewise.
16257 * doc/posix-functions/towlower_l.texi: Likewise.
16258 * doc/posix-functions/towupper.texi: Likewise.
16259 * doc/posix-functions/towupper_l.texi: Likewise.
16260 * doc/posix-functions/vfwprintf.texi: Likewise.
16261 * doc/posix-functions/vfwscanf.texi: Likewise.
16262 * doc/posix-functions/vswscanf.texi: Likewise.
16263 * doc/posix-functions/vwprintf.texi: Likewise.
16264 * doc/posix-functions/vwscanf.texi: Likewise.
16265 * doc/posix-functions/wcpcpy.texi: Likewise.
16266 * doc/posix-functions/wcpncpy.texi: Likewise.
16267 * doc/posix-functions/wcscasecmp.texi: Likewise.
16268 * doc/posix-functions/wcscasecmp_l.texi: Likewise.
16269 * doc/posix-functions/wcscoll_l.texi: Likewise.
16270 * doc/posix-functions/wcsdup.texi: Likewise.
16271 * doc/posix-functions/wcsncasecmp.texi: Likewise.
16272 * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
16273 * doc/posix-functions/wcsnlen.texi: Likewise.
16274 * doc/posix-functions/wcsnrtombs.texi: Likewise.
16275 * doc/posix-functions/wcsxfrm_l.texi: Likewise.
16276 * doc/posix-functions/wctrans_l.texi: Likewise.
16277 * doc/posix-functions/wctype_l.texi: Likewise.
16278 * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
16279 * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
16280 * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
16281 * doc/glibc-functions/fputws_unlocked.texi: Likewise.
16282 * doc/glibc-functions/getwc_unlocked.texi: Likewise.
16283 * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
16284 * doc/glibc-functions/putwc_unlocked.texi: Likewise.
16285 * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
16286 * doc/glibc-functions/wcschrnul.texi: Likewise.
16287 * doc/glibc-functions/wcsftime_l.texi: Likewise.
16288 * doc/glibc-functions/wcstod_l.texi: Likewise.
16289 * doc/glibc-functions/wcstof_l.texi: Likewise.
16290 * doc/glibc-functions/wcstol_l.texi: Likewise.
16291 * doc/glibc-functions/wcstold_l.texi: Likewise.
16292 * doc/glibc-functions/wcstoll_l.texi: Likewise.
16293 * doc/glibc-functions/wcstoq.texi: Likewise.
16294 * doc/glibc-functions/wcstoul_l.texi: Likewise.
16295 * doc/glibc-functions/wcstoull_l.texi: Likewise.
16296 * doc/glibc-functions/wcstouq.texi: Likewise.
16297 * doc/glibc-functions/wmempcpy.texi: Likewise.
16299 2008-12-22 Ingo Weinhold <ingo_weinhold@gmx.de> (tiny change)
16300 Eric Blake <ebb9@byu.net>
16301 Paolo Bonzini <bonzini@gnu.org>
16302 Bruno Haible <bruno@clisp.org>
16304 Make c-stack work on Haiku.
16305 * lib/c-stack.c (SA_ONSTACK): Define fallback.
16306 (c_stack_action): Use SA_ONSTACK flag.
16308 2008-12-22 Bruno Haible <bruno@clisp.org>
16310 * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
16312 2008-12-22 Bruno Haible <bruno@clisp.org>
16314 Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
16315 * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
16317 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
16319 * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
16320 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
16321 * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
16322 * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
16324 2008-12-22 Bruno Haible <bruno@clisp.org>
16326 * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
16329 2008-12-22 Eric Blake <ebb9@byu.net>
16331 Avoid gcc warnings on cygwin.
16332 * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
16333 Avoid unused variable.
16334 * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
16337 2008-12-22 Bruno Haible <bruno@clisp.org>
16339 Remove HAVE_MBRTOWC conditionals.
16340 * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
16341 (mbscasecmp): Assume mbrtowc function.
16342 * lib/mbscasestr.c: Include mbuiter.h unconditionally.
16343 (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
16344 * lib/mbschr.c: Include mbuiter.h unconditionally.
16345 (mbschr): Assume mbrtowc function.
16346 * lib/mbscspn.c: Include mbuiter.h unconditionally.
16347 (mbscspn): Assume mbrtowc function.
16348 * lib/mbslen.c: Include mbuiter.h unconditionally.
16349 (mbslen): Assume mbrtowc function.
16350 * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
16351 (mbsncasecmp): Assume mbrtowc function.
16352 * lib/mbsnlen.c: Include mbiter.h unconditionally.
16353 (mbsnlen): Assume mbrtowc function.
16354 * lib/mbspbrk.c: Include mbuiter.h unconditionally.
16355 (mbspbrk): Assume mbrtowc function.
16356 * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
16357 (mbspcasecmp): Assume mbrtowc function.
16358 * lib/mbsrchr.c: Include mbuiter.h unconditionally.
16359 (mbsrchr): Assume mbrtowc function.
16360 * lib/mbssep.c: Include mbuiter.h unconditionally.
16361 (mbssep): Assume mbrtowc function.
16362 * lib/mbsspn.c: Include mbuiter.h unconditionally.
16363 (mbsspn): Assume mbrtowc function.
16364 * lib/mbsstr.c: Include mbuiter.h unconditionally.
16365 (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
16366 * lib/mbstok_r.c: Include mbuiter.h unconditionally.
16367 (mbstok_r): Assume mbrtowc function.
16368 * lib/propername.c: Include mbuiter.h unconditionally.
16369 (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
16370 * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
16371 (trim2): Assume mbrtowc function.
16372 * lib/mbswidth.c (mbsinit): Remove fallback definition.
16373 (mbsnwidth): Assume mbrtowc function.
16374 * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
16375 * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
16376 fallback definitions.
16377 * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
16379 2008-12-22 Bruno Haible <bruno@clisp.org>
16381 * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
16383 2008-12-22 Paolo Bonzini <bonzini@gnu.org>
16385 * modules/regex: Request emulations for the mb*/wc* functions we need.
16386 * m4/regex.m4: Don't look for those functions here.
16387 * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
16389 2008-12-22 Bruno Haible <bruno@clisp.org>
16391 * modules/fnmatch (Depends-on): Remove duplicated dependency.
16393 2008-12-21 Bruno Haible <bruno@clisp.org>
16395 Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
16396 * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
16397 (Include): Remove conditionalization.
16398 * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
16399 (Include): Remove conditionalization.
16400 * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
16401 (Include): Remove conditionalization.
16402 * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
16403 * m4/mbfile.m4 (gl_MBFILE): Likewise.
16404 * NEWS: Mention the change.
16405 Reported by Alan Hourihane <alanh@fairlite.co.uk>
16406 via Sergey Poznyakoff <gray@gnu.org.ua>.
16408 2008-12-21 Bruno Haible <bruno@clisp.org>
16410 * MODULES.html.sh (Extended multibyte and wide character utilities
16411 <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
16412 wcrtomb, wcsrtombs.
16413 (Support for systems lacking POSIX:2008): Add accept, bind, close,
16414 connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
16415 mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
16416 setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
16418 2008-12-21 Bruno Haible <bruno@clisp.org>
16420 * MODULES.html.sh: Change section titles to refer to POSIX:2008.
16422 2008-12-21 Bruno Haible <bruno@clisp.org>
16424 * modules/wcsnrtombs-tests: New file.
16425 * tests/test-wcsnrtombs1.sh: New file.
16426 * tests/test-wcsnrtombs2.sh: New file.
16427 * tests/test-wcsnrtombs3.sh: New file.
16428 * tests/test-wcsnrtombs4.sh: New file.
16429 * tests/test-wcsnrtombs.c: New file.
16431 New module 'wcsnrtombs'.
16432 * lib/wchar.in.h (wcsnrtombs): New declaration.
16433 * lib/wcsnrtombs.c: New file.
16434 * lib/wcsrtombs-state.c: New file.
16435 * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
16436 (internal_state): Remove variable.
16437 * m4/wcsnrtombs.m4: New file.
16438 * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
16440 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
16442 * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
16444 * modules/wcsnrtombs: New file.
16445 * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
16446 * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
16448 2008-12-21 Bruno Haible <bruno@clisp.org>
16450 * modules/wcsrtombs-tests: New file.
16451 * tests/test-wcsrtombs1.sh: New file.
16452 * tests/test-wcsrtombs2.sh: New file.
16453 * tests/test-wcsrtombs3.sh: New file.
16454 * tests/test-wcsrtombs4.sh: New file.
16455 * tests/test-wcsrtombs.c: New file.
16457 New module 'wcsrtombs'.
16458 * lib/wchar.in.h (wcsrtombs): New declaration.
16459 * lib/wcsrtombs.c: New file.
16460 * m4/wcsrtombs.m4: New file.
16461 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
16462 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16463 * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
16464 HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
16465 * modules/wcsrtombs: New file.
16466 * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
16469 2008-12-21 Bruno Haible <bruno@clisp.org>
16471 Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
16472 * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
16473 * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
16474 with NULL destination argument in various locales. Set REPLACE_WCRTOMB
16476 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
16477 * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
16478 * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16479 m4/locale-zh.m4, m4/codeset.m4.
16480 * doc/posix-functions/wcrtomb.texi: Document the bug.
16482 2008-12-21 Bruno Haible <bruno@clisp.org>
16484 Work around a btowc() bug on IRIX 6.5.
16485 * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
16486 * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
16487 REPLACE_WTOBC if not.
16488 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
16489 * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
16490 * doc/posix-functions/btowc.texi: Mention the IRIX bug.
16492 2008-12-21 Bruno Haible <bruno@clisp.org>
16494 * modules/wcrtomb-tests: New file.
16495 * tests/test-wcrtomb.sh: New file.
16496 * tests/test-wcrtomb.c: New file.
16498 New module 'wcrtomb'.
16499 * lib/wchar.in.h (wcrtomb): New declaration.
16500 * lib/wcrtomb.c: New file.
16501 * m4/wcrtomb.m4: New file.
16502 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
16504 * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
16506 * modules/wcrtomb: New file.
16507 * doc/posix-functions/wcrtomb.texi: Mention the new module.
16509 2008-12-21 Bruno Haible <bruno@clisp.org>
16511 * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
16512 * modules/mbsrtowcs (Files): Likewise.
16513 * modules/wctob (Files): Likewise.
16514 * modules/c-strcase-tests (Files): Likewise.
16515 * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
16516 * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
16517 * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
16518 * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
16519 * modules/vasnprintf-posix-tests (Files): Likewise.
16521 2008-12-21 William Pursell <bill.pursell@gmail.com>
16523 gitlog-to-changelog: pass all command-line arguments to git-log
16524 * build-aux/gitlog-to-changelog: When producing a ChangeLog,
16525 it is sometimes convenient to filter the commits in various ways.
16526 gitlog-to-changelog only allows --since to specify a start date,
16527 but git-log itself supports many other filtering mechanisms.
16528 At the moment, I want to filter by branch name. Rather than
16529 adding a --branch option to gitlog-to-changelog, it seems more
16530 flexible to simply pass all options directly to git-log and let
16531 git do the work. Notice that this effectively makes --since a
16532 redundant option for gitlog-to-changelog, but removing it would
16533 require current usage to change since calls would then require
16534 an additional '--'.
16536 2008-12-21 Bruno Haible <bruno@clisp.org>
16538 * modules/mbsnrtowcs-tests: New file.
16539 * tests/test-mbsnrtowcs1.sh: New file.
16540 * tests/test-mbsnrtowcs2.sh: New file.
16541 * tests/test-mbsnrtowcs3.sh: New file.
16542 * tests/test-mbsnrtowcs4.sh: New file.
16543 * tests/test-mbsnrtowcs.c: New file.
16545 New module 'mbsnrtowcs'.
16546 * lib/wchar.in.h (mbsnrtowcs): New declaration.
16547 * lib/mbsnrtowcs.c: New file.
16548 * lib/mbsrtowcs-state.c: New file.
16549 * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
16550 (internal_state): Remove variable.
16551 * m4/mbsnrtowcs.m4: New file.
16552 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
16554 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
16555 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16556 * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
16557 HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
16558 * modules/mbsnrtowcs: New file.
16559 * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
16560 * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
16561 portability problem.
16563 2008-12-21 Bruno Haible <bruno@clisp.org>
16565 Work around mbsrtowcs bug.
16566 * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
16567 (gl_FUNC_MBSRTOWCS): Invoke it.
16568 * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16570 * doc/posix-functions/mbsrtowcs.texi: Document the bug.
16572 2008-12-21 Bruno Haible <bruno@clisp.org>
16574 * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
16576 2008-12-21 Bruno Haible <bruno@clisp.org>
16578 Update doc for AIX.
16579 * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
16580 16-bit wchar_t type.
16581 * doc/posix-functions/btowc.texi: Likewise.
16582 * doc/posix-functions/fgetwc.texi: Likewise.
16583 * doc/posix-functions/fgetws.texi: Likewise.
16584 * doc/posix-functions/fputwc.texi: Likewise.
16585 * doc/posix-functions/fputws.texi: Likewise.
16586 * doc/posix-functions/fwide.texi: Likewise.
16587 * doc/posix-functions/fwprintf.texi: Likewise.
16588 * doc/posix-functions/fwscanf.texi: Likewise.
16589 * doc/posix-functions/getwchar.texi: Likewise.
16590 * doc/posix-functions/getwc.texi: Likewise.
16591 * doc/posix-functions/iswalnum.texi: Likewise.
16592 * doc/posix-functions/iswalpha.texi: Likewise.
16593 * doc/posix-functions/iswblank.texi: Likewise.
16594 * doc/posix-functions/iswcntrl.texi: Likewise.
16595 * doc/posix-functions/iswctype.texi: Likewise.
16596 * doc/posix-functions/iswdigit.texi: Likewise.
16597 * doc/posix-functions/iswgraph.texi: Likewise.
16598 * doc/posix-functions/iswlower.texi: Likewise.
16599 * doc/posix-functions/iswprint.texi: Likewise.
16600 * doc/posix-functions/iswpunct.texi: Likewise.
16601 * doc/posix-functions/iswspace.texi: Likewise.
16602 * doc/posix-functions/iswupper.texi: Likewise.
16603 * doc/posix-functions/iswxdigit.texi: Likewise.
16604 * doc/posix-functions/mbrtowc.texi: Likewise.
16605 * doc/posix-functions/mbsrtowcs.texi: Likewise.
16606 * doc/posix-functions/mbstowcs.texi: Likewise.
16607 * doc/posix-functions/mbtowc.texi: Likewise.
16608 * doc/posix-functions/putwchar.texi: Likewise.
16609 * doc/posix-functions/putwc.texi: Likewise.
16610 * doc/posix-functions/swprintf.texi: Likewise.
16611 * doc/posix-functions/tolower.texi: Likewise.
16612 * doc/posix-functions/toupper.texi: Likewise.
16613 * doc/posix-functions/towctrans.texi: Likewise.
16614 * doc/posix-functions/ungetwc.texi: Likewise.
16615 * doc/posix-functions/vswprintf.texi: Likewise.
16616 * doc/posix-functions/wcrtomb.texi: Likewise.
16617 * doc/posix-functions/wcscat.texi: Likewise.
16618 * doc/posix-functions/wcschr.texi: Likewise.
16619 * doc/posix-functions/wcscmp.texi: Likewise.
16620 * doc/posix-functions/wcscoll.texi: Likewise.
16621 * doc/posix-functions/wcscpy.texi: Likewise.
16622 * doc/posix-functions/wcscspn.texi: Likewise.
16623 * doc/posix-functions/wcsftime.texi: Likewise.
16624 * doc/posix-functions/wcslen.texi: Likewise.
16625 * doc/posix-functions/wcsncat.texi: Likewise.
16626 * doc/posix-functions/wcsncmp.texi: Likewise.
16627 * doc/posix-functions/wcsncpy.texi: Likewise.
16628 * doc/posix-functions/wcspbrk.texi: Likewise.
16629 * doc/posix-functions/wcsrchr.texi: Likewise.
16630 * doc/posix-functions/wcsrtombs.texi: Likewise.
16631 * doc/posix-functions/wcsspn.texi: Likewise.
16632 * doc/posix-functions/wcsstr.texi: Likewise.
16633 * doc/posix-functions/wcstod.texi: Likewise.
16634 * doc/posix-functions/wcstof.texi: Likewise.
16635 * doc/posix-functions/wcstoimax.texi: Likewise.
16636 * doc/posix-functions/wcstok.texi: Likewise.
16637 * doc/posix-functions/wcstold.texi: Likewise.
16638 * doc/posix-functions/wcstoll.texi: Likewise.
16639 * doc/posix-functions/wcstol.texi: Likewise.
16640 * doc/posix-functions/wcstombs.texi: Likewise.
16641 * doc/posix-functions/wcstoull.texi: Likewise.
16642 * doc/posix-functions/wcstoul.texi: Likewise.
16643 * doc/posix-functions/wcstoumax.texi: Likewise.
16644 * doc/posix-functions/wcswidth.texi: Likewise.
16645 * doc/posix-functions/wcsxfrm.texi: Likewise.
16646 * doc/posix-functions/wctob.texi: Likewise.
16647 * doc/posix-functions/wctomb.texi: Likewise.
16648 * doc/posix-functions/wctrans.texi: Likewise.
16649 * doc/posix-functions/wctype.texi: Likewise.
16650 * doc/posix-functions/wcwidth.texi: Likewise.
16651 * doc/posix-functions/wmemchr.texi: Likewise.
16652 * doc/posix-functions/wmemcmp.texi: Likewise.
16653 * doc/posix-functions/wmemcpy.texi: Likewise.
16654 * doc/posix-functions/wmemmove.texi: Likewise.
16655 * doc/posix-functions/wmemset.texi: Likewise.
16656 * doc/posix-functions/wprintf.texi: Likewise.
16657 * doc/posix-functions/wscanf.texi: Likewise.
16659 2008-12-21 Bruno Haible <bruno@clisp.org>
16661 Update doc for HP-UX 11.11.
16662 * doc/posix-functions/btowc.texi: Clarify that the function is missing
16663 in HP-UX version 11.00, not in all versions of HP-UX 11.
16664 * doc/posix-functions/fwide.texi: Likewise.
16665 * doc/posix-functions/fwprintf.texi: Likewise.
16666 * doc/posix-functions/fwscanf.texi: Likewise.
16667 * doc/posix-functions/inet_ntop.texi: Likewise.
16668 * doc/posix-functions/inet_pton.texi: Likewise.
16669 * doc/posix-functions/mbrlen.texi: Likewise.
16670 * doc/posix-functions/mbrtowc.texi: Likewise.
16671 * doc/posix-functions/mbsinit.texi: Likewise.
16672 * doc/posix-functions/mbsrtowcs.texi: Likewise.
16673 * doc/posix-functions/swprintf.texi: Likewise.
16674 * doc/posix-functions/swscanf.texi: Likewise.
16675 * doc/posix-functions/towctrans.texi: Likewise.
16676 * doc/posix-functions/vfwprintf.texi: Likewise.
16677 * doc/posix-functions/vswprintf.texi: Likewise.
16678 * doc/posix-functions/vwprintf.texi: Likewise.
16679 * doc/posix-functions/wcrtomb.texi: Likewise.
16680 * doc/posix-functions/wcsrtombs.texi: Likewise.
16681 * doc/posix-functions/wcsstr.texi: Likewise.
16682 * doc/posix-functions/wctob.texi: Likewise.
16683 * doc/posix-functions/wctrans.texi: Likewise.
16684 * doc/posix-functions/wmemchr.texi: Likewise.
16685 * doc/posix-functions/wmemcmp.texi: Likewise.
16686 * doc/posix-functions/wmemcpy.texi: Likewise.
16687 * doc/posix-functions/wmemmove.texi: Likewise.
16688 * doc/posix-functions/wmemset.texi: Likewise.
16689 * doc/posix-functions/wprintf.texi: Likewise.
16690 * doc/posix-functions/wscanf.texi: Likewise.
16692 2008-12-21 Bruno Haible <bruno@clisp.org>
16694 Work around a portability problem.
16695 * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
16696 * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
16698 2008-12-20 Bruno Haible <bruno@clisp.org>
16700 * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
16701 * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
16702 REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
16703 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
16704 * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
16706 Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
16707 * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
16709 (GNULIB_defined_mbstate_t): New macro.
16710 (mbsinit): Redefine if REPLACE_MBSINIT is set.
16711 (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
16712 * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
16713 reuses the system's mbrtowc function but works around the bugs.
16714 * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
16715 gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
16717 (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
16718 be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
16719 MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
16720 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
16721 REPLACE_MBSINIT if mbsinit needs to be overridden.
16722 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
16723 REPLACE_MBSINIT, REPLACE_MBRTOWC.
16724 * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
16725 REPLACE_MBSINIT, REPLACE_MBRTOWC.
16726 * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
16728 (Depends): Add mbsinit.
16729 * modules/mbsinit (Depends): Add mbrtowc.
16730 * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
16732 2008-12-20 Bruno Haible <bruno@clisp.org>
16734 * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
16735 so that there are no conversion errors on AIX.
16736 * tests/test-mbsrtowcs.c (main): LIkewise.
16738 2008-12-20 Bruno Haible <bruno@clisp.org>
16740 Work around wctob bug on Solaris <= 9.
16741 * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
16742 * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
16743 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
16744 * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
16745 * modules/wctob (Files): Add m4/locale-fr.m4.
16746 * doc/posix-functions/wctob.texi: Mention the Solaris bug.
16748 2008-12-20 Bruno Haible <bruno@clisp.org>
16750 * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
16752 * tests/test-select-in.sh: Likewise.
16753 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16755 2008-12-20 Bruno Haible <bruno@clisp.org>
16757 Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
16758 * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
16761 2008-12-20 Bruno Haible <bruno@clisp.org>
16763 Ensure mbstate_t is defined on HP-UX 11.11.
16764 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
16765 AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
16766 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
16767 AC_USE_SYSTEM_EXTENSIONS.
16768 * modules/fnmatch (Depends-on): Add extensions.
16769 * modules/mbrlen (Depends-on): Likewise.
16770 * modules/mbrtowc (Depends-on): Likewise.
16771 * modules/mbsinit (Depends-on): Likewise.
16772 * modules/mbsrtowcs (Depends-on): Likewise.
16773 * modules/mbswidth (Depends-on): Likewise.
16774 * modules/quotearg (Depends-on): Likewise.
16775 * modules/strftime (Depends-on): Likewise.
16777 2008-12-20 Bruno Haible <bruno@clisp.org>
16779 Ensure wctob is declared on IRIX 6.5.
16780 * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
16781 * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
16782 HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
16783 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
16785 * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
16787 * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
16789 2008-12-19 Bruno Haible <bruno@clisp.org>
16791 * modules/mbsrtowcs-tests: New file.
16792 * tests/test-mbsrtowcs1.sh: New file.
16793 * tests/test-mbsrtowcs2.sh: New file.
16794 * tests/test-mbsrtowcs3.sh: New file.
16795 * tests/test-mbsrtowcs4.sh: New file.
16796 * tests/test-mbsrtowcs.c: New file.
16798 New module 'mbsrtowcs'.
16799 * lib/wchar.in.h (mbsrtowcs): New declaration.
16800 * lib/mbsrtowcs.c: New file.
16801 * m4/mbsrtowcs.m4: New file.
16802 * modules/mbsrtowcs: New file.
16803 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
16805 * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
16807 * doc/posix-functions/mbsrtowcs.texi: Document the new module.
16809 2008-12-19 Bruno Haible <bruno@clisp.org>
16811 New module 'mbrlen'.
16812 * lib/wchar.in.h (mbrlen): New declaration.
16813 * lib/mbrlen.c: New file.
16814 * m4/mbrlen.m4: New file.
16815 * modules/mbrlen: New file.
16816 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
16818 * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
16820 * doc/posix-functions/mbrlen.texi: Document the new module.
16822 2008-12-19 Bruno Haible <bruno@clisp.org>
16824 * lib/mbrtowc.c: Include verify.h. Verify an assumption.
16825 * modules/mbrtowc (Depends-on): Add verify.
16826 Suggested by Paul Eggert.
16828 2008-12-18 Bruno Haible <bruno@clisp.org>
16830 * modules/mbsinit-tests: New file.
16831 * tests/test-mbsinit.sh: New file.
16832 * tests/test-mbsinit.c: New file.
16834 2008-12-18 Bruno Haible <bruno@clisp.org>
16836 * modules/mbrtowc-tests: New file.
16837 * tests/test-mbrtowc1.sh: New file.
16838 * tests/test-mbrtowc2.sh: New file.
16839 * tests/test-mbrtowc3.sh: New file.
16840 * tests/test-mbrtowc4.sh: New file.
16841 * tests/test-mbrtowc.c: New file.
16843 New module 'mbrtowc'.
16844 * lib/wchar.in.h (mbstate_t): Override when the system does not have
16845 mbsinit and mbrtowc.
16846 (mbrtowc): New declaration.
16847 * lib/mbrtowc.c: New file.
16848 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
16849 * modules/mbrtowc: New file.
16850 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
16852 * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
16854 * doc/posix-functions/mbrtowc.texi: Document the new module.
16856 2008-12-18 Bruno Haible <bruno@clisp.org>
16858 New module 'wctob'.
16859 * lib/wchar.in.h (wctob): New declaration.
16860 * lib/wctob.c: New file.
16861 * m4/wctob.m4: New file.
16862 * modules/wctob: New file.
16863 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
16865 * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
16866 * doc/posix-functions/wctob.texi: Document the new module.
16868 2008-12-18 Bruno Haible <bruno@clisp.org>
16870 * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
16871 * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
16873 2008-12-18 Simon Josefsson <simon@josefsson.org>
16875 * lib/flock.c: Use proper #if symbol in check. Reported by "Tom
16876 G. Christensen" <tgc@jupiterrise.com>.
16878 * lib/flock.c: Need to include errno.h. Reported by "Tom
16879 G. Christensen" <tgc@jupiterrise.com>.
16881 * lib/flock.c: Need to include string.h. Reported by "Tom
16882 G. Christensen" <tgc@jupiterrise.com> and Eric Blake
16885 2008-12-18 Bruno Haible <bruno@clisp.org>
16887 * m4/locale-ja.m4: New file, from GNU gettext.
16889 2008-12-17 Bruno Haible <bruno@clisp.org>
16891 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
16892 Suggested by Eric Blake.
16894 2008-12-17 Bruno Haible <bruno@clisp.org>
16896 * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
16898 2008-12-17 Bruno Haible <bruno@clisp.org>
16900 * lib/mbsinit.c: Include verify.h. Verify an assumption.
16901 * modules/mbsinit (Depends-on): Add verify.
16902 Suggested by Paul Eggert.
16904 2008-12-17 Bruno Haible <bruno@clisp.org>
16906 * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
16907 * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
16909 * m4/mbiter.m4 (gl_MBITER): LIkewise.
16910 * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
16911 * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
16912 * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
16913 * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
16914 * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
16915 * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
16916 * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
16917 * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
16918 * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
16919 * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
16920 * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
16921 * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
16922 * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
16923 * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
16924 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
16925 * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
16926 * modules/trim (configure.ac): Likewise.
16928 2008-12-17 Bruno Haible <bruno@clisp.org>
16930 * modules/btowc-tests: New file.
16931 * tests/test-btowc1.sh: New file.
16932 * tests/test-btowc2.sh: New file.
16933 * tests/test-btowc.c: New file.
16935 New module 'btowc'.
16936 * lib/wchar.in.h (btowc): New declaration.
16937 * lib/btowc.c: New file.
16938 * m4/btowc.m4: New file.
16939 * modules/btowc: New file.
16940 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
16942 * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
16943 * doc/posix-functions/btowc.texi: Document the new module.
16945 2008-12-17 Bruno Haible <bruno@clisp.org>
16947 New module 'mbsinit'.
16948 * lib/wchar.in.h (mbsinit): New declaration.
16949 * lib/mbsinit.c: New file.
16950 * m4/mbsinit.m4: New file.
16951 * modules/mbsinit: New file.
16952 * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
16954 * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
16956 * doc/posix-functions/mbsinit.texi: Document the new module.
16958 2008-12-16 Bruno Haible <bruno@clisp.org>
16960 * lib/unistd.in.h: Add comment.
16961 * tests/test-environ.c: Don't include <stdlib.h>.
16963 2008-12-16 Bruno Haible <bruno@clisp.org>
16965 * lib/parse-duration.h (parse_duration): Document return value
16967 * lib/parse-duration.c: Include specification header first. Add
16970 (parse_year_month_day, parse_hour_minute_second): Move side effects
16971 outside of strchr call.
16972 (parse_non_iso8601): Move side effects outside of isspace call.
16973 (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
16976 2008-12-16 Bruno Haible <bruno@clisp.org>
16978 * tests/test-parse-duration.sh: Produce no output when the test
16981 2008-12-16 Bruno Haible <bruno@clisp.org>
16983 * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
16986 2008-12-15 Bruno Haible <bruno@clisp.org>
16988 * doc/glibc-functions/fgetxattr.texi: Tweak wording.
16989 * doc/glibc-functions/flistxattr.texi: Likewise.
16990 * doc/glibc-functions/fopencookie.texi: Likewise.
16991 * doc/glibc-functions/fremovexattr.texi: Likewise.
16992 * doc/glibc-functions/fsetxattr.texi: Likewise.
16993 * doc/glibc-functions/getxattr.texi: Likewise.
16994 * doc/glibc-functions/lgetxattr.texi: Likewise.
16995 * doc/glibc-functions/listxattr.texi: Likewise.
16996 * doc/glibc-functions/llistxattr.texi: Likewise.
16997 * doc/glibc-functions/lremovexattr.texi: Likewise.
16998 * doc/glibc-functions/lsetxattr.texi: Likewise.
16999 * doc/glibc-functions/removexattr.texi: Likewise.
17000 * doc/glibc-functions/setxattr.texi: Likewise.
17001 * doc/posix-functions/open_memstream.texi: Likewise.
17003 2008-12-15 Eric Blake <ebb9@byu.net>
17005 Update doc for cygwin 1.7.
17006 * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
17008 * doc/posix-functions/fchmodat.texi: Likewise.
17009 * doc/posix-functions/fchownat.texi: Likewise.
17010 * doc/posix-functions/fdopendir.texi: Likewise.
17011 * doc/posix-functions/fmemopen.texi: Likewise.
17012 * doc/posix-functions/freeaddrinfo.texi: Likewise.
17013 * doc/posix-functions/fstatat.texi: Likewise.
17014 * doc/posix-functions/futimens.texi: Likewise.
17015 * doc/posix-functions/gai_strerror.texi: Likewise.
17016 * doc/posix-functions/getaddrinfo.texi: Likewise.
17017 * doc/posix-functions/getnameinfo.texi: Likewise.
17018 * doc/posix-functions/if_freenameindex.texi: Likewise.
17019 * doc/posix-functions/if_indextoname.texi: Likewise.
17020 * doc/posix-functions/if_nameindex.texi: Likewise.
17021 * doc/posix-functions/if_nametoindex.texi: Likewise.
17022 * doc/posix-functions/insque.texi: Likewise.
17023 * doc/posix-functions/linkat.texi: Likewise.
17024 * doc/posix-functions/llrint.texi: Likewise.
17025 * doc/posix-functions/llrintf.texi: Likewise.
17026 * doc/posix-functions/llrintl.texi: Likewise.
17027 * doc/posix-functions/lockf.texi: Likewise.
17028 * doc/posix-functions/lrintl.texi: Likewise.
17029 * doc/posix-functions/mkdirat.texi: Likewise.
17030 * doc/posix-functions/mkfifoat.texi: Likewise.
17031 * doc/posix-functions/mknodat.texi: Likewise.
17032 * doc/posix-functions/mq_close.texi: Likewise.
17033 * doc/posix-functions/mq_getattr.texi: Likewise.
17034 * doc/posix-functions/mq_notify.texi: Likewise.
17035 * doc/posix-functions/mq_open.texi: Likewise.
17036 * doc/posix-functions/mq_receive.texi: Likewise.
17037 * doc/posix-functions/mq_send.texi: Likewise.
17038 * doc/posix-functions/mq_setattr.texi: Likewise.
17039 * doc/posix-functions/mq_timedreceive.texi: Likewise.
17040 * doc/posix-functions/mq_timedsend.texi: Likewise.
17041 * doc/posix-functions/mq_unlink.texi: Likewise.
17042 * doc/posix-functions/open_memstream.texi: Likewise.
17043 * doc/posix-functions/openat.texi: Likewise.
17044 * doc/posix-functions/posix_fadvise.texi: Likewise.
17045 * doc/posix-functions/posix_fallocate.texi: Likewise.
17046 * doc/posix-functions/posix_madvise.texi: Likewise.
17047 * doc/posix-functions/posix_memalign.texi: Likewise.
17048 * doc/posix-functions/posix_openpt.texi: Likewise.
17049 * doc/posix-functions/readlinkat.texi: Likewise.
17050 * doc/posix-functions/remque.texi: Likewise.
17051 * doc/posix-functions/renameat.texi: Likewise.
17052 * doc/posix-functions/rintl.texi: Likewise.
17053 * doc/posix-functions/sem_unlink.texi: Likewise.
17054 * doc/posix-functions/shm_open.texi: Likewise.
17055 * doc/posix-functions/shm_unlink.texi: Likewise.
17056 * doc/posix-functions/signgam.texi: Likewise.
17057 * doc/posix-functions/sigset.texi: Likewise.
17058 * doc/posix-functions/stpcpy.texi: Likewise.
17059 * doc/posix-functions/stpncpy.texi: Likewise.
17060 * doc/posix-functions/strerror.texi: Likewise.
17061 * doc/posix-functions/strtod.texi: Likewise.
17062 * doc/posix-functions/symlinkat.texi: Likewise.
17063 * doc/posix-functions/unlinkat.texi: Likewise.
17064 * doc/posix-functions/utimensat.texi: Likewise.
17065 * doc/glibc-functions/bindresvport.texi: Likewise.
17066 * doc/glibc-functions/dn_expand.texi: Likewise.
17067 * doc/glibc-functions/exp10.texi: Likewise.
17068 * doc/glibc-functions/exp10f.texi: Likewise.
17069 * doc/glibc-functions/fgetxattr.texi: Likewise.
17070 * doc/glibc-functions/flistxattr.texi: Likewise.
17071 * doc/glibc-functions/fopencookie.texi: Likewise.
17072 * doc/glibc-functions/freeifaddrs.texi: Likewise.
17073 * doc/glibc-functions/fremovexattr.texi: Likewise.
17074 * doc/glibc-functions/fsetxattr.texi: Likewise.
17075 * doc/glibc-functions/getifaddrs.texi: Likewise.
17076 * doc/glibc-functions/getxattr.texi: Likewise.
17077 * doc/glibc-functions/lgetxattr.texi: Likewise.
17078 * doc/glibc-functions/listxattr.texi: Likewise.
17079 * doc/glibc-functions/llistxattr.texi: Likewise.
17080 * doc/glibc-functions/lremovexattr.texi: Likewise.
17081 * doc/glibc-functions/lsetxattr.texi: Likewise.
17082 * doc/glibc-functions/pow10.texi: Likewise.
17083 * doc/glibc-functions/pow10f.texi: Likewise.
17084 * doc/glibc-functions/rcmd_af.texi: Likewise.
17085 * doc/glibc-functions/removexattr.texi: Likewise.
17086 * doc/glibc-functions/res_init.texi: Likewise.
17087 * doc/glibc-functions/res_mkquery.texi: Likewise.
17088 * doc/glibc-functions/res_query.texi: Likewise.
17089 * doc/glibc-functions/res_querydomain.texi: Likewise.
17090 * doc/glibc-functions/res_send.texi: Likewise.
17091 * doc/glibc-functions/rresvport_af.texi: Likewise.
17092 * doc/glibc-functions/setxattr.texi: Likewise.
17093 * doc/glibc-functions/strcasestr.texi: Likewise.
17095 2008-12-15 Bruno Haible <bruno@clisp.org>
17097 Fix compilation error on OSF/1 4.0.
17098 * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
17099 <sys/time.h>, simply delegate to the system header.
17100 Reported by Daniel Richard G. <oss@teragram.com>.
17102 2008-12-15 Bruno Haible <bruno@clisp.org>
17104 * doc/posix-functions/openat.texi: Mention the 'openat' module.
17105 * doc/posix-functions/fchmodat.texi: Likewise.
17106 * doc/posix-functions/fchownat.texi: Likewise.
17107 * doc/posix-functions/fdopendir.texi: Likewise.
17108 * doc/posix-functions/fstatat.texi: Likewise.
17109 * doc/posix-functions/mkdirat.texi: Likewise.
17110 * doc/posix-functions/unlinkat.texi: Likewise.
17112 2008-12-14 Bruno Haible <bruno@clisp.org>
17114 Update doc for POSIX:2008.
17115 * doc/posix-functions/faccessat.texi: New file.
17116 * doc/posix-functions/fchmodat.texi: New file.
17117 * doc/posix-functions/fchownat.texi: New file.
17118 * doc/posix-functions/fdopendir.texi: New file.
17119 * doc/posix-functions/fstatat.texi: New file.
17120 * doc/posix-functions/futimens.texi: New file.
17121 * doc/posix-functions/linkat.texi: New file.
17122 * doc/posix-functions/mkdirat.texi: New file.
17123 * doc/posix-functions/mkfifoat.texi: New file.
17124 * doc/posix-functions/mknodat.texi: New file.
17125 * doc/posix-functions/open_wmemstream.texi: New file.
17126 * doc/posix-functions/openat.texi: New file.
17127 * doc/posix-functions/psiginfo.texi: New file.
17128 * doc/posix-functions/pthread_mutex_consistent.texi: New file.
17129 * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
17130 * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
17131 * doc/posix-functions/readlinkat.texi: New file.
17132 * doc/posix-functions/renameat.texi: New file.
17133 * doc/posix-functions/strerror_l.texi: New file.
17134 * doc/posix-functions/symlinkat.texi: New file.
17135 * doc/posix-functions/unlinkat.texi: New file.
17136 * doc/posix-functions/utimensat.texi: New file.
17137 * doc/gnulib.texi (Function Substitutes): Add these subsections.
17139 2008-12-14 Bruno Haible <bruno@clisp.org>
17141 Update doc for POSIX:2008.
17142 * doc/posix-functions/alphasort.texi: Renamed from
17143 doc/glibc-functions/alphasort.texi.
17144 * doc/posix-functions/dirfd.texi: Renamed from
17145 doc/glibc-functions/dirfd.texi.
17146 * doc/posix-functions/dprintf.texi: Renamed from
17147 doc/glibc-functions/dprintf.texi.
17148 * doc/posix-functions/duplocale.texi: Renamed from
17149 doc/glibc-functions/duplocale.texi.
17150 * doc/posix-functions/fexecve.texi: Renamed from
17151 doc/glibc-functions/fexecve.texi.
17152 * doc/posix-functions/fmemopen.texi: Renamed from
17153 doc/glibc-functions/fmemopen.texi.
17154 * doc/posix-functions/freelocale.texi: Renamed from
17155 doc/glibc-functions/freelocale.texi.
17156 * doc/posix-functions/getdate_err.texi: Renamed from
17157 doc/glibc-functions/getdate_err.texi.
17158 * doc/posix-functions/isalnum_l.texi: Renamed from
17159 doc/glibc-functions/isalnum_l.texi.
17160 * doc/posix-functions/isalpha_l.texi: Renamed from
17161 doc/glibc-functions/isalpha_l.texi.
17162 * doc/posix-functions/isblank_l.texi: Renamed from
17163 doc/glibc-functions/isblank_l.texi.
17164 * doc/posix-functions/iscntrl_l.texi: Renamed from
17165 doc/glibc-functions/iscntrl_l.texi.
17166 * doc/posix-functions/isdigit_l.texi: Renamed from
17167 doc/glibc-functions/isdigit_l.texi.
17168 * doc/posix-functions/isgraph_l.texi: Renamed from
17169 doc/glibc-functions/isgraph_l.texi.
17170 * doc/posix-functions/islower_l.texi: Renamed from
17171 doc/glibc-functions/islower_l.texi.
17172 * doc/posix-functions/isprint_l.texi: Renamed from
17173 doc/glibc-functions/isprint_l.texi.
17174 * doc/posix-functions/ispunct_l.texi: Renamed from
17175 doc/glibc-functions/ispunct_l.texi.
17176 * doc/posix-functions/isspace_l.texi: Renamed from
17177 doc/glibc-functions/isspace_l.texi.
17178 * doc/posix-functions/isupper_l.texi: Renamed from
17179 doc/glibc-functions/isupper_l.texi.
17180 * doc/posix-functions/iswalnum_l.texi: Renamed from
17181 doc/glibc-functions/iswalnum_l.texi.
17182 * doc/posix-functions/iswalpha_l.texi: Renamed from
17183 doc/glibc-functions/iswalpha_l.texi.
17184 * doc/posix-functions/iswblank_l.texi: Renamed from
17185 doc/glibc-functions/iswblank_l.texi.
17186 * doc/posix-functions/iswcntrl_l.texi: Renamed from
17187 doc/glibc-functions/iswcntrl_l.texi.
17188 * doc/posix-functions/iswctype_l.texi: Renamed from
17189 doc/glibc-functions/iswctype_l.texi.
17190 * doc/posix-functions/iswdigit_l.texi: Renamed from
17191 doc/glibc-functions/iswdigit_l.texi.
17192 * doc/posix-functions/iswgraph_l.texi: Renamed from
17193 doc/glibc-functions/iswgraph_l.texi.
17194 * doc/posix-functions/iswlower_l.texi: Renamed from
17195 doc/glibc-functions/iswlower_l.texi.
17196 * doc/posix-functions/iswprint_l.texi: Renamed from
17197 doc/glibc-functions/iswprint_l.texi.
17198 * doc/posix-functions/iswpunct_l.texi: Renamed from
17199 doc/glibc-functions/iswpunct_l.texi.
17200 * doc/posix-functions/iswspace_l.texi: Renamed from
17201 doc/glibc-functions/iswspace_l.texi.
17202 * doc/posix-functions/iswupper_l.texi: Renamed from
17203 doc/glibc-functions/iswupper_l.texi.
17204 * doc/posix-functions/iswxdigit_l.texi: Renamed from
17205 doc/glibc-functions/iswxdigit_l.texi.
17206 * doc/posix-functions/isxdigit_l.texi: Renamed from
17207 doc/glibc-functions/isxdigit_l.texi.
17208 * doc/posix-functions/mbsnrtowcs.texi: Renamed from
17209 doc/glibc-functions/mbsnrtowcs.texi.
17210 * doc/posix-functions/mkdtemp.texi: Renamed from
17211 doc/glibc-functions/mkdtemp.texi.
17212 * doc/posix-functions/newlocale.texi: Renamed from
17213 doc/glibc-functions/newlocale.texi.
17214 * doc/posix-functions/nl_langinfo_l.texi: Renamed from
17215 doc/glibc-functions/nl_langinfo_l.texi.
17216 * doc/posix-functions/open_memstream.texi: Renamed from
17217 doc/glibc-functions/open_memstream.texi.
17218 * doc/posix-functions/opterr.texi: Renamed from
17219 doc/glibc-functions/opterr.texi.
17220 * doc/posix-functions/optind.texi: Renamed from
17221 doc/glibc-functions/optind.texi.
17222 * doc/posix-functions/optopt.texi: Renamed from
17223 doc/glibc-functions/optopt.texi.
17224 * doc/posix-functions/psignal.texi: Renamed from
17225 doc/glibc-functions/psignal.texi.
17226 * doc/posix-functions/scandir.texi: Renamed from
17227 doc/glibc-functions/scandir.texi.
17228 * doc/posix-functions/sched_get_priority_min.texi: Renamed from
17229 doc/glibc-functions/sched_get_priority_min.texi.
17230 * doc/posix-functions/signgam.texi: Renamed from
17231 doc/glibc-functions/signgam.texi.
17232 * doc/posix-functions/stpcpy.texi: Renamed from
17233 doc/glibc-functions/stpcpy.texi.
17234 * doc/posix-functions/stpncpy.texi: Renamed from
17235 doc/glibc-functions/stpncpy.texi.
17236 * doc/posix-functions/strcasecmp_l.texi: Renamed from
17237 doc/glibc-functions/strcasecmp_l.texi.
17238 * doc/posix-functions/strcoll_l.texi: Renamed from
17239 doc/glibc-functions/strcoll_l.texi.
17240 * doc/posix-functions/strfmon_l.texi: Renamed from
17241 doc/glibc-functions/strfmon_l.texi.
17242 * doc/posix-functions/strftime_l.texi: Renamed from
17243 doc/glibc-functions/strftime_l.texi.
17244 * doc/posix-functions/strncasecmp_l.texi: Renamed from
17245 doc/glibc-functions/strncasecmp_l.texi.
17246 * doc/posix-functions/strndup.texi: Renamed from
17247 doc/glibc-functions/strndup.texi.
17248 * doc/posix-functions/strnlen.texi: Renamed from
17249 doc/glibc-functions/strnlen.texi.
17250 * doc/posix-functions/strsignal.texi: Renamed from
17251 doc/glibc-functions/strsignal.texi.
17252 * doc/posix-functions/strxfrm_l.texi: Renamed from
17253 doc/glibc-functions/strxfrm_l.texi.
17254 * doc/posix-functions/timer_gettime.texi: Renamed from
17255 doc/glibc-functions/timer_gettime.texi.
17256 * doc/posix-functions/tolower_l.texi: Renamed from
17257 doc/glibc-functions/tolower_l.texi.
17258 * doc/posix-functions/toupper_l.texi: Renamed from
17259 doc/glibc-functions/toupper_l.texi.
17260 * doc/posix-functions/towctrans_l.texi: Renamed from
17261 doc/glibc-functions/towctrans_l.texi.
17262 * doc/posix-functions/towlower_l.texi: Renamed from
17263 doc/glibc-functions/towlower_l.texi.
17264 * doc/posix-functions/towupper_l.texi: Renamed from
17265 doc/glibc-functions/towupper_l.texi.
17266 * doc/posix-functions/uselocale.texi: Renamed from
17267 doc/glibc-functions/uselocale.texi.
17268 * doc/posix-functions/vdprintf.texi: Renamed from
17269 doc/glibc-functions/vdprintf.texi.
17270 * doc/posix-functions/wcpcpy.texi:
17271 Renamed from doc/glibc-functions/wcpcpy.texi.
17272 * doc/posix-functions/wcpncpy.texi: Renamed from
17273 doc/glibc-functions/wcpncpy.texi.
17274 * doc/posix-functions/wcscasecmp.texi: Renamed from
17275 doc/glibc-functions/wcscasecmp.texi.
17276 * doc/posix-functions/wcscasecmp_l.texi: Renamed from
17277 doc/glibc-functions/wcscasecmp_l.texi.
17278 * doc/posix-functions/wcscoll_l.texi: Renamed from
17279 doc/glibc-functions/wcscoll_l.texi.
17280 * doc/posix-functions/wcsdup.texi: Renamed from
17281 doc/glibc-functions/wcsdup.texi.
17282 * doc/posix-functions/wcsncasecmp.texi: Renamed from
17283 doc/glibc-functions/wcsncasecmp.texi.
17284 * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
17285 doc/glibc-functions/wcsncasecmp_l.texi.
17286 * doc/posix-functions/wcsnlen.texi: Renamed from
17287 doc/glibc-functions/wcsnlen.texi.
17288 * doc/posix-functions/wcsnrtombs.texi: Renamed from
17289 doc/glibc-functions/wcsnrtombs.texi.
17290 * doc/posix-functions/wcsxfrm_l.texi: Renamed from
17291 doc/glibc-functions/wcsxfrm_l.texi.
17292 * doc/posix-functions/wctrans_l.texi: Renamed from
17293 doc/glibc-functions/wctrans_l.texi.
17294 * doc/posix-functions/wctype_l.texi: Renamed from
17295 doc/glibc-functions/wctype_l.texi.
17296 * doc/gnulib.texi (Function Substitutes): Add these subsections.
17297 (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
17298 Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
17299 Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
17301 (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
17304 2008-12-14 Bruno Haible <bruno@clisp.org>
17306 Update doc for POSIX:2008.
17307 * doc/posix-functions/*.texi: Update URL of POSIX specification.
17309 2008-12-14 Bruno Haible <bruno@clisp.org>
17311 Update doc for POSIX:2008.
17312 * doc/pastposix-functions/bcmp.texi: Renamed from
17313 doc/posix-functions/bcmp.texi.
17314 * doc/pastposix-functions/bcopy.texi: Renamed from
17315 doc/posix-functions/bcopy.texi.
17316 * doc/pastposix-functions/bsd_signal.texi: Renamed from
17317 doc/posix-functions/bsd_signal.texi.
17318 * doc/pastposix-functions/bzero.texi: Renamed from
17319 doc/posix-functions/bzero.texi.
17320 * doc/pastposix-functions/ecvt.texi: Renamed from
17321 doc/posix-functions/ecvt.texi.
17322 * doc/pastposix-functions/fcvt.texi: Renamed from
17323 doc/posix-functions/fcvt.texi.
17324 * doc/pastposix-functions/ftime.texi: Renamed from
17325 doc/posix-functions/ftime.texi.
17326 * doc/pastposix-functions/gcvt.texi: Renamed from
17327 doc/posix-functions/gcvt.texi.
17328 * doc/pastposix-functions/getcontext.texi: Renamed from
17329 doc/posix-functions/getcontext.texi.
17330 * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
17331 doc/posix-functions/gethostbyaddr.texi.
17332 * doc/pastposix-functions/gethostbyname.texi: Renamed from
17333 doc/posix-functions/gethostbyname.texi.
17334 * doc/pastposix-functions/getwd.texi: Renamed from
17335 doc/posix-functions/getwd.texi.
17336 * doc/pastposix-functions/h_errno.texi: Renamed from
17337 doc/posix-functions/h_errno.texi.
17338 * doc/pastposix-functions/index.texi: Renamed from
17339 doc/posix-functions/index.texi.
17340 * doc/pastposix-functions/makecontext.texi: Renamed from
17341 doc/posix-functions/makecontext.texi.
17342 * doc/pastposix-functions/mktemp.texi: Renamed from
17343 doc/posix-functions/mktemp.texi.
17344 * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
17345 doc/posix-functions/pthread_attr_getstackaddr.texi.
17346 * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
17347 doc/posix-functions/pthread_attr_setstackaddr.texi.
17348 * doc/pastposix-functions/rindex.texi: Renamed from
17349 doc/posix-functions/rindex.texi.
17350 * doc/pastposix-functions/scalb.texi: Renamed from
17351 doc/posix-functions/scalb.texi.
17352 * doc/pastposix-functions/setcontext.texi: Renamed from
17353 doc/posix-functions/setcontext.texi.
17354 * doc/pastposix-functions/swapcontext.texi: Renamed from
17355 doc/posix-functions/swapcontext.texi.
17356 * doc/pastposix-functions/ualarm.texi: Renamed from
17357 doc/posix-functions/ualarm.texi.
17358 * doc/pastposix-functions/usleep.texi: Renamed from
17359 doc/posix-functions/usleep.texi.
17360 * doc/pastposix-functions/vfork.texi: Renamed from
17361 doc/posix-functions/vfork.texi.
17362 * doc/pastposix-functions/wcswcs.texi: Renamed from
17363 doc/posix-functions/wcswcs.texi.
17364 * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
17365 (Function Substitutes): Update.
17367 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17369 * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
17372 2008-12-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17373 Bruno Haible <bruno@clisp.org>
17375 * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
17377 2008-12-13 Bruno Haible <bruno@clisp.org>
17379 * modules/strtoull (Depends-on): Remove unistd.
17381 2008-12-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17383 * modules/strtoull (Depends-on): Add stdlib.
17385 2008-12-11 Simon Josefsson <simon@josefsson.org>
17387 * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
17389 2008-12-10 Jim Meyering <meyering@redhat.com>
17391 gl_ASSERT: don't say assertions are disabled when they're not
17392 * m4/assert.m4 (gl_ASSERT): Do not make configure report
17393 "checking whether to enable assertions... no", when they are in
17394 fact enabled. This is solely a bug in the output of configure.
17395 In spite of saying "no", NDEBUG was not defined in that case.
17396 Also, as noted by Eric Blake, leave assertions enabled upon
17397 --enable-assert=INVALID.
17399 2008-12-10 Bruno Haible <bruno@clisp.org>
17401 Change MODULES.html to refer to POSIX:2008 where possible.
17402 * MODULES.html.sh (POSIX2008_URL): New variable.
17403 (posix_headers): Remove sys/timeb, ucontext.
17404 (posix2001_headers): New variable.
17405 (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
17406 ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
17407 index, makecontext, mktemp, pthread_attr_getstackaddr,
17408 pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
17409 ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
17410 (posix2001_functions): New variable.
17411 (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
17414 2008-12-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17416 add missing include to parse-duration.c
17417 * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
17418 * modules/parse-duration (Depends-on): Add xalloc.
17420 fix sed script reading maint.mk
17421 * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
17422 (syntax-check-rules): Use it.
17424 2008-12-09 Bruno Haible <bruno@clisp.org>
17426 * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
17427 MacOS X 10.4/PowerPC.
17428 Reported by Simon Josefsson.
17430 2008-12-08 Jim Meyering <meyering@redhat.com>
17432 work around mingw's lack of some S_IF definitions
17433 * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
17434 Reported by Simon Josefsson.
17436 2008-12-08 Bruno Haible <bruno@clisp.org>
17438 * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
17439 applied to variables. Needed on MacOS X 10.4/PowerPC.
17440 Reported by Simon Josefsson.
17442 2008-12-08 William Pursell <bill.pursell@gmail.com> (tiny change)
17443 and Eric Blake <ebb9@byu.net>
17445 assert: honor --enable-assert
17446 * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
17447 order to honor --enable-assert, rather than treating it as a
17448 synonym for --disable-assert.
17450 2008-12-08 Jim Meyering <meyering@redhat.com>
17452 * lib/posixtm.c: Remove now-useless declaration of mktime.
17454 * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
17456 2008-12-07 Bruno Haible <bruno@clisp.org>
17458 * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
17459 test_once): Mark functions as static.
17460 * tests/test-tls.c (test_tls): Likewise.
17462 2008-12-07 Bruno Haible <bruno@clisp.org>
17464 * lib/striconveha.h (uniconv_register_autodetect): Renamed from
17465 iconv_register_autodetect.
17467 2008-12-07 Jim Meyering <meyering@redhat.com>
17469 posixtm.c: avoid a warning
17470 * lib/posixtm.c (posixtime): Don't initialize tm0.
17471 It's no longer needed to placate gcc4's -Wuninitialized,
17472 and the attempt to placate would elicit a new warning.
17474 unicodeio.c: mark unused parameters
17475 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17476 (fallback_failure_callback): Likewise.
17478 2008-12-07 Bruno Haible <bruno@clisp.org>
17480 * gnulib-tool (func_create_testdir): When building the tests
17481 subdirectory, ignore the modules gnumakefile and maintainer-makefile.
17482 Reported by Simon Josefsson.
17484 2008-12-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17486 * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
17488 2008-12-06 Bruno Haible <bruno@clisp.org>
17490 * lib/c-stack.h (c_stack_action): Clarify possible side effects.
17491 Suggested by Eric Blake.
17493 2008-12-06 Bruno Haible <bruno@clisp.org>
17495 Fix a c-stack test failure on MacOS X.
17496 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
17497 AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
17498 handler for SIGBUS as well.
17499 * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
17500 install a signal handler for SIGBUS as well.
17501 Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
17503 2008-12-06 Bruno Haible <bruno@clisp.org>
17505 Advocacy documentation.
17506 * doc/gnulib-intro.texi (Benefits): New section.
17507 * doc/gnulib.texi: Update.
17509 2008-12-06 Bruno Haible <bruno@clisp.org>
17511 Document the 'manywarnings' module.
17512 * doc/manywarnings.texi: New file.
17513 * doc/gnulib.texi: Include it.
17515 2008-12-05 Eric Blake <ebb9@byu.net>
17517 tests: silence some gcc warnings
17518 * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
17519 * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
17522 2008-12-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
17523 Bruno Haible <bruno@clisp.org>
17525 * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
17527 2008-11-29 Jim Meyering <meyering@redhat.com>
17529 unicodeio.c: mark unused parameters
17530 * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
17531 (fallback_failure_callback): Likewise.
17534 * lib/fts.c (s_ifmt_shift_bits): Remove function. Not needed after all.
17535 (set_stat_type): Return S_IF*-valued "type" directly.
17536 Prompted by James Youngman's spotting a related bug.
17537 Confirmed by further testing through find.
17539 fts: provide dirent.d_type via FTSENT.fts_statp, when possible
17540 * lib/fts.c (D_TYPE): Define.
17541 (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
17542 (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
17543 (s_ifmt_shift_bits): New function.
17544 (set_stat_type): New function.
17545 (fts_build): When not calling fts_stat, call set_stat_type
17546 to propagate dirent.d_type info to fts_read caller.
17547 * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
17548 fts_statp->st_mode type information may be valid.
17550 2008-11-28 Simon Josefsson <simon@josefsson.org>
17552 * lib/sys_time.in.h: Add extern "C" block for C++. Suggested by
17553 Brian Dessent <brian@dessent.net>. Reported by Sam Steingold
17556 2008-11-20 Bruno Haible <bruno@clisp.org>
17558 Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
17559 * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
17561 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
17562 INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
17563 * modules/math (Makefile.am): Substitute
17564 INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
17565 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
17567 2008-11-18 Alexandre Duret-Lutz <adl@lrde.epita.fr>
17568 Bruno Haible <bruno@clisp.org>
17570 * lib/stdint.in.h: Define all type macros so that their expansion is
17571 a single typedef'ed token. Fixes a compilation failure in Boost which
17572 does "using ::int8_t;".
17574 2008-11-18 Simon Josefsson <simon@josefsson.org>
17576 * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
17577 gl_MANYWARN_ALL_GCC.
17578 * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
17579 gl_WARN_COMPLEMENT. Suggested by Bruno Haible <bruno@clisp.org>.
17580 * modules/manywarnings: New file.
17581 * MODULES.html.sh: Mention manywarnings module.
17583 2008-11-18 Bruno Haible <bruno@clisp.org>
17585 * doc/gnulib-tool.texi (Unit tests): New section.
17587 2008-11-18 Simon Josefsson <simon@josefsson.org>
17589 * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
17590 paths like 'lib/po/foo.po'.
17592 2008-11-17 Simon Josefsson <simon@josefsson.org>
17594 * m4/warnings.m4: Improve code. Reported by Ralf Wildenhues
17595 <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
17597 2008-11-17 Simon Josefsson <simon@josefsson.org>
17599 * m4/warnings.m4: Use CPPFLAGS to really check whether the
17602 2008-11-17 Simon Josefsson <simon@josefsson.org>
17604 * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
17606 2008-11-17 Bruce Korb <bkorb@gnu.org>
17608 * modules/parse-duration-tests: New file.
17609 * tests/test-parse-duration.sh: New file.
17610 * tests/test-parse-duration.c: New file.
17612 New module 'parse-duration'.
17613 * lib/parse-duration.h: New file.
17614 * lib/parse-duration.c: New file.
17615 * modules/parse-duration: New file.
17617 2008-11-17 Bruno Haible <bruno@clisp.org>
17619 * tests/test-select-out.sh: Comment out the first pipe test.
17620 Reported by Simon Josefsson.
17622 2008-11-17 Bruno Haible <bruno@clisp.org>
17624 * modules/getaddrinfo (Depends-on): Add servent, hostent.
17625 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
17628 2008-11-17 Bruno Haible <bruno@clisp.org>
17630 * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
17631 -lnetwork and -lnet. Needed for Haiku and BeOS.
17633 2008-11-16 Bruno Haible <bruno@clisp.org>
17635 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
17637 2008-11-16 Bruno Haible <bruno@clisp.org>
17639 Avoid test failure on Haiku.
17640 * tests/test-fsync.c: Include <errno.h>.
17641 (main): Don't require that fsync (0) fails.
17643 2008-11-15 Bruno Haible <bruno@clisp.org>
17645 New module 'hostent'.
17646 * modules/hostent: New file.
17647 * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
17649 2008-11-15 Bruno Haible <bruno@clisp.org>
17651 New module 'servent'.
17652 * modules/servent: New file.
17653 * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
17655 2008-11-15 Bruno Haible <bruno@clisp.org>
17657 Avoid generating same test program with two different rules.
17658 * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
17659 test-frexp to test-frexp-nolibm.
17660 * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
17661 test-frexpl to test-frexpl-nolibm.
17663 2008-11-15 Bruno Haible <bruno@clisp.org>
17665 * modules/frexpl-tests (Makefile.am): Link test-frexpl with
17668 2008-11-15 Bruno Haible <bruno@clisp.org>
17670 * lib/netdb.in.h: Activate the definitions also when the system's
17671 <netdb.h> has 'struct addrinfo'.
17672 * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
17673 EAI_OVERFLOW or AI_NUMERICSERV.
17674 * doc/posix-headers/netdb.texi: Document the problem.
17676 2008-11-15 Bruno Haible <bruno@clisp.org>
17678 * tests/test-sched.c: Test also the existence of the SCHED_* macros.
17680 Make the 'sched' module work on platforms where <sched.h> exists but
17681 is incomplete (such as Haiku).
17682 * lib/sched.in.h; Include the system's <sched.h> if it exists.
17683 (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
17684 * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
17685 defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
17686 HAVE_STRUCT_SCHED_PARAM.
17687 * modules/sched (Depends-on): Add include_next.
17688 (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
17689 PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
17690 * doc/posix-headers/sched.texi: Document the issue.
17692 2008-11-13 Jim Meyering <meyering@redhat.com>
17694 test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
17695 * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
17696 test would fail due to the difference in the Report bugs to ...
17697 line. The expected address is empty, "<>", while the actual
17698 would contain e.g., "<bug-tar@gnu.org>". Filter out any address.
17700 2008-11-12 Bruno Haible <bruno@clisp.org>
17702 lstat: don't compile lstat.c on systems lacking lstat
17703 * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
17704 which don't have lstat; this is handled by lib/sys_stat.in.h already.
17705 Reported by Daniel P. Berrange via Jim Meyering.
17707 2008-11-12 Jim Meyering <meyering@redhat.com>
17709 * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
17711 2008-11-12 Simon Josefsson <simon@josefsson.org>
17713 * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
17716 2008-11-12 Bruno Haible <bruno@clisp.org>
17718 * lib/unicodeio.c: Include unistr.h.
17719 (utf8_wctomb): Remove function.
17720 (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
17722 2008-11-12 Simon Josefsson <simon@josefsson.org>
17724 * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
17725 Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
17727 * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
17729 2008-11-12 Simon Josefsson <simon@josefsson.org>
17731 * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
17732 * doc/gnulib.texi: Add section for warnings.
17734 2008-11-11 Bruno Haible <bruno@clisp.org>
17736 * lib/sockets.h: Add a comment.
17738 2008-11-11 Karl Berry <karl@gnu.org>
17740 * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
17742 2008-11-11 Eric Blake <ebb9@byu.net>
17744 fdl.texi: avoid git symlinks
17745 * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
17747 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
17749 * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
17751 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
17753 * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
17754 (gl_WARN_ADD): Substitute $2 if literal.
17756 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
17758 * m4/warning.m4: Remove.
17760 2008-11-11 Paolo Bonzini <bonzini@gnu.org>
17762 * m4/warnings.m4: Almost complete rewrite. :-)
17764 2008-11-10 Simon Josefsson <simon@josefsson.org>
17766 * modules/warnings: New module.
17767 * m4/warnings.m4: New file.
17768 * MODULES.html.sh: Mention warnings module.
17769 With review improvements from Paolo Bonzini <bonzini@gnu.org> and
17770 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
17772 2008-11-10 Eric Blake <ebb9@byu.net>
17774 fdl.texi: make a symlink to the latest version
17775 * doc/standards.texi: Revert today's earlier change.
17776 * doc/fdl-1.2.texi: Rename from old fdl.texi...
17777 * doc/fdl.texi: ...and replace this with a symlink to the newer
17780 2008-11-10 Bruno Haible <bruno@clisp.org>
17782 * tests/test-select-fd.c (main): Accept the result file name as fourth
17784 * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
17785 * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
17787 2008-11-10 Bruno Haible <bruno@clisp.org>
17789 * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
17790 HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
17791 as autoconf-substituted macros.
17792 * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
17793 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
17794 gl_NETDB_H_DEFAULTS. Set these variables.
17795 * modules/netdb (Makefile.am): Substitute these variables.
17797 2008-11-10 Eric Blake <ebb9@byu.net>
17799 standards.texi: include correct file for FDL 1.3
17800 * doc/standards.texi (GNU Free Documentation License): Change
17801 include file to pull in FDL 1.3, not 1.2.
17803 fdl.texi: revert accidental change to license
17804 * doc/fdl.texi: This is FDL 1.2, not 1.3.
17806 2008-11-10 Bruno Haible <bruno@clisp.org>
17808 * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
17809 cross-compiling guesses also when the native compile gives no result.
17811 2008-11-10 Bruno Haible <bruno@clisp.org>
17813 * lib/spawni.c (__spawni): Force variable into the stack.
17815 2008-11-10 Bruno Haible <bruno@clisp.org>
17817 Add support for Haiku.
17818 * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
17819 glibc and BeOS, but also on Haiku.
17820 * lib/fpurge.c (fpurge): Likewise.
17821 * lib/freadable.c (freadable): Likewise.
17822 * lib/freadahead.c (freadahead): Likewise.
17823 * lib/freading.c (freading): Likewise.
17824 * lib/freadptr.c (freadptr): Likewise.
17825 * lib/freadseek.c (freadptrinc): Likewise.
17826 * lib/fseeko.c (rpl_fseeko): Likewise.
17827 * lib/fseterr.c (fseterr): Likewise.
17828 * lib/fwritable.c (fwritable): Likewise.
17829 * lib/fwriting.c (fwriting): Likewise.
17830 Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
17832 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
17834 * lib/config.charset: Treat Haiku like BeOS.
17836 2008-11-10 Ingo Weinhold <ingo_weinhold@gmx.de>
17838 * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
17839 * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
17841 2008-11-08 Bruno Haible <bruno@clisp.org>
17843 * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
17846 2008-11-08 Bruno Haible <bruno@clisp.org>
17848 * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
17850 2008-11-08 Bruno Haible <bruno@clisp.org>
17852 * tests/test-select-fd.c: New file.
17853 * tests/test-select-in.sh: New file.
17854 * tests/test-select-out.sh: New file.
17855 * tests/test-select-stdin.c: New file.
17856 * modules/select-tests (Files): Add the new files.
17857 (Depends-on): Add gettimeofday.
17858 (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
17859 Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
17860 check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
17862 2008-11-06 Alexander V. Lukyanov <lav@netis.ru>
17863 Bruno Haible <bruno@clisp.org>
17865 * lib/sys_stat.in.h: Enclose function definitions in extern "C".
17867 2008-10-12 Giuseppe Scrivano <gscrivano@gnu.org>
17869 * build-aux/pmccabe2html: Added support for C++ source files.
17871 2008-11-05 Ben Pfaff <blp@gnu.org>
17873 Fix lib/close.c build on Windows.
17874 * modules/close (Files): Add lib/w32sock.h.
17876 2008-11-05 Joel E. Denny <jdenny@ces.clemson.edu>
17878 Accept Bison's NEWS format.
17879 * build-aux/announce-gen (print_news_deltas): Tweak
17882 2008-11-04 Bruno Haible <bruno@clisp.org>
17884 * modules/random_r (Maintainer): Add glibc.
17886 2008-11-04 Simon Josefsson <simon@josefsson.org>
17888 * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
17889 by karl@freefriends.org (Karl Berry).
17890 * doc/alloca.texi: Likewise.
17891 * doc/c-ctype.texi: Likewise.
17892 * doc/c-strcase.texi: Likewise.
17893 * doc/c-strcaseeq.texi: Likewise.
17894 * doc/c-strcasestr.texi: Likewise.
17895 * doc/c-strstr.texi: Likewise.
17896 * doc/c-strtod.texi: Likewise.
17897 * doc/c-strtold.texi: Likewise.
17898 * doc/ctime.texi: Likewise.
17899 * doc/error.texi: Likewise.
17900 * doc/fdl.texi: Likewise.
17901 * doc/gcd.texi: Likewise.
17902 * doc/getdate.texi: Likewise.
17903 * doc/gnulib-intro.texi: Likewise.
17904 * doc/gnulib-tool.texi: Likewise.
17905 * doc/gnulib.texi: Likewise.
17906 * doc/inet_ntoa.texi: Likewise.
17907 * doc/maintain.texi: Likewise.
17908 * doc/make-stds.texi: Likewise.
17909 * doc/quote.texi: Likewise.
17910 * doc/regexprops-generic.texi: Likewise.
17911 * doc/standards.texi: Likewise.
17912 * doc/verify.texi: Likewise.
17913 * doc/visibility.texi: Likewise.
17914 * doc/gnulib.texi (GNU Free Documentation License): Include
17915 fdl-1.3.texi instead of fdl.texi.
17917 2008-11-04 Simon Josefsson <simon@josefsson.org>
17919 * doc/fdl-1.3.texi: New file, from
17920 <http://www.gnu.org/licenses/fdl-1.3.texi>.
17921 * modules/fdl-1.3: Add.
17922 * MODULES.html.sh: Add fdl-1.3.
17924 2008-11-03 Bruno Haible <bruno@clisp.org>
17926 Make determination of absolute name of header file work with AIX xlc.
17927 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
17928 AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
17930 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17931 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
17933 2008-11-03 Simon Josefsson <simon@josefsson.org>
17935 * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
17936 -fprofile-arcs -ftest-coverage. Suggested by Ludovic Courtès
17939 2008-11-02 Bruno Haible <bruno@clisp.org>
17941 Mark 'strpbrk' obsolete.
17942 * modules/strpbrk (Status, Notice): New sections.
17943 * modules/strtok_r (Depends-on): Add strpbrk.
17945 2008-11-02 Bruno Haible <bruno@clisp.org>
17947 Mark 'strdup' obsolete.
17948 * modules/strdup (Status, Notice): New sections.
17949 * modules/findprog (Depends-on): Add strdup.
17950 * modules/getaddrinfo (Depends-on): Likewise.
17951 * modules/localename (Depends-on): Likewise.
17952 * modules/relocatable-lib (Depends-on): Likewise.
17953 * modules/relocatable-lib-lgpl (Depends-on): Likewise.
17954 * modules/relocatable-prog (Depends-on): Likewise.
17955 * modules/trim (Depends-on): Likewise.
17956 * modules/unictype/gen-ctype (Depends-on): Likewise.
17957 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
17959 2008-11-02 Bruno Haible <bruno@clisp.org>
17961 Mark 'strcspn' obsolete.
17962 * modules/strcspn (Status, Notice): New sections.
17964 2008-11-02 Bruno Haible <bruno@clisp.org>
17966 Mark 'rmdir' obsolete.
17967 * modules/rmdir (Status, Notice): New sections.
17968 * modules/clean-temp (Depends-on): Add rmdir.
17969 * modules/openat (Depends-on): Likewise.
17971 2008-11-02 Bruno Haible <bruno@clisp.org>
17973 Mark 'raise' obsolete.
17974 * modules/raise (Status, Notice): New sections.
17975 (Include): Specify <signal.h>.
17976 * modules/stdio (Depends-on): Add raise.
17977 * modules/write (Depends-on): Likewise.
17979 2008-11-02 Bruno Haible <bruno@clisp.org>
17981 Mark 'memset' obsolete.
17982 * modules/memset (Status, Notice): New sections.
17984 2008-11-02 Bruno Haible <bruno@clisp.org>
17986 Mark 'memmove' obsolete.
17987 * modules/memmove (Status, Notice): New sections.
17988 * modules/argp (Depends-on): Add memmove.
17989 * modules/argz (Depends-on): Likewise.
17990 * modules/canonicalize (Depends-on): Likewise.
17991 * modules/canonicalize-lgpl (Depends-on): Likewise.
17992 * modules/fts (Depends-on): Likewise.
17993 * modules/getcwd (Depends-on): Likewise.
17994 * modules/human (Depends-on): Likewise.
17995 * modules/regex (Depends-on): Likewise.
17996 * modules/striconveh (Depends-on): Likewise.
17997 * modules/trim (Depends-on): Likewise.
17998 * modules/unistr/u8-move (Depends-on): Likewise.
17999 * modules/unistr/u16-move (Depends-on): Likewise.
18000 * modules/unistr/u32-move (Depends-on): Likewise.
18002 2008-11-02 Bruno Haible <bruno@clisp.org>
18004 Mark 'memcpy' obsolete.
18005 * modules/memcpy (Status, Notice): New sections.
18007 2008-11-02 Bruno Haible <bruno@clisp.org>
18009 Mark 'memcmp' obsolete.
18010 * modules/memcmp (Status, Notice): New sections.
18011 * modules/argmatch (Depends-on): Add memchr.
18012 * modules/backupfile (Depends-on): Likewise.
18013 * modules/c-strcasestr (Depends-on): Likewise.
18014 * modules/crypto/des (Depends-on): Likewise.
18015 * modules/csharpcomp (Depends-on): Likewise.
18016 * modules/fnmatch (Depends-on): Likewise.
18017 * modules/git-merge-changelog (Depends-on): Likewise.
18018 * modules/isnand (Depends-on): Likewise.
18019 * modules/isnand-nolibm (Depends-on): Likewise.
18020 * modules/isnanf (Depends-on): Likewise.
18021 * modules/isnanf-nolibm (Depends-on): Likewise.
18022 * modules/isnanl (Depends-on): Likewise.
18023 * modules/isnanl-nolibm (Depends-on): Likewise.
18024 * modules/mbchar (Depends-on): Likewise.
18025 * modules/memcoll (Depends-on): Likewise.
18026 * modules/quotearg (Depends-on): Likewise.
18027 * modules/regex (Depends-on): Likewise.
18028 * modules/relocatable-prog (Depends-on): Likewise.
18029 * modules/same (Depends-on): Likewise.
18030 * modules/signbit (Depends-on): Likewise.
18031 * modules/strcasestr-simple (Depends-on): Likewise.
18032 * modules/unictype/gen-ctype (Depends-on): Likewise.
18033 * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
18034 * modules/uniname/uniname (Depends-on): Likewise.
18035 * modules/unistr/u8-cmp (Depends-on): Likewise.
18037 2008-11-02 Bruno Haible <bruno@clisp.org>
18039 Mark 'memchr' obsolete.
18040 * modules/memchr (Status, Notice): New sections.
18041 * modules/argp (Depends-on): Add memchr.
18042 * modules/base64 (Depends-on): Likewise.
18043 * modules/c-strcasestr (Depends-on): Likewise.
18044 * modules/chdir-long (Depends-on): Likewise.
18045 * modules/fnmatch (Depends-on): Likewise.
18046 * modules/getsubopt (Depends-on): Likewise.
18047 * modules/git-merge-changelog (Depends-on): Likewise.
18048 * modules/glob (Depends-on): Likewise.
18049 * modules/strcasestr-simple (Depends-on): Likewise.
18050 * modules/strnlen (Depends-on): Likewise.
18052 2008-11-02 Bruno Haible <bruno@clisp.org>
18054 Mark 'atexit' obsolete.
18055 * modules/atexit (Status, Notice): New sections.
18056 * modules/chdir-long (Depends-on): Add atexit.
18057 * modules/wait-process (Depends-on): Likewise.
18059 2008-11-02 Bruno Haible <bruno@clisp.org>
18061 * gnulib-tool: New option --with-obsolete.
18062 (func_usage): Document it.
18063 (func_modules_transitive_closure): Drop obsolete dependencies if
18064 incobsolete is not true.
18065 (func_import): Read and save the incobsolete variable to the cache.
18067 2008-11-02 Bruno Haible <bruno@clisp.org>
18069 * modules/TEMPLATE-EXTENDED: New field 'Status'.
18070 * gnulib-tool: New option --extract-status.
18071 (func_usage): Document it.
18072 (sed_extract_prog): Recognize it.
18073 (func_get_status): New function.
18075 2008-10-30 Simon Josefsson <simon@josefsson.org>
18077 * modules/sockets (License): Change from LGPL to LGPLv2+.
18079 2008-10-28 Simon Josefsson <simon@josefsson.org>
18081 * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
18083 2008-10-28 Simon Josefsson <simon@josefsson.org>
18085 * MODULES.html.sh (Support for systems lacking POSIX:2001):
18086 Mention times and sys_times.
18087 * modules/sys_times, modules/sys_times-tests: New modules.
18088 * modules/times, modules/times-tests: Likewise
18089 * m4/sys_times_h.m4: New file.
18090 * lib/sys_times.in.h: Likewise
18091 * lib/times.c: Likewise.
18092 * tests/test-sys_times.c: Likewise.
18093 * tests/test-times.c: Likewise.
18094 * doc/posix-headers/sys_times.texi: Update.
18095 * doc/posix-functions/times.texi: Update.
18097 2008-10-28 Jim Meyering <meyering@redhat.com>
18099 * modules/tempname (Depends-on): Add lstat.
18101 * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
18103 2008-10-28 Simon Josefsson <simon@josefsson.org>
18105 * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
18106 * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
18107 using idiom used elsewhere in gnulib.
18109 2008-10-27 Jim Meyering <meyering@redhat.com>
18111 * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
18113 2008-10-27 Simon Josefsson <simon@josefsson.org>
18115 * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
18116 TESTS_ENVIRONMENT, for shell scripts that needs to call built
18118 * tests/test-argp-2.sh: Use $EXEEXT when needed.
18120 2008-10-27 Simon Josefsson <simon@josefsson.org>
18122 * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
18124 2008-10-27 Bruno Haible <bruno@clisp.org>
18126 * tests/test-lstat.c: Include <stdio.h>.
18128 2008-10-27 Simon Josefsson <simon@josefsson.org>
18130 * modules/lstat-tests: New module.
18131 * tests/test-lstat.c: New file.
18133 2008-10-26 Jim Meyering <meyering@redhat.com>
18135 * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
18137 2008-10-26 Simon Josefsson <simon@josefsson.org>
18138 Bruno Haible <bruno@clisp.org>
18140 Fix a clash between the type DATADIR on Windows and the macro DATADIR.
18141 * modules/configmake (Include): Add a note that the include must come
18142 after all system headers.
18143 * lib/javaversion.c: Include configmake.h after all other includes.
18145 2008-10-26 Bruno Haible <bruno@clisp.org>
18147 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
18148 HAVE_STRUCT_RANDOM_DATA to 1.
18149 (gl_STDLIB_H): Simplify.
18151 2008-10-26 Simon Josefsson <simon@josefsson.org>
18153 * m4/stdlib_h.m4: Check for struct random_data. Initialize and
18154 substitute HAVE_STRUCT_RANDOM_DATA.
18155 * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
18157 * modules/stdlib (Makefile.am): Substitute
18158 HAVE_STRUCT_RANDOM_DATA.
18160 2008-10-26 Simon Josefsson <simon@josefsson.org>
18162 * doc/gnulib.texi (@copying): Use GFDLv1.2+.
18163 * doc/gnulib-intro.texi (Copyright): Likewise.
18165 2008-10-26 Simon Josefsson <simon@josefsson.org>
18167 * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
18170 2008-10-25 Ben Pfaff <blp@cs.stanford.edu>
18171 Bruno Haible <bruno@clisp.org>
18173 * lib/unistd.in.h: Include <winsock2.h>.
18174 (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
18175 listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
18176 Provide dummy declarations.
18177 (gethostname): Override.
18178 * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
18179 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
18180 gl_PREREQ_SYS_H_WINSOCK2.
18181 * modules/gethostname (Files): Add m4/sys_socket_h.m4.
18182 * doc/posix-functions/gethostname.texi: More details.
18184 2008-10-25 Bruno Haible <bruno@clisp.org>
18186 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
18187 gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
18188 * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
18190 * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
18192 * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
18193 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
18194 gl_UNISTD_H_DEFAULTS.
18196 2008-10-25 Eric Blake <ebb9@byu.net>
18198 signbit: avoid spurious compiler failure
18199 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
18200 declarations inside function.
18202 2008-10-24 Simon Josefsson <simon@josefsson.org>
18203 Bruno Haible <bruno@clisp.org>
18205 * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
18206 * modules/random_r (Depends-on): Add stdint.
18208 2008-10-24 Bruno Haible <bruno@clisp.org>
18210 * modules/intprops (License): Change to LGPLv2+, with approval by Paul
18212 * modules/strerror (License): Likewise.
18214 2008-10-24 Jim Meyering <meyering@redhat.com>
18216 sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
18217 * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
18219 2008-10-24 Eric Blake <ebb9@byu.net>
18221 getgroups: fix compilation when getgroups is available
18222 * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
18223 but with <config.h> override of getgroups disabled.
18225 2008-10-24 Simon Josefsson <simon@josefsson.org>
18227 * doc/gnulib.texi (Header files): Add note about C++ problems.
18228 Explained by Bruno Haible <bruno@clisp.org>.
18230 2008-10-23 Bruno Haible <bruno@clisp.org>
18232 Define a dummy SA_NODEFER macro on Interix.
18233 * lib/signal.in.h (SA_NODEFER): Define fallback.
18234 Reported by Aleksey Cheusov <cheusov@tut.by> via
18235 Thomas Klausner <wiz@netbsd.org> and Eric Blake.
18237 2008-10-23 Bruno Haible <bruno@clisp.org>
18239 * modules/freadahead (License): Change to LGPLv2+.
18240 Suggested by Simon Josefsson.
18242 2008-10-23 Jim Meyering <meyering@redhat.com>
18244 random_r: new module
18245 * modules/random_r: New file.
18246 * m4/random_r.m4: New file.
18247 * lib/random_r.c: New file, from glibc.
18248 * modules/random_r-tests: New file.
18249 * tests/test-random_r.c: New file.
18250 * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
18252 (RAND_MAX): Define.
18253 * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
18254 * modules/stdlib: Substitute them, too.
18255 * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
18256 * doc/glibc-functions/initstate_r.texi: Mention the new module.
18257 * doc/glibc-functions/random_r.texi: Likewise.
18258 * doc/glibc-functions/setstate_r.texi: Likewise.
18259 * doc/glibc-functions/srandom_r.texi: Likewise.
18260 * config/srclist.txt: Mention it.
18262 2008-10-23 David Lutterkort <lutter@redhat.com>
18264 * modules/selinux-h: Search for LIB_SELINUX and mark it as a
18267 2008-10-23 Jim Meyering <meyering@redhat.com>
18269 selinux-h: mark parameters of stub functions as intentionally unused
18270 * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
18271 * lib/se-context.in.h: Likewise.
18273 2008-10-22 Simon Josefsson <simon@josefsson.org>
18275 * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
18277 2008-10-22 Simon Josefsson <simon@josefsson.org>
18279 * m4/getgroups.m4: Avoid invoking test with wrong parameters.
18281 2008-10-22 Eric Blake <ebb9@byu.net>
18283 glthread/thread: avoid compiler warning
18284 * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
18285 Add unreachable abort to silence compiler.
18287 2008-10-22 Eric Blake <ebb9@byu.net>
18289 netdb: also supply struct addrinfo for cygwin 1.5.x
18290 * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
18292 * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
18294 * doc/posix-headers/netdb.texi (netdb.h): Document this.
18296 2008-10-22 Bruno Haible <bruno@clisp.org>
18298 * users.txt: Update entry about pspp.
18300 2008-10-21 Bruno Haible <bruno@clisp.org>
18303 * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
18304 * lib/close.c (_gl_close_fd_maybe_socket): Make static.
18307 * lib/ioctl.c (ioctl): Don't undefine.
18308 * lib/socket.c (socket): Don't undefine.
18310 Remove unused module indicator macros.
18311 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
18312 GNULIB_$1 as a C macro.
18314 * doc/posix-functions/close.texi: Undo last change.
18315 * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
18318 2008-10-21 Bruno Haible <bruno@clisp.org>
18320 Add gethostname() declaration to <unistd.h>.
18321 * lib/unistd.in.h (gethostname): New declaration.
18322 * lib/gethostname.c: Include <unistd.h>.
18323 * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
18324 gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
18325 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
18326 and HAVE_GETHOSTNAME.
18327 * modules/gethostname (Depends-on): Add unistd.
18328 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18329 (Include): Specify <unistd.h>.
18330 * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
18332 * tests/test-gethostname.c: Include <unistd.h> first.
18334 2008-10-21 Bruno Haible <bruno@clisp.org>
18336 * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
18337 * modules/select-tests (Depends-on): Likewise.
18338 Reported by Simon Josefsson.
18340 2008-10-21 Simon Josefsson <simon@josefsson.org>
18342 * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
18343 * lib/accept.c: New file, based on winsock.c.
18344 * lib/bind.c: New file, based on winsock.c.
18345 * lib/connect.c: New file, based on winsock.c.
18346 * lib/getpeername.c: New file, based on winsock.c.
18347 * lib/getsockname.c: New file, based on winsock.c.
18348 * lib/getsockopt.c: New file, based on winsock.c.
18349 * lib/ioctl.c: New file, based on winsock.c.
18350 * lib/listen.c: New file, based on winsock.c.
18351 * lib/recv.c: New file, based on winsock.c.
18352 * lib/recvfrom.c: New file, based on winsock.c.
18353 * lib/send.c: New file, based on winsock.c.
18354 * lib/sendto.c: New file, based on winsock.c.
18355 * lib/setsockopt.c: New file, based on winsock.c.
18356 * lib/shutdown.c: New file, based on winsock.c.
18357 * lib/socket.c: New file, based on winsock.c.
18358 * lib/w32sock.h: New file, based on winsock.c.
18359 * lib/winsock.c: Remove file.
18360 * modules/accept: Likewise.
18361 * modules/bind: Likewise.
18362 * modules/connect: Likewise.
18363 * modules/getpeername: Likewise.
18364 * modules/getsockname: Likewise.
18365 * modules/getsockopt: Likewise.
18366 * modules/ioctl: Likewise.
18367 * modules/listen: Likewise.
18368 * modules/recv: Likewise.
18369 * modules/recvfrom: Likewise.
18370 * modules/send: Likewise.
18371 * modules/sendto: Likewise.
18372 * modules/setsockopt: Likewise.
18373 * modules/shutdown: Likewise.
18374 * modules/socket: Use socket.c instead of winsock.c.
18375 * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
18376 * doc/posix-functions/accept.texi: Doc fix.
18377 * doc/posix-functions/bind.texi: Doc fix.
18378 * doc/posix-functions/close.texi: Doc fix.
18379 * doc/posix-functions/connect.texi: Doc fix.
18380 * doc/posix-functions/getpeername.texi: Doc fix.
18381 * doc/posix-functions/getsockname.texi: Doc fix.
18382 * doc/posix-functions/getsockopt.texi: Doc fix.
18383 * doc/posix-functions/ioctl.texi: Doc fix.
18384 * doc/posix-functions/listen.texi: Doc fix.
18385 * doc/posix-functions/recv.texi: Doc fix.
18386 * doc/posix-functions/recvfrom.texi: Doc fix.
18387 * doc/posix-functions/send.texi: Doc fix.
18388 * doc/posix-functions/sendto.texi: Doc fix.
18389 * doc/posix-functions/setsockopt.texi: Doc fix.
18390 * doc/posix-functions/shutdown.texi: Doc fix.
18391 * doc/posix-functions/socket.texi: Doc fix.
18393 2008-10-20 Bruno Haible <bruno@clisp.org>
18395 Take into account the role of SIGABRT_COMPAT on Windows 2008.
18396 * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
18397 (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
18398 as an alias for SIGABRT.
18399 * lib/sigaction.c (SIGABRT_COMPAT): New macro.
18400 (sigaction): Map it to SIGABRT.
18401 Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
18403 2008-10-20 Bruno Haible <bruno@clisp.org>
18405 * lib/fts.c: Don't include lstat.h.
18406 * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
18408 Move the lstat() declaration to <sys/stat.h>.
18409 * lib/lstat.h: Remove file.
18410 * lib/sys_stat.in.h: Add special invocation convention.
18411 (lstat): New declaration.
18412 * lib/lstat.c (orig_lstat): New function.
18413 (rpl_lstat): Use orig_lstat instead of lstat.
18414 * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
18415 AC_C_INLINE. Set REPLACE_LSTAT.
18416 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
18418 * modules/lstat (Files): Remove lib/lstat.h.
18419 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18420 (Include): Specify <sys/stat.h> instead of lstat.h.
18421 * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
18423 * NEWS: Mention the change.
18425 2008-10-20 Bruno Haible <bruno@clisp.org>
18427 * modules/posix_spawn-tests: New file.
18428 * tests/test-posix_spawn3.c: New file.
18430 2008-10-20 Bruno Haible <bruno@clisp.org>
18432 * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
18433 * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18434 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
18435 * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
18436 WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
18438 2008-10-20 Bruno Haible <bruno@clisp.org>
18440 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
18441 of posix_spawn on AIX 5.3.
18443 2008-10-20 Bruno Haible <bruno@clisp.org>
18445 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
18447 2008-10-20 Bruno Haible <bruno@clisp.org>
18449 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
18450 of AC_LANG_PROGRAM.
18452 2008-10-20 Simon Josefsson <simon@josefsson.org>
18454 * lib/netdb.in.h: Don't define GNU specific constants until they
18455 are supported or needed. Reported by Bruno Haible
18458 2008-10-20 Simon Josefsson <simon@josefsson.org>
18460 * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
18462 2008-10-20 Simon Josefsson <simon@josefsson.org>
18464 * lib/getaddrinfo.h: Remove file.
18465 * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
18466 * m4/getaddrinfo.m4: Call gl_HEADER_NETDB. Don't check for netdb.h.
18467 * lib/netdb.in.h: Add declarations from getaddrinfo.h.
18468 * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
18469 * modules/netdb: Substitute GNULIB_GETADDRINFO.
18470 * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
18471 * tests/test-getaddrinfo.c: Likewise.
18472 * lib/gai_strerror.c: Likewise. Also drop HAVE_NETDB_H check.
18473 * NEWS: Mention change.
18475 2008-10-19 Bruno Haible <bruno@clisp.org>
18477 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
18479 2008-10-19 Bruno Haible <bruno@clisp.org>
18481 * lib/wait-process.c: Include simply <sys/wait.h>.
18482 (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
18483 WIFSTOPPED): Remove fallback definitions.
18484 * modules/wait-process (Depends-on): Add sys_wait.
18486 New module 'sys_wait'.
18487 * modules/sys_wait: New file.
18488 * lib/sys_wait.in.h: New file, partially copied from
18489 lib/wait-process.c.
18490 * m4/sys_wait_h.m4: New file.
18491 * doc/posix-headers/sys_wait.texi: Mention the new module.
18493 2008-10-19 Bruno Haible <bruno@clisp.org>
18495 * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
18497 2008-10-19 Bruno Haible <bruno@clisp.org>
18499 Assume that waitpid() fills an 'int' status, not a 'union wait'.
18500 * lib/wait-process.c (WAIT_T): Remove type.
18501 (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
18502 (wait_subprocess): Update.
18504 2008-10-19 Bruno Haible <bruno@clisp.org>
18506 New module 'atoll'.
18507 * modules/atoll: New file.
18508 * lib/stdlib.in.h (atoll): New declaration.
18509 * lib/atoll.c: New file, from glibc with modifications.
18510 * m4/atoll.m4: New file.
18511 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
18513 * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
18514 * doc/posix-functions/atoll.texi: Mention the new module.
18516 2008-10-19 Bruno Haible <bruno@clisp.org>
18518 Add strtoull() declaration to <stdlib.h>.
18519 * lib/stdlib.in.h (strtoull): New declaration.
18520 * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18522 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
18524 * modules/strtoull (Depends-on): Add stdlib.
18525 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18526 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
18529 2008-10-19 Bruno Haible <bruno@clisp.org>
18531 Add strtoll() declaration to <stdlib.h>.
18532 * lib/stdlib.in.h (strtoll): New declaration.
18533 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
18535 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
18537 * modules/strtoll (Depends-on): Add stdlib.
18538 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18539 * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
18541 2008-10-19 Bruno Haible <bruno@clisp.org>
18543 * modules/bcopy (Depends-on): Add strings.
18544 (Include): Specify <strings.h>.
18546 2008-10-19 Bruno Haible <bruno@clisp.org>
18548 * doc/posix-functions/atexit.texi: Update doc regarding mingw.
18550 2008-10-19 Bruno Haible <bruno@clisp.org>
18552 * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
18553 the parameter from 'errno' to 'errnum'. Fixes a compilation error on
18556 2008-10-19 Bruno Haible <bruno@clisp.org>
18558 * lib/atanl.c: Don't include isnanl.h.
18559 * lib/cosl.c: Likewise.
18560 * lib/ldexpl.c: Likewise.
18561 * lib/logl.c: Likewise.
18562 * lib/sinl.c: Likewise.
18563 * lib/sqrtl.c: Likewise.
18564 * lib/tanl.c: Likewise.
18566 Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
18567 * lib/isnanf.h: Remove file.
18568 * lib/isnand.h: Remove file.
18569 * lib/isnanl.h: Remove file.
18570 * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
18571 lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
18573 * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
18574 HAVE_ISNANF, don't define it as a C macro.
18575 * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
18576 HAVE_ISNAND, don't define it as a C macro.
18577 * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
18578 HAVE_ISNANL, don't define it as a C macro.
18579 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
18581 * modules/isnanf (Files): Remove lib/isnanf.h.
18582 (Depends-on): Add math.
18583 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18584 (Include): Specify <math.h> instead of isnanf.h.
18585 * modules/isnand (Files): Remove lib/isnand.h.
18586 (Depends-on): Add math.
18587 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18588 (Include): Specify <math.h> instead of isnand.h.
18589 * modules/isnanl (Files): Remove lib/isnanl.h.
18590 (Depends-on): Add math.
18591 (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
18592 (Include): Specify <math.h> instead of isnanl.h.
18593 * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
18595 * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
18596 * tests/test-isnand.c: Include <math.h> instead of isnand.h.
18597 * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
18598 * NEWS: Mention the change.
18600 2008-10-18 Bruno Haible <bruno@clisp.org>
18602 Add getusershell(), setusershell(), endusershell() declarations to
18604 * lib/unistd.in.h (getusershell, setusershell, endusershell): New
18606 * lib/getusershell.c: Include unistd.h.
18607 * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
18608 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18610 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
18611 and HAVE_GETUSERSHELL.
18612 * modules/getusershell (Depends-on): Add unistd, extensions.
18613 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18614 (Include): Specify <unistd.h>.
18615 * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
18618 2008-10-18 Bruno Haible <bruno@clisp.org>
18620 Add a getloadavg() declaration to <stdlib.h>.
18621 * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
18622 getloadavg declaration.
18623 (getloadavg): New declaration.
18624 * lib/getloadavg.c: Include <stdlib.h> first.
18625 * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
18626 AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
18627 HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
18628 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
18629 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18630 * modules/getloadavg (Depends-on): Add stdlib, extensions.
18631 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18632 (Include): Specify <stdlib.h>.
18633 * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
18634 HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
18636 2008-10-18 Bruno Haible <bruno@clisp.org>
18638 * lib/dirchownmod.c: Don't include lchmod.h.
18640 Move the lchmod() declaration to <sys/stat.h>.
18641 * lib/lchmod.h: Remove file.
18642 * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
18643 (lchmod): New declaration, moved here from lib/lchown.h.
18644 * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
18645 AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
18646 * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
18648 * modules/lchmod (Files): Remove lib/lchmod.h.
18649 (Depends-on): Add sys_stat, extensions.
18650 (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
18651 (Include): Specify <sys/stat.h> instead of lchmod.h.
18652 * modules/sys_stat (Depends-on): Add link-warning.
18653 (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
18654 definition of GL_LINK_WARNING.
18655 * NEWS: Mention the change.
18657 2008-10-18 Bruno Haible <bruno@clisp.org>
18659 * lib/fchdir.c: Don't include dirfd.h.
18660 * lib/fts.c: Likewise.
18661 * lib/getcwd.c: Likewise.
18662 * lib/glob.c: Likewise.
18664 Move the dirfd() declaration to <dirent.h>.
18665 * lib/dirfd.h: Remove file.
18666 * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
18667 (dirfd): New declaration.
18668 * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
18669 * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
18670 AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
18672 * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
18674 * modules/dirfd (Files): Remove lib/dirfd.h.
18675 (Depends-on): Add dirent, extensions.
18676 (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
18677 (Include): Specify <dirent.h> instead of dirfd.h.
18678 * modules/dirent (Depends-on): Add link-warning.
18679 (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
18680 definition of GL_LINK_WARNING.
18681 * NEWS: Mention the change.
18683 2008-10-18 Bruno Haible <bruno@clisp.org>
18685 Move the euidaccess() declaration to <unistd.h>.
18686 * lib/euidaccess.h: Remove file.
18687 * lib/unistd.in.h (euidaccess): New declaration.
18688 * lib/euidaccess.c: Don't include euidaccess.h.
18689 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
18690 Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
18691 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
18692 and HAVE_EUIDACCESS.
18693 * modules/euidaccess (Files): Remove lib/euidaccess.h.
18694 (Depends-on): Add unistd.
18695 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18696 (Include): Specify <unistd.h> instead of euidaccess.h.
18697 * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
18699 * NEWS: Mention the change.
18701 2008-10-18 Bruno Haible <bruno@clisp.org>
18703 * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
18705 Move the getdomainname() declaration to <unistd.h>.
18706 * lib/getdomainname.h: Remove file.
18707 * lib/unistd.in.h (getdomainname): New declaration.
18708 * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
18709 * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
18710 gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
18711 HAVE_GETDOMAINNAME.
18712 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
18713 GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
18714 * modules/getdomainname (Files): Remove lib/getdomainname.h.
18715 (Depends-on): Add unistd, extensions.
18716 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18717 (Includes): Specify <unistd.h> instead of getdomainname.h.
18718 * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
18719 HAVE_GETDOMAINNAME.
18720 * NEWS: Mention the change.
18722 2008-10-18 Bruno Haible <bruno@clisp.org>
18724 * modules/dirent: New file.
18725 * m4/dirent_h.m4: New file.
18726 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
18727 Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
18728 * modules/fchdir (Files): Remove lib/dirent.in.h.
18729 (Depends-on): Add dirent.
18730 (Makefile.am): Move rules to modules/dirent.
18731 * doc/posix-headers/dirent.texi: Mention the new module.
18733 2008-10-18 Bruno Haible <bruno@clisp.org>
18735 Avoid -Wunused-parameter warnings in public gnulib header files.
18736 * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
18738 * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
18740 2008-10-18 Bruno Haible <bruno@clisp.org>
18742 * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
18743 * doc/glibc-functions/error.texi: Mention the module 'error'.
18744 * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
18745 * doc/glibc-functions/getdomainname.texi: Mention the module
18747 * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
18748 * doc/glibc-functions/getpagesize.texi: Mention the module
18750 * doc/glibc-functions/getusershell.texi: Mention the module
18752 * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
18753 * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
18754 * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
18755 * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
18756 * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
18757 * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
18758 * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
18759 * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
18760 * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
18761 * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
18762 * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
18763 * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
18764 * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
18765 * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
18767 2008-10-17 Bruno Haible <bruno@clisp.org>
18769 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
18770 HP-UX and IRIX, use -0.0L.
18771 * tests/test-ceill.c (minus_zero): Likewise.
18772 * tests/test-floorl.c (minus_zero): Likewise.
18773 * tests/test-frexpl.c (minus_zero): Likewise.
18774 * tests/test-isnan.c (minus_zerol): Likewise.
18775 * tests/test-isnanl.h (minus_zero): Likewise.
18776 * tests/test-ldexpl.c (minus_zero): Likewise.
18777 * tests/test-roundl.c (minus_zero): Likewise.
18778 * tests/test-signbit.c (minus_zerol): Likewise.
18779 * tests/test-snprintf-posix.h (minus_zerol): Likewise.
18780 * tests/test-sprintf-posix.h (minus_zerol): Likewise.
18781 * tests/test-truncl.c (minus_zero): Likewise.
18782 * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
18783 * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
18784 Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
18785 and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
18787 2008-10-17 Bruno Haible <bruno@clisp.org>
18789 Avoid gcc warnings because of #pragma GCC system_header on older gcc.
18790 * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
18791 that it gets activated only for gcc >= 3.0.
18792 * lib/dirent.in.h: Likewise.
18793 * lib/errno.in.h: Likewise.
18794 * lib/fcntl.in.h: Likewise.
18795 * lib/float.in.h: Likewise.
18796 * lib/iconv.in.h: Likewise.
18797 * lib/inttypes.in.h: Likewise.
18798 * lib/locale.in.h: Likewise.
18799 * lib/math.in.h: Likewise.
18800 * lib/netdb.in.h: Likewise.
18801 * lib/netinet_in.in.h: Likewise.
18802 * lib/search.in.h: Likewise.
18803 * lib/signal.in.h: Likewise.
18804 * lib/spawn.in.h: Likewise.
18805 * lib/stdarg.in.h: Likewise.
18806 * lib/stdint.in.h: Likewise.
18807 * lib/stdio.in.h: Likewise.
18808 * lib/stdlib.in.h: Likewise.
18809 * lib/string.in.h: Likewise.
18810 * lib/strings.in.h: Likewise.
18811 * lib/sys_file.in.h: Likewise.
18812 * lib/sys_ioctl.in.h: Likewise.
18813 * lib/sys_select.in.h: Likewise.
18814 * lib/sys_socket.in.h: Likewise.
18815 * lib/sys_stat.in.h: Likewise.
18816 * lib/sys_time.in.h: Likewise.
18817 * lib/sysexits.in.h: Likewise.
18818 * lib/time.in.h: Likewise.
18819 * lib/unistd.in.h: Likewise.
18820 * lib/wchar.in.h: Likewise.
18821 * lib/wctype.in.h: Likewise.
18822 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
18824 2008-10-17 Jim Meyering <meyering@redhat.com>
18826 ignore-value: don't depend on inline module
18827 * modules/ignore-value (Depends-on): Remove 'inline'.
18828 (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
18829 Suggestion from Bruno Haible.
18831 2008-10-17 Bruno Haible <bruno@clisp.org>
18833 New implementation of condition variables for Win32.
18834 * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
18835 (gl_linked_waitqueue_t): New type.
18836 (gl_cond_t): Use it.
18837 * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
18838 (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
18839 gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
18840 (glthread_cond_init_func, glthread_cond_wait_func,
18841 glthread_cond_timedwait_func, glthread_cond_signal_func,
18842 glthread_cond_broadcast_func, glthread_cond_destroy_func):
18843 Reimplemented on the basis of gl_linked_waitqueue_t.
18844 * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
18846 (gl_rwlock_t): Update.
18847 * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
18849 2008-10-17 Simon Josefsson <simon@josefsson.org>
18851 * modules/recvfrom (Depends-on): Add dependency on getpeername.
18852 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18854 2008-10-17 Jim Meyering <meyering@redhat.com>
18856 ignore-value: new module
18857 * modules/ignore-value: New file.
18858 * lib/ignore-value.h: New file.
18859 * MODULES.html.sh (Compiler warning management): New section,
18860 just for this module. More to come.
18862 2008-10-16 Paul Eggert <eggert@cs.ucla.edu>
18864 open-safer.c: avoid 'signed and unsigned in conditional...' warning
18865 * lib/open-safer.c (open_safer): Use an "if/else" statement in place
18866 of the ternary operator. Reported by Reuben Thomas <rrt@sc3d.org>.
18868 2008-10-16 Jim Meyering <meyering@redhat.com>
18870 openat-die.c: avoid 'no previous prototype' warning
18871 * lib/openat-die.c: Include "openat.h".
18872 Reported by Reuben Thomas <rrt@sc3d.org>.
18874 2008-10-16 Simon Josefsson <simon@josefsson.org>
18876 * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
18877 * lib/netdb.in.h: Fix typo.
18878 Reported by Bruno Haible <bruno@clisp.org>
18880 * lib/netdb.in.h: Include sys/socket.h for platforms without
18881 netdb.h, to get structures like hostent on MinGW.
18882 * modules/netdb (Depends-on): Add sys_socket.
18884 2008-10-15 Simon Josefsson <simon@josefsson.org>
18886 * modules/netdb, modules/netdb-tests: New file.
18887 * m4/netdb_h.m4: New file.
18888 * lib/netdb.in.h: Add, currently just an empty file pending
18890 * tests/test-netdb.c: New file.
18891 * doc/posix-headers/netdb.texi: Mention that we replace it if
18893 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
18896 2008-10-15 Simon Josefsson <simon@josefsson.org>
18898 * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
18901 2008-10-13 Bruno Haible <bruno@clisp.org>
18903 * lib/glthread/cond.c (glthread_cond_wait_func,
18904 glthread_cond_timedwait_func): Add a comment.
18906 2008-10-13 Yoann Vandoorselaere <yoann@prelude-ids.org>
18908 * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
18909 * tests/test-select.c: Likewise,
18911 2008-10-13 Bruno Haible <bruno@clisp.org>
18913 * lib/glthread/cond.c (glthread_cond_wait_func,
18914 glthread_cond_timedwait_func): Fix variable name.
18915 Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18917 2008-10-13 Paolo Bonzini <bonzini@gnu.org>
18919 fix getaddrinfo emulation for systems with struct sockaddr.sa_len
18920 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
18921 struct sockaddr.sa_len.
18922 * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
18924 2008-10-13 Simon Josefsson <simon@josefsson.org>
18926 * build-aux/pmccabe2html: Add css and css_url parameters.
18928 2008-10-12 Bruno Haible <bruno@clisp.org>
18930 * tests/test-sameacls.c (main) [AIX]: Clear type argument before
18932 Reported by Rainer Tammer <tammer@tammer.net>.
18934 2008-10-12 Bruno Haible <bruno@clisp.org>
18936 Use msvcrt aware primitives for creation/termination of Win32 threads.
18937 * lib/glthread/thread.c: Include <process.h>.
18938 (glthread_create_func): Use _beginthreadex instead of CreateThread.
18939 (wrapper_func): Update signature.
18940 (gl_thread_exit_func): Use _endthreadex instead of EndThread.
18942 2008-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
18943 Bruno Haible <bruno@clisp.org>
18945 Provide a Win32 implementation of the 'cond' module.
18946 * lib/glthread/cond.h [USE_WIN32]: New implementation.
18947 * lib/glthread/cond.c (glthread_cond_init_func,
18948 glthread_cond_wait_func, glthread_cond_timedwait_func,
18949 glthread_cond_signal_func, glthread_cond_broadcast_func,
18950 glthread_cond_destroy_func) [USE_WIN32]: New functions.
18951 * modules/cond (Dependencies): Add gettimeofday.
18953 2008-10-11 Bruno Haible <bruno@clisp.org>
18955 Make sleep work on older versions of mingw.
18956 * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
18957 only whether it exists.
18958 * doc/posix-functions/sleep.texi: Mention the problem with older
18961 2008-10-11 Bruno Haible <bruno@clisp.org>
18963 New module 'shutdown'.
18964 * modules/shutdown: New file.
18965 * lib/sys_socket.in.h (shutdown): New declaration.
18966 * lib/winsock.c (shutdown): New function.
18967 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
18969 * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
18970 * doc/posix-functions/shutdown.texi: Document the new module.
18972 2008-10-11 Jim Meyering <meyering@redhat.com>
18974 * lib/fclose.c: Fix typo in comment: s/close/fclose/.
18976 2008-10-11 Bruno Haible <bruno@clisp.org>
18978 New module 'fclose'.
18979 * modules/fclose: New file.
18980 * lib/stdio.in.h (fclose): New declaration.
18981 * lib/fclose.c: New file.
18982 * m4/fclose.m4: New file.
18983 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
18985 * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
18986 * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
18988 * modules/close (Depends-on): fclose.
18989 * doc/posix-functions/fclose.texi: Mention the problem on Windows.
18991 2008-10-11 Bruno Haible <bruno@clisp.org>
18993 * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
18994 set errno and don't call _close.
18996 2008-10-10 Bruno Haible <bruno@clisp.org>
18998 * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
18999 ACL, not afterwards. Fixes test failure on Cygwin.
19001 2008-10-09 Ben Pfaff <blp@gnu.org>
19003 * build-aux/announce-gen: Fix gnulib version related part of usage
19004 message. Die with a useful error message if no tarballs are
19007 2008-10-10 Jim Meyering <meyering@redhat.com>
19009 bootstrap: use git's --depth=N option only if it's supported
19010 * build-aux/bootstrap: Work with git-1.4.4.4, which does not
19011 recognize the --depth option. Reported by Pádraig Brady.
19013 2008-10-09 Bruno Haible <bruno@clisp.org>
19015 New module 'ioctl'.
19016 * modules/ioctl: New file.
19017 * lib/sys_socket.in.h (ioctl): Remove declaration.
19018 * lib/winsock.c: Include <sys/ioctl.h>.
19019 (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
19020 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
19021 gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
19022 * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
19023 * doc/posix-functions/ioctl.texi: Mention the new module.
19025 2008-10-09 Bruno Haible <bruno@clisp.org>
19027 New module 'sys_ioctl'.
19028 * lib/sys_ioctl.in.h: New file.
19029 * m4/sys_ioctl_h.m4: New file.
19030 * modules/sys_ioctl: New file.
19031 * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
19033 2008-10-09 Bruno Haible <bruno@clisp.org>
19035 * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
19036 * lib/winsock.c: Include <stdarg.h>.
19037 (rpl_ioctl): Change to second argument 'int' and then varargs.
19039 2008-10-09 Bruno Haible <bruno@clisp.org>
19041 * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
19042 when the sys_socket module is present and the system has <winsock2.h>.
19044 2008-10-09 Bruno Haible <bruno@clisp.org>
19046 * doc/posix-functions/close.texi: Mention module 'close' instead of
19047 module 'sys_socket'.
19049 2008-10-09 Bruno Haible <bruno@clisp.org>
19051 * doc/glibc-headers/sys_ioctl.texi: New file.
19052 * doc/gnulib.texi: Include it.
19054 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19055 Bruno Haible <bruno@clisp.org>
19057 Combine the two replacements of 'close'.
19058 * lib/sys_socket.in.h (close): Define to a reminder to include
19060 (_gl_close_fd_maybe_socket): New declaration.
19061 (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
19062 * lib/winsock.c (close): Remove undefinition.
19063 (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
19064 needed for the gnulib module 'close'.
19065 * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
19066 define to an error symbol or to a warning, if suitable.
19067 * lib/close.c: Include <sys/socket.h>.
19068 (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
19069 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
19070 UNISTD_H_HAVE_WINSOCK2_H.
19071 (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
19072 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19073 UNISTD_H_HAVE_WINSOCK2_H.
19074 * modules/sys_socket (Files): Add m4/unistd_h.m4.
19075 (configure.ac): Set a module indicator.
19076 (Makefile.am): Substitute GNULIB_CLOSE.
19077 * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
19078 * modules/poll-tests (Depends-on): Add close.
19079 * modules/select-tests (Depends-on): Likewise.
19081 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19082 Bruno Haible <bruno@clisp.org>
19084 New module 'close'.
19085 * modules/close: New file.
19086 * lib/unistd.in.h (close): Move declaration out of the
19087 FCHDIR_REPLACEMENT scope.
19088 (_gl_unregister_fd): New declaration.
19089 * lib/close.c: New file.
19090 * lib/fchdir.c (rpl_close): Remove function.
19091 * m4/close.m4: New file.
19092 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19094 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
19096 * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
19098 * modules/fchdir (Depends-on): Add close.
19100 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19101 Bruno Haible <bruno@clisp.org>
19103 * lib/fcntl.in.h (open): Simplify conditionals.
19104 (_gl_register_fd): New declaration.
19105 * lib/fchdir.c (rpl_open): Remove function.
19106 * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
19108 (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
19109 * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
19112 2008-10-09 Jim Meyering <meyering@redhat.com>
19114 GNUmakefile: use the more name-space-friendly "_version"
19115 * top/GNUmakefile (_dummy): Update.
19116 (_version): Rename from "version".
19118 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19119 Bruno Haible <bruno@clisp.org>
19121 * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
19123 (_gl_register_fd): New function, extracted from rpl_open.
19124 (rpl_close, rpl_closedir): Use _gl_unregister_fd.
19125 (rpl_open, rpl_opendir): Use _gl_register_fd.
19127 2008-10-09 Paolo Bonzini <bonzini@gnu.org>
19129 Fix organization of 'open' replacement.
19130 * m4/open.m4 (gl_REPLACE_OPEN): New macro.
19131 (gl_FUNC_OPEN): Use it.
19132 (gl_PREREQ_OPEN): Add a : to make the body non-empty.
19134 2008-10-08 Bruno Haible <bruno@clisp.org>
19136 * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
19138 2008-10-08 Simon Josefsson <simon@josefsson.org>
19140 * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock). The file is
19141 AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
19144 2008-10-08 Eric Blake <ebb9@byu.net>
19146 GNUmakefile: add 'make version' target
19147 * top/GNUmakefile (_curr-ver): Split version update rules...
19148 (version): ...into a target.
19150 2008-10-07 Bruno Haible <bruno@clisp.org>
19152 Use a more portable replacement expression for -0.0L.
19153 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
19154 instead of -0.0L. Fix m4 quotation.
19156 * tests/test-signbit.c: Include <float.h>.
19157 (minus_zero): New variable.
19158 (test_signbitl): Use minus_zero instead of -zero.
19159 * modules/signbit-tests (Depends-on): Add float.
19161 * tests/test-ceill.c: Include <float.h>.
19162 (zero): Remove variable.
19163 (minus_zero): New variable.
19164 (main): Use minus_zero instead of -zero.
19165 * modules/ceill-tests (Depends-on): Add float.
19167 * tests/test-floorl.c: Include <float.h>.
19168 (zero): Remove variable.
19169 (minus_zero): New variable.
19170 (main): Use minus_zero instead of -zero.
19171 * modules/floorl-tests (Depends-on): Add float.
19173 * tests/test-roundl.c: Include <float.h>.
19174 (zero): Remove variable.
19175 (minus_zero): New variable.
19176 (main): Use minus_zero instead of -zero.
19177 * modules/roundl-tests (Depends-on): Add float.
19179 * tests/test-truncl.c: Include <float.h>.
19180 (zero): Remove variable.
19181 (minus_zero): New variable.
19182 (main): Use minus_zero instead of -zero.
19183 * modules/truncl-tests (Depends-on): Add float.
19185 * tests/test-frexpl.c (zero): Remove variable.
19186 (minus_zero): New variable.
19187 (main): Use minus_zero instead of -zero.
19188 * modules/frexpl-tests (Depends-on): Add float.
19190 * tests/test-isnan.c (zerol): Remove variable.
19191 (minus_zerol): New variable.
19192 (test_long_double): Use minus_zerol instead of -zerol.
19193 * modules/isnan-tests (Depends-on): Add float.
19195 * tests/test-isnanl.h (zero): Remove variable.
19196 (minus_zero): New variable.
19197 (main): Use minus_zero instead of -zero.
19198 * modules/isnanl-nolibm-tests (Depends-on): Add float.
19199 * modules/isnanl-tests (Depends-on): Add float.
19201 * tests/test-ldexpl.c (zero): Remove variable.
19202 (minus_zero): New variable.
19203 (main): Use minus_zero instead of -zero.
19204 * modules/ldexpl-tests (Depends-on): Add float.
19206 * tests/test-snprintf-posix.h (zerol): Remove variable.
19207 (minus_zerol): New variable.
19208 (test_function): Use minus_zerol instead of -zerol.
19209 * modules/snprintf-posix-tests (Depends-on): Add float.
19210 * modules/vsnprintf-posix-tests (Depends-on): Add float.
19212 * tests/test-sprintf-posix.h (zerol): Remove variable.
19213 (minus_zerol): New variable.
19214 (test_function): Use minus_zerol instead of -zerol.
19215 * modules/sprintf-posix-tests (Depends-on): Add float.
19216 * modules/vsprintf-posix-tests (Depends-on): Add float.
19218 * tests/test-vasnprintf-posix.c (zerol): Remove variable.
19219 (minus_zerol): New variable.
19220 (test_function): Use minus_zerol instead of -zerol.
19221 * modules/vasnprintf-posix-tests (Depends-on): Add float.
19223 * tests/test-vasprintf-posix.c (zerol): Remove variable.
19224 (minus_zerol): New variable.
19225 (test_function): Use minus_zerol instead of -zerol.
19226 * modules/vasprintf-posix-tests (Depends-on): Add float.
19228 2008-10-07 Simon Josefsson <simon@josefsson.org>
19230 * MODULES.html.sh (Support for building documentation): Mention
19231 pmccabe2html. Sort entries.
19233 Add pmccabe2html module, from gnupdf.
19234 * build-aux/pmccabe.css: New file.
19235 * build-aux/pmccabe2html: New file.
19236 * m4/pmccabe2html.m4: New file.
19237 * modules/pmccabe2html: New file.
19239 2008-10-07 Richard W.M. Jones <rjones@redhat.com>
19242 * MODULES.html.sh: Add to list of modules.
19243 * lib/flock.c: flock implementation for Windows and Unix systems
19245 * doc/glibc-functions/flock.texi: Update documentation.
19246 * lib/sys_file.in.h: <sys/file.h> header file.
19247 * m4/flock.m4: M4 macros.
19248 * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
19249 * modules/flock: flock module.
19250 * modules/flock-tests: flock tests module.
19251 * modules/sys_file: sys/file.h module.
19252 * tests/test-flock.c: test suite for flock.
19254 2008-10-06 Jim Meyering <meyering@redhat.com>
19256 bootstrap: check for LT_INIT more portably still ;-)
19257 * build-aux/bootstrap: Don't rely on \>, since it's not portable.
19258 Spotted by Bruno Haible.
19260 2008-10-06 Eric Blake <ebb9@byu.net>
19262 test-signbit: avoid tripping Irix cc bug on -0.0L
19263 * tests/test-signbit.c (minus_zerol): Delete, and replace with
19264 '-zerol'. This may break on HP-UX/hppa, but at least makes the
19265 entire testsuite consistent and avoids an Irix 6.2 bug.
19267 2008-10-05 Bruno Haible <bruno@clisp.org>
19268 Jim Meyering <jim@meyering.net>
19270 Add an option for ignoring EPIPE during close_stdout.
19271 * lib/closeout.h: Include <stdbool.h>.
19272 (close_stdout_set_ignore_EPIPE): New declaration.
19273 * lib/closeout.c: Include <stdbool.h>.
19274 (ignore_EPIPE): New variable.
19275 (close_stdout_set_ignore_EPIPE): New function.
19276 (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
19277 * lib/close-stream.c (close_stream): Mention the possible EPIPE
19279 * modules/closeout (Depends-on): Add stdbool.
19281 2008-10-05 Bruno Haible <bruno@clisp.org>
19283 * modules/accept: New file.
19284 * modules/bind: New file.
19285 * modules/connect: New file.
19286 * modules/getpeername: New file.
19287 * modules/getsockname: New file.
19288 * modules/getsockopt: New file.
19289 * modules/listen: New file.
19290 * modules/recv: New file.
19291 * modules/recvfrom: New file.
19292 * modules/send: New file.
19293 * modules/sendto: New file.
19294 * modules/setsockopt: New file.
19295 * modules/socket: New file.
19296 * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
19297 (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
19298 listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
19299 the particular module is requested. Add a link warning when the
19300 particular module is not requested.
19301 * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
19302 rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
19303 rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
19304 the particular module is requested.
19305 * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
19306 gl_SYS_SOCKET_H_DEFAULTS): New macros.
19307 (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
19308 * modules/sys_socket (Depends-on): Add link-warning.
19309 (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
19310 GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
19311 GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
19312 GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
19314 * doc/posix-functions/accept.texi: Mention the new module 'accept'.
19315 * doc/posix-functions/bind.texi: Mention the new module 'bind'.
19316 * doc/posix-functions/connect.texi: Mention the new module 'connect'.
19317 * doc/posix-functions/getpeername.texi: Mention the new module
19319 * doc/posix-functions/getsockname.texi: Mention the new module
19321 * doc/posix-functions/getsockopt.texi: Mention the new module
19323 * doc/posix-functions/listen.texi: Mention the new module 'listen'.
19324 * doc/posix-functions/recv.texi: Mention the new module 'recv'.
19325 * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
19326 * doc/posix-functions/send.texi: Mention the new module 'send'.
19327 * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
19328 * doc/posix-functions/setsockopt.texi: Mention the new module
19330 * doc/posix-functions/socket.texi: Mention the new module 'socket'.
19331 * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
19332 listen, connect, accept.
19333 * modules/select-tests (Depends-on): Likewise.
19335 2008-10-05 Bruno Haible <bruno@clisp.org>
19337 * lib/winsock.c (strerror): Remove unused #undef.
19338 (rpl_close): Remove unused local variable.
19340 * modules/sys_socket (Depends-on); Add errno.
19342 2008-10-05 Bruno Haible <bruno@clisp.org>
19344 * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
19345 (select): Add a link warning when the 'select' module is not used.
19346 * modules/sys_select (Depends-on): Add link-warning.
19347 (Makefile.am): Substitute the definition of GL_LINK_WARNING.
19348 Suggested by Paolo Bonzini.
19350 2008-10-05 Jim Meyering <meyering@redhat.com>
19352 bootstrap: check for LT_INIT more portably
19353 * build-aux/bootstrap: Avoid using grep -E, since it's not
19354 portable enough. Suggestion from Bruno Haible.
19356 2008-10-05 Bruno Haible <bruno@clisp.org>
19358 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
19359 as being fixed by gnulib.
19361 2008-10-05 Bruno Haible <bruno@clisp.org>
19363 * modules/select-tests: New file, mostly copied from
19364 modules/sys_select-tests.
19365 * tests/test-select.c: New file, mostly copied from
19366 tests/test-sys_select.c.
19367 * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
19368 * modules/sys_select-tests (Depends-on): Remove all dependencies.
19369 (Makefile.am): Remove test_sys_select_LDADD.
19371 * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
19372 to an undefined symbol, for an error message.
19373 * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
19374 (gl_SYS_SELECT_H_DEFAULTS): New macro.
19375 (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
19376 winsock-select.c here.
19377 * modules/sys_select (Files): Remove lib/winsock-select.c.
19378 (Depends-on): Remove alloca.
19379 (Makefile.am): Substitute GNULIB_SELECT.
19380 * modules/select: New file.
19381 * doc/posix-functions/select.texi: Update.
19383 2008-10-05 Bruno Haible <bruno@clisp.org>
19385 * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
19386 * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
19387 * lib/spawn_faction_addopen.c (__sysconf): Likewise.
19388 * modules/posix_spawn_file_actions_addclose (Depends-on): Add
19390 * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19391 * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19393 2008-10-05 Bruno Haible <bruno@clisp.org>
19395 * modules/getdtablesize-tests: New file.
19396 * tests/test-getdtablesize.c: New file.
19398 New module 'getdtablesize'.
19399 * lib/unistd.in.h (getdtablesize): New declaration.
19400 * lib/getdtablesize.c: New file.
19401 * m4/getdtablesize.m4: New file.
19402 * modules/getdtablesize: New file.
19403 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19404 GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
19405 * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
19406 HAVE_GETDTABLESIZE.
19407 * doc/glibc-functions/getdtablesize.texi: Mention the new module.
19409 2008-10-05 Bruno Haible <bruno@clisp.org>
19411 * modules/sched (Makefile.am): Fix typo.
19412 Reported by Simon Josefsson.
19414 2008-10-05 Jim Meyering <meyering@redhat.com>
19416 bootstrap: check for LT_INIT, too
19417 * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
19418 are deprecated. Suggestion from Ralf Wildenhues.
19420 2008-10-05 Bruno Haible <bruno@clisp.org>
19422 * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
19423 overriding them by ours.
19424 (POSIX_SPAWN_USEVFORK): Use the next free bit position.
19426 2008-10-05 Jim Meyering <meyering@redhat.com>
19428 bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
19429 * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
19430 obsolete AM_PROG_LIBTOOL. Spotted by Debarshi Ray <rishi@gnu.org>.
19432 2008-10-04 Bruno Haible <bruno@clisp.org>
19434 * modules/dup2 (License): Change to LGPLv2+.
19435 * modules/sleep (License): Likewise.
19436 * modules/perror (License): Likewise.
19437 * modules/fopen (License): Change to LGPLv2+, with approval by Eric
19439 * modules/signal (License): Likewise.
19440 * modules/sigprocmask (License): Likewise.
19441 * modules/raise (License): Change to LGPLv2+, with approval by Jim
19444 2008-10-04 Bruno Haible <bruno@clisp.org>
19446 * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
19447 Reported by Rainer Tammer <tammer@tammer.net>.
19449 2008-10-03 Paolo Bonzini <bonzini@gnu.org>
19450 Bruno Haible <bruno@clisp.org>
19452 * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
19453 * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
19454 * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
19456 2008-10-03 Kamil Dudka <kdudka@redhat.com>
19458 filevercmp: new module
19459 * lib/filevercmp.h: New function filevercmp comparing version strings.
19460 * lib/filevercmp.c: Implementation of filevercmp function.
19461 * modules/filevercmp: Module metadata.
19462 * tests/test-filevercmp.c: Unit test for new module.
19463 * modules/filevercmp-tests: Unit test metadata.
19464 * MODULES.html.sh: Add filevercmp module.
19466 2008-10-03 Bruno Haible <bruno@clisp.org>
19468 * lib/c-ctype.h: Add comment.
19469 Reported by Jim Meyering.
19471 2008-10-02 Bruno Haible <bruno@clisp.org>
19473 * modules/posix_spawn-internal (Depends-on): Add 'open'.
19475 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
19477 * build-aux/bootstrap: Allow renaming bootstrap, and change the
19478 name of bootstrap.conf accordingly.
19480 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
19482 * build-aux/bootstrap: Install git-merge-changelog configuration
19483 items into .gitconfig if needed.
19485 2008-10-02 Paolo Bonzini <bonzini@gnu.org>
19487 * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
19488 git repository, and initialize/update it accordingly.
19490 2008-10-02 Richard W.M. Jones <rjones@redhat.com>
19492 * modules/fsync-tests: New file.
19493 * tests/test-fsync.c: New file.
19495 New module 'fsync'.
19496 * lib/fsync.c: New file.
19497 * m4/fsync.m4: New file.
19498 * modules/fsync: New file.
19499 * lib/unistd.in.h (fsync): New declaration.
19500 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
19501 GNULIB_FSYNC and HAVE_FSYNC.
19502 * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
19503 * MODULES.html.sh (posix_functions): Add fsync.
19504 * doc/posix-functions/fsync.texi: Mention the new module.
19506 2008-10-02 Jim Meyering <meyering@redhat.com>
19508 fts.c: sync with similar code from coreutils' remove.c
19509 * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
19510 Guard also with "#if defined __linux__", since for now at least,
19511 this code is Linux-kernel-specific.
19513 2008-10-02 Jim Meyering <meyering@redhat.com>
19516 * lib/fts.c: Remove unnecessary "defined" in cpp directive.
19517 Include <sys/vfs.h>, not <sys/statfs.h>.
19519 * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
19520 Include <sys/vfs.h>, not <sys/statfs.h>.
19522 2008-10-01 Bruno Haible <bruno@clisp.org>
19524 Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
19525 * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
19526 (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
19527 * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
19528 * doc/posix-functions/posix_spawnp.texi: Likewise.
19529 * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
19530 whether posix_spawn actually works.
19531 * m4/pipe.m4 (gl_PIPE): Likewise.
19532 * modules/execute (Files): Add m4/posix_spawn.m4.
19533 * modules/pipe (Files): Add m4/posix_spawn.m4.
19534 Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
19536 2008-10-01 Jim Meyering <meyering@redhat.com>
19538 remove trailing spaces
19540 * lib/poll.c (poll): Likewise.
19541 * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
19542 * lib/winsock.c (rpl_close): Likewise.
19543 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
19544 * modules/yield: Likewise.
19545 * tests/test-poll.c (connect_to_socket, poll1): Likewise.
19546 * tests/test-sys_select.c (connect_to_socket): Likewise.
19548 fts.c: adjust a new interface to be more generally useful
19549 * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
19550 (fts_build): Adjust caller.
19552 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19554 * modules/cond-tests: New file.
19555 * tests/test-cond.c: New file.
19557 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19558 Bruno Haible <bruno@clisp.org>
19560 * modules/cond (Dependencies): Add errno, time.
19561 * lib/glthread/cond.h: Include <time.h>.
19562 (gl_cond_define, gl_cond_define_initialized): Use the same definition
19565 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19566 Bruno Haible <bruno@clisp.org>
19568 * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
19570 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19571 Bruno Haible <bruno@clisp.org>
19573 * modules/tls-tests (Depends-on): Add thread, yield.
19574 (configure.ac): Remove all checks.
19575 (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
19576 * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19577 gl_thread_self): Remove definitions. Include glthread/thread.h and
19578 glthread/yield.h instead.
19579 (test_tls): Pass an additional NULL argument to gl_thread_join.
19581 2008-09-30 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19582 Bruno Haible <bruno@clisp.org>
19584 * modules/lock-tests (Depends-on): Add thread, yield.
19585 (configure.ac): Remove all checks.
19586 (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
19587 * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
19588 gl_thread_self): Remove definitions. Include glthread/thread.h and
19589 glthread/yield.h instead.
19590 (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
19591 additional NULL argument to gl_thread_join.
19593 2008-09-30 Bruno Haible <bruno@clisp.org>
19595 Fix the Win32 implementation of the 'thread' module.
19596 * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
19598 (gl_thread_self): Invoke gl_thread_self_func.
19599 (gl_thread_self_func): New declaration.
19600 * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
19601 (do_init_self_key, init_self_key): New functions.
19602 (struct gl_thread_struct): Renamed from 'struct thread_extra'.
19603 Remove some fields.
19604 (running_threads, running_lock): Remove variables.
19605 (get_current_thread_handle): New function.
19606 (gl_thread_self_func, wrapper_func, glthread_create_func,
19607 glthread_join_func, gl_thread_exit_func): Largely rewritten and
19610 2008-09-30 Bruno Haible <bruno@clisp.org>
19612 * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
19615 2008-09-30 Jim Meyering <meyering@redhat.com>
19617 fts.m4: correct the test for statfs.f_type
19618 * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
19619 when checking for statfs.f_type.
19621 2008-09-15 Simon Josefsson <simon@josefsson.org>
19623 tests: avoid some compiler warnings
19624 * tests/test-memchr.c (main): Pass NULL indirectly.
19625 * tests/test-getdate.c (main): Remove unused variable 'ret'.
19627 2008-09-29 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
19629 getdate.y: disallow countable dayshifts like "4 yesterday ago"
19630 * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
19631 exactly specified dayshifts.
19632 (dayshift): New rule.
19633 (rel): Add dayshift.
19634 (relative_time_table) [tomorrow, yesterday, today, now]:
19635 Use tDAY_SHIFT in place of tDAY_UNIT.
19636 * tests/test-getdate.c: Add tests for now-disallowed countable
19637 dayshifts, e.g., "4 yesterday ago".
19639 2008-09-29 Bruno Haible <bruno@clisp.org>
19641 * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
19642 * tests/test-posix_spawn1.in.sh: Renamed from
19643 tests/test-posix_spawn.in.sh.
19644 * tests/test-posix_spawn2.c: New file.
19645 * tests/test-posix_spawn2.in.sh: New file.
19646 * modules/posix_spawnp-tests (Files): Update.
19647 (Makefile.am): Update. Add test-posix_spawn2 to the tests.
19649 2008-09-29 Bruno Haible <bruno@clisp.org>
19651 Propagate effects of putenv/setenv/unsetenv to child processes.
19652 * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
19653 * lib/pipe.c (create_pipe): Likewise.
19655 2008-09-29 Bruno Haible <bruno@clisp.org>
19657 Enable use of shell scripts as executables in mingw.
19658 * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
19659 run the program as a shell script.
19660 * lib/pipe.c (create_pipe): Likewise.
19661 * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
19664 2008-09-29 Eric Blake <ebb9@byu.net>
19666 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
19668 2008-08-24 Paolo Bonzini <bonzini@gnu.org>
19670 * doc/posix-functions/accept.texi: Update mingw problems.
19671 * doc/posix-functions/bind.texi: Update mingw problems.
19672 * doc/posix-functions/close.texi: Update mingw problems.
19673 * doc/posix-functions/connect.texi: Update mingw problems.
19674 * doc/posix-functions/getpeername.texi: Update mingw problems.
19675 * doc/posix-functions/getsockname.texi: Update mingw problems.
19676 * doc/posix-functions/getsockopt.texi: Update mingw problems.
19677 * doc/posix-functions/ioctl.texi: Update mingw problems.
19678 * doc/posix-functions/listen.texi: Update mingw problems.
19679 * doc/posix-functions/recv.texi: Update mingw problems.
19680 * doc/posix-functions/recvfrom.texi: Update mingw problems.
19681 * doc/posix-functions/select.texi: Update mingw problems.
19682 * doc/posix-functions/send.texi: Update mingw problems.
19683 * doc/posix-functions/sendto.texi: Update mingw problems.
19684 * doc/posix-functions/setsockopt.texi: Update mingw problems.
19685 * doc/posix-functions/socket.texi: Update mingw problems.
19687 2008-09-29 Paolo Bonzini <bonzini@gnu.org>
19688 Bruno Haible <bruno@clisp.org>
19690 * lib/sys_select.in.h: Include sys/time.h.
19691 * m4/sys_select.h.m4: Test that struct timeval is fully defined.
19692 * modules/sys_select: Depend on sys_time.
19693 * tests/test-sys_select.c: Test that sys/select.h defines struct
19696 2008-09-29 Bruno Haible <bruno@clisp.org>
19698 * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
19699 * lib/sys_select.in.h: Likewise.
19701 2008-09-29 Bruno Haible <bruno@clisp.org>
19703 * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
19705 2008-09-29 Bruno Haible <bruno@clisp.org>
19707 * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
19708 Set LIBSOCKET instead of augmenting LIBS.
19709 * modules/sockets (Link): New section.
19710 * modules/sockets-tests (test_sockets_LDADD): New variable.
19711 * modules/sys_select-tests (test_sys_select_LDADD): New variable.
19712 * modules/poll-tests (test_poll_LDADD): New variable.
19713 * NEWS: Document the change.
19715 2008-09-29 Bruno Haible <bruno@clisp.org>
19717 * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
19718 * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
19719 ARPA_INET_H directly.
19720 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
19722 2008-09-28 Bruno Haible <bruno@clisp.org>
19724 * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
19725 from gl_HEADER_SYS_SOCKET.
19726 (gl_HEADER_SYS_SOCKET): Invoke it.
19727 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
19729 2008-09-28 Bruno Haible <bruno@clisp.org>
19731 * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
19732 * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
19733 Needed on OSF/1 4.0.
19735 2008-09-28 Bruno Haible <bruno@clisp.org>
19737 Override open more carefully.
19738 * lib/open.c (orig_open): New function.
19739 (rpl_open): Use orig_open instead of open.
19740 * lib/fcntl.in.h: Add special invocation convention.
19741 * m4/open.m4 (gl_PREREQ_OPEN): New macro.
19742 (gl_FUNC_OPEN): Invoke it.
19744 Override freopen more carefully.
19745 * lib/freopen.c (orig_freopen): New function.
19746 (rpl_freopen): Use orig_freopen instead of freopen.
19747 * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
19748 (gl_FUNC_FREOPEN): Invoke it.
19750 Override fopen more carefully.
19751 * lib/fopen.c (orig_fopen): New function.
19752 (rpl_fopen): Use orig_fopen instead of fopen.
19753 * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
19754 (gl_FUNC_FOPEN): Invoke it.
19755 Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
19757 2008-09-28 Bruno Haible <bruno@clisp.org>
19759 * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
19762 2008-09-28 Bruno Haible <bruno@clisp.org>
19764 * tests/test-sigaction.c (handler, main): Disable the check whether
19765 SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
19766 glibc systems with LinuxThreads.
19768 2008-09-28 Bruno Haible <bruno@clisp.org>
19770 * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
19772 * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
19774 * lib/fcntl.in.h (open): Likewise.
19775 Reported by Rainer Tammer <tammer@tammer.net>.
19777 2008-09-28 Bruno Haible <bruno@clisp.org>
19779 * modules/posix_spawnp-tests: New file.
19780 * tests/test-posix_spawn.c: New file.
19781 * tests/test-posix_spawn.in.sh: New file.
19783 New module 'posix_spawnp'.
19784 * modules/posix_spawnp: New file.
19785 * lib/spawnp.c: New file, from GNU libc with modifications.
19786 * doc/posix-functions/posix_spawnp.texi: Mention the new module.
19788 New module 'posix_spawn'.
19789 * modules/posix_spawn: New file.
19790 * lib/spawn.c: New file, from GNU libc with modifications.
19791 * doc/posix-functions/posix_spawn.texi: Mention the new module.
19793 New module 'posix_spawnattr_destroy'.
19794 * modules/posix_spawnattr_destroy: New file.
19795 * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
19796 * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
19799 New module 'posix_spawnattr_setsigmask'.
19800 * modules/posix_spawnattr_setsigmask: New file.
19801 * lib/spawnattr_setsigmask.c: New file, from GNU libc with
19803 * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
19806 New module 'posix_spawnattr_getsigmask'.
19807 * modules/posix_spawnattr_getsigmask: New file.
19808 * lib/spawnattr_getsigmask.c: New file, from GNU libc with
19810 * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
19813 New module 'posix_spawnattr_setsigdefault'.
19814 * modules/posix_spawnattr_setsigdefault: New file.
19815 * lib/spawnattr_setdefault.c: New file, from GNU libc with
19817 * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
19820 New module 'posix_spawnattr_getsigdefault'.
19821 * modules/posix_spawnattr_getsigdefault: New file.
19822 * lib/spawnattr_getdefault.c: New file, from GNU libc with
19824 * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
19827 New module 'posix_spawnattr_setschedpolicy'.
19828 * modules/posix_spawnattr_setschedpolicy: New file.
19829 * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
19831 * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
19834 New module 'posix_spawnattr_getschedpolicy'.
19835 * modules/posix_spawnattr_getschedpolicy: New file.
19836 * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
19838 * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
19841 New module 'posix_spawnattr_setschedparam'.
19842 * modules/posix_spawnattr_setschedparam: New file.
19843 * lib/spawnattr_setschedparam.c: New file, from GNU libc with
19845 * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
19848 New module 'posix_spawnattr_getschedparam'.
19849 * modules/posix_spawnattr_getschedparam: New file.
19850 * lib/spawnattr_getschedparam.c: New file, from GNU libc with
19852 * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
19855 New module 'posix_spawnattr_setpgroup'.
19856 * modules/posix_spawnattr_setpgroup: New file.
19857 * lib/spawnattr_setpgroup.c: New file, from GNU libc with
19859 * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
19862 New module 'posix_spawnattr_getpgroup'.
19863 * modules/posix_spawnattr_getpgroup: New file.
19864 * lib/spawnattr_getpgroup.c: New file, from GNU libc with
19866 * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
19869 New module 'posix_spawnattr_setflags'.
19870 * modules/posix_spawnattr_setflags: New file.
19871 * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
19872 * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
19875 New module 'posix_spawnattr_getflags'.
19876 * modules/posix_spawnattr_getflags: New file.
19877 * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
19878 * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
19881 New module 'posix_spawnattr_init'.
19882 * modules/posix_spawnattr_init: New file.
19883 * lib/spawnattr_init.c: New file, from GNU libc with modifications.
19884 * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
19887 New module 'posix_spawn_file_actions_destroy'.
19888 * modules/posix_spawn_file_actions_destroy: New file.
19889 * lib/spawn_faction_destroy.c: New file, from GNU libc with
19891 * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
19894 New module 'posix_spawn_file_actions_addopen'.
19895 * modules/posix_spawn_file_actions_addopen: New file.
19896 * lib/spawn_faction_addopen.c: New file, from GNU libc with
19898 * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
19901 New module 'posix_spawn_file_actions_adddup2'.
19902 * modules/posix_spawn_file_actions_adddup2: New file.
19903 * lib/spawn_faction_adddup2.c: New file, from GNU libc with
19905 * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
19908 New module 'posix_spawn_file_actions_addclose'.
19909 * modules/posix_spawn_file_actions_addclose: New file.
19910 * lib/spawn_faction_addclose.c: New file, from GNU libc with
19912 * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
19915 New module 'posix_spawn_file_actions_init'.
19916 * modules/posix_spawn_file_actions_init: New file.
19917 * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
19918 * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
19921 New module 'posix_spawn-internal'.
19922 * modules/posix_spawn-internal: New file.
19923 * lib/spawn_int.h: New file, from GNU libc with modifications.
19924 * lib/spawni.c: New file, from GNU libc with modifications.
19925 * m4/posix_spawn.m4: New file.
19927 New module 'spawn'.
19928 * modules/spawn: New file.
19929 * lib/spawn.in.h: New file, from GNU libc with modifications.
19930 * m4/spawn_h.m4: New file.
19931 * doc/posix-headers/spawn.texi: Mention the new module.
19933 2008-09-28 Bruno Haible <bruno@clisp.org>
19935 * modules/sched-tests: New file.
19936 * tests/test-sched.c: New file.
19938 New module 'sched'.
19939 * modules/sched: New file.
19940 * lib/sched.in.h: New file.
19941 * m4/sched_h.m4: New file.
19942 * doc/posix-headers/sched.texi: Mention the new module.
19944 2008-09-27 Eric Blake <ebb9@byu.net>
19946 Fix previous patch, and tweak references to $0.
19947 * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
19948 (func_version, func_gnulib_dir): Don't call this program
19950 (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
19951 with using $0 in function.
19952 * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
19953 (func_fatal_error): Reuse the name the user invoked us with.
19955 2008-09-27 Bruno Haible <bruno@clisp.org>
19957 * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
19958 (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
19959 (gl_ICONV_H): Not here.
19960 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
19961 instead of assigning ICONV_H directly.
19963 * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
19964 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
19967 2008-09-27 Bruno Haible <bruno@clisp.org>
19969 * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
19970 * modules/arpa_inet (Depends-on): Add link-warning.
19971 (Makefile.am): Insert the definition of GL_LINK-WARNING.
19972 * modules/unistd (Makefile.am): Likewise.
19974 2008-09-26 Bruno Haible <bruno@clisp.org>
19976 * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
19978 (func_version): Essentially copied from gnulib-tool.
19979 (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
19980 func_readlink): Copied from gnulib-tool.
19982 2008-09-26 Bruno Haible <bruno@clisp.org>
19984 * gnulib-tool (func_version): Change directory to $gnulib_dir before
19985 invoking git-version-gen.
19987 2008-09-26 Bruno Haible <bruno@clisp.org>
19989 * posix-modules: Update to directory names changed on 2008-01-19.
19990 Remove commas in output before splitting into words. No more need to
19991 avoid 'ftruncate' since 2007-02-19.
19993 2008-09-26 Bruno Haible <bruno@clisp.org>
19995 * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
19997 2008-09-26 Bruno Haible <bruno@clisp.org>
19999 * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
20000 * modules/fwriteerror (Depends-on): Add errno.
20002 2008-09-26 Bruno Haible <bruno@clisp.org>
20004 * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
20005 * tests/test-vc-list-files-cvs.sh: Likewise.
20007 2008-09-26 Bruno Haible <bruno@clisp.org>
20009 * doc/posix-headers/sys_resource.texi: Reorder items.
20011 2008-09-26 Jim Meyering <meyering@redhat.com>
20013 fts: tweak inode comparison function
20014 * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
20015 inode numbers, as documented.
20017 fts: sort dirent entries on inode number before traversing
20018 This avoids a quadratic, seek-related performance penalty when
20019 operating on a directory containing many entries (measurable at 10k;
20020 3.5 hours at 2 million entries with a cold cache) on certain types
20021 of file systems, including ext3 and ext4, but not tmpfs.
20022 * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
20023 (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
20024 (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
20025 (fs_handles_readdir_ordered_dirents_efficiently): New function.
20026 (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
20027 (fts_build): Set the stat.st_ino member from D_INO.
20028 If it is likely to be useful, sort dirent entries on inode number.
20030 * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
20031 and the struct statfs.f_type member.
20032 * modules/fts (Depends-on): Add d-ino.
20034 2008-09-26 Bruno Haible <bruno@clisp.org>
20036 * modules/sigpipe-die (Depends-on): Add sigpipe.
20038 * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
20039 putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
20040 and GNULIB_STDIO_H_SIGPIPE are set.
20041 * lib/stdio-write.c: New file.
20042 * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
20043 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20044 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20045 REPLACE_STDIO_WRITE_FUNCS.
20046 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
20047 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20048 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20049 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20050 * modules/stdio (Files): Add lib/stdio-write.c.
20051 (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
20052 GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
20053 GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
20054 GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
20055 * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
20056 REPLACE_FPRINTF_POSIX.
20057 * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
20058 REPLACE_PRINTF_POSIX.
20059 * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
20060 REPLACE_VFPRINTF_POSIX.
20061 * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
20062 REPLACE_VPRINTF_POSIX.
20063 * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
20065 * doc/posix-functions/fputc.texi: Likewise.
20066 * doc/posix-functions/fputs.texi: Likewise.
20067 * doc/posix-functions/fwrite.texi: Likewise.
20068 * doc/posix-functions/printf.texi: Likewise.
20069 * doc/posix-functions/putc.texi: Likewise.
20070 * doc/posix-functions/putchar.texi: Likewise.
20071 * doc/posix-functions/puts.texi: Likewise.
20072 * doc/posix-functions/vfprintf.texi: Likewise.
20073 * doc/posix-functions/vprintf.texi: Likewise.
20075 * modules/safe-write (Depends-on): Add write.
20077 * modules/sigpipe-tests: New file.
20078 * tests/test-sigpipe.c: New file.
20079 * tests/test-sigpipe.sh: New file.
20081 * modules/write: New file.
20082 * lib/unistd.in.h: Include <sys/types.h>.
20083 (write): New declaration.
20084 * lib/write.c: New file.
20085 * m4/write.m4: New file.
20086 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20087 GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
20088 * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
20089 GNULIB_WRITE, REPLACE_WRITE.
20090 * doc/posix-functions/write.texi: Mention the write, sigpipe modules
20091 and the SIGPIPE issue.
20093 * lib/signal.in.h (SIGPIPE): Define to a replacement value.
20094 (raise): New declaration.
20095 * lib/sigprocmask.c (SIGPIPE_handler): New variable.
20096 (ext_signal): New function.
20097 (rpl_raise): New function.
20098 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
20099 GNULIB_SIGNAL_H_SIGPIPE.
20100 * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
20101 * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
20103 * modules/sigpipe: New file.
20104 * m4/sigpipe.m4: New file.
20106 2008-09-25 Derek Price <derek@ximbiot.com>
20107 Bruno Haible <bruno@clisp.org>
20109 * gnulib-tool (func_import): Report all license incompatibilities, not
20110 just the first one.
20112 2008-09-25 Bruno Haible <bruno@clisp.org>
20114 * gnulib-tool (func_import): When computing the edits, consider not
20115 only the Makefile.ams that exist but also those that will be generated.
20117 2008-09-25 Simon Josefsson <simon@josefsson.org>
20119 * modules/sys_select-tests (Depends-on): Remove sys_select itself,
20120 fixes gnulib-tool --test warning about duplicate dependency.
20122 2008-09-25 Bruno Haible <bruno@clisp.org>
20124 * gnulib-tool: Don't ask the user to perform edits in the generated
20126 (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
20127 apply to the Makefile.am being generated.
20128 (func_emit_tests_Makefile_am): Execute edits that apply to the
20129 Makefile.am being generated.
20130 (func_import): Setup list of Makefile.am edits before emitting the
20131 Makefile.ams, not at the end.
20132 (func_create_testdir): Update.
20133 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20135 2008-09-25 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20137 * gnulib-tool (func_import): Store the --tests-base option in the
20138 comment in gnulib-cache.m4.
20140 2008-09-24 Paolo Bonzini <bonzini@gnu.org>
20142 * NEWS: Document increased portability that sys_select now provides.
20144 * lib/sys_select.in.h: Install select wrapper.
20145 * lib/sys_socket.in.h: Use more descriptive name when there is no
20147 * lib/winsock-select.c: New.
20148 * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
20149 Require gl_HEADER_SYS_SOCKET.
20150 * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
20151 * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
20152 * tests/test-sys_select.c: Add functional tests.
20154 2008-09-24 Eric Blake <ebb9@byu.net>
20156 open, fopen: close fd leak in last patch
20157 * lib/open.c (rpl_open): Close fd before returning error.
20158 * lib/fopen.c (rpl_fopen): Close fd before returning error.
20159 * doc/posix-functions/open.texi (open): Document that Irix also
20161 * doc/posix-functions/fopen.texi (fopen): Likewise.
20162 Reported by Paolo Bonzini.
20164 2008-09-24 Bruno Haible <bruno@clisp.org>
20166 Ensure that a filename ending in a slash cannot be used to access a
20168 * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
20169 to check whether it's really a directory.
20170 * lib/fopen.c: Include fcntl.h, unistd.h.
20171 (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
20173 * modules/fopen (Depends-on): Add unistd.
20174 * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
20175 * tests/test-fopen.c (main): Likewise.
20176 * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
20177 * doc/posix-functions/fopen.texi: Likewise.
20178 Reported by Eric Blake.
20180 2008-09-23 Eric Blake <ebb9@byu.net>
20182 c-stack: avoid compiler optimizations when provoking overflow
20183 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
20184 recursion harder to optimize, to ensure a stack overflow occurs.
20185 * tests/test-c-stack.c (recurse): Likewise.
20186 Borrowed from libsigsegv.
20188 c-stack: work around Irix sigaltstack bug
20189 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
20190 whether sigaltstack uses wrong end of stack_t (copied in part from
20192 * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
20193 Irix bug, without requiring an over-allocation.
20194 * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
20197 fopen: document mingw bug on directories
20198 * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
20199 not allowing a stream visiting a directory, even though reading
20200 from such a stream is not portable.
20202 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20204 * lib/poll.c: Rewrite.
20205 * modules/poll: Depend on alloca.
20207 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20209 * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
20210 instead define prototypes for a full set of wrappers. Ensure
20211 that Cygwin does not use the compatibility code, which is only
20213 * lib/winsock.c: New.
20214 * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
20215 * modules/sys_socket: Add lib/winsock.c.
20217 * modules/poll-tests: Add errno and perror.
20218 * tests/test-poll.c: Use ioctl, not ioctlsocket.
20220 2008-09-23 Paolo Bonzini <bonzini@gnu.org>
20222 * tests/test-poll.c: Downgrade minimum needed Winsock version.
20224 2008-09-23 Bruno Haible <bruno@clisp.org>
20226 * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
20227 * doc/glibc-functions/*: Likewise.
20229 2008-09-23 Simon Josefsson <simon@josefsson.org>
20231 * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
20234 2008-09-22 Eric Blake <ebb9@byu.net>
20235 Bruno Haible <bruno@clisp.org>
20237 vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
20238 * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
20239 supply %A but mishandle pseudo-NaN.
20240 Reported by Simon Josefsson.
20242 2008-09-21 Bruno Haible <bruno@clisp.org>
20244 * tests/test-lock.c (main): Tweak skip message.
20245 * tests/test-tls.c (main): Likewise.
20247 2008-09-21 Bruno Haible <bruno@clisp.org>
20249 * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
20250 whether 'struct sigaction' has sa_sigaction here...
20251 (gl_PREREQ_SIG_HANDLER_H): ... not here.
20252 (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
20254 2008-09-21 Bruno Haible <bruno@clisp.org>
20256 * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
20258 (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
20259 strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
20261 (Support for obsolete systems lacking POSIX:2001): New section.
20262 (String handling <string.h>): Move strdup to the new section.
20263 Suggested by Simon Josefsson and Paolo Bonzini.
20265 2008-09-21 Bruno Haible <bruno@clisp.org>
20267 * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
20268 exponents in %e and %g results on 'long double'. Needed for mingw's
20269 improved *printf functions.
20270 * tests/test-vasprintf-posix.c (test_function): Likewise.
20271 * tests/test-snprintf-posix.h (test_function): Likewise.
20272 * tests/test-sprintf-posix.h (test_function): Likewise.
20273 Reported by Eric Blake.
20275 2008-09-21 Bruno Haible <bruno@clisp.org>
20277 * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
20278 * tests/test-sprintf-posix.h (test_function): Likewise.
20280 2008-09-21 Bruno Haible <bruno@clisp.org>
20282 * modules/getpass (Depends-on): Add strdup-posix.
20284 New module 'strdup-posix'.
20285 * modules/strdup-posix: New file.
20286 * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
20287 * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
20288 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
20290 * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
20291 * doc/posix-functions/strdup.texi: Mention module strdup-posix.
20292 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20295 * modules/strdup (Depends-on): Remove malloc-posix.
20297 2008-09-20 Bruno Haible <bruno@clisp.org>
20299 * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
20302 2008-09-20 Bruno Haible <bruno@clisp.org>
20304 Ensure that wint_t gets defined on IRIX 5.3.
20305 * lib/wchar.in.h (wint_t): Define if not defined by the system.
20306 * lib/wctype.in.h (wint_t): Likewise.
20307 (__wctype_wint_t): Remove type.
20308 (isw*): Use wint_t instead of __wctype_wint_t.
20309 * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
20310 * modules/wchar (Files): Add m4/wint_t.m4.
20311 (Makefile.am): Substitute HAVE_WINT_T.
20312 * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
20313 * tests/test-wctype.c: Check that wint_t is defined.
20314 * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
20315 * doc/posix-headers/wctype.texi: Likewise.
20316 Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20318 2008-09-18 Bruno Haible <bruno@clisp.org>
20320 * gnulib-tool (func_exit): Update comment.
20322 2008-09-18 Simon Josefsson <simon@josefsson.org>
20324 * modules/getaddrinfo (Depends-on): Remove strdup, this module
20325 assumes strdup exists and does not depend on strdup to return
20326 ENOMEM on out of memory conditions.
20328 2008-09-18 Bruno Haible <bruno@clisp.org>
20330 * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
20331 NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
20332 digits for the exponent.
20334 2008-09-18 Jim Meyering <meyering@redhat.com>
20335 Bruno Haible <bruno@clisp.org>
20337 * lib/vasnprintf.c (decimal_point_char): Define also if
20338 NEED_PRINTF_INFINITE_LONG_DOUBLE.
20340 2008-09-16 Bruno Haible <bruno@clisp.org>
20341 and Eric Blake <ebb9@byu.net>
20343 vasnprintf: support Irix 5.3
20344 * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
20345 that mishandle long double infinity.
20346 Reported by Tom G. Christensen.
20348 2008-09-16 Bruno Haible <bruno@clisp.org>
20350 * doc/glibc-functions/scandir.texi: Mention the function is missing on
20352 * doc/glibc-functions/alphasort.texi: Likewise.
20353 Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
20355 2008-09-16 Jim Meyering <meyering@redhat.com>
20357 posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
20358 * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
20359 a umask modification leak out of a subshell. Otherwise, the
20360 opensolaris /bin/sh would be accepted and thus cause unwarranted
20361 failures in the coreutils test suite.
20363 2008-09-16 Paolo Bonzini <bonzini@gnu.org>
20365 * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
20368 2008-09-16 Jim Meyering <meyering@redhat.com>
20370 avoid spurious test failure when library is built without ACL support
20371 * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
20372 * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
20373 * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
20374 * tests/test-copy-acl.sh: Likewise.
20376 2008-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20378 * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
20379 based on character occurrence counts.
20381 2008-09-15 Eric Blake <ebb9@byu.net>
20383 tests: avoid some compiler warnings
20384 * tests/test-memchr.c (main): Pass NULL indirectly.
20385 * tests/test-closein.c (main): Avoid unused variable.
20387 2008-09-15 Bruno Haible <bruno@clisp.org>
20389 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
20390 are missing on OpenBSD 4.0 individually.
20391 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
20393 2008-09-15 Bruno Haible <bruno@clisp.org>
20395 * doc/posix-headers/errno.texi: Mention the Cygwin problem.
20396 * doc/posix-functions/strerror.texi: Mention also Cygwin.
20397 * doc/posix-functions/perror.texi: Likewise.
20398 * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
20400 Reported by Eric Blake.
20402 * lib/errno.in.h: Use replacement values >= 2000.
20403 Reported by Eric Blake.
20405 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20407 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
20408 (EARLY_ABORT): Return true when the edit_count has grown too beyond the
20410 (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
20411 compareseq was aborted.
20413 2008-09-14 Bruno Haible <bruno@clisp.org>
20415 * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
20417 (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
20418 (fstrcmp_bounded): Simplify result computation accordingly.
20420 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20422 * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
20423 (fstrcmp): Define in terms of fstrcmp_bounded.
20424 * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
20425 lower_bound argument.
20426 Return quickly if the result is certainly < lower_bound.
20427 * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
20429 2008-09-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20431 * lib/diffseq.h (EARLY_ABORT): New macro.
20432 (compareseq): Change return type to bool. Return true when EARLY_ABORT
20435 2008-09-14 Bruno Haible <bruno@clisp.org>
20437 * modules/perror-tests: New file.
20438 * tests/test-perror.sh: New file.
20439 * tests/test-perror.c: New file.
20441 New module 'perror'.
20442 * lib/stdio.in.h (perror): New declaration.
20443 * lib/perror.c: New file.
20444 * m4/perror.m4: New file.
20445 * modules/perror: New file.
20446 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
20447 * doc/posix-functions/perror.texi: Mention the perror module.
20448 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
20450 * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
20453 2008-09-14 Bruno Haible <bruno@clisp.org>
20455 * modules/stdio (Makefile.am): Reorder to match the order in
20457 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
20459 2008-09-13 Bruno Haible <bruno@clisp.org>
20461 * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
20463 2008-09-13 Bruno Haible <bruno@clisp.org>
20465 Extend strerror to cover the added errno values.
20466 * lib/strerror.c: Include errno.h and winsock2.h if it exists.
20467 (rpl_strerror): Provide error messages for the added errno values and
20468 for the WSA* values.
20469 * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
20470 (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
20472 (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
20473 * modules/strerror (Depends-on): Add errno.
20474 * doc/posix-functions/strerror.texi: Document the change.
20475 * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
20478 2008-09-13 Bruno Haible <bruno@clisp.org>
20480 * modules/EOVERFLOW: Remove file.
20481 * m4/eoverflow.m4: Remove file.
20482 * modules/EOVERFLOW-tests: Remove file.
20483 * tests/test-EOVERFLOW.c: Remove file.
20484 * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
20485 * modules/ftell (Depends-on): Likewise.
20486 * modules/getdelim (Depends-on): Likewise.
20487 * modules/getugroups (Depends-on): Likewise.
20488 * modules/poll (Depends-on): Likewise.
20489 * modules/snprintf (Depends-on): Likewise.
20490 * modules/sprintf-posix (Depends-on): Likewise.
20491 * modules/vasnprintf (Depends-on): Likewise.
20492 * modules/vasprintf (Depends-on): Likewise.
20493 * modules/vfprintf-posix (Depends-on): Likewise.
20494 * modules/vsnprintf (Depends-on): Likewise.
20495 * modules/vsprintf-posix (Depends-on): Likewise.
20496 * modules/xvasprintf (Depends-on): Likewise.
20497 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20498 * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
20499 * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
20500 * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
20501 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20502 * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
20503 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
20504 * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
20505 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20506 * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
20507 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
20508 * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
20509 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20510 * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
20511 * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
20512 * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
20513 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20514 * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
20515 * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
20516 * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
20517 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20518 * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
20519 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
20520 * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
20521 * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
20522 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20523 * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
20524 * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
20525 * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
20526 * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
20527 * MODULES.html.sh: Remove EOVERFLOW.
20528 * NEWS: Mention the change.
20530 2008-09-13 Bruno Haible <bruno@clisp.org>
20532 * modules/errno-tests: New file.
20533 * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
20535 * lib/errno.in.h: New file.
20536 * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
20537 * modules/errno: New file.
20538 * doc/posix-headers/errno.texi: Update documentation.
20539 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
20541 2008-09-13 Bruno Haible <bruno@clisp.org>
20543 * tests/test-poll.c: Use #if for native Windows, rather than testing
20546 2008-09-13 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20547 Bruno Haible <bruno@clisp.org>
20549 * lib/glob.c: Don't include <pwd.h> on native Windows.
20550 (WINDOWS32): New macro.
20551 (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
20553 2008-09-13 Bruno Haible <bruno@clisp.org>
20555 * lib/glthread/cond.h [USE_SOLARIS_THREADS]
20556 (ETIMEDOUT): Remove macro.
20557 (glthread_cond_timedwait_multithreaded): New declaration.
20558 (glthread_cond_timedwait): Use it.
20559 * lib/glthread/cond.c [USE_SOLARIS_THREADS]
20560 (glthread_cond_timedwait_multithreaded): New function.
20562 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
20564 * modules/poll-tests: Do not check for io.h.
20565 * tests/test-poll.c: Check for __MSVCRT__ instead.
20567 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
20569 * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
20570 * modules/poll-tests: Add inet_pton, stdbool, sockets.
20571 * tests/test-poll.c: Use them. Use _pipe on Windows.
20573 2008-09-12 Paolo Bonzini <bonzini@gnu.org>
20575 * modules/poll-tests: New.
20576 * tests/test-poll.c: New.
20578 2008-09-12 Eric Blake <ebb9@byu.net>
20580 frexp: test for NetBSD failure on -0.0
20581 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
20582 not all, bugs from NetBSD 3.0 have been fixed.
20583 * doc/posix-functions/frexp.texi (frexp): Document bug.
20584 Reported by Thomas Klausner.
20586 signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
20587 * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
20589 Reported by Jonathan C. Patschke <jp@centtech.com>.
20591 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20593 * lib/glthread/cond.h: Use dummy implementation also if
20596 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20598 * modules/fnmatch-posix (License): Change to LGPLv2+.
20599 * modules/fnmatch-gnu (License): Likewise.
20601 2008-09-11 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
20603 * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
20605 2008-09-11 Jim Meyering <meyering@redhat.com>
20607 * users.txt: Add gtk-vnc.
20609 2008-09-08 Simon Josefsson <simon@josefsson.org>
20611 * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
20614 * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
20615 required for 16-bit and 8-bit rotates.
20616 * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
20617 rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
20618 UINT8_MAX instead of hard-coded constants.
20619 Suggested by Paul Eggert.
20621 2008-09-07 Bruno Haible <bruno@clisp.org>
20623 * tests/test-striconveh.c (main): Check behaviour when converting from
20626 Make striconveh work better with stateful encodings.
20627 * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
20628 that iconv does not increment the inptr when returning -1/EINVAL.
20630 2008-09-07 Bruno Haible <bruno@clisp.org>
20632 * build-aux/config.rpath: Update according to libtool-2.2.6.
20633 * build-aux/config.libpath: Likewise.
20635 2008-09-06 Bruno Haible <bruno@clisp.org>
20637 * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
20638 * lib/freadptr.c (freadptr): Likewise.
20639 * lib/freadseek.c (freadptrinc): Likewise.
20640 Reported by Simon Josefsson.
20642 2008-09-06 Bruno Haible <bruno@clisp.org>
20644 * modules/freadptr (License): Change to LGPLv2+.
20645 * modules/freadseek (License): Likewise.
20646 Suggested by Eric Blake.
20648 * modules/memchr2 (License): Change to LGPLv2+.
20649 Approved by Eric Blake.
20651 2008-09-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
20652 Bruno Haible <bruno@clisp.org>
20654 Make gnulib-tool work with native 'sed' on AIX.
20655 * gnulib-tool (sed_noop): New variable.
20656 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
20657 func_add_or_update, func_create_testdir): Use it to initialize sed
20659 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20661 2008-09-04 Albert Chin <bug-gnulib@mlists.thewrittenword.com>
20662 Bruno Haible <bruno@clisp.org>
20664 * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
20665 also works after #include directives.
20667 2008-09-04 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
20669 getdate.y: reject an out-of-range timezone value
20670 * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
20671 the range [-24...+24]. When specified with only one or two digits,
20672 * tests/test-getdate.c: Tests for the fix.
20673 * doc/getdate.texi: Document this change.
20675 2008-09-03 Bruno Haible <bruno@clisp.org>
20677 * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
20679 2008-09-02 Simon Josefsson <simon@josefsson.org>
20681 * lib/bitrotate.h (rotl64, rotr64): Add. Suggested by Bruce Korb
20682 <bruce.korb@gmail.com> with ideas from Ben Pfaff
20683 <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
20684 Blake <ebb9@byu.net>.
20686 * tests/test-bitrotate.c: Add more test vectors.
20688 2008-09-02 Eric Blake <ebb9@byu.net>
20690 vasnprintf-posix: handle large precision via %.*d
20691 * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
20692 when handling it ourselves.
20693 * tests/test-vasnprintf-posix.c (test_function): Add test.
20694 * tests/test-snprintf-posix.h (test_function): Likewise.
20695 * tests/test-sprintf-posix.h (test_function): Likewise.
20696 * tests/test-vasprintf-posix.c (test_function): Likewise.
20697 Reported by Alain Guibert.
20699 2008-09-01 Eric Blake <ebb9@byu.net>
20701 c-stack: make configure-time check more robust
20702 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
20703 successful sigaction call.
20704 Reported by Tom G. Christensen.
20706 2008-09-01 Bruno Haible <bruno@clisp.org>
20708 New module 'findprog-lgpl'.
20709 * modules/findprog-lgpl: New file.
20710 * lib/findprog-lgpl.c: New file.
20711 * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
20712 also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
20713 to decide whether to use strdup or xstrdup, concatenated_filename or
20714 xconcatenated_filename.
20716 2008-09-01 Bruno Haible <bruno@clisp.org>
20718 Split module 'concat-filename' into 'concat-filename' (LGPL) and
20719 'xconcat-filename' (GPL).
20720 * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
20721 (License): Change to LGPLv2+.
20722 * modules/xconcat-filename: New file.
20723 * lib/concat-filename.h (concatenated_filename): Change specification.
20724 (xconcatenated_filename): New declaration.
20725 * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
20726 (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
20728 * lib/xconcat-filename.c: New file.
20729 * NEWS: Mention the change.
20730 * lib/findprog.c: Include concat-filename.h, not filename.h.
20731 (find_in_path): Use xconcatenated_filename instead of
20732 concatenated_filename.
20733 * lib/javacomp.c: Include concat-filename.h, not filename.h.
20734 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
20735 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
20736 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
20737 is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
20738 instead of concatenated_filename.
20739 * lib/javaexec.c: Include concat-filename.h, not filename.h.
20740 (execute_java_class): Use xconcatenated_filename instead of
20741 concatenated_filename.
20742 * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
20743 * modules/javacomp (Depends-on): Likewise.
20744 * modules/javaexec (Depends-on): Likewise.
20746 2008-09-01 Bruno Haible <bruno@clisp.org>
20748 Split module 'filename' into 'filename' and 'concat-filename'.
20749 * modules/filename: Keep only lib/filename.h.
20750 (License): Change to LGPLv2+.
20751 * modules/concat-filename: New file, extracted from modules/filename.
20752 * lib/filename.h (concatenated_filename): Remove declaration.
20753 * lib/concat-filename.h: New file, extracted from lib/filename.h.
20754 * lib/concat-filename.c: Include concat-filename.h.
20755 * NEWS: Mention the change.
20757 2008-09-01 Simon Josefsson <simon@josefsson.org>
20759 * lib/bitrotate.h (rotl8, rotr8): Add.
20761 * modules/bitrotate (configure.ac): Need
20762 AC_REQUIRE([AC_C_INLINE]).
20763 (Description): Mention stdint.h. Reported by Bruno Haible
20766 * lib/bitrotate.h (rotr16, rotl16): Fix mask value. Reported by
20767 Paolo Bonzini <bonzini@gnu.org>.
20769 2008-08-31 Bruno Haible <bruno@clisp.org>
20771 Assume Solaris specific bi-arch conventions on Solaris systems.
20772 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
20773 mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
20774 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
20775 work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
20776 like acl_libdirstem.
20777 (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
20779 * NEWS: Mention the change.
20780 Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
20782 2008-08-31 Jim Meyering <meyering@redhat.com>
20784 * lib/strftime.h: Add comments describing the two added arguments.
20786 remove duplicate #include directives
20787 * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
20788 * lib/putenv.c: Remove duplicate #include <stdlib.h>.
20790 2008-08-31 Bruno Haible <bruno@clisp.org>
20792 New module 'sigpipe-die'.
20793 * modules/sigpipe-die: New file.
20794 * lib/sigpipe-die.h: New file.
20795 * lib/sigpipe-die.c: New file.
20796 * MODULES.html.sh (Signal handling): Add sigpipe-die.
20798 2008-08-31 Bruno Haible <bruno@clisp.org>
20800 Don't override previously installed signal handlers.
20801 * lib/fatal-signal.c (saved_sigactions): New variable.
20802 (uninstall_handlers): Reset the signal to the saved handler, not
20803 to SIG_DFL (except when ignored).
20804 (install_handlers): Save the previous handlers.
20806 2008-08-30 Bruno Haible <bruno@clisp.org>
20808 * gnulib-tool (func_reset_sigpipe): New function.
20809 (func_get_automake_snippet, func_modules_transitive_closure,
20810 func_import): Invoke it before a join command that reads from stdin,
20811 to avoid "echo: write error: Broken pipe" error messages on stderr.
20812 Reported by Sam Steingold <sds@gnu.org>.
20814 2008-08-30 Bruno Haible <bruno@clisp.org>
20816 * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
20817 Code copied from m4/open.m4.
20818 * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
20819 access and the filename ends in a slash. Code copied from lib/open.c.
20820 * doc/posix-functions/fopen.texi: Document bug with trailing slash.
20821 * tests/test-fopen.c (main): Check against bug with trailing slash.
20823 2008-08-29 Bruno Haible <bruno@clisp.org>
20825 Avoid some "gcc -pedantic" warnings.
20826 * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
20827 * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
20828 * lib/dirent.in.h: Likewise.
20829 * lib/fcntl.in.h: Likewise.
20830 * lib/float.in.h: Likewise.
20831 * lib/iconv.in.h: Likewise.
20832 * lib/inttypes.in.h: Likewise.
20833 * lib/locale.in.h: Likewise.
20834 * lib/math.in.h: Likewise.
20835 * lib/netinet_in.in.h: Likewise.
20836 * lib/search.in.h: Likewise.
20837 * lib/signal.in.h: Likewise.
20838 * lib/stdarg.in.h: Likewise.
20839 * lib/stdint.in.h: Likewise.
20840 * lib/stdio.in.h: Likewise.
20841 * lib/stdlib.in.h: Likewise.
20842 * lib/string.in.h: Likewise.
20843 * lib/strings.in.h: Likewise.
20844 * lib/sys_select.in.h: Likewise.
20845 * lib/sys_socket.in.h: Likewise.
20846 * lib/sys_stat.in.h: Likewise.
20847 * lib/sys_time.in.h: Likewise.
20848 * lib/sysexits.in.h: Likewise.
20849 * lib/time.in.h: Likewise.
20850 * lib/unistd.in.h: Likewise.
20851 * lib/wchar.in.h: Likewise.
20852 * lib/wctype.in.h: Likewise.
20853 * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
20854 * modules/fchdir (Makefile.am): Likewise.
20855 * modules/fcntl (Makefile.am): Likewise.
20856 * modules/float (Makefile.am): Likewise.
20857 * modules/iconv_open (Makefile.am): Likewise.
20858 * modules/inttypes (Makefile.am): Likewise.
20859 * modules/locale (Makefile.am): Likewise.
20860 * modules/math (Makefile.am): Likewise.
20861 * modules/netinet_in (Makefile.am): Likewise.
20862 * modules/search (Makefile.am): Likewise.
20863 * modules/signal (Makefile.am): Likewise.
20864 * modules/stdarg (Makefile.am): Likewise.
20865 * modules/stdint (Makefile.am): Likewise.
20866 * modules/stdio (Makefile.am): Likewise.
20867 * modules/stdlib (Makefile.am): Likewise.
20868 * modules/string (Makefile.am): Likewise.
20869 * modules/strings (Makefile.am): Likewise.
20870 * modules/sys_select (Makefile.am): Likewise.
20871 * modules/sys_socket (Makefile.am): Likewise.
20872 * modules/sys_stat (Makefile.am): Likewise.
20873 * modules/sys_time (Makefile.am): Likewise.
20874 * modules/sysexits (Makefile.am): Likewise.
20875 * modules/time (Makefile.am): Likewise.
20876 * modules/unistd (Makefile.am): Likewise.
20877 * modules/wchar (Makefile.am): Likewise.
20878 * modules/wctype (Makefile.am): Likewise.
20879 Reported by Reuben Thomas <rrt@sc3d.org>.
20881 2008-08-29 Bruno Haible <bruno@clisp.org>
20883 * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
20886 2008-08-29 Simon Josefsson <simon@josefsson.org>
20888 * MODULES.html.sh (Misc): Add bitrotate.
20890 * modules/bitrotate: New file.
20892 * lib/bitrotate.h: New file.
20894 * modules/bitrotate-tests: New file.
20896 * tests/test-bitrotate.c: New file.
20898 * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
20899 on the bitrotate module.
20901 * lib/arctwo.c: Use new bitrotate module.
20903 2008-08-29 Jim Meyering <meyering@redhat.com>
20905 bootstrap: merge changes from coreutils
20906 * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
20907 of copied files. Remove a kludge, now that this is fixed.
20908 * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
20909 * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
20910 * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
20912 2008-08-29 Bruno Haible <bruno@clisp.org>
20914 * MODULES.html.sh: Remove --cvs-urls option.
20916 2008-08-28 Jose E. Marchesi <jemarch@gnu.org> (tiny change)
20918 maint.mk: adjust to file name change
20919 * top/maint.mk: s/Makefile.cfg/cfg.mk/.
20921 2008-08-28 Jim Meyering <meyering@redhat.com>
20923 * modules/getndelim2 (License): Relicense to LGPLv2+.
20924 Approved by Richard Stallman for the version of 1995, and by
20925 Paul Eggert, Bruno Haible, Eric Blake for their contributions.
20927 2008-08-27 Paolo Bonzini <bonzini@gnu.org>
20929 * lib/getdelim.c (flockfile, funlockfile): Make all of them
20930 dummy if one is not available. Do not touch them if
20931 USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
20932 (getc_maybe_unlocked): New.
20933 * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
20935 2008-08-26 Eric Blake <ebb9@byu.net>
20937 doc/INSTALL: resync from autoconf
20938 * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
20939 (INSTALL_PRELUDE): Delete; this is done more efficiently by
20941 * install.texi [!autoconf]: ...here. Resync from autoconf.
20942 * INSTALL: Regenerate.
20943 * INSTALL.ISO: New file.
20944 * INSTALL.UTF-8: Likewise.
20946 2008-08-26 Jim Meyering <meyering@redhat.com>
20948 GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
20949 * top/GNUmakefile (_is-dist-target, _is-install-target): Make
20950 these definitions conditional, so that they may be overridden, too.
20952 2008-08-26 Bruno Haible <bruno@clisp.org>
20954 Generate INSTALL file variants with prettier quotes.
20955 * doc/Makefile (INSTALL_PRELUDE): New macro.
20957 (INSTALL.ISO, INSTALL.UTF-8): New rules.
20959 2008-08-26 Bruno Haible <bruno@clisp.org>
20961 Run makeinfo in an English locale.
20962 * doc/Makefile (MAKEINFO): New variable.
20964 2008-08-26 Bruno Haible <bruno@clisp.org>
20966 * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
20967 Suggested by Eric Blake.
20969 2008-08-25 Bruno Haible <bruno@clisp.org>
20971 * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
20973 2008-08-25 Eric Blake <ebb9@byu.net>
20975 c-stack: test that stack overflow can be caught
20976 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
20977 that platform allows handling stack overflow; at least OS/2 EMX
20978 has sigaltstack, but crashes before transferring control to
20979 handler on stack overflow.
20980 * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
20981 check for HAVE_STACK_OVERFLOW_HANDLING.
20982 Reported by Elbert Pol.
20984 2008-08-25 Bruno Haible <bruno@clisp.org>
20986 * doc/posix-functions/strftime.texi: Fix description of strftime
20989 2008-08-24 Bruno Haible <bruno@clisp.org>
20991 * tests/uniwidth/test-uc_width2.c: New file.
20992 * tests/uniwidth/test-uc_width2.sh: New file.
20993 * modules/uniwidth/width-tests (Files): Add the new files.
20994 (TESTS): Add uniwidth/test-uc_width2.sh.
20995 (TESTS_ENVIRONMENT): New variable.
20996 (check_PROGRAMS): Add test-uc_width2.
20997 (test_uc_width2_SOURCES): New variable.
20999 Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
21000 * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
21002 Reported by Alexander V. Lukyanov <lav@netis.ru>.
21004 2008-08-22 Eric Blake <ebb9@byu.net>
21006 test-lock, test-tls: mention why a test is skipped
21007 * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
21009 * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
21011 count-one-bits: relax license
21012 * modules/count-one-bits (License): Relicense to LGPLv2+.
21013 Suggested by Ludovic Courtès, approved by Ben Pfaff.
21015 2008-08-22 Andreas Schwab <schwab@suse.de>
21017 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
21018 Remove spurious space in assignment.
21020 2008-08-21 Simon Josefsson <simon@josefsson.org>
21022 * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC. Reported by
21023 Paul Eggert <eggert@CS.UCLA.EDU>.
21025 2008-08-20 Paolo Bonzini <bonzini@gnu.org>
21027 * modules/gettext: Add m4/threadlib.m4.
21029 2008-08-19 Eric Blake <ebb9@byu.net>
21031 test-c-stack: fix compilation failure on FreeBSD 5.0
21032 * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
21033 headers before <sys/resource.h>.
21034 * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
21036 Reported by Nelson H. F. Beebe.
21038 strverscmp: migrate from "strverscmp.h" to <string.h>
21039 * modules/string (Makefile.am): Add new hooks.
21040 * modules/strverscmp (Files): Remove strverscmp.h.
21041 (Depends-on): Add string.
21042 (configure.ac): Add indicator.
21043 (Include): Mention new header.
21044 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
21046 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
21048 * lib/strverscmp.h: Delete.
21049 * lib/string.in.h (strverscmp): Provide declaration, when needed.
21050 * tests/test-strverscmp.c (includes): Adjust client.
21051 * lib/check-version.c (includes): Likewise.
21052 * NEWS: Document the change.
21054 strverscmp: add unit test
21055 * modules/strverscmp-tests: New file.
21056 * tests/test-strverscmp.c: Likewise.
21058 2008-08-19 Simon Josefsson <simon@josefsson.org>
21060 * lib/gc-gnulib.c: Indentation cleanup. Add some comments
21061 regarding Windows crypto stuff, from Mono.
21063 2008-08-19 Adam Strzelecki <ono@java.pl> (tiny change)
21065 * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT. Try to use Intel CSP
21066 if present, for intel RND. Return error on failures.
21068 2008-08-18 Ben Pfaff <blp@gnu.org>
21070 gitlog-to-changelog: give better diagnostic for failed pipe-open
21071 * build-aux/gitlog-to-changelog: Improve error message: suggest
21072 that the version of Git may be too old.
21074 2008-08-18 Simon Josefsson <simon@josefsson.org>
21076 * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity. Use
21077 ISO 8601 format. Suggested by Greg Troxel <gdt@ir.bbn.com>.
21079 2008-08-18 Bruno Haible <bruno@clisp.org>
21081 * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
21084 2008-08-18 Bruno Haible <bruno@clisp.org>
21086 * lib/glthread/threadlib.c: Include <pthread.h>.
21088 2008-08-18 Bruno Haible <bruno@clisp.org>
21090 * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
21091 glthread_recursive_lock_* macros.
21092 * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
21095 2008-08-18 Bruno Haible <bruno@clisp.org>
21097 * lib/glthread/thread.c: Avoid forcing a context switch right after
21100 2008-08-17 Bruno Haible <bruno@clisp.org>
21102 * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
21103 * lib/glthread/thread.h: Provide Win32 specific implementation.
21104 * modules/thread (Files): Add lib/glthread/thread.c.
21105 (Depends-on): Add lock.
21106 (Makefile.am): Add glthread/thread.c to lib_SOURCES.
21108 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21110 New module 'yield'.
21111 * modules/yield: New file.
21112 * lib/glthread/yield.h: New file.
21113 * m4/yield.m4: New file.
21114 * MODULES.html.sh (Multithreading): Add yield.
21116 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21118 New module 'thread'.
21119 * modules/thread: New file.
21120 * lib/glthread/thread.h: New file.
21121 * m4/thread.m4: New file.
21122 * MODULES.html.sh (Multithreading): Add thread.
21124 2008-08-17 Bruno Haible <bruno@clisp.org>
21126 * lib/glthread/lock.h: Include <stdlib.h> always.
21127 * lib/glthread/tls.h: Likewise.
21128 * lib/glthread/cond.h: Likewise.
21130 2008-08-17 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21133 * modules/cond: New file.
21134 * lib/glthread/cond.h: New file.
21135 * lib/glthread/cond.c: New file.
21136 * m4/cond.m4: New file.
21137 * MODULES.html.sh (Multithreading): Add cond.
21139 2008-08-16 Eric Blake <ebb9@byu.net>
21141 c-stack: fix regression on Irix 5.3 from 2008-06-21
21142 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
21144 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
21145 (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
21146 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
21147 * modules/signal (Makefile.am): Use the value.
21148 * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
21149 && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
21150 * doc/posix-headers/signal.texi (signal.h): Document this
21152 * doc/posix-functions/sigaction.texi (sigaction): Likewise.
21153 Reported by Tom G. Christensen.
21155 2008-08-17 Bruno Haible <bruno@clisp.org>
21157 New module 'threadlib'.
21158 * modules/threadlib: New file.
21159 * lib/glthread/threadlib.c: New file, extracted from
21160 lib/glthread/lock.c.
21161 * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
21163 * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
21164 gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
21165 * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
21167 (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
21168 (gl_DISABLE_THREADS): Remove macro.
21169 * modules/lock (Files): Remove build-aux/config.rpath.
21170 (Depends-on): Remove havelib. Add threadlib.
21171 (configure.ac-early): Remove section.
21172 * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
21173 * modules/tls (Depends-on): Remove lock. Add threadlib.
21174 (Link): New section, copied from threadlib.
21175 * MODULES.html.sh (Multithreading): Add threadlib.
21177 2008-08-14 Bruno Haible <bruno@clisp.org>
21179 * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
21180 glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
21181 glthread_rwlock_unlock, glthread_rwlock_destroy,
21182 glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
21183 glthread_recursive_lock_destroy): Define as macros always.
21184 * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
21185 glthread_lock_lock.
21186 (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
21187 (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
21188 (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
21189 (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
21190 (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
21191 (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
21192 (glthread_recursive_lock_lock_func): Renamed from
21193 glthread_recursive_lock_lock.
21194 (glthread_recursive_lock_unlock_func): Renamed from
21195 glthread_recursive_lock_unlock.
21196 (glthread_recursive_lock_destroy_func): Renamed from
21197 glthread_recursive_lock_destroy.
21199 2008-08-14 Bruno Haible <bruno@clisp.org>
21201 * lib/glthread/lock.h: Renamed from lib/lock.h.
21202 * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
21203 * lib/glthread/tls.h: Renamed from lib/tls.h.
21204 * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
21205 * lib/fstrcmp.c: Update includes.
21206 * lib/strsignal.c: Update includes.
21207 * modules/lock (Files, Makefile.am): Update.
21208 (Include): Change to "glthread/lock.h".
21209 * modules/tls (Files, Makefile.am): Update.
21210 (Include): Change to "glthread/tls.h".
21211 * tests/test-lock.c: Update includes.
21212 * tests/test-tls.c: Update includes.
21213 * NEWS: Mention the renamed header files.
21215 2008-08-11 Jim Meyering <meyering@redhat.com>
21217 * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
21219 2008-08-11 Eric Blake <ebb9@byu.net>
21221 test-c-stack: avoid C99-ism
21222 * tests/test-c-stack.c (main): Fix whitespace, move declaration
21224 Reported by Alain Guibert.
21226 2008-08-10 Jim Meyering <meyering@redhat.com>
21228 ensure that return value of uinttostr et al are not ignored
21229 * lib/inttostr.h (__GNUC_PREREQ): Define.
21230 (__attribute_warn_unused_result__): Define.
21231 (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
21233 2008-08-07 Paolo Bonzini <bonzini@gnu.org>
21235 * lib/lock.c (glthread_recursive_lock_init_multithreaded)
21236 [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
21238 2008-08-07 Jim Meyering <meyering@redhat.com>
21240 * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
21242 * modules/mkstemp (License): Relicense under LGPLv2+.
21243 * modules/tempname (License): Likewise.
21245 2008-08-06 Bruno Haible <bruno@clisp.org>
21247 * lib/poll.c (poll): Further micro-optimization.
21249 2008-08-06 Jim Meyering <meyering@redhat.com>
21251 inet_pton.c: use locale-independent tolower
21252 * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
21253 (inet_pton6): Use c_tolower rather than tolower.
21254 * modules/inet_pton (Depends-on): Add c-ctype.
21256 2008-08-06 Paolo Bonzini <bonzini@gnu.org>
21258 * lib/poll.c (poll): Avoid division when timeout is 0, cache
21259 _SC_OPEN_MAX, avoid repeated access to errno. Check for nfd < 0.
21261 2008-08-06 Jim Meyering <meyering@redhat.com>
21263 * modules/inet_pton (License): Relicense under LGPLv2+.
21265 2008-08-03 Bruno Haible <bruno@clisp.org>
21267 Additional non-aborting API for lock and tls.
21268 * lib/lock.h: Include <errno.h>.
21269 (glthread_lock_init): New macro/function.
21270 (gl_lock_init): Define as wrapper around glthread_lock_init.
21271 (glthread_lock_lock): New macro/function.
21272 (gl_lock_lock): Define as wrapper around glthread_lock_lock.
21273 (glthread_lock_unlock): New macro/function.
21274 (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
21275 (glthread_lock_destroy): New macro/function.
21276 (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
21277 (glthread_rwlock_init): New macro/function.
21278 (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
21279 (glthread_rwlock_rdlock): New macro/function.
21280 (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
21281 (glthread_rwlock_wrlock): New macro/function.
21282 (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
21283 (glthread_rwlock_unlock): New macro/function.
21284 (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
21285 (glthread_rwlock_destroy): New macro/function.
21286 (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
21287 (glthread_recursive_lock_init): New macro/function.
21288 (gl_recursive_lock_init): Define as wrapper around
21289 glthread_recursive_lock_init.
21290 (glthread_recursive_lock_lock): New macro/function.
21291 (gl_recursive_lock_lock): Define as wrapper around
21292 glthread_recursive_lock_lock.
21293 (glthread_recursive_lock_unlock): New macro/function.
21294 (gl_recursive_lock_unlock): Define as wrapper around
21295 glthread_recursive_lock_unlock.
21296 (glthread_recursive_lock_destroy): New macro/function.
21297 (gl_recursive_lock_destroy): Define as wrapper around
21298 glthread_recursive_lock_destroy.
21299 (glthread_once): New macro/function.
21300 (gl_once): Define as wrapper around glthread_once.
21301 Update function declarations.
21302 * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
21303 glthread_rwlock_init. Return error code.
21304 (glthread_rwlock_rdlock_multithreaded): Renamed from
21305 glthread_rwlock_rdlock. Return error code.
21306 (glthread_rwlock_wrlock_multithreaded): Renamed from
21307 glthread_rwlock_wrlock. Return error code.
21308 (glthread_rwlock_unlock_multithreaded): Renamed from
21309 glthread_rwlock_unlock. Return error code.
21310 (glthread_rwlock_destroy_multithreaded): Renamed from
21311 glthread_rwlock_destroy. Return error code.
21312 (glthread_recursive_lock_init_multithreaded): Renamed from
21313 glthread_recursive_lock_init. Return error code.
21314 (glthread_recursive_lock_lock_multithreaded): Renamed from
21315 glthread_recursive_lock_lock. Return error code.
21316 (glthread_recursive_lock_unlock_multithreaded): Renamed from
21317 glthread_recursive_lock_unlock. Return error code.
21318 (glthread_recursive_lock_destroy_multithreaded): Renamed from
21319 glthread_recursive_lock_destroy. Return error code.
21320 (glthread_once_call): Make static.
21321 (glthread_once_multithreaded): Renamed from glthread_once.
21322 * lib/tls.h: Include <errno.h>.
21323 (glthread_tls_key_init): New macro/function.
21324 (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
21325 (glthread_tls_set): New macro/function.
21326 (gl_tls_set): Define as wrapper around glthread_tls_set.
21327 (glthread_tls_key_destroy): New macro/function.
21328 (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
21329 Update function declarations.
21330 * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
21332 Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
21334 2008-08-04 Eric Blake <ebb9@byu.net>
21336 gnumakefile: use space, not TAB, outside of targets
21337 * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
21339 2008-08-02 Jim Meyering <meyering@redhat.com>
21341 getdate.y: avoid locale-dependent date parsing failure
21342 In Turkish locales, getdate would fail to recognize keywords
21343 containing a lowercase "i". The solution is not to rely on
21344 locale-sensitive case-conversion.
21345 * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
21346 (lookup_word): Use c_toupper in place of toupper.
21347 (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
21348 Reported by Vefa Bicakci <bicave@superonline.com> in
21349 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
21350 * modules/getdate (Depends-on): Add c-ctype.
21352 2008-08-02 Bruno Haible <bruno@clisp.org>
21354 * gnulib-tool (func_import): When updating or creating a .gitignore
21355 file, prepend each added line with a slash, and ignore leading slashes
21356 from the existing lines.
21357 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
21359 2008-08-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21361 Portability fix for GNU make 3.79.1.
21362 * top/GNUmakefile: Avoid 'else COND', which older GNU make
21363 versions do not understand.
21365 2008-08-01 Bruno Haible <bruno@clisp.org>
21367 Work around bug of HP-UX 10.20 cc with -0.0 literal.
21368 * tests/test-isnanf.h (zero): New variable.
21369 (main): Avoid literal -0.0f.
21370 * tests/test-isnand.h (zero): New variable.
21371 (main): Avoid literal -0.0.
21372 * tests/test-isnanl.h (zero): New variable.
21373 (main): Avoid literal -0.0L.
21374 * tests/test-isnan.c (zerof, zerod, zerol): New variables.
21375 (test_float, test_double, test_long_double): Avoid literals -0.0f,
21377 * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
21378 (test_signbitd): Avoid literal -0.0.
21379 (test_signbitl): Avoid literal -0.0L.
21380 * tests/test-ceilf1.c (zero): New variable.
21381 (main): Avoid literal -0.0f.
21382 * tests/test-ceill.c (zero): New variable.
21383 (main): Avoid literal -0.0L.
21384 * tests/test-floorf1.c (zero): New variable.
21385 (main): Avoid literal -0.0f.
21386 * tests/test-floorl.c (zero): New variable.
21387 (main): Avoid literal -0.0L.
21388 * tests/test-roundf1.c (zero): New variable.
21389 (main): Avoid literal -0.0f.
21390 * tests/test-round1.c (zero): New variable.
21391 (main): Avoid literal -0.0.
21392 * tests/test-roundl.c (zero): New variable.
21393 (main): Avoid literal -0.0L.
21394 * tests/test-truncf1.c (zero): New variable.
21395 (main): Avoid literal -0.0f.
21396 * tests/test-trunc1.c (zero): New variable.
21397 (main): Avoid literal -0.0.
21398 * tests/test-truncl.c (zero): New variable.
21399 (main): Avoid literal -0.0L.
21400 * tests/test-frexp.c (zero): New variable.
21401 (main): Avoid literal -0.0.
21402 * tests/test-frexpl.c (zero): New variable.
21403 (main): Avoid literal -0.0L.
21404 * tests/test-ldexpl.c (zero): New variable.
21405 (main): Avoid literal -0.0L.
21406 * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21407 (zerod, zerol): New variables.
21408 (test_function): Avoid literals -0.0, -0.0L.
21409 * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
21410 (zerod, zerol): New variables.
21411 (test_function): Avoid literals -0.0, -0.0L.
21412 * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21413 (zerod, zerol): New variables.
21414 (test_function): Avoid literals -0.0, -0.0L.
21415 * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
21416 (zerod, zerol): New variables.
21417 (test_function): Avoid literals -0.0, -0.0L.
21418 * tests/test-strtod.c (zero): New variable.
21419 (main): Avoid literal -0.0.
21420 Reported by Jonathan C. Patschke <jp@centtech.com>.
21422 2008-07-31 Jim Meyering <meyering@redhat.com>
21424 sha256.h: correct definition of SHA224_DIGEST_SIZE
21425 * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
21426 Reported by Paulie Pena IV <paulie4@gmail.com>.
21427 Define as 224 / 8, rather than as a literal.
21428 (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
21429 * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
21430 (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
21432 2008-07-31 Bruno Haible <bruno@clisp.org>
21434 * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
21435 on HP-UX 10.20 with "cc -Ae". Fix second conditional.
21436 Reported by Jonathan Patschke <jp@centtech.com>.
21438 2008-07-31 Bruno Haible <bruno@clisp.org>
21440 * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
21441 Reported by Paolo Bonzini <bonzini@gnu.org>.
21443 2008-07-30 Eric Blake <ebb9@byu.net>
21445 test-strtod: allow compilation without -lm
21446 * tests/test-strtod.c (main): Avoid link dependence on fabs.
21447 Reported by Dennis Clarke <blastwave@gmail.com>.
21449 2008-07-28 Jim Meyering <meyering@redhat.com>
21451 bootstrap: work also when there are no .po files in po/
21452 * build-aux/bootstrap (update_po_files): Complete the change
21453 that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
21455 2008-07-27 Jim Meyering <meyering@redhat.com>
21457 * users.txt: Add zile.
21459 2008-07-26 Ben Pfaff <blp@gnu.org>
21461 Add missing dependencies on new m4/exponent[fdl].m4 files.
21462 * modules/isnanf-nolibm: Add m4/exponentf.m4.
21463 * modules/isnand-nolibm: Add m4/exponentd.m4.
21464 * modules/isnanl-nolibm: Add m4/exponentl.m4.
21465 * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
21466 m4/isnan[fdl].m4, because the macros actually used moved.
21467 Reported by Jim Meyering.
21469 2008-07-14 Ben Pfaff <blp@gnu.org>
21472 * lib/isinf.c: New file.
21473 * lib/math.in.h: Define isinf macro if we have decided to replace
21475 * m4/isinf.m4: New file.
21476 * m4/math_h.m4: Initialize and substitute variables for isinf
21478 * modules/isinf: New file.
21479 * modules/isinf-tests: New file.
21480 * modules/math: Add substitutions for new module.
21481 * tests/test-isinf.c: New file.
21482 * doc/posix-functions/isinf.texi: Mention new module.
21483 * MODULES.html.sh: Mention new module.
21485 2008-07-14 Ben Pfaff <blp@gnu.org>
21487 Factor out some macros for use by additional modules.
21488 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
21490 * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
21492 * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
21494 * m4/exponentf.m4: New file.
21495 * m4/exponentd.m4: New file.
21496 * m4/exponentl.m4: New file.
21497 * modules/isnanf: Use new file m4/exponentf.m4.
21498 * modules/isnand: Use new file m4/exponentd.m4.
21499 * modules/isnanl: Use new file m4/exponentl.m4.
21501 2008-07-23 Ulrich Drepper <drepper@redhat.com>
21503 mktime.c: normalize tp->tm_isdst value to -1/0/1.
21504 * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
21505 Reported by Michael Ringe <Michael.Ringe@gmx.de> in
21506 <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
21508 * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
21509 readlink on platforms without PATH_MAX.
21511 2008-07-21 Eric Blake <ebb9@byu.net>
21513 Warn, not fail, on stale version.
21514 * top/GNUmakefile (_curr-ver): Tone down previous patch.
21516 Don't allow installation with stale devel version number.
21517 * top/GNUmakefile (_is-install-target): New macro.
21518 (_curr-ver): Forbid installation with stale version number.
21520 2008-07-20 Bruno Haible <bruno@clisp.org>
21522 * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
21524 * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
21526 2008-07-20 Bruno Haible <bruno@clisp.org>
21528 * lib/c-stack.h (c_stack_action): Add documentation.
21529 * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
21531 2008-07-20 Bruno Haible <bruno@clisp.org>
21533 * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
21534 * modules/readlink (License): Likewise.
21536 2008-07-17 Eric Blake <ebb9@byu.net>
21538 * modules/c-stack (Link): Fix typo.
21540 Make c-stack use libsigsegv, when available.
21541 * modules/c-stack (Depends-on): Add libsigsegv.
21542 * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
21544 * lib/c-stack.c (SIGSTKSZ): Define fallback.
21545 (segv_handler, overflow_handler, c_stack_action)
21546 [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
21547 implementation when libsigsegv is available, but only when using
21548 the library is necessary.
21549 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
21550 comment, explaining why XSI check fails on Linux.
21551 (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
21552 * tests/test-c-stack2.sh: Tweak skip message.
21553 * NEWS: Document new link-time requirements.
21555 2008-07-16 Eric Blake <ebb9@byu.net>
21557 c-stack: Expose false positives when not using libsigsegv.
21558 * modules/c-stack-tests (Files): Expand test.
21559 * tests/test-c-stack.c (main): Add means to conditionally trigger
21560 non-overflow SIGSEGV.
21561 * tests/test-c-stack2.sh: New file.
21563 2008-07-14 Bruno Haible <bruno@clisp.org>
21565 * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
21566 Reported by Eric Blake.
21568 2008-07-14 Sam Steingold <sds@gnu.org>
21569 Bruno Haible <bruno@clisp.org>
21571 New module libsigsegv.
21572 * modules/libsigsegv: New file.
21573 * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
21575 * MODULES.html.sh (Signal handling): New section.
21577 2008-07-14 Bruno Haible <bruno@clisp.org>
21579 * modules/unictype/ctype-* (Description): Add the word "function".
21580 Improves the resulting doc in MODULES.html.
21582 2008-07-12 Ben Pfaff <blp@gnu.org>
21584 Add longlong module.
21585 * modules/longlong: New file.
21587 2008-07-12 Bruno Haible <bruno@clisp.org>
21589 * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
21592 2008-07-10 Ben Pfaff <blp@gnu.org>
21595 * doc/posix-functions/isnan.texi: Mention new module.
21596 * lib/math.in.h: Define isnan macro if we have decided to replace
21598 * m4/isnan.m4: New file.
21599 * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
21600 macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
21602 (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
21604 * m4/math_h.m4: Initialize and substitute variables for isnan
21606 * modules/isnan: New file.
21607 * modules/isnan-tests: New file.
21608 * modules/math: Add substitutions for new module.
21609 * tests/test-isnan.c: New file.
21610 * MODULES.html.sh: Mention new module.
21612 2008-07-10 Ben Pfaff <blp@gnu.org>
21615 * lib/isnanf.m4: New file.
21616 * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
21617 (gl_HAVE_ISNANF_IN_LIBM): New macro.
21618 (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
21619 gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
21620 * modules/isnanf: New file.
21621 * modules/isnanf-tests: New file.
21622 * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
21624 * tests/test-isnanf-nolibm.c: factored most of its contents into
21625 new file tests/test-isnanf.h.
21626 * tests/test-isnanf.h: New file.
21627 * tests/test-isnanf.c: New file.
21628 * MODULES.html.sh: Mention new module.
21629 * doc/glibc-functions/isnanf.texi: Mention new module.
21631 2008-07-10 Ben Pfaff <blp@gnu.org>
21634 * lib/isnand.h: New file.
21635 * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
21636 (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
21637 gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
21638 functionality also.
21639 (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
21640 gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
21641 (gl_HAVE_ISNAND_IN_LIBM): New macro.
21642 * modules/isnand: New file.
21643 * modules/isnand-tests: New file.
21644 * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
21646 * tests/test-isnand-nolibm.c: factored most of its contents into
21647 new file tests/test-isnand.h.
21648 * tests/test-isnand.h: New file.
21649 * tests/test-isnand.c: New file.
21650 * MODULES.html.sh: Mention new module.
21652 2008-07-10 Ben Pfaff <blp@gnu.org>
21654 * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
21655 * lib/isnand.h: Rename lib/isnand-nolibm.h.
21656 * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
21657 * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
21658 * modules/isnanf-nolibm: Update references to renamed files.
21659 * modules/isnand-nolibm: Likewise.
21660 * modules/isnanf-nolibm-tests: Likewise.
21661 * modules/isnand-nolibm-tests: Likewise.
21662 * lib/frexp.c: Likewise.
21663 * lib/isfinite.c: Likewise.
21664 * lib/signbitd.c: Likewise.
21665 * lib/signbitf.c: Likewise.
21666 * lib/vasnprintf.c: Likewise.
21667 * tests/test-ceilf1.c: Likewise.
21668 * tests/test-ceilf2.c: Likewise.
21669 * tests/test-floorf1.c: Likewise.
21670 * tests/test-floorf2.c: Likewise.
21671 * tests/test-frexp.c: Likewise.
21672 * tests/test-round1.c: Likewise.
21673 * tests/test-round2.c: Likewise.
21674 * tests/test-roundf1.c: Likewise.
21675 * tests/test-strtod.c: Likewise.
21676 * tests/test-trunc1.c: Likewise.
21677 * tests/test-trunc2.c: Likewise.
21678 * tests/test-truncf1.c: Likewise.
21679 * tests/test-truncf2.c: Likewise.
21680 * NEWS: Mention the renamed header files.
21682 2008-07-11 Jim Meyering <meyering@redhat.com>
21684 vc-list-files: make the last-resort awk code more portable
21685 * build-aux/vc-list-files: Don't rely on awk's "sub" command.
21686 /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
21687 does not support it.
21689 2008-07-10 Eric Blake <ebb9@byu.net>
21691 Work with tar's bootstrap.
21692 * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
21693 where LIBSOURCES_DIR contains .#bootmp but must not be treated as
21696 2008-07-09 Jim Meyering <meyering@redhat.com>
21698 posix-shell.m4: fix typo that made this test malfunction
21699 * m4/posix-shell.m4: Remove capitalization in variable name.
21701 2008-07-08 Bruno Haible <bruno@clisp.org>
21703 * m4/onceonly.m4: Update comments.
21704 Reported by Ben Pfaff <blp@cs.stanford.edu>.
21706 2008-07-04 Jim Meyering <meyering@redhat.com>
21708 * users.txt: Add vc-dwim.
21709 (bison, coreutils): Use the gitweb URL.
21711 2008-07-03 Jim Meyering <meyering@redhat.com>
21713 * users.txt: Add libffcall. From Sam Steingold.
21715 2008-07-03 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
21717 getdate.y: do not ignore TZ with relative day, month or year offset
21718 * lib/getdate.y (get_date): Move the tz-handling block to follow the
21719 relative-date-handling, since otherwise, the latter would clobber the
21720 sole output (an updated Start value) of the tz-handling block.
21721 * tests/test-getdate.c: Tests for the fix
21723 2008-07-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
21725 Recognize 'foo_LIBRARIES += libgnu.a'.
21726 * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
21727 makefile snippet has already specified an installation location,
21730 2008-07-02 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
21732 getdate.y: factor out common actions
21733 * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
21734 Use them in place of open-coded actions.
21736 2008-07-01 Simon Josefsson <simon@josefsson.org>
21738 Add self-test for getdate module.
21739 * modules/getdate-tests: New file.
21740 * tests/test-getdate.c: New file.
21742 2008-06-29 Bruno Haible <bruno@clisp.org>
21744 * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
21746 Reported by Sylvain Beucler <beuc@beuc.net>.
21748 2008-06-29 Bruno Haible <bruno@clisp.org>
21750 * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
21751 * m4/gnulib-tool.m4: Update to match current gnulib-tool.
21753 2008-06-29 Bruno Haible <bruno@clisp.org>
21755 * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
21757 Reported by Sylvain Beucler <beuc@beuc.net>.
21759 2008-06-26 Jim Meyering <meyering@redhat.com>
21761 make several modules depend on the "open" module
21762 This provides slightly increased consistency when opening-for-write
21763 the name of a non-directory spelled with a trailing slash.
21764 * modules/chdir-safer: Likewise.
21765 * modules/chown: Likewise.
21766 * modules/clean-temp: Likewise.
21767 * modules/copy-file: Likewise.
21768 * modules/fchdir: Likewise.
21769 * modules/fcntl-safer: Likewise.
21770 * modules/pipe: Likewise.
21771 * modules/utime: Likewise.
21772 Prompted by Eric Blake and Bruno Haible.
21774 2008-06-24 Andreas Schwab <schwab@suse.de>
21776 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
21777 literals can be used as initializers for global variables.
21779 2008-06-23 Eric Blake <ebb9@byu.net>
21781 Make gnulib-cache.m4 easier to diff.
21782 * gnulib-tool (func_import): Allow newlines when reading cached
21783 gl_MODULES, and generate newlines when creating gnulib-cache.m4.
21785 2008-06-23 Bruno Haible <bruno@clisp.org>
21787 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
21788 (gl_PREREQ_SIGPROCMASK): Don't invoke it.
21789 * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
21790 m4/signalblocking.m4.
21791 (gl_PREREQ_SIGACTION): Don't invoke it.
21792 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
21793 gl_PREREQ_SIG_HANDLER_H.
21794 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21795 Don't check for sigaction here.
21797 2008-06-23 Bruno Haible <bruno@clisp.org>
21799 * lib/fatal-signal.c (fatal_signal_handler): Update comment.
21800 (install_handlers): Don't set the SA_RESETHAND flag.
21802 2008-06-23 Bruno Haible <bruno@clisp.org>
21804 * m4/sigaction.m4: Comment fixes.
21805 * lib/signal.in.h: Likewise.
21807 2008-06-23 Eric Blake <ebb9@byu.net>
21810 * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
21812 Avoid SA_ namespace.
21813 * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
21814 Reported by Ralf Wildenhues.
21816 Avoid test failure due to SA_RESTORER.
21817 * tests/test-sigaction.c (SA_MASK): New macro.
21818 (main): Avoid failing due to extension flags being set.
21819 Reported by Jim Meyering.
21821 Revert use of sig-handler.h in sigprocmask.c.
21822 * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
21823 it requires the existence of struct sigaction.
21824 * lib/sigprocmask.c (handler_t): Restore typedef.
21825 (rpl_signal, old_handlers): Use local type.
21827 2008-06-22 Bruno Haible <bruno@clisp.org>
21829 * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
21831 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21833 2008-06-22 Bruno Haible <bruno@clisp.org>
21835 * doc/posix-functions/siginterrupt.texi: Move note.
21837 * lib/signal.in.h (SA_RESTART): New macro.
21838 * lib/sigaction.c: Update comment.
21840 * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
21842 * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
21843 (gl_PREREQ_SIGPROCMASK): Invoke it.
21844 * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
21846 * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
21848 * lib/sigprocmask.c: Update a comment.
21850 2008-06-21 Eric Blake <ebb9@byu.net>
21852 Use sigaction module rather than signal().
21853 * modules/c-stack (Depends-on): Add sigaction.
21854 * modules/fatal-signal (Depends-on): Likewise.
21855 * modules/nanosleep (Depends-on): Likewise.
21856 * modules/sigprocmask (Files): Add sig-handler.h.
21857 * modules/sigaction (Files): Likewise.
21858 * lib/sig-handler.h (get_handler): New file, suggested by Paul
21860 * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
21861 (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
21862 * lib/fatal-signal.c (uninstall_handlers, install_handlers)
21863 (init_fatal_signals): Likewise.
21864 * lib/nanosleep.c (rpl_nanosleep): Likewise.
21865 (siginterrupt): Delete fallback.
21866 * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
21868 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
21871 New module sigaction, for mingw.
21872 * modules/sigaction: New module...
21873 * modules/sigaction-tests: ...and its test.
21874 * m4/sigaction.m4: New file.
21875 * lib/sigaction.c: Likewise.
21876 * tests/test-sigaction.c: Likewise.
21877 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
21878 * modules/signal (Makefile.am): Likewise.
21879 * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
21881 * doc/posix-headers/signal.texi (signal.h): Mention provided
21883 * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
21884 that sigaction is preferable.
21885 * doc/posix-functions/sigaction.texi (sigaction): Mention new
21887 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
21890 Improve robustness of sigprocmask by overriding signal.
21891 * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
21893 * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
21894 (SIGKILL, SIGSTOP): Provide fallbacks.
21895 (rpl_signal): Implement.
21896 (old_handlers, blocked_set): Mark volatile, since sigprocmask and
21897 signal can be called inside handlers.
21899 Fix nanosleep module on mingw.
21900 * modules/nanosleep (Depends-on): Add sys_select.
21901 * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
21903 Fix licensing of sigprocmask.
21904 * modules/raise (License): Relicense as LGPL.
21906 2008-06-21 Bruno Haible <bruno@clisp.org>
21908 * lib/propername.c (proper_name_utf8): Don't use the transliterated
21909 result if it contains question marks.
21910 Reported by Michael Geng <linux@michaelgeng.de>.
21912 2008-06-19 Bruno Haible <bruno@clisp.org>
21915 * doc/gnulib.texi: Include updated-stamp.texi.
21916 * doc/Makefile (GNULIB_TEXI_FILES): New variable.
21917 (updated-stamp.texi): New rule.
21918 (gnulib.info): Depend on it.
21919 * doc/.gitignore: Add updated-stamp.texi.
21920 Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
21922 2008-06-19 Bruno Haible <bruno@clisp.org>
21924 * doc/Makefile (gnulib.info): Update and simplify dependencies.
21925 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
21927 2008-06-19 Eric Blake <ebb9@byu.net>
21929 Fix VPATH 'make dist' with GNU make and non-VCS tarball.
21930 * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
21931 Reported by Stepan Kasal.
21933 2008-06-18 Bruno Haible <bruno@clisp.org>
21935 * lib/fatal-signal.c (init_fatal_signals): Add comment.
21936 Reported by Eric Blake.
21938 2008-06-18 Eric Blake <ebb9@byu.net>
21940 Work around cygwin 1.5.25 strsignal bug.
21941 * tests/test-strsignal.c: Allow for const char *.
21942 * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
21944 2008-06-18 Simon Josefsson <simon@josefsson.org>
21946 * users.txt: Update URL to article and add author/date
21949 2008-06-17 Bruno Haible <bruno@clisp.org>
21951 New macro gl_DISABLE_THREADS.
21952 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
21953 if the user did not pass --enable-threads or --disable-threads option.
21954 (gl_DISABLE_THREADS): New macro.
21955 Reported by Eric Blake <ebb9@byu.net>.
21957 2008-06-17 Bruno Haible <bruno@clisp.org>
21959 * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
21960 when the macro ignores it.
21961 Based on a patch by Eric Blake <ebb9@byu.net>.
21963 2008-06-17 Bruno Haible <bruno@clisp.org>
21965 * modules/tls (License): Change to LGPLv2+.
21966 Reported by Eric Blake.
21968 2008-06-17 Eric Blake <ebb9@byu.net>
21970 Simplify c-stack prerequisites.
21971 * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
21972 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
21973 no longer requires <ucontext.h> to exist. Optimize setrlimit
21975 (gl_PREREQ_C_STACK): Remove check for unused getcontext and
21978 Move c-stack test into testsuite.
21979 * modules/c-stack-tests: New file.
21980 * lib/c-stack.c [DEBUG]: Move test program...
21981 * tests/test-c-stack.c: ...into this new file. Skip rather than
21982 fail test if sigaltstack is lacking.
21983 * tests/test-c-stack.sh: New driver file.
21985 2008-06-16 Eric Blake <ebb9@byu.net>
21987 Use raise module consistently.
21988 * modules/fatal-signal (Depends-on): Add raise.
21989 * modules/sigprocmask (Depends-on): Likewise.
21990 * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
21991 * lib/sigprocmask.c (sigprocmask): Likewise.
21992 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
21993 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
21995 Fix compliance bug in sigpending.
21996 * lib/sigprocmask.c (sigpending): Return pending array via
21997 parameter, not return value.
21999 2008-06-14 Eric Blake <ebb9@byu.net>
22001 Improve obstack-printf test code.
22002 * tests/test-obstack-printf.c (test_function): Fix comment, and
22003 simplify usage of obstack_* in macros. Add a test for coverage.
22004 Reported by Bruno Haible.
22006 2008-06-14 Bruno Haible <bruno@clisp.org>
22008 * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
22009 array size as a constant, not as a const variable.
22010 * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
22011 AC_USE_SYSTEM_EXTENSIONS.
22012 * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
22013 Test whether the obstack_printf function actually exists.
22014 * modules/obstack-printf (Depends-on): Add extensions.
22015 (Include): Remove obstack.h.
22016 * modules/obstack-printf-posix (Depends-on): Add extensions.
22017 (Include): Remove obstack.h.
22019 2008-06-13 Eric Blake <ebb9@byu.net>
22021 Add obstack-printf and obstack-printf-posix modules.
22022 * modules/obstack-printf: New file.
22023 * modules/obstack-printf-posix: Likewise.
22024 * MODULES.html.sh (Misc): Mention them.
22025 * doc/glibc-functions/obstack_printf.texi (obstack_printf):
22027 * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
22029 * modules/stdio (Makefile.am): Accomodate new modules.
22030 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
22031 * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
22033 * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
22035 * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
22036 (gl_REPLACE_OBSTACK_PRINTF): New macros
22037 * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
22038 * tests/test-obstack-printf.c: New file.
22039 * modules/obstack-printf-tests: Likewise.
22040 * modules/obstack-printf-posix-tests: Likewise.
22042 2008-06-11 Bruno Haible <bruno@clisp.org>
22044 * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
22045 * lib/open.c: Include errno.h.
22046 (open): Fail when attempting to write to a file that has a trailing
22048 * tests/test-open.c (main): Test against trailing slash bug.
22049 * doc/posix-functions/open.texi: Mention the trailing slash bug.
22051 2008-06-10 Bruno Haible <bruno@clisp.org>
22053 * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
22054 for $? to work inside the trap command, with various /bin/sh-s.
22055 * tests/test-vc-list-files-cvs.sh: Likewise.
22057 2008-06-10 Bruno Haible <bruno@clisp.org>
22059 * lib/acl-internal.h: Don't include gettext.h here.
22060 * lib/set-mode-acl.c: Include gettext.h here.
22061 * lib/copy-acl.c: Likewise.
22063 2008-06-10 Bruno Haible <bruno@clisp.org>
22065 * lib/wait-process.h (wait_subprocess): Add termsigp argument.
22066 * lib/wait-process.c (wait_subprocess): Likewise.
22067 * lib/execute.h (execute): Add termsigp argument.
22068 * lib/execute.c (execute): Likewise.
22069 * lib/csharpcomp.c (compile_csharp_using_pnet,
22070 compile_csharp_using_mono, compile_csharp_using_sscli): Update.
22071 * lib/csharpexec.c (execute_csharp_using_pnet,
22072 execute_csharp_using_mono, execute_csharp_using_sscli): Update.
22073 * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
22074 compile_using_javac, compile_using_jikes, is_envjavac_gcj,
22075 is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
22076 is_jikes_present): Update.
22077 * lib/javaexec.c (execute_java_class): Update.
22078 * lib/javaversion.c (execute_and_read_line): Update.
22079 * NEWS: Document the changes.
22080 Reported by Eric Blake.
22082 2008-06-10 Eric Blake <ebb9@byu.net>
22084 Add missing include.
22085 * tests/test-strstr.c (includes): Add <signal.h>.
22086 * tests/test-strcasestr.c (includes): Likewise.
22087 * tests/test-memmem.c (includes): Likewise.
22089 2008-06-10 Bruno Haible <bruno@clisp.org>
22091 * lib/wait-process.c (wait_subprocess): Add an assertion.
22093 2008-06-10 Bruno Haible <bruno@clisp.org>
22095 * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
22097 2008-06-10 Bruno Haible <bruno@clisp.org>
22099 * tests/test-memmem.c (main): Reset SIGALRM to default handling before
22101 * tests/test-strcasestr.c (main): Likewise.
22102 * tests/test-strstr.c (main): Likewise.
22104 2008-06-09 Bruno Haible <bruno@clisp.org>
22106 Work around the Solaris 10 ACE ACLs ABI change.
22107 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
22108 declare if ACL_NO_TRIVIAL is present.
22109 (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
22110 NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
22111 NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
22112 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
22113 define if ACL_NO_TRIVIAL is present.
22114 (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
22115 and use the current ABI.
22116 (file_has_acl): Use same #if condition as elsewhere.
22117 * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
22118 in use, and use the current ABI.
22119 * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
22120 Reported by Jim Meyering.
22122 2008-06-09 Eric Blake <ebb9@byu.net>
22124 Work around environments that (stupidly) ignore SIGALRM.
22125 * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
22126 before using alarm().
22127 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22128 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22129 Reported by Ian Beckwith <ianb@erislabs.net>.
22131 Produce autobuild blurb earlier in log.
22132 * modules/autobuild (configure.ac-early): Move AB_INIT here.
22134 2008-06-09 Jim Meyering <meyering@redhat.com>
22135 and OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
22137 utimens.c: correct kernel bug work-around
22138 OndÅ™ej VaÅ¡Ãk found that the invalid return value of 280 indicates
22139 failure, not success, and the kernel bug we're trying to work
22140 around affects not just the utimensat call, but also the fallback
22142 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
22144 [HAVE_FUTIMENS]: Use the same work-around, here.
22146 2008-06-09 Jim Meyering <meyering@redhat.com>
22148 add more guards around definition of ACE_-related code
22149 * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
22150 ALLOW and ACE_OWNER are also defined.
22152 2008-06-08 Bruno Haible <bruno@clisp.org>
22154 * lib/acl-internal.h: Add me as co-author.
22155 * lib/file-has-acl.c: Likewise.
22156 * lib/set-mode-acl.c: Likewise.
22157 * lib/copy-acl.c: Likewise.
22159 2008-06-08 Bruno Haible <bruno@clisp.org>
22161 Add support for AIX ACLs.
22162 * lib/acl-internal.h (acl_nontrivial): New declaration.
22163 * lib/file-has-acl.c (acl_nontrivial): New function.
22164 (file_has_acl): Add implementation using AIX 4 ACL API.
22165 * lib/set-mode-acl.c (qset_acl): Likewise.
22166 * lib/copy-acl.c (qcopy_acl): Likewise.
22168 2008-06-08 Bruno Haible <bruno@clisp.org>
22170 Add support for HP-UX ACLs.
22171 * lib/acl-internal.h (acl_nontrivial): New declaration.
22172 * lib/file-has-acl.c (acl_nontrivial): New function.
22173 (file_has_acl): Add implementation using HP-UX 11 ACL API.
22174 * lib/set-mode-acl.c (qset_acl): Likewise.
22175 * lib/copy-acl.c (qcopy_acl): Likewise.
22177 2008-06-08 Bruno Haible <bruno@clisp.org>
22179 Add support for Cygwin ACLs.
22180 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
22181 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
22182 the chmod_or_fchmod call.
22183 * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
22185 2008-06-08 Bruno Haible <bruno@clisp.org>
22187 Fix bug with setuid modes in Solaris 10+ code.
22188 * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
22189 succeeded, when the mode contains some special bits.
22191 2008-06-08 Bruno Haible <bruno@clisp.org>
22193 Add support for Solaris 7..10 ACLs.
22194 * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
22196 * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
22198 (file_has_acl): Add implementation using Solaris 7..10 ACL API.
22199 * lib/set-mode-acl.c (qset_acl): Likewise.
22200 * lib/copy-acl.c (qcopy_acl): Likewise.
22202 2008-06-08 Bruno Haible <bruno@clisp.org>
22204 * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
22206 * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
22207 (acl_access_nontrivial): Remove MacOS X case.
22208 (file_has_acl): Use acl_extended_nontrivial.
22209 * lib/copy-acl.c (qcopy_acl): Likewise.
22211 2008-06-08 Bruno Haible <bruno@clisp.org>
22213 * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
22215 2008-06-08 Jim Meyering <meyering@redhat.com>
22217 * modules/acl (Maintainer): Add Bruno Haible.
22219 2008-06-07 Bruno Haible <bruno@clisp.org>
22221 Improve support for Tru64 ACLs.
22222 * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
22225 2008-06-07 Bruno Haible <bruno@clisp.org>
22227 Add support for MacOS X ACLs.
22228 * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
22229 ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
22230 * lib/set-mode-acl.c (qset_acl): Likewise.
22231 * lib/copy-acl.c (qcopy_acl): Likewise.
22233 2008-06-07 Bruno Haible <bruno@clisp.org>
22235 Fix memory leak introduced on 2008-05-22.
22236 * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
22239 2008-06-07 Bruno Haible <bruno@clisp.org>
22241 * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
22242 to construct an empty ACL.
22244 2008-06-07 Bruno Haible <bruno@clisp.org>
22246 * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
22248 * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
22250 2008-06-07 Bruno Haible <bruno@clisp.org>
22252 * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
22253 * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
22255 2008-06-07 Bruno Haible <bruno@clisp.org>
22257 * doc/posix-functions/_setjmp.texi: Explain the use of this function
22258 regardless of POSIX.
22259 * doc/posix-functions/_longjmp.texi: Likewise.
22260 * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
22261 SystemV platform in this case.
22263 2008-06-06 Eric Blake <ebb9@byu.net>
22265 Document abort() bugs.
22266 * doc/posix-functions/abort.texi (abort): Mention anomalies.
22268 * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
22269 * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
22271 * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
22272 siglongjmp, but only as a macro.
22273 * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
22275 * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
22277 Tweak documentation to cover cygwin argz bugs.
22278 * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
22279 argz bug fix; no code change needed since no cygwin releases
22280 occurred between the last fix and the bug being tested.
22281 * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
22282 module and recently fixed cygwin bugs.
22283 * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
22284 * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
22285 * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
22286 * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
22287 * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
22289 * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
22290 * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
22291 * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
22292 * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
22293 * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
22294 * doc/glibc-functions/argz_stringify.texi (argz_stringify):
22297 Avoid gcc warning on cygwin.
22298 * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
22299 !ACL_NO_TRIVIAL]: Avoid unused variable.
22301 2008-06-05 Eric Blake <ebb9@byu.net>
22303 Be tolerant of UNKNOWN version in gnulib-tool test dir.
22304 * top/GNUmakefile (_dummy): Warn rather than reconfigure if
22305 git-version-gen fails to come up with a version.
22306 Reported by Simon Josefsson.
22308 2008-06-05 Jim Meyering <meyering@redhat.com>
22309 Paul Eggert <eggert@cs.ucla.edu>
22311 utimens.c: work around a probable Linux kernel bug
22312 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
22313 appears to be a kernel bug that causes utimensat to return 280
22314 instead of 0, indicating success.
22316 2008-06-04 Bruno Haible <bruno@clisp.org>
22318 * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
22321 2008-06-04 Bruno Haible <bruno@clisp.org>
22323 * lib/acl-internal.h (acl_access_nontrivial): New declaration.
22324 * lib/file-has-acl.c (acl_access_nontrivial): New function.
22325 (file_has_acl): Use it. Save errno afterwards.
22326 * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
22328 2008-06-03 Bruno Haible <bruno@clisp.org>
22330 * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
22331 draft code. Simplify #ifs.
22332 * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
22333 Put Solaris code after POSIX-draft code. Fix comments regarding
22334 Solaris 10, HP-UX. Mention Cygwin.
22335 * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
22337 2008-06-03 Eric Blake <ebb9@byu.net>
22339 Provide fallback for older kernels.
22340 * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
22341 Provide runtime fallback if kernel lacks support.
22342 Reported by Mike Frysinger.
22344 2008-06-02 Bruno Haible <bruno@clisp.org>
22346 * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
22349 2008-06-02 Bruno Haible <bruno@clisp.org>
22351 * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
22352 * lib/copy-acl.c (qcopy_acl): Update comment.
22354 2008-06-02 Bruno Haible <bruno@clisp.org>
22356 * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
22359 2008-06-02 Bruno Haible <bruno@clisp.org>
22361 * tests/test-file-has-acl.sh: Use different code for Cygwin.
22362 * tests/test-set-mode-acl.sh: Likewise.
22363 * tests/test-copy-acl.sh: Likewise.
22364 * tests/test-copy-file.sh: Likewise.
22366 2008-06-02 Bruno Haible <bruno@clisp.org>
22368 * tests/test-file-has-acl.sh: Remove unused code.
22370 2008-06-01 Bruno Haible <bruno@clisp.org>
22372 * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
22373 (copy_acl): Just a wrapper around qcopy_acl that emits the error
22375 * lib/set-mode-acl.c (qset_acl): Document return value precisely.
22377 2008-06-01 Bruno Haible <bruno@clisp.org>
22379 * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
22380 tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
22381 needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
22383 * modules/acl-tests (configure.ac): Remove tests now contained in
22386 2008-06-02 Jim Meyering <meyering@redhat.com>
22388 announce-gen: use a better key-server host name
22389 * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
22390 it may be more consistently reliable. Suggested by Werner Koch
22391 in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
22393 2008-06-01 Bruno Haible <bruno@clisp.org>
22395 * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
22396 Reported by Voroskoi Andras <voroskoi@gmail.com>.
22398 2008-06-01 Voroskoi Andras <voroskoi@gmail.com> (tiny change)
22400 * lib/stdio-impl.h [__DragonFly__]: Fix typo.
22402 2008-06-01 Bruno Haible <bruno@clisp.org>
22405 * tests/test-file-has-acl.sh: New file.
22406 * tests/test-file-has-acl.c: New file.
22407 * tests/test-set-mode-acl.sh: New file.
22408 * tests/test-set-mode-acl.c: New file.
22409 * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
22410 * tests/test-copy-acl.c: New file.
22411 * modules/acl-tests: New file, based on modules/copy-file-tests.
22412 * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
22413 (Depends-on): Add acl-tests.
22414 (configure.ac): Remove checks.
22415 (Makefile.am): Don't create test-sameacls program here any more.
22417 2008-06-01 Bruno Haible <bruno@clisp.org>
22419 * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
22420 * tests/test-sameacls.c: Include progname.h.
22421 (main): Invoke set_program_name. Portability fixes for MacOS X,
22424 2008-06-01 Bruno Haible <bruno@clisp.org>
22426 * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
22428 Reported by VOROSKOI Andras <voroskoi@gmail.com>.
22430 2008-06-01 Bruno Haible <bruno@clisp.org>
22432 * modules/rpmatch (Depends-on): Add strdup.
22434 2008-06-01 Bruno Haible <bruno@clisp.org>
22436 * lib/pipe.c: Include unistd-safer.h.
22437 (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
22438 * modules/pipe (Depends-on): Add unistd-safer.
22440 2008-05-30 Simon Josefsson <simon@josefsson.org>
22442 * modules/autobuild (configure.ac): Call AB_INIT.
22444 2008-05-30 Simon Josefsson <simon@josefsson.org>
22446 * tests/test-getaddrinfo.c: Don't print debug messages by default.
22447 Suggested by Bruno Haible <bruno@clisp.org>.
22449 2008-05-30 Simon Josefsson <simon@josefsson.org>
22451 * tests/test-base64.c: Cast size_t to unsigned long when invoking
22452 printf. Use %lu instead of %d. Reported by Bruno Haible
22455 2008-05-29 Eric Blake <ebb9@byu.net>
22457 Prefer new POSIX 200x interfaces over futimesat.
22458 * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
22459 * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
22461 [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
22463 2008-05-28 Bruno Haible <bruno@clisp.org>
22465 * modules/stpcpy (License): Change to LGPLv2+.
22466 Requested by David Lutterkort <dlutter@redhat.com>.
22468 2008-05-27 Bruno Haible <bruno@clisp.org>
22470 * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
22472 Reported by Jose E. Marchesi <jemarch@gnu.org>.
22474 2008-05-27 Bruno Haible <bruno@clisp.org>
22476 * modules/iconv_open (Link): New section, from module 'iconv'.
22477 * modules/striconv (Link): Likewise.
22478 * modules/striconveh (Link): Likewise.
22479 * modules/xstriconv (Link): Likewise.
22480 * modules/unicodeio (Link): Likewise.
22481 * modules/propername (Link): Likewise.
22482 Reported by Jim Meyering.
22484 2008-05-26 Jim Meyering <meyering@redhat.com>
22486 sha256: do not artificially restrict buffer length to be < 2^32
22487 * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
22488 uint32_t to size_t.
22489 * lib/sha256.c (sha256_conclude_ctx): Change type of a local
22492 avoid unaligned access errors, e.g., on sparc
22493 * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
22494 direct access through a possibly-unaligned uint64* pointer.
22495 * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
22496 direct access through a possibly-unaligned uint32* pointer.
22497 Prompted by this patch from Tom "spot" Callaway:
22498 http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
22500 sha512.c: fix typo in comment
22501 * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
22503 2008-05-25 Bruno Haible <bruno@clisp.org>
22505 * lib/set-mode-acl.c: Renamed from lib/acl.c.
22506 * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
22507 (Makefile.am): Update lib_SOURCES.
22509 2008-05-25 Bruno Haible <bruno@clisp.org>
22511 * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
22513 2008-05-25 Jim Meyering <meyering@redhat.com>
22515 useless-if-before-free: freed expr may have white-space differences
22516 * build-aux/useless-if-before-free: Recognize cases in which the
22517 freed expression differs from the tested one in embedded white
22518 space, e.g., if (p[i + 1]) free(p[i+1]). Correct thinko in prev:
22519 $1 was used, so we can't make any regexp shy. Improved tests now
22522 useless-if-before-free: accept white space in the expression.
22523 * build-aux/useless-if-before-free: For now, any white space
22524 in the expression must be identical in the free argument.
22526 useless-if-before-free: efficiency tweak
22527 * build-aux/useless-if-before-free: Make the expression-matching
22529 Make the *outer* regexp shy, not the expr-matching one.
22531 update code-in-comment to accept cast of free arg
22532 * build-aux/useless-if-before-free: Update regexp.
22534 2008-05-25 Bruno Haible <bruno@clisp.org>
22536 * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
22537 * modules/copy-file-tests (Files, Makefile.am): Update.
22538 * tests/test-copy-file.c (func_test_copy): Update.
22540 2008-05-24 Andreas Färber <andreas.faerber@web.de> (tiny change)
22542 * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
22544 2008-05-23 Bruno Haible <bruno@clisp.org>
22546 Improve support for ACLs on OSF/1.
22547 * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
22548 Remove fallback for unknown flavors of ACLs.
22550 2008-05-22 Bruno Haible <bruno@clisp.org>
22552 Add support for ACLs on OSF/1.
22553 * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
22555 (acl_free_text): New macro fallback.
22556 * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
22558 * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
22559 acl_free_text function. Require AC_C_INLINE.
22561 2008-05-22 Bruno Haible <bruno@clisp.org>
22563 Make copy_acl work on MacOS X 10.5.
22564 * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
22565 (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
22566 * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
22567 If MODE_INSIDE_ACL, don't assume that every system has the same text
22568 representation for ACLs as FreeBSD.
22569 * lib/copy-acl.c (copy_acl): Add support for platforms with
22571 * lib/file-has-acl.c (file_has_acl): Likewise.
22572 * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
22573 FreeBSD, MacOS X, or IRIX, respectively.
22575 2008-05-22 Bruno Haible <bruno@clisp.org>
22577 * lib/acl.h: Don't include <sys/acl.h>.
22578 (GETACLCNT): Move fallback to lib/acl-internal.h.
22579 * lib/acl-internal.h: Include <sys/acl.h> here.
22580 (GETACLCNT): New macro fallback, moved here from lib/acl.h.
22582 2008-05-22 Bruno Haible <bruno@clisp.org>
22584 Split off copy_acl function to separate file.
22585 * lib/copy-acl.c: New file, extracted from lib/acl.c.
22586 * lib/acl.c (copy_acl): Moved function to separate file.
22587 * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
22588 * modules/acl (Files): Add lib/copy-acl.c.
22589 (Makefiles.am): Augment lib_SOURCES.
22591 2008-05-22 Bruno Haible <bruno@clisp.org>
22593 * modules/copy-file-tests: New file.
22594 * tests/test-copy-file.sh: New file.
22595 * tests/test-copy-file.c: New file.
22596 * tests/test-copy-file-sameacls.c: New file.
22598 2008-05-22 Eric Blake <ebb9@byu.net>
22601 * tests/test-memcmp.c (main): Pass NULL indirectly.
22603 2008-05-21 Bruno Haible <bruno@clisp.org>
22605 Add reference doc about ACLs.
22606 * doc/acl-resources.txt: New file.
22607 * doc/acl-cygwin.txt: New file.
22609 2008-05-21 Bruno Haible <bruno@clisp.org>
22611 Avoid one more warning from gcc.
22612 * lib/vasnprintf.c (IF_LINT): Update comments.
22613 (VASNPRINTF): Use it also for the 'prefix' array initializer.
22615 2008-05-21 Jim Meyering <meyering@redhat.com>
22617 avoid a warning from gcc
22618 * lib/vasnprintf.c (IF_LINT): Define.
22619 (scale10_round_decimal_long_double):
22620 Use it to avoid a "may be used uninitialized" warning.
22621 (scale10_round_decimal_double): Likewise.
22623 2008-05-21 Simon Josefsson <simon@josefsson.org>
22625 * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
22628 2008-05-20 Bruno Haible <bruno@clisp.org>
22630 * tests/test-memcmp.c (main): Test also the sign of the result. Test
22631 against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
22633 2008-05-20 Simon Josefsson <simon@josefsson.org>
22635 * modules/memcmp-tests: New file.
22636 * tests/test-memcmp.c: New file.
22638 2008-05-19 Bruno Haible <bruno@clisp.org>
22640 * modules/propername (Notice, configure.ac): Put quoted "..." into
22642 * lib/propername.h: Update comments accordingly.
22643 Reported by Eric Blake.
22645 2008-05-19 Martin Lambers <marlam@marlam.de> (tiny change)
22647 * modules/getpass-gnu (Depends-on): Add fseeko.
22649 2008-05-19 Simon Josefsson <simon@josefsson.org>
22651 * modules/base64-tests: New file.
22653 2008-05-19 Bo Borgerson <gigabo@gmail.com>
22655 * lib/base64.c (base64_decode_ctx): If a decode context structure
22656 was passed in use it to ignore newlines. If a context structure
22657 was _not_ passed in, continue to treat newlines as garbage (this
22658 is the historical behavior). Formerly base64_decode.
22659 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
22660 takes a decode context structure.
22661 * lib/base64.h (base64_decode): Macro for four-argument calls.
22662 (base64_decode_alloc): Likewise.
22663 * lib/base64.c (base64_decode_ctx): If a decode context structure
22664 was passed in use it to ignore newlines. If a context structure
22665 was _not_ passed in, continue to treat newlines as garbage (this
22666 is the historical behavior). Formerly base64_decode.
22667 (base64_decode_alloc_ctx): Formerly base64_decode_alloc. Now
22668 takes a decode context structure.
22669 * lib/base64.h (base64_decode): Macro for four-argument calls.
22670 (base64_decode_alloc): Likewise.
22672 2008-05-19 Jim Meyering <meyering@redhat.com>
22674 avoid a warning from gcc
22675 * lib/trim.c (IF_LINT): Define.
22676 (trim2): Use it to avoid a "may be used uninitialized" warning.
22679 * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
22681 2008-05-19 Bruno Haible <bruno@clisp.org>
22683 * doc/glibc-functions/getpass.texi: Document limits of other
22686 2008-05-19 Simon Josefsson <simon@josefsson.org>
22687 Bruno Haible <bruno@clisp.org>
22689 * doc/glibc-functions/getpass.texi: Document gnulib implementation.
22691 2008-05-18 Bruno Haible <bruno@clisp.org>
22693 * modules/propername: New file, from GNU gettext.
22694 * lib/propername.h: New file, from GNU gettext.
22695 * lib/propername.c: New file, from GNU gettext.
22696 * MODULES.html.sh (Internationalization functions): Add propername.
22698 2008-05-16 Jim Meyering <meyering@redhat.com>
22699 Bruno Haible <bruno@clisp.org>
22701 Avoid some warnings from "gcc -Wshadow".
22702 * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
22704 2008-05-15 Eric Blake <ebb9@byu.net>
22706 Extend previous patch to cygwin 1.7.0.
22707 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
22708 fast implementation in cygwin >= 1.7.0.
22709 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22710 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22712 2008-05-15 Bruno Haible <bruno@clisp.org>
22714 * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
22715 implementation in glibc >= 2.9.
22716 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
22717 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22719 2008-05-15 Bruno Haible <bruno@clisp.org>
22721 * MODULES.html.sh (Internationalization functions): Remove linebreak.
22722 (Unicode string functions): Add unilbrk/*.
22723 Reported by Karl Berry.
22725 2008-05-15 Eric Blake <ebb9@byu.net>
22727 Fix violation of <stdbool.h> replacement in regex.
22728 * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
22729 * lib/regexec.c (re_search_internal): Likewise.
22730 Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
22732 2008-05-15 Jim Meyering <meyering@redhat.com>
22734 avoid distracting test output when git or cvs is not found
22735 * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
22736 * tests/test-vc-list-files-git.sh: Likewise.
22738 2008-05-15 Eric Blake <ebb9@byu.net>
22740 Glibc finally accepted the memmem speedup code, bugzilla #5514.
22741 * doc/glibc-functions/memmem.texi (memmem): Mention last broken
22743 * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
22744 * doc/posix-functions/strstr.texi (strstr): Likewise.
22745 * lib/str-two-way.h (MAX): Sychronize with glibc.
22747 2008-05-15 Paolo Bonzini <bonzini@gnu.org>
22749 * lib/regcomp.c (optimize_utf8): Add a note on why we test
22751 (calc_first): Initialize constraint field.
22752 (duplicate_node_closure): Use it instead of special casing ANCHORS.
22754 (duplicate_node): Merge constraint field for all node types.
22755 (calc_eclosure_iter): Look at constraint field for all node types.
22756 * lib/regex_internal.c (create_cd_newstate): Don't look at
22759 2008-05-14 Bruno Haible <bruno@clisp.org>
22761 Help GCC to do better code generation.
22762 * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
22763 * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
22764 * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
22765 (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
22766 Declare with attribute 'malloc' if supported.
22768 2008-05-14 Lasse Collin <lasse.collin@tukaani.org>
22770 use "echo STR|wc -c" rather than unportable "expr length STR"
22771 * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
22772 OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
22774 2008-05-14 Jim Meyering <meyering@redhat.com>
22776 use dd ibs=$n count=1 ... rather than less-portable head -c$n
22777 * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
22778 by Solaris 10's /bin/head or by the one from HP-UX 11.x.
22779 Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
22782 2008-05-14 Eric Blake <ebb9@byu.net>
22784 Avoid quadratic growth in gl_LIBSOURCES.
22785 * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
22786 Suggested by Bruno Haible.
22789 * modules/xmemdup0-tests: New file.
22790 * tests/test-xmemdup0.c: Likewise.
22792 2008-05-13 Eric Blake <ebb9@byu.net>
22794 Split xmemdup0 into its own module.
22795 * modules/xmemdup0: New file.
22796 * lib/xmemdup0.h: Likewise.
22797 * lib/xmemdup0.c: Likewise.
22798 * MODULES.html.sh (Memory management functions): Add xmemdup0.
22799 * lib/xalloc.h (xmemdup0): Remove.
22800 * lib/xmalloc.c (xmemdup0): Likewise.
22802 2008-05-13 Eric Blake <ebb9@byu.net>
22803 Bruno Haible <bruno@clisp.org>
22805 Reduce number of forks required during autoconf.
22806 * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
22807 and gl_LIBSOURCES_DIR.
22808 (func_emit_initmacro_end): Use them here in a single m4_syscmd...
22809 (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
22810 m4_syscmd per file.
22811 <m4_foreach_w>: Move...
22812 * m4/gnulib-common.m4 (m4_foreach_w): ...here.
22814 2008-05-13 Eric Blake <ebb9@byu.net>
22816 * gnulib-tool: Fix various comment typos.
22818 2008-05-12 Bruno Haible <bruno@clisp.org>
22820 Tailor the linebreaking algorithm.
22821 * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
22823 2008-05-12 Bruno Haible <bruno@clisp.org>
22825 Update to Unicode 5.0.0.
22826 * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22827 LBP_JV, LBP_JT. Redistribute values.
22828 (unilbrk_table): Change size.
22829 * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
22830 Unicode TR#14 rev. 22.
22831 * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
22832 LBP_JV, LBP_JT. Redistribute values.
22833 (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
22834 (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
22836 * lib/unilbrk/lbrkprop1.h: Regenerated.
22837 * lib/unilbrk/lbrkprop2.h: Regenerated.
22838 * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
22839 Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
22840 * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
22842 * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
22844 * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
22846 * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
22847 * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
22848 * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
22849 * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
22850 * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
22851 * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
22853 2008-05-11 Bruno Haible <bruno@clisp.org>
22855 * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
22857 2008-05-11 Bruno Haible <bruno@clisp.org>
22859 * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
22860 * modules/unilbrk/gen-lbrk: New file.
22862 2008-05-11 Bruno Haible <bruno@clisp.org>
22864 * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
22865 * m4/sha512.m4 (gl_SHA512): Likewise.
22867 2008-05-11 Jim Meyering <meyering@redhat.com>
22869 New modules: crypto/sha256, crypto/sha512 (from coreutils)
22870 * modules/crypto/sha256: New file.
22871 * modules/crypto/sha512: Likewise.
22872 * lib/sha256.c: Likewise.
22873 * lib/sha256.h: Likewise.
22874 * lib/sha512.c: Likewise.
22875 * lib/sha512.h: Likewise.
22876 * lib/u64.h: Likewise.
22877 * m4/sha256.m4: Likewise.
22878 * m4/sha512.m4: Likewise.
22879 * MODULES.html.sh (Cryptographic computations (low-level)): List them.
22881 2008-05-10 Bruno Haible <bruno@clisp.org>
22883 * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
22884 (Input/Output <stdio.h>): Add xprintf.
22885 (Signal handling <signal.h>): Add strsignal.
22886 (Cryptographic computations (high-level)): Add crypto/gc-camellia.
22887 (Core language properties): Add func.
22888 (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
22889 (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
22891 (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
22892 (Input/output): New section.
22893 (File system functions): Add openat-die, stat-macros.
22894 (Networking functions): Add sockets.
22895 (Unicode string functions): Add unictype/*.
22896 (Support for building libraries and executables): Add gperf.
22897 (Support for building documentation): Add agpl-3.0.
22898 (Misc): Add nocrash.
22900 2008-05-10 Bruno Haible <bruno@clisp.org>
22902 * modules/unictype/gen-ctype: New file.
22904 2008-05-10 Jim Meyering <meyering@redhat.com>
22906 Make chdir-safer.c more efficient on a system with no symlinks.
22907 * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
22908 also if ELOOP is zero. Suggested by Bruno Haible.
22910 Make chdir-safer.c slightly safer.
22911 * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
22912 not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
22914 Avoid compile failure on systems without ELOOP (like mingw).
22915 * lib/chdir-safer.c (ELOOP): Define if not already defined.
22916 Reported by Bruno Haible.
22918 2008-05-10 Bruno Haible <bruno@clisp.org>
22920 * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
22921 (is_utf8_encoding): Use a case-insensitive comparison.
22922 * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
22925 2008-05-10 Bruno Haible <bruno@clisp.org>
22927 * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
22928 (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
22929 * lib/unilbrk/ulc-common.h (iconv_string_length,
22930 iconv_string_keeping_offsets): Remove declarations.
22931 * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
22932 Don't include <iconv.h>, streq.h, xsize.h.
22933 (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
22935 * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
22936 <iconv.h>, streq.h, xsize.h.
22937 (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
22939 * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
22940 * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
22941 uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
22942 * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
22944 2008-05-10 Bruno Haible <bruno@clisp.org>
22946 * modules/unilbrk/ulc-width-linebreaks-tests: New file.
22947 * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
22949 * modules/unilbrk/u32-width-linebreaks-tests: New file.
22950 * tests/unilbrk/test-u32-width-linebreaks.c: New file.
22952 * modules/unilbrk/u16-width-linebreaks-tests: New file.
22953 * tests/unilbrk/test-u16-width-linebreaks.c: New file.
22955 * modules/unilbrk/u8-width-linebreaks-tests: New file.
22956 * tests/unilbrk/test-u8-width-linebreaks.c: New file.
22958 * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
22959 * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
22961 * modules/unilbrk/u32-possible-linebreaks-tests: New file.
22962 * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
22964 * modules/unilbrk/u16-possible-linebreaks-tests: New file.
22965 * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
22967 * modules/unilbrk/u8-possible-linebreaks-tests: New file.
22968 * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
22970 2008-05-10 Bruno Haible <bruno@clisp.org>
22972 Split up 'linebreak' module.
22973 * lib/unilbrk.h: New file, based on lib/linebreak.h.
22974 * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
22975 * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
22977 * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
22978 * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
22979 * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
22981 * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
22983 * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
22985 * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
22986 * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
22987 * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
22989 * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
22991 * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
22993 * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
22995 * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
22997 * modules/unilbrk/base: New file.
22998 * modules/unilbrk/tables: New file.
22999 * modules/unilbrk/u8-possible-linebreaks: New file.
23000 * modules/unilbrk/u16-possible-linebreaks: New file.
23001 * modules/unilbrk/u32-possible-linebreaks: New file.
23002 * modules/unilbrk/ulc-common: New file.
23003 * modules/unilbrk/ulc-possible-linebreaks: New file.
23004 * modules/unilbrk/u8-width-linebreaks: New file.
23005 * modules/unilbrk/u16-width-linebreaks: New file.
23006 * modules/unilbrk/u32-width-linebreaks: New file.
23007 * modules/unilbrk/ulc-width-linebreaks: New file.
23008 * lib/linebreak.h: Remove file.
23009 * lib/linebreak.c: Remove file.
23010 * m4/linebreak.m4: Remove file.
23011 * modules/linebreak: Remove file.
23012 * NEWS: Mention the changes.
23014 2008-05-09 Eric Blake <ebb9@byu.net>
23017 * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
23019 * lib/xmalloc.c (xmemdup0): New C implementation.
23021 2008-05-08 Bruno Haible <bruno@clisp.org>
23023 * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
23025 2008-05-07 Eric Blake <ebb9@byu.net>
23027 Support cross-compilation of <wctype.h>.
23028 * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
23031 2008-05-06 Soren Hansen <soren@ubuntu.com> (tiny change)
23033 * build-aux/vc-list-files: Add support for bzr.
23035 2008-05-03 Jim Meyering <meyering@redhat.com>
23037 avoid failed assertion with tight malloc
23038 * tests/test-getndelim2.c: Correct an off-by-one assertion.
23040 2008-05-03 Simon Josefsson <simon@josefsson.org>
23042 * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
23043 are needed from arpa/inet.h.
23044 * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
23045 Reported by Bruno Haible.
23047 2008-05-02 Jim Meyering <meyering@redhat.com>
23049 avoid compilation error on FreeBSD 6
23050 * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
23052 2008-05-01 Jim Meyering <meyering@redhat.com>
23054 useless-if-before-free: correct --help's exit status description
23055 * build-aux/useless-if-before-free (usage): Like grep, exit 0
23056 for one or more matches, etc. Reported by Bruno Haible.
23058 vc-list-files: make the stand-alone gnulib test work
23059 * modules/vc-list-files-tests (configure.ac):
23060 Define and AC_SUBST abs_aux_dir.
23061 (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
23062 $(abs_top_srcdir) to each script and having each of them
23063 duplicate the work of setting PATH, set PATH here, using
23064 the new variable, abs_aux_dir instead.
23065 * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
23066 * tests/test-vc-list-files-git.sh: Likewise.
23067 Reported by Bruno Haible.
23069 2008-05-01 Bruno Haible <bruno@clisp.org>
23071 * lib/getndelim2.c (getndelim2): Fix newsize computation during
23072 reallocation. Rename 'done' to 'found_delimiter'.
23074 2008-05-01 Jim Meyering <meyering@redhat.com>
23076 vc-list-files: accommodate /bin/sh like the one from Solaris 10
23077 * build-aux/vc-list-files: Use `...`, not $(...).
23079 2008-04-30 Jim Meyering <meyering@redhat.com>
23081 add tests for vc-list-files
23082 * modules/vc-list-files-tests: New module.
23083 * tests/test-vc-list-files-cvs.sh: New file.
23084 * tests/test-vc-list-files-git.sh: New file.
23086 avoid a warning from gcc
23087 * lib/getndelim2.c (IF_LINT): Define.
23088 (getndelim2): Use it to avoid a "may be used uninitialized" warning.
23090 vc-list-files: work properly with build-aux/cvsu, too
23091 * build-aux/vc-list-files: Hoist the "./"-removing code to apply
23092 to all cvs-based clauses.
23094 vc-list-files: work properly in the CVS+awk case, too
23095 * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
23097 vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
23098 * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
23099 take more than one file argument, so . Add quotes, just in case $dir
23100 ever contains a shell meta-character. Prompted by Soren Hansen in
23101 <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
23103 2008-04-29 Eric Blake <ebb9@byu.net>
23105 Optimize getndelim2 to use block operations when possible.
23106 * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
23107 freadseek, and memchr2.
23108 * lib/getndelim2.c (getndelim2): Use them for block reads.
23110 2008-04-29 Bruno Haible <bruno@clisp.org>
23112 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
23113 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23114 * modules/inet_ntop (Depends-on): Add extensions.
23115 * modules/inet_pton (Depends-on): Likewise.
23116 Reported by Simon Josefsson.
23118 2008-04-29 Jim Meyering <meyering@redhat.com>
23120 When the is more than one match in a block, match all of them.
23121 * build-aux/useless-if-before-free: Iterate through each block
23122 until there are no more matches.
23124 Fix broken useless-if-before-free script.
23125 * build-aux/useless-if-before-free: Fix typo: missing "?" after
23126 the expression to match cast of argument to free-like function.
23128 2008-04-29 Eric Blake <ebb9@byu.net>
23131 * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
23133 2008-04-29 Jim Meyering <meyering@redhat.com>
23135 Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
23136 * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
23137 by gnulib to exist and to declare e.g., inet_ntop.
23138 Don't include "inet_ntop.h", now removed.
23140 * m4/arpa_inet_h.m4: Remove trailing blanks.
23142 2008-04-29 Eric Blake <ebb9@byu.net>
23144 Silence valgrind on safe reads beyond potential array bounds.
23145 * lib/rawmemchr.valgrind: New file.
23146 * lib/strchrnul.valgrind: Likewise.
23147 * modules/rawmemchr (Files): Distribute new file.
23148 * modules/strchrnul (Files): Likewise.
23149 Suggested by Bruno Haible.
23151 2008-04-29 Bruno Haible <bruno@clisp.org>
23153 * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
23154 (inet_ntop, inet_pton): Change portability warning's wording.
23155 * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
23156 Invoke gl_CHECK_NEXT_HEADERS.
23157 (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
23158 * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
23160 * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
23161 * modules/arpa_inet (Description): No longer only for systems that
23163 (Depends-on): Add include_next.
23164 (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
23167 2008-04-29 Jim Meyering <meyering@redhat.com>
23169 * modules/mkdir (License): Re-license as LGPLv2+.
23171 2008-04-29 Bruno Haible <bruno@clisp.org>
23173 * modules/rawmemchr (Maintainer): Set to Eric.
23174 * modules/strchrnul (Maintainer): Likewise.
23176 2008-04-29 Simon Josefsson <simon@josefsson.org>
23178 * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
23179 HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
23181 * modules/arpa_inet (arpa/inet.h): Use them.
23183 2008-04-28 Eric Blake <ebb9@byu.net>
23186 * modules/getndelim2-tests: New file.
23187 * tests/test-getndelim2.c: Likewise.
23188 * lib/getndelim2.c (getndelim2): Never return 0. Lock the
23190 * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
23192 * MODULES.html.sh: Document new module.
23194 2008-04-20 Bruno Haible <bruno@clisp.org>
23196 * lib/c-stack.c (die): Use raise.
23197 * modules/c-stack (Depends-on): Add raise.
23199 2008-04-28 Bruno Haible <bruno@clisp.org>
23201 Expect rpmatch to be declared.
23202 * lib/yesno.c (rpmatch): Remove declaration.
23205 * lib/stdlib.in.h (rpmatch): New declaration.
23206 * lib/rpmatch.c: Include <stdlib.h> first.
23207 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
23208 gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
23209 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
23211 * modules/rpmatch (Depends-on): Add stdlib, extensions.
23212 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
23213 (Include): Set to <stdlib.h>.
23214 * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
23216 * NEWS: Document the change.
23218 2008-04-28 Bruno Haible <bruno@clisp.org>
23220 Change rpmatch to use nl_langinfo when appropriate.
23221 * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
23223 (localized_pattern): New function/macro.
23224 (try): Remove match, nomatch arguments. Copy the pattern into safe
23225 memory before caching it.
23226 (rpmatch): Use localized_pattern. Add translator comments.
23227 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
23228 Suggested by Eric Blake.
23229 * modules/rpmatch (Depends-on): Add stdbool.
23231 2008-04-28 Eric Blake <ebb9@byu.net>
23233 Add rawmemchr module, matching glibc.
23234 * modules/string (Makefile.am): New indicator.
23235 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
23236 * lib/string.in.h (rawmemchr): Declare when appropriate.
23237 * modules/rawmemchr: New file.
23238 * m4/rawmemchr.m4: Likewise.
23239 * lib/rawmemchr.c: Likewise.
23240 * modules/rawmemchr-tests: Likewise.
23241 * tests/test-rawmemchr.c: Likewise.
23242 * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
23244 * modules/strchrnul (Depends-on): Add rawmemchr.
23245 * lib/strchrnul.c (strchrnul): Optimize a corner case.
23247 Whitespace cleanup.
23248 * tests/test-strchrnul.c: Reindent.
23249 * lib/strchrnul.c: Likewise.
23251 Optimize and test strchrnul.
23252 * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
23253 * modules/strchrnul-tests: New file.
23254 * tests/test-strchrnul.c: Likewise.
23256 Remove intprops dependency.
23257 * modules/memchr (Depends-on): Remove intprops.
23258 * modules/memrchr (Depends-on): Likewise.
23259 * modules/memchr2 (Depends-on): Likewise.
23260 * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
23261 * lib/memrchr.c (__memrchr): Likewise.
23262 * lib/memrchr2.c (memchr2): Likewise.
23263 Reported by Simon Josefsson.
23265 2008-04-28 Simon Josefsson <simon@josefsson.org>
23267 * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
23268 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23270 2008-04-28 Simon Josefsson <simon@josefsson.org>
23272 * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
23274 * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
23276 * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
23278 * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
23280 [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
23282 * m4/inet_pton.m4: Don't check for header files.
23284 * m4/inet_ntop.m4: Don't check for header files.
23286 2008-04-28 Simon Josefsson <simon@josefsson.org>
23288 * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
23289 * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
23290 trigger for cygwin).
23291 Reported by Bruno Haible <bruno@clisp.org>.
23293 2008-04-28 Bruno Haible <bruno@clisp.org>
23295 * doc/posix-functions/strdup.texi: Mention mingw problem.
23297 2008-04-27 Bruno Haible <bruno@clisp.org>
23299 * modules/stat-time-tests (Depends-on): Add sleep.
23300 * tests/test-stat-time.c (force_unlink): New function.
23302 (test_mtime): Remove the ctime related tests.
23303 (test_ctime): New function, containing the ctime related tests.
23304 (main): Call test_ctime, except on native Windows platforms.
23306 2008-04-27 Bruno Haible <bruno@clisp.org>
23308 * lib/rpmatch.c (rpmatch): Add some comments.
23309 Reported by James Youngman <jay@gnu.org>.
23311 2008-04-27 Bruno Haible <bruno@clisp.org>
23313 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
23316 2008-04-27 Bruno Haible <bruno@clisp.org>
23318 Make test-yesno.sh work on mingw.
23319 * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
23320 * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
23321 (main): Set stdin to binary mode.
23322 * modules/yesno-tests (Depends-on): Add binary-io.
23324 2008-04-27 Bruno Haible <bruno@clisp.org>
23326 Fix 'isfinite' on x86, x86_64, ia64 platforms.
23327 * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
23328 argument that lie outside the IEEE 854 domain.
23329 * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
23330 (gl_ISFINITE): Use it.
23331 * doc/posix-functions/isfinite.texi: Document the fixed bugs.
23333 2008-04-27 Bruno Haible <bruno@clisp.org>
23335 Allow local renaming in config.h.
23336 * lib/memrchr.c (memrchr): Don't undefine outside libc.
23338 2008-04-27 Bruno Haible <bruno@clisp.org>
23340 * lib/memchr.c (__memchr): Change type of 'i'.
23341 * lib/memchr2.c (memchr2): Likewise.
23343 2008-04-26 Eric Blake <ebb9@byu.net>
23344 and Bruno Haible <bruno@clisp.org>
23346 Optimize and test memrchr.
23347 * modules/memrchr (Depends-on): Add intprops.
23348 * lib/memrchr.c (__memrchr): Avoid false positives in loop.
23349 * modules/memrchr-tests: New file.
23350 * tests/test-memrchr.c: New file.
23352 2008-04-26 Bruno Haible <bruno@clisp.org>
23354 Add tentative support for DragonFly BSD.
23355 * lib/stdio-impl.h: Add macros for DragonFly BSD.
23356 * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
23358 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23359 restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
23360 * lib/fpurge.c (fpurge): Likewise.
23361 * lib/freadable.c (freaadable): Likewise.
23362 * lib/freadahead.c (freadahead): Likewise.
23363 * lib/freading.c (freading): Likewise.
23364 * lib/freadptr.c (freadptr): Likewise.
23365 * lib/freadseek.c (freadptrinc): Likewise.
23366 * lib/fseeko.c (fseeko): Likewise.
23367 * lib/fseterr.c (fseterr): Likewise.
23368 * lib/fwritable.c (fwritable): Likewise.
23369 * lib/fwriting.c (fwriting): Likewise.
23371 2008-04-26 Bruno Haible <bruno@clisp.org>
23373 * lib/stdio-impl.h: New file.
23374 * lib/fbufmode.c: Include stdio-impl.h.
23375 (fbufmode): Use fp_, remove redundant #defines.
23376 * lib/fflush.c: Include stdio-impl.h.
23377 (clear_ungetc_buffer): Remove redundant #defines.
23378 * lib/fpurge.c: Include stdio-impl.h.
23379 (fpurge): Remove redundant #defines.
23380 * lib/freadable.c: Include stdio-impl.h.
23381 (freadable): Remove redundant #defines.
23382 * lib/freadahead.c: Include stdio-impl.h.
23383 (freadahead): Remove redundant #defines.
23384 * lib/freading.c: Include stdio-impl.h.
23385 (freading): Remove redundant #defines.
23386 * lib/freadptr.c: Include stdio-impl.h.
23387 (freadptr): Remove redundant #defines.
23388 * lib/freadseek.c: Include stdio-impl.h.
23389 (freadptrinc): Remove redundant #defines.
23390 * lib/fseeko.c: Include stdio-impl.h.
23391 (rpl_fseeko): Remove redundant #defines.
23392 * lib/fseterr.c: Include stdio-impl.h.
23393 (fseterr): Remove redundant #defines.
23394 * lib/fwritable.c: Include stdio-impl.h.
23395 (fwritable: Remove redundant #defines.
23396 * lib/fwriting.c: Include stdio-impl.h.
23397 (fwriting): Remove redundant #defines.
23398 * modules/fbufmode (Files): Add lib/stdio-impl.h.
23399 * modules/fflush (Files): Likewise.
23400 * modules/fpurge (Files): Likewise.
23401 * modules/freadable (Files): Likewise.
23402 * modules/freadahead (Files): Likewise.
23403 * modules/freading (Files): Likewise.
23404 * modules/freadptr (Files): Likewise.
23405 * modules/freadseek (Files): Likewise.
23406 * modules/fseeko (Files): Likewise.
23407 * modules/fseterr (Files): Likewise.
23408 * modules/fwritable (Files): Likewise.
23409 * modules/fwriting (Files): Likewise.
23411 2008-04-26 Bruno Haible <bruno@clisp.org>
23413 * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
23414 restore_seek_optimization, update_fpos_cache): New functions, extracted
23416 (rpl_fflush): Use them.
23417 * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
23418 (gl_REPLACE_FFLUSH): Use it.
23420 2008-04-26 Bruno Haible <bruno@clisp.org>
23422 * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
23424 * tests/test-xstrtoimax.sh: Likewise.
23425 * tests/test-xstrtoumax.sh: Likewise.
23426 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
23428 2008-04-26 Bruno Haible <bruno@clisp.org>
23430 * modules/memchr-tests: New file.
23431 * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
23433 2008-04-26 Eric Blake <ebb9@byu.net>
23434 Bruno Haible <bruno@clisp.org>
23436 * lib/memchr.c: Include intprops.h.
23437 (__memchr): Optimize parallel detection of matching bytes. Rename local
23438 variables. Add explanatory comments.
23440 2008-04-26 Bruno Haible <bruno@clisp.org>
23442 Fix module 'memchr', broken since 2000-10-28.
23443 * lib/memchr.c: Outside glibc, define memchr, not __memchr.
23445 2008-04-26 Bruno Haible <bruno@clisp.org>
23447 * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
23450 2008-04-25 Eric Blake <ebb9@byu.net>
23452 Use native fstatat on cygwin 1.7.0.
23453 * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
23456 2008-04-23 Eric Blake <ebb9@byu.net>
23458 Improve memchr2 performance.
23459 * lib/memchr2.c (memchr2): Further optimize parallel detection of
23461 * modules/memchr2 (Depends-on): Use intprops.h.
23463 2008-04-23 Simon Josefsson <simon@josefsson.org>
23465 * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
23466 an inline function instead of a CPP macro. Patch by Ben Pfaff
23467 <blp@cs.stanford.edu>.
23469 2008-04-23 Simon Josefsson <simon@josefsson.org>
23471 * lib/arpa_inet.in.h: New file.
23473 * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
23474 (Makefile.am): Sed in substitute header file.
23476 * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
23477 gl_ARPA_INET_MODULE_INDICATOR. Use them.
23479 * modules/inet_ntop (configure.ac): Use
23480 gl_ARPA_INET_MODULE_INDICATOR.
23482 * modules/inet_pton (configure.ac): Use
23483 gl_ARPA_INET_MODULE_INDICATOR.
23485 2008-04-22 Jim Meyering <meyering@redhat.com>
23487 * modules/verify (License): Re-license as LGPLv2+.
23489 2008-04-22 Simon Josefsson <simon@josefsson.org>
23491 * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
23492 parameter to void* as per POSIX standard (MinGW uses char*).
23494 2008-04-21 Bruno Haible <bruno@clisp.org>
23496 * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23497 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
23498 Define to replacements if REPLACE_ISWCNTRL is 1.
23499 * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
23500 If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
23501 * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
23502 * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
23504 * doc/posix-functions/iswalpha.texi: Likewise.
23505 * doc/posix-functions/iswblank.texi: Likewise.
23506 * doc/posix-functions/iswcntrl.texi: Likewise.
23507 * doc/posix-functions/iswdigit.texi: Likewise.
23508 * doc/posix-functions/iswgraph.texi: Likewise.
23509 * doc/posix-functions/iswlower.texi: Likewise.
23510 * doc/posix-functions/iswprint.texi: Likewise.
23511 * doc/posix-functions/iswpunct.texi: Likewise.
23512 * doc/posix-functions/iswspace.texi: Likewise.
23513 * doc/posix-functions/iswupper.texi: Likewise.
23514 * doc/posix-functions/iswxdigit.texi: Likewise.
23515 Reported by Alain Guibert.
23517 2008-04-21 Bruno Haible <bruno@clisp.org>
23519 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
23520 Patch by Alain Guibert.
23522 2008-04-21 Bruno Haible <bruno@clisp.org>
23524 Fix test failures on mingw.
23525 * tests/test-xstrtol.c (print_no_progname): New function.
23526 (main): Install it in error_print_progname hook.
23527 * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
23528 * tests/test-xstrtoimax.sh: Likewise.
23529 * tests/test-xstrtoumax.sh: Likewise.
23531 2008-04-21 Bruno Haible <bruno@clisp.org>
23533 Fix test failure on mingw.
23534 * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
23536 2008-04-21 Bruno Haible <bruno@clisp.org>
23538 * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
23539 Actually assign a value.
23541 2008-04-20 Bruno Haible <bruno@clisp.org>
23543 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
23545 * lib/canonicalize.c (canonicalize_file_name): Elide if the
23546 'canonicalize-lgpl' module is also used.
23547 * lib/canonicalize-lgpl.c: Undo last change.
23548 * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
23550 2008-04-20 Bruno Haible <bruno@clisp.org>
23552 * lib/mkdir.c (mkdir): Undefine after the includes, not right after
23553 config.h. Provide _mkdir based fallback for mingw.
23554 * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
23555 if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
23556 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
23557 gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
23558 rather than defining mkdir in config.h.
23559 * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
23560 (gl_SYS_STAT_H_DEFAULTS): New macro.
23561 (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
23562 HAVE_IO_H any more.
23563 * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
23564 HAVE_DECL_MKDIR and HAVE_IO_H.
23566 2008-04-20 Bruno Haible <bruno@clisp.org>
23568 * lib/isapipe.c: Port to native Windows platforms.
23570 2008-04-20 Bruno Haible <bruno@clisp.org>
23572 * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
23574 2008-04-21 Eric Blake <ebb9@byu.net>
23576 Work around preprocessors that don't handle UINTMAX_MAX.
23577 * lib/memchr2.c (memchr2): Avoid embedded #if.
23578 Reported by Alain Guibert, fix suggested by Bruno Haible.
23580 2008-04-21 Simon Josefsson <simon@josefsson.org>
23582 * doc/posix-functions/strftime.texi (strftime): Explain better
23583 Windows incompatibility. Suggested by Micah Cowan
23584 <micah@cowan.name>.
23586 2008-04-20 Bruno Haible <bruno@clisp.org>
23588 * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
23591 2008-04-20 Bruno Haible <bruno@clisp.org>
23593 Fix test failure on platforms with non-GNU iconv.
23594 * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
23595 (U_TO_U8): Use it, rather than u16_to_u8.
23596 * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
23597 units at the end of the input string.
23598 * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
23600 2008-04-20 Bruno Haible <bruno@clisp.org>
23602 * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
23603 when the resulting length is 0.
23604 * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
23606 2008-04-20 Bruno Haible <bruno@clisp.org>
23608 * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
23610 * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
23612 2008-04-20 Bruno Haible <bruno@clisp.org>
23614 * tests/test-tsearch.c (main): Don't use initstate if it is missing.
23615 * modules/tsearch-tests (configure.ac): Test for initstate function.
23617 2008-04-20 Bruno Haible <bruno@clisp.org>
23619 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
23620 for nlink_t if missing.
23621 * tests/test-sys_stat.c: Check the existence of the nlink_t type.
23623 2008-04-19 Bruno Haible <bruno@clisp.org>
23625 Work around snprintf bug on Linux libc5.
23626 * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
23627 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23629 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23630 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
23632 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
23633 * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
23634 * modules/snprintf (Files): Add m4/printf.m4.
23635 * modules/vsnprintf (Files): Likewise.
23636 * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
23637 * doc/posix-functions/vsnprintf.texi: Likewise.
23639 2008-04-19 Bruno Haible <bruno@clisp.org>
23641 * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
23642 from 0.0058 to less than 10^-7.
23644 2008-04-19 Bruno Haible <bruno@clisp.org>
23646 Fix rounding when a precision is given.
23647 * lib/vasnprintf.c (is_borderline): New function.
23648 (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
23650 * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
23652 * tests/test-vasprintf-posix.c (test_function): Likewise.
23653 * tests/test-snprintf-posix.h (test_function): Likewise.
23654 * tests/test-sprintf-posix.h (test_function): Likewise.
23655 * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
23656 * tests/test-printf-posix.h (test_function): Likewise.
23657 * tests/test-printf-posix.output: Update.
23658 Reported by John Darrington <john@darrington.wattle.id.au> via
23659 Ben Pfaff <blp@cs.stanford.edu>.
23661 2008-04-18 Simon Josefsson <simon@josefsson.org>
23663 * doc/posix-functions/strftime.texi (strftime): Clarify platform.
23664 Suggested by Bruno Haible <bruno@clisp.org>.
23666 2008-04-17 Bruno Haible <bruno@clisp.org>
23668 * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
23669 gl_recursive_lock_destroy): Provide no-op definitions for the dummy
23671 Patch by Bruce Merry <bmerry@gmail.com>.
23673 2008-04-17 Simon Josefsson <simon@josefsson.org>
23675 * doc/posix-functions/strftime.texi (strftime): Mention that %e
23676 doesn't work under Windows.
23678 2008-04-16 Bruno Haible <bruno@clisp.org>
23680 * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
23682 (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
23683 SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
23684 SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
23685 SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
23686 SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
23687 SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
23688 SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
23690 (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
23691 Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
23692 Northern Sotho, Uighur.
23694 2008-04-16 Bruno Haible <bruno@clisp.org>
23696 * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
23697 (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
23698 (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
23699 Reported by Daniel Bergström <daniel@octocode.com>.
23701 2007-12-25 KJK::Hyperion <hackbunny@reactos.com>
23702 Bruno Haible <bruno@clisp.org>
23704 * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
23706 (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
23707 New functions, mostly extracted from gl_locale_name_default.
23708 (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
23710 2008-04-16 Eric Blake <ebb9@byu.net>
23712 Adjust strtod detection to catch glibc 2.7 bug.
23713 * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
23714 Reported by John Gatewood Ham.
23716 2008-04-16 Bruno Haible <bruno@clisp.org>
23718 Add tentative support for Linux libc5.
23719 * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
23720 * lib/fpurge.c (fpurge): Likewise.
23721 * lib/freadable.c (freadable): Likewise.
23722 * lib/freadahead.c (freadahead): Likewise.
23723 * lib/freading.c (freading): Likewise.
23724 * lib/freadptr.c (freadptr): Likewise.
23725 * lib/freadseek.c (freadptrinc): Likewise.
23726 * lib/fseeko.c (rpl_fseeko): Likewise.
23727 * lib/fseterr.c (fseterr): Likewise.
23728 * lib/fwritable.c (fwritable): Likewise.
23729 * lib/fwriting.c (fwriting): Likewise.
23730 Reported by Alain Guibert <alguibert+bts@free.fr>.
23732 2008-04-15 Bruno Haible <bruno@clisp.org>
23734 * modules/mathl (configure.ac): Define module indicator.
23736 2008-04-15 Bruno Haible <bruno@clisp.org>
23738 * lib/logl.c (logl): Remove unused variables.
23740 2008-04-15 Bruno Haible <bruno@clisp.org>
23742 * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
23745 2008-04-15 Bruno Haible <bruno@clisp.org>
23747 * lib/trim.c (trim2): Fix argument of isspace() macro.
23749 2008-04-15 Paolo Bonzini <bonzini@gnu.org>
23751 * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
23753 * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
23755 2008-04-14 Bruno Haible <bruno@clisp.org>
23757 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
23758 AC_LANG_PROGRAM argument.
23759 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
23760 * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
23761 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
23762 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
23763 * m4/math_h.m4 (gl_MATH_H): Likewise.
23764 * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
23765 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23766 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
23767 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
23768 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
23769 * m4/regex.m4 (gl_REGEX): Likewise.
23770 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
23771 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
23772 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23773 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
23774 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
23775 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23776 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23777 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
23779 2008-04-14 Jim Meyering <meyering@redhat.com>
23781 test-strtod: fix typos: s/abs/fabs/
23782 * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
23784 2008-04-13 Bruno Haible <bruno@clisp.org>
23786 Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
23787 * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
23788 module is also used and while not building the reloc-wrapper.
23790 2008-04-13 Bruno Haible <bruno@clisp.org>
23792 * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
23794 2008-04-13 Bruno Haible <bruno@clisp.org>
23796 Fix AIX compilation failure introduced on 2008-04-02.
23797 * tests/test-frexp.c (exp): Undefine before redefining.
23798 * tests/test-frexpl.c (exp): Likewise.
23800 2008-04-13 Bruno Haible <bruno@clisp.org>
23802 Work around a HP-UX stdio bug.
23803 * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
23804 * tests/test-ftello.c (main): Likewise.
23805 * doc/posix-functions/ftell.texi: Mention HP-UX bug.
23806 * doc/posix-functions/ftello.texi: Likewise.
23808 2008-04-13 Bruno Haible <bruno@clisp.org>
23810 Make test-signbit pass on HP-UX/hppa.
23811 * tests/test-signbit.c (minus_zerol): New variable.
23812 (test_signbitl): Use it.
23814 2008-04-13 Bruno Haible <bruno@clisp.org>
23816 Make truncl work on OSF/1 4.0.
23817 * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
23818 Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23819 * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
23820 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
23822 * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
23824 * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
23826 2008-04-13 Bruno Haible <bruno@clisp.org>
23828 * lib/unictype.h: Remove trailing comma from enumeration definitions.
23830 2008-04-13 Bruno Haible <bruno@clisp.org>
23832 * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
23833 expression, so as to avoid HP-UX 11 cc compiler bug.
23835 2008-04-13 Bruno Haible <bruno@clisp.org>
23837 * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
23839 2008-04-13 Bruno Haible <bruno@clisp.org>
23841 * lib/git-merge-changelog.c: Remove empty declaration outside of
23844 2008-04-13 Bruno Haible <bruno@clisp.org>
23846 * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
23848 2008-04-13 Bruno Haible <bruno@clisp.org>
23850 * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
23851 * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
23852 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
23853 also if it exists but lacks definitions of the SHUT_* macros.
23854 * modules/sys_socket (Description): Update.
23855 Reported by Elbert Pol <e.pol@chello.nl>.
23857 2008-04-13 Bruno Haible <bruno@clisp.org>
23859 * lib/localcharset.c (OS2): Don't redefine if already defined.
23860 Reported by Elbert Pol <e.pol@chello.nl>.
23862 2008-04-13 Bruno Haible <bruno@clisp.org>
23864 * lib/binary-io.h [__EMX__]: Include <io.h>.
23865 Reported by Elbert Pol <e.pol@chello.nl>.
23867 2008-04-12 Bruno Haible <bruno@clisp.org>
23869 * lib/fpucw.h: Enable the definitions also for x86_64.
23870 Needed for NetBSD/x86_64.
23871 Reported by Thomas Klausner <tk@giga.or.at>.
23873 2008-04-12 Bruno Haible <bruno@clisp.org>
23875 * tests/test-strtod.c: Include isnand.h.
23876 (main): Use isnand instead of isnan.
23877 Reported by Jim Meyering.
23879 2008-04-12 Bruno Haible <bruno@clisp.org>
23881 * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
23882 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
23884 2008-04-12 Jim Meyering <meyering@redhat.com>
23886 * m4/math_h.m4 (gl_MATH_H): Fix typos.
23888 2008-04-12 Bruno Haible <bruno@clisp.org>
23890 * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
23891 Reported by Elbert Pol <e.pol@chello.nl>.
23893 2008-04-12 Eric Blake <ebb9@byu.net>
23895 Work around Solaris 10 math.h bug.
23896 * m4/math_h.m4 (gl_MATH_H): Check for bug.
23897 (gl_MATH_H_DEFAULTS): Set up default.
23898 * modules/math (Makefile.am): Replace new indicators.
23899 * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
23900 * tests/test-math.c (main): Test this.
23901 * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
23902 * doc/posix-headers/math.texi (math.h): Mention bug.
23903 Reported by Nelson H. F. Beebe and Jim Meyering.
23905 2008-04-11 Bruno Haible <bruno@clisp.org>
23907 Adapt to future versions of Apple GCC.
23908 * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
23909 Reported by Peter O'Gorman <peter@pogma.com>.
23911 2008-04-11 Bruno Haible <bruno@clisp.org>
23913 * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
23915 2008-04-11 Bruno Haible <bruno@clisp.org>
23917 * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
23919 * modules/getaddrinfo-tests (Makefile.am): Define
23920 test_getaddrinfo_LDADD.
23922 2008-04-11 Bruno Haible <bruno@clisp.org>
23924 * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
23925 (init): Fix syntax error.
23926 * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
23929 2008-04-11 Bruno Haible <bruno@clisp.org>
23931 * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
23932 * modules/glob (Depends-on): Add stdbool.
23934 2008-04-11 Bruno Haible <bruno@clisp.org>
23936 * lib/trim.c: Include <string.h>.
23938 2008-04-11 Eric Blake <ebb9@byu.net>
23940 Avoid compile failure on OS/2.
23941 * lib/regex_internal.h (internal_function): Disable optimization
23942 on OS/2 (__EMX__), where it caused compiler error.
23943 Reported by Elbert Pol.
23945 2008-04-11 Bruno Haible <bruno@clisp.org>
23947 Flush the standard error stream before aborting. Needed on mingw.
23948 * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
23949 * tests/test-array_list.c (ASSERT): Likewise.
23950 * tests/test-array_oset.c (ASSERT): Likewise.
23951 * tests/test-avltree_list.c (ASSERT): Likewise.
23952 * tests/test-avltree_oset.c (ASSERT): Likewise.
23953 * tests/test-avltreehash_list.c (ASSERT): Likewise.
23954 * tests/test-binary-io.c (ASSERT): Likewise.
23955 * tests/test-byteswap.c (ASSERT): Likewise.
23956 * tests/test-c-ctype.c (ASSERT): Likewise.
23957 * tests/test-c-strcasecmp.c (ASSERT): Likewise.
23958 * tests/test-c-strcasestr.c (ASSERT): Likewise.
23959 * tests/test-c-strncasecmp.c (ASSERT): Likewise.
23960 * tests/test-c-strstr.c (ASSERT): Likewise.
23961 * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
23962 * tests/test-canonicalize.c (ASSERT): Likewise.
23963 * tests/test-carray_list.c (ASSERT): Likewise.
23964 * tests/test-ceilf1.c (ASSERT): Likewise.
23965 * tests/test-ceilf2.c (ASSERT): Likewise.
23966 * tests/test-ceill.c (ASSERT): Likewise.
23967 * tests/test-count-one-bits.c (ASSERT): Likewise.
23968 * tests/test-fbufmode.c (ASSERT): Likewise.
23969 * tests/test-fflush2.c (ASSERT): Likewise.
23970 * tests/test-floorf1.c (ASSERT): Likewise.
23971 * tests/test-floorf2.c (ASSERT): Likewise.
23972 * tests/test-floorl.c (ASSERT): Likewise.
23973 * tests/test-fopen.c (ASSERT): Likewise.
23974 * tests/test-fpending.c (ASSERT): Likewise.
23975 * tests/test-fprintf-posix.c (ASSERT): Likewise.
23976 * tests/test-fpurge.c (ASSERT): Likewise.
23977 * tests/test-freadable.c (ASSERT): Likewise.
23978 * tests/test-freadahead.c (ASSERT): Likewise.
23979 * tests/test-freading.c (ASSERT): Likewise.
23980 * tests/test-freadptr.c (ASSERT): Likewise.
23981 * tests/test-freadptr2.c (ASSERT): Likewise.
23982 * tests/test-freadseek.c (ASSERT): Likewise.
23983 * tests/test-freopen.c (ASSERT): Likewise.
23984 * tests/test-frexp.c (ASSERT): Likewise.
23985 * tests/test-frexpl.c (ASSERT): Likewise.
23986 * tests/test-fseek.c (ASSERT): Likewise.
23987 * tests/test-fseeko.c (ASSERT): Likewise.
23988 * tests/test-fstrcmp.c (ASSERT): Likewise.
23989 * tests/test-ftell.c (ASSERT): Likewise.
23990 * tests/test-ftello.c (ASSERT): Likewise.
23991 * tests/test-func.c (ASSERT): Likewise.
23992 * tests/test-fwritable.c (ASSERT): Likewise.
23993 * tests/test-fwriting.c (ASSERT): Likewise.
23994 * tests/test-getdelim.c (ASSERT): Likewise.
23995 * tests/test-getline.c (ASSERT): Likewise.
23996 * tests/test-i-ring.c (ASSERT): Likewise.
23997 * tests/test-iconv-utf.c (ASSERT): Likewise.
23998 * tests/test-iconv.c (ASSERT): Likewise.
23999 * tests/test-isfinite.c (ASSERT): Likewise.
24000 * tests/test-isnand.c (ASSERT): Likewise.
24001 * tests/test-isnanf.c (ASSERT): Likewise.
24002 * tests/test-isnanl.h (ASSERT): Likewise.
24003 * tests/test-ldexpl.c (ASSERT): Likewise.
24004 * tests/test-linked_list.c (ASSERT): Likewise.
24005 * tests/test-linkedhash_list.c (ASSERT): Likewise.
24006 * tests/test-localename.c (ASSERT): Likewise.
24007 * tests/test-lseek.c (ASSERT): Likewise.
24008 * tests/test-mbscasecmp.c (ASSERT): Likewise.
24009 * tests/test-mbscasestr1.c (ASSERT): Likewise.
24010 * tests/test-mbscasestr2.c (ASSERT): Likewise.
24011 * tests/test-mbscasestr3.c (ASSERT): Likewise.
24012 * tests/test-mbscasestr4.c (ASSERT): Likewise.
24013 * tests/test-mbschr.c (ASSERT): Likewise.
24014 * tests/test-mbscspn.c (ASSERT): Likewise.
24015 * tests/test-mbsncasecmp.c (ASSERT): Likewise.
24016 * tests/test-mbspbrk.c (ASSERT): Likewise.
24017 * tests/test-mbspcasecmp.c (ASSERT): Likewise.
24018 * tests/test-mbsrchr.c (ASSERT): Likewise.
24019 * tests/test-mbsspn.c (ASSERT): Likewise.
24020 * tests/test-mbsstr1.c (ASSERT): Likewise.
24021 * tests/test-mbsstr2.c (ASSERT): Likewise.
24022 * tests/test-mbsstr3.c (ASSERT): Likewise.
24023 * tests/test-memchr2.c (ASSERT): Likewise.
24024 * tests/test-memmem.c (ASSERT): Likewise.
24025 * tests/test-open.c (ASSERT): Likewise.
24026 * tests/test-printf-frexp.c (ASSERT): Likewise.
24027 * tests/test-printf-frexpl.c (ASSERT): Likewise.
24028 * tests/test-printf-posix.c (ASSERT): Likewise.
24029 * tests/test-quotearg.c (ASSERT): Likewise.
24030 * tests/test-rbtree_list.c (ASSERT): Likewise.
24031 * tests/test-rbtree_oset.c (ASSERT): Likewise.
24032 * tests/test-rbtreehash_list.c (ASSERT): Likewise.
24033 * tests/test-round1.c (ASSERT): Likewise.
24034 * tests/test-roundf1.c (ASSERT): Likewise.
24035 * tests/test-roundl.c (ASSERT): Likewise.
24036 * tests/test-signbit.c (ASSERT): Likewise.
24037 * tests/test-sleep.c (ASSERT): Likewise.
24038 * tests/test-snprintf-posix.c (ASSERT): Likewise.
24039 * tests/test-snprintf.c (ASSERT): Likewise.
24040 * tests/test-sprintf-posix.c (ASSERT): Likewise.
24041 * tests/test-stat-time.c (ASSERT): Likewise.
24042 * tests/test-strcasestr.c (ASSERT): Likewise.
24043 * tests/test-strerror.c (ASSERT): Likewise.
24044 * tests/test-striconv.c (ASSERT): Likewise.
24045 * tests/test-striconveh.c (ASSERT): Likewise.
24046 * tests/test-striconveha.c (ASSERT): Likewise.
24047 * tests/test-strsignal.c (ASSERT): Likewise.
24048 * tests/test-strstr.c (ASSERT): Likewise.
24049 * tests/test-strtod.c (ASSERT): Likewise.
24050 * tests/test-trunc1.c (ASSERT): Likewise.
24051 * tests/test-trunc2.c (ASSERT): Likewise.
24052 * tests/test-truncf1.c (ASSERT): Likewise.
24053 * tests/test-truncf2.c (ASSERT): Likewise.
24054 * tests/test-truncl.c (ASSERT): Likewise.
24055 * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
24056 * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
24057 * tests/test-vasnprintf.c (ASSERT): Likewise.
24058 * tests/test-vasprintf-posix.c (ASSERT): Likewise.
24059 * tests/test-vasprintf.c (ASSERT): Likewise.
24060 * tests/test-vfprintf-posix.c (ASSERT): Likewise.
24061 * tests/test-vprintf-posix.c (ASSERT): Likewise.
24062 * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
24063 * tests/test-vsnprintf.c (ASSERT): Likewise.
24064 * tests/test-vsprintf-posix.c (ASSERT): Likewise.
24065 * tests/test-wcwidth.c (ASSERT): Likewise.
24066 * tests/test-xfprintf-posix.c (ASSERT): Likewise.
24067 * tests/test-xprintf-posix.c (ASSERT): Likewise.
24068 * tests/test-xvasprintf.c (ASSERT): Likewise.
24069 * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
24070 * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
24071 * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
24072 * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
24073 * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
24074 * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
24075 * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
24076 * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
24077 * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
24078 * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
24079 * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
24080 * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
24081 * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
24082 * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
24083 * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
24084 * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
24085 * tests/unictype/test-block_list.c (ASSERT): Likewise.
24086 * tests/unictype/test-block_of.c (ASSERT): Likewise.
24087 * tests/unictype/test-block_test.c (ASSERT): Likewise.
24088 * tests/unictype/test-categ_and.c (ASSERT): Likewise.
24089 * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
24090 * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
24091 * tests/unictype/test-categ_name.c (ASSERT): Likewise.
24092 * tests/unictype/test-categ_none.c (ASSERT): Likewise.
24093 * tests/unictype/test-categ_of.c (ASSERT): Likewise.
24094 * tests/unictype/test-categ_or.c (ASSERT): Likewise.
24095 * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
24096 * tests/unictype/test-combining.c (ASSERT): Likewise.
24097 * tests/unictype/test-decdigit.c (ASSERT): Likewise.
24098 * tests/unictype/test-digit.c (ASSERT): Likewise.
24099 * tests/unictype/test-mirror.c (ASSERT): Likewise.
24100 * tests/unictype/test-numeric.c (ASSERT): Likewise.
24101 * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
24102 * tests/unictype/test-pr_test.c (ASSERT): Likewise.
24103 * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
24104 * tests/unictype/test-scripts.c (ASSERT): Likewise.
24105 * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
24106 * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
24107 * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
24108 * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
24109 * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
24110 * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
24111 * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
24112 * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
24113 * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
24114 * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
24115 * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
24116 * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
24117 * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
24118 * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
24119 * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
24120 * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
24121 * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
24122 * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
24123 * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
24124 * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
24125 * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
24126 * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
24127 * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
24128 * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
24129 * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
24130 * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
24131 * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
24132 * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
24133 * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
24134 * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
24135 * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
24136 * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
24137 * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
24138 * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
24139 * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
24140 * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
24141 * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
24142 Reported by Eric Blake.
24144 2008-04-11 Bruno Haible <bruno@clisp.org>
24146 * lib/wchar.in.h: Tweak comment.
24148 2008-04-11 Bruno Haible <bruno@clisp.org>
24150 Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
24151 * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
24153 * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
24155 2008-04-11 Bruno Haible <bruno@clisp.org>
24157 * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
24159 2008-04-11 Simon Josefsson <simon@josefsson.org>
24161 * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
24162 of attempting to use non-existing /dev/*random. Based on patch
24163 from Adam Strzelecki <ono@java.pl> in
24164 <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
24166 2008-04-08 Bruno Haible <bruno@clisp.org>
24168 Add tentative support for emx+gcc.
24169 * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
24170 * lib/fpurge.c (fpurge): Likewise.
24171 * lib/freadable.c (freadable): Likewise.
24172 * lib/freadahead.c (freadahead): Likewise.
24173 * lib/freading.c (freading): Likewise.
24174 * lib/freadptr.c (freadptr): Likewise.
24175 * lib/freadseek.c (freadptrinc): Likewise.
24176 * lib/fseeko.c (rpl_fseeko): Likewise.
24177 * lib/fseterr.c (fseterr): Likewise.
24178 * lib/fwritable.c (fwritable): Likewise.
24179 * lib/fwriting.c (fwriting): Likewise.
24180 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
24182 2008-04-09 Eric Blake <ebb9@byu.net>
24184 Avoid some autoconf warnings.
24185 * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
24186 * m4/acl.m4 (gl_FUNC_ACL): Likewise.
24187 * m4/afs.m4 (gl_AFS): Likewise.
24188 * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
24189 * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
24190 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24191 * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
24192 (gl_INTEGER_TYPE_SUFFIX): Likewise.
24193 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
24194 (AC_CHECK_DECLS_ONCE): Likewise.
24196 * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
24197 gnulib-tool requires autoconf 2.59 or better.
24198 * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
24200 2008-04-08 Eric Blake <ebb9@byu.net>
24202 Use 'git describe --match' if present (added in git 1.5.5).
24203 * build-aux/git-version-gen: Limit result to tags that match 'v*'
24206 2008-04-08 Bruno Haible <bruno@clisp.org>
24208 Add tentative support for OpenServer.
24209 * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
24211 * lib/fpurge.c (fpurge): Likewise.
24212 * lib/freadable.c (freadable): Likewise.
24213 * lib/freadahead.c (freadahead): Likewise.
24214 * lib/freading.c (freading): Likewise.
24215 * lib/freadptr.c (freadptr): Likewise.
24216 * lib/freadseek.c (freadptrinc): Likewise.
24217 * lib/fseeko.c (rpl_fseeko): Likewise.
24218 * lib/fseterr.c (fseterr): Likewise.
24219 * lib/fwritable.c (fwritable): Likewise.
24220 * lib/fwriting.c (fwriting): Likewise.
24221 Reported by Roger Cornelius <rac@tenzing.org> and
24222 Brian K. White <brian@aljex.com>.
24224 2008-04-06 Jim Meyering <meyering@redhat.com>
24226 * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
24228 2008-04-06 Bruno Haible <bruno@clisp.org>
24230 Avoid possible error with non-ASCII bytes in UTF-8 locales.
24231 * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
24232 * tests/test-printf-posix.sh: Likewise.
24233 * tests/test-vfprintf-posix.sh: Likewise.
24234 * tests/test-vprintf-posix.sh: Likewise.
24235 * tests/test-xprintf-posix.sh: Likewise.
24237 2008-04-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24239 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
24240 hide error from 'ls', needed on OS/2.
24241 Report by Elbert Pol <elbert.pol@gmail.com>.
24243 2008-04-04 Eric Blake <ebb9@byu.net>
24245 Make test-fseeko.c failures meaningful.
24246 * tests/test-fseeko.c: Print line number on failure.
24247 * tests/test-fseek.c: Likewise.
24248 Reported by Nelson H. F. Beebe.
24250 Improve strtod bug detection check.
24251 * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
24252 required for Solaris 10.
24253 Reported by Bob Friesenhahn and Nelson H. F. Beebe.
24255 2008-04-04 Bruno Haible <bruno@clisp.org>
24257 * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
24260 2008-04-03 Eric Blake <ebb9@byu.net>
24262 Ensure sane .version contents.
24263 * top/GNUmakefile (_dummy): Also delete .version when rebuilding
24265 * build-aux/git-version-gen: Improve documentation.
24267 Make GNU make output nicer.
24268 * top/GNUmakefile [!_have-Makefile]: Add dependency on
24269 MAKECMDGOALS to enforce message for all command line targets. Set
24270 srcdir for use in maint.mk.
24272 Another maintainer tweak.
24273 * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
24274 a target that regenerates version.
24276 2008-04-03 Jim Meyering <meyering@redhat.com>
24278 vc-list-files: don't cause coreutils "make po-check" failure
24279 * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
24281 2008-04-03 Eric Blake <ebb9@byu.net>
24283 Allow VPATH usage of vc-list-files.
24284 * build-aux/vc-list-files (scriptversion): Add timestamp.
24285 (options): Add --help, --version, -C.
24286 (CVS): Support installed cvsu.
24288 2008-04-02 Bruno Haible <bruno@clisp.org>
24290 Avoid some "statement with no effect" warnings from gcc.
24291 * tests/test-wctype.c (main): Explicitly ignore unused values.
24292 Reported by Jim Meyering.
24294 2008-04-02 Jim Meyering <meyering@redhat.com>
24296 Avoid some warnings from "gcc -Wshadow".
24297 * tests/test-frexp.c (exp): Define to a different identifier.
24298 * tests/test-frexpl.c (exp): Likewise.
24300 2008-04-03 Jim Meyering <meyering@redhat.com>
24302 bootstrap: remove dangling *.[ch] symlinks from lib
24303 * build-aux/bootstrap [dangling symlink removal]: Move find's
24304 -depth option to precede all others, to avoid a warning.
24305 Remove *.[ch] files too, and from "$source_base" (usually lib/).
24307 2008-04-02 Bruno Haible <bruno@clisp.org>
24309 Avoid some warnings from "gcc -Wshadow".
24310 * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
24311 * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
24312 * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
24313 * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
24314 Reported by Jim Meyering.
24316 2008-04-01 Bruno Haible <bruno@clisp.org>
24318 Fix test to work on IRIX 6.5 with cc.
24319 * tests/test-math.c (numeric_equal): New function.
24322 2008-04-01 Bruno Haible <bruno@clisp.org>
24324 * doc/posix-headers/math.texi: Refine documentation of NAN problem.
24326 2008-04-01 Bruno Haible <bruno@clisp.org>
24328 * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
24329 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24330 * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
24331 (Depends-on): Remove math.
24333 * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
24334 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24335 * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
24336 (Depends-on): Remove math.
24338 * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
24339 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24340 * modules/snprintf-posix-tests (Files): Add tests/nan.h.
24341 (Depends-on): Remove math.
24342 * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
24343 (Depends-on): Remove math.
24345 * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
24346 (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
24347 * modules/sprintf-posix-tests (Files): Add tests/nan.h.
24348 (Depends-on): Remove math.
24349 * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
24350 (Depends-on): Remove math.
24352 * tests/test-round1.c: Include nan.h.
24353 (main): Use NaNd instead of NAN.
24354 * modules/round-tests (Files): Add tests/nan.h.
24356 * tests/test-trunc1.c: Include nan.h.
24357 (main): Use NaNd instead of NAN.
24358 * modules/trunc-tests (Files): Add tests/nan.h.
24360 * tests/test-roundf1.c: Include nan.h.
24361 (main): Use NaNf instead of NAN.
24362 * modules/roundf-tests (Files): Add tests/nan.h.
24364 * tests/test-truncf1.c: Include nan.h.
24365 (main): Use NaNf instead of NAN.
24366 * modules/truncf-tests (Files): Add tests/nan.h.
24368 * tests/test-ceilf1.c: Include nan.h.
24369 (main): Use NaNf instead of NAN.
24370 * modules/ceilf-tests (Files): Add tests/nan.h.
24372 * tests/test-floorf1.c: Include nan.h.
24373 (main): Use NaNf instead of NAN.
24374 * modules/floorf-tests (Files): Add tests/nan.h.
24376 * tests/test-isnanf.c: Include nan.h instead of <math.h>.
24377 (main): Use NaNf instead of NAN.
24378 * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
24380 * tests/test-isnand.c: Include nan.h instead of <math.h>.
24381 (main): Use NaNd instead of NAN.
24382 * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
24384 * tests/test-frexp.c: Include nan.h.
24385 (main): Use NaNd instead of NAN.
24386 * modules/frexp-tests (Files): Add tests/nan.h.
24388 * lib/isnan.c: Don't include <math.h>.
24389 (FUNC): Don't use NAN macro.
24390 * modules/isnand-nolibm (Depends-on): Remove math.
24391 * modules/isnanf-nolibm (Depends-on): Remove math.
24392 * modules/isnanl (Depends-on): Remove math.
24393 * modules/isnanl-nolibm (Depends-on): Remove math.
24395 * tests/nan.h: New file.
24397 2008-04-01 Eric Blake <ebb9@byu.net>
24400 * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
24401 values to be the right type.
24403 For now, cater to gnulib strtod inaccuracies.
24404 * tests/test-strtod.c (main): Allow 1-ulp error on expected
24405 fractional results. While not as nice from a QoI perspective, it
24406 is a quicker patch than correctly implementing decimal to binary
24409 2008-03-31 Eric Blake <ebb9@byu.net>
24411 Guarantee a definition of NAN.
24412 * lib/math.in.h (NAN): Define if missing.
24413 * tests/test-math.c (main): Test it.
24414 * doc/posix-headers/math.texi (math.h): Document this.
24415 * lib/isnan.c (rpl_isnand): Use it.
24416 * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
24417 * tests/test-floorf1.c (NaN): Likewise.
24418 * tests/test-frexp.c (NaN): Likewise.
24419 * tests/test-isnand.c (NaN): Likewise.
24420 * tests/test-isnanf.c (NaN): Likewise.
24421 * tests/test-round1.c (NaN): Likewise.
24422 * tests/test-roundf1.c (NaN): Likewise.
24423 * tests/test-snprintf-posix.h (NaN): Likewise.
24424 * tests/test-sprintf-posix.h (NaN): Likewise.
24425 * tests/test-trunc1.c (NaN): Likewise.
24426 * tests/test-truncf1.c (NaN): Likewise.
24427 * tests/test-vasnprintf-posix.c (NaN): Likewise.
24428 * tests/test-vasprintf-posix.c (NaN): Likewise.
24429 * modules/isnand-nolibm (Depends-on): Add math.
24430 * modules/isnanf-nolibm (Depends-on): Likewise.
24431 * modules/isnanl (Depends-on): Likewise.
24432 * modules/isnanl-nolibm (Depends-on): Likewise.
24433 * modules/snprintf-posix-tests (Depends-on): Likewise.
24434 * modules/sprintf-posix-tests (Depends-on): Likewise.
24435 * modules/vsnprintf-posix-tests (Depends-on): Likewise.
24436 * modules/vsprintf-posix-tests (Depends-on): Likewise.
24437 * modules/vasnprintf-posix-tests (Depends-on): Likewise.
24438 * modules/vasprintf-posix-tests (Depends-on): Likewise.
24440 2008-03-31 Bruno Haible <bruno@clisp.org>
24442 * tests/test-strtod.c (main): Update results for OSF/1 platforms.
24443 * doc/posix-functions/strtod.texi: Likewise.
24445 2008-03-31 Bruno Haible <bruno@clisp.org>
24447 * tests/test-strtod.c (main): Don't use C99 syntax.
24449 2008-03-31 Bruno Haible <bruno@clisp.org>
24451 * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
24452 Reported by Eric Blake.
24454 2008-03-31 Jim Meyering <meyering@redhat.com>
24456 Don't compare actual signbit return values.
24457 * tests/test-strtod.c (main): Rather, compare only their
24458 zero/non-zero nature.
24460 2008-03-31 Eric Blake <ebb9@byu.net>
24462 More strtod documentation.
24463 * doc/posix-functions/strtod.texi (strtod): Interpret more test
24464 failures as distinct bugs.
24466 2008-03-30 Paul Eggert <eggert@cs.ucla.edu>
24468 * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
24469 Problem reported by Erik Benada in
24470 <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
24472 2008-03-30 Bruno Haible <bruno@clisp.org>
24474 * tests/test-strtod.c: Add comments about which assertion fails on which
24476 * doc/posix-functions/strtod.texi: Add info about many more platforms.
24478 2008-03-30 Eric Blake <ebb9@byu.net>
24480 Test signbit behavior on zeros.
24481 * tests/test-signbit.c (test_signbitf): Add tests for zero.
24482 (test_signbitd, test_signbitl): Likewise.
24484 More strtod touchups.
24485 * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
24486 sign of negative underflow, for now. Use .5, not .1.
24487 * doc/posix-functions/strtod.texi (strtod): Mention these
24489 Reported by Jim Meyering.
24491 2008-03-30 Bruno Haible <bruno@clisp.org>
24493 * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
24494 from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
24496 2008-03-30 Bruno Haible <bruno@clisp.org>
24498 Avoid failure when attempting to return empty iconv results on some
24500 * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
24501 allocation, don't report ENOMEM when the resulting string is empty.
24503 2008-03-30 Bruno Haible <bruno@clisp.org>
24505 Fix buffer overrun.
24506 * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
24507 Don't consider the width for tmp_length. Check count against tmp_length
24508 before doing the padding. Ensure enough allocation during padding.
24510 2008-03-30 Eric Blake <ebb9@byu.net>
24513 * lib/strtod.c (strtod): Avoid compiler warnings.
24514 Reported by Jim Meyering.
24516 2008-03-30 Bruno Haible <bruno@clisp.org>
24518 * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
24519 * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
24520 * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
24521 * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
24522 * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
24523 * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
24524 * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
24525 * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
24527 * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
24528 * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
24529 * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
24530 * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
24531 * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
24532 * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
24533 * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
24534 * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
24536 * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
24537 * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
24538 * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
24539 * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
24540 * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
24541 * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
24542 * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
24543 * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
24545 * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
24546 * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
24548 * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
24549 * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
24551 * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
24552 * modules/xvasprintf (Depends-on): Add EOVERFLOW.
24554 * lib/vsprintf.c (EOVERFLOW): Remove fallback.
24555 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
24556 * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
24558 * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
24559 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
24560 * modules/vsnprintf (Depends-on): Add EOVERFLOW.
24562 * lib/vfprintf.c (EOVERFLOW): Remove fallback.
24563 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
24564 * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
24566 * lib/vasprintf.c (EOVERFLOW): Remove fallback.
24567 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
24568 * modules/vasprintf (Depends-on): Add EOVERFLOW.
24570 * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
24571 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
24572 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
24573 * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
24574 (Depends-on): Add EOVERFLOW.
24575 * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
24576 (Depends-on): Add EOVERFLOW.
24577 * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24578 (Depends-on): Add EOVERFLOW.
24579 * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
24580 (Depends-on): Add EOVERFLOW.
24581 * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24582 (Depends-on): Add EOVERFLOW.
24583 * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
24584 (Depends-on): Add EOVERFLOW.
24585 * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24586 (Depends-on): Add EOVERFLOW.
24587 * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
24588 (Depends-on): Add EOVERFLOW.
24590 * lib/sprintf.c (EOVERFLOW): Remove fallback.
24591 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
24592 * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
24594 * lib/snprintf.c (EOVERFLOW): Remove fallback.
24595 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
24596 * modules/snprintf (Depends-on): Add EOVERFLOW.
24598 * lib/poll.c (EOVERFLOW): Remove fallback.
24599 * modules/poll (Depends-on): Add EOVERFLOW.
24601 * lib/getugroups.c (EOVERFLOW): Remove fallback.
24602 * modules/getugroups (Depends-on): Add EOVERFLOW.
24604 * lib/getdelim.c (EOVERFLOW): Remove fallback.
24605 * modules/getdelim (Depends-on): Add EOVERFLOW.
24607 * lib/ftell.c (EOVERFLOW): Remove fallback.
24608 * modules/ftell (Depends-on): Add EOVERFLOW.
24610 * lib/fprintf.c (EOVERFLOW): Remove fallback.
24611 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
24612 * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
24614 * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
24616 * modules/EOVERFLOW-tests: New file.
24617 * tests/test-EOVERFLOW.c: New file.
24619 * modules/EOVERFLOW: New file.
24620 * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
24622 2008-03-30 Bruno Haible <bruno@clisp.org>
24624 Fix bug introduced on 2007-06-10.
24625 * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
24626 spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
24628 2008-03-30 Bruno Haible <bruno@clisp.org>
24630 Improve freadseek's efficiency after ungetc.
24631 * lib/freadseek.c: Include freadahead.h.
24632 (freadptrinc): New function, extracted from freadseek.
24633 (freadseek): Use it in a loop. Use freadahead to determine the number
24634 of loop iterations.
24635 * modules/freadseek (Depends-on): Add freadahead.
24636 (configure.ac): Require AC_C_INLINE.
24638 2008-03-30 Bruno Haible <bruno@clisp.org>
24640 * lib/freadseek.c (freadseek): Don't ignore the return value of
24643 2008-03-29 Eric Blake <ebb9@byu.net>
24645 Add hex float support.
24646 * modules/strtod (Depends-on): Add c-ctype.
24647 (Link): Mention POW_LIB.
24648 * lib/strtod.c (strtod): Recognize hex floats. Don't allow
24649 whitespace between 'e' and exponent.
24650 * tests/test-strtod.c (main): Enable hex float tests.
24651 * doc/posix-functions/strtod.texi (strtod): Document what gnulib
24654 Document various strtod bugs, with some fixes.
24655 * doc/posix-functions/strtod.texi (strtod): Document bugs with
24656 "-0x", "inf", "nan", and hex constants.
24657 * doc/posix-functions/atof.texi (atof): Likewise.
24658 * modules/stdlib (Makefile.am): Support strtod.
24659 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
24660 * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
24661 detect additional strtod bugs.
24662 * lib/stdlib.in.h (rpl_strtod): Add declarations.
24663 * lib/strtod.c (strtod): Return -0.0 on negative underflow. Use
24664 bool where appropriate. Parse 'inf' and 'nan'.
24665 * tests/test-strtod.c: New file.
24666 * modules/strtod (Depends-on): Add stdbool, stdlib.
24667 (configure.ac): Turn on module indicator.
24668 * modules/strtod-tests: New module.
24670 2008-03-29 Eric Blake <ebb9@byu.net>
24672 Fix ftell on mingw.
24673 * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
24674 * modules/ftell-tests (Depends-on): Add binary-io.
24675 * modules/ftello-tests (Depends-on): Likewise.
24676 * tests/test-ftell.c (main): Enhance test to cover behavior after
24677 ungetc. Enforce binary mode.
24678 * tests/test-ftello.c (main): Likewise.
24680 Pass test-freadseek on cygwin.
24681 * modules/freadseek (Depends-on): Use freadptr, not freadahead.
24682 * lib/freadseek.c (freadseek): Don't increment beyond bounds of
24685 * tests/test-fflush2.c (main): Fix typo.
24687 2008-03-29 Bruno Haible <bruno@clisp.org>
24689 * tests/test-fflush2.c (main): Temporarily disable the contents of
24691 * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
24692 Reported by Eric Blake.
24694 2008-03-28 Simon Josefsson <simon@josefsson.org>
24696 * lib/gc.h (enum Gc_hash): Add GC_SHA224.
24697 (GC_SHA224_DIGEST_SIZE): Add.
24699 * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
24700 (gc_hash_digest_length): Likewise.
24701 (gc_hash_buffer): Likewise.
24703 2008-03-25 Bruno Haible <bruno@clisp.org>
24705 * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
24706 detail which gettext release to use.
24707 Reported by Simon Josefsson.
24709 2008-03-26 Jim Meyering <meyering@redhat.com>
24711 gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
24712 * modules/gnumakefile (clean-GNUmakefile): Also, use
24713 test ... && ... || : syntax rather than if-then ... fi.
24715 gnumakefile: Don't double-quote-expand $(VPATH) value.
24716 * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
24718 2008-03-24 Eric Blake <ebb9@byu.net>
24720 Alter GNUmakefile to install into top directory.
24721 * modules/maintainer-makefile: Split, and add dependency...
24722 * modules/gnumakefile: to this new module.
24723 * build-aux/GNUmakefile: Move...
24724 * top/GNUmakefile: ...here.
24725 * build-aux/maint.mk: Move...
24726 * top/maint.mk: ...here.
24727 * MODULES.html.sh (Support for maintaining...): Document new
24730 2008-03-23 Bruno Haible <bruno@clisp.org>
24732 * gnulib-tool: New options --vc-files, --no-vc-files.
24733 (func_usage): Document them.
24734 (vc_files): New variable.
24735 (func_import): Consider vc_files.
24736 (func_create_testdir): Set vc_files to empty.
24737 Suggested by Jim Meyering and Karl Berry.
24739 2008-03-23 Bruno Haible <bruno@clisp.org>
24741 Fix regex compilation error on HP-UX 11.
24742 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
24743 * modules/regex (Files): Add m4/mbstate_t.m4.
24744 Reported by Ton Voon <ton.voon@altinity.com>.
24746 2008-03-23 Bruno Haible <bruno@clisp.org>
24748 * doc/gnulib-tool.texi (gettextize and autopoint): New section.
24750 2008-03-23 Eric Blake <ebb9@byu.net>
24751 Bruno Haible <bruno@clisp.org>
24753 Install files from top/ in the destination directory.
24754 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
24755 augmentation also for the files from top/.
24756 (func_import, func_create_testdir): Rewrite file names:
24757 top/filename -> filename.
24759 2008-03-23 Bruno Haible <bruno@clisp.org>
24761 Tweak "gnulib --version" output.
24762 * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
24764 2008-03-23 Bruno Haible <bruno@clisp.org>
24766 Tweak "gnulib --version" output.
24767 * gnulib-tool (func_version): Use date of last commit to ChangeLog,
24768 rather than contents of ChangeLog, when possible.
24770 2008-03-21 Eric Blake <ebb9@byu.net>
24772 More --version tweaks.
24773 * gnulib-tool (func_version): Obey GNU Coding Standards. Output
24774 date of last ChangeLog entry.
24776 2008-03-21 Jim Meyering <meyering@redhat.com>
24778 * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
24780 2008-03-20 Eric Blake <ebb9@byu.net>
24783 * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
24785 2008-03-20 Simon Josefsson <simon@josefsson.org>
24787 * build-aux/GNUmakefile: Make git-version-gen optional. Add
24788 _build-aux variable. Suggested by Eric Blake <ebb9@byu.net>.
24790 2008-03-20 Eric Blake <ebb9@byu.net>
24792 Sync GNUmakefile with coreutils.
24793 * build-aux/GNUmakefile (have-Makefile): Rename...
24794 (_have-Makefile): ...to this, for namespace consideration.
24795 (GNUmakefile.cfg): Include, if present.
24796 (_autoreconf): Define a default.
24797 (_is-dist-target): New rule for rebuilds to pick up intra-release
24799 (maint-cfg.mk): Rename...
24800 (cfg.mk): ...to this.
24802 2008-03-18 Jim Meyering <meyering@redhat.com>
24804 New script and module: mktempd
24805 * MODULES.html.sh (maint+release support): Add mktempd.
24806 * build-aux/mktempd: New file.
24807 * modules/mktempd: New file.
24809 2008-03-15 Jim Meyering <meyering@redhat.com>
24812 * lib/sha1.c, lib/md5.c: 63 != ~63.
24813 Reported by Andreas Schwab.
24815 sha1.c, md5.c: Hoist a redundant expression.
24816 * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
24817 "ctx->buflen" only once, before calling *_process_block.
24818 * lib/md5.c (md5_process_bytes): Likewise.
24820 2008-03-14 Eric Blake <ebb9@byu.net>
24822 Bump copyright year in files generated by gnulib-tool.
24823 * gnulib-tool (func_emit_copyright_notice): Extract copyright from
24824 gnulib-tool, rather than hard-coding it.
24826 Fix 'gnulib-tool --version' output to work with git.
24827 * gnulib-tool (func_gnulib_dir): New function, extracted from...
24828 (startup): ...here.
24829 (func_version): Use it to invoke git-version-gen, rather than
24830 relying on CVS keyword expansion. Modernize wording.
24831 (cvsdatestamp, last_checkin_date, version): Kill unused
24834 2008-03-12 Jim Meyering <meyering@redhat.com>
24836 Recognize optional cast of the argument to free.
24837 * build-aux/useless-if-before-free: Update regexps.
24839 * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
24841 2008-03-11 Bruno Haible <bruno@clisp.org>
24843 Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
24844 by a single package.
24845 * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
24846 (AC_LIB_LINKFLAGS_BODY): Use the information stored by
24847 AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
24848 Reported by Sam Steingold <sds@gnu.org>.
24850 2008-03-12 Sergey Poznyakoff <gray@gnu.org.ua>
24852 * build-aux/bootstrap (version_controlled_file): Adapt for SVN
24855 2008-03-11 Bruno Haible <bruno@clisp.org>
24857 Avoid conflicts between local macro definitions.
24858 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24859 AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
24861 2008-03-10 Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>
24862 Bruno Haible <bruno@clisp.org>
24864 Make va_copy work with some version of xlc on AIX 5.1.
24865 * lib/stdarg.in.h: New file.
24866 * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
24867 On AIX, use a <stdarg.h> file substitute.
24868 * modules/stdarg (Files): Add lib/stdarg.in.h.
24869 (Depends-on): Add include_next.
24870 (Makefile.am): Build a stdarg.h substitute if requested.
24871 * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
24873 2008-03-10 Bruno Haible <bruno@clisp.org>
24875 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
24876 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
24877 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
24879 2008-03-10 Bruno Haible <bruno@clisp.org>
24881 * modules/stdlib (Depends-on): Add include_next, remove
24884 2008-03-09 Bruno Haible <bruno@clisp.org>
24886 * lib/freadahead.h (freadahead): Document more precisely.
24887 * lib/freadahead.c (freadahead): When an ungetc is in effect, return
24888 the sum of both buffer sizes.
24889 * tests/test-freadahead.c (main): Also test behaviour after ungetc.
24890 * NEWS: Document the change.
24892 2008-03-09 Bruno Haible <bruno@clisp.org>
24894 Extend freadptr to return also the buffer size.
24895 * lib/freadptr.h (freadptr): Add sizep argument.
24896 * lib/freadptr.c: Include freadptr.h, not freadahead.h.
24897 (freadptr): Add sizep argument. Determine buffer size like freadahead
24899 * tests/test-freadptr.c: Don't include freadahead.h.
24900 (main): Adapt for new calling convention of freadptr.
24901 * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
24902 * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
24903 * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
24904 tests/test-freadptr2.sh.
24905 (Depends): Remove freadahead.
24906 (TESTS): Add test-freadptr2.sh.
24907 (check_PROGRAMS): Add test-freadptr2.
24909 2008-03-09 Bruno Haible <bruno@clisp.org>
24911 * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
24912 Report and solution by Simon Josefsson.
24914 2008-03-06 Bruno Haible <bruno@clisp.org>
24916 Make fflush after ungetc work on BSD platforms.
24917 * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
24918 * tests/test-fflush2.c: New file.
24919 * tests/test-fflush2.sh: New file.
24920 * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
24921 tests/test-fflush2.c.
24922 (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
24923 * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
24925 2008-03-06 Eric Blake <ebb9@byu.net>
24927 Likewise for ftello.
24928 * modules/ftello (Dependencies): Add extensions.
24929 * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
24931 2008-03-06 Bruno Haible <bruno@clisp.org>
24933 * modules/fseeko (Dependencies): Add extensions.
24934 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
24935 Needed on glibc systems.
24937 2008-03-06 Bruno Haible <bruno@clisp.org>
24939 * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
24941 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24943 2008-03-06 Bruno Haible <bruno@clisp.org>
24945 * users.txt: Add libgnupdf.
24947 2008-03-06 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
24949 * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
24950 (Header File Substitutes, Function Substitutes,
24951 Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
24952 (Build robot for gnulib): Fix typo.
24954 2008-03-06 Bruno Haible <bruno@clisp.org>
24956 * doc/gnulib-tool.texi (VCS Issues): Small updates.
24957 Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24959 2008-03-06 Bruno Haible <bruno@clisp.org>
24961 * doc/func.texi: New file, extracted from doc/gnulib.texi.
24962 * doc/gnulib.texi: Include it.
24964 2008-03-06 Simon Josefsson <simon@josefsson.org>
24966 * modules/func (License): Change license to unlimited; there was
24967 no LGPL parts in the module anyway.
24969 2008-03-06 Simon Josefsson <simon@josefsson.org>
24971 * modules/__func__: Renamed to modules/func.
24972 * modules/__func__-tests: Renamed to modules/func-tests.
24973 * tests/test-__func__.c: Renamed to tests/test-func.c.
24974 * m4/__func__.m4: Renamed to m4/func.m4.
24975 * doc/gnulib.texi (__func__): Section renamed to func.
24976 Suggested by Eric Blake <ebb9@byu.net>.
24978 2008-03-06 Simon Josefsson <simon@josefsson.org>
24980 * doc/gnulib.texi (__func__): Use C99 terminology when talking
24981 about __func__. Make example self-contained. Suggested by Eric
24982 Blake <ebb9@byu.net>.
24984 * tests/test-__func__.c (main): Avoid extraneous () around __func.
24985 Suggested by Eric Blake <ebb9@byu.net>.
24987 2008-03-06 Simon Josefsson <simon@josefsson.org>
24989 * modules/__func__: New file.
24990 * modules/__func__-tests: New file.
24991 * tests/test-__func__.c: New file.
24992 * m4/__func__.m4: New file.
24993 * doc/gnulib.texi (__func__): Document __func__ module.
24995 2008-03-05 Simon Josefsson <simon@josefsson.org>
24997 * modules/byteswap (License): Re-license as LGPLv2+.
24999 2008-03-05 Simon Josefsson <simon@josefsson.org>
25001 * doc/Makefile: Add pdf target.
25003 2008-03-05 Simon Josefsson <simon@josefsson.org>
25005 * modules/inline (License): Use 'unlimited', since there are only
25006 *.m4 files in this module.
25008 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25009 Bruno Haible <bruno@clisp.org>
25011 Add support for HP C 7.1 on OpenVMS 8.3.
25012 * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
25014 2008-03-03 John E. Malmberg <wb8tyw@qsl.net> (tiny change)
25016 Update VMS specifics.
25017 * lib/getopt.c [VMS]: Remove include of unixlib.h.
25019 2008-03-02 Jim Meyering <meyering@redhat.com>
25021 Remove the last dependency on the "free" module.
25022 * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
25023 Reported by Bob Proulx.
25025 * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
25027 Remove useless "if" tests before free. Deprecate "free" module.
25028 * doc/posix-functions/free.texi: Mention that this
25029 module is no longer useful.
25030 * modules/free (Notice): Say this module is obsolete.
25031 * modules/readutmp (Depends-on): Remove free.
25032 * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
25033 * lib/putenv.c (putenv): Likewise.
25034 * lib/gc-gnulib.c (gc_cipher_close): Likewise.
25035 * lib/getaddrinfo.c (freeaddrinfo): Likewise.
25036 * tests/test-c-strcasestr.c (main): Likewise.
25037 * tests/test-c-strstr.c (main): Likewise.
25038 * tests/test-mbscasestr1.c (main): Likewise.
25039 * tests/test-mbscasestr2.c (main): Likewise.
25040 * tests/test-mbsstr1.c (main): Likewise.
25041 * tests/test-mbsstr2.c (main): Likewise.
25042 * tests/test-memmem.c (main): Likewise.
25043 * tests/test-strcasestr.c (main): Likewise.
25044 * tests/test-striconv.c (main): Likewise.
25045 * tests/test-striconveh.c (main): Likewise.
25046 * tests/test-striconveha.c (main): Likewise.
25047 * tests/test-strstr.c (main): Likewise.
25049 * build-aux/git-version-gen: Adjust a comment and the Usage string.
25051 bootstrap: sync from coreutils again
25052 * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
25054 2008-03-01 Jim Meyering <meyering@redhat.com>
25056 bootstrap: sync from coreutils
25057 * build-aux/bootstrap (update_po_files): Copy a .po file into place
25058 also when the target doesn't exist.
25060 2008-03-01 Eric Blake <ebb9@byu.net>
25062 Fix bugs in last patch.
25063 * lib/memchr2.c (memchr2): Fix typo.
25064 * tests/test-memchr2.c: Test previous bug, and don't use GNU
25066 Reported by Bruce Korb.
25068 New module 'memchr2'.
25069 * modules/memchr2: New file.
25070 * modules/memchr2-tests: Likewise.
25071 * lib/memchr2.h: Likewise.
25072 * lib/memchr2.c: Likewise, based on memchr.c.
25073 * tests/test-memchr2.c: New test.
25074 * MODULES.html.sh (String handling): Add memchr2.
25076 2008-02-29 Bruno Haible <bruno@clisp.org>
25078 * modules/freadseek-tests: New file.
25079 * tests/test-freadseek.sh: New file.
25080 * tests/test-freadseek.c: New file.
25082 New module 'freadseek'.
25083 * modules/freadseek: New file.
25084 * lib/freadseek.h: New file.
25085 * lib/freadseek.c: New file.
25086 * MODULES.html.sh (File stream based Input/Output): Add freadseek.
25088 2008-02-29 Sergey Poznyakoff <gray@gnu.org.ua>
25090 * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
25093 * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
25094 program_invocation_name and program_invocation_short_name are
25097 2008-02-28 Bruno Haible <bruno@clisp.org>
25099 * tests/test-freadptr.c: Add a test for behaviour after ungetc.
25100 * tests/test-freadptr.sh: Also test non-seekable stdin.
25102 2008-02-28 Sergey Poznyakoff <gray@gnu.org.ua>
25104 * build-aux/bootstrap (source_base, m4_base)
25105 (doc_base, tests_base): New variables.
25106 (gnulib_tool_options): Do not hardcode base directories, use
25107 the above variables instead.
25109 2008-02-28 Atsushi SAKAI <sakaia@jp.fujitsu.com>
25111 * lib/xsize.h: Fix typo in comment: s/tupe/type/.
25113 2008-02-28 Bruno Haible <bruno@clisp.org>
25115 * modules/freadptr-tests: New file.
25116 * tests/test-freadptr.sh: New file.
25117 * tests/test-freadptr.c: New file.
25119 New module 'freadptr'.
25120 * modules/freadptr: New file.
25121 * lib/freadptr.h: New file.
25122 * lib/freadptr.c: New file.
25123 * MODULES.html.sh (File stream based Input/Output): Add freadptr.
25125 2008-02-26 Karl Berry <karl@freefriends.org>
25128 * libltdl/argz.c (argz_add, argz_count): New functions.
25129 * libltdl/argz.in.h: Declare them.
25130 Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
25132 2008-02-22 Bruno Haible <bruno@clisp.org>
25134 * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
25135 is a pointer type. Needed for HP-UX 10.
25136 * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
25137 * doc/posix-functions/gmtime_r.texi: Likewise.
25138 Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
25140 2008-02-24 Bruno Haible <bruno@clisp.org>
25142 * modules/environ-tests: New file.
25143 * tests/test-environ.c: New file.
25145 New module 'environ'.
25146 * modules/environ: New file.
25147 * lib/unistd.in.h (environ): New declaration.
25148 * m4/environ.m4: New file.
25149 (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
25151 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
25153 * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
25155 * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
25156 wrong claim that 'environ' is missing on some systems.
25157 * modules/execute (Depends-on): Add environ.
25158 * lib/execute.c (environ): Remove fallback declaration.
25159 * modules/pipe (Depends-on): Add environ.
25160 * lib/pipe.c (environ): Remove fallback declaration.
25161 * modules/setenv (Depends-on): Add environ.
25162 * lib/setenv.c (environ): Remove fallback declaration.
25163 * modules/unsetenv (Depends-on): Add environ.
25164 * lib/unsetenv.c (environ): Remove fallback declaration.
25165 * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
25167 (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
25168 (gl_PREREQ_UNSETENV): Likewise.
25170 2008-02-24 Bruno Haible <bruno@clisp.org>
25172 * doc/posix-functions/environ.texi: Document the MacOS X problem.
25174 2008-02-20 Bob Proulx <bob@proulx.com>
25176 Enable use of older two part flavor 'git describe'.
25177 * build-aux/git-version-gen: If using the older two part flavor of
25178 git version then recreate the third part now present in the
25179 newer three part flavor of git describe.
25181 2008-02-20 Martin Buchholz <martin@xemacs.org> (tiny change)
25183 * lib/fts.c (fts_build): Typo correction to comment.
25185 2008-02-17 Bruno Haible <bruno@clisp.org>
25187 * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
25188 generating no-op conflicts.
25190 2008-02-17 Bruno Haible <bruno@clisp.org>
25193 * lib/git-merge-changelog.c (main): Use the iterator to iterate through
25194 result_entries, rather than an index-based loop.
25196 2008-02-17 Bruno Haible <bruno@clisp.org>
25199 * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
25201 (entry_create): New function.
25202 (entry_hashcode): Use the cached hashcode if possible.
25203 (read_changelog_file, try_split_merged_entry): Use entry_create.
25205 2008-02-17 Bruno Haible <bruno@clisp.org>
25207 Speed up from O(n^2) to O(n) for long ChangeLog files.
25208 * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
25209 (read_changelog_file): Change implementation of entries_reversed list
25211 * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
25213 2008-02-17 Bruno Haible <bruno@clisp.org>
25215 New option --split-merged-entry.
25216 * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
25217 (find_paragraph_end, try_split_merged_entry): New functions.
25218 (long_options): Add option --split-merged-entry.
25219 (usage): Document option --split-merged-entry.
25220 (main): Implement option --split-merged-entry.
25221 Reported by Eric Blake.
25223 2008-02-17 Bruno Haible <bruno@clisp.org>
25225 * lib/git-merge-changelog.c: Include c-strstr.h.
25226 (main): Support the "git pull --rebase" situation.
25227 * modules/git-merge-changelog (Depends-on): Add c-strstr.
25228 Reported by Eric Blake.
25230 2008-02-16 Eric Blake <ebb9@byu.net>
25232 Avoid doubling \ in common case of "c-maybe" quoting style.
25233 * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
25234 eliding outer quotes.
25235 * lib/quotearg.h: Document this.
25236 * tests/test-quotearg.c (result_strings, inputs, results_g)
25237 (flag_results, locale_results): Test it by adding a new string to
25239 (compare_strings): Test new string.
25241 2008-02-13 Eric Blake <ebb9@byu.net>
25243 Avoid trigraph quoting in default output.
25244 * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
25245 * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
25246 unless explicitly requested.
25247 * tests/test-quotearg.c (flag_results, main): Add additional tests.
25249 2008-02-13 Lasse Collin <lasse.collin@tukaani.org>
25251 Don't rely on signed integer overflowing to negative value.
25252 * lib/getugroups.c (getugroups): Include <limits.h>.
25253 Instead, compare against INT_MAX, and increment only if the test passes.
25255 2008-02-13 Jim Meyering <meyering@redhat.com>
25256 and Eric Blake <ebb9@byu.net>
25258 Avoid shadowing warning and compile errors on Linux.
25259 * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
25260 forwarding macros on Linux.
25261 (dcgettext): Define a stub, for Linux.
25262 (results_g, main): Avoid warnings.
25264 2008-02-12 Eric Blake <ebb9@byu.net>
25266 Silence warning in last patch.
25267 * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
25269 Quotearg part 4: add tests, fix c-maybe colon quoting.
25270 * lib/quotearg.h: Improve documentation.
25271 * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
25272 escapes when adding outer quotes. When quoting trigraphs, use
25273 valid C notation. When quoting NUL, omit extra characters if next
25274 character is not digit. Alter prototype.
25275 (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
25277 * modules/quotearg-tests: New module.
25278 * tests/test-quotearg.c: New test.
25280 2008-02-07 Eric Blake <ebb9@byu.net>
25282 Quotearg part 3: add flag to control outer quote elision.
25283 * lib/quotearg.h (c_maybe_quoting_style): New style.
25284 (enum quoting_flags): Better documentation of flags.
25285 * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
25287 (quotearg_buffer_restyled): Handle new flag to elide outer
25290 Quotearg part 2: add flag that can control NUL elision.
25291 * lib/quotearg.h (set_quoting_flags): New prototype.
25292 * lib/quotearg.c (struct quoting_options): Add flag field.
25293 (set_quoting_flags): New function.
25294 (quotearg_buffer_restyled): Add flags parameter.
25295 (quotearg_alloc_mem): Set the flag if length cannot be returned.
25296 (quotearg_n_options): Set the flag, since length cannot be
25298 (quoting_options_from_style): Default flags correctly.
25300 Quotearg part 1: more wrappers, restore quotearg_char state.
25301 * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
25302 (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
25303 (quotearg_colon_mem): New wrappers.
25304 * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
25305 (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
25307 (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
25308 (quotearg_colon_mem): New functions.
25310 2008-02-11 Bruno Haible <bruno@clisp.org>
25312 * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
25313 library in the current directory: it does not work with parallel make.
25314 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
25316 2008-02-11 Bruno Haible <bruno@clisp.org>
25318 * .gitattributes: New file.
25320 2008-02-11 Jim Meyering <meyering@redhat.com>
25322 useless-if-before-free: Fix reversed exit values.
25323 * build-aux/useless-if-before-free: Use correct values
25324 for EXIT_MATCH and EXIT_NO_MATCH.
25326 * build-aux/useless-if-before-free: Close stdout carefully.
25328 2008-02-10 Bruno Haible <bruno@clisp.org>
25330 New module 'git-merge-changelog'.
25331 * modules/git-merge-changelog: New file.
25332 * lib/git-merge-changelog.c: New file.
25334 2008-02-10 Jim Meyering <meyering@redhat.com>
25336 useless-if-before-free: New option: --list (-l).
25338 useless-if-before-free: Don't exit immediately upon open failure.
25339 * build-aux/useless-if-before-free: Exit 2 for errors.
25340 Upon failure to open a file, don't exit immediately.
25341 Rather, just warn and continue with any remaining files.
25343 2008-02-10 Bruno Haible <bruno@clisp.org>
25345 New abstract list operation 'node_set_value'.
25346 * lib/gl_list.h (gl_list_node_set_value): New function.
25347 (struct gl_list_implementation): New field node_set_value.
25348 * lib/gl_list.c (gl_list_node_set_value): New function.
25349 * lib/gl_array_list.c (gl_array_node_set_value): New function.
25350 (gl_array_list_implementation): Update.
25351 * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
25352 (gl_carray_list_implementation): Update.
25353 * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
25354 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
25355 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
25356 * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
25357 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
25358 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
25359 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
25361 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
25362 * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
25363 (gl_sublist_list_implementation): Update.
25365 2008-02-10 Bruno Haible <bruno@clisp.org>
25367 * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
25368 Needed when ELEMENT is #defined to 'some_type *'.
25370 2008-02-10 Jim Meyering <meyering@redhat.com>
25372 New script and module: useless-if-before-free
25373 * MODULES.html.sh (maint+release support): Add useless-if-before-free.
25374 * build-aux/useless-if-before-free: New file.
25375 * modules/useless-if-before-free: New file.
25377 * build-aux/gitlog-to-changelog: Use committer date, not author date.
25379 xstrtol_error: Fix typo.
25380 * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
25381 s/exit_failure/exit_status/.
25383 2008-02-09 Jim Meyering <meyering@redhat.com>
25385 New script and module: gitlog-to-changelog
25386 * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
25387 * modules/gitlog-to-changelog: New file.
25388 * build-aux/gitlog-to-changelog: New file.
25390 2008-02-08 Jim Meyering <meyering@redhat.com>
25392 Avoid two "parameter unused" warnings.
25393 * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
25396 Use "git COMMAND", not "git-COMMAND".
25397 * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
25398 * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
25399 * build-aux/git-version-gen: Use "git status", not "git-status".
25401 2008-02-07 Bruno Haible <bruno@clisp.org>
25403 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
25404 Avoids a crash on Windows Vista.
25405 Reported by Adam Strzelecki <ono@java.pl> via
25406 Simon Josefsson <simon@josefsson.org>.
25408 2008-02-06 Bruno Haible <bruno@clisp.org>
25410 Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
25411 * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
25412 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
25413 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
25414 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
25415 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25416 gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
25417 gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
25418 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25419 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25420 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25421 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25422 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25423 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25424 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25425 * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
25427 * tests/test-snprintf-posix.h (test_function): Likewise.
25428 * tests/test-sprintf-posix.h (test_function): Likewise.
25429 * tests/test-vasprintf-posix.c (test_function): Likewise.
25430 * doc/posix-functions/fprintf.texi: Update.
25431 * doc/posix-functions/printf.texi: Update.
25432 * doc/posix-functions/snprintf.texi: Update.
25433 * doc/posix-functions/sprintf.texi: Update.
25434 * doc/posix-functions/vfprintf.texi: Update.
25435 * doc/posix-functions/vprintf.texi: Update.
25436 * doc/posix-functions/vsnprintf.texi: Update.
25437 * doc/posix-functions/vsprintf.texi: Update.
25438 Reported by Peter Fales <psfales@alcatel-lucent.com>.
25440 2008-02-06 Bruno Haible <bruno@clisp.org>
25442 Fix bug introduced on 2008-01-26.
25443 * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
25445 2008-02-06 Bruno Haible <bruno@clisp.org>
25447 Fix bug introduced on 2007-06-10.
25448 * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
25449 !NEED_PRINTF_FLAG_ZERO.
25451 2008-02-05 Peter O'Gorman <pogma@thewrittenword.com>
25453 getloadavg: use libperfstat on AIX5
25454 * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
25456 2008-02-03 Bruno Haible <bruno@clisp.org>
25458 * lib/diffseq.h: Add comments about required #includes.
25459 Reported by Michael Biggs <gnulib@doubleplum.net>.
25461 2008-02-01 Bruno Haible <bruno@clisp.org>
25463 * users.txt: Add gnuit.
25465 2008-01-31 Bruno Haible <bruno@clisp.org>
25467 * lib/md4.c (set_uint32): Mark as inline.
25468 * lib/md5.c (set_uint32): Likewise.
25469 * lib/sha1.c (set_uint32): Likewise.
25470 * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
25471 * m4/md5.m4 (gl_MD5): Likewise.
25472 * m4/sha1.m4 (gl_SHA1): Likewise.
25474 2008-01-31 Jim Meyering <meyering@redhat.com>
25476 Use "sizeof VAR", rather than a literal "4".
25477 * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
25478 * lib/md4.c (md4_read_ctx): Likewise.
25479 * lib/sha1.c (sha1_read_ctx): Likewise.
25481 2008-01-31 Simon Josefsson <simon@josefsson.org>
25483 * tests/test-sha1.c: New file, based on test-md5.c.
25485 * modules/crypto/sha1-tests: New file.
25487 2008-01-31 Simon Josefsson <simon@josefsson.org>
25489 * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
25491 2008-01-31 Jim Meyering <meyering@redhat.com>
25493 Prefer "sizeof v" over the equivalent "4".
25494 * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
25495 * lib/md5.c (set_uint32): Likewise.
25496 * lib/sha1.c (set_uint32): Likewise.
25498 2008-01-31 Simon Josefsson <simon@josefsson.org>
25500 * lib/sha1.c (set_uint32): Mark function as static.
25502 2008-01-31 Simon Josefsson <simon@josefsson.org>
25504 md2: clarify comments to say that alignment is not required.
25505 * lib/md2.h: Remove warning about alignment in comment.
25506 * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
25507 never been required.
25509 2008-01-31 Simon Josefsson <simon@josefsson.org>
25511 md4: adapt alignment constraint fix from sha1.
25512 * lib/md4.c (set_uint32): New function, from sha1.c
25513 (md4_read_ctx): Use it.
25514 (md4_finish_ctx): Doc fix.
25515 * lib/md4.h: Doc fix.
25517 2008-01-31 Simon Josefsson <simon@josefsson.org>
25519 md5: adapt alignment constraint fix from sha1.
25520 * lib/md5.c (set_uint32): New function, from sha1.c
25521 (md5_read_ctx): Use it.
25522 (md5_finish_ctx): Doc fix.
25523 * lib/md5.h: Doc fix.
25525 2008-01-30 Peter Palfrader <weasel@debian.org>
25527 sha1: remove the result buffer alignment constraint
25528 * lib/sha1.c (set_uint32): New function.
25529 (sha1_read_ctx): Rewrite to remove the result buffer alignment
25531 (sha1_finish_ctx): Remove comment warning about alignment constraint.
25532 * lib/sha1.h: Likewise.
25534 2008-01-30 Andreas Schwab <schwab@suse.de>
25535 Bruno Haible <bruno@clisp.org>
25537 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
25538 correct definition of LDBL_MIN_EXP.
25540 2008-01-30 Karl Berry <karl@gnu.org>
25542 * config/srclist-update: try to preserve x bit on updates.
25543 * config/srclistvars.sh: update for karl.
25545 2008-01-29 Jim Meyering <meyering@redhat.com>
25547 vasnprintf.c: Avoid warning about unused label
25548 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
25549 "overflow" label definition and associated code with the
25550 same cpp condition that guards the sole use of that label.
25552 2008-01-26 Bruno Haible <bruno@clisp.org>
25554 * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
25555 gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
25556 * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
25557 * lib/isnanl-nolibm.h (isnanl): Likewise.
25558 Reported by Paul Eggert <eggert@cs.ucla.edu>.
25560 2008-01-26 Bruno Haible <bruno@clisp.org>
25562 * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
25563 * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
25565 2008-01-26 Bruno Haible <bruno@clisp.org>
25567 * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
25568 GCC >= 4.0 built-in.
25569 * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
25571 2008-01-26 Bruno Haible <bruno@clisp.org>
25573 Rename isnan, applicable to 'double' only, to isnand.
25574 * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
25575 (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
25576 (configure.ac): Update.
25577 (Include): Replace "isnan.h" with "isnand.h".
25578 * m4/isnand.m4: Renamed from m4/isnan.m4.
25579 (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
25580 HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
25581 instead of isnan.c.
25582 * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
25583 instead of HAVE_ISNAN_IN_LIBC.
25584 (isnand): Renamed from isnan.
25585 * lib/isnand.c: New file.
25586 * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
25587 (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
25588 (Makefile.am): Update.
25589 * tests/test-isnand.c: Renamed from tests/test-isnan.c.
25590 Include isnand.h instead of isnan.h.
25591 (main): Test isnand instead of isnan.
25592 * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
25594 * modules/frexp (Depends-on): Likewise.
25595 * modules/frexp-tests (Depends-on): Likewise.
25596 * modules/frexp-nolibm (Depends-on): Likewise.
25597 * modules/frexp-nolibm-tests (Depends-on): Likewise.
25598 * modules/isfinite (Depends-on): Likewise.
25599 * modules/round-tests (Depends-on): Likewise.
25600 * modules/signbit (Depends-on): Likewise.
25601 * modules/signbit-tests (Depends-on): Likewise.
25602 * modules/snprintf-posix (Depends-on): Likewise.
25603 * modules/sprintf-posix (Depends-on): Likewise.
25604 * modules/trunc-tests (Depends-on): Likewise.
25605 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
25606 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
25607 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
25608 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
25609 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
25610 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
25611 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
25612 * modules/vasnprintf-posix (Depends-on): Likewise.
25613 * modules/vasprintf-posix (Depends-on): Likewise.
25614 * modules/vfprintf-posix (Depends-on): Likewise.
25615 * modules/vsnprintf-posix (Depends-on): Likewise.
25616 * modules/vsprintf-posix (Depends-on): Likewise.
25617 * lib/frexp.c: Include isnand.h instead of isnan.h.
25618 (ISNAN): Set to isnand instead of isnan.
25619 * lib/isfinite.c: Include isnand.h instead of isnan.h.
25620 (gl_isfinited): Use isnand instead of isnan.
25621 * lib/signbitd.c: Include isnand.h instead of isnan.h.
25622 (gl_signbitd): Use isnand instead of isnan.
25623 * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
25624 (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
25625 * tests/test-frexp.c: Include isnand.h instead of isnan.h.
25626 (main): Use isnand instead of isnan.
25627 * tests/test-round1.c: Include isnand.h.
25628 (main): Use isnand instead of isnan.
25629 * tests/test-round2.c: Include isnand.h instead of isnan.h.
25630 (ISNAN): Set to isnand instead of isnan.
25631 * tests/test-trunc1.c: Include isnand.h.
25632 (main): Use isnand instead of isnan.
25633 * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
25634 (equal): Use isnand instead of isnan.
25635 * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
25637 * NEWS: Mention the change.
25639 2008-01-25 Paul Eggert <eggert@cs.ucla.edu>
25640 Bruno Haible <bruno@clisp.org>
25642 * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
25643 the GCC builtins for signbits are present and set
25644 REPLACE_SIGNBIT_USING_GCC if so.
25645 * lib/math.in.h (signbit): Define using GCC builtins if
25646 REPLACE_SIGNBIT_USING_GCC is set.
25647 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
25648 REPLACE_SIGNBIT_USING_GCC.
25649 * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
25651 2008-01-25 Jim Meyering <meyering@redhat.com>
25653 Prefer <config.h> over "config.h". See autoconf doc for explanation.
25654 * lib/poll.c: Include <config.h>, not "config.h".
25655 * tests/test-getaddrinfo.c: Likewise.
25657 2008-01-25 Simon Josefsson <simon@josefsson.org>
25659 * modules/sockets-tests: New file.
25661 2008-01-24 Simon Josefsson <simon@josefsson.org>
25663 * modules/sockets: New module, can be used to call WSA_Startup and
25664 WSA_Cleanup when needed.
25666 * lib/sockets.h, lib/sockets.c: New files.
25668 * m4/sockets.m4: New file.
25670 * tests/test-sockets.c: New file.
25672 2008-01-19 Bruno Haible <bruno@clisp.org>
25674 * doc/posix-headers: Renamed from doc/headers.
25675 * doc/posix-functions: Renamed from doc/functions.
25676 * doc/gnulib.texi: Update.
25678 2008-01-19 Bruno Haible <bruno@clisp.org>
25680 * doc/glibc-functions/strcasestr.texi: Include contents of
25681 doc/functions/strcasestr.texi, fixing the list of platforms.
25682 * doc/functions/strcasestr.texi: Remove file.
25684 2008-01-19 Bruno Haible <bruno@clisp.org>
25686 * doc/glibc-functions/memmem.texi: Include contents of
25687 doc/functions/memmem.texi.
25688 * doc/functions/memmem.texi: Remove file.
25690 2008-01-18 Bruno Haible <bruno@clisp.org>
25692 * doc/glibc-functions/*.texi: New files.
25693 * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
25694 to use the new files.
25696 2008-01-17 Bruno Haible <bruno@clisp.org>
25698 * tests/test-gethostname.c (main): Fix printf statement.
25700 2008-01-17 Simon Josefsson <simon@josefsson.org>
25702 * modules/gethostname-tests: New file.
25704 * tests/test-gethostname.c: New file.
25706 2008-01-17 Simon Josefsson <simon@josefsson.org>
25708 * lib/gethostname.c: Include string.h unconditionally, strncpy is
25709 used by the UNAME case. Reported by Bruno Haible
25712 2008-01-17 Eric Blake <ebb9@byu.net>
25714 Convert c-strcasestr to be more efficient.
25715 * modules/c-strcasestr (Files): Use Two-Way, not KMP.
25716 (Depends-on): Add c-strcase, remove malloca, strnlen.
25717 * tests/test-c-strcasestr.c (main): Enhance test.
25718 * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
25720 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
25722 * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
25723 Use it in creating po/Makevars.
25725 2008-01-15 Simon Josefsson <simon@josefsson.org>
25727 * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
25728 Applications that requires it should initialize libgcrypt
25731 2008-01-16 Simon Josefsson <simon@josefsson.org>
25733 * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
25735 2008-01-15 Paul Eggert <eggert@cs.ucla.edu>
25737 Fix problem with getdate on mingw32 reported by Simon Josefsson
25738 in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
25739 * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
25740 tzname", when deciding whether to declare tzname.
25741 * lib/strftime.c (tzname): Likewise.
25743 2008-01-15 Bruno Haible <bruno@clisp.org>
25745 Work around a MacOS X 10.5 bug in frexpl().
25746 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
25747 * doc/functions/frexpl.texi: Document the bug.
25748 Reported by Elias Pipping <pipping@gentoo.org>.
25750 2008-01-14 Eric Blake <ebb9@byu.net>
25752 Touch up previous patch.
25753 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
25754 * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
25756 Convert strcasestr module to use Two-Way algorithm.
25757 * modules/strcasestr-simple: New module, based on the old
25758 strcasestr, but with Two-Way rather than KMP.
25759 * modules/strcasestr (Depends-on): Change to strcasestr-simple.
25760 * lib/string.in.h (rpl_strcasestr): Declare.
25761 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
25763 * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
25764 * modules/string (Makefile.am): Support strcasestr.
25765 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
25766 * modules/strcasestr-tests (Depends-on): Check for alarm.
25767 * tests/test-strcasestr.c: Augment test.
25768 * lib/str-two-way.h: Clean up stray macro.
25769 * NEWS: Document new module.
25770 * MODULES.html.sh (string handling): Likewise.
25771 * doc/functions/strcasestr.texi: New file.
25772 * doc/gnulib.texi (Function Substitutes): New node. Move memmem
25773 here, since it is not a POSIX function.
25775 2008-01-14 Colin Watson <cjwatson@debian.org>
25776 Bruno Haible <bruno@clisp.org>
25778 * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
25779 works fine; if not, set REPLACE_STRSIGNAL.
25780 (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
25781 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25783 * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
25784 * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
25785 * tests/test-strsignal.c (main): Check out-of-range signal numbers.
25787 2008-01-14 Bruno Haible <bruno@clisp.org>
25789 * modules/strsignal (Include): Change to <string.h>.
25791 2008-01-14 Colin Watson <cjwatson@debian.org>
25793 * modules/argp (Notice): Add a notice recommending to change
25795 (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
25797 2008-01-13 Colin Watson <cjwatson@debian.org>
25799 * modules/strsignal-tests: New file.
25800 * tests/test-strsignal.c: New file.
25802 * lib/strsignal.c: New file, from glibc with modifications.
25803 * lib/siglist.h: New file, from glibc with modifications.
25804 * lib/string.in.h (strsignal): New declaration.
25805 * m4/strsignal.m4: New file.
25806 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
25807 GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
25808 * modules/strsignal: New file.
25809 * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
25810 HAVE_DECL_STRSIGNAL.
25812 2008-01-13 Bruno Haible <bruno@clisp.org>
25814 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
25815 locale encoding is not ASCII. Needed for OpenBSD 4.0.
25816 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
25817 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
25819 2008-01-13 Bruno Haible <bruno@clisp.org>
25821 * lib/argp-fmtstream.h (__attribute__): Don't redefine if
25822 __STRICT_ANSI__ is set: it's not needed by any version of gcc.
25823 * lib/argp.h (__attribute__): Likewise.
25824 * lib/c-stack.c (__attribute__): Likewise.
25825 * lib/error.h (__attribute__): Likewise.
25826 * lib/fts.c (__attribute__): Likewise.
25827 * lib/openat.h (__attribute__): Likewise.
25828 * lib/stdio.in.h (__attribute__): Likewise.
25829 * lib/string.in.h (__attribute__): Likewise.
25830 * lib/utimens.c (__attribute__): Likewise.
25831 * lib/vasnprintf.h (__attribute__): Likewise.
25832 * lib/xalloc.h (__attribute__): Likewise.
25833 * lib/xprintf.h (__attribute__): Likewise.
25834 * lib/xstrtol.h (__attribute__): Likewise.
25835 * lib/xvasprintf.h (__attribute__): Likewise.
25837 2008-01-12 Bruno Haible <bruno@clisp.org>
25839 * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
25840 * doc/glibc-headers/a.out.texi: New file.
25841 * doc/glibc-headers/aliases.texi: New file.
25842 * doc/glibc-headers/alloca.texi: New file.
25843 * doc/glibc-headers/ar.texi: New file.
25844 * doc/glibc-headers/argp.texi: New file.
25845 * doc/glibc-headers/argz.texi: New file.
25846 * doc/glibc-headers/byteswap.texi: New file.
25847 * doc/glibc-headers/crypt.texi: New file.
25848 * doc/glibc-headers/endian.texi: New file.
25849 * doc/glibc-headers/envz.texi: New file.
25850 * doc/glibc-headers/err.texi: New file.
25851 * doc/glibc-headers/error.texi: New file.
25852 * doc/glibc-headers/execinfo.texi: New file.
25853 * doc/glibc-headers/fpu_control.texi: New file.
25854 * doc/glibc-headers/fstab.texi: New file.
25855 * doc/glibc-headers/fts.texi: New file.
25856 * doc/glibc-headers/getopt.texi: New file.
25857 * doc/glibc-headers/ieee754.texi: New file.
25858 * doc/glibc-headers/ifaddrs.texi: New file.
25859 * doc/glibc-headers/libintl.texi: New file.
25860 * doc/glibc-headers/mcheck.texi: New file.
25861 * doc/glibc-headers/mntent.texi: New file.
25862 * doc/glibc-headers/obstack.texi: New file.
25863 * doc/glibc-headers/paths.texi: New file.
25864 * doc/glibc-headers/printf.texi: New file.
25865 * doc/glibc-headers/pty.texi: New file.
25866 * doc/glibc-headers/resolv.texi: New file.
25867 * doc/glibc-headers/shadow.texi: New file.
25868 * doc/glibc-headers/sysexits.texi: New file.
25869 * doc/glibc-headers/ttyent.texi: New file.
25871 2008-01-12 Jim Meyering <meyering@redhat.com>
25873 announce-gen: emit Gnulib's git-based version string.
25874 * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
25875 New option --gnulib-version=V, where V is expected to be
25876 the output of running git describe in the gnulib directory.
25877 (get_tool_versions): Request feedback on xdelta. I suspect it's
25878 not useful, and plan to stop publishing an xdelta file with each
25881 * build-aux/announce-gen: Also check for lzma-compressed files.
25883 2008-01-11 Bruno Haible <bruno@clisp.org>
25885 * tests/test-memmem.c (main): Increase maximum allowed time.
25886 * tests/test-strstr.c (main): Likewise.
25888 2008-01-11 Bruno Haible <bruno@clisp.org>
25890 * doc/functions/memmem.texi: Add more precisions about platforms.
25891 * doc/functions/strstr.texi: Likewise.
25893 2008-01-10 Eric Blake <ebb9@byu.net>
25895 * m4/strstr.m4: Delete cruft from copy-n-paste.
25896 Reported by Bruno Haible.
25898 2008-01-10 Bruno Haible <bruno@clisp.org>
25900 Make c-strstr rely on strstr.
25901 * lib/c-strstr.c: Don't include str-kmp.h.
25902 (c_strstr): Define in terms of strstr.
25903 * modules/c-strstr (Files): Remove lib/str-kmp.h.
25904 (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
25906 2008-01-10 Bruno Haible <bruno@clisp.org>
25908 * doc/gnulib.texi (String Functions in C Locale): New section.
25909 * doc/c-ctype.texi: New file.
25910 * doc/c-strcase.texi: New file.
25911 * doc/c-strcaseeq.texi: New file.
25912 * doc/c-strcasestr.texi: New file.
25913 * doc/c-strstr.texi: New file.
25914 * doc/c-strtod.texi: New file.
25915 * doc/c-strtold.texi: New file.
25917 2008-01-10 Eric Blake <ebb9@byu.net>
25919 * lib/relocatable.h: Fix a comment.
25921 2008-01-10 Eric Blake <ebb9@byu.net>
25923 Share two-way algorithm.
25924 * lib/str-two-way.h: New file, merged from...
25925 * lib/memmem.c: ...here...
25926 * lib/strstr.c: ...and here.
25927 * modules/memmem (Files): Use it.
25928 * modules/strstr (Files): Likewise.
25930 Avoid quadratic strstr implementations.
25931 * lib/strstr.c: New file.
25932 * m4/strstr.m4: Likewise.
25933 * modules/strstr: Likewise.
25934 * modules/strstr-tests: Likewise.
25935 * tests/test-strstr.c: Likewise.
25936 * lib/string.in.h (rpl_strstr): Declare.
25937 (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
25938 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
25939 * modules/string (Makefile.am): Likewise.
25940 * MODULES.html.sh (string handling): Mention new module.
25941 * doc/functions/strstr.texi (strstr): Document the bug.
25943 2008-01-10 Bruno Haible <bruno@clisp.org>
25945 * lib/relocatable.h (relocate): State whether result is freshly
25947 * lib/relocatable.c (relocate): Return a freshly allocated string
25948 instead of a pointer to a privately held string.
25949 Reported by Sylvain Beucler <beuc@gnu.org>.
25951 2008-01-10 Colin Watson <cjwatson@debian.org>
25953 * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
25954 s/S_ISNLK/S_ISLNK/.
25956 2008-01-09 Bruno Haible <bruno@clisp.org>
25958 * doc/functions/memmem.texi: Use the same structure as snprintf.texi
25960 * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
25961 if it's only a guess.
25962 * modules/memmem: Simplify by depending on memmem-simple.
25964 2008-01-09 Bruno Haible <bruno@clisp.org>
25966 Work around OpenBSD 4.0 tdelete() bug.
25967 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
25968 * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
25969 macros and don't redefine the enum values.
25970 * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
25971 * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
25972 * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
25974 2008-01-09 Bruno Haible <bruno@clisp.org>
25976 * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
25977 (main): Don't perform the tests if setlocale did not install a UTF-8
25978 locale. Needed on OpenBSD 4.0.
25979 * modules/wcwidth-tests (Depends-on): Add localcharset.
25981 2008-01-09 Paul Eggert <eggert@cs.ucla.edu>
25983 gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
25984 See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
25985 * NEWS: announce this.
25986 * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
25988 2008-01-09 Simon Josefsson <simon@josefsson.org>
25989 and Eric Blake <ebb9@byu.net>
25991 Add memmem-simple module.
25992 * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
25993 (gl_FUNC_MEMMEM): Separate performance from presence checks.
25994 * modules/memmem-simple: New file.
25995 * modules/memmem (Description): Tweak.
25996 * MODULES.html.sh (string handling): Mention new module.
25997 * doc/functions/memmem.texi (memmem): Distinguish which flaws are
25998 addressed by memmem-simple.
25999 * NEWS: Document the difference.
26001 2008-01-09 Eric Blake <ebb9@byu.net>
26003 Give gcc some memmem optimization hints.
26004 * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
26005 (strcasestr): Declare as pure.
26006 * modules/memmem (Maintainer): Claim my implementation.
26008 2008-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26010 Support AIX 6.1 and higher.
26011 * build-aux/config.libpath: Likewise.
26012 * build-aux/config.rpath: Likewise.
26014 2008-01-08 Jim Meyering <meyering@redhat.com>
26015 Bruno Haible <bruno@clisp.org>
26017 * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
26018 on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
26019 Reported by Peter Fales in
26020 <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
26022 2008-01-08 Bruno Haible <bruno@clisp.org>
26024 * modules/unictype/category-of (Depends-on): Add
26025 unictype/category-none.
26026 * modules/unictype/category-and-tests (Depends-on): Add
26027 unictype/category-{L,N,Lu,Nd}.
26028 * modules/unictype/category-and-not-tests (Depends-on): Likewise.
26029 * modules/unictype/category-or-tests (Depends-on): Add
26030 unictype/category-{L,N}.
26031 * modules/unictype/category-name-tests (Depends-on): Add
26032 unictype/category-{Z,Nl}.
26033 Reported by Simon Josefsson.
26035 2008-01-08 Bruno Haible <bruno@clisp.org>
26037 * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
26039 * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
26040 * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
26041 Reported by Peter Miller <millerp@canb.auug.org.au>.
26043 2008-01-08 Eric Blake <ebb9@byu.net>
26045 Rewrite memmem to guarantee linear complexity without malloc.
26046 * lib/memmem.c (memmem): Use Two-Way rather than
26047 Knuth-Morris-Pratt, to allow O(1) space usage.
26048 (critical_factorization, two_way_short_needle)
26049 (two_way_long_needle): New functions.
26050 (knuth_morris_pratt): Delete.
26051 * modules/memmem (Depends-on): No longer need malloca or stdbool.
26053 * tests/test-memmem.c (main): Add tests for periodic needle and
26054 sublinear performance.
26055 * doc/functions/memmem.texi (memmem): Document other deficiencies
26056 in cygwin and older glibc.
26058 2008-01-08 Bruno Haible <bruno@clisp.org>
26060 * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
26063 2008-01-08 Mike Frysinger <vapier@gentoo.org>
26065 Add a configure time option: --disable-acl.
26066 * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
26067 AC_ARG_ENABLE(acl).
26069 2008-01-06 Simon Josefsson <simon@josefsson.org>
26071 * tests/test-localename.c: Don't include obsolete "setenv.h".
26073 * modules/localename-tests (Depends-on): Need unsetenv.
26075 2008-01-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26077 * DEPENDENCIES: Require Texinfo version 4.6 or newer.
26079 2008-01-06 Colin Watson <cjwatson@debian.org>
26081 * users.txt: Add man-db.
26083 2008-01-07 Bruno Haible <bruno@clisp.org>
26085 * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
26086 previous section name.
26088 2008-01-07 Bruno Haible <bruno@clisp.org>
26090 * lib/progname.c (set_program_name): Don't strip off a leading
26091 "lt-" prefix outside a .libs directory.
26092 Suggested by Paul Eggert.
26094 2008-01-01 Sylvain Beucler <beuc@gnu.org>
26095 Bruno Haible <bruno@clisp.org>
26097 Improve memory cleanup in 'relocatable' module.
26098 * lib/relocatable.h (compute_curr_prefix): Change return type to
26100 * lib/relocatable.c (compute_curr_prefix): Change return type to
26101 'char *'. Free curr_installdir after use.
26102 (relocate): Free curr_prefix_better after use.
26103 * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
26105 2008-01-01 Bruno Haible <bruno@clisp.org>
26107 * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
26108 failure on older glibc systems.
26109 Reported by Peter Fales <psfales@alcatel-lucent.com>.
26111 2008-01-05 Eric Blake <ebb9@byu.net>
26113 Avoid quadratic system memmem.
26114 * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
26115 Reported by Ralf Wildenhues.
26117 Fix memmem test for mingw.
26118 * modules/memmem-tests (configure.ac): Check for alarm.
26119 * tests/test-memmem.c (main): Avoid alarm on platforms that lack
26121 * doc/functions/memmem.texi: New file.
26122 * doc/gnulib.texi (Function Substitutes): Add memmem.
26123 Reported by Bruno Haible.
26125 2008-01-04 Bruno Haible <bruno@clisp.org>
26127 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
26128 Require gl_HEADER_STRINGS_H_DEFAULTS, not
26129 gl_HEADER_STRING_H_DEFAULTS.
26131 2008-01-04 Eric Blake <ebb9@byu.net>
26133 Shorten duration of memmem test.
26134 * tests/test-memmem.c (main): Use alarm to declare failure if test
26135 is taking too long.
26136 Reported by Ralf Wildenhues.
26138 2007-12-21 Simon Josefsson <simon@josefsson.org>
26140 * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
26141 string, needed by strerror.
26143 2008-01-03 Colin Watson <cjwatson@debian.org>
26144 Bruno Haible <bruno@clisp.org>
26146 * doc/gnulib-tool.texi (Localization): New section.
26148 2008-01-02 Bruno Haible <bruno@clisp.org>
26150 * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
26151 variables to 'unsigned char *' type.
26152 Reported by Paul Eggert.
26154 2008-01-02 Jim Meyering <jim@meyering.net>
26156 * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
26158 2007-12-31 Jim Meyering <jim@meyering.net>
26160 Avoid use of private FTS type name.
26161 * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
26163 2007-12-30 Karl Berry <karl@gnu.org>
26165 * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
26166 work around defect in Texinfo and/or the standalone Info browser.
26168 2007-12-30 Bruno Haible <bruno@clisp.org>
26170 Unify 5 copies of the KMP code.
26171 * lib/str-kmp.h: New file.
26172 * lib/c-strcasestr.c: Include str-kmp.h.
26173 (knuth_morris_pratt): Remove function.
26174 (c_strcasestr): Update.
26175 * lib/c-strstr.c: Include str-kmp.h.
26176 (knuth_morris_pratt): Remove function.
26177 (c_strcasestr): Update.
26178 * lib/mbscasestr.c: Include str-kmp.h.
26179 (knuth_morris_pratt_unibyte): Remove function.
26180 * lib/mbsstr.c: Include str-kmp.h.
26181 (knuth_morris_pratt_unibyte): Remove function.
26182 * lib/strcasestr.c: Include str-kmp.h.
26183 (knuth_morris_pratt): Remove function.
26184 (strcasestr): Update.
26185 * modules/c-strcasestr (Files): Add lib/str-kmp.h.
26186 * modules/c-strstr (Files): Likewise.
26187 * modules/mbscasestr (Files): Likewise.
26188 * modules/mbsstr (Files): Likewise.
26189 * modules/strcasestr (Files): Likewise.
26190 Suggested by Paul Eggert.
26192 2007-12-30 Bruno Haible <bruno@clisp.org>
26194 * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
26197 2007-12-30 Bruno Haible <bruno@clisp.org>
26199 * lib/xmalloca.h: Include xalloc.h.
26200 (xnmalloca): New macro.
26202 2007-12-30 Bruno Haible <bruno@clisp.org>
26204 * lib/malloca.h (nmalloca): New macro.
26205 * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
26206 * lib/c-strstr.c (knuth_morris_pratt): Likewise.
26207 * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
26208 knuth_morris_pratt_multibyte): Likewise.
26209 * lib/mbsstr.c (knuth_morris_pratt_unibyte,
26210 knuth_morris_pratt_multibyte): Likewise.
26211 * lib/memmem.c (knuth_morris_pratt): Likewise.
26212 * lib/strcasestr.c (knuth_morris_pratt): Likewise.
26214 2007-12-25 Bruno Haible <bruno@clisp.org>
26216 Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
26217 * lib/glob.c: Don't include openat.h.
26218 (link_exists2_p): Add back the code that deals with the
26219 !GLOB_ALTDIRFUNC case.
26220 (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
26221 let it do the filename concatenation.
26222 * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
26223 * modules/glob (Depends-on): Remove openat.
26225 2007-12-31 Bruno Haible <bruno@clisp.org>
26227 * modules/dirfd (License): Change to LGPLv2+.
26228 Approved by Jim Meyering.
26230 2007-12-29 Paul Eggert <eggert@cs.ucla.edu>
26232 * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
26233 when multiplying M by sizeof (size_t).
26235 2007-12-10 Martin Lambers <marlam@marlam.de>
26237 Override getpagesize on mingw.
26238 * lib/getpagesize.c: New file.
26239 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
26240 * modules/getpagesize (Files): Add lib/getpagesize.c.
26241 * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
26242 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26243 REPLACE_GETPAGESIZE.
26244 * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
26246 2007-12-25 Bruno Haible <bruno@clisp.org>
26248 * modules/localcharset (Notice): New field.
26249 (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
26250 Suggested by Ben Pfaff <blp@cs.stanford.edu>.
26252 2007-12-25 Paul Eggert <eggert@cs.ucla.edu>
26253 Bruno Haible <bruno@clisp.org>
26255 Avoid using the syntax symbol() in formatted documentation.
26256 * MODULES.html.sh (func_module): When replacing symbol() with a
26257 hyperlink, remove the parentheses. Show an error if some remain.
26258 Recognize and render the '...' syntax.
26259 * doc/alloca-opt.texi: Remove parentheses from symbol reference.
26260 Rework. Add paragraph about GCC's inlining.
26261 * doc/alloca.texi: Likewise.
26262 * doc/error.texi: Remove parentheses from symbol reference.
26263 * doc/gnulib-intro.texi: Likewise.
26264 * doc/gnulib.texi (alloca, alloca-opt): New nodes.
26265 * modules/fnmatch (Description): Reword to say "the ... function".
26266 * modules/full-read (Description): Likewise.
26267 * modules/full-write (Description): Likewise.
26268 * modules/safe-read (Description): Likewise.
26269 * modules/safe-write (Description): Likewise.
26270 * modules/strchrnul (Description): Likewise.
26271 * modules/trim (Description): Likewise.
26272 * modules/error (Description): Remove parentheses from symbol
26274 * modules/verror (Description): Likewise.
26275 Reported by Karl Berry.
26277 2007-12-25 Bruno Haible <bruno@clisp.org>
26279 Fixup after 2007-10-16 commit.
26280 * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
26282 2007-12-24 Bruno Haible <bruno@clisp.org>
26284 Make --enable-relocatable work with DESTDIR.
26285 * build-aux/install-reloc: Accept another argument 'destdir'. Use it
26286 to compute installdir from destprog.
26287 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
26288 also set the RELOC_DESTDIR variable.
26289 Reported by Левашев Иван <octagram@bluebottle.com>.
26291 2007-12-24 Bruno Haible <bruno@clisp.org>
26293 Fix link error due to xalloc_die().
26294 * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
26296 * lib/relocwrapper.c: Update comments.
26297 * build-aux/install-reloc: Remove xreadlink.c from file list.
26298 * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
26300 Reported by Левашев Иван <octagram@bluebottle.com>.
26302 2007-12-24 Bruno Haible <bruno@clisp.org>
26304 Split setenv module into setenv and unsetenv. Get rid of setenv.h.
26305 * lib/setenv.h: Remove file.
26306 * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
26308 * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
26309 (Depends-on): Add stdlib.
26310 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
26312 (Include): Replace setenv.h with <stdlib.h>.
26313 * modules/unsetenv: New file.
26314 * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
26315 * lib/unsetenv.c: Include <stdlib.h> first.
26316 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
26317 gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
26318 (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
26319 HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
26320 * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
26321 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26322 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
26323 HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
26324 * doc/functions/unsetenv.texi: Update.
26325 * modules/xsetenv (Depends-on): Add unsetenv.
26326 * modules/getdate (Depends-on): Likewise.
26327 * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
26328 * lib/xsetenv.c: Don't include setenv.h.
26329 * lib/getdate.y: Likewise.
26330 * lib/relocwrapper.c: Likewise.
26331 * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
26332 (Depends-on): Add stdlib.
26333 * NEWS: Mention the changes.
26334 Reported by Левашев Иван <octagram@bluebottle.com>.
26336 2007-12-23 Bruno Haible <bruno@clisp.org>
26338 * lib/memmem.c (memmem): Use lowercase variable names. Tab
26341 2007-12-23 Bruno Haible <bruno@clisp.org>
26343 * lib/c-strcasestr.c: Add more comments.
26344 * lib/c-strstr.c: Likewise.
26345 * lib/mbscasestr.c: Likewise.
26346 * lib/mbsstr.c: Likewise.
26347 * lib/strcasestr.c: Likewise.
26348 * lib/memmem.c: Likewise.
26350 2007-12-23 Bruno Haible <bruno@clisp.org>
26352 * tests/test-memmem.c: Include <string.h> first.
26354 2007-12-22 Bruno Haible <bruno@clisp.org>
26356 * gnulib-tool (func_create_testdir): Change $auxdir while generating
26357 the contents of $testsbase.
26358 Reported by Ralf Wildenhues.
26360 2007-12-22 Bruno Haible <bruno@clisp.org>
26362 * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
26363 two variables local_ldadd_before, local_ldadd_last.
26365 2007-12-20 Eric Blake <ebb9@byu.net>
26367 Work around circular library issue when cross-compiling.
26368 * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
26369 that progname.o does not need to pull in rpl_memcmp.
26371 2007-12-19 Eric Blake <ebb9@byu.net>
26373 Fix memmem to avoid O(n^2) worst-case complexity.
26374 * lib/memmem.c (knuth_morris_pratt): New function.
26375 (memmem): Use it if first few naive iterations fail.
26376 * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
26377 * modules/memcmp (License): Set to LGPLv2+, not LGPL.
26378 * modules/memchr (License): Likewise.
26379 * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
26381 * tests/test-memmem.c: Rewrite, borrowing ideas from
26382 test-mbsstr1.c; the old version wouldn't even compile!
26383 * modules/memmem-tests: New file.
26384 * lib/string.in.h (rpl_memmem): Add declaration.
26385 * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
26386 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
26389 2007-12-18 Paul Eggert <eggert@cs.ucla.edu>
26391 Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
26392 * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
26393 before any system include files, and undef after them all. This
26394 should fix a problem on VMS reported by John E. Malmberg in
26395 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
26397 2007-12-17 Eric Blake <ebb9@byu.net>
26399 Revert addition of verify, for BSD/OS.
26400 * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
26401 can't handle large files, for the sake of obsolete platforms.
26402 * modules/fseeko (Depends-on): Remove verify.
26403 * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
26404 * doc/functions/ftello.texi (ftello): Likewise.
26405 * doc/functions/fgetpos.texi (fgetpos): Likewise.
26406 Reported by Larry Jones.
26408 2007-12-17 Petr Salinger <Petr.Salinger@seznam.cz>
26410 getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
26411 * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
26413 2007-12-17 Jim Meyering <meyering@redhat.com>
26415 Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
26416 which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
26417 * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
26418 * modules/getcwd (Depends-on): Add openat.
26419 Reported by Petr Salinger.
26421 2007-12-17 Bruno Haible <bruno@clisp.org>
26423 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
26424 avoid a segmentation fault of the configure test on x86_64 systems.
26426 2007-12-15 Jim Meyering <meyering@redhat.com>
26428 * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
26430 2007-12-13 Eric Blake <ebb9@byu.net>
26432 Another fseek test.
26433 * tests/test-fseek.c (main): Also test ungetc handling.
26434 * tests/test-fseeko.c (main): Likewise.
26435 * modules/fseeko (Depends-on): Add verify.
26436 * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
26438 Reported by Larry Jones.
26440 Fix fseeko on mingw.
26441 * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
26444 Beef up fseek tests.
26445 * tests/test-fseek.c (main): Also test eof handling.
26446 * tests/test-fseeko.c (main): Likewise.
26447 Reported by Larry Jones.
26449 2007-12-13 Larry Jones <lawrence.jones@siemens.com> (tiny change)
26451 Fix fseeko on BSD-based platforms.
26452 * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
26455 2007-12-12 Eric Blake <ebb9@byu.net>
26457 Allow circular dependency of separate libtests.a
26458 * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
26461 2007-12-11 Eric Blake <ebb9@byu.net>
26463 Fix bug with -0.0L in previous patch.
26464 * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
26465 * tests/test-isnan.c (main): Also test on zeroes.
26466 * tests/test-isnanf.c (main): Likewise.
26467 * tests/test-isnanl.h (main): Likewise.
26469 Detect pseudo-denormals on x86 even when cross-compiling.
26470 * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
26471 && USE_LONG_DOUBLE && x86]: Add one more check to filter out
26472 invalid bit patterns that happen to satisfy ==.
26474 Avoid link failures with separate libtests.a.
26475 * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
26476 last, to satisfy circular dependencies.
26478 2007-12-11 Eric Blake <ebb9@byu.net>
26479 and Bruno Haible <bruno@clisp.org>
26481 Fix OpenBSD 4.0 <float.h> handling of long double.
26482 * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
26483 * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
26484 * doc/headers/float.texi (float.h): Document OpenBSD bug.
26486 2007-12-11 Jim Meyering <meyering@redhat.com>
26488 * users.txt: Add libvirt.
26490 Support versions of autoconf prior to 2.59c.
26491 * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
26492 if it is not already defined.
26494 2007-12-09 Bruno Haible <bruno@clisp.org>
26496 Let 'gnulib-tool --import' collect sources needed for the tests in
26497 tests/ rather than in lib/.
26498 * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
26499 argument. If true, add rules to generate libtests.a, and put libtests.a
26500 into $(LDADD). Consider source files in subdirectories and set
26502 (func_emit_initmacro_start, func_emit_initmacro_end,
26503 func_emit_initmacro_done): Pass all arguments explicitly.
26504 (func_import): Determine two module lists main_modules,
26505 testsrelated_modules. Determine use_libtests. Determine two variables
26506 sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
26507 instead of just sed_transform_lib_file. Determine two variables
26508 main_files and testsrelated_files. Compute 'files' as the union of
26509 both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
26510 func_add_or_update. In the generated gnulib-comp.m4, collect the
26511 object files for tests/ in different variables than those for lib/.
26512 Substitute LIBTESTS_LIBDEPS.
26513 (func_create_testdir): Combine the uses_subdirs results from
26514 func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
26516 2007-12-09 Bruno Haible <bruno@clisp.org>
26518 * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
26519 the build-aux directory.
26521 2007-12-09 Bruno Haible <bruno@clisp.org>
26523 * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
26524 introduced on 2006-09-09.
26526 2007-12-07 Jim Meyering <meyering@redhat.com>
26528 Let these macros work also with autoconf-2.59.
26529 * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59. 2.60
26530 is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
26531 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26533 2007-12-06 Jim Meyering <meyering@redhat.com>
26535 Avoid a configure-time syntax error in gl_FUNC_ACL.
26536 * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
26537 function in each branch, before testing the cache variable.
26539 2007-12-04 Eric Blake <ebb9@byu.net>
26541 Make scripts executable.
26542 * build-aux/config.guess: Add execute permissions.
26543 * build-aux/config.sub: Likewise.
26544 * build-aux/gendocs.sh: Likewise.
26546 Fix frexp on mingw.
26547 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
26549 * doc/functions/frexp.texi (frexp): Document the bug.
26551 Make cygwin fseeko check more reliable.
26552 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
26553 version numbers, rather than unrelated feature check.
26554 * doc/functions/fseeko.texi (fseeko): Tweak failure report.
26555 * doc/functions/ftello.texi (ftello): Likewise.
26556 Reported by Bruno Haible.
26558 * m4/strerror.m4: Bump version number.
26560 2007-12-03 Bruno Haible <bruno@clisp.org>
26562 * doc/functions/mprotect.texi: Mention the mingw problem.
26564 2007-12-03 Eric Blake <ebb9@byu.net>
26566 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
26567 REPLACE_STRERROR is initialized before this macro.
26569 2007-12-03 Paul Eggert <eggert@cs.ucla.edu>
26571 Add support for Solaris 10 ACLs. Also, ACLs are Gnulib, not Autoconf.
26572 * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
26573 * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL. On Solaris,
26574 put -lsec in even for programs other than 'ls'. This fixes a problem
26575 for gettext reported by Bruno Haible in
26576 <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
26577 * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
26578 Add support for Solaris 10. This isn't efficient, but should get the
26581 2007-12-03 James Youngman <jay@gnu.org>
26583 * doc/regexprops-generic.texi: change "an close-group" to "a
26584 close-group" and "illegal" to "not allowed".
26586 2007-11-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26588 * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
26589 pr_byname.h. Needed for the rare case when the maintainer has done
26590 "make maintainer-clean" in the source directory and then attempts a
26591 build outside the source directory.
26592 * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
26595 2007-12-02 Martin Lambers <marlam@marlam.de>
26596 Bruno Haible <bruno@clisp.org>
26598 * lib/getpagesize.h: Remove file.
26599 * lib/unistd.in.h: Include declaration of getpagesize here.
26600 * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
26601 Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
26603 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
26604 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26605 * modules/getpagesize (Files): Remove lib/getpagesize.h.
26606 (Depends-on): Add unistd.
26607 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26608 (Include): Use <unistd.h> instead of getpagesize.h.
26609 * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
26610 HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
26611 * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
26612 gl_GETPAGESIZE invocation, already handled by module dependency.
26613 * lib/pagealign_alloc.c: Don't include getpagesize.h.
26615 2007-12-02 Bruno Haible <bruno@clisp.org>
26617 * modules/strings-tests: New file.
26618 * tests/test-strings.c: New file.
26620 Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
26621 * lib/strings.in.h: New file.
26622 * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
26623 * m4/strings_h.m4: New file.
26624 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
26625 of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
26626 * modules/strings: New file.
26627 * modules/string (Makefile.am): Update.
26628 * modules/strcase (Include): Mention <strings.h>, not <string.h>.
26629 Reported by Karl Berry.
26631 2007-12-01 Eric Blake <ebb9@byu.net>
26633 * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
26634 accomodate fix in cygwin 1.5.25.
26636 2007-12-01 Jim Meyering <meyering@redhat.com>
26638 Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
26639 * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
26640 that would inhibit utf8-optimization of a regexp containing line-
26641 or buffer-anchors, e.g., `^', `$'.
26643 2007-11-30 Bruno Haible <bruno@clisp.org>
26645 * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
26646 PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
26647 glthread_recursive_lock_init.
26648 * lib/lock.c (glthread_recursive_lock_init)
26649 [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
26650 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
26652 2007-11-28 Paul Eggert <eggert@cs.ucla.edu>
26654 New function qset_acl, like set_acl but with syscall semantics.
26655 * lib/acl.h (qset_acl): New decl.
26656 * lib/acl.c (qset_acl): New function.
26657 (set_acl): Use new function. Use more-consistent diagnostics.
26659 2007-11-28 Jim Meyering <meyering@redhat.com>
26661 * modules/physmem (License): Change from GPL to LGPLv2+.
26663 2007-11-26 Bruno Haible <bruno@clisp.org>
26665 * lib/vasnprintf.c (decode_long_double): Don't abort if the
26666 'long double' type has excess precision.
26667 Reported by Jim Meyering in
26668 <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
26670 2007-11-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26672 * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
26673 Sync from <http://gnu.org/licenses>.
26674 * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
26675 with license text from same location.
26676 * doc/maintain.texi, doc/standards.texi: Sync from
26677 <http://savannah.gnu.org/projects/gnustandards>.
26679 2007-11-22 OndÅ™ej VaÅ¡Ãk <ovasik@redhat.com>
26680 and Jim Meyering <meyering@redhat.com>
26682 Adjust getdate' grammar to accept a slightly more regular language.
26683 E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
26684 Before, the former was rejected.
26685 * lib/getdate.y (digits_to_date_time): New function, factored
26687 (number): ...here. Just call digits_to_date_time.
26688 (hybrid): New non-terminal to handle an <unsigned number,
26689 signed relative offset> sequence consistently.
26691 2007-11-18 Jim Meyering <meyering@redhat.com>
26693 Pull my changes from coreutils:
26694 bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
26695 * build-aux/bootstrap (gnulib_tool_options): Add a space before the
26696 use of $gnulib_tool_option_extras, so that it's separated from the
26697 preceding argument.
26699 Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
26700 * build-aux/bootstrap (cp_mark_as_generated): Create any required
26701 parent destination directories before copying a file into place.
26703 2007-11-18 Sergey Poznyakoff <gray@gnu.org.ua>
26705 bootstrap: work also with 4-argument variant of AC_INIT
26706 * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
26708 2007-11-16 Paul Eggert <eggert@cs.ucla.edu>
26710 Port test-getaddrinfo to Solaris.
26711 Problem reported by Bruno Haible in
26712 <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
26713 * tests/test-getaddrinfo.c (simple): Add a comment asking for an
26714 explanation of setting 'hints'.
26715 Don't reject an implementation merely because it returns EAI_SERVICE.
26716 (EAI_SERVICE): Define to 0 if not defined.
26718 2007-11-15 Paul Eggert <eggert@cs.ucla.edu>
26720 The license of gnu-make and posix-shell is now "GPLed build tool".
26721 * modules/gnu-make (License): Likewise.
26722 * modules/posix-shell (License): Likewise.
26724 New module posix-shell, for determining a POSIX shell
26725 or perhaps something that is close enough to a POSIX shell.
26726 * m4/posix-shell.m4: New file.
26727 * modules/posix-shell: New file.
26729 * MODULES.html.sh: Mention new module.
26731 New module gnu-make, for determining whether we're using GNU Make.
26732 * m4/gnu-make.m4: New file.
26733 * modules/gnu-make: New file.
26734 * MODULES.html.sh: Mention new module.
26736 2007-11-14 Jim Meyering <meyering@redhat.com>
26738 Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
26739 * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
26740 use this macro to create a function _definition_.
26741 Remove useless "#undef ARGMATCH_DIE".
26743 2007-11-14 Bruno Haible <bruno@clisp.org>
26745 * lib/config.charset: Update for OpenBSD 4.1.
26746 Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
26748 2007-11-12 Paul Eggert <eggert@cs.ucla.edu>
26750 Document 64-bit #if problems in stdint.texi.
26751 * doc/headers/stdint.texi (stdint.h): Mention problems with
26752 64-bit-#if, and how to work around them.
26754 Don't insist on 'long long int' support in the preprocessor. It
26755 breaks too many things. For example, PRIdMAX still uses a 'long
26756 long int' format with the latest Sun compiler, even though
26757 HAVE_LONG_LONG_INT isn't defined due to that compiler's
26758 preprocessor problem. This causes the latest coreutils to dump
26759 core on Solaris 10 sparc with the Sun C compiler.
26760 Instead, fix the 2007-10-16 problem in a different way, by evaluating
26761 the troublesome expressions at configure-time, not at #if-time.
26762 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
26764 * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
26765 compile-time C checks, done at 'configure'-time.
26766 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
26767 * modules/inttypes (Makefile): Substitute the new symbols that
26768 gl_INTTYPES_H now generates.
26769 * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
26771 2007-11-12 Bruno Haible <bruno@clisp.org>
26773 Tests for Unicode character classification functions.
26775 * modules/unictype/bidicategory-byname-tests: New file.
26776 * modules/unictype/bidicategory-name-tests: New file.
26777 * modules/unictype/bidicategory-of-tests: New file.
26778 * modules/unictype/bidicategory-test-tests: New file.
26779 * modules/unictype/block-list-tests: New file.
26780 * modules/unictype/block-of-tests: New file.
26781 * modules/unictype/block-test-tests: New file.
26782 * modules/unictype/category-C-tests: New file.
26783 * modules/unictype/category-Cc-tests: New file.
26784 * modules/unictype/category-Cf-tests: New file.
26785 * modules/unictype/category-Cn-tests: New file.
26786 * modules/unictype/category-Co-tests: New file.
26787 * modules/unictype/category-Cs-tests: New file.
26788 * modules/unictype/category-L-tests: New file.
26789 * modules/unictype/category-Ll-tests: New file.
26790 * modules/unictype/category-Lm-tests: New file.
26791 * modules/unictype/category-Lo-tests: New file.
26792 * modules/unictype/category-Lt-tests: New file.
26793 * modules/unictype/category-Lu-tests: New file.
26794 * modules/unictype/category-M-tests: New file.
26795 * modules/unictype/category-Mc-tests: New file.
26796 * modules/unictype/category-Me-tests: New file.
26797 * modules/unictype/category-Mn-tests: New file.
26798 * modules/unictype/category-N-tests: New file.
26799 * modules/unictype/category-Nd-tests: New file.
26800 * modules/unictype/category-Nl-tests: New file.
26801 * modules/unictype/category-No-tests: New file.
26802 * modules/unictype/category-P-tests: New file.
26803 * modules/unictype/category-Pc-tests: New file.
26804 * modules/unictype/category-Pd-tests: New file.
26805 * modules/unictype/category-Pe-tests: New file.
26806 * modules/unictype/category-Pf-tests: New file.
26807 * modules/unictype/category-Pi-tests: New file.
26808 * modules/unictype/category-Po-tests: New file.
26809 * modules/unictype/category-Ps-tests: New file.
26810 * modules/unictype/category-S-tests: New file.
26811 * modules/unictype/category-Sc-tests: New file.
26812 * modules/unictype/category-Sk-tests: New file.
26813 * modules/unictype/category-Sm-tests: New file.
26814 * modules/unictype/category-So-tests: New file.
26815 * modules/unictype/category-Z-tests: New file.
26816 * modules/unictype/category-Zl-tests: New file.
26817 * modules/unictype/category-Zp-tests: New file.
26818 * modules/unictype/category-Zs-tests: New file.
26819 * modules/unictype/category-and-not-tests: New file.
26820 * modules/unictype/category-and-tests: New file.
26821 * modules/unictype/category-byname-tests: New file.
26822 * modules/unictype/category-name-tests: New file.
26823 * modules/unictype/category-none-tests: New file.
26824 * modules/unictype/category-of-tests: New file.
26825 * modules/unictype/category-or-tests: New file.
26826 * modules/unictype/category-test-withtable-tests: New file.
26827 * modules/unictype/combining-class-tests: New file.
26828 * modules/unictype/ctype-alnum-tests: New file.
26829 * modules/unictype/ctype-alpha-tests: New file.
26830 * modules/unictype/ctype-blank-tests: New file.
26831 * modules/unictype/ctype-cntrl-tests: New file.
26832 * modules/unictype/ctype-digit-tests: New file.
26833 * modules/unictype/ctype-graph-tests: New file.
26834 * modules/unictype/ctype-lower-tests: New file.
26835 * modules/unictype/ctype-print-tests: New file.
26836 * modules/unictype/ctype-punct-tests: New file.
26837 * modules/unictype/ctype-space-tests: New file.
26838 * modules/unictype/ctype-upper-tests: New file.
26839 * modules/unictype/ctype-xdigit-tests: New file.
26840 * modules/unictype/decimal-digit-tests: New file.
26841 * modules/unictype/digit-tests: New file.
26842 * modules/unictype/mirror-tests: New file.
26843 * modules/unictype/numeric-tests: New file.
26844 * modules/unictype/property-alphabetic-tests: New file.
26845 * modules/unictype/property-ascii-hex-digit-tests: New file.
26846 * modules/unictype/property-bidi-arabic-digit-tests: New file.
26847 * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
26848 * modules/unictype/property-bidi-block-separator-tests: New file.
26849 * modules/unictype/property-bidi-boundary-neutral-tests: New file.
26850 * modules/unictype/property-bidi-common-separator-tests: New file.
26851 * modules/unictype/property-bidi-control-tests: New file.
26852 * modules/unictype/property-bidi-embedding-or-override-tests: New file.
26853 * modules/unictype/property-bidi-eur-num-separator-tests: New file.
26854 * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
26855 * modules/unictype/property-bidi-european-digit-tests: New file.
26856 * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
26857 * modules/unictype/property-bidi-left-to-right-tests: New file.
26858 * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
26859 * modules/unictype/property-bidi-other-neutral-tests: New file.
26860 * modules/unictype/property-bidi-pdf-tests: New file.
26861 * modules/unictype/property-bidi-segment-separator-tests: New file.
26862 * modules/unictype/property-bidi-whitespace-tests: New file.
26863 * modules/unictype/property-byname-tests: New file.
26864 * modules/unictype/property-combining-tests: New file.
26865 * modules/unictype/property-composite-tests: New file.
26866 * modules/unictype/property-currency-symbol-tests: New file.
26867 * modules/unictype/property-dash-tests: New file.
26868 * modules/unictype/property-decimal-digit-tests: New file.
26869 * modules/unictype/property-default-ignorable-code-point-tests: New file.
26870 * modules/unictype/property-deprecated-tests: New file.
26871 * modules/unictype/property-diacritic-tests: New file.
26872 * modules/unictype/property-extender-tests: New file.
26873 * modules/unictype/property-format-control-tests: New file.
26874 * modules/unictype/property-grapheme-base-tests: New file.
26875 * modules/unictype/property-grapheme-extend-tests: New file.
26876 * modules/unictype/property-grapheme-link-tests: New file.
26877 * modules/unictype/property-hex-digit-tests: New file.
26878 * modules/unictype/property-hyphen-tests: New file.
26879 * modules/unictype/property-id-continue-tests: New file.
26880 * modules/unictype/property-id-start-tests: New file.
26881 * modules/unictype/property-ideographic-tests: New file.
26882 * modules/unictype/property-ids-binary-operator-tests: New file.
26883 * modules/unictype/property-ids-trinary-operator-tests: New file.
26884 * modules/unictype/property-ignorable-control-tests: New file.
26885 * modules/unictype/property-iso-control-tests: New file.
26886 * modules/unictype/property-join-control-tests: New file.
26887 * modules/unictype/property-left-of-pair-tests: New file.
26888 * modules/unictype/property-line-separator-tests: New file.
26889 * modules/unictype/property-logical-order-exception-tests: New file.
26890 * modules/unictype/property-lowercase-tests: New file.
26891 * modules/unictype/property-math-tests: New file.
26892 * modules/unictype/property-non-break-tests: New file.
26893 * modules/unictype/property-not-a-character-tests: New file.
26894 * modules/unictype/property-numeric-tests: New file.
26895 * modules/unictype/property-other-alphabetic-tests: New file.
26896 * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
26897 * modules/unictype/property-other-grapheme-extend-tests: New file.
26898 * modules/unictype/property-other-id-continue-tests: New file.
26899 * modules/unictype/property-other-id-start-tests: New file.
26900 * modules/unictype/property-other-lowercase-tests: New file.
26901 * modules/unictype/property-other-math-tests: New file.
26902 * modules/unictype/property-other-uppercase-tests: New file.
26903 * modules/unictype/property-paired-punctuation-tests: New file.
26904 * modules/unictype/property-paragraph-separator-tests: New file.
26905 * modules/unictype/property-pattern-syntax-tests: New file.
26906 * modules/unictype/property-pattern-white-space-tests: New file.
26907 * modules/unictype/property-private-use-tests: New file.
26908 * modules/unictype/property-punctuation-tests: New file.
26909 * modules/unictype/property-quotation-mark-tests: New file.
26910 * modules/unictype/property-radical-tests: New file.
26911 * modules/unictype/property-sentence-terminal-tests: New file.
26912 * modules/unictype/property-soft-dotted-tests: New file.
26913 * modules/unictype/property-space-tests: New file.
26914 * modules/unictype/property-terminal-punctuation-tests: New file.
26915 * modules/unictype/property-test-tests: New file.
26916 * modules/unictype/property-titlecase-tests: New file.
26917 * modules/unictype/property-unassigned-code-value-tests: New file.
26918 * modules/unictype/property-unified-ideograph-tests: New file.
26919 * modules/unictype/property-uppercase-tests: New file.
26920 * modules/unictype/property-variation-selector-tests: New file.
26921 * modules/unictype/property-white-space-tests: New file.
26922 * modules/unictype/property-xid-continue-tests: New file.
26923 * modules/unictype/property-xid-start-tests: New file.
26924 * modules/unictype/property-zero-width-tests: New file.
26925 * modules/unictype/scripts-tests: New file.
26926 * modules/unictype/syntax-c-ident-tests: New file.
26927 * modules/unictype/syntax-c-whitespace-tests: New file.
26928 * modules/unictype/syntax-java-ident-tests: New file.
26929 * modules/unictype/syntax-java-whitespace-tests: New file.
26930 * tests/unictype/test-bidi_byname.c: New file.
26931 * tests/unictype/test-bidi_name.c: New file.
26932 * tests/unictype/test-bidi_of.c: New file.
26933 * tests/unictype/test-bidi_test.c: New file.
26934 * tests/unictype/test-block_list.c: New file.
26935 * tests/unictype/test-block_of.c: New file.
26936 * tests/unictype/test-block_test.c: New file.
26937 * tests/unictype/test-categ_and.c: New file.
26938 * tests/unictype/test-categ_and_not.c: New file.
26939 * tests/unictype/test-categ_byname.c: New file.
26940 * tests/unictype/test-categ_name.c: New file.
26941 * tests/unictype/test-categ_none.c: New file.
26942 * tests/unictype/test-categ_of.c: New file.
26943 * tests/unictype/test-categ_or.c: New file.
26944 * tests/unictype/test-categ_test_withtable.c: New file.
26945 * tests/unictype/test-combining.c: New file.
26946 * tests/unictype/test-decdigit.c: New file.
26947 * tests/unictype/test-digit.c: New file.
26948 * tests/unictype/test-mirror.c: New file.
26949 * tests/unictype/test-numeric.c: New file.
26950 * tests/unictype/test-pr_byname.c: New file.
26951 * tests/unictype/test-pr_test.c: New file.
26952 * tests/unictype/test-predicate-part1.h: New file.
26953 * tests/unictype/test-predicate-part2.h: New file.
26954 * tests/unictype/test-scripts.c: New file.
26955 * tests/unictype/test-sy_c_ident.c: New file.
26956 * tests/unictype/test-sy_java_ident.c: New file.
26958 * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
26960 * tests/unictype/test-categ_Cc.c: Likewise.
26961 * tests/unictype/test-categ_Cf.c: Likewise.
26962 * tests/unictype/test-categ_Cn.c: Likewise.
26963 * tests/unictype/test-categ_Co.c: Likewise.
26964 * tests/unictype/test-categ_Cs.c: Likewise.
26965 * tests/unictype/test-categ_L.c: Likewise.
26966 * tests/unictype/test-categ_Ll.c: Likewise.
26967 * tests/unictype/test-categ_Lm.c: Likewise.
26968 * tests/unictype/test-categ_Lo.c: Likewise.
26969 * tests/unictype/test-categ_Lt.c: Likewise.
26970 * tests/unictype/test-categ_Lu.c: Likewise.
26971 * tests/unictype/test-categ_M.c: Likewise.
26972 * tests/unictype/test-categ_Mc.c: Likewise.
26973 * tests/unictype/test-categ_Me.c: Likewise.
26974 * tests/unictype/test-categ_Mn.c: Likewise.
26975 * tests/unictype/test-categ_N.c: Likewise.
26976 * tests/unictype/test-categ_Nd.c: Likewise.
26977 * tests/unictype/test-categ_Nl.c: Likewise.
26978 * tests/unictype/test-categ_No.c: Likewise.
26979 * tests/unictype/test-categ_P.c: Likewise.
26980 * tests/unictype/test-categ_Pc.c: Likewise.
26981 * tests/unictype/test-categ_Pd.c: Likewise.
26982 * tests/unictype/test-categ_Pe.c: Likewise.
26983 * tests/unictype/test-categ_Pf.c: Likewise.
26984 * tests/unictype/test-categ_Pi.c: Likewise.
26985 * tests/unictype/test-categ_Po.c: Likewise.
26986 * tests/unictype/test-categ_Ps.c: Likewise.
26987 * tests/unictype/test-categ_S.c: Likewise.
26988 * tests/unictype/test-categ_Sc.c: Likewise.
26989 * tests/unictype/test-categ_Sk.c: Likewise.
26990 * tests/unictype/test-categ_Sm.c: Likewise.
26991 * tests/unictype/test-categ_So.c: Likewise.
26992 * tests/unictype/test-categ_Z.c: Likewise.
26993 * tests/unictype/test-categ_Zl.c: Likewise.
26994 * tests/unictype/test-categ_Zp.c: Likewise.
26995 * tests/unictype/test-categ_Zs.c: Likewise.
26996 * tests/unictype/test-ctype_alnum.c: Likewise.
26997 * tests/unictype/test-ctype_alpha.c: Likewise.
26998 * tests/unictype/test-ctype_blank.c: Likewise.
26999 * tests/unictype/test-ctype_cntrl.c: Likewise.
27000 * tests/unictype/test-ctype_digit.c: Likewise.
27001 * tests/unictype/test-ctype_graph.c: Likewise.
27002 * tests/unictype/test-ctype_lower.c: Likewise.
27003 * tests/unictype/test-ctype_print.c: Likewise.
27004 * tests/unictype/test-ctype_punct.c: Likewise.
27005 * tests/unictype/test-ctype_space.c: Likewise.
27006 * tests/unictype/test-ctype_upper.c: Likewise.
27007 * tests/unictype/test-ctype_xdigit.c: Likewise.
27008 * tests/unictype/test-decdigit.h: Likewise.
27009 * tests/unictype/test-digit.h: Likewise.
27010 * tests/unictype/test-numeric.h: Likewise.
27011 * tests/unictype/test-pr_alphabetic.c: Likewise.
27012 * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
27013 * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
27014 * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
27015 * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
27016 * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
27017 * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
27018 * tests/unictype/test-pr_bidi_control.c: Likewise.
27019 * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
27020 * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
27021 * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
27022 * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
27023 * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
27024 * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
27025 * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
27026 * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
27027 * tests/unictype/test-pr_bidi_pdf.c: Likewise.
27028 * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
27029 * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
27030 * tests/unictype/test-pr_combining.c: Likewise.
27031 * tests/unictype/test-pr_composite.c: Likewise.
27032 * tests/unictype/test-pr_currency_symbol.c: Likewise.
27033 * tests/unictype/test-pr_dash.c: Likewise.
27034 * tests/unictype/test-pr_decimal_digit.c: Likewise.
27035 * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
27036 * tests/unictype/test-pr_deprecated.c: Likewise.
27037 * tests/unictype/test-pr_diacritic.c: Likewise.
27038 * tests/unictype/test-pr_extender.c: Likewise.
27039 * tests/unictype/test-pr_format_control.c: Likewise.
27040 * tests/unictype/test-pr_grapheme_base.c: Likewise.
27041 * tests/unictype/test-pr_grapheme_extend.c: Likewise.
27042 * tests/unictype/test-pr_grapheme_link.c: Likewise.
27043 * tests/unictype/test-pr_hex_digit.c: Likewise.
27044 * tests/unictype/test-pr_hyphen.c: Likewise.
27045 * tests/unictype/test-pr_id_continue.c: Likewise.
27046 * tests/unictype/test-pr_id_start.c: Likewise.
27047 * tests/unictype/test-pr_ideographic.c: Likewise.
27048 * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
27049 * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
27050 * tests/unictype/test-pr_ignorable_control.c: Likewise.
27051 * tests/unictype/test-pr_iso_control.c: Likewise.
27052 * tests/unictype/test-pr_join_control.c: Likewise.
27053 * tests/unictype/test-pr_left_of_pair.c: Likewise.
27054 * tests/unictype/test-pr_line_separator.c: Likewise.
27055 * tests/unictype/test-pr_logical_order_exception.c: Likewise.
27056 * tests/unictype/test-pr_lowercase.c: Likewise.
27057 * tests/unictype/test-pr_math.c: Likewise.
27058 * tests/unictype/test-pr_non_break.c: Likewise.
27059 * tests/unictype/test-pr_not_a_character.c: Likewise.
27060 * tests/unictype/test-pr_numeric.c: Likewise.
27061 * tests/unictype/test-pr_other_alphabetic.c: Likewise.
27062 * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
27063 * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
27064 * tests/unictype/test-pr_other_id_continue.c: Likewise.
27065 * tests/unictype/test-pr_other_id_start.c: Likewise.
27066 * tests/unictype/test-pr_other_lowercase.c: Likewise.
27067 * tests/unictype/test-pr_other_math.c: Likewise.
27068 * tests/unictype/test-pr_other_uppercase.c: Likewise.
27069 * tests/unictype/test-pr_paired_punctuation.c: Likewise.
27070 * tests/unictype/test-pr_paragraph_separator.c: Likewise.
27071 * tests/unictype/test-pr_pattern_syntax.c: Likewise.
27072 * tests/unictype/test-pr_pattern_white_space.c: Likewise.
27073 * tests/unictype/test-pr_private_use.c: Likewise.
27074 * tests/unictype/test-pr_punctuation.c: Likewise.
27075 * tests/unictype/test-pr_quotation_mark.c: Likewise.
27076 * tests/unictype/test-pr_radical.c: Likewise.
27077 * tests/unictype/test-pr_sentence_terminal.c: Likewise.
27078 * tests/unictype/test-pr_soft_dotted.c: Likewise.
27079 * tests/unictype/test-pr_space.c: Likewise.
27080 * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
27081 * tests/unictype/test-pr_titlecase.c: Likewise.
27082 * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
27083 * tests/unictype/test-pr_unified_ideograph.c: Likewise.
27084 * tests/unictype/test-pr_uppercase.c: Likewise.
27085 * tests/unictype/test-pr_variation_selector.c: Likewise.
27086 * tests/unictype/test-pr_white_space.c: Likewise.
27087 * tests/unictype/test-pr_xid_continue.c: Likewise.
27088 * tests/unictype/test-pr_xid_start.c: Likewise.
27089 * tests/unictype/test-pr_zero_width.c: Likewise.
27090 * tests/unictype/test-sy_c_whitespace.c: Likewise.
27091 * tests/unictype/test-sy_java_whitespace.c: Likewise.
27093 2007-11-12 Bruno Haible <bruno@clisp.org>
27095 Unicode character classification functions.
27096 * lib/unictype.h: New file.
27097 * modules/unictype/base: New file.
27098 * modules/unictype/category-L: New file.
27099 * modules/unictype/category-Lu: New file.
27100 * modules/unictype/category-Ll: New file.
27101 * modules/unictype/category-Lt: New file.
27102 * modules/unictype/category-Lm: New file.
27103 * modules/unictype/category-Lo: New file.
27104 * modules/unictype/category-M: New file.
27105 * modules/unictype/category-Mn: New file.
27106 * modules/unictype/category-Mc: New file.
27107 * modules/unictype/category-Me: New file.
27108 * modules/unictype/category-N: New file.
27109 * modules/unictype/category-Nd: New file.
27110 * modules/unictype/category-Nl: New file.
27111 * modules/unictype/category-No: New file.
27112 * modules/unictype/category-P: New file.
27113 * modules/unictype/category-Pc: New file.
27114 * modules/unictype/category-Pd: New file.
27115 * modules/unictype/category-Ps: New file.
27116 * modules/unictype/category-Pe: New file.
27117 * modules/unictype/category-Pi: New file.
27118 * modules/unictype/category-Pf: New file.
27119 * modules/unictype/category-Po: New file.
27120 * modules/unictype/category-S: New file.
27121 * modules/unictype/category-Sm: New file.
27122 * modules/unictype/category-Sc: New file.
27123 * modules/unictype/category-Sk: New file.
27124 * modules/unictype/category-So: New file.
27125 * modules/unictype/category-Z: New file.
27126 * modules/unictype/category-Zs: New file.
27127 * modules/unictype/category-Zl: New file.
27128 * modules/unictype/category-Zp: New file.
27129 * modules/unictype/category-C: New file.
27130 * modules/unictype/category-Cc: New file.
27131 * modules/unictype/category-Cf: New file.
27132 * modules/unictype/category-Cs: New file.
27133 * modules/unictype/category-Co: New file.
27134 * modules/unictype/category-Cn: New file.
27135 * modules/unictype/category-or: New file.
27136 * modules/unictype/category-of: New file.
27137 * modules/unictype/category-test: New file.
27138 * modules/unictype/category-test-withtable: New file.
27139 * modules/unictype/category-byname: New file.
27140 * modules/unictype/category-none: New file.
27141 * modules/unictype/category-and: New file.
27142 * modules/unictype/category-and-not: New file.
27143 * modules/unictype/category-name: New file.
27144 * modules/unictype/combining-class: New file.
27145 * modules/unictype/category-all: New file.
27146 * modules/unictype/bidicategory-all: New file.
27147 * modules/unictype/bidicategory-byname: New file.
27148 * modules/unictype/bidicategory-name: New file.
27149 * modules/unictype/bidicategory-of: New file.
27150 * modules/unictype/bidicategory-test: New file.
27151 * modules/unictype/decimal-digit: New file.
27152 * modules/unictype/digit: New file.
27153 * modules/unictype/numeric: New file.
27154 * modules/unictype/mirror: New file.
27155 * modules/unictype/property-white-space: New file.
27156 * modules/unictype/property-alphabetic: New file.
27157 * modules/unictype/property-other-alphabetic: New file.
27158 * modules/unictype/property-not-a-character: New file.
27159 * modules/unictype/property-default-ignorable-code-point: New file.
27160 * modules/unictype/property-other-default-ignorable-code-point: New
27162 * modules/unictype/property-deprecated: New file.
27163 * modules/unictype/property-logical-order-exception: New file.
27164 * modules/unictype/property-variation-selector: New file.
27165 * modules/unictype/property-private-use: New file.
27166 * modules/unictype/property-unassigned-code-value: New file.
27167 * modules/unictype/property-uppercase: New file.
27168 * modules/unictype/property-other-uppercase: New file.
27169 * modules/unictype/property-lowercase: New file.
27170 * modules/unictype/property-other-lowercase: New file.
27171 * modules/unictype/property-titlecase: New file.
27172 * modules/unictype/property-soft-dotted: New file.
27173 * modules/unictype/property-id-start: New file.
27174 * modules/unictype/property-other-id-start: New file.
27175 * modules/unictype/property-id-continue: New file.
27176 * modules/unictype/property-other-id-continue: New file.
27177 * modules/unictype/property-xid-start: New file.
27178 * modules/unictype/property-xid-continue: New file.
27179 * modules/unictype/property-pattern-white-space: New file.
27180 * modules/unictype/property-pattern-syntax: New file.
27181 * modules/unictype/property-join-control: New file.
27182 * modules/unictype/property-grapheme-base: New file.
27183 * modules/unictype/property-grapheme-extend: New file.
27184 * modules/unictype/property-other-grapheme-extend: New file.
27185 * modules/unictype/property-grapheme-link: New file.
27186 * modules/unictype/property-bidi-control: New file.
27187 * modules/unictype/property-bidi-left-to-right: New file.
27188 * modules/unictype/property-bidi-hebrew-right-to-left: New file.
27189 * modules/unictype/property-bidi-arabic-right-to-left: New file.
27190 * modules/unictype/property-bidi-european-digit: New file.
27191 * modules/unictype/property-bidi-eur-num-separator: New file.
27192 * modules/unictype/property-bidi-eur-num-terminator: New file.
27193 * modules/unictype/property-bidi-arabic-digit: New file.
27194 * modules/unictype/property-bidi-common-separator: New file.
27195 * modules/unictype/property-bidi-block-separator: New file.
27196 * modules/unictype/property-bidi-segment-separator: New file.
27197 * modules/unictype/property-bidi-whitespace: New file.
27198 * modules/unictype/property-bidi-non-spacing-mark: New file.
27199 * modules/unictype/property-bidi-boundary-neutral: New file.
27200 * modules/unictype/property-bidi-pdf: New file.
27201 * modules/unictype/property-bidi-embedding-or-override: New file.
27202 * modules/unictype/property-bidi-other-neutral: New file.
27203 * modules/unictype/property-hex-digit: New file.
27204 * modules/unictype/property-ascii-hex-digit: New file.
27205 * modules/unictype/property-ideographic: New file.
27206 * modules/unictype/property-unified-ideograph: New file.
27207 * modules/unictype/property-radical: New file.
27208 * modules/unictype/property-ids-binary-operator: New file.
27209 * modules/unictype/property-ids-trinary-operator: New file.
27210 * modules/unictype/property-zero-width: New file.
27211 * modules/unictype/property-space: New file.
27212 * modules/unictype/property-non-break: New file.
27213 * modules/unictype/property-iso-control: New file.
27214 * modules/unictype/property-format-control: New file.
27215 * modules/unictype/property-dash: New file.
27216 * modules/unictype/property-hyphen: New file.
27217 * modules/unictype/property-punctuation: New file.
27218 * modules/unictype/property-line-separator: New file.
27219 * modules/unictype/property-paragraph-separator: New file.
27220 * modules/unictype/property-quotation-mark: New file.
27221 * modules/unictype/property-sentence-terminal: New file.
27222 * modules/unictype/property-terminal-punctuation: New file.
27223 * modules/unictype/property-currency-symbol: New file.
27224 * modules/unictype/property-math: New file.
27225 * modules/unictype/property-other-math: New file.
27226 * modules/unictype/property-paired-punctuation: New file.
27227 * modules/unictype/property-left-of-pair: New file.
27228 * modules/unictype/property-combining: New file.
27229 * modules/unictype/property-composite: New file.
27230 * modules/unictype/property-decimal-digit: New file.
27231 * modules/unictype/property-numeric: New file.
27232 * modules/unictype/property-diacritic: New file.
27233 * modules/unictype/property-extender: New file.
27234 * modules/unictype/property-ignorable-control: New file.
27235 * modules/unictype/property-test: New file.
27236 * modules/unictype/property-byname: New file.
27237 * modules/unictype/property-all: New file.
27238 * modules/unictype/scripts: New file.
27239 * modules/unictype/scripts-all: New file.
27240 * modules/unictype/block-of: New file.
27241 * modules/unictype/block-test: New file.
27242 * modules/unictype/block-list: New file.
27243 * modules/unictype/block-all: New file.
27244 * modules/unictype/syntax-c-whitespace: New file.
27245 * modules/unictype/syntax-java-whitespace: New file.
27246 * modules/unictype/syntax-c-ident: New file.
27247 * modules/unictype/syntax-java-ident: New file.
27248 * modules/unictype/ctype-alnum: New file.
27249 * modules/unictype/ctype-alpha: New file.
27250 * modules/unictype/ctype-cntrl: New file.
27251 * modules/unictype/ctype-digit: New file.
27252 * modules/unictype/ctype-graph: New file.
27253 * modules/unictype/ctype-lower: New file.
27254 * modules/unictype/ctype-print: New file.
27255 * modules/unictype/ctype-punct: New file.
27256 * modules/unictype/ctype-space: New file.
27257 * modules/unictype/ctype-upper: New file.
27258 * modules/unictype/ctype-xdigit: New file.
27259 * modules/unictype/ctype-blank: New file.
27260 * lib/unictype/bidi_byname.c: New file.
27261 * lib/unictype/bidi_name.c: New file.
27262 * lib/unictype/bidi_of.c: New file.
27263 * lib/unictype/bidi_test.c: New file.
27264 * lib/unictype/bitmap.h: New file.
27265 * lib/unictype/block_test.c: New file.
27266 * lib/unictype/blocks.c: New file.
27267 * lib/unictype/categ_C.c: New file.
27268 * lib/unictype/categ_Cc.c: New file.
27269 * lib/unictype/categ_Cf.c: New file.
27270 * lib/unictype/categ_Cn.c: New file.
27271 * lib/unictype/categ_Co.c: New file.
27272 * lib/unictype/categ_Cs.c: New file.
27273 * lib/unictype/categ_L.c: New file.
27274 * lib/unictype/categ_Ll.c: New file.
27275 * lib/unictype/categ_Lm.c: New file.
27276 * lib/unictype/categ_Lo.c: New file.
27277 * lib/unictype/categ_Lt.c: New file.
27278 * lib/unictype/categ_Lu.c: New file.
27279 * lib/unictype/categ_M.c: New file.
27280 * lib/unictype/categ_Mc.c: New file.
27281 * lib/unictype/categ_Me.c: New file.
27282 * lib/unictype/categ_Mn.c: New file.
27283 * lib/unictype/categ_N.c: New file.
27284 * lib/unictype/categ_Nd.c: New file.
27285 * lib/unictype/categ_Nl.c: New file.
27286 * lib/unictype/categ_No.c: New file.
27287 * lib/unictype/categ_P.c: New file.
27288 * lib/unictype/categ_Pc.c: New file.
27289 * lib/unictype/categ_Pd.c: New file.
27290 * lib/unictype/categ_Pe.c: New file.
27291 * lib/unictype/categ_Pf.c: New file.
27292 * lib/unictype/categ_Pi.c: New file.
27293 * lib/unictype/categ_Po.c: New file.
27294 * lib/unictype/categ_Ps.c: New file.
27295 * lib/unictype/categ_S.c: New file.
27296 * lib/unictype/categ_Sc.c: New file.
27297 * lib/unictype/categ_Sk.c: New file.
27298 * lib/unictype/categ_Sm.c: New file.
27299 * lib/unictype/categ_So.c: New file.
27300 * lib/unictype/categ_Z.c: New file.
27301 * lib/unictype/categ_Zl.c: New file.
27302 * lib/unictype/categ_Zp.c: New file.
27303 * lib/unictype/categ_Zs.c: New file.
27304 * lib/unictype/categ_and.c: New file.
27305 * lib/unictype/categ_and_not.c: New file.
27306 * lib/unictype/categ_byname.c: New file.
27307 * lib/unictype/categ_name.c: New file.
27308 * lib/unictype/categ_none.c: New file.
27309 * lib/unictype/categ_of.c: New file.
27310 * lib/unictype/categ_or.c: New file.
27311 * lib/unictype/categ_test.c: New file.
27312 * lib/unictype/combining.c: New file.
27313 * lib/unictype/ctype_alnum.c: New file.
27314 * lib/unictype/ctype_alpha.c: New file.
27315 * lib/unictype/ctype_blank.c: New file.
27316 * lib/unictype/ctype_cntrl.c: New file.
27317 * lib/unictype/ctype_digit.c: New file.
27318 * lib/unictype/ctype_graph.c: New file.
27319 * lib/unictype/ctype_lower.c: New file.
27320 * lib/unictype/ctype_print.c: New file.
27321 * lib/unictype/ctype_punct.c: New file.
27322 * lib/unictype/ctype_space.c: New file.
27323 * lib/unictype/ctype_upper.c: New file.
27324 * lib/unictype/ctype_xdigit.c: New file.
27325 * lib/unictype/decdigit.c: New file.
27326 * lib/unictype/digit.c: New file.
27327 * lib/unictype/identsyntaxmap.h: New file.
27328 * lib/unictype/mirror.c: New file.
27329 * lib/unictype/numeric.c: New file.
27330 * lib/unictype/pr_alphabetic.c: New file.
27331 * lib/unictype/pr_ascii_hex_digit.c: New file.
27332 * lib/unictype/pr_bidi_arabic_digit.c: New file.
27333 * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
27334 * lib/unictype/pr_bidi_block_separator.c: New file.
27335 * lib/unictype/pr_bidi_boundary_neutral.c: New file.
27336 * lib/unictype/pr_bidi_common_separator.c: New file.
27337 * lib/unictype/pr_bidi_control.c: New file.
27338 * lib/unictype/pr_bidi_embedding_or_override.c: New file.
27339 * lib/unictype/pr_bidi_eur_num_separator.c: New file.
27340 * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
27341 * lib/unictype/pr_bidi_european_digit.c: New file.
27342 * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
27343 * lib/unictype/pr_bidi_left_to_right.c: New file.
27344 * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
27345 * lib/unictype/pr_bidi_other_neutral.c: New file.
27346 * lib/unictype/pr_bidi_pdf.c: New file.
27347 * lib/unictype/pr_bidi_segment_separator.c: New file.
27348 * lib/unictype/pr_bidi_whitespace.c: New file.
27349 * lib/unictype/pr_byname.c: New file.
27350 * lib/unictype/pr_byname.gperf: New file.
27351 * lib/unictype/pr_combining.c: New file.
27352 * lib/unictype/pr_composite.c: New file.
27353 * lib/unictype/pr_currency_symbol.c: New file.
27354 * lib/unictype/pr_dash.c: New file.
27355 * lib/unictype/pr_decimal_digit.c: New file.
27356 * lib/unictype/pr_default_ignorable_code_point.c: New file.
27357 * lib/unictype/pr_deprecated.c: New file.
27358 * lib/unictype/pr_diacritic.c: New file.
27359 * lib/unictype/pr_extender.c: New file.
27360 * lib/unictype/pr_format_control.c: New file.
27361 * lib/unictype/pr_grapheme_base.c: New file.
27362 * lib/unictype/pr_grapheme_extend.c: New file.
27363 * lib/unictype/pr_grapheme_link.c: New file.
27364 * lib/unictype/pr_hex_digit.c: New file.
27365 * lib/unictype/pr_hyphen.c: New file.
27366 * lib/unictype/pr_id_continue.c: New file.
27367 * lib/unictype/pr_id_start.c: New file.
27368 * lib/unictype/pr_ideographic.c: New file.
27369 * lib/unictype/pr_ids_binary_operator.c: New file.
27370 * lib/unictype/pr_ids_trinary_operator.c: New file.
27371 * lib/unictype/pr_ignorable_control.c: New file.
27372 * lib/unictype/pr_iso_control.c: New file.
27373 * lib/unictype/pr_join_control.c: New file.
27374 * lib/unictype/pr_left_of_pair.c: New file.
27375 * lib/unictype/pr_line_separator.c: New file.
27376 * lib/unictype/pr_logical_order_exception.c: New file.
27377 * lib/unictype/pr_lowercase.c: New file.
27378 * lib/unictype/pr_math.c: New file.
27379 * lib/unictype/pr_non_break.c: New file.
27380 * lib/unictype/pr_not_a_character.c: New file.
27381 * lib/unictype/pr_numeric.c: New file.
27382 * lib/unictype/pr_other_alphabetic.c: New file.
27383 * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
27384 * lib/unictype/pr_other_grapheme_extend.c: New file.
27385 * lib/unictype/pr_other_id_continue.c: New file.
27386 * lib/unictype/pr_other_id_start.c: New file.
27387 * lib/unictype/pr_other_lowercase.c: New file.
27388 * lib/unictype/pr_other_math.c: New file.
27389 * lib/unictype/pr_other_uppercase.c: New file.
27390 * lib/unictype/pr_paired_punctuation.c: New file.
27391 * lib/unictype/pr_paragraph_separator.c: New file.
27392 * lib/unictype/pr_pattern_syntax.c: New file.
27393 * lib/unictype/pr_pattern_white_space.c: New file.
27394 * lib/unictype/pr_private_use.c: New file.
27395 * lib/unictype/pr_punctuation.c: New file.
27396 * lib/unictype/pr_quotation_mark.c: New file.
27397 * lib/unictype/pr_radical.c: New file.
27398 * lib/unictype/pr_sentence_terminal.c: New file.
27399 * lib/unictype/pr_soft_dotted.c: New file.
27400 * lib/unictype/pr_space.c: New file.
27401 * lib/unictype/pr_terminal_punctuation.c: New file.
27402 * lib/unictype/pr_test.c: New file.
27403 * lib/unictype/pr_titlecase.c: New file.
27404 * lib/unictype/pr_unassigned_code_value.c: New file.
27405 * lib/unictype/pr_unified_ideograph.c: New file.
27406 * lib/unictype/pr_uppercase.c: New file.
27407 * lib/unictype/pr_variation_selector.c: New file.
27408 * lib/unictype/pr_white_space.c: New file.
27409 * lib/unictype/pr_xid_continue.c: New file.
27410 * lib/unictype/pr_xid_start.c: New file.
27411 * lib/unictype/pr_zero_width.c: New file.
27412 * lib/unictype/scripts.c: New file.
27413 * lib/unictype/sy_c_ident.c: New file.
27414 * lib/unictype/sy_c_whitespace.c: New file.
27415 * lib/unictype/sy_java_ident.c: New file.
27416 * lib/unictype/sy_java_whitespace.c: New file.
27418 * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
27420 * lib/unictype/blocks.h: Likewise.
27421 * lib/unictype/categ_C.h: Likewise.
27422 * lib/unictype/categ_Cc.h: Likewise.
27423 * lib/unictype/categ_Cf.h: Likewise.
27424 * lib/unictype/categ_Cn.h: Likewise.
27425 * lib/unictype/categ_Co.h: Likewise.
27426 * lib/unictype/categ_Cs.h: Likewise.
27427 * lib/unictype/categ_L.h: Likewise.
27428 * lib/unictype/categ_Ll.h: Likewise.
27429 * lib/unictype/categ_Lm.h: Likewise.
27430 * lib/unictype/categ_Lo.h: Likewise.
27431 * lib/unictype/categ_Lt.h: Likewise.
27432 * lib/unictype/categ_Lu.h: Likewise.
27433 * lib/unictype/categ_M.h: Likewise.
27434 * lib/unictype/categ_Mc.h: Likewise.
27435 * lib/unictype/categ_Me.h: Likewise.
27436 * lib/unictype/categ_Mn.h: Likewise.
27437 * lib/unictype/categ_N.h: Likewise.
27438 * lib/unictype/categ_Nd.h: Likewise.
27439 * lib/unictype/categ_Nl.h: Likewise.
27440 * lib/unictype/categ_No.h: Likewise.
27441 * lib/unictype/categ_P.h: Likewise.
27442 * lib/unictype/categ_Pc.h: Likewise.
27443 * lib/unictype/categ_Pd.h: Likewise.
27444 * lib/unictype/categ_Pe.h: Likewise.
27445 * lib/unictype/categ_Pf.h: Likewise.
27446 * lib/unictype/categ_Pi.h: Likewise.
27447 * lib/unictype/categ_Po.h: Likewise.
27448 * lib/unictype/categ_Ps.h: Likewise.
27449 * lib/unictype/categ_S.h: Likewise.
27450 * lib/unictype/categ_Sc.h: Likewise.
27451 * lib/unictype/categ_Sk.h: Likewise.
27452 * lib/unictype/categ_Sm.h: Likewise.
27453 * lib/unictype/categ_So.h: Likewise.
27454 * lib/unictype/categ_Z.h: Likewise.
27455 * lib/unictype/categ_Zl.h: Likewise.
27456 * lib/unictype/categ_Zp.h: Likewise.
27457 * lib/unictype/categ_Zs.h: Likewise.
27458 * lib/unictype/categ_of.h: Likewise.
27459 * lib/unictype/combining.h: Likewise.
27460 * lib/unictype/ctype_alnum.h: Likewise.
27461 * lib/unictype/ctype_alpha.h: Likewise.
27462 * lib/unictype/ctype_blank.h: Likewise.
27463 * lib/unictype/ctype_cntrl.h: Likewise.
27464 * lib/unictype/ctype_digit.h: Likewise.
27465 * lib/unictype/ctype_graph.h: Likewise.
27466 * lib/unictype/ctype_lower.h: Likewise.
27467 * lib/unictype/ctype_print.h: Likewise.
27468 * lib/unictype/ctype_punct.h: Likewise.
27469 * lib/unictype/ctype_space.h: Likewise.
27470 * lib/unictype/ctype_upper.h: Likewise.
27471 * lib/unictype/ctype_xdigit.h: Likewise.
27472 * lib/unictype/decdigit.h: Likewise.
27473 * lib/unictype/digit.h: Likewise.
27474 * lib/unictype/mirror.h: Likewise.
27475 * lib/unictype/numeric.h: Likewise.
27476 * lib/unictype/pr_alphabetic.h: Likewise.
27477 * lib/unictype/pr_ascii_hex_digit.h: Likewise.
27478 * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
27479 * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
27480 * lib/unictype/pr_bidi_block_separator.h: Likewise.
27481 * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
27482 * lib/unictype/pr_bidi_common_separator.h: Likewise.
27483 * lib/unictype/pr_bidi_control.h: Likewise.
27484 * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
27485 * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
27486 * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
27487 * lib/unictype/pr_bidi_european_digit.h: Likewise.
27488 * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
27489 * lib/unictype/pr_bidi_left_to_right.h: Likewise.
27490 * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
27491 * lib/unictype/pr_bidi_other_neutral.h: Likewise.
27492 * lib/unictype/pr_bidi_pdf.h: Likewise.
27493 * lib/unictype/pr_bidi_segment_separator.h: Likewise.
27494 * lib/unictype/pr_bidi_whitespace.h: Likewise.
27495 * lib/unictype/pr_combining.h: Likewise.
27496 * lib/unictype/pr_composite.h: Likewise.
27497 * lib/unictype/pr_currency_symbol.h: Likewise.
27498 * lib/unictype/pr_dash.h: Likewise.
27499 * lib/unictype/pr_decimal_digit.h: Likewise.
27500 * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
27501 * lib/unictype/pr_deprecated.h: Likewise.
27502 * lib/unictype/pr_diacritic.h: Likewise.
27503 * lib/unictype/pr_extender.h: Likewise.
27504 * lib/unictype/pr_format_control.h: Likewise.
27505 * lib/unictype/pr_grapheme_base.h: Likewise.
27506 * lib/unictype/pr_grapheme_extend.h: Likewise.
27507 * lib/unictype/pr_grapheme_link.h: Likewise.
27508 * lib/unictype/pr_hex_digit.h: Likewise.
27509 * lib/unictype/pr_hyphen.h: Likewise.
27510 * lib/unictype/pr_id_continue.h: Likewise.
27511 * lib/unictype/pr_id_start.h: Likewise.
27512 * lib/unictype/pr_ideographic.h: Likewise.
27513 * lib/unictype/pr_ids_binary_operator.h: Likewise.
27514 * lib/unictype/pr_ids_trinary_operator.h: Likewise.
27515 * lib/unictype/pr_ignorable_control.h: Likewise.
27516 * lib/unictype/pr_iso_control.h: Likewise.
27517 * lib/unictype/pr_join_control.h: Likewise.
27518 * lib/unictype/pr_left_of_pair.h: Likewise.
27519 * lib/unictype/pr_line_separator.h: Likewise.
27520 * lib/unictype/pr_logical_order_exception.h: Likewise.
27521 * lib/unictype/pr_lowercase.h: Likewise.
27522 * lib/unictype/pr_math.h: Likewise.
27523 * lib/unictype/pr_non_break.h: Likewise.
27524 * lib/unictype/pr_not_a_character.h: Likewise.
27525 * lib/unictype/pr_numeric.h: Likewise.
27526 * lib/unictype/pr_other_alphabetic.h: Likewise.
27527 * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
27528 * lib/unictype/pr_other_grapheme_extend.h: Likewise.
27529 * lib/unictype/pr_other_id_continue.h: Likewise.
27530 * lib/unictype/pr_other_id_start.h: Likewise.
27531 * lib/unictype/pr_other_lowercase.h: Likewise.
27532 * lib/unictype/pr_other_math.h: Likewise.
27533 * lib/unictype/pr_other_uppercase.h: Likewise.
27534 * lib/unictype/pr_paired_punctuation.h: Likewise.
27535 * lib/unictype/pr_paragraph_separator.h: Likewise.
27536 * lib/unictype/pr_pattern_syntax.h: Likewise.
27537 * lib/unictype/pr_pattern_white_space.h: Likewise.
27538 * lib/unictype/pr_private_use.h: Likewise.
27539 * lib/unictype/pr_punctuation.h: Likewise.
27540 * lib/unictype/pr_quotation_mark.h: Likewise.
27541 * lib/unictype/pr_radical.h: Likewise.
27542 * lib/unictype/pr_sentence_terminal.h: Likewise.
27543 * lib/unictype/pr_soft_dotted.h: Likewise.
27544 * lib/unictype/pr_space.h: Likewise.
27545 * lib/unictype/pr_terminal_punctuation.h: Likewise.
27546 * lib/unictype/pr_titlecase.h: Likewise.
27547 * lib/unictype/pr_unassigned_code_value.h: Likewise.
27548 * lib/unictype/pr_unified_ideograph.h: Likewise.
27549 * lib/unictype/pr_uppercase.h: Likewise.
27550 * lib/unictype/pr_variation_selector.h: Likewise.
27551 * lib/unictype/pr_white_space.h: Likewise.
27552 * lib/unictype/pr_xid_continue.h: Likewise.
27553 * lib/unictype/pr_xid_start.h: Likewise.
27554 * lib/unictype/pr_zero_width.h: Likewise.
27555 * lib/unictype/scripts.h: Likewise.
27556 * lib/unictype/scripts_byname.gperf: Likewise.
27557 * lib/unictype/sy_c_ident.h: Likewise.
27558 * lib/unictype/sy_c_whitespace.h: Likewise.
27559 * lib/unictype/sy_java_ident.h: Likewise.
27560 * lib/unictype/sy_java_whitespace.h: Likewise.
27562 * lib/unictype/Makefile: New file.
27563 * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
27565 * lib/unictype/3level.h: New file, copied from glibc.
27566 * lib/unictype/3levelbit.h: New file.
27568 2007-11-11 Bruno Haible <bruno@clisp.org>
27570 * modules/gperf: New file.
27571 * modules/iconv_open (Depends-on): Add it.
27572 (Makefile.am): Remove the GPERF definition.
27574 2007-11-11 Bruno Haible <bruno@clisp.org>
27576 * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
27577 * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
27579 2007-11-11 Bruno Haible <bruno@clisp.org>
27581 * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
27582 (usage): Remove function.
27584 2007-11-11 Bruno Haible <bruno@clisp.org>
27586 * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
27587 gl_FUNC_CEILF_LIBS.
27588 * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
27590 * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
27591 gl_FUNC_CEILL_LIBS.
27592 * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
27593 * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
27594 * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
27596 2007-11-11 Bruno Haible <bruno@clisp.org>
27598 * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
27599 roundf were declared but do not exist on functions.
27600 * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
27601 roundl were declared but do not exist on functions.
27602 * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
27603 HAVE_FLOORL_AND_CEILL, respectively.
27604 Needed for Sun C on Solaris 10.
27606 2007-11-11 Bruno Haible <bruno@clisp.org>
27608 * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
27609 HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
27610 * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
27611 HAVE_DECL_ROUND. Remove redundant AC_SUBST.
27612 * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
27613 HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
27614 * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
27616 (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
27617 (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
27618 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
27619 of HAVE_DECL_ROUND*.
27620 * modules/math (Makefile.am): Update.
27622 2007-11-10 Bruno Haible <bruno@clisp.org>
27624 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
27625 ptrdiff_t as m4/intl.m4.
27627 2007-11-10 Jim Meyering <meyering@redhat.com>
27629 Avoid link failure for the argmatch test.
27630 * tests/test-argmatch.c (usage): Define function to avoid a link
27631 failure: argmatch_die requires a usage function.
27633 2007-11-09 Bruno Haible <bruno@clisp.org>
27635 * doc/functions/snprintf.texi: Mention BeOS deficiency.
27636 * doc/functions/vsnprintf.texi: Likewise.
27637 * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
27638 with a size argument < 2.
27640 2007-11-09 Bruno Haible <bruno@clisp.org>
27642 * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
27643 buffer. Fixes an inefficiency introduced on 2007-11-03.
27645 2007-11-09 Bruno Haible <bruno@clisp.org>
27647 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
27648 none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
27650 2007-11-08 Jim Meyering <meyering@redhat.com>
27652 Change cache variable name prefix "jm_" to "gl_" everywhere.
27653 * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
27654 * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
27655 * m4/uptime.m4: s/gl_/jm_/
27657 2007-11-07 Bruno Haible <bruno@clisp.org>
27659 Update to GNU gettext 0.17.
27660 * m4/intl.m4: Update to GNU gettext 0.17.
27661 * m4/po.m4: Likewise.
27662 * modules/gettext (Files): Remove m4/ulonglong.m4.
27663 (configure.ac): Require gettext infrastructure from version 0.17.
27665 2007-11-06 Bruno Haible <bruno@clisp.org>
27667 * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
27668 symbolic values are not defined in a public header.
27669 * lib/freadable.c (freadable) [QNX]: Likewise.
27670 * lib/freadahead.c (freadahead) [QNX]: Likewise.
27671 * lib/freading.c (freading) [QNX]: Likewise.
27672 * lib/fseterr.c (fseterr) [QNX]: Likewise.
27673 * lib/fwritable.c (fwritable) [QNX]: Likewise.
27674 * lib/fwriting.c (fwriting) [QNX]: Likewise.
27675 * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
27676 Reported by Alain Magloire.
27678 * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
27680 2007-11-05 Bruno Haible <bruno@clisp.org>
27682 * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
27683 code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
27684 Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
27685 Reported by Eric Blake.
27687 2007-10-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27688 Bruno Haible <bruno@clisp.org>
27690 * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
27691 * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
27692 * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
27693 (malloc): Undefine also before including <stdlib.h>.
27694 (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
27695 Needed on OSF/1 4.0.
27697 2007-11-05 Jim Meyering <meyering@redhat.com>
27699 git-version-gen: sync from coreutils.
27700 * build-aux/git-version-gen: Add comments.
27701 Change the first '-' to '.' in the snapshot version string,
27702 e.g., 6.9-377-08144 -> 6.9.377-08144
27703 Remove first parameter.
27704 Don't declare a version "-dirty" merely because a time
27707 2007-11-04 Bruno Haible <bruno@clisp.org>
27709 * lib/lock.h: Protect all macro definitions containing an 'if'
27710 statement through a "do { ... } while (0)".
27711 * lib/tls.h: Likewise.
27713 2007-11-04 Bruno Haible <bruno@clisp.org>
27715 * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
27717 2007-11-04 Bruno Haible <bruno@clisp.org>
27719 * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
27720 * modules/fprintf-posix (Depends-on): Add nocrash.
27721 * modules/snprintf-posix (Depends-on): Likewise.
27722 * modules/sprintf-posix (Depends-on): Likewise.
27723 * modules/vasnprintf-posix (Depends-on): Likewise.
27724 * modules/vasprintf-posix (Depends-on): Likewise.
27725 * modules/vfprintf-posix (Depends-on): Likewise.
27726 * modules/vsnprintf-posix (Depends-on): Likewise.
27727 * modules/vsprintf-posix (Depends-on): Likewise.
27728 * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27729 * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27730 * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27731 * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27732 * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27733 * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27734 * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27736 2007-11-04 Bruno Haible <bruno@clisp.org>
27738 * modules/nocrash: New file.
27739 * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
27740 GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
27742 2007-11-04 Bruno Haible <bruno@clisp.org>
27744 * tests/test-vasnprintf-posix.c (test_function): Add some tests of
27745 precision handling.
27746 * tests/test-vasprintf-posix.c (test_function): Likewise.
27747 * tests/test-snprintf-posix.h (test_function): Likewise.
27748 * tests/test-sprintf-posix.h (test_function): Likewise.
27750 Fix *printf behaviour for large precisions on mingw and BeOS.
27751 * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
27752 * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
27753 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
27754 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27755 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27756 gl_PRINTF_PRECISION and test its result. Invoke
27757 gl_PREREQ_VASNPRINTF_PRECISION.
27758 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27759 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27760 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27761 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27762 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27763 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27764 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27765 * doc/functions/fprintf.texi: Update.
27766 * doc/functions/printf.texi: Update.
27767 * doc/functions/snprintf.texi: Update.
27768 * doc/functions/sprintf.texi: Update.
27769 * doc/functions/vfprintf.texi: Update.
27770 * doc/functions/vprintf.texi: Update.
27771 * doc/functions/vsnprintf.texi: Update.
27772 * doc/functions/vsprintf.texi: Update.
27774 2007-11-04 Bruno Haible <bruno@clisp.org>
27776 * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
27778 2007-11-04 Bruno Haible <bruno@clisp.org>
27780 * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
27781 Reported by Sylvain Beucler <beuc@gnu.org>.
27783 2007-11-03 Bruno Haible <bruno@clisp.org>
27785 * tests/test-fprintf-posix2.sh: New file.
27786 * tests/test-fprintf-posix2.c: New file.
27787 * modules/fprintf-posix-tests (Files): Add them.
27788 (TESTS): Add test-fprintf-posix2.sh.
27789 (configure.ac): Check for getrlimit and setrlimit.
27790 (check_PROGRAMS): Add test-fprintf-posix2.
27792 * tests/test-printf-posix2.sh: New file.
27793 * tests/test-printf-posix2.c: New file.
27794 * modules/printf-posix-tests (Files): Add them.
27795 (TESTS): Add test-printf-posix2.sh.
27796 (configure.ac): Check for getrlimit and setrlimit.
27797 (check_PROGRAMS): Add test-printf-posix2.
27799 Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
27800 * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
27801 * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
27802 (decode_double): New function, copied from decode_long_double.
27803 (scale10_round_decimal_decoded): New function, extracted from
27804 scale10_round_decimal_long_double.
27805 (scale10_round_decimal_long_double): Use it.
27806 (scale10_round_decimal_double): New function.
27807 (floorlog10): New function.
27808 (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
27809 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
27810 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
27811 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
27812 gl_PRINTF_ENOMEM and test its result. Invoke
27813 gl_PREREQ_VASNPRINTF_ENOMEM.
27814 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27815 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27816 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27817 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27818 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27819 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
27820 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27821 * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
27822 * modules/snprintf-posix (Depends-on): Likewise.
27823 * modules/sprintf-posix (Depends-on): Likewise.
27824 * modules/vasnprintf-posix (Depends-on): Likewise.
27825 * modules/vasprintf-posix (Depends-on): Likewise.
27826 * modules/vfprintf-posix (Depends-on): Likewise.
27827 * modules/vsnprintf-posix (Depends-on): Likewise.
27828 * modules/vsprintf-posix (Depends-on): Likewise.
27829 * doc/functions/fprintf.texi: Update.
27830 * doc/functions/printf.texi: Update.
27831 * doc/functions/snprintf.texi: Update.
27832 * doc/functions/sprintf.texi: Update.
27833 * doc/functions/vfprintf.texi: Update.
27834 * doc/functions/vprintf.texi: Update.
27835 * doc/functions/vsnprintf.texi: Update.
27836 * doc/functions/vsprintf.texi: Update.
27838 2007-11-03 Bruno Haible <bruno@clisp.org>
27840 * modules/frexp-nolibm-tests: New file.
27842 * modules/frexp-nolibm: New file.
27843 * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
27845 2007-11-03 Bruno Haible <bruno@clisp.org>
27847 * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
27848 value is C99 compliant.
27849 Needed for OSF/1 5.1.
27851 2007-11-03 Bruno Haible <bruno@clisp.org>
27853 Fix out-of-memory handling of vasnprintf.
27854 * lib/printf-parse.c: Include <errno.h>.
27855 (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
27856 * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
27859 2007-11-02 Eric Blake <ebb9@byu.net>
27861 Fix tests on cygwin.
27862 * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
27864 2007-11-01 Bruno Haible <bruno@clisp.org>
27866 * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
27868 * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
27869 needed for POSIX compatibility.
27871 2007-11-01 Paul Eggert <eggert@cs.ucla.edu>
27873 * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
27874 for compatibility with GNU.
27876 2007-11-01 Bruno Haible <bruno@clisp.org>
27878 * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
27879 (putenv): Renamed from rpl_putenv. Change argument type from
27880 'const char *' to 'char *'.
27881 * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
27882 of defining putenv in config.h, just set REPLACE_PUTENV.
27883 * modules/putenv (Depends-on): Add stdlib.
27884 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
27885 (Include): Use <stdlib.h>.
27886 * lib/stdlib.in.h (putenv): New declaration.
27887 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
27889 * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
27891 Needed for MacOS X 10.5.0.
27892 Reported by Peter O'Gorman <peter@pogma.com>.
27894 2007-11-01 Jim Meyering <meyering@redhat.com>
27896 Treat an empty date string exactly like "0".
27897 * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
27898 if the remaining date string (to be parsed) is empty, use "0".
27899 Reported by Mischa Molhoek and discussed in this thread:
27900 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
27902 2007-10-31 Bruno Haible <bruno@clisp.org>
27904 * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
27905 AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
27906 * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
27907 AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
27908 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
27909 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
27911 2007-10-31 Bruno Haible <bruno@clisp.org>
27913 * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
27914 from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
27915 (AC_TYPE_LONG_LONG_INT): Use it.
27916 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
27918 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
27920 * modules/stdint (Files): Remove m4/ulonglong.m4.
27921 * modules/strtoull (Files): Use m4/longlong.m4 instead of
27923 * modules/strtoumax (Files): Likewise.
27925 2007-10-30 Bruno Haible <bruno@clisp.org>
27927 * modules/xvasprintf-posix: New file.
27928 Suggested by Eric Blake.
27930 2007-10-30 Bruno Haible <bruno@clisp.org>
27932 * modules/xprintf-posix-tests: New file.
27933 * tests/test-xprintf-posix.sh: New file.
27934 * tests/test-xprintf-posix.c: New file.
27935 * tests/test-xfprintf-posix.c: New file.
27937 * modules/xprintf-posix: New file.
27939 2007-10-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27941 * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
27942 * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
27943 * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
27945 2007-10-29 Bruno Haible <bruno@clisp.org>
27947 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
27948 contain the special marker '_cv_'.
27949 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
27950 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
27951 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
27952 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
27953 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
27954 Reported by Ralf Wildenhues.
27956 2007-10-29 Bruno Haible <bruno@clisp.org>
27958 * gnulib-tool (func_import): When --lgpl is not specified, set
27959 sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
27961 Reported by Simon Josefsson.
27963 2007-10-28 Bruno Haible <bruno@clisp.org>
27965 * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
27966 * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
27967 HAVE_DECL_ISFINITE.
27968 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27969 * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
27970 HAVE_DECL_ISFINITE.
27972 2007-10-28 Bruno Haible <bruno@clisp.org>
27974 * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
27975 integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
27977 2007-10-28 Bruno Haible <bruno@clisp.org>
27979 Fix link errors with Sun C 5.0 on Solaris 10.
27980 * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
27981 function is declared but not present in the compiler's libm.
27982 * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
27983 * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
27984 * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
27985 * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
27986 Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
27987 Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
27988 Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
27989 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
27990 * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
27991 HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
27992 REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
27995 2007-10-28 Bruno Haible <bruno@clisp.org>
27997 * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
27998 gl_FUNC_FLOORL. Cache the result.
27999 (gl_FUNC_FLOORL): Use it.
28000 * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
28001 gl_FUNC_CEILL. Cache the result.
28002 (gl_FUNC_CEILL): Use it.
28004 * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
28005 gl_FUNC_FLOOR. Cache the result.
28006 (gl_FUNC_FLOOR): Use it.
28007 * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
28008 gl_FUNC_CEIL. Cache the result.
28009 (gl_FUNC_CEIL): Use it.
28011 * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
28012 gl_FUNC_FLOORF. Cache the result.
28013 (gl_FUNC_FLOORF): Use it.
28014 * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
28015 gl_FUNC_CEILF. Cache the result.
28016 (gl_FUNC_CEILF): Use it.
28018 2007-10-28 Bruno Haible <bruno@clisp.org>
28020 * gnulib-tool: Allow specifying the LGPL version number through
28021 --lgpl=2 or --lgpl=3.
28022 (func_usage): Document --lgpl with argument.
28023 Handle --lgpl=... arguments.
28024 (func_import): Recognize also gl_LGPL calls with an argument. When
28025 --lgpl=2 is used and the module's license is just LGPL, report an
28026 error. Set sed_transform_lib_file according to the lgpl variable. In
28027 the generated files, use --lgpl or gl_LGPL invocations with argument,
28029 * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
28031 * doc/gnulib-tool.texi (Modified imports): Update explanation of
28034 2007-10-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28035 Bruno Haible <bruno@clisp.org>
28037 * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
28038 (u16_uctomb_aux): Likewise.
28039 * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
28041 * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
28043 2007-10-28 Bruno Haible <bruno@clisp.org>
28045 * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
28046 Invoke AM_GETTEXT_OPTION if it exists.
28047 * modules/vasprintf: Likewise.
28048 * modules/verror: Likewise.
28049 * modules/xprintf: Likewise.
28050 * modules/xvasprintf: Likewise.
28052 2007-10-27 Ben Pfaff <blp@gnu.org>
28054 * lib/math.in.h: Define isfinite macro and prototypes for
28055 gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
28057 * m4/math_h.m4: New substitutions for isfinite module.
28058 * lib/isfinite.c: New file.
28059 * m4/isfinite.m4: New file.
28060 * modules/math: Replace isfinite-related @VARS@ in math.in.h.
28061 * modules/isfinite: New file.
28062 * modules/isfinite-tests: New file.
28063 * tests/tests-isfinite.c: New file.
28064 * doc/functions/isfinite.texi: Mention isfinite module.
28065 * MODULES.html.sh: Mention new module.
28067 2007-10-27 Ben Pfaff <blp@gnu.org>
28069 Ralf Wildenhues reported that Tru64 4.0D declares the round
28070 functions but does not have definitions.
28071 * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
28072 cannot be found in any library, set the output variable to
28073 "missing" instead of "".
28074 * m4/round.m4: Also use our substitute if we cannot find round in
28075 any library, even if it is declared.
28076 * m4/roundf.m4: Likewise for roundf.
28077 * m4/roundl.m4: Likewise for roundl.
28078 * lib/math.in.h: Undefine roundf, round, roundl before defining
28079 their replacements, to allow for hypothetical systems where these
28080 may be defined as macros but not available in libraries.
28082 2007-10-27 Bruno Haible <bruno@clisp.org>
28084 * doc/gnulib.texi: Invoke @firstparagraphindent.
28085 * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
28087 (Source changes): New section.
28089 2007-10-26 Bruno Haible <bruno@clisp.org>
28091 * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
28092 borrowed from autoconf.
28094 2007-10-26 Bruno Haible <bruno@clisp.org>
28096 * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
28097 strerror returned the empty string. Needed on HP-UX 11.00.
28099 2007-10-24 Micah Cowan <micah@cowan.name>
28101 Remove vestiges of cvs-gnulib-checkout process. Now we use git.
28102 * build-aux/bootstrap: Remove support for now-unnecessary option,
28103 --cvs-user, and envvars CVS_USER, CVS_RSH.
28105 2007-10-24 Jim Meyering <meyering@redhat.com>
28107 Avoid diagnostics from sha1sum when there is no cached checksum.
28108 * build-aux/bootstrap (update_po_files): Skip the sha1sum check
28109 if the po.s1 file hasn't been created yet.
28111 * build-aux/bootstrap: Sync from coreutils:
28112 2007-10-24 Jim Meyering <meyering@redhat.com>
28113 Get gnulib from the git repository, not from an obsolete cvs one.
28114 * build-aux/bootstrap: Suggestion from Micah Cowan.
28115 2007-10-04 Jim Meyering <jim@meyering.net>
28116 * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
28117 (update_po_files): Work also when there are no .po files in po/.
28119 2007-10-24 Paul Eggert <eggert@cs.ucla.edu>
28121 * README: Append ".git" to git and cg examples.
28122 Problem reported by Benoit Sigoure.
28124 2007-10-23 Micah Cowan <micah@cowan.name>
28126 * users.txt: Add wget.
28128 2007-10-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28130 Fix linking of some unistdio tests on FreeBSD.
28131 * modules/unistdio/u16-vsnprintf-tests
28132 (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
28133 * modules/unistdio/u16-vsprintf-tests
28134 (test_u16_vsnprintf1_LDADD): Likewise.
28135 * modules/unistdio/u32-vsnprintf-tests
28136 (test_u32_vsnprintf1_LDADD): Likewise.
28137 * modules/unistdio/u32-vsprintf-tests
28138 (test_u32_vsprintf1_LDADD): Likewise.
28139 * modules/unistdio/u8-vsnprintf-tests
28140 (test_u8_vsnprintf1_LDADD): Likewise.
28141 * modules/unistdio/u8-vsprintf-tests
28142 (test_u8_vsprintf1_LDADD): Likewise.
28143 * modules/unistdio/ulc-vsnprintf-tests
28144 (test_ulc_vsnprintf1_LDADD): Likewise.
28145 * modules/unistdio/ulc-vsprintf-tests
28146 (test_ulc_vsprintf1_LDADD): Likewise.
28148 Fix linking of some uniconv tests on FreeBSD.
28149 * modules/uniconv/u16-conv-from-enc-tests
28150 (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
28151 * modules/uniconv/u16-conv-to-enc-tests
28152 (test_u16_conv_to_enc_LDADD): Likewise.
28153 * modules/uniconv/u16-strconv-from-enc-tests
28154 (test_u16_strconv_from_enc_LDADD): Likewise.
28155 * modules/uniconv/u16-strconv-to-enc-tests
28156 (test_u16_strconv_to_enc_LDADD): Likewise.
28157 * modules/uniconv/u32-conv-from-enc-tests
28158 (test_u32_conv_from_enc_LDADD): Likewise.
28159 * modules/uniconv/u32-conv-to-enc-tests
28160 (test_u32_conv_to_enc_LDADD): Likewise.
28161 * modules/uniconv/u32-strconv-from-enc-tests
28162 (test_u32_strconv_from_enc_LDADD): Likewise.
28163 * modules/uniconv/u32-strconv-to-enc-tests
28164 (test_u32_strconv_to_enc_LDADD): Likewise.
28165 * modules/uniconv/u8-conv-from-enc-tests
28166 (test_u8_conv_from_enc_LDADD): Likewise.
28167 * modules/uniconv/u8-conv-to-enc-tests
28168 (test_u8_conv_to_enc_LDADD): Likewise.
28169 * modules/uniconv/u8-strconv-from-enc-tests
28170 (test_u8_strconv_from_enc_LDADD): Likewise.
28171 * modules/uniconv/u8-strconv-to-enc-tests
28172 (test_u8_strconv_to_enc_LDADD): Likewise.
28174 2007-10-22 Bruno Haible <bruno@clisp.org>
28176 * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
28179 2007-10-22 Eric Blake <ebb9@byu.net>
28181 Tweak x*printf documentation.
28182 * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
28183 variable name and comments.
28184 Suggested by Bruno Haible.
28186 2007-10-22 Bruno Haible <bruno@clisp.org>
28188 * lib/acl.c (copy_acl): Fix file name in comment.
28190 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28192 Fix Tru64 problem with stdbool.h.
28193 * lib/stdbool.in.h (false, true):
28194 [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
28195 Don't declare as an enum in this situation; it runs afoul of Tru64.
28196 Problem reported by Steven M. Schweda in
28197 <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
28199 2007-10-22 Eric Blake <ebb9@byu.net>
28201 Also wrap vf?printf.
28202 * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
28203 * lib/xprintf.c (xprintf, xfprintf): Work for C89.
28204 (xvprintf, xvfprintf): New functions.
28206 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28208 * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
28209 @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
28211 * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
28212 * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
28214 2007-10-22 Paul Eggert <eggert@cs.ucla.edu>
28216 * lib/acl.c (copy_acl): Adjust to IRIX 6.5. Problem reported
28219 2007-10-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28222 [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
28223 Undef `sys' after including sys/table.h, for Tru64 4.0D.
28225 * tests/test-i-ring.c: Work for C89.
28227 2007-10-22 Bruno Haible <bruno@clisp.org>
28229 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
28230 -1u, in preprocessor expression, so that we don't test for the bug
28231 in HP-UX 11.00 cpp. Testing for this bug caused problems; see
28232 <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
28234 2007-10-22 Eric Blake <ebb9@byu.net>
28236 * tests/test-yesno.sh: Silence stderr during test.
28238 2007-10-22 Simon Josefsson <simon@josefsson.org>
28240 * modules/crypto/gc-camellia: New file.
28242 * m4/gc-camellia.m4: New file.
28244 * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
28246 * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
28248 2007-10-22 Simon Josefsson <simon@josefsson.org>
28250 * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
28251 --help to stdout. Reported by sms@antinode.org (Steven
28254 2007-10-22 Simon Josefsson <simon@josefsson.org>
28256 * users.txt: Fix link to libksba.
28258 2007-10-21 Ben Pfaff <blp@gnu.org>
28260 * modules/roundf-tests: Add dependency on floorf, ceilf to allow
28261 round.c roundf implementation that depends on floorf and ceilf to
28262 be tested unconditionally.
28264 2007-10-21 Ben Pfaff <blp@gnu.org>
28266 * m4/check-libm-func.m4: Removed.
28267 * m4/check-math-lib.m4: New file.
28268 * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
28269 * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
28270 definition and lack of AC_LIBOBJ([roundf]).
28271 * m4/roundl.m4: Ditto, and similarly for roundl.
28272 * modules/round: Reference new m4 file.
28273 * modules/roundf: Ditto.
28274 * modules/roundl: Ditto.
28275 * tests/test-round2.c (main): Use ROUND instead of round.
28276 Bug report from Bruno Haible.
28278 2007-10-21 Bruno Haible <bruno@clisp.org>
28280 * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
28283 2007-10-21 Bruno Haible <bruno@clisp.org>
28285 * tests/test-wcwidth.c (main): Allow negative result for some control
28288 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
28289 Needed on OSF/1 5.1.
28291 2007-10-21 Bruno Haible <bruno@clisp.org>
28293 * tests/test-floorf1.c: Include isnanf.h.
28294 (main): Use isnanf() instead of isnan().
28295 * tests/test-ceilf1.c: Include isnanf.h.
28296 (main): Use isnanf() instead of isnan().
28297 * tests/test-truncf1.c: Include isnanf.h.
28298 (main): Use isnanf() instead of isnan().
28299 * tests/test-roundf1.c: Include isnanf.h.
28300 (main): Use isnanf() instead of isnan().
28302 2007-10-21 Eric Blake <ebb9@byu.net>
28304 * users.txt: Update URL for m4.
28306 2007-10-21 Bruno Haible <bruno@clisp.org>
28308 * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
28310 2007-10-21 Bruno Haible <bruno@clisp.org>
28312 * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
28313 Git's management files if the CVS files are not present.
28315 2007-10-20 Bruno Haible <bruno@clisp.org>
28317 * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
28320 2007-10-20 Ben Pfaff <blp@gnu.org>
28322 * lib/math.in.h: Declare round, roundf, roundl if we are providing
28324 * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
28325 * lib/round.c: New file.
28326 * lib/roundf.c: New file.
28327 * lib/roundl.c: New file.
28328 * m4/round.m4: New file.
28329 * m4/roundf.m4: New file.
28330 * m4/roundl.m4: New file.
28331 * m4/check-libm-func-m4: New file.
28332 * modules/math: Replace round, roundf, roundl related @VARS@ in
28334 * modules/round: New file.
28335 * modules/round-tests: New file.
28336 * modules/roundf: New file.
28337 * modules/roundf-tests: New file.
28338 * modules/roundl: New file.
28339 * modules/roundl-tests: New file.
28340 * tests/test-round1.c: New file.
28341 * tests/test-round2.c: New file.
28342 * tests/test-roundf1.c: New file.
28343 * tests/test-roundf2.c: New file.
28344 * tests/test-roundl.c: New file.
28345 * doc/functions/round.texi: Mention round module.
28346 * doc/functions/roundf.texi: Mention roundf module.
28347 * doc/functions/roundl.texi: Mention roundl module.
28348 * MODULES.html.sh: Mention new modules.
28349 Thanks to Bruno Haible for suggestions.
28351 2007-10-20 Jim Meyering <meyering@redhat.com>
28353 * lib/xprintf.c: Include <config.h> unconditionally.
28355 Change xprintf's license to GPL.
28356 * modules/xprintf (License): s/LGPL/GPL/, since this module
28357 depends on modules (exit and exitfail) which are GPL.
28358 Suggestion from Bruno Haible.
28361 * lib/xprintf.c (xprintf, xfprintf): Use va_end.
28362 Use a clearer diagnostic.
28363 Patch from Bruno Haible.
28365 2007-10-20 Bruno Haible <bruno@clisp.org>
28367 * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
28368 length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
28369 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28371 2007-10-20 Bruno Haible <bruno@clisp.org>
28373 * tests/test-floorf2.c (correct_result_p): Don't rely on excess
28374 precision in the comparison result > x - 1 or similar.
28375 * tests/test-ceilf2.c (correct_result_p): Likewise.
28376 * tests/test-truncf2.c (correct_result_p): Likewise.
28377 * tests/test-trunc2.c (correct_result_p): Likewise.
28378 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28380 2007-10-20 Bruno Haible <bruno@clisp.org>
28382 * modules/ceil: New file.
28383 * m4/ceil.m4: New file.
28384 * doc/functions/ceil.texi: Mention the 'ceil' module.
28386 2007-10-20 Bruno Haible <bruno@clisp.org>
28388 * modules/floor: New file.
28389 * m4/floor.m4: New file.
28390 * doc/functions/floor.texi: Mention the 'floor' module.
28392 2007-10-20 Bruno Haible <bruno@clisp.org>
28394 * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
28396 * modules/floorf-tests (Depends-on): Likewise.
28397 * modules/truncf-tests (Depends-on): Likewise.
28398 * modules/trunc-tests (Depends-on): Likewise.
28399 Reported by Ben Pfaff.
28401 2007-10-19 Jim Meyering <meyering@redhat.com>
28403 * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
28404 Don't bother testing specific errno values. Just test ferror.
28406 New module: xprintf
28407 * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
28409 2007-10-19 Bruno Haible <bruno@clisp.org>
28411 * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
28413 * modules/javaexec (Makefile.am): Likewise.
28414 * modules/relocatable-prog (Makefile.am): Likewise.
28415 Suggested by Jim Meyering.
28417 2007-10-18 Bruno Haible <bruno@clisp.org>
28419 * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
28420 Reported by Jim Meyering.
28422 2007-10-18 Eric Blake <ebb9@byu.net>
28424 * modules/filenamecat-tests (Makefile.am): Link against -lintl.
28426 2007-10-18 Bruno Haible <bruno@clisp.org>
28428 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
28429 the format string into writable memory. Needed in Fortify conditions.
28431 2007-10-18 Colin Watson <cjwatson@debian.org> (tiny change)
28432 Bruno Haible <bruno@clisp.org>
28434 * lib/trim.c: Include config.h unconditionally. Include trim.h always.
28435 Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
28436 * modules/trim (Depends-on): Add mbchar.
28437 (configure.ac): Add gl_FUNC_MBRTOWC.
28438 (Makefile.am): Augment lib_SOURCES.
28440 2007-10-17 Paul Eggert <eggert@cs.ucla.edu>
28442 Modify glob.c to use fstatat and dirfd, to simplify it.
28443 Suggested by Eric Blake.
28444 * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
28445 Don't include <stdbool.h>; not used.
28446 (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
28447 (link_exists_p): Simplify implementation, since we can now assume
28449 * modules/glob (Depends-on): Add dirfd, openat. Remove stdbool.
28451 2007-10-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28453 * gnulib-tool (func_get_dependencies): Fix sed script to
28456 2007-10-17 Bruno Haible <bruno@clisp.org>
28458 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
28459 allow locale names without encoding suffix.
28460 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
28461 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
28463 2007-10-16 Bruno Haible <bruno@clisp.org>
28465 * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
28466 * lib/getgroups.c (getgroups): Likewise.
28467 * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
28469 2007-10-16 Bruno Haible <bruno@clisp.org>
28471 * modules/absolute-header (License): Change from LGPL to LGPLv2+.
28472 * modules/malloc-posix (License): Likewise.
28473 * modules/realloc-posix (License): Likewise.
28474 * modules/calloc-posix (License): Likewise.
28475 * modules/intprops (License): Change from GPL to LGPL, with
28476 Paul Eggert's approval.
28478 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
28480 Merge glibc changes into lib/glob.c.
28482 * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
28483 2007-10-15 04:59:03 UTC. Here are the changes:
28485 2007-10-14 Ulrich Drepper <drepper@redhat.com>
28487 * lib/glob.c: Reimplement link_exists_p to use fstatat64.
28489 * lib/glob.c: Add some branch prediction throughout.
28491 2007-10-07 Ulrich Drepper <drepper@redhat.com>
28494 * lib/glob.c (glob): Recognize patterns starting \/.
28496 2007-02-14 Jakub Jelinek <jakub@redhat.com>
28499 * lib/glob.c (attribute_hidden): Define if not defined.
28500 (glob): Unescape dirname, filename or username when needed and not
28501 GLOB_NOESCAPE. Handle \/ correctly. Handle GLOB_MARK if filename
28502 is NULL. Handle unescaped [ in pattern without closing ].
28503 Don't pass GLOB_CHECK down to recursive glob for directories.
28504 (__glob_pattern_type): New function.
28505 (__glob_pattern_p): Implement using __glob_pattern_type.
28506 (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
28507 characters and backslashes if not GLOB_NOESCAPE or unterminated [.
28508 Remove unreachable code.
28510 2006-09-30 Ulrich Drepper <drepper@redhat.com>
28512 * lib/glob.c (glob_in_dir): Add some comments and asserts to
28513 explain why there are no leaks.
28515 2006-09-25 Jakub Jelinek <jakub@redhat.com>
28518 * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
28519 time, rather allocate increasingly bigger arrays of pointers, if
28520 possible with alloca, if too large with malloc.
28522 2007-10-16 Paul Eggert <eggert@cs.ucla.edu>
28524 Check for 64-bit int errors in HP-UX 10.20 preprocessor.
28525 Problem reported by H.Merijn Brand in
28526 <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
28527 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
28528 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
28530 2007-10-15 Bruno Haible <bruno@clisp.org>
28532 * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
28533 with explicit rpl_ prefix.
28534 * lib/fopen.c (fopen): Likewise.
28535 * lib/freopen.c (freopen): Likewise.
28536 * lib/iconv.c (iconv): Likewise.
28537 * lib/iconv_close.c (iconv_close): Likewise.
28539 2007-10-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28541 * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
28543 2007-10-15 Bruno Haible <bruno@clisp.org>
28545 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
28546 <stddef.h> instead of <stdlib.h> since we only need NULL.
28547 Reported by Ben Pfaff <blp@cs.stanford.edu>.
28549 2007-10-15 Bruno Haible <bruno@clisp.org>
28551 * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
28552 Replace paragraph talking about LIBOBJS.
28553 Reported by Colin Watson <cjwatson@debian.org>.
28555 2007-10-15 Bruno Haible <bruno@clisp.org>
28557 * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
28558 <stdlib.h> before using NULL.
28560 2007-10-15 Simon Josefsson <simon@josefsson.org>
28562 * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
28563 Reported by Albert Chin <china@thewrittenword.com>.
28565 2007-10-14 Bruno Haible <bruno@clisp.org>
28567 * modules/iconv_open-utf-tests: New file.
28568 * tests/test-iconv-utf.c: New file.
28570 Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
28571 * modules/iconv_open-utf: New file.
28572 * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
28573 (iconv, iconv_close): New declarations.
28574 * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
28576 (iconv_open): Add special handling of conversion between UTF-8 and
28577 UTF-{16,32}{BE,LE}.
28578 * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
28579 * lib/iconv_close.c: New file.
28580 * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
28581 gl_FUNC_ICONV_OPEN.
28582 (gl_FUNC_ICONV_OPEN): Use it.
28583 (gl_FUNC_ICONV_OPEN_UTF): New macro.
28584 * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
28585 and REPLACE_ICONV_UTF.
28586 * modules/iconv_open (Depends-on): Add c-strcase.
28587 (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
28589 * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
28591 2007-10-13 Albert Chin <china@thewrittenword.com>
28592 Bruno Haible <bruno@clisp.org>
28594 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
28595 through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
28597 2007-10-13 Bruno Haible <bruno@clisp.org>
28599 * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
28600 defined, use the ISO C99 inline semantics.
28601 * lib/argp.h (ARGP_EI): Likewise.
28603 2007-10-13 Bruno Haible <bruno@clisp.org>
28605 Handle 'inline' change in gcc 4.3.0.
28606 * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
28607 argp_fmtstream_write, argp_fmtstream_set_lmargin,
28608 argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
28609 argp_fmtstream_point): Disable 'extern' declaration if the function
28610 definition is going to be provided inline.
28611 (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
28612 semantics, not the ISO C99 inline semantics.
28613 * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
28614 'extern' declaration if the function definition is going to be provided
28616 (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
28617 the GNU C inline semantics, not the ISO C99 inline semantics. With
28618 GCC 4.2, avoid a warning.
28620 2007-10-13 Bruno Haible <bruno@clisp.org>
28622 * lib/freading.h (freading): Enable the use of __freading for
28624 * lib/freading.c (freading): Likewise.
28626 2007-10-12 Paul Eggert <eggert@cs.ucla.edu>
28628 * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
28629 "warning: C99 inline functions are not supported; using GNU89".
28631 2007-10-12 Bruno Haible <bruno@clisp.org>
28633 * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
28635 * tests/test-ceilf2.c: New file.
28636 * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
28638 * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
28639 * modules/ceilf-tests: Update.
28641 2007-10-12 Bruno Haible <bruno@clisp.org>
28643 * lib/floor.c (FUNC): Avoid rounding errors for values near a power
28645 * tests/test-floorf2.c: New file.
28646 * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
28648 * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
28649 * modules/floorf-tests: Update.
28651 2007-10-12 Bruno Haible <bruno@clisp.org>
28653 * tests/test-trunc2.c: New file.
28654 * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
28656 * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
28657 * modules/trunc-tests: Update.
28659 2007-10-12 Bruno Haible <bruno@clisp.org>
28661 * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
28663 * tests/test-truncf2.c: New file.
28664 * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
28666 * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
28667 * modules/truncf-tests: Update.
28669 2007-10-11 Eric Blake <ebb9@byu.net>
28671 Don't claim strerror is broken on Interix.
28672 * doc/functions/strerror.texi (strerror): Known broken systems are
28673 now Solaris 8, and not Interix.
28674 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
28675 Interix on cross-compile.
28676 Reported by Martin Koeppe in
28677 http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
28679 2007-10-11 Bruno Haible <bruno@clisp.org>
28681 * modules/i-ring-tests: New file.
28682 * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
28685 2007-10-11 Bruno Haible <bruno@clisp.org>
28687 * modules/filenamecat-tests: New file.
28688 * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
28689 * lib/filenamecat.c: Remove test code.
28691 2007-10-11 Paul Eggert <eggert@cs.ucla.edu>
28693 Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
28695 * lib/strerror.c: Include <string.h> always, to test interface,
28696 and to remove the need for the dummy.
28697 Include intprops.h to compute width instead of doing it ourselves
28698 and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
28699 (strerror): Define it to return NULL if there's no system strerror.
28700 (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
28701 Omit !HAVE_STRERROR code. We don't need to worry about supporting
28702 ancient pre-strerror Unix systems well any more. Saying "unknown
28703 system error" is enough.
28704 * lib/string.in.h (strerror): Simplify the ifdef to reflect the
28705 simpler strerror.c implementation.
28706 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
28707 Simplify the tests to reflect the simpler strerror implementation.
28708 * modules/strerror (Depends-on): Add intprops.
28710 2007-10-09 Eric Blake <ebb9@byu.net>
28712 Silence test-fpending.
28713 * modules/fpending-tests (Files): Add wrapper script.
28714 * tests/test-fpending.sh: New file.
28716 2007-10-09 Bruno Haible <bruno@clisp.org>
28718 * MODULES.html.sh (func_module): Don't create a hyperlink for
28719 function names like 'printf_frexp'.
28720 (Misc): Add crc, memxor.
28721 (Characteristics of floating types): New section.
28722 (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
28723 isnanf-nolibm, signbit, trunc, truncf, truncl.
28724 (Enhancements for ISO C 99 functions): New subsection Input/output.
28725 (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
28726 fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
28727 locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
28728 (Compatibility checks for POSIX:2001 functions): Add clock-time.
28729 (Enhancements for POSIX:2001 functions): Add chdir-long.
28730 (File system functions): Add areadlink, chdir-safer, read-file.
28731 Remove cycle-check.
28732 (File system as inode set): New section.
28733 (Date and time): Add gethrxtime.
28734 (Multithreading): Add openmp.
28735 (Internationalization functions): Add localename.
28736 (Unicode string functions): Add unistr/u*-mbsnlen.
28737 (Support for maintaining and releasing projects): Add git-version-gen.
28738 (Lone files): Remove directories.
28740 2007-10-08 Ben Pfaff <blp@gnu.org>
28742 * lib/xmalloca.h: Fix typo in comment.
28744 2007-10-08 Paul Eggert <eggert@cs.ucla.edu>
28746 * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
28747 when avoiding problems with integer overflow. Use a portable test
28750 2007-10-08 Simon Josefsson <simon@josefsson.org>
28752 * modules/dummy (License): Change to LGPLv2+.
28753 * modules/float (License): Likewise
28754 * modules/realloc (License): Likewise
28755 * modules/stdlib (License): Likewise
28757 2007-10-07 Bruno Haible <bruno@clisp.org>
28759 * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
28760 * floor.c (TWO_MANT_DIG): Likewise.
28761 * ceil.c (TWO_MANT_DIG): Likewise.
28762 Reported by Ben Pfaff.
28764 2007-10-07 Bruno Haible <bruno@clisp.org>
28766 Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
28767 * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
28768 * lib/frexp.c (FUNC): Likewise.
28769 * lib/printf-frexp.h (printf_frexp): Likewise.
28770 * lib/printf-frexpl.h (printf_frexpl): Likewise.
28771 * lib/printf-frexp.c (FUNC): Likewise.
28772 Suggested by Jim Meyering.
28774 2007-10-07 Jim Meyering <meyering@redhat.com>
28776 Make xnanosleep's integer overflow test more robust.
28777 * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
28778 so that gcc-4.3.0 doesn't optimize away this test for overflow.
28780 2007-10-07 Bruno Haible <bruno@clisp.org>
28782 * NEWS: Mention the license change.
28784 * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
28785 abbreviations in the modules files.
28787 Change copyright notice from GPLv2+ to GPLv3+.
28788 * README: Change copyright notice.
28789 * MODULES.html.sh: Likewise.
28790 * build-aux/bootstrap.conf: Likewise.
28791 * build-aux/config.libpath: Likewise.
28792 * build-aux/csharpcomp.sh.in: Likewise.
28793 * build-aux/csharpexec.sh.in: Likewise.
28794 * build-aux/install-reloc: Likewise.
28795 * build-aux/javacomp.sh.in: Likewise.
28796 * build-aux/javaexec.sh.in: Likewise.
28797 * build-aux/ldd.sh.in: Likewise.
28798 * build-aux/reloc-ldflags: Likewise.
28799 * build-aux/relocatable.sh.in: Likewise.
28800 * build-aux/x-to-1.in: Likewise.
28801 * check-module: Likewise.
28802 * config/srclistvars.sh: Likewise.
28803 * gnulib-tool: Likewise.
28804 * lib/acl-internal.h: Likewise.
28805 * lib/acl.c: Likewise.
28806 * lib/acl.h: Likewise.
28807 * lib/acl_entries.c: Likewise.
28808 * lib/areadlink-with-size.c: Likewise.
28809 * lib/areadlink.c: Likewise.
28810 * lib/areadlink.h: Likewise.
28811 * lib/argmatch.c: Likewise.
28812 * lib/argmatch.h: Likewise.
28813 * lib/argp-ba.c: Likewise.
28814 * lib/argp-eexst.c: Likewise.
28815 * lib/argp-fmtstream.c: Likewise.
28816 * lib/argp-fmtstream.h: Likewise.
28817 * lib/argp-fs-xinl.c: Likewise.
28818 * lib/argp-help.c: Likewise.
28819 * lib/argp-namefrob.h: Likewise.
28820 * lib/argp-parse.c: Likewise.
28821 * lib/argp-pin.c: Likewise.
28822 * lib/argp-pv.c: Likewise.
28823 * lib/argp-pvh.c: Likewise.
28824 * lib/argp-xinl.c: Likewise.
28825 * lib/argp.h: Likewise.
28826 * lib/at-func.c: Likewise.
28827 * lib/atanl.c: Likewise.
28828 * lib/backupfile.c: Likewise.
28829 * lib/backupfile.h: Likewise.
28830 * lib/basename.c: Likewise.
28831 * lib/binary-io.h: Likewise.
28832 * lib/byteswap.in.h: Likewise.
28833 * lib/c-stack.c: Likewise.
28834 * lib/c-stack.h: Likewise.
28835 * lib/c-strcasestr.c: Likewise.
28836 * lib/c-strcasestr.h: Likewise.
28837 * lib/c-strstr.c: Likewise.
28838 * lib/c-strstr.h: Likewise.
28839 * lib/c-strtod.c: Likewise.
28840 * lib/calloc.c: Likewise.
28841 * lib/canon-host.c: Likewise.
28842 * lib/canon-host.h: Likewise.
28843 * lib/canonicalize-lgpl.c: Likewise.
28844 * lib/canonicalize.c: Likewise.
28845 * lib/canonicalize.h: Likewise.
28846 * lib/ceil.c: Likewise.
28847 * lib/ceilf.c: Likewise.
28848 * lib/ceill.c: Likewise.
28849 * lib/chdir-long.c: Likewise.
28850 * lib/chdir-long.h: Likewise.
28851 * lib/chdir-safer.c: Likewise.
28852 * lib/chdir-safer.h: Likewise.
28853 * lib/chown.c: Likewise.
28854 * lib/classpath.c: Likewise.
28855 * lib/classpath.h: Likewise.
28856 * lib/clean-temp.c: Likewise.
28857 * lib/clean-temp.h: Likewise.
28858 * lib/cloexec.c: Likewise.
28859 * lib/close-stream.c: Likewise.
28860 * lib/closein.c: Likewise.
28861 * lib/closein.h: Likewise.
28862 * lib/closeout.c: Likewise.
28863 * lib/closeout.h: Likewise.
28864 * lib/concat-filename.c: Likewise.
28865 * lib/copy-file.c: Likewise.
28866 * lib/copy-file.h: Likewise.
28867 * lib/count-one-bits.h: Likewise.
28868 * lib/crc.c: Likewise.
28869 * lib/crc.h: Likewise.
28870 * lib/creat-safer.c: Likewise.
28871 * lib/csharpcomp.c: Likewise.
28872 * lib/csharpcomp.h: Likewise.
28873 * lib/csharpexec.c: Likewise.
28874 * lib/csharpexec.h: Likewise.
28875 * lib/cycle-check.c: Likewise.
28876 * lib/cycle-check.h: Likewise.
28877 * lib/diacrit.c: Likewise.
28878 * lib/diacrit.h: Likewise.
28879 * lib/diffseq.h: Likewise.
28880 * lib/dirchownmod.c: Likewise.
28881 * lib/dirent.in.h: Likewise.
28882 * lib/dirfd.c: Likewise.
28883 * lib/dirfd.h: Likewise.
28884 * lib/dirname.c: Likewise.
28885 * lib/dirname.h: Likewise.
28886 * lib/dummy.c: Likewise.
28887 * lib/dup-safer.c: Likewise.
28888 * lib/dup2.c: Likewise.
28889 * lib/eealloc.h: Likewise.
28890 * lib/error.c: Likewise.
28891 * lib/error.h: Likewise.
28892 * lib/euidaccess.c: Likewise.
28893 * lib/exclude.c: Likewise.
28894 * lib/exclude.h: Likewise.
28895 * lib/execute.c: Likewise.
28896 * lib/execute.h: Likewise.
28897 * lib/exitfail.c: Likewise.
28898 * lib/exitfail.h: Likewise.
28899 * lib/expl.c: Likewise.
28900 * lib/fatal-signal.c: Likewise.
28901 * lib/fatal-signal.h: Likewise.
28902 * lib/fbufmode.c: Likewise.
28903 * lib/fbufmode.h: Likewise.
28904 * lib/fchdir.c: Likewise.
28905 * lib/fchmodat.c: Likewise.
28906 * lib/fchownat.c: Likewise.
28907 * lib/fcntl--.h: Likewise.
28908 * lib/fcntl-safer.h: Likewise.
28909 * lib/fcntl.in.h: Likewise.
28910 * lib/fd-safer.c: Likewise.
28911 * lib/fflush.c: Likewise.
28912 * lib/file-has-acl.c: Likewise.
28913 * lib/file-set.c: Likewise.
28914 * lib/file-type.c: Likewise.
28915 * lib/file-type.h: Likewise.
28916 * lib/fileblocks.c: Likewise.
28917 * lib/filemode.c: Likewise.
28918 * lib/filemode.h: Likewise.
28919 * lib/filename.h: Likewise.
28920 * lib/filenamecat.c: Likewise.
28921 * lib/filenamecat.h: Likewise.
28922 * lib/findprog.c: Likewise.
28923 * lib/findprog.h: Likewise.
28924 * lib/float.in.h: Likewise.
28925 * lib/floor.c: Likewise.
28926 * lib/floorf.c: Likewise.
28927 * lib/floorl.c: Likewise.
28928 * lib/fopen-safer.c: Likewise.
28929 * lib/fopen.c: Likewise.
28930 * lib/fpending.c: Likewise.
28931 * lib/fpending.h: Likewise.
28932 * lib/fprintf.c: Likewise.
28933 * lib/fprintftime.h: Likewise.
28934 * lib/fpucw.h: Likewise.
28935 * lib/fpurge.c: Likewise.
28936 * lib/fpurge.h: Likewise.
28937 * lib/freadable.c: Likewise.
28938 * lib/freadable.h: Likewise.
28939 * lib/freadahead.c: Likewise.
28940 * lib/freadahead.h: Likewise.
28941 * lib/freading.c: Likewise.
28942 * lib/freading.h: Likewise.
28943 * lib/free.c: Likewise.
28944 * lib/freopen.c: Likewise.
28945 * lib/frexp.c: Likewise.
28946 * lib/frexpl.c: Likewise.
28947 * lib/fseek.c: Likewise.
28948 * lib/fseterr.c: Likewise.
28949 * lib/fseterr.h: Likewise.
28950 * lib/fstatat.c: Likewise.
28951 * lib/fstrcmp.c: Likewise.
28952 * lib/fstrcmp.h: Likewise.
28953 * lib/fsusage.c: Likewise.
28954 * lib/fsusage.h: Likewise.
28955 * lib/ftell.c: Likewise.
28956 * lib/ftello.c: Likewise.
28957 * lib/fts-cycle.c: Likewise.
28958 * lib/fts.c: Likewise.
28959 * lib/fts_.h: Likewise.
28960 * lib/full-read.c: Likewise.
28961 * lib/full-read.h: Likewise.
28962 * lib/full-write.c: Likewise.
28963 * lib/full-write.h: Likewise.
28964 * lib/fwritable.c: Likewise.
28965 * lib/fwritable.h: Likewise.
28966 * lib/fwriteerror.c: Likewise.
28967 * lib/fwriteerror.h: Likewise.
28968 * lib/fwriting.c: Likewise.
28969 * lib/fwriting.h: Likewise.
28970 * lib/gcd.c: Likewise.
28971 * lib/gcd.h: Likewise.
28972 * lib/getcwd.c: Likewise.
28973 * lib/getdate.h: Likewise.
28974 * lib/getdate.y: Likewise.
28975 * lib/getdomainname.c: Likewise.
28976 * lib/getdomainname.h: Likewise.
28977 * lib/getgroups.c: Likewise.
28978 * lib/gethostname.c: Likewise.
28979 * lib/gethrxtime.c: Likewise.
28980 * lib/gethrxtime.h: Likewise.
28981 * lib/getloadavg.c: Likewise.
28982 * lib/getndelim2.c: Likewise.
28983 * lib/getndelim2.h: Likewise.
28984 * lib/getnline.c: Likewise.
28985 * lib/getnline.h: Likewise.
28986 * lib/getopt.c: Likewise.
28987 * lib/getopt.in.h: Likewise.
28988 * lib/getopt1.c: Likewise.
28989 * lib/getopt_int.h: Likewise.
28990 * lib/getpagesize.h: Likewise.
28991 * lib/getsubopt.c: Likewise.
28992 * lib/gettime.c: Likewise.
28993 * lib/getugroups.c: Likewise.
28994 * lib/getugroups.h: Likewise.
28995 * lib/getusershell.c: Likewise.
28996 * lib/gl_anyavltree_list1.h: Likewise.
28997 * lib/gl_anyavltree_list2.h: Likewise.
28998 * lib/gl_anyhash_list1.h: Likewise.
28999 * lib/gl_anyhash_list2.h: Likewise.
29000 * lib/gl_anylinked_list1.h: Likewise.
29001 * lib/gl_anylinked_list2.h: Likewise.
29002 * lib/gl_anyrbtree_list1.h: Likewise.
29003 * lib/gl_anyrbtree_list2.h: Likewise.
29004 * lib/gl_anytree_list1.h: Likewise.
29005 * lib/gl_anytree_list2.h: Likewise.
29006 * lib/gl_anytree_oset.h: Likewise.
29007 * lib/gl_anytreehash_list1.h: Likewise.
29008 * lib/gl_anytreehash_list2.h: Likewise.
29009 * lib/gl_array_list.c: Likewise.
29010 * lib/gl_array_list.h: Likewise.
29011 * lib/gl_array_oset.c: Likewise.
29012 * lib/gl_array_oset.h: Likewise.
29013 * lib/gl_avltree_list.c: Likewise.
29014 * lib/gl_avltree_list.h: Likewise.
29015 * lib/gl_avltree_oset.c: Likewise.
29016 * lib/gl_avltree_oset.h: Likewise.
29017 * lib/gl_avltreehash_list.c: Likewise.
29018 * lib/gl_avltreehash_list.h: Likewise.
29019 * lib/gl_carray_list.c: Likewise.
29020 * lib/gl_carray_list.h: Likewise.
29021 * lib/gl_linked_list.c: Likewise.
29022 * lib/gl_linked_list.h: Likewise.
29023 * lib/gl_linkedhash_list.c: Likewise.
29024 * lib/gl_linkedhash_list.h: Likewise.
29025 * lib/gl_list.c: Likewise.
29026 * lib/gl_list.h: Likewise.
29027 * lib/gl_oset.c: Likewise.
29028 * lib/gl_oset.h: Likewise.
29029 * lib/gl_rbtree_list.c: Likewise.
29030 * lib/gl_rbtree_list.h: Likewise.
29031 * lib/gl_rbtree_oset.c: Likewise.
29032 * lib/gl_rbtree_oset.h: Likewise.
29033 * lib/gl_rbtreehash_list.c: Likewise.
29034 * lib/gl_rbtreehash_list.h: Likewise.
29035 * lib/gl_sublist.c: Likewise.
29036 * lib/gl_sublist.h: Likewise.
29037 * lib/group-member.c: Likewise.
29038 * lib/group-member.h: Likewise.
29039 * lib/hard-locale.c: Likewise.
29040 * lib/hard-locale.h: Likewise.
29041 * lib/hash-pjw.c: Likewise.
29042 * lib/hash-pjw.h: Likewise.
29043 * lib/hash-triple.c: Likewise.
29044 * lib/hash.c: Likewise.
29045 * lib/hash.h: Likewise.
29046 * lib/human.c: Likewise.
29047 * lib/human.h: Likewise.
29048 * lib/i-ring.c: Likewise.
29049 * lib/i-ring.h: Likewise.
29050 * lib/idcache.c: Likewise.
29051 * lib/imaxabs.c: Likewise.
29052 * lib/imaxdiv.c: Likewise.
29053 * lib/inet_pton.c: Likewise.
29054 * lib/inet_pton.h: Likewise.
29055 * lib/intprops.h: Likewise.
29056 * lib/inttostr.c: Likewise.
29057 * lib/inttostr.h: Likewise.
29058 * lib/inttypes.in.h: Likewise.
29059 * lib/isapipe.c: Likewise.
29060 * lib/isdir.c: Likewise.
29061 * lib/isnan.c: Likewise.
29062 * lib/isnan.h: Likewise.
29063 * lib/isnanf.c: Likewise.
29064 * lib/isnanf.h: Likewise.
29065 * lib/isnanl-nolibm.h: Likewise.
29066 * lib/isnanl.c: Likewise.
29067 * lib/isnanl.h: Likewise.
29068 * lib/javacomp.c: Likewise.
29069 * lib/javacomp.h: Likewise.
29070 * lib/javaexec.c: Likewise.
29071 * lib/javaexec.h: Likewise.
29072 * lib/javaversion.c: Likewise.
29073 * lib/javaversion.h: Likewise.
29074 * lib/javaversion.java: Likewise.
29075 * lib/lbrkprop.h: Likewise.
29076 * lib/lchmod.h: Likewise.
29077 * lib/lchown.c: Likewise.
29078 * lib/ldexpl.c: Likewise.
29079 * lib/linebreak.c: Likewise.
29080 * lib/linebreak.h: Likewise.
29081 * lib/linebuffer.c: Likewise.
29082 * lib/linebuffer.h: Likewise.
29083 * lib/locale.in.h: Likewise.
29084 * lib/logl.c: Likewise.
29085 * lib/long-options.c: Likewise.
29086 * lib/long-options.h: Likewise.
29087 * lib/lstat.c: Likewise.
29088 * lib/lstat.h: Likewise.
29089 * lib/math.in.h: Likewise.
29090 * lib/mbchar.c: Likewise.
29091 * lib/mbchar.h: Likewise.
29092 * lib/mbfile.h: Likewise.
29093 * lib/mbiter.h: Likewise.
29094 * lib/mbscasecmp.c: Likewise.
29095 * lib/mbscasestr.c: Likewise.
29096 * lib/mbschr.c: Likewise.
29097 * lib/mbscspn.c: Likewise.
29098 * lib/mbslen.c: Likewise.
29099 * lib/mbsncasecmp.c: Likewise.
29100 * lib/mbsnlen.c: Likewise.
29101 * lib/mbspbrk.c: Likewise.
29102 * lib/mbspcasecmp.c: Likewise.
29103 * lib/mbsrchr.c: Likewise.
29104 * lib/mbssep.c: Likewise.
29105 * lib/mbsspn.c: Likewise.
29106 * lib/mbsstr.c: Likewise.
29107 * lib/mbstok_r.c: Likewise.
29108 * lib/mbswidth.c: Likewise.
29109 * lib/mbswidth.h: Likewise.
29110 * lib/mbuiter.h: Likewise.
29111 * lib/memcasecmp.c: Likewise.
29112 * lib/memcasecmp.h: Likewise.
29113 * lib/memchr.c: Likewise.
29114 * lib/memcmp.c: Likewise.
29115 * lib/memcoll.c: Likewise.
29116 * lib/memcoll.h: Likewise.
29117 * lib/memcpy.c: Likewise.
29118 * lib/memrchr.c: Likewise.
29119 * lib/mkancesdirs.c: Likewise.
29120 * lib/mkdir-p.c: Likewise.
29121 * lib/mkdir-p.h: Likewise.
29122 * lib/mkdir.c: Likewise.
29123 * lib/mkdirat.c: Likewise.
29124 * lib/mkdtemp.c: Likewise.
29125 * lib/mkstemp-safer.c: Likewise.
29126 * lib/mkstemp.c: Likewise.
29127 * lib/modechange.c: Likewise.
29128 * lib/modechange.h: Likewise.
29129 * lib/mountlist.c: Likewise.
29130 * lib/mountlist.h: Likewise.
29131 * lib/mpsort.c: Likewise.
29132 * lib/nanosleep.c: Likewise.
29133 * lib/obstack.c: Likewise.
29134 * lib/obstack.h: Likewise.
29135 * lib/open-safer.c: Likewise.
29136 * lib/open.c: Likewise.
29137 * lib/openat-die.c: Likewise.
29138 * lib/openat-priv.h: Likewise.
29139 * lib/openat-proc.c: Likewise.
29140 * lib/openat.c: Likewise.
29141 * lib/openat.h: Likewise.
29142 * lib/pagealign_alloc.c: Likewise.
29143 * lib/pagealign_alloc.h: Likewise.
29144 * lib/physmem.c: Likewise.
29145 * lib/physmem.h: Likewise.
29146 * lib/pipe-safer.c: Likewise.
29147 * lib/pipe.c: Likewise.
29148 * lib/pipe.h: Likewise.
29149 * lib/posixtm.c: Likewise.
29150 * lib/posixtm.h: Likewise.
29151 * lib/posixver.c: Likewise.
29152 * lib/printf-frexp.c: Likewise.
29153 * lib/printf-frexp.h: Likewise.
29154 * lib/printf-frexpl.c: Likewise.
29155 * lib/printf-frexpl.h: Likewise.
29156 * lib/printf.c: Likewise.
29157 * lib/progname.c: Likewise.
29158 * lib/progname.h: Likewise.
29159 * lib/progreloc.c: Likewise.
29160 * lib/putenv.c: Likewise.
29161 * lib/quote.c: Likewise.
29162 * lib/quote.h: Likewise.
29163 * lib/quotearg.c: Likewise.
29164 * lib/quotearg.h: Likewise.
29165 * lib/raise.c: Likewise.
29166 * lib/readline.c: Likewise.
29167 * lib/readline.h: Likewise.
29168 * lib/readlink.c: Likewise.
29169 * lib/readtokens.c: Likewise.
29170 * lib/readtokens.h: Likewise.
29171 * lib/readtokens0.c: Likewise.
29172 * lib/readtokens0.h: Likewise.
29173 * lib/readutmp.c: Likewise.
29174 * lib/readutmp.h: Likewise.
29175 * lib/realloc.c: Likewise.
29176 * lib/relocwrapper.c: Likewise.
29177 * lib/rename-dest-slash.c: Likewise.
29178 * lib/rename.c: Likewise.
29179 * lib/rmdir.c: Likewise.
29180 * lib/rpmatch.c: Likewise.
29181 * lib/safe-read.c: Likewise.
29182 * lib/safe-read.h: Likewise.
29183 * lib/safe-write.c: Likewise.
29184 * lib/safe-write.h: Likewise.
29185 * lib/same-inode.h: Likewise.
29186 * lib/same.c: Likewise.
29187 * lib/same.h: Likewise.
29188 * lib/save-cwd.c: Likewise.
29189 * lib/save-cwd.h: Likewise.
29190 * lib/savedir.c: Likewise.
29191 * lib/savedir.h: Likewise.
29192 * lib/savewd.c: Likewise.
29193 * lib/savewd.h: Likewise.
29194 * lib/search.in.h: Likewise.
29195 * lib/setenv.c: Likewise.
29196 * lib/setenv.h: Likewise.
29197 * lib/settime.c: Likewise.
29198 * lib/sh-quote.c: Likewise.
29199 * lib/sh-quote.h: Likewise.
29200 * lib/sig2str.c: Likewise.
29201 * lib/sig2str.h: Likewise.
29202 * lib/signal.in.h: Likewise.
29203 * lib/signbitd.c: Likewise.
29204 * lib/signbitf.c: Likewise.
29205 * lib/signbitl.c: Likewise.
29206 * lib/sigprocmask.c: Likewise.
29207 * lib/sincosl.c: Likewise.
29208 * lib/sleep.c: Likewise.
29209 * lib/sprintf.c: Likewise.
29210 * lib/sqrtl.c: Likewise.
29211 * lib/stat-time.h: Likewise.
29212 * lib/stdio--.h: Likewise.
29213 * lib/stdio-safer.h: Likewise.
29214 * lib/stdlib--.h: Likewise.
29215 * lib/stdlib-safer.h: Likewise.
29216 * lib/stdlib.in.h: Likewise.
29217 * lib/stpcpy.c: Likewise.
29218 * lib/stpncpy.c: Likewise.
29219 * lib/strchrnul.c: Likewise.
29220 * lib/strcspn.c: Likewise.
29221 * lib/strerror.c: Likewise.
29222 * lib/strftime.c: Likewise.
29223 * lib/strftime.h: Likewise.
29224 * lib/striconveh.c: Likewise.
29225 * lib/striconveh.h: Likewise.
29226 * lib/striconveha.c: Likewise.
29227 * lib/striconveha.h: Likewise.
29228 * lib/stripslash.c: Likewise.
29229 * lib/strnlen1.c: Likewise.
29230 * lib/strnlen1.h: Likewise.
29231 * lib/strtod.c: Likewise.
29232 * lib/strtoimax.c: Likewise.
29233 * lib/strtok_r.c: Likewise.
29234 * lib/strtol.c: Likewise.
29235 * lib/strtoll.c: Likewise.
29236 * lib/strtoul.c: Likewise.
29237 * lib/strtoull.c: Likewise.
29238 * lib/sysexits.in.h: Likewise.
29239 * lib/tempname.c: Likewise.
29240 * lib/tempname.h: Likewise.
29241 * lib/timespec.h: Likewise.
29242 * lib/tls.c: Likewise.
29243 * lib/tls.h: Likewise.
29244 * lib/tmpdir.c: Likewise.
29245 * lib/tmpdir.h: Likewise.
29246 * lib/tmpfile-safer.c: Likewise.
29247 * lib/tmpfile.c: Likewise.
29248 * lib/trigl.c: Likewise.
29249 * lib/trigl.h: Likewise.
29250 * lib/trim.c: Likewise.
29251 * lib/trim.h: Likewise.
29252 * lib/trunc.c: Likewise.
29253 * lib/truncf.c: Likewise.
29254 * lib/truncl.c: Likewise.
29255 * lib/tsearch.c: Likewise.
29256 * lib/unicodeio.c: Likewise.
29257 * lib/unicodeio.h: Likewise.
29258 * lib/unistd--.h: Likewise.
29259 * lib/unistd-safer.h: Likewise.
29260 * lib/unistdio/ulc-fprintf.c: Likewise.
29261 * lib/unistdio/ulc-vfprintf.c: Likewise.
29262 * lib/unlinkdir.c: Likewise.
29263 * lib/unlinkdir.h: Likewise.
29264 * lib/unlocked-io.h: Likewise.
29265 * lib/unsetenv.c: Likewise.
29266 * lib/userspec.c: Likewise.
29267 * lib/utime.c: Likewise.
29268 * lib/utimecmp.c: Likewise.
29269 * lib/utimecmp.h: Likewise.
29270 * lib/utimens.c: Likewise.
29271 * lib/verify.h: Likewise.
29272 * lib/verror.c: Likewise.
29273 * lib/verror.h: Likewise.
29274 * lib/version-etc-fsf.c: Likewise.
29275 * lib/version-etc.c: Likewise.
29276 * lib/version-etc.h: Likewise.
29277 * lib/vfprintf.c: Likewise.
29278 * lib/vprintf.c: Likewise.
29279 * lib/vsprintf.c: Likewise.
29280 * lib/w32spawn.h: Likewise.
29281 * lib/wait-process.c: Likewise.
29282 * lib/wait-process.h: Likewise.
29283 * lib/wcwidth.c: Likewise.
29284 * lib/write-any-file.c: Likewise.
29285 * lib/xalloc-die.c: Likewise.
29286 * lib/xalloc.h: Likewise.
29287 * lib/xasprintf.c: Likewise.
29288 * lib/xgetcwd.c: Likewise.
29289 * lib/xgetcwd.h: Likewise.
29290 * lib/xgetdomainname.c: Likewise.
29291 * lib/xgetdomainname.h: Likewise.
29292 * lib/xgethostname.c: Likewise.
29293 * lib/xmalloc.c: Likewise.
29294 * lib/xmalloca.c: Likewise.
29295 * lib/xmalloca.h: Likewise.
29296 * lib/xmemcoll.c: Likewise.
29297 * lib/xnanosleep.c: Likewise.
29298 * lib/xreadlink.c: Likewise.
29299 * lib/xreadlink.h: Likewise.
29300 * lib/xsetenv.c: Likewise.
29301 * lib/xsetenv.h: Likewise.
29302 * lib/xstriconv.c: Likewise.
29303 * lib/xstriconv.h: Likewise.
29304 * lib/xstrndup.c: Likewise.
29305 * lib/xstrndup.h: Likewise.
29306 * lib/xstrtod.c: Likewise.
29307 * lib/xstrtod.h: Likewise.
29308 * lib/xstrtol-error.c: Likewise.
29309 * lib/xstrtol.c: Likewise.
29310 * lib/xstrtol.h: Likewise.
29311 * lib/xtime.h: Likewise.
29312 * lib/xvasprintf.c: Likewise.
29313 * lib/xvasprintf.h: Likewise.
29314 * lib/yesno.c: Likewise.
29315 * lib/yesno.h: Likewise.
29316 * posix-modules: Likewise.
29317 * tests/test-alloca-opt.c: Likewise.
29318 * tests/test-arcfour.c: Likewise.
29319 * tests/test-arctwo.c: Likewise.
29320 * tests/test-argmatch.c: Likewise.
29321 * tests/test-argp-2.sh: Likewise.
29322 * tests/test-argp.c: Likewise.
29323 * tests/test-arpa_inet.c: Likewise.
29324 * tests/test-array_list.c: Likewise.
29325 * tests/test-array_oset.c: Likewise.
29326 * tests/test-atexit.c: Likewise.
29327 * tests/test-avltree_list.c: Likewise.
29328 * tests/test-avltree_oset.c: Likewise.
29329 * tests/test-avltreehash_list.c: Likewise.
29330 * tests/test-base64.c: Likewise.
29331 * tests/test-binary-io.c: Likewise.
29332 * tests/test-byteswap.c: Likewise.
29333 * tests/test-c-ctype.c: Likewise.
29334 * tests/test-c-strcasecmp.c: Likewise.
29335 * tests/test-c-strcasestr.c: Likewise.
29336 * tests/test-c-strncasecmp.c: Likewise.
29337 * tests/test-c-strstr.c: Likewise.
29338 * tests/test-canonicalize-lgpl.c: Likewise.
29339 * tests/test-canonicalize.c: Likewise.
29340 * tests/test-carray_list.c: Likewise.
29341 * tests/test-ceilf.c: Likewise.
29342 * tests/test-ceill.c: Likewise.
29343 * tests/test-count-one-bits.c: Likewise.
29344 * tests/test-crc.c: Likewise.
29345 * tests/test-dirname.c: Likewise.
29346 * tests/test-fbufmode.c: Likewise.
29347 * tests/test-fcntl.c: Likewise.
29348 * tests/test-fflush.c: Likewise.
29349 * tests/test-floorf.c: Likewise.
29350 * tests/test-floorl.c: Likewise.
29351 * tests/test-fopen.c: Likewise.
29352 * tests/test-fprintf-posix.c: Likewise.
29353 * tests/test-fprintf-posix.h: Likewise.
29354 * tests/test-fpurge.c: Likewise.
29355 * tests/test-freadable.c: Likewise.
29356 * tests/test-freadahead.c: Likewise.
29357 * tests/test-freading.c: Likewise.
29358 * tests/test-freopen.c: Likewise.
29359 * tests/test-frexp.c: Likewise.
29360 * tests/test-frexpl.c: Likewise.
29361 * tests/test-fseek.c: Likewise.
29362 * tests/test-fseeko.c: Likewise.
29363 * tests/test-fseterr.c: Likewise.
29364 * tests/test-fstrcmp.c: Likewise.
29365 * tests/test-ftell.c: Likewise.
29366 * tests/test-ftello.c: Likewise.
29367 * tests/test-fwritable.c: Likewise.
29368 * tests/test-fwriting.c: Likewise.
29369 * tests/test-getaddrinfo.c: Likewise.
29370 * tests/test-getpass.c: Likewise.
29371 * tests/test-gettimeofday.c: Likewise.
29372 * tests/test-hmac-md5.c: Likewise.
29373 * tests/test-hmac-sha1.c: Likewise.
29374 * tests/test-iconv.c: Likewise.
29375 * tests/test-iconvme.c: Likewise.
29376 * tests/test-inttypes.c: Likewise.
29377 * tests/test-isnan.c: Likewise.
29378 * tests/test-isnanf.c: Likewise.
29379 * tests/test-isnanl-nolibm.c: Likewise.
29380 * tests/test-isnanl.c: Likewise.
29381 * tests/test-isnanl.h: Likewise.
29382 * tests/test-ldexpl.c: Likewise.
29383 * tests/test-linked_list.c: Likewise.
29384 * tests/test-linkedhash_list.c: Likewise.
29385 * tests/test-locale.c: Likewise.
29386 * tests/test-localename.c: Likewise.
29387 * tests/test-lock.c: Likewise.
29388 * tests/test-lseek.c: Likewise.
29389 * tests/test-malloca.c: Likewise.
29390 * tests/test-math.c: Likewise.
29391 * tests/test-mbscasecmp.c: Likewise.
29392 * tests/test-mbscasestr1.c: Likewise.
29393 * tests/test-mbscasestr2.c: Likewise.
29394 * tests/test-mbscasestr3.c: Likewise.
29395 * tests/test-mbscasestr4.c: Likewise.
29396 * tests/test-mbschr.c: Likewise.
29397 * tests/test-mbscspn.c: Likewise.
29398 * tests/test-mbsncasecmp.c: Likewise.
29399 * tests/test-mbspbrk.c: Likewise.
29400 * tests/test-mbspcasecmp.c: Likewise.
29401 * tests/test-mbsrchr.c: Likewise.
29402 * tests/test-mbsspn.c: Likewise.
29403 * tests/test-mbsstr1.c: Likewise.
29404 * tests/test-mbsstr2.c: Likewise.
29405 * tests/test-mbsstr3.c: Likewise.
29406 * tests/test-md5.c: Likewise.
29407 * tests/test-memmem.c: Likewise.
29408 * tests/test-netinet_in.c: Likewise.
29409 * tests/test-open.c: Likewise.
29410 * tests/test-printf-frexp.c: Likewise.
29411 * tests/test-printf-frexpl.c: Likewise.
29412 * tests/test-printf-posix.c: Likewise.
29413 * tests/test-printf-posix.h: Likewise.
29414 * tests/test-rbtree_list.c: Likewise.
29415 * tests/test-rbtree_oset.c: Likewise.
29416 * tests/test-rbtreehash_list.c: Likewise.
29417 * tests/test-read-file.c: Likewise.
29418 * tests/test-rijndael.c: Likewise.
29419 * tests/test-search.c: Likewise.
29420 * tests/test-signbit.c: Likewise.
29421 * tests/test-sleep.c: Likewise.
29422 * tests/test-snprintf-posix.c: Likewise.
29423 * tests/test-snprintf-posix.h: Likewise.
29424 * tests/test-snprintf.c: Likewise.
29425 * tests/test-sprintf-posix.c: Likewise.
29426 * tests/test-sprintf-posix.h: Likewise.
29427 * tests/test-stat-time.c: Likewise.
29428 * tests/test-stdbool.c: Likewise.
29429 * tests/test-stdint.c: Likewise.
29430 * tests/test-stdio.c: Likewise.
29431 * tests/test-stdlib.c: Likewise.
29432 * tests/test-stpncpy.c: Likewise.
29433 * tests/test-strcasestr.c: Likewise.
29434 * tests/test-striconv.c: Likewise.
29435 * tests/test-striconveh.c: Likewise.
29436 * tests/test-striconveha.c: Likewise.
29437 * tests/test-string.c: Likewise.
29438 * tests/test-sys_select.c: Likewise.
29439 * tests/test-sys_socket.c: Likewise.
29440 * tests/test-sys_stat.c: Likewise.
29441 * tests/test-sys_time.c: Likewise.
29442 * tests/test-sysexits.c: Likewise.
29443 * tests/test-time.c: Likewise.
29444 * tests/test-tls.c: Likewise.
29445 * tests/test-trunc.c: Likewise.
29446 * tests/test-truncf.c: Likewise.
29447 * tests/test-truncl.c: Likewise.
29448 * tests/test-unistd.c: Likewise.
29449 * tests/test-vasnprintf-posix.c: Likewise.
29450 * tests/test-vasnprintf-posix2.c: Likewise.
29451 * tests/test-vasnprintf.c: Likewise.
29452 * tests/test-vasprintf-posix.c: Likewise.
29453 * tests/test-vasprintf.c: Likewise.
29454 * tests/test-verify.c: Likewise.
29455 * tests/test-vfprintf-posix.c: Likewise.
29456 * tests/test-vprintf-posix.c: Likewise.
29457 * tests/test-vsnprintf-posix.c: Likewise.
29458 * tests/test-vsnprintf.c: Likewise.
29459 * tests/test-vsprintf-posix.c: Likewise.
29460 * tests/test-wchar.c: Likewise.
29461 * tests/test-wctype.c: Likewise.
29462 * tests/test-wcwidth.c: Likewise.
29463 * tests/test-xstrtol.c: Likewise.
29464 * tests/test-xvasprintf.c: Likewise.
29465 * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
29466 * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
29467 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
29468 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
29469 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
29470 * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
29471 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
29472 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
29473 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
29474 * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
29475 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
29476 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
29477 * tests/uniname/test-uninames.c: Likewise.
29478 * tests/unistdio/test-u16-asnprintf1.c: Likewise.
29479 * tests/unistdio/test-u16-asnprintf1.h: Likewise.
29480 * tests/unistdio/test-u16-printf1.h: Likewise.
29481 * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
29482 * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
29483 * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
29484 * tests/unistdio/test-u16-vasprintf1.c: Likewise.
29485 * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
29486 * tests/unistdio/test-u16-vsprintf1.c: Likewise.
29487 * tests/unistdio/test-u32-asnprintf1.c: Likewise.
29488 * tests/unistdio/test-u32-asnprintf1.h: Likewise.
29489 * tests/unistdio/test-u32-printf1.h: Likewise.
29490 * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
29491 * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
29492 * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
29493 * tests/unistdio/test-u32-vasprintf1.c: Likewise.
29494 * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
29495 * tests/unistdio/test-u32-vsprintf1.c: Likewise.
29496 * tests/unistdio/test-u8-asnprintf1.c: Likewise.
29497 * tests/unistdio/test-u8-asnprintf1.h: Likewise.
29498 * tests/unistdio/test-u8-printf1.h: Likewise.
29499 * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
29500 * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
29501 * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
29502 * tests/unistdio/test-u8-vasprintf1.c: Likewise.
29503 * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
29504 * tests/unistdio/test-u8-vsprintf1.c: Likewise.
29505 * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
29506 * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
29507 * tests/unistdio/test-ulc-printf1.h: Likewise.
29508 * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
29509 * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
29510 * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
29511 * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
29512 * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
29513 * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
29514 * tests/uniwidth/test-u16-strwidth.c: Likewise.
29515 * tests/uniwidth/test-u16-width.c: Likewise.
29516 * tests/uniwidth/test-u32-strwidth.c: Likewise.
29517 * tests/uniwidth/test-u32-width.c: Likewise.
29518 * tests/uniwidth/test-u8-strwidth.c: Likewise.
29519 * tests/uniwidth/test-u8-width.c: Likewise.
29520 * tests/uniwidth/test-uc_width.c: Likewise.
29521 * config/srclist-update: Likewise.
29522 (fixlicense): Update to GPLv3+.
29524 Change copyright notice from LGPLv2.1+ to LGPLv3+.
29525 * tests/test-tsearch.c: Change copyright notice.
29527 Change copyright notice from LGPLv2.0+ to LGPLv3+.
29528 * lib/c-strcaseeq.h: Change copyright notice.
29529 * lib/streq.h: Likewise.
29530 * lib/uniconv.h: Likewise.
29531 * lib/uniconv/u-conv-from-enc.h: Likewise.
29532 * lib/uniconv/u-conv-to-enc.h: Likewise.
29533 * lib/uniconv/u-strconv-from-enc.h: Likewise.
29534 * lib/uniconv/u-strconv-to-enc.h: Likewise.
29535 * lib/uniconv/u16-conv-from-enc.c: Likewise.
29536 * lib/uniconv/u16-conv-to-enc.c: Likewise.
29537 * lib/uniconv/u16-strconv-from-enc.c: Likewise.
29538 * lib/uniconv/u16-strconv-from-locale.c: Likewise.
29539 * lib/uniconv/u16-strconv-to-enc.c: Likewise.
29540 * lib/uniconv/u16-strconv-to-locale.c: Likewise.
29541 * lib/uniconv/u32-conv-from-enc.c: Likewise.
29542 * lib/uniconv/u32-conv-to-enc.c: Likewise.
29543 * lib/uniconv/u32-strconv-from-enc.c: Likewise.
29544 * lib/uniconv/u32-strconv-from-locale.c: Likewise.
29545 * lib/uniconv/u32-strconv-to-enc.c: Likewise.
29546 * lib/uniconv/u32-strconv-to-locale.c: Likewise.
29547 * lib/uniconv/u8-conv-from-enc.c: Likewise.
29548 * lib/uniconv/u8-conv-to-enc.c: Likewise.
29549 * lib/uniconv/u8-strconv-from-enc.c: Likewise.
29550 * lib/uniconv/u8-strconv-from-locale.c: Likewise.
29551 * lib/uniconv/u8-strconv-to-enc.c: Likewise.
29552 * lib/uniconv/u8-strconv-to-locale.c: Likewise.
29553 * lib/uniname.h: Likewise.
29554 * lib/uniname/uniname.c: Likewise.
29555 * lib/unistdio.h: Likewise.
29556 * lib/unistdio/u-asnprintf.h: Likewise.
29557 * lib/unistdio/u-asprintf.h: Likewise.
29558 * lib/unistdio/u-printf-args.c: Likewise.
29559 * lib/unistdio/u-printf-args.h: Likewise.
29560 * lib/unistdio/u-printf-parse.h: Likewise.
29561 * lib/unistdio/u-snprintf.h: Likewise.
29562 * lib/unistdio/u-sprintf.h: Likewise.
29563 * lib/unistdio/u-vasprintf.h: Likewise.
29564 * lib/unistdio/u-vsnprintf.h: Likewise.
29565 * lib/unistdio/u-vsprintf.h: Likewise.
29566 * lib/unistdio/u16-asnprintf.c: Likewise.
29567 * lib/unistdio/u16-asprintf.c: Likewise.
29568 * lib/unistdio/u16-printf-parse.c: Likewise.
29569 * lib/unistdio/u16-snprintf.c: Likewise.
29570 * lib/unistdio/u16-sprintf.c: Likewise.
29571 * lib/unistdio/u16-u16-asnprintf.c: Likewise.
29572 * lib/unistdio/u16-u16-asprintf.c: Likewise.
29573 * lib/unistdio/u16-u16-snprintf.c: Likewise.
29574 * lib/unistdio/u16-u16-sprintf.c: Likewise.
29575 * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
29576 * lib/unistdio/u16-u16-vasprintf.c: Likewise.
29577 * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
29578 * lib/unistdio/u16-u16-vsprintf.c: Likewise.
29579 * lib/unistdio/u16-vasnprintf.c: Likewise.
29580 * lib/unistdio/u16-vasprintf.c: Likewise.
29581 * lib/unistdio/u16-vsnprintf.c: Likewise.
29582 * lib/unistdio/u16-vsprintf.c: Likewise.
29583 * lib/unistdio/u32-asnprintf.c: Likewise.
29584 * lib/unistdio/u32-asprintf.c: Likewise.
29585 * lib/unistdio/u32-printf-parse.c: Likewise.
29586 * lib/unistdio/u32-snprintf.c: Likewise.
29587 * lib/unistdio/u32-sprintf.c: Likewise.
29588 * lib/unistdio/u32-u32-asnprintf.c: Likewise.
29589 * lib/unistdio/u32-u32-asprintf.c: Likewise.
29590 * lib/unistdio/u32-u32-snprintf.c: Likewise.
29591 * lib/unistdio/u32-u32-sprintf.c: Likewise.
29592 * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
29593 * lib/unistdio/u32-u32-vasprintf.c: Likewise.
29594 * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
29595 * lib/unistdio/u32-u32-vsprintf.c: Likewise.
29596 * lib/unistdio/u32-vasnprintf.c: Likewise.
29597 * lib/unistdio/u32-vasprintf.c: Likewise.
29598 * lib/unistdio/u32-vsnprintf.c: Likewise.
29599 * lib/unistdio/u32-vsprintf.c: Likewise.
29600 * lib/unistdio/u8-asnprintf.c: Likewise.
29601 * lib/unistdio/u8-asprintf.c: Likewise.
29602 * lib/unistdio/u8-printf-parse.c: Likewise.
29603 * lib/unistdio/u8-snprintf.c: Likewise.
29604 * lib/unistdio/u8-sprintf.c: Likewise.
29605 * lib/unistdio/u8-u8-asnprintf.c: Likewise.
29606 * lib/unistdio/u8-u8-asprintf.c: Likewise.
29607 * lib/unistdio/u8-u8-snprintf.c: Likewise.
29608 * lib/unistdio/u8-u8-sprintf.c: Likewise.
29609 * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
29610 * lib/unistdio/u8-u8-vasprintf.c: Likewise.
29611 * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
29612 * lib/unistdio/u8-u8-vsprintf.c: Likewise.
29613 * lib/unistdio/u8-vasnprintf.c: Likewise.
29614 * lib/unistdio/u8-vasprintf.c: Likewise.
29615 * lib/unistdio/u8-vsnprintf.c: Likewise.
29616 * lib/unistdio/u8-vsprintf.c: Likewise.
29617 * lib/unistdio/ulc-asnprintf.c: Likewise.
29618 * lib/unistdio/ulc-asprintf.c: Likewise.
29619 * lib/unistdio/ulc-printf-parse.c: Likewise.
29620 * lib/unistdio/ulc-snprintf.c: Likewise.
29621 * lib/unistdio/ulc-sprintf.c: Likewise.
29622 * lib/unistdio/ulc-vasnprintf.c: Likewise.
29623 * lib/unistdio/ulc-vasprintf.c: Likewise.
29624 * lib/unistdio/ulc-vsnprintf.c: Likewise.
29625 * lib/unistdio/ulc-vsprintf.c: Likewise.
29626 * lib/unistr.h: Likewise.
29627 * lib/unistr/u-cpy-alloc.h: Likewise.
29628 * lib/unistr/u-cpy.h: Likewise.
29629 * lib/unistr/u-endswith.h: Likewise.
29630 * lib/unistr/u-move.h: Likewise.
29631 * lib/unistr/u-set.h: Likewise.
29632 * lib/unistr/u-startswith.h: Likewise.
29633 * lib/unistr/u-stpcpy.h: Likewise.
29634 * lib/unistr/u-stpncpy.h: Likewise.
29635 * lib/unistr/u-strcat.h: Likewise.
29636 * lib/unistr/u-strcpy.h: Likewise.
29637 * lib/unistr/u-strcspn.h: Likewise.
29638 * lib/unistr/u-strdup.h: Likewise.
29639 * lib/unistr/u-strlen.h: Likewise.
29640 * lib/unistr/u-strncat.h: Likewise.
29641 * lib/unistr/u-strncpy.h: Likewise.
29642 * lib/unistr/u-strnlen.h: Likewise.
29643 * lib/unistr/u-strpbrk.h: Likewise.
29644 * lib/unistr/u-strspn.h: Likewise.
29645 * lib/unistr/u-strstr.h: Likewise.
29646 * lib/unistr/u-strtok.h: Likewise.
29647 * lib/unistr/u16-check.c: Likewise.
29648 * lib/unistr/u16-chr.c: Likewise.
29649 * lib/unistr/u16-cmp.c: Likewise.
29650 * lib/unistr/u16-cpy-alloc.c: Likewise.
29651 * lib/unistr/u16-cpy.c: Likewise.
29652 * lib/unistr/u16-endswith.c: Likewise.
29653 * lib/unistr/u16-mblen.c: Likewise.
29654 * lib/unistr/u16-mbsnlen.c: Likewise.
29655 * lib/unistr/u16-mbtouc-aux.c: Likewise.
29656 * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
29657 * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
29658 * lib/unistr/u16-mbtouc.c: Likewise.
29659 * lib/unistr/u16-mbtoucr.c: Likewise.
29660 * lib/unistr/u16-move.c: Likewise.
29661 * lib/unistr/u16-next.c: Likewise.
29662 * lib/unistr/u16-prev.c: Likewise.
29663 * lib/unistr/u16-set.c: Likewise.
29664 * lib/unistr/u16-startswith.c: Likewise.
29665 * lib/unistr/u16-stpcpy.c: Likewise.
29666 * lib/unistr/u16-stpncpy.c: Likewise.
29667 * lib/unistr/u16-strcat.c: Likewise.
29668 * lib/unistr/u16-strchr.c: Likewise.
29669 * lib/unistr/u16-strcmp.c: Likewise.
29670 * lib/unistr/u16-strcpy.c: Likewise.
29671 * lib/unistr/u16-strcspn.c: Likewise.
29672 * lib/unistr/u16-strdup.c: Likewise.
29673 * lib/unistr/u16-strlen.c: Likewise.
29674 * lib/unistr/u16-strmblen.c: Likewise.
29675 * lib/unistr/u16-strmbtouc.c: Likewise.
29676 * lib/unistr/u16-strncat.c: Likewise.
29677 * lib/unistr/u16-strncmp.c: Likewise.
29678 * lib/unistr/u16-strncpy.c: Likewise.
29679 * lib/unistr/u16-strnlen.c: Likewise.
29680 * lib/unistr/u16-strpbrk.c: Likewise.
29681 * lib/unistr/u16-strrchr.c: Likewise.
29682 * lib/unistr/u16-strspn.c: Likewise.
29683 * lib/unistr/u16-strstr.c: Likewise.
29684 * lib/unistr/u16-strtok.c: Likewise.
29685 * lib/unistr/u16-to-u32.c: Likewise.
29686 * lib/unistr/u16-to-u8.c: Likewise.
29687 * lib/unistr/u16-uctomb-aux.c: Likewise.
29688 * lib/unistr/u16-uctomb.c: Likewise.
29689 * lib/unistr/u32-check.c: Likewise.
29690 * lib/unistr/u32-chr.c: Likewise.
29691 * lib/unistr/u32-cmp.c: Likewise.
29692 * lib/unistr/u32-cpy-alloc.c: Likewise.
29693 * lib/unistr/u32-cpy.c: Likewise.
29694 * lib/unistr/u32-endswith.c: Likewise.
29695 * lib/unistr/u32-mblen.c: Likewise.
29696 * lib/unistr/u32-mbsnlen.c: Likewise.
29697 * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
29698 * lib/unistr/u32-mbtouc.c: Likewise.
29699 * lib/unistr/u32-mbtoucr.c: Likewise.
29700 * lib/unistr/u32-move.c: Likewise.
29701 * lib/unistr/u32-next.c: Likewise.
29702 * lib/unistr/u32-prev.c: Likewise.
29703 * lib/unistr/u32-set.c: Likewise.
29704 * lib/unistr/u32-startswith.c: Likewise.
29705 * lib/unistr/u32-stpcpy.c: Likewise.
29706 * lib/unistr/u32-stpncpy.c: Likewise.
29707 * lib/unistr/u32-strcat.c: Likewise.
29708 * lib/unistr/u32-strchr.c: Likewise.
29709 * lib/unistr/u32-strcmp.c: Likewise.
29710 * lib/unistr/u32-strcpy.c: Likewise.
29711 * lib/unistr/u32-strcspn.c: Likewise.
29712 * lib/unistr/u32-strdup.c: Likewise.
29713 * lib/unistr/u32-strlen.c: Likewise.
29714 * lib/unistr/u32-strmblen.c: Likewise.
29715 * lib/unistr/u32-strmbtouc.c: Likewise.
29716 * lib/unistr/u32-strncat.c: Likewise.
29717 * lib/unistr/u32-strncmp.c: Likewise.
29718 * lib/unistr/u32-strncpy.c: Likewise.
29719 * lib/unistr/u32-strnlen.c: Likewise.
29720 * lib/unistr/u32-strpbrk.c: Likewise.
29721 * lib/unistr/u32-strrchr.c: Likewise.
29722 * lib/unistr/u32-strspn.c: Likewise.
29723 * lib/unistr/u32-strstr.c: Likewise.
29724 * lib/unistr/u32-strtok.c: Likewise.
29725 * lib/unistr/u32-to-u16.c: Likewise.
29726 * lib/unistr/u32-to-u8.c: Likewise.
29727 * lib/unistr/u32-uctomb.c: Likewise.
29728 * lib/unistr/u8-check.c: Likewise.
29729 * lib/unistr/u8-chr.c: Likewise.
29730 * lib/unistr/u8-cmp.c: Likewise.
29731 * lib/unistr/u8-cpy-alloc.c: Likewise.
29732 * lib/unistr/u8-cpy.c: Likewise.
29733 * lib/unistr/u8-endswith.c: Likewise.
29734 * lib/unistr/u8-mblen.c: Likewise.
29735 * lib/unistr/u8-mbsnlen.c: Likewise.
29736 * lib/unistr/u8-mbtouc-aux.c: Likewise.
29737 * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
29738 * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
29739 * lib/unistr/u8-mbtouc.c: Likewise.
29740 * lib/unistr/u8-mbtoucr.c: Likewise.
29741 * lib/unistr/u8-move.c: Likewise.
29742 * lib/unistr/u8-next.c: Likewise.
29743 * lib/unistr/u8-prev.c: Likewise.
29744 * lib/unistr/u8-set.c: Likewise.
29745 * lib/unistr/u8-startswith.c: Likewise.
29746 * lib/unistr/u8-stpcpy.c: Likewise.
29747 * lib/unistr/u8-stpncpy.c: Likewise.
29748 * lib/unistr/u8-strcat.c: Likewise.
29749 * lib/unistr/u8-strchr.c: Likewise.
29750 * lib/unistr/u8-strcmp.c: Likewise.
29751 * lib/unistr/u8-strcpy.c: Likewise.
29752 * lib/unistr/u8-strcspn.c: Likewise.
29753 * lib/unistr/u8-strdup.c: Likewise.
29754 * lib/unistr/u8-strlen.c: Likewise.
29755 * lib/unistr/u8-strmblen.c: Likewise.
29756 * lib/unistr/u8-strmbtouc.c: Likewise.
29757 * lib/unistr/u8-strncat.c: Likewise.
29758 * lib/unistr/u8-strncmp.c: Likewise.
29759 * lib/unistr/u8-strncpy.c: Likewise.
29760 * lib/unistr/u8-strnlen.c: Likewise.
29761 * lib/unistr/u8-strpbrk.c: Likewise.
29762 * lib/unistr/u8-strrchr.c: Likewise.
29763 * lib/unistr/u8-strspn.c: Likewise.
29764 * lib/unistr/u8-strstr.c: Likewise.
29765 * lib/unistr/u8-strtok.c: Likewise.
29766 * lib/unistr/u8-to-u16.c: Likewise.
29767 * lib/unistr/u8-to-u32.c: Likewise.
29768 * lib/unistr/u8-uctomb-aux.c: Likewise.
29769 * lib/unistr/u8-uctomb.c: Likewise.
29770 * lib/unitypes.h: Likewise.
29771 * lib/uniwidth.h: Likewise.
29772 * lib/uniwidth/cjk.h: Likewise.
29773 * lib/uniwidth/u16-strwidth.c: Likewise.
29774 * lib/uniwidth/u16-width.c: Likewise.
29775 * lib/uniwidth/u32-strwidth.c: Likewise.
29776 * lib/uniwidth/u32-width.c: Likewise.
29777 * lib/uniwidth/u8-strwidth.c: Likewise.
29778 * lib/uniwidth/u8-width.c: Likewise.
29779 * lib/uniwidth/width.c: Likewise.
29781 2007-10-07 Bruno Haible <bruno@clisp.org>
29783 * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
29784 The file is still under LGPL (see modules/inttypes).
29786 2007-10-06 Bruno Haible <bruno@clisp.org>
29788 * modules/trunc (Dependencies): Add 'extensions'.
29789 * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
29790 Reported by Ben Pfaff <blp@gnu.org>.
29792 2007-10-06 Bruno Haible <bruno@clisp.org>
29794 * modules/freopen-tests: New file.
29795 * tests/test-freopen.c: New file.
29797 * modules/fopen-tests: New file.
29798 * tests/test-fopen.c: New file.
29800 * modules/fopen: New file.
29801 * lib/fopen.c: New file.
29802 * m4/fopen.m4: New file.
29803 * modules/freopen: New file.
29804 * lib/freopen.c: New file.
29805 * m4/freopen.m4: New file.
29806 * lib/stdio.in.h (fopen, freopen): New declarations.
29807 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
29808 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29809 * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
29810 GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
29811 * doc/functions/fopen.texi: Mention the 'fopen' module.
29812 * doc/functions/freopen.texi: Mention the 'freopen' module.
29814 2007-10-06 Bruno Haible <bruno@clisp.org>
29816 * modules/open-tests: New file.
29817 * tests/test-open.c: New file.
29819 * modules/open: New file.
29820 * lib/open.c: New file.
29821 * m4/open.m4: New file.
29822 * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
29824 * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
29825 * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
29827 (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
29828 * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
29830 * doc/functions/open.texi: Mention the 'open' module.
29832 2007-10-04 Bruno Haible <bruno@clisp.org>
29834 * modules/ceill-tests: New file.
29835 * tests/test-ceill.c: New file.
29837 * modules/ceill: New file.
29838 * lib/ceill.c: Replace entire file.
29839 * m4/ceill.m4: New file.
29840 * lib/math.in.h (ceill): Replace declaration.
29841 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
29842 * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
29843 * doc/functions/ceill.texi: Mention the 'ceill' module.
29844 * modules/mathl (Files): Remove lib/ceill.c.
29845 (Depends-on): Add ceill.
29847 2007-10-04 Bruno Haible <bruno@clisp.org>
29849 * modules/ceilf-tests: New file.
29850 * tests/test-ceilf.c: New file.
29852 * modules/ceilf: New file.
29853 * lib/ceil.c: New file.
29854 * lib/ceilf.c: New file.
29855 * m4/ceilf.m4: New file.
29856 * lib/math.in.h (ceilf): New declaration.
29857 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
29859 * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
29861 * doc/functions/ceilf.texi: Mention the 'ceilf' module.
29863 2007-10-04 Bruno Haible <bruno@clisp.org>
29865 * modules/floorl-tests: New file.
29866 * tests/test-floorl.c: New file.
29868 * modules/floorl: New file.
29869 * lib/floorl.c: Replace entire file.
29870 * m4/floorl.m4: New file.
29871 * lib/math.in.h (floorl): Replace declaration.
29872 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
29873 * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
29874 * doc/functions/floorl.texi: Mention the 'floorl' module.
29875 * modules/mathl (Files): Remove lib/floorl.c.
29876 (Depends-on): Add floorl.
29878 2007-10-04 Bruno Haible <bruno@clisp.org>
29880 * modules/floorf-tests: New file.
29881 * tests/test-floorf.c: New file.
29883 * modules/floorf: New file.
29884 * lib/floor.c: New file.
29885 * lib/floorf.c: New file.
29886 * m4/floorf.m4: New file.
29887 * lib/math.in.h (floorf): New declaration.
29888 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
29890 * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
29892 * doc/functions/floorf.texi: Mention the 'floorf' module.
29894 2007-10-04 Benoit Sigoure <tsuna@lrde.epita.fr>
29895 Bruno Haible <bruno@clisp.org>
29897 Advertise for the Git server instead of the CVS server.
29898 * doc/gnulib-intro.texi (Steady Development): Mention the Git
29899 repository instead of the CVS one.
29900 * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
29901 about all VCS systems generically.
29902 * doc/gnulib.texi (Introduction): Capitalize `Git'.
29904 2007-10-04 Bruno Haible <bruno@clisp.org>
29906 * doc/gnulib.texi (Function Substitutes): Explain what an absent module
29908 Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
29910 2007-10-04 Bruno Haible <bruno@clisp.org>
29912 * modules/truncl-tests: New file.
29913 * tests/test-truncl.c: New file.
29915 * modules/truncl: New file.
29916 * lib/truncl.c: New file.
29917 * m4/truncl.m4: New file.
29918 * lib/math.in.h (truncl): New declaration.
29919 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
29921 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
29923 * doc/functions/truncl.texi: Mention the 'truncl' module.
29925 2007-10-04 Bruno Haible <bruno@clisp.org>
29927 * modules/truncf-tests: New file.
29928 * tests/test-truncf.c: New file.
29930 * modules/truncf: New file.
29931 * lib/trunc.c: Make paramerizable through USE_* macros.
29932 * lib/truncf.c: New file.
29933 * m4/truncf.m4: New file.
29934 * lib/math.in.h (truncf): New declaration.
29935 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
29937 * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
29939 * doc/functions/truncf.texi: Mention the 'truncf' module.
29941 2007-10-03 Bruno Haible <bruno@clisp.org>
29943 * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
29944 augmentation also for tests modules.
29945 * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
29946 * modules/atexit-tests (Makefile.am): Likewise.
29947 * modules/binary-io-tests (Makefile.am): Likewise.
29948 * modules/c-strcase-tests (Makefile.am): Likewise.
29949 * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
29950 * modules/canonicalize-tests (Makefile.am): Likewise.
29951 * modules/closein-tests (Makefile.am): Likewise.
29952 * modules/fprintf-posix-tests (Makefile.am): Likewise.
29953 * modules/freadahead-tests (Makefile.am): Likewise.
29954 * modules/fseek-tests (Makefile.am): Likewise.
29955 * modules/fseeko-tests (Makefile.am): Likewise.
29956 * modules/ftell-tests (Makefile.am): Likewise.
29957 * modules/ftello-tests (Makefile.am): Likewise.
29958 * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
29959 * modules/isnanl-tests (Makefile.am): Likewise.
29960 * modules/lseek-tests (Makefile.am): Likewise.
29961 * modules/mbscasecmp-tests (Makefile.am): Likewise.
29962 * modules/mbscasestr-tests (Makefile.am): Likewise.
29963 * modules/mbschr-tests (Makefile.am): Likewise.
29964 * modules/mbscspn-tests (Makefile.am): Likewise.
29965 * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29966 * modules/mbspbrk-tests (Makefile.am): Likewise.
29967 * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29968 * modules/mbsrchr-tests (Makefile.am): Likewise.
29969 * modules/mbsspn-tests (Makefile.am): Likewise.
29970 * modules/mbsstr-tests (Makefile.am): Likewise.
29971 * modules/printf-posix-tests (Makefile.am): Likewise.
29972 * modules/snprintf-posix-tests (Makefile.am): Likewise.
29973 * modules/sprintf-posix-tests (Makefile.am): Likewise.
29974 * modules/tsearch-tests (Makefile.am): Likewise.
29975 * modules/uniname/uniname-tests (Makefile.am): Likewise.
29976 * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29977 * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29978 * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29979 * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29980 * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29981 * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29982 * modules/vprintf-posix-tests (Makefile.am): Likewise.
29983 * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
29984 * modules/vsprintf-posix-tests (Makefile.am): Likewise.
29985 * modules/xstrtoimax-tests (Makefile.am): Likewise.
29986 * modules/xstrtol-tests (Makefile.am): Likewise.
29987 * modules/xstrtoumax-tests (Makefile.am): Likewise.
29988 * modules/yesno-tests (Makefile.am): Likewise.
29990 2007-10-03 Bruno Haible <bruno@clisp.org>
29992 * modules/trunc-tests: New file.
29993 * tests/test-trunc.c: New file.
29995 * modules/trunc: New file.
29996 * lib/trunc.c: New file.
29997 * m4/trunc.m4: New file.
29998 * lib/math.in.h (trunc): New declaration.
29999 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
30001 * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
30003 * doc/functions/trunc.texi: Mention the 'trunc' module.
30005 2007-10-03 Bruno Haible <bruno@clisp.org>
30007 * tests/test-fpending.c: New file, mostly copied
30008 from coreutils/lib/t-fpending.c.
30009 * modules/fpending-tests: New file.
30011 2007-10-03 Bruno Haible <bruno@clisp.org>
30013 Port the stdio extensions to QNX (untested).
30014 * lib/fseterr.c (fseterr): Add support for QNX.
30015 * lib/fbufmode.c (fbufmode): Likewise.
30016 * lib/freadable.c (freadable): Likewise.
30017 * lib/fwritable.c (fwritable): Likewise.
30018 * lib/freading.c (freading): Likewise.
30019 * lib/fwriting.c (fwriting): Likewise.
30020 * lib/freadahead.c (freadahed): Likewise.
30021 * lib/fpurge.c (fpurge): Likewise.
30022 * lib/fseeko.c (rpl_fseeko): Likewise.
30024 2007-10-03 Bruno Haible <bruno@clisp.org>
30025 Jim Meyering <jim@meyering.net>
30026 Eric Blake <ebb9@byu.net>
30028 * doc/relocatable.texi: Use @command instead of @program.
30030 2007-10-02 Jim Meyering <jim@meyering.net>
30032 Perform one more "_.h" -> ".in.h" substitution.
30033 * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
30034 instead of unistd_.h here, too.
30036 2007-10-01 Bruno Haible <bruno@clisp.org>
30038 * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
30039 Needed for the alloca-opt module.
30041 2007-09-30 Bruno Haible <bruno@clisp.org>
30043 * lib/alloca.in.h: Renamed from lib/alloca_.h.
30044 * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
30046 * lib/argz.in.h: Renamed from lib/argz_.h.
30047 * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
30048 * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
30049 * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
30051 * lib/dirent.in.h: Renamed from lib/dirent_.h.
30052 * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
30054 * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
30055 * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
30057 * lib/float.in.h: Renamed from lib/float_.h.
30058 * modules/float (Files, Makefile.am): Use float.in.h instead of
30060 * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
30061 * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
30063 * lib/getopt.in.h: Renamed from lib/getopt_.h.
30064 * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
30066 * lib/glob.in.h: Renamed from lib/glob_.h.
30067 * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
30068 * lib/iconv.in.h: Renamed from lib/iconv_.h.
30069 * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
30071 * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
30072 * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
30074 * lib/locale.in.h: Renamed from lib/locale_.h.
30075 * modules/locale (Files, Makefile.am): Use locale.in.h instead of
30077 * lib/math.in.h: Renamed from lib/math_.h.
30078 * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
30079 * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
30080 * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
30081 of netinet_in_.h. Add dependency.
30082 * lib/poll.in.h: Renamed from lib/poll_.h.
30083 * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
30084 * lib/search.in.h: Renamed from lib/search_.h.
30085 * modules/search (Files, Makefile.am): Use search.in.h instead of
30087 * lib/signal.in.h: Renamed from lib/signal_.h.
30088 * modules/signal (Files, Makefile.am): Use signal.in.h instead of
30090 * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
30091 * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
30093 * lib/stdint.in.h: Renamed from lib/stdint_.h.
30094 * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
30096 * lib/stdio.in.h: Renamed from lib/stdio_.h.
30097 * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
30099 * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
30100 * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
30102 * lib/string.in.h: Renamed from lib/string_.h.
30103 * modules/string (Files, Makefile.am): Use string.in.h instead of
30105 * doc/gnulib-tool.texi (Initial import): Update.
30106 * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
30107 * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
30108 of sys_select_.h. Add dependency.
30109 * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
30110 * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
30112 * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
30113 * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
30115 * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
30116 * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
30118 * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
30119 * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
30121 * lib/time.in.h: Renamed from lib/time_.h.
30122 * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
30123 * lib/unistd.in.h: Renamed from lib/unistd_.h.
30124 * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
30126 * lib/wchar.in.h: Renamed from lib/wchar_.h.
30127 * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
30129 * lib/wctype.in.h: Renamed from lib/wctype_.h.
30130 * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
30132 * build-aux/bootstrap (slurp): Update.
30133 * lib/.cppi-disable: Update.
30135 2007-09-30 Bruno Haible <bruno@clisp.org>
30137 * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
30140 2007-09-30 Bruno Haible <bruno@clisp.org>
30142 * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
30144 2007-09-29 Bruno Haible <bruno@clisp.org>
30146 * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
30148 2007-09-29 Bruno Haible <bruno@clisp.org>
30150 * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
30151 * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
30152 * build-aux/install-reloc: Compile also areadlink.c.
30153 * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
30155 2007-09-29 Bruno Haible <bruno@clisp.org>
30157 * gnulib-tool (func_emit_initmacro_done): Indentation.
30159 2007-09-29 Bruno Haible <bruno@clisp.org>
30161 * README: Add CVS checkout update instructions.
30162 Info from Bob Proulx <bob@proulx.com>.
30164 2007-09-28 Eric Blake <ebb9@byu.net>
30166 Provide move-if-change.
30167 * build-aux/move-if-change: New file, based on best practice
30168 rather than any canonical upstream location.
30170 2007-09-28 Jim Meyering <jim@meyering.net>
30172 Fix canonicalize loop-detection corner case.
30173 Do not attempt to stat the symlink values stored via seen_triple.
30174 Without this, coreutils' tests/misc/readlink-fp-loop test would fail
30175 on linux-2.6.18, (but not 2.6.22).
30176 * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
30177 triple_compare. The former compares dev,ino,filename, while the latter
30178 would actually stat dirname(filename) when dev and ino were equal.
30179 * lib/hash-triple.c: Install <string.h>.
30181 (triple_compare_ino_str): New function.
30182 * lib/hash-triple.h (triple_compare_ino_str): Declare it.
30184 2007-09-28 Eric Blake <ebb9@byu.net>
30186 Enforce that AC_REPLACE_FUNCS files exist.
30187 * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
30188 override check for typos.
30190 Fix test-closein on Solaris 10.
30191 * tests/test-closein.c (main): Don't assume stdin can be inherited
30192 closed on all systems.
30193 * tests/test-closein.sh: Likewise.
30194 Reported by Piotr Tarnowski.
30196 2007-09-28 Jim Meyering <jim@meyering.net>
30198 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
30200 2007-09-27 Jim Meyering <jim@meyering.net>
30202 canonicalize: Avoid a false-positive cycle failure.
30203 * modules/canonicalize (Depends-on): Add file-set and hash-triple.
30204 Sort. Remove cycle-check.
30205 * lib/canonicalize.c: Include file-set.h and hash-triple.h,
30207 (seen_triple): New function.
30208 (canonicalize_filename_mode): Use it instead of cycle-check.
30209 * tests/test-canonicalize.c: Add a test for this bug.
30210 * tests/test-canonicalize.sh: Set up and run the test.
30212 New module, file-set, from coreutils.
30213 * modules/file-set: Define it.
30214 * lib/file-set.c, lib/file-set.h: Implement.
30216 New module, hash-triple, from coreutils.
30217 * modules/hash-triple: Define it.
30218 * lib/hash-triple.c, lib/hash-triple.h: Implement.
30220 2007-09-25 Eric Blake <ebb9@byu.net>
30222 Fix strerror on Interix.
30223 * lib/string_.h (strerror): Declare replacement.
30224 * doc/functions/strerror.texi (strerror): Document the Interix
30226 * modules/string (Makefile.am): Support new hooks.
30227 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
30228 * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
30229 gl_FUNC_STRERROR_SEPARATE.
30230 (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
30231 * lib/strerror.c (rpl_strerror): Provide replacement.
30232 * modules/strerror (Depends-on): Add string.
30233 (configure.ac): Detect use of module.
30234 * tests/test-strerror.c: New file.
30235 * modules/strerror-tests: New test module.
30236 * modules/argp (Depends-on): Add strerror.
30237 * modules/error (Depends-on): Likewise.
30238 Reported by Martin Koeppe.
30240 2007-09-24 Bruno Haible <bruno@clisp.org>
30242 * README: Update git instructions.
30244 2007-09-24 Eric Blake <ebb9@byu.net>
30246 Revert fpending breakage from 2007-09-08.
30247 * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
30250 2007-09-24 Jim Meyering <jim@meyering.net>
30252 filenamecat.c: Add a test.
30253 * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
30254 showing how the function works when DIR is the empty string.
30256 2007-09-21 Simon Josefsson <simon@josefsson.org>
30258 * tests/test-canonicalize.sh: Turn on executable bit.
30260 2007-09-19 Eric Blake <ebb9@byu.net>
30262 * README: Update CVS instructions.
30264 2007-09-18 Bruno Haible <bruno@clisp.org>
30266 * modules/areadlink: New file.
30267 * lib/areadlink.h (areadlink): New declaration.
30268 * lib/areadlink.c: New file, based on lib/xreadlink.c.
30270 2007-09-17 Jim Meyering <jim@meyering.net>
30272 * lib/savewd.c (ESTALE) [!defined]: Define.
30273 Reported to be required on Interix by Martin Koeppe.
30275 2007-09-17 Bruno Haible <bruno@clisp.org>
30277 * gnulib-tool (func_version): Use $version.
30279 2007-09-16 Bruno Haible <bruno@clisp.org>
30281 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
30282 gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
30283 Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
30284 Reported by Greg Schafer <gschafer@zip.com.au>.
30286 2007-09-15 Bruno Haible <bruno@clisp.org>
30288 * gnulib-tool (sed): Try a little harder to make bash understand the
30290 Reported by Bruce Korb <bruce.korb@gmail.com>.
30292 2007-09-13 Eric Blake <ebb9@byu.net>
30294 * ChangeLog: Remove conflict markers.
30296 2007-09-13 Simon Josefsson <simon@josefsson.org>
30298 * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
30299 Reported by Bruno Haible <bruno@clisp.org>.
30301 2007-09-12 Bruno Haible <bruno@clisp.org>
30303 * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
30304 (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
30307 2007-09-12 Eric Blake <ebb9@byu.net>
30309 Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
30310 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
30311 Autoconf definition.
30312 * modules/euidaccess (Depends-on): Add extensions, for
30313 AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
30314 * modules/fnmatch (Depends-on): Likewise.
30315 * modules/getaddrinfo (Depends-on): Likewise.
30316 * modules/getdelim (Depends-on): Likewise.
30317 * modules/getline (Depends-on): Likewise.
30318 * modules/getsubopt (Depends-on): Likewise.
30319 * modules/gettext (Depends-on): Likewise.
30320 * modules/group-member (Depends-on): Likewise.
30321 * modules/mbchar (Depends-on): Likewise.
30322 * modules/memmem (Depends-on): Likewise.
30323 * modules/mempcpy (Depends-on): Likewise.
30324 * modules/memrchr (Depends-on): Likewise.
30325 * modules/pagealign_alloc (Depends-on): Likewise.
30326 * modules/readutmp (Depends-on): Likewise.
30327 * modules/stpcpy (Depends-on): Likewise.
30328 * modules/stpncpy (Depends-on): Likewise.
30329 * modules/strchrnul (Depends-on): Likewise.
30330 * modules/strndup (Depends-on): Likewise.
30331 * modules/strsep (Depends-on): Likewise.
30332 * modules/strverscmp (Depends-on): Likewise.
30333 * modules/vasprintf (Depends-on): Likewise.
30334 * modules/wcwidth (Depends-on): Likewise.
30335 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
30336 obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
30337 * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
30338 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
30339 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
30340 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30341 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
30342 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
30343 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
30344 * m4/mbchar.m4 (gl_MBCHAR): Likewise.
30345 * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
30346 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30347 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30348 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
30349 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
30350 * m4/readutmp.m4 (gl_READUTMP): Likewise.
30351 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
30352 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30353 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30354 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30355 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30356 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30357 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30358 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
30359 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
30360 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
30361 * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
30362 so that lock.m4 can be used in gettext without extensions module.
30364 2007-09-11 Bruno Haible <bruno@clisp.org>
30366 * m4/isc-posix.m4: Remove file.
30367 Suggested by Eric Blake.
30369 2007-09-11 Eric Blake <ebb9@byu.net>
30371 * ChangeLog: Restore lines accidentally truncated 2007-04-06.
30373 2007-09-10 Bruno Haible <bruno@clisp.org>
30375 * posix-modules: Fix typo in error message.
30376 Reported by Matt <mkraai@beckman.com>.
30378 2007-09-09 Bruno Haible <bruno@clisp.org>
30380 * doc/functions/getdelim.texi: Update list of platforms lacking the
30382 * doc/functions/getline.texi: Likewise.
30384 2007-09-09 Jim Meyering <jim@meyering.net>
30386 * lib/hash.c (hash_initialize): Detect calloc failure.
30387 Reported by Bruno Haible.
30389 2007-09-09 Bruno Haible <bruno@clisp.org>
30391 * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
30392 malloc or realloc fails.
30394 2007-09-09 Bruno Haible <bruno@clisp.org>
30396 * modules/getcwd (Depends-on): Add malloc-posix.
30397 * modules/glob (Depends-on): Likewise.
30398 * modules/putenv (Depends-on): Likewise.
30399 * modules/strdup (Depends-on): Likewise.
30400 * modules/getdelim (Depends-on): Add realloc-posix.
30401 * modules/read-file (Depends-on): Likewise.
30403 2007-09-09 Bruno Haible <bruno@clisp.org>
30405 * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
30406 (gl_FUNC_MALLOC_POSIX): Require it.
30407 * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
30408 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
30409 * modules/realloc (Files): Add m4/malloc.m4.
30410 * modules/calloc (Files): Likewise.
30412 2007-09-09 Bruno Haible <bruno@clisp.org>
30414 * modules/malloc-posix: New file.
30415 * modules/malloc (Depends-on): Add malloc-posix.
30416 * lib/malloc.c: Include errno.h.
30417 (rpl_malloc): Merge the requirements of a glibc-compatible malloc
30418 and a POSIX-compatible malloc into a single function. Set ENOMEM
30419 when returning NULL.
30420 * m4/malloc.m4: New file.
30421 * doc/functions/malloc.texi: Mention the malloc-posix module.
30422 * lib/stdlib_.h (malloc): New declaration.
30423 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30424 GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
30425 * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
30426 and HAVE_MALLOC_POSIX.
30428 2007-09-09 Bruno Haible <bruno@clisp.org>
30430 * modules/realloc-posix: New file.
30431 * modules/realloc (Depends-on): Add realloc-posix.
30432 * lib/realloc.c: Include errno.h.
30433 (rpl_realloc): Merge the requirements of a glibc-compatible realloc
30434 and a POSIX-compatible realloc into a single function. Set ENOMEM
30435 when returning NULL.
30436 * m4/realloc.m4: New file.
30437 * doc/functions/realloc.texi: Mention the realloc-posix module.
30438 * lib/stdlib_.h (realloc): New declaration.
30439 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30440 GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
30441 * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
30442 and HAVE_REALLOC_POSIX.
30444 2007-09-09 Bruno Haible <bruno@clisp.org>
30446 * modules/calloc-posix: New file.
30447 * modules/calloc (Depends-on): Add calloc-posix.
30448 * lib/calloc.c: Include errno.h.
30449 (rpl_calloc): Merge the requirements of a glibc-compatible calloc
30450 and a POSIX-compatible calloc into a single function. Set ENOMEM
30451 when returning NULL.
30452 * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
30453 * doc/functions/calloc.texi: Mention the calloc-posix module.
30454 * lib/stdlib_.h (calloc): New declaration.
30455 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
30456 GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
30457 * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
30458 and HAVE_CALLOC_POSIX.
30460 2007-09-09 Bruno Haible <bruno@clisp.org>
30462 Allow for modules to show an arbitrary notice.
30463 * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
30464 * gnulib-tool: New option --extract-notice.
30465 (func_usage): Document it.
30466 (sed_extract_prog): Update.
30467 (func_get_notice): New function.
30468 (func_modules_notice): New function.
30469 (func_import, func_create_testdir): Invoke it.
30470 Suggested by Jim Meyering.
30472 2007-09-09 Bruno Haible <bruno@clisp.org>
30474 * gnulib-tool: New options --verbose, --quiet.
30475 (func_usage): Document them.
30476 (verbose): New variable.
30477 (func_execute_command): New function.
30478 (func_import): Don't show the module list and the file list if
30480 (func_create_testdir): Likewise. Use func_execute_command.
30481 (func_create_megatestdir): Use func_execute_command.
30483 2007-09-08 Bruno Haible <bruno@clisp.org>
30485 * gnulib-tool (func_import): Prefer rsync over wget when available,
30486 for fetching the PO files.
30488 2007-09-08 Bruno Haible <bruno@clisp.org>
30490 * posix-modules: New file. Portions copied from gnulib-tool.
30491 * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
30493 2007-09-08 Jim Meyering <jim@meyering.net>
30495 Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
30496 * lib/fpending.h: Rename from __fpending.h.
30497 * lib/fpending.c: Rename from __fpending.c.
30498 Include "fpending.h", not "__fpending.h".
30499 * lib/__fpending.h, lib/__fpending.c: Remove files.
30500 * modules/fpending (Files): Reflect new file names.
30501 * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
30503 2007-09-08 Bruno Haible <bruno@clisp.org>
30505 * m4/inttypes-h.m4: Remove stub file.
30507 2007-09-07 Simon Josefsson <simon@josefsson.org>
30509 * doc/headers/stdint.texi: Discuss #include_next issue.
30511 2007-09-06 Paul Eggert <eggert@cs.ucla.edu>
30513 * build-aux/bootstrap: Remove obsolete comment about wget --help.
30515 2007-09-06 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30517 * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
30520 2007-09-03 Jim Meyering <jim@meyering.net>
30522 New module: git-version-gen.
30523 * modules/git-version-gen: New file.
30525 Import changes from coreutils for bootstrap script.
30527 * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
30529 bootstrap: uses rsync to download the .po files
30530 * build-aux/bootstrap (po_download_command_format): New global.
30531 (download_po_files): Use rsync.
30532 (update_po_files): Don't remove .po files after download,
30533 so future rsync runs can take advantage of the copies.
30535 * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
30537 Solve the unnecessary-.po-file-regeneration problem once and for all.
30538 * build-aux/bootstrap (download_po_files): New function, renamed from
30539 get_translations. Now, downloads, but doesn't update LINGUAS.
30540 (update_po_files): New function.
30542 bootstrap: Ignore more.
30543 * build-aux/bootstrap (symlink_to_dir): Add a directory name like
30544 uniwidth to e.g., lib/.gitignore.
30545 (slurp): Handle the sys_stat_.h -> sys mapping, too.
30547 * build-aux/bootstrap: New setting: vc_ignore.
30548 (insert_sorted_if_absent): Create $file if absent.
30549 Adapt to new, possibly empty, list: $vc_ignore.
30551 bootstrap: generate more ignorable names
30552 * build-aux/bootstrap (slurp): When generating ignorable names,
30553 also map .sin to .sed, .gperf to .c, and .y to .c.
30555 2007-09-03 Jim Meyering <jim@meyering.net>
30557 * build-aux/git-version-gen: New file, from coreutils. For details, see
30558 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
30560 2007-09-02 Bruno Haible <bruno@clisp.org>
30562 Fix mis-recognition of 'mcs' on QNX 6.
30563 * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
30564 output contains the string "Mono".
30565 * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
30566 Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
30568 2007-09-01 Bruno Haible <bruno@clisp.org>
30570 Fix collision between uniwidth/* and linebreak modules.
30571 * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
30572 u32_width): Remove declarations.
30573 * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
30574 (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
30575 streq3, streq2, streq1, streq0): Remove functions.
30576 (STREQ): Remove macro.
30577 (is_cjk_encoding): Remove function.
30578 (nonspacing_table_data, nonspacing_table_ind): Remove constants.
30579 (uc_width, u8_width, u16_width, u32_width): Remove functions.
30580 * modules/linebreak (Depends-on): Add streq, uniwidth/width.
30581 * NEWS: Document the change.
30583 2007-09-01 Bruno Haible <bruno@clisp.org>
30585 * lib/streq.h: Add double-inclusion guard.
30587 2007-09-01 Karl Berry <karl@gnu.org>
30589 * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
30591 2007-08-28 Jim Meyering <jim@meyering.net>
30593 Rename mreadlink_with_size to areadlink_with_size.
30594 * NEWS: Document the change.
30595 * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
30596 * lib/areadlink-with-size.c (areadlink_with_size): ...this.
30597 * lib/mreadlink.h: Rename this to...
30598 * lib/areadlink.h: ...this.
30599 * modules/mreadlink-with-size: Rename this to...
30600 * modules/areadlink-with-size: ...this.
30601 * lib/canonicalize.c: Reflect the renaming.
30602 * modules/canonicalize: Likewise.
30604 2007-08-26 Bruno Haible <bruno@clisp.org>
30606 * gnulib-tool (func_import): When deciding which files to remove,
30607 consider also dangling symbolic links.
30608 Reported by Eric Blake.
30610 2007-08-26 Bruno Haible <bruno@clisp.org>
30612 * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
30614 2007-08-23 Simon Josefsson <simon@josefsson.org>
30616 * lib/readline.c: Don't include getline.h, the prototype is now
30619 2007-08-23 Jim Meyering <jim@meyering.net>
30622 * lib/getdelim.c (getdelim): Don't bother to save/restore errno
30623 around the funlockfile call, since funlockfile never sets errno.
30624 Don't set errno upon failed realloc.
30626 2007-08-22 Eric Blake <ebb9@byu.net>
30629 * lib/getdelim.c (getdelim): Revert regression that required *n to
30630 be 0 when *lineptr is NULL. Preserve errno across funlockfile.
30631 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
30632 getdelim, rather than whether implementation is missing.
30633 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
30634 * lib/stdio_.h (getline): Also declare if replacement is
30636 * doc/functions/getdelim.texi: New file.
30637 * doc/functions/getline.texi: Likewise.
30638 * doc/gnulib.texi (Function Substitutes): Add new files.
30639 Reported by Bruno Haible.
30641 2007-08-22 Ludovic Courtès <ludo@gnu.org>
30643 * users.txt: Add Guile.
30645 2007-08-22 Eric Blake <ebb9@byu.net>
30647 * tests/test-getdelim.c (main): Use remove, not unlink.
30648 * tests/test-getline.c (main): Likewise.
30650 Move getline and getdelim into stdio.h, per POSIX 200x.
30651 * modules/getline (Files): Remove getline.h.
30652 (Depends-on): Add stdio.
30653 (configure.ac): Add module indicator.
30654 * modules/getdelim (Files): Remove getdelim.h.
30655 (Depends-on): Add stdio.
30656 (configure.ac): Add module indicator.
30657 * modules/stdio (Makefile.am): Work with new indicators.
30658 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
30659 * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
30660 * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
30661 * lib/getdelim.h: Delete.
30662 * lib/getline.h: Delete.
30663 * lib/stdio_.h (getdelim, getline): Declare.
30664 * modules/getdelim-tests: New module.
30665 * modules/getline-tests: Likewise.
30666 * tests/test-getdelim.c: New file.
30667 * tests/test-getline.c: Likewise.
30668 * NEWS: Document the change.
30669 * lib/getline.c: Update choice of header.
30670 * lib/csharpcomp.c: Likewise.
30671 * lib/getpass.c: Likewise.
30672 * lib/javacomp.c: Likewise.
30673 * lib/javaversion.c: Likewise.
30674 * lib/yesno.c: Likewise.
30675 * lib/getdelim.c: Likewise.
30676 (getdelim): Set errno on failure, and avoid memory leak.
30678 2007-08-19 Bruno Haible <bruno@clisp.org>
30680 * modules/closein (Depends-on): Add freadahead.
30681 * lib/closein.c: Include freadahead.h.
30682 (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
30685 2007-08-19 Bruno Haible <bruno@clisp.org>
30687 * modules/freadahead-tests: New file.
30688 * tests/test-freadahead.sh: New file.
30689 * tests/test-freadahead.c: New file.
30691 * modules/freadahead: New file.
30692 * lib/freadahead.h: New file.
30693 * lib/freadahead.c: New file.
30694 * MODULES.html.sh (File stream based Input/Output): Add freadahead,
30695 fbufmode, fpurge, freadable, fwritable.
30697 2007-08-19 Eric Blake <ebb9@byu.net>
30699 Test yesno in combination with closein.
30700 * lib/yesno.c (yesno): Document use of stdin.
30701 * modules/yesno-tests (Files): New module.
30702 * tests/test-yesno.c (main): New file.
30703 * tests/test-yesno.sh: Likewise.
30705 2007-08-19 Bruno Haible <bruno@clisp.org>
30707 * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
30708 * lib/fseeko.c (rpl_fseeko): Likewise.
30709 * lib/fseterr.c (fseterr): Likewise.
30711 2007-08-19 Bruno Haible <bruno@clisp.org>
30713 * tests/test-lseek.c (main): Disable a test for BeOS.
30714 * doc/functions/lseek.texi: Document the BeOS bug.
30716 2007-08-19 Bruno Haible <bruno@clisp.org>
30717 Eric Blake <ebb9@byu.net>
30719 * lib/lseek.c: Include <sys/stat.h>.
30720 (rpl_lseek): Add workaround code also for Unix platforms.
30722 * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
30723 * doc/functions/lseek.texi: Document BeOS definiency.
30725 2007-08-18 Bruno Haible <bruno@clisp.org>
30727 * modules/fstrcmp-tests: New file.
30728 * tests/test-fstrcmp.c: New file.
30730 2007-08-18 Bruno Haible <bruno@clisp.org>
30732 * modules/fstrcmp: New file, from GNU gettext with modifications.
30733 * lib/fstrcmp.h: New file, from GNU gettext.
30734 * lib/fstrcmp.c: New file, from GNU gettext.
30735 * MODULES.html.sh (String handling): Add fstrcmp.
30737 2007-08-18 Bruno Haible <bruno@clisp.org>
30739 * lib/diffseq.h (struct context): Change type of 'heuristic' field to
30741 (diag, compareseq): Remove const from the ctxt argument.
30742 (USE_HEURISTIC): Undefine at the end.
30744 2007-08-18 Jim Meyering <jim@meyering.net>
30746 New file: lib/idcache.h
30747 * NEWS: Mention the addition.
30748 * modules/idcache (Files): Add lib/idcache.h
30749 * lib/idcache.c: Include "idcache.h".
30750 Don't include <sys/types.h>.
30751 Add a FIXME comment.
30752 Move file-scoped "static" declarations to the top.
30753 * lib/idcache.h: New file. Include <sys/types.h> here, instead.
30755 2007-08-17 Bruno Haible <bruno@clisp.org>
30756 and Paul Eggert <eggert@cs.ucla.edu>
30758 * MODULES.html.sh: Add diffseq.
30759 * modules/diffseq: New file.
30760 * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
30761 extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
30763 2007-08-15 Paul Eggert <eggert@cs.ucla.edu>
30765 Import changes from coreutils for bootstrap script.
30767 2007-07-21 Paul Eggert <eggert@cs.ucla.edu>
30769 * build-aux/bootstrap (slurp): Work even in environments where
30770 "ls" defaults to "ls -A". Put in a FIXME, though, since the
30771 current code does not slurp files whose names start with ".", and
30772 this looks like it might be a troublesome area.
30774 2007-07-11 Jim Meyering <jim@meyering.net>
30776 If there's a GPL vN copyright comment, require that N == 3.
30778 2007-07-08 Jim Meyering <jim@meyering.net>
30780 Run the coreutils-specific code only if tests/Makefile.am.in exists.
30781 * build-aux/bootstrap (mam_template): Move definition out of loop.
30783 Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
30785 * build-aux/bootstrap (symlink_to_dir): Rename function from
30786 symlink_to_gnulib. Add a directory parameter. Update all
30788 (cp_mark_as_generated): Also check for -- and link to -- files in
30791 2007-07-08 Jim Meyering <jim@meyering.net>
30793 Adapt to deeper hierarchy in gnulib.
30794 * build-aux/bootstrap (symlink_to_dir): If the destination
30795 directory doesn't exist, create it. This is required at least for
30796 "lib/uniwidth/cjk.h".
30798 2007-05-15 Jim Meyering <jim@meyering.net>
30800 * build-aux/bootstrap: Now that generated Makefile.am files
30801 are no longer under version control, they must be created at
30804 2007-08-14 Ben Pfaff <blp@gnu.org>
30806 * lib/count-one-bits.h: Add comments. From Bruno Haible.
30808 2007-08-14 Paul Eggert <eggert@cs.ucla.edu>
30810 * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
30811 given the changes below.
30812 (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'. Work
30813 even on hosts that have padding bits beyond the supported 64.
30815 2007-08-10 Paul Eggert <eggert@cs.ucla.edu>
30817 * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
30818 * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
30819 xstrtol.c. Include getopt.h, since xstrtol_fatal's signature
30821 (xstrtol_error): Remove.
30822 (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
30823 but with a different signature.
30824 (ATTRIBUTE_NORETURN, __attribute__): New macros.
30825 * lib/xstrtol-error.c: Include exitfail.h.
30826 (xstrtol_fatal): New function, with a different signature from the
30827 old xstrtol_error, so that the caller need not worry about passing
30828 in an exit status, or about storage management of the option argument.
30829 (xstrtol_error): Now a static function. Redo signature to
30830 implement xstrtol_fatal. Output the correct number of hyphens in
30831 front of the option so that the caller need not worry about
30832 storage management.
30834 (_): Remove; not used now.
30835 * modules/xstrtol: Depend on getopt.
30836 * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
30837 of old STRTOL_FATAL_ERROR macro.
30838 * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
30840 * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
30841 * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
30843 2007-08-08 Eric Blake <ebb9@byu.net>
30845 * lib/xstrtol-error.c: Add missing include.
30847 Move xstrtol messages into gnulib domain, when --pobase is used.
30848 * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
30849 * lib/xstrtol-error.c (xstrtol_error): ...into new file.
30850 * modules/xstrtol (Files): Distribute new file.
30851 * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
30852 * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
30853 * tests/test-xstrtol.c: ...into new file.
30854 * tests/test-xstrtoul.c: Also test xstrtoul.
30855 * tests/test-xstrtoimax.c: Also test xstrtoimax.
30856 * tests/test-xstrtoumax.c: Also test xstrtoumax.
30857 * tests/test-xstrtol.sh: Drive the tests.
30858 * tests/test-xstrtoimax.sh: Likewise.
30859 * tests/test-xstrtoumax.sh: Likewise.
30860 * modules/xstrtol-tests: New module.
30861 * modules/xstrtoimax-tests: Likewise.
30862 * modules/xstrtoumax-tests: Likewise.
30864 2007-08-08 Jim Meyering <jim@meyering.net>
30866 New function: mfile_name_concat.
30867 * lib/filenamecat.c (mfile_name_concat): New function, just like
30868 file_name_concat, but return NULL upon failure rather than exiting
30870 * lib/filenamecat.h: Declare it.
30872 2007-08-07 Bruno Haible <bruno@clisp.org>
30874 * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
30875 instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
30877 Reported by Eric Blake.
30879 2007-08-07 Simon Josefsson <simon@josefsson.org>
30881 * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
30882 * modules/crypto/arcfour (License): Likewise.
30883 * modules/crypto/des-tests (License): Likewise.
30884 * modules/crypto/gc-arctwo-tests (License): Likewise.
30885 * modules/crypto/gc-des-tests (License): Likewise.
30886 * modules/crypto/gc-hmac-md5-tests (License): Likewise.
30887 * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
30888 * modules/crypto/gc-md2-tests (License): Likewise.
30889 * modules/crypto/gc-md4-tests (License): Likewise.
30890 * modules/crypto/gc-md5-tests (License): Likewise.
30891 * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
30892 * modules/crypto/gc-rijndael-tests (License): Likewise.
30893 * modules/crypto/gc-sha1-tests (License): Likewise.
30894 * modules/crypto/gc-tests (License): Likewise.
30895 * modules/crypto/hmac-md5 (License): Likewise.
30896 * modules/crypto/hmac-sha1 (License): Likewise.
30897 * modules/crypto/md2-tests (License): Likewise.
30898 * modules/crypto/md4-tests (License): Likewise.
30899 * modules/crypto/md5 (License): Likewise.
30900 * modules/crypto/rijndael (License): Likewise.
30901 * modules/crypto/sha1 (License): Likewise.
30902 * modules/memxor (License): Likewise.
30904 2007-08-06 Paul Eggert <eggert@cs.ucla.edu>
30905 and Bruno Haible <bruno@clisp.org>
30907 * NEWS: Describe interface changes to human, xstrtol.
30908 * lib/human.h: Include <xstrtol.h>.
30909 (human_options): Return enum strtol_error, not int. Remove
30910 bool arg; take int * instead.
30911 * lib/human.c: Don't include "gettext.h".
30912 (_): Remove; no longer used.
30913 Don't include <xstrtol.h>, since human.h does it.
30914 (human_options): Adjust to abovementioned interface changes.
30915 Do not report error to stderr; that's now the caller's
30917 * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
30919 * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
30920 Str, Argument_type_string. All uses changed. Put " argument"
30921 in diagnostics to make them clearer. Change wording of suffix
30922 message for clarity.
30923 (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
30924 Argument_type_string.
30925 (STRTOL_FATAL_WARN): Remove; no longer used.
30926 * modules/human (Depends-on): Remove gettext-h.
30928 2007-08-06 Simon Josefsson <simon@josefsson.org>
30930 * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
30932 2007-07-31 Bruno Haible <bruno@clisp.org>
30934 * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
30935 are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
30936 Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
30938 2007-07-31 Bruno Haible <bruno@clisp.org>
30940 * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
30941 Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
30943 2007-07-30 Bruno Haible <bruno@clisp.org>
30945 * modules/base64 (License): Use the synonymous term "LGPLv2+".
30946 * modules/c-ctype (License): Likewise.
30947 * modules/c-strcase (License): Likewise.
30948 * modules/check-version (License): Likewise.
30949 * modules/iconv (License): Likewise.
30950 * modules/iconv_open (License): Likewise.
30951 * modules/read-file (License): Likewise.
30952 * modules/striconv (License): Likewise.
30953 * modules/strverscmp (License): Likewise.
30954 * modules/vasprintf (License): Likewise.
30955 * modules/crypto/des (License): Likewise.
30956 * modules/crypto/gc (License): Likewise.
30957 * modules/crypto/gc-arcfour (License): Likewise.
30958 * modules/crypto/gc-arctwo (License): Likewise.
30959 * modules/crypto/gc-des (License): Likewise.
30960 * modules/crypto/gc-hmac-md5 (License): Likewise.
30961 * modules/crypto/gc-hmac-sha1 (License): Likewise.
30962 * modules/crypto/gc-md2 (License): Likewise.
30963 * modules/crypto/gc-md4 (License): Likewise.
30964 * modules/crypto/gc-md5 (License): Likewise.
30965 * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
30966 * modules/crypto/gc-random (License): Likewise.
30967 * modules/crypto/gc-rijndael (License): Likewise.
30968 * modules/crypto/gc-sha1 (License): Likewise.
30969 * modules/crypto/md2 (License): Likewise.
30970 * modules/crypto/md4 (License): Likewise.
30972 2007-07-30 Jim Meyering <jim@meyering.net>
30974 * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
30975 set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
30976 it has valid stat data. This bug would cause du not to count the
30977 sizes of inaccessible directories.
30978 Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
30979 in <http://bugzilla.redhat.com/250077>.
30981 2007-07-25 Peter O'Gorman <peter@pogma.com>
30982 Bruno Haible <bruno@clisp.org>
30984 * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
30985 really works. Needed because AIX 4.3 "xlc -E" doesn't understand
30986 #include_next, gives a diagnostic about it, but reports no error in
30988 Reported by Gary V. Vaughan <gary@thewrittenword.com>.
30990 2007-07-24 Ben Pfaff <blp@gnu.org>
30992 Improve name: "count-one-bits" is better than "popcount".
30993 * MODULES.html.sh: Update name.
30994 * lib/popcount.h: Renamed lib/count-one-bits.h.
30995 (popcount): Renamed count_one_bits.
30996 (popcountl): Renamed count_one_bits_l.
30997 (popcountll): Renamed count_one_bits_ll.
30998 * m4/popcount.m4: Renamed m4/count-one-bits.m4.
30999 * modules/popcount: Renamed module/count-one-bits.
31000 * modules/popcount-tests: Renamed module/count-one-bits-tests.
31001 * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
31003 2007-07-23 Ben Pfaff <blp@gnu.org>
31005 * lib/popcount.h (popcount32): Reduce size of constants, to allow
31006 better code generation, and add U to large constants to avoid
31007 warnings, in non-GCC case.
31008 Suggested by Bruno Haible.
31010 2007-07-23 Ben Pfaff <blp@gnu.org>
31012 * lib/popcount.h: Use verify_true instead of if...abort.
31013 * modules/popcount: Depend on verify module.
31014 Suggested by Jim Meyering.
31016 2007-07-23 Bruno Haible <bruno@clisp.org>
31018 * gnulib-tool (func_import): Create a .cvsignore file also when the
31019 directory is not yet in CVS but the toplevel directory is. When
31020 creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
31021 Reported by Karl Berry.
31023 2007-07-22 Ben Pfaff <blp@gnu.org>
31025 * lib/popcount.h: Use faster, branchless algorithm for non-GCC
31027 Suggested by Eric Blake.
31029 2007-07-22 Ben Pfaff <blp@gnu.org>
31031 New module: popcount.
31032 * MODULES.html.sh: Add popcount.
31033 * modules/popcount: New file.
31034 * modules/popcount-tests: New file.
31035 * tests/test-popcount.c: New file.
31036 * lib/popcount.h: New file.
31037 * m4/popcount.m4: New file.
31039 2007-07-22 Paul Eggert <eggert@cs.ucla.edu>
31041 * build-aux/announce-gen: Update to GPLv3.
31043 * build-aux/config.guess: Update from config.
31045 2007-07-21 Bruno Haible <bruno@clisp.org>
31047 * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
31048 * lib/verror.c (_) [ENABLE_NLS]: Likewise.
31050 2007-07-20 Jim Meyering <jim@meyering.net>
31052 * check-module: Diagnose a self-dependency.
31054 2007-07-19 Bruno Haible <bruno@clisp.org>
31056 * gnulib-tool (func_import): Don't abort if pobase or po_domain is
31058 Reported by Eric Blake.
31060 2007-07-18 Bruno Haible <bruno@clisp.org>
31062 * gnulib-tool: New options --po-base, --po-domain.
31063 (func_usage): Document them.
31064 (pobase, po_domain): New variables.
31065 (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
31066 DEFAULT_TEXT_DOMAIN.
31067 (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
31068 (func_import): Consider pobase and po_domain. Create a po/ directory.
31069 (func_create_testdir): Set pobase and po_domain to empty.
31070 * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
31071 * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
31073 2007-07-18 Bruno Haible <bruno@clisp.org>
31075 * gnulib-tool (func_get_automake_snippet): Synthesize also an
31076 EXTRA_DIST augmentation for files in build-aux/.
31078 2007-07-16 Bruno Haible <bruno@clisp.org>
31080 * modules/lseek (License): Use the synonymous term "LGPLv2+".
31081 * modules/getdelim (License): Likewise.
31083 2007-07-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31085 * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
31086 * modules/d-type (License): Likewise.
31087 * modules/extensions (License): Likewise.
31088 * modules/fnmatch (License): Likewise.
31089 * modules/fseeko (License): Likewise.
31090 * modules/getaddrinfo (License): Likewise.
31091 * modules/getline (License): Likewise.
31092 * modules/getlogin_r (License): Likewise.
31093 * modules/getpass (License): Likewise.
31094 * modules/gettimeofday (License): Likewise.
31095 * modules/glob (License): Likewise.
31096 * modules/inet_ntop (License): Likewise.
31097 * modules/malloc (License): Likewise.
31098 * modules/malloca (License): Likewise.
31099 * modules/memmem (License): Likewise.
31100 * modules/mempcpy (License): Likewise.
31101 * modules/memset (License): Likewise.
31102 * modules/minmax (License): Likewise.
31103 * modules/mktime (License): Likewise.
31104 * modules/netinet_in (License): Likewise.
31105 * modules/pathmax (License): Likewise.
31106 * modules/poll (License): Likewise.
31107 * modules/regex (License): Likewise.
31108 * modules/snprintf (License): Likewise.
31109 * modules/stdbool (License): Likewise.
31110 * modules/stdint (License): Likewise.
31111 * modules/stdio (License): Likewise.
31112 * modules/strcase (License): Likewise.
31113 * modules/strcasestr (License): Likewise.
31114 * modules/strdup (License): Likewise.
31115 * modules/string (License): Likewise.
31116 * modules/strndup (License): Likewise.
31117 * modules/strnlen (License): Likewise.
31118 * modules/strpbrk (License): Likewise.
31119 * modules/strptime (License): Likewise.
31120 * modules/strsep (License): Likewise.
31121 * modules/sys_select (License): Likewise.
31122 * modules/sys_socket (License): Likewise.
31123 * modules/sys_stat (License): Likewise.
31124 * modules/sys_time (License): Likewise.
31125 * modules/time (License): Likewise.
31126 * modules/time_r (License): Likewise.
31127 * modules/timegm (License): Likewise.
31128 * modules/unistd (License): Likewise.
31129 * modules/vsnprintf (License): Likewise.
31130 * modules/wctype (License): Likewise.
31132 2007-07-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31134 * modules/argz (License): LGPLv2+.
31136 2007-07-15 Karl Berry <karl@gnu.org>
31138 * doc/gnulib.texi: revise node structure per new fdl.texi.
31140 2007-07-14 Bruno Haible <bruno@clisp.org>
31142 * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
31144 * lib/uniname/uninames.h: Regenerated.
31146 2007-07-14 Karl Berry <karl@gnu.org>
31148 * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
31149 omitting sectioning and index commands.
31151 2007-07-13 Bruno Haible <bruno@clisp.org>
31153 New gnulib-tool option --more-symlinks.
31154 * gnulib-tool (func_usage): Document --more-symlinks.
31155 (do_copyrights): New variable.
31156 Recognize option --more-symlinks.
31157 (func_import): Don't add a copyright notice transform to
31158 sed_transform_lib_file if do_copyrights is empty.
31160 2007-07-13 Bruno Haible <bruno@clisp.org>
31162 * lib/vasnprintf.c (decimal_point_char): Define also if
31163 (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
31164 && !NEED_PRINTF_DIRECTIVE_A.
31165 Reported by Clemens Koller <clemens.koller@anagramm.de> via
31166 Gary V. Vaughan <gary@gnu.org>.
31168 2007-07-13 Paul Eggert <eggert@cs.ucla.edu>
31170 * lib/inttypes_.h: Undo previous change, since it was fixed
31171 in a different way in the 2007-07-02 fix to m4/inttypes.m4.
31173 2007-07-13 Bruno Haible <bruno@clisp.org>
31175 * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
31176 misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
31178 2007-07-13 Jim Meyering <jim@meyering.net>
31180 df: Don't fail for Tru64's "file-on-file mount".
31181 * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
31182 so we fall through and use statfs instead. Details here:
31183 <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
31184 Reported by Albert Chin.
31186 2007-07-13 Bruno Haible <bruno@clisp.org>
31188 * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
31189 * modules/configmake (License): Likewise.
31190 * modules/gettext (License): Likewise.
31191 * modules/gettext-h (License): Likewise.
31192 * modules/include_next (License): Likewise.
31193 * modules/link-warning (License): Likewise.
31194 * modules/localcharset (License): Likewise.
31195 * modules/localename (License): Likewise.
31196 * modules/lock (License): Likewise.
31197 * modules/relocatable-lib-lgpl (License): Likewise.
31198 * modules/size_max (License): Likewise.
31199 * modules/vasnprintf (License): Likewise.
31200 * modules/wchar (License): Likewise.
31201 * modules/xsize (License): Likewise.
31203 2007-07-13 Bruno Haible <bruno@clisp.org>
31205 * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
31206 (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
31208 2007-07-12 Bruno Haible <bruno@clisp.org>
31210 * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
31211 in the modules files.
31213 2007-07-11 Karl Berry <karl@gnu.org>
31215 * MODULES.html.sh (func_module): use
31216 sed -e '\|^'"${includefile}"'$|d'
31217 instead of /.../d, to avoid errors on $includefile's containing /.
31219 2007-07-10 Sergey Poznyakoff <gray@gnu.org.ua>
31221 * gnulib-tool (func_import): Avoid duplication of --avoid
31223 (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
31224 names to `_' in variable names.
31226 2007-07-10 Eric Blake <ebb9@byu.net>
31228 * lib/version-etc.c (version_etc_va): Default to GPLv3+.
31229 * NEWS: Document this change.
31231 2007-07-08 Bruno Haible <bruno@clisp.org>
31233 Update to Unicode 5.0.
31234 * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
31235 U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
31236 U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
31237 U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
31238 U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
31239 U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
31240 U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
31241 U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
31242 U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
31243 U+10A3F, U+1D242..U+1D244.
31244 (nonspacing_table_ind): Update.
31245 (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
31246 U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
31248 2007-07-08 Bruno Haible <bruno@clisp.org>
31250 Update to Unicode 5.0.
31251 * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
31252 code transform. Extend the name index field of unicode_name_to_code and
31253 unicode_code_to_name from 16 to 24 bits.
31254 * lib/uniname/uniname.c (unicode_character_name,
31255 unicode_name_character): Add the range 0x12xxx to the code transform.
31256 * lib/uniname/uninames.h: Regenerated.
31257 * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
31259 2007-07-07 Bruno Haible <bruno@clisp.org>
31261 * modules/wcwidth-tests: New file.
31262 * tests/test-wcwidth.c: New file.
31264 Work around MacOS X wcwidth() bug.
31265 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
31266 * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
31267 (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
31268 original wcwidth in non-UTF-8 locales.
31269 * modules/wcwidth (Depends-on): Add localcharset, streq,
31271 * doc/functions/wcwidth.texi: Update.
31273 2007-07-07 Bruno Haible <bruno@clisp.org>
31275 * lib/wchar_.h: Include the GL_LINK_WARNING macro.
31276 (wcwidth): New declaration.
31277 * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
31279 (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
31280 here. Prepare for creating <wchar.h> unconditionally.
31281 * modules/wchar (Depends-on): Add link-warning.
31282 (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
31283 REPLACE_WCWIDTH, and GL_LINK_WARNING.
31284 * lib/wcwidth.h: Remove file.
31285 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
31286 HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
31287 * modules/wcwidth (Files): Remove lib/wcwidth.h.
31288 (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
31289 (Include): Replace wcwidth.h with <wchar.h>.
31290 * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
31291 * lib/mbchar.h: Don't include wcwidth.h.
31292 * lib/mbswidth.c: Likewise.
31293 * NEWS: Mention the change.
31295 2007-07-07 Bruno Haible <bruno@clisp.org>
31297 * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
31298 * lib/wcwidth.h: Don't include wctype.h. Replace inline function
31299 definition with an external declaration.
31300 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
31301 defined as a function. Remove AC_C_INLINE requirement.
31302 * modules/wcwidth (Files): Add lib/wcwidth.c.
31303 (Makefile.am): Remove redundant statement.
31305 2007-07-07 Bruno Haible <bruno@clisp.org>
31307 * MODULES.html.sh (Unicode string functions): Add the new modules.
31309 * tests/uniwidth/test-u32-strwidth.c: New file.
31310 * modules/uniwidth/u32-strwidth-tests: New file.
31312 * lib/uniwidth/u32-strwidth.c: New file.
31313 * modules/uniwidth/u32-strwidth: New file.
31315 * tests/uniwidth/test-u16-strwidth.c: New file.
31316 * modules/uniwidth/u16-strwidth-tests: New file.
31318 * lib/uniwidth/u16-strwidth.c: New file.
31319 * modules/uniwidth/u16-strwidth: New file.
31321 * tests/uniwidth/test-u8-strwidth.c: New file.
31322 * modules/uniwidth/u8-strwidth-tests: New file.
31324 * lib/uniwidth/u8-strwidth.c: New file.
31325 * modules/uniwidth/u8-strwidth: New file.
31327 * tests/uniwidth/test-u32-width.c: New file.
31328 * modules/uniwidth/u32-width-tests: New file.
31330 * lib/uniwidth/u32-width.c: New file.
31331 * modules/uniwidth/u32-width: New file.
31333 * tests/uniwidth/test-u16-width.c: New file.
31334 * modules/uniwidth/u16-width-tests: New file.
31336 * lib/uniwidth/u16-width.c: New file.
31337 * modules/uniwidth/u16-width: New file.
31339 * tests/uniwidth/test-u8-width.c: New file.
31340 * modules/uniwidth/u8-width-tests: New file.
31342 * lib/uniwidth/u8-width.c: New file.
31343 * modules/uniwidth/u8-width: New file.
31345 * tests/uniwidth/test-uc_width.c: New file.
31346 * modules/uniwidth/width-tests: New file.
31348 * lib/uniwidth/width.c: New file, from GNU libiconv.
31349 * lib/uniwidth/cjk.h: New file, from GNU libiconv.
31350 * modules/uniwidth/width: New file.
31352 * lib/uniwidth.h: New file, from GNU libiconv.
31353 * modules/uniwidth/base: New file.
31355 2007-07-07 Bruno Haible <bruno@clisp.org>
31357 * lib/uniname.h: New file, from GNU gettext.
31358 * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
31359 * lib/uniname/uninames.h: New file, from GNU gettext.
31360 * lib/uniname/uniname.c: New file, from GNU gettext.
31361 * tests/uniname/test-uninames.sh: New file.
31362 * tests/uniname/test-uninames.c: New file, from GNU gettext.
31363 * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
31364 * modules/uniname/base: New file.
31365 * modules/uniname/uniname: New file.
31366 * modules/uniname/uniname-tests: New file.
31367 * MODULES.html.sh (Unicode string functions): Add the new modules.
31369 2007-07-06 Bruno Haible <bruno@clisp.org>
31371 * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
31373 2007-07-06 Bruno Haible <bruno@clisp.org>
31375 * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
31376 a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
31377 includes <cygwin/sys_time.h> which includes <sys/select.h> which
31378 include <sys/time.h>.
31379 Reported by Eric Blake.
31381 2007-07-06 Eric Blake <ebb9@byu.net>
31383 Fix testing canonicalize on cygwin.
31384 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31385 Revert patch from 2007-06-19.
31386 * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
31387 canonicalize module is also in use.
31388 * tests/test-canonicalize.c: New file.
31389 * tests/test-canonicalize.sh: Likewise.
31390 * modules/canonicalize-tests: Likewise.
31392 2007-07-06 Jim Meyering <jim@meyering.net>
31394 * lib/getugroups.c (getugroups): Detect getgrent failure.
31395 Adjust comment to reflect reality: this function may return -1.
31397 2007-07-05 Sergey Poznyakoff <gray@gnu.org.ua>
31399 * build-aux/bootstrap (TP_URL,get_translations): Update to use
31400 the new TP address.
31402 (gnulib_mk): New variable.
31404 2007-07-05 Jim Meyering <jim@meyering.net>
31406 Don't let endgrent clobber errno, no matter how improbable.
31407 * lib/getugroups.c (getugroups): Save and restore errno around
31410 Close the group DB even when failing with 2^31 or more members.
31411 * lib/getugroups.c (getugroups): Don't return without calling endgrent.
31413 2007-07-04 Jim Meyering <jim@meyering.net>
31415 * lib/getugroups.h: New file.
31416 * lib/getugroups.c: Include "getugroups.h".
31417 Remove uses of "register" keyword.
31418 Move local variable, "cp", down into scope where used.
31419 Give "username" parameter the "const" attribute.
31420 * modules/getugroups (Files): Add lib/getugroups.h
31422 2007-07-04 Karl Berry <karl@gnu.org>
31424 * MODULES.html.sh (func_all_modules): Complete rename of
31425 gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
31427 2007-07-02 Bruno Haible <bruno@clisp.org>
31429 * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
31430 mode, when inttypes.h comes from gnulib.
31431 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
31433 2007-07-02 Simon Josefsson <simon@josefsson.org>
31435 * NEWS: Mention lgpl module name change.
31437 * modules/lgpl-2.1: Renamed from lgpl.
31439 * NEWS: Mention gpl module name change.
31441 * modules/gpl-3.0: New file, based on gpl-2.0.
31443 * modules/gpl-2.0: Renamed from gpl.
31445 * modules/gpl: Fix filename, doc/gpl.texi is now found at
31448 2007-07-02 Paul Eggert <eggert@cs.ucla.edu>
31450 * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
31451 #define __STDC_LIMIT_MACROS temporarily while including
31452 <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
31453 Problem reported by Joel E. Denny in
31454 <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
31456 2007-07-01 Bruno Haible <bruno@clisp.org>
31458 * lib/unistdio.h: New file.
31459 * lib/unistdio/u-asnprintf.h: New file.
31460 * lib/unistdio/u-asprintf.h: New file.
31461 * lib/unistdio/u-printf-args.c: New file.
31462 * lib/unistdio/u-printf-args.h: New file.
31463 * lib/unistdio/u-printf-parse.h: New file.
31464 * lib/unistdio/u-snprintf.h: New file.
31465 * lib/unistdio/u-sprintf.h: New file.
31466 * lib/unistdio/u-vasprintf.h: New file.
31467 * lib/unistdio/u-vsnprintf.h: New file.
31468 * lib/unistdio/u-vsprintf.h: New file.
31469 * lib/unistdio/ulc-asnprintf.c: New file.
31470 * lib/unistdio/ulc-asprintf.c: New file.
31471 * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
31472 * lib/unistdio/ulc-printf-parse.c: New file.
31473 * lib/unistdio/ulc-snprintf.c: New file.
31474 * lib/unistdio/ulc-sprintf.c: New file.
31475 * lib/unistdio/ulc-vasnprintf.c: New file.
31476 * lib/unistdio/ulc-vasprintf.c: New file.
31477 * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
31478 * lib/unistdio/ulc-vsnprintf.c: New file.
31479 * lib/unistdio/ulc-vsprintf.c: New file.
31480 * lib/unistdio/u8-asnprintf.c: New file.
31481 * lib/unistdio/u8-asprintf.c: New file.
31482 * lib/unistdio/u8-printf-parse.c: New file.
31483 * lib/unistdio/u8-snprintf.c: New file.
31484 * lib/unistdio/u8-sprintf.c: New file.
31485 * lib/unistdio/u8-vasnprintf.c: New file.
31486 * lib/unistdio/u8-vasprintf.c: New file.
31487 * lib/unistdio/u8-vsnprintf.c: New file.
31488 * lib/unistdio/u8-vsprintf.c: New file.
31489 * lib/unistdio/u8-u8-asnprintf.c: New file.
31490 * lib/unistdio/u8-u8-asprintf.c: New file.
31491 * lib/unistdio/u8-u8-snprintf.c: New file.
31492 * lib/unistdio/u8-u8-sprintf.c: New file.
31493 * lib/unistdio/u8-u8-vasnprintf.c: New file.
31494 * lib/unistdio/u8-u8-vasprintf.c: New file.
31495 * lib/unistdio/u8-u8-vsnprintf.c: New file.
31496 * lib/unistdio/u8-u8-vsprintf.c: New file.
31497 * lib/unistdio/u16-asnprintf.c: New file.
31498 * lib/unistdio/u16-asprintf.c: New file.
31499 * lib/unistdio/u16-printf-parse.c: New file.
31500 * lib/unistdio/u16-snprintf.c: New file.
31501 * lib/unistdio/u16-sprintf.c: New file.
31502 * lib/unistdio/u16-vasnprintf.c: New file.
31503 * lib/unistdio/u16-vasprintf.c: New file.
31504 * lib/unistdio/u16-vsnprintf.c: New file.
31505 * lib/unistdio/u16-vsprintf.c: New file.
31506 * lib/unistdio/u16-u16-asnprintf.c: New file.
31507 * lib/unistdio/u16-u16-asprintf.c: New file.
31508 * lib/unistdio/u16-u16-snprintf.c: New file.
31509 * lib/unistdio/u16-u16-sprintf.c: New file.
31510 * lib/unistdio/u16-u16-vasnprintf.c: New file.
31511 * lib/unistdio/u16-u16-vasprintf.c: New file.
31512 * lib/unistdio/u16-u16-vsnprintf.c: New file.
31513 * lib/unistdio/u16-u16-vsprintf.c: New file.
31514 * lib/unistdio/u32-asnprintf.c: New file.
31515 * lib/unistdio/u32-asprintf.c: New file.
31516 * lib/unistdio/u32-printf-parse.c: New file.
31517 * lib/unistdio/u32-snprintf.c: New file.
31518 * lib/unistdio/u32-sprintf.c: New file.
31519 * lib/unistdio/u32-vasnprintf.c: New file.
31520 * lib/unistdio/u32-vasprintf.c: New file.
31521 * lib/unistdio/u32-vsnprintf.c: New file.
31522 * lib/unistdio/u32-vsprintf.c: New file.
31523 * lib/unistdio/u32-u32-asnprintf.c: New file.
31524 * lib/unistdio/u32-u32-asprintf.c: New file.
31525 * lib/unistdio/u32-u32-snprintf.c: New file.
31526 * lib/unistdio/u32-u32-sprintf.c: New file.
31527 * lib/unistdio/u32-u32-vasnprintf.c: New file.
31528 * lib/unistdio/u32-u32-vasprintf.c: New file.
31529 * lib/unistdio/u32-u32-vsnprintf.c: New file.
31530 * lib/unistdio/u32-u32-vsprintf.c: New file.
31531 * tests/unistdio/test-ulc-asnprintf1.c: New file.
31532 * tests/unistdio/test-ulc-asnprintf1.h: New file.
31533 * tests/unistdio/test-ulc-printf1.h: New file.
31534 * tests/unistdio/test-ulc-vasnprintf1.c: New file.
31535 * tests/unistdio/test-ulc-vasnprintf2.c: New file.
31536 * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
31537 * tests/unistdio/test-ulc-vasnprintf3.c: New file.
31538 * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
31539 * tests/unistdio/test-ulc-vasprintf1.c: New file.
31540 * tests/unistdio/test-ulc-vsnprintf1.c: New file.
31541 * tests/unistdio/test-ulc-vsprintf1.c: New file.
31542 * tests/unistdio/test-u8-asnprintf1.c: New file.
31543 * tests/unistdio/test-u8-asnprintf1.h: New file.
31544 * tests/unistdio/test-u8-printf1.h: New file.
31545 * tests/unistdio/test-u8-vasnprintf1.c: New file.
31546 * tests/unistdio/test-u8-vasnprintf2.c: New file.
31547 * tests/unistdio/test-u8-vasnprintf2.sh: New file.
31548 * tests/unistdio/test-u8-vasnprintf3.c: New file.
31549 * tests/unistdio/test-u8-vasnprintf3.sh: New file.
31550 * tests/unistdio/test-u8-vasprintf1.c: New file.
31551 * tests/unistdio/test-u8-vsnprintf1.c: New file.
31552 * tests/unistdio/test-u8-vsprintf1.c: New file.
31553 * tests/unistdio/test-u16-asnprintf1.c: New file.
31554 * tests/unistdio/test-u16-asnprintf1.h: New file.
31555 * tests/unistdio/test-u16-printf1.h: New file.
31556 * tests/unistdio/test-u16-vasnprintf1.c: New file.
31557 * tests/unistdio/test-u16-vasnprintf2.c: New file.
31558 * tests/unistdio/test-u16-vasnprintf2.sh: New file.
31559 * tests/unistdio/test-u16-vasnprintf3.c: New file.
31560 * tests/unistdio/test-u16-vasnprintf3.sh: New file.
31561 * tests/unistdio/test-u16-vasprintf1.c: New file.
31562 * tests/unistdio/test-u16-vsnprintf1.c: New file.
31563 * tests/unistdio/test-u16-vsprintf1.c: New file.
31564 * tests/unistdio/test-u32-asnprintf1.c: New file.
31565 * tests/unistdio/test-u32-asnprintf1.h: New file.
31566 * tests/unistdio/test-u32-printf1.h: New file.
31567 * tests/unistdio/test-u32-vasnprintf1.c: New file.
31568 * tests/unistdio/test-u32-vasnprintf2.c: New file.
31569 * tests/unistdio/test-u32-vasnprintf2.sh: New file.
31570 * tests/unistdio/test-u32-vasnprintf3.c: New file.
31571 * tests/unistdio/test-u32-vasnprintf3.sh: New file.
31572 * tests/unistdio/test-u32-vasprintf1.c: New file.
31573 * tests/unistdio/test-u32-vsnprintf1.c: New file.
31574 * tests/unistdio/test-u32-vsprintf1.c: New file.
31575 * modules/unistdio/base: New file.
31576 * modules/unistdio/u-printf-args: New file.
31577 * modules/unistdio/ulc-asnprintf: New file.
31578 * modules/unistdio/ulc-asprintf: New file.
31579 * modules/unistdio/ulc-fprintf: New file.
31580 * modules/unistdio/ulc-printf-parse: New file.
31581 * modules/unistdio/ulc-snprintf: New file.
31582 * modules/unistdio/ulc-sprintf: New file.
31583 * modules/unistdio/ulc-vasnprintf: New file.
31584 * modules/unistdio/ulc-vasprintf: New file.
31585 * modules/unistdio/ulc-vfprintf: New file.
31586 * modules/unistdio/ulc-vsnprintf: New file.
31587 * modules/unistdio/ulc-vsprintf: New file.
31588 * modules/unistdio/u8-asnprintf: New file.
31589 * modules/unistdio/u8-asprintf: New file.
31590 * modules/unistdio/u8-printf-parse: New file.
31591 * modules/unistdio/u8-snprintf: New file.
31592 * modules/unistdio/u8-sprintf: New file.
31593 * modules/unistdio/u8-vasnprintf: New file.
31594 * modules/unistdio/u8-vasprintf: New file.
31595 * modules/unistdio/u8-vsnprintf: New file.
31596 * modules/unistdio/u8-vsprintf: New file.
31597 * modules/unistdio/u8-u8-asnprintf: New file.
31598 * modules/unistdio/u8-u8-asprintf: New file.
31599 * modules/unistdio/u8-u8-snprintf: New file.
31600 * modules/unistdio/u8-u8-sprintf: New file.
31601 * modules/unistdio/u8-u8-vasnprintf: New file.
31602 * modules/unistdio/u8-u8-vasprintf: New file.
31603 * modules/unistdio/u8-u8-vsnprintf: New file.
31604 * modules/unistdio/u8-u8-vsprintf: New file.
31605 * modules/unistdio/u16-asnprintf: New file.
31606 * modules/unistdio/u16-asprintf: New file.
31607 * modules/unistdio/u16-printf-parse: New file.
31608 * modules/unistdio/u16-snprintf: New file.
31609 * modules/unistdio/u16-sprintf: New file.
31610 * modules/unistdio/u16-vasnprintf: New file.
31611 * modules/unistdio/u16-vasprintf: New file.
31612 * modules/unistdio/u16-vsnprintf: New file.
31613 * modules/unistdio/u16-vsprintf: New file.
31614 * modules/unistdio/u16-u16-asnprintf: New file.
31615 * modules/unistdio/u16-u16-asprintf: New file.
31616 * modules/unistdio/u16-u16-snprintf: New file.
31617 * modules/unistdio/u16-u16-sprintf: New file.
31618 * modules/unistdio/u16-u16-vasnprintf: New file.
31619 * modules/unistdio/u16-u16-vasprintf: New file.
31620 * modules/unistdio/u16-u16-vsnprintf: New file.
31621 * modules/unistdio/u16-u16-vsprintf: New file.
31622 * modules/unistdio/u32-asnprintf: New file.
31623 * modules/unistdio/u32-asprintf: New file.
31624 * modules/unistdio/u32-printf-parse: New file.
31625 * modules/unistdio/u32-snprintf: New file.
31626 * modules/unistdio/u32-sprintf: New file.
31627 * modules/unistdio/u32-vasnprintf: New file.
31628 * modules/unistdio/u32-vasprintf: New file.
31629 * modules/unistdio/u32-vsnprintf: New file.
31630 * modules/unistdio/u32-vsprintf: New file.
31631 * modules/unistdio/u32-u32-asnprintf: New file.
31632 * modules/unistdio/u32-u32-asprintf: New file.
31633 * modules/unistdio/u32-u32-snprintf: New file.
31634 * modules/unistdio/u32-u32-sprintf: New file.
31635 * modules/unistdio/u32-u32-vasnprintf: New file.
31636 * modules/unistdio/u32-u32-vasprintf: New file.
31637 * modules/unistdio/u32-u32-vsnprintf: New file.
31638 * modules/unistdio/u32-u32-vsprintf: New file.
31639 * modules/unistdio/ulc-asnprintf-tests: New file.
31640 * modules/unistdio/ulc-vasnprintf-tests: New file.
31641 * modules/unistdio/ulc-vasprintf-tests: New file.
31642 * modules/unistdio/ulc-vsnprintf-tests: New file.
31643 * modules/unistdio/ulc-vsprintf-tests: New file.
31644 * modules/unistdio/u8-asnprintf-tests: New file.
31645 * modules/unistdio/u8-vasnprintf-tests: New file.
31646 * modules/unistdio/u8-vasprintf-tests: New file.
31647 * modules/unistdio/u8-vsnprintf-tests: New file.
31648 * modules/unistdio/u8-vsprintf-tests: New file.
31649 * modules/unistdio/u16-asnprintf-tests: New file.
31650 * modules/unistdio/u16-vasnprintf-tests: New file.
31651 * modules/unistdio/u16-vasprintf-tests: New file.
31652 * modules/unistdio/u16-vsnprintf-tests: New file.
31653 * modules/unistdio/u16-vsprintf-tests: New file.
31654 * modules/unistdio/u32-asnprintf-tests: New file.
31655 * modules/unistdio/u32-vasnprintf-tests: New file.
31656 * modules/unistdio/u32-vasprintf-tests: New file.
31657 * modules/unistdio/u32-vsnprintf-tests: New file.
31658 * modules/unistdio/u32-vsprintf-tests: New file.
31659 * MODULES.html.sh (Unicode string functions): Add the new modules.
31661 2007-07-01 Bruno Haible <bruno@clisp.org>
31663 * lib/sprintf.c (sprintf): Limit the available length estimation,
31664 to avoid address wraparound.
31665 * lib/vsprintf.c (vsprintf): Likewise.
31666 * modules/sprintf-posix (Dependencies): Add stdint.
31667 * modules/vsprintf-posix (Dependencies): Likewise.
31669 2007-07-01 Bruno Haible <bruno@clisp.org>
31671 * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
31672 Windows PATH as well. Conservative double-quoting. Comments.
31674 2007-07-01 Bruno Haible <bruno@clisp.org>
31675 Eric Blake <ebb9@byu.net>
31676 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31678 * gnulib-tool (self_abspathname): Fix algorithm to cope with
31679 empty components in $PATH, denoting '.'.
31681 2007-07-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31683 * gnulib-tool: Fix indentation.
31684 (func_create_megatestdir): Likewise.
31685 Report by Bruno Haible.
31687 2007-06-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31689 Sync from Automake.
31690 * build-aux/gnupload: Fix shell portability issues with for loops.
31691 Report by Karl Berry.
31693 2007-06-29 Simon Josefsson <simon@josefsson.org>
31695 * build-aux/maint.mk (POURL): Use translationproject.org.
31697 2007-06-27 Simon Josefsson <simon@josefsson.org>
31698 Bruno Haible <bruno@clisp.org>
31700 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
31701 before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
31702 explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
31703 (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
31704 HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
31706 2007-06-27 Bruno Haible <bruno@clisp.org>
31708 * build-aux/config.rpath: Upgrade to libtool-1.5.24.
31709 * build-aux/config.libpath: Upgrade to libtool-1.5.24.
31711 2007-06-26 Karl Berry <karl@gnu.org>
31713 * MODULES.html.sh: remove xreadlink-with-size.
31715 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
31717 * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
31718 method that I hope also handles the double-include problem noted
31720 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
31722 2007-06-23 Bruno Haible <bruno@clisp.org>
31724 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31725 Don't let the 'mostlyclean' target fail if the last subdirectory could
31727 Reported by Karl Berry.
31729 2007-06-23 Bruno Haible <bruno@clisp.org>
31731 * gnulib-tool (echo): Add a speedier workaround for ksh.
31732 * tests/test-echo.sh: Likewise.
31734 2007-06-23 Bruno Haible <bruno@clisp.org>
31736 * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
31737 * tests/test-echo.sh: Likewise.
31739 2007-06-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31741 * gnulib-tool (IFS): Initialize early, so we don't set it to
31743 (self_abspathname): Rewrite algorithm to set it, reindent.
31744 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
31745 (func_create_megatestdir): Merge some sed scripts.
31747 2007-06-23 Paul Eggert <eggert@cs.ucla.edu>
31749 * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
31750 exposed by Sun Studio 11 cc on Solaris 8.
31752 2007-06-22 Bruno Haible <bruno@clisp.org>
31754 * gnulib-tool (echo): Ensure the echo primitive does not interpret
31756 * tests/test-echo.sh: New file.
31758 2007-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31760 * gnulib-tool (func_add_or_update, func_create_testdir): Do not
31761 simplify `sed_replace_build_aux' scripts, they are portable but
31762 echoing them with `echo' is not.
31763 Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
31765 2007-06-21 Karl Berry <karl@gnu.org>
31767 * config/srclist.txt: guess we can't handle the licenses via
31768 srclist at the moment.
31770 2007-06-21 Paul Eggert <eggert@cs.ucla.edu>
31772 * MODULES.html.sh: Add include_next.
31773 * modules/include_next: New file.
31775 2007-06-20 Paul Eggert <eggert@cs.ucla.edu>
31777 * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
31779 (gl_CHECK_NEXT_HEADERS): New macro.
31780 * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
31781 the obsolescent gl_ABSOLUTE_HEADER.
31782 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
31783 * m4/float_h.m4 (gl_FLOAT_H): Likewise.
31784 * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
31785 * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31786 * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
31787 * m4/math_h.m4 (gl_MATH_H): Likewise.
31788 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
31789 * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31790 * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
31791 * m4/stdint.m4 (gl_STDINT_H): Likewise.
31792 * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
31793 * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
31794 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
31795 * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31796 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
31797 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
31798 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31799 * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
31800 * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
31801 * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
31802 * m4/wchar.m4 (gl_WCHAR_H): Likewise.
31803 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31804 * m4/inttypes.m4 (gl_INTTYPES_H): Define
31805 _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
31806 builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
31807 * m4/stdint.m4 (gl_STDINT_H): Likewise, for
31808 _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
31809 * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
31810 rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
31811 * lib/float_.h: Likewise.
31812 * lib/inttypes_.h: Likewise.
31813 * lib/math_.h: Likewise.
31814 * lib/search_.h: Likewise.
31815 * lib/signal_.h: Likewise.
31816 * lib/stdint_.h: Likewise.
31817 * lib/stdio_.h: Likewise.
31818 * lib/stdlib_.h: Likewise.
31819 * lib/string_.h: Likewise.
31820 * lib/sys_stat_.h: Likewise.
31821 * lib/sys_time_.h: Likewise.
31822 * lib/time_.h: Likewise.
31823 * lib/unistd_.h: Likewise.
31824 * lib/wchar_.h: Likewise.
31825 * lib/wctype_.h: Likewise.
31826 * lib/dirent_.h: Likewise.
31827 * lib/iconv_.h: Likewise.
31828 * lib/locale_.h: Likewise.
31829 * lib/netinet_in_.h: Likewise.
31830 * lib/sys_select_.h: Likewise.
31831 * lib/sys_socket_.h: Likewise.
31832 * lib/sysexits_.h: Likewise.
31833 * modules/fcntl (Depends-on): Depend on include_next, not
31835 (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
31836 HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
31837 * modules/fchdir: Likewise.
31838 * modules/float: Likewise.
31839 * modules/iconv_open: Likewise.
31840 * modules/inttypes: Likewise.
31841 * modules/locale: Likewise.
31842 * modules/math: Likewise.
31843 * modules/netinet_in: Likewise.
31844 * modules/search: Likewise.
31845 * modules/signal: Likewise.
31846 * modules/stdint: Likewise.
31847 * modules/stdio: Likewise.
31848 * modules/stdlib: Likewise.
31849 * modules/string: Likewise.
31850 * modules/sys_select: Likewise.
31851 * modules/sys_socket: Likewise.
31852 * modules/sys_stat: Likewise.
31853 * modules/sys_time: Likewise.
31854 * modules/sysexits: Likewise.
31855 * modules/time: Likewise.
31856 * modules/unistd: Likewise.
31857 * modules/wchar: Likewise.
31858 * modules/wctype: Likewise.
31859 * modules/sys_stat: Change maintainer to "all".
31860 * modules/unistd: Likewise.
31862 2007-06-20 Karl Berry <karl@gnu.org>
31864 * config/srclist.txt: track www changes in license files.
31866 2007-06-20 Sergey Poznyakoff <gray@gnu.org.ua>
31868 * build-aux/bootstrap: Remove stray dot.
31869 Make sure build_aux settings are honored when linking
31870 gnulib_extra_files.
31872 2007-06-19 Eric Blake <ebb9@byu.net>
31874 * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
31875 Allow compilation on cygwin.
31877 2007-06-19 Jim Meyering <jim@meyering.net>
31879 xreadlink-with-size: Remove module. No longer used.
31880 Ex-callers now use xreadlink or mreadlink-with-size.
31881 * modules/xreadlink-with-size: Remove module.
31882 * lib/xreadlink-with-size.c: Remove file.
31883 * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
31884 (xreadlink): Remove inaccurate comment. The one in xreadlink.c,
31885 just before the function definition *is* accurate.
31887 Eliminate one way canonicalize_filename_mode could exit.
31888 * lib/canonicalize.c (canonicalize_filename_mode):
31889 Use mreadlink_with_size, not xreadlink_with_size.
31891 2007-06-18 Paul Eggert <eggert@cs.ucla.edu>
31893 Detect porting problems to FreeBSD/arm, which has time_t wider than
31894 long int. Original problem reported for GNU diff by Xin Li in
31895 <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
31896 * modules/getdate (Depends-on): Add intprops, verify.
31897 * lib/getdate.y: Include intprops.h, verify.h. Verify that time_t
31898 is an integer type no wider than long int.
31900 2007-06-18 Jim Meyering <jim@meyering.net>
31902 New module: mreadlink-with-size.
31903 * MODULES.html.sh: Add mreadlink-with-size.
31904 * modules/mreadlink-with-size: New module
31905 * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
31906 not xreadlink-with-size.
31907 * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
31909 2007-06-16 Bruno Haible <bruno@clisp.org>
31911 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
31912 * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
31913 Reported by Gary V. Vaughan <gary@gnu.org>.
31915 2007-06-15 Paul Eggert <eggert@cs.ucla.edu>
31917 Revamp lchown so that it lives in unistd.h where it belongs.
31918 * lib/lchown.h: Remove.
31919 * lib/dirchownmod.c: Don't include lib/lchown.h.
31920 * lib/fchownat.c: Likewise.
31921 * lib/openat.c: Likewise.
31922 * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
31923 does not follow symlinks.
31924 (EOPNOTSUPP): Define if not defined.
31925 * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
31927 (lchown): New decl.
31928 * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
31929 Do not check for lchown decl.
31930 Set REPLACE_LCHOWN.
31931 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
31933 * modules/chown: Make it clear it follows symlinks.
31934 * modules/lchown: Make it clear it doesn't follow symlinks.
31935 (Files): Remove lib/lchown.h
31936 (Depends-on): Add unistd.
31937 (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
31938 (Include): Include <unistd.h>, not "lchown.h".
31939 * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
31942 2007-06-15 Jim Meyering <jim@meyering.net>
31944 Change license (GPL to LGPL) of fsusage and dependents.
31945 * modules/fsusage (License): Change to LGPL.
31946 * modules/full-read (License): Likewise.
31947 * modules/full-write (License): Likewise.
31948 * modules/safe-read (License): Likewise.
31949 * modules/safe-write (License): Likewise.
31951 2007-06-14 Ben Pfaff <blp@gnu.org>
31953 Missing part of allocsa -> malloca transition.
31954 * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
31957 2007-06-12 Bruno Haible <bruno@clisp.org>
31959 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
31960 to ia64, x86_64, i386.
31961 Reported by Eric Blake.
31963 2007-06-12 Bruno Haible <bruno@clisp.org>
31965 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
31966 cross-compiling to x86_64.
31968 2007-06-12 Paul Eggert <eggert@cs.ucla.edu>
31970 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
31971 glitch reported by Ralf Wildenhues in
31972 <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
31974 * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
31977 2007-06-11 Bruno Haible <bruno@clisp.org>
31979 * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
31980 replacement string.
31981 Reported by Eric Blake.
31983 2007-06-10 Bruno Haible <bruno@clisp.org>
31985 Prepare vasnprintf code for use with Unicode strings.
31986 * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
31987 (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
31989 (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
31990 a_u32_string variants.
31991 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31992 * lib/printf-args.c: Don't include config.h and the specification
31993 header if PRINTF_FETCHARGS is already defined.
31994 (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
31995 (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
31996 TYPE_U16_STRING, TYPE_U32_STRING.
31997 * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
31998 u16_directive, u16_directives, u32_directive, u32_directives): New
32000 (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
32002 * lib/printf-parse.c: Don't include config.h and the specification
32003 header if PRINTF_PARSE is already defined. Eliminate the set of
32004 parameters for WIDE_CHAR_VERSION; the user of this file must provide
32005 them now. Include c-ctype.h.
32006 (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
32007 directive and CHAR_T_ONLY_ASCII.
32008 * lib/vasnprintf.c: Don't include config.h and the specification header
32009 if VASNPRINTF is already defined.
32010 (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
32011 (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
32012 DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
32013 type. Handle the case that TCHAR_T and FCHAR_T are not of the same
32014 size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
32015 add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
32017 (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
32018 pad_ourselves also in this case, with the 'c' and 's' directives, and
32019 with a different notion of "width".
32020 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
32022 2007-06-10 Bruno Haible <bruno@clisp.org>
32024 * modules/unistr/u32-mbsnlen: New file.
32025 * lib/unistr/u32-mbsnlen.c: New file.
32027 * modules/unistr/u16-mbsnlen: New file.
32028 * lib/unistr/u16-mbsnlen.c: New file.
32030 * modules/unistr/u8-mbsnlen: New file.
32031 * lib/unistr/u8-mbsnlen.c: New file.
32033 * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
32036 2007-06-10 Bruno Haible <bruno@clisp.org>
32038 * lib/string_.h (mbsnlen): New declaration.
32039 * lib/mbsnlen.c: New file.
32040 * m4/mbsnlen.m4: New file.
32041 * modules/mbsnlen: New file.
32042 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
32043 * modules/string (string.h): Substitute GNULIB_MBSNLEN.
32044 * MODULES.html.sh (Internationalization functions): Add mbsnlen.
32046 2007-06-10 Bruno Haible <bruno@clisp.org>
32048 * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
32050 2007-06-10 Bruno Haible <bruno@clisp.org>
32052 * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
32053 * lib/mbuiter.h: Likewise.
32055 2007-06-10 Bruno Haible <bruno@clisp.org>
32057 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
32060 2007-06-10 Karl Berry <karl@gnu.org>
32062 * config/srclist.txt: remove gettext entries, Bruno prefers
32063 to update individually.
32065 2007-06-10 Bruno Haible <bruno@clisp.org>
32067 * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
32068 'maxlen'. Ensure only length + width bytes are allocated, not
32069 length + 1 + width.
32071 2007-06-09 Bruno Haible <bruno@clisp.org>
32073 * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
32074 (CHAR_T): Remove macro.
32075 (VASNPRINTF): Update.
32077 2007-06-09 Bruno Haible <bruno@clisp.org>
32079 * MODULES.html.sh (Unicode string functions): Add the new modules.
32081 * modules/uniconv/u32-conv-to-enc: New file.
32082 * lib/uniconv/u32-conv-to-enc.c: New file.
32083 * modules/uniconv/u32-conv-to-enc-tests: New file.
32084 * tests/uniconv/test-u32-conv-to-enc.c: New file.
32086 * modules/uniconv/u16-conv-to-enc: New file.
32087 * lib/uniconv/u16-conv-to-enc.c: New file.
32088 * lib/uniconv/u-conv-to-enc.h: New file.
32089 * modules/uniconv/u16-conv-to-enc-tests: New file.
32090 * tests/uniconv/test-u16-conv-to-enc.c: New file.
32092 * modules/uniconv/u8-conv-to-enc: New file.
32093 * lib/uniconv/u8-conv-to-enc.c: New file.
32094 * modules/uniconv/u8-conv-to-enc-tests: New file.
32095 * tests/uniconv/test-u8-conv-to-enc.c: New file.
32097 * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
32098 u32_conv_to_encoding): New declarations.
32100 2007-06-09 Bruno Haible <bruno@clisp.org>
32102 * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
32104 2007-06-09 Bruno Haible <bruno@clisp.org>
32106 Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
32107 * modules/malloca: Renamed from modules/allocsa, updated.
32108 * lib/malloca.h: Renamed from lib/allocsa.h, updated.
32109 * lib/malloca.c: Renamed from lib/allocsa.c, updated.
32110 * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
32111 * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
32112 * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
32113 * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
32114 * modules/xmalloca: Renamed from modules/xallocsa, updated.
32115 * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
32116 * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
32117 * modules/c-strcasestr (Depends-on): Update.
32118 * lib/c-strcasestr.c: Update.
32119 * modules/c-strstr (Depends-on): Update.
32120 * lib/c-strstr.c: Update.
32121 * modules/canonicalize-lgpl (Depends-on): Update.
32122 * lib/canonicalize-lgpl.c: Update.
32123 * modules/clean-temp (Depends-on): Update.
32124 * lib/clean-temp.c: Update.
32125 * modules/csharpcomp (Depends-on): Update.
32126 * lib/csharpcomp.c: Update.
32127 * modules/csharpexec (Depends-on): Update.
32128 * lib/csharpexec.c: Update.
32129 * modules/javacomp (Depends-on): Update.
32130 * lib/javacomp.c: Update.
32131 * modules/javaexec (Depends-on): Update.
32132 * lib/javaexec.c: Update.
32133 * modules/mbscasestr (Depends-on): Update.
32134 * lib/mbscasestr.c: Update.
32135 * modules/mbsstr (Depends-on): Update.
32136 * lib/mbsstr.c: Update.
32137 * modules/setenv (Depends-on): Update.
32138 * lib/setenv.c: Update.
32139 * modules/strcasestr (Depends-on): Update.
32140 * lib/strcasestr.c: Update.
32141 * modules/striconveha (Depends-on): Update.
32142 * lib/striconveha.c: Update.
32143 * modules/relocatable-prog-wrapper (Files): Update.
32144 * lib/relocwrapper.c: Update.
32145 * build-aux/install-reloc: Update.
32146 * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
32148 2007-06-08 Bruno Haible <bruno@clisp.org>
32151 * lib/fbufmode.c (fbufmode): Add special code for uClibc.
32152 * lib/fpurge.c (fpurge): Likewise.
32153 * lib/freading.c (freading): Likewise.
32154 * lib/fseeko.c (rpl_fseeko): Likewise.
32155 * lib/fseterr.c (fseterr): Likewise.
32156 * lib/fwriting.c (fwriting): Likewise.
32157 * tests/test-fflush.c (main): Avoid a failure on uClibc.
32159 2007-06-08 Bruno Haible <bruno@clisp.org>
32161 * m4/intlmacosx.m4: New file, extracted from gettext.m4.
32162 * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
32163 * modules/gettext (Files): Add m4/intlmacosx.m4.
32165 2007-06-07 Bruno Haible <bruno@clisp.org>
32167 * modules/localename-tests: New file.
32168 * tests/test-localename.c: New file.
32170 New module 'localename'.
32171 * lib/localename.h: New file.
32172 * lib/localename.c: New file, from GNU gettext.
32173 * m4/localename.m4: New file.
32174 * modules/localename: New file.
32176 2007-06-07 Bruno Haible <bruno@clisp.org>
32178 Work around the lack of <wchar.h> on some builds of uClibc.
32179 * doc/headers/wchar.texi: Update.
32180 * lib/wchar_.h: Include <wchar.h> only if it exists.
32181 * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
32182 * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
32183 (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
32185 * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
32186 * modules/mbfile (Depends-on): Add wchar.
32187 * modules/mbiter (Depends-on): Likewise.
32188 * modules/mbuiter (Depends-on): Likewise.
32189 Reported by Simon Josefsson.
32191 2007-06-06 Paul Eggert <eggert@cs.ucla.edu>
32193 Work around problem reported by Steven M. Schweda in
32194 <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
32195 Tru64 5.1B with the Compaq compiler environment installed declares
32196 an 'isblank' function but does not define it in the C library.
32197 * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
32198 * lib/regex_internal.h (isblank): Likewise.
32199 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
32200 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32202 2007-06-05 Bruno Haible <bruno@clisp.org>
32204 Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
32206 * modules/printf-safe: New file.
32207 * modules/fprintf-posix (Depends-on): Add printf-safe.
32208 * modules/printf-posix (Depends-on): Likewise.
32209 * modules/snprintf-posix (Depends-on): Likewise.
32210 * modules/sprintf-posix (Depends-on): Likewise.
32211 * modules/vasnprintf-posix (Depends-on): Likewise.
32212 * modules/vasprintf-posix (Depends-on): Likewise.
32213 * modules/vfprintf-posix (Depends-on): Likewise.
32214 * modules/vprintf-posix (Depends-on): Likewise.
32215 * modules/vsnprintf-posix (Depends-on): Likewise.
32216 * modules/vsprintf-posix (Depends-on): Likewise.
32217 * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
32218 AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
32219 non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
32220 "no" on i386, x86_64, ia64.
32221 * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
32222 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32223 on i386, x86_64, ia64.
32224 * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
32225 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32226 on i386, x86_64, ia64.
32227 * tests/test-vasnprintf-posix.c: Include float.h.
32228 (LDBL80_WORDS): New macro.
32229 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32230 on i386, x86_64, ia64.
32231 * tests/test-vasprintf-posix.c: Include float.h.
32232 (LDBL80_WORDS): New macro.
32233 (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
32234 on i386, x86_64, ia64.
32235 * tests/test-snprintf-posix.c: Include float.h.
32236 * tests/test-sprintf-posix.c: Likewise.
32237 * tests/test-vsnprintf-posix.c: Likewise.
32238 * tests/test-vsprintf-posix.c: Likewise.
32240 2007-06-05 Bruno Haible <bruno@clisp.org>
32242 Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
32243 * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
32244 non-IEEE numbers on i386, x86_64, ia64.
32245 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
32246 * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
32247 * tests/test-isnanl.h: Include float.h.
32248 (main): Check also non-IEEE numbers on i386, x86_64, ia64.
32250 2007-06-05 Bruno Haible <bruno@clisp.org>
32252 * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
32253 also the %a / %A. Handle the %a / %A code before this extra handling.
32255 2007-06-05 Bruno Haible <bruno@clisp.org>
32257 * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
32258 NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
32260 2007-06-05 Bruno Haible <bruno@clisp.org>
32262 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
32263 typo in variable name.
32265 2007-06-05 Eric Blake <ebb9@byu.net>
32267 * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
32268 Reported by Simon Josefsson.
32270 2007-06-04 Bruno Haible <bruno@clisp.org>
32272 Avoid test failures on some PowerPC platforms.
32273 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
32274 Define differently for PowerPC.
32275 * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
32276 Reported by Gary V. Vaughan <gary@gnu.org>.
32278 2007-06-02 Bruno Haible <bruno@clisp.org>
32280 Fix test-stdint failure on FreeBSD/ia64.
32281 * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
32282 PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
32283 WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
32284 * doc/headers/stdint.texi: Update.
32286 2007-06-01 Bruno Haible <bruno@clisp.org>
32288 * tests/test-binary-io.c (main): Pass a third argument to open().
32289 Reported by Gary V. Vaughan <gary@gnu.org>.
32291 2007-06-01 Bruno Haible <bruno@clisp.org>
32293 * doc/functions/frexpl.texi: Update for mingw.
32295 2007-06-01 Bruno Haible <bruno@clisp.org>
32297 * tests/test-lseek.c (main): Disable test of errno for invalid third
32299 * doc/functions/lseek.texi: Update.
32300 Reported by Gary V. Vaughan <gary@gnu.org>.
32302 2007-05-28 Bruno Haible <bruno@clisp.org>
32304 * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
32306 2007-05-31 Eric Blake <ebb9@byu.net>
32308 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
32311 2007-05-30 Eric Blake <ebb9@byu.net>
32312 and Bruno Haible <bruno@clisp.org>
32314 Work around mingw test failures exposed by m4-1.4.9b.
32315 * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
32316 * tests/test-unistd.c: Disable uid_t and git_t tests for the
32319 2007-05-30 Bruno Haible <bruno@clisp.org>
32321 * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
32322 assuming that they are closed. Needed on HP-UX 11.
32324 2007-05-29 Bruno Haible <bruno@clisp.org>
32326 Fix a problem with #include_next.
32327 * lib/dirent_.h: Split the double-inclusion guard.
32328 * lib/fcntl_.h: Likewise.
32329 * lib/float_.h: Likewise.
32330 * lib/iconv_.h: Likewise.
32331 * lib/inttypes_.h: Likewise.
32332 * lib/locale_.h: Likewise.
32333 * lib/math_.h: Likewise.
32334 * lib/netinet_in_.h: Likewise.
32335 * lib/search_.h: Likewise.
32336 * lib/signal_.h: Likewise.
32337 * lib/stdint_.h: Likewise.
32338 * lib/stdio_.h: Likewise.
32339 * lib/stdlib_.h: Likewise.
32340 * lib/string_.h: Likewise.
32341 * lib/sys_select_.h: Likewise.
32342 * lib/sys_socket_.h: Likewise.
32343 * lib/sys_stat_.h: Likewise.
32344 * lib/sys_time_.h: Likewise.
32345 * lib/sysexits_.h: Likewise.
32346 * lib/time_.h: Likewise.
32347 * lib/unistd_.h: Likewise.
32348 * lib/wchar_.h: Likewise.
32349 * lib/wctype_.h: Likewise.
32351 2007-05-29 Bruno Haible <bruno@clisp.org>
32353 * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
32356 2007-05-29 Bruno Haible <bruno@clisp.org>
32358 * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
32360 Reported by Eric Blake.
32362 2007-05-29 Bruno Haible <bruno@clisp.org>
32364 * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
32367 2007-05-29 Eric Blake <ebb9@byu.net>
32368 Bruno Haible <bruno@clisp.org>
32370 * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
32373 2007-05-28 Eric Blake <ebb9@byu.net>
32375 * modules/closein-tests (test_closein_LDADD): Support test on
32376 cygwin with libtool.
32378 2007-05-28 Bruno Haible <bruno@clisp.org>
32380 * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
32381 * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32382 * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32383 * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32384 * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32385 * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32386 * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32387 * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32388 * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32390 2007-05-28 Eric Blake <ebb9@byu.net>
32392 Unconditionally include <config.h> in unit tests.
32393 * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
32394 * tests/test-allocsa.c, tests/test-arcfour.c,
32395 tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
32396 tests/test-array_list.c, tests/test-array_oset.c,
32397 tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
32398 test-avltreehash_list.c, test-base64.c, test-binary-io.c,
32399 test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
32400 test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
32401 test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
32402 test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
32403 test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
32404 test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
32405 test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
32406 test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
32407 test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
32408 test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
32409 test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
32410 test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
32411 test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
32412 test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
32413 test-md5.c, test-memmem.c, test-printf-posix.c,
32414 test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
32415 test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
32416 test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
32417 test-strcasestr.c, test-striconv.c, test-striconveh.c,
32418 test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
32419 test-vasnprintf-posix2.c, test-vasnprintf.c,
32420 test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
32421 test-vfprintf-posix.c, test-vprintf-posix.c,
32422 test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
32423 test-xvasprintf.c: Likewise.
32425 2007-05-28 Bruno Haible <bruno@clisp.org>
32427 * gnulib-tool (func_import): Remember the --with-tests command-line
32428 option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
32429 Reported by Eric Blake.
32431 2007-05-28 Bruno Haible <bruno@clisp.org>
32433 * modules/ftell-tests: New file.
32434 * tests/test-ftell.c: New file, based on tests/test-ftello.c.
32435 * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
32437 * lib/ftell.c: New file.
32438 * modules/ftell: New file.
32439 * m4/ftell.m4: New file.
32440 * doc/functions/ftell.texi: Update.
32441 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
32443 * lib/stdio_.h (rpl_ftell): New declaration.
32444 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
32447 2007-05-28 Eric Blake <ebb9@byu.net>
32449 * lib/allocsa.h (safe_alloca): Avoid compiler warning.
32451 2007-05-28 Bruno Haible <bruno@clisp.org>
32453 * modules/fseek-tests: New file.
32454 * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
32455 * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
32457 * lib/fseek.c: New file.
32458 * modules/fseek: New file.
32459 * m4/fseek.m4: New file.
32460 * doc/functions/fseek.texi: Update.
32461 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
32463 * lib/stdio_.h (rpl_fseek): New declaration.
32464 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
32467 2007-05-28 Bruno Haible <bruno@clisp.org>
32469 * lib/stdio_.h (fflush): More comments.
32471 2007-05-28 Bruno Haible <bruno@clisp.org>
32473 * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
32476 2007-05-28 Eric Blake <ebb9@byu.net>
32478 Improve lseek module.
32479 * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
32480 * lib/unistd_.h (lseek): Scale back link warning message.
32481 * tests/test-lseek.c: Beef up test.
32482 * tests/test-lseek.sh: Exercise more facets of lseek.
32483 Reported by Bruno Haible.
32485 2007-05-28 Bruno Haible <bruno@clisp.org>
32487 * tests/test-unistd.c: Test all the types that <unistd.h> is expected
32490 2007-05-27 Bruno Haible <bruno@clisp.org>
32492 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
32494 2007-05-27 Bruno Haible <bruno@clisp.org>
32496 * modules/openmp: New file.
32497 * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
32500 2007-05-26 Bruno Haible <bruno@clisp.org>
32502 * modules/chdir-long (Depends-on): Add fchdir.
32503 * modules/chdir-safer (Depends-on): Likewise.
32504 * modules/fts (Depends-on): Likewise.
32505 * modules/fts-lgpl (Depends-on): Likewise.
32506 * modules/openat (Depends-on): Likewise.
32507 * modules/savewd (Depends-on): Likewise.
32509 2007-05-24 Eric Blake <ebb9@byu.net>
32511 Fix lseek on mingw.
32512 * modules/lseek: New module.
32513 * m4/lseek.m4: New file.
32514 * lib/lseek.c: New file.
32515 * modules/lseek-tests: New file.
32516 * tests/test-lseek.c: New file.
32517 * tests/test-lseek.sh: New file.
32518 * MODULES.html.sh: Document lseek module.
32519 * modules/fflush (Depends-on): Add lseek, fseeko.
32520 * modules/fseeko (Depends-on): Likewise.
32521 * modules/ftello (Depends-on): Likewise.
32522 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
32524 * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
32526 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
32527 * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
32528 * lib/ftello.c (rpl_ftello): Likewise.
32529 * tests/test-fseeko.c (main): Test this.
32530 * tests/test-fseeko.sh: Likewise.
32531 * tests/test-ftello.c (main): Likewise.
32532 * tests/test-ftello.sh: Likewise.
32533 * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
32534 implies replacing fseek.
32535 * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
32537 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
32538 * modules/unistd (Makefile.am): Likewise.
32539 * lib/unistd_.h (lseek): Declare a replacement.
32540 * doc/functions/lseek.texi (lseek): Document this fix.
32541 * doc/functions/fseek.texi (fseek): Likewise.
32542 * doc/functions/ftell.texi (ftell): Likewise.
32544 2007-05-24 Bruno Haible <bruno@clisp.org>
32546 * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
32547 in the printed representation of a NaN.
32548 * tests/test-vasprintf-posix.c (test_function): Likewise.
32549 * tests/test-snprintf-posix.h (test_function): Likewise.
32550 * tests/test-sprintf-posix.h (test_function): Likewise.
32551 Reported by Eric Blake.
32553 2007-05-23 Eric Blake <ebb9@byu.net>
32555 Fix fseeko/ftello on cygwin 1.5.24.
32556 * doc/functions/fseeko.texi (fseeko): Document the fix.
32557 * doc/functions/ftello.texi (ftello): Document the fix.
32558 * doc/functions/stdin.texi (stdin): Document the cygwin bug.
32559 * doc/functions/stdout.text (stdout): New file.
32560 * doc/functions/stderr.text (stderr): New file.
32561 * doc/gnulib.texi (Function Substitutes): Use new files.
32562 * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
32564 * tests/test-ftello.c (main): Likewise for ftello.
32565 * tests/test-fseeko.sh: New file.
32566 * tests/test-ftello.sh: New file.
32567 * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
32568 with seekable stdin.
32569 * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
32570 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
32571 (gl_REPLACE_FSEEKO): New macro.
32572 * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
32573 * modules/fseeko (Files): Distribute fseeko.c.
32574 * modules/ftello (Files): Distribute ftello.c.
32575 * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
32577 * lib/ftello.c (rpl_ftello): New file.
32578 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
32580 (gl_STDIN_LARGE_OFFSET): New macro.
32581 * modules/stdio (Makefile.am): Perform the replacement.
32582 * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
32584 2007-05-23 Bruno Haible <bruno@clisp.org>
32586 * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
32587 GNULIB_POSIXCHECK is defined.
32589 2007-05-21 Bruno Haible <bruno@clisp.org>
32591 * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
32592 Check also the output for NaN arguments. When cross-compiling, guess
32594 * lib/vasnprintf.c: Update comments.
32595 * tests/test-vasnprintf-posix.c (strisnan): New function.
32596 (test_function): Use it.
32597 * tests/test-vasprintf-posix.c (strisnan): New function.
32598 (test_function): Use it.
32599 * tests/test-snprintf-posix.h (strisnan): New function.
32600 (test_function): Use it.
32601 * tests/test-sprintf-posix.h (strisnan): New function.
32602 (test_function): Use it.
32603 Reported by Eric Blake.
32605 2007-05-20 Bruno Haible <bruno@clisp.org>
32607 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
32608 numbers that fails on BeOS.
32609 * doc/functions/frexpl.texi: Update.
32611 2007-05-20 Jim Meyering <jim@meyering.net>
32613 * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
32614 forced upon us by glibc-2.6.
32616 2007-05-20 Bruno Haible <bruno@clisp.org>
32618 Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
32619 * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
32620 (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
32621 * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
32622 NEED_PRINTF_INFINITE.
32623 (is_infinitel): New function.
32624 (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
32625 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
32626 gl_PREREQ_VASNPRINTF_INFINITE.
32627 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
32628 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32629 gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
32630 gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
32631 gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
32632 gl_PREREQ_VASNPRINTF_INFINITE.
32633 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32634 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32635 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32636 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32637 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32638 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32639 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32640 * doc/functions/fprintf.texi: Update.
32641 * doc/functions/printf.texi: Update.
32642 * doc/functions/snprintf.texi: Update.
32643 * doc/functions/sprintf.texi: Update.
32644 * doc/functions/vfprintf.texi: Update.
32645 * doc/functions/vprintf.texi: Update.
32646 * doc/functions/vsnprintf.texi: Update.
32647 * doc/functions/vsprintf.texi: Update.
32649 2007-05-20 Bruno Haible <bruno@clisp.org>
32651 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
32652 was not found in libc.
32653 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
32655 2007-05-20 Bruno Haible <bruno@clisp.org>
32657 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32658 printed as "-nan" instead of "nan".
32659 * tests/test-vasprintf-posix.c (test_function): Likewise.
32660 * tests/test-snprintf-posix.h (test_function): Likewise.
32661 * tests/test-sprintf-posix.h (test_function): Likewise.
32662 Needed for HP-UX 11.
32664 2007-05-20 Jim Meyering <jim@meyering.net>
32666 Fix buggy test for the fchownat-deref bug.
32667 * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
32668 symlink required for the run-test. Without it, this test would
32669 always declare that fchownat doesn't work, and client code would
32670 unnecessarily use the replacement function with fixed libc.
32671 (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
32672 Reported by Greg Schafer.
32674 2007-05-19 Bruno Haible <bruno@clisp.org>
32676 * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
32677 (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
32678 * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
32679 Needed for IRIX 6.5 and Solaris 2.5.1.
32681 2007-05-19 Bruno Haible <bruno@clisp.org>
32683 * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
32684 (test_function): Skip tests involving -0.0 on platforms where
32686 * tests/test-vasprintf-posix.c (have_minus_zero): New function.
32687 (test_function): Skip tests involving -0.0 on platforms where
32689 * tests/test-snprintf-posix.h (have_minus_zero): New function.
32690 (test_function): Skip tests involving -0.0 on platforms where
32692 * tests/test-sprintf-posix.h (have_minus_zero): New function.
32693 (test_function): Skip tests involving -0.0 on platforms where
32695 * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
32697 * tests/test-printf-posix.h (test_function): Likewise.
32698 * tests/test-printf-posix.output: Remove all -0.0 related results.
32699 Needed for IRIX 6.5.
32701 2007-05-19 Bruno Haible <bruno@clisp.org>
32703 * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
32704 printed as "nan0x7fffffff" instead of "nan".
32705 * tests/test-vasprintf-posix.c (test_function): Likewise.
32706 * tests/test-snprintf-posix.h (test_function): Likewise.
32707 * tests/test-sprintf-posix.h (test_function): Likewise.
32708 * tests/test-fprintf-posix.h (NaN): Remove macro.
32709 (test_function): Remove all NaN related tests.
32710 * tests/test-printf-posix.h (NaN): Remove macro.
32711 (test_function): Remove all NaN related tests.
32712 * tests/test-printf-posix.output: Remove all NaN related results.
32713 Needed for IRIX 6.5.
32715 2007-05-19 Bruno Haible <bruno@clisp.org>
32717 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
32718 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
32720 2007-05-19 Bruno Haible <bruno@clisp.org>
32722 * lib/float_.h: New file.
32723 * m4/float_h.m4: New file.
32724 * modules/float: New file.
32725 * modules/isnanl (Dependencies): Add float.
32726 * modules/isnanl-nolibm (Dependencies): Likewise.
32727 * modules/mathl (Dependencies): Likewise.
32728 * modules/printf-frexpl (Dependencies): Likewise.
32729 * modules/signbit (Dependencies): Likewise.
32730 * modules/vasnprintf (Dependencies): Likewise.
32731 * doc/headers/float.texi: Update.
32733 2007-05-19 Jim Meyering <jim@meyering.net>
32735 * lib/utimens.c (gl_futimens): Rename from futimens,
32736 now that glibc-2.6 declares futimens.
32737 * lib/utimens.h: Likewise.
32739 2007-05-19 Bruno Haible <bruno@clisp.org>
32741 Avoid test failures on mingw.
32742 * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
32743 * tests/test-printf-posix.sh: Likewise.
32744 * tests/test-vfprintf-posix.sh: Likewise.
32745 * tests/test-vprintf-posix.sh: Likewise.
32747 2007-05-19 Bruno Haible <bruno@clisp.org>
32749 Fix *printf result for NaN, Inf, -0.0 on mingw.
32750 * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
32751 * lib/vasnprintf.c: Include math.h and isnan.h.
32752 (is_infinite_or_zero): New function.
32753 (VASNPRINTF): Fix also the handling of infinite or zero 'double'
32754 values in the %f, %F, %e, %E, %g, %G directives.
32755 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
32756 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32757 gl_PRINTF_INFINITE and test its result. Invoke
32758 gl_PREREQ_VASNPRINTF_INFINITE.
32759 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32760 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32761 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32762 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32763 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32764 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32765 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32766 * doc/functions/fprintf.texi: Update.
32767 * doc/functions/printf.texi: Update.
32768 * doc/functions/snprintf.texi: Update.
32769 * doc/functions/sprintf.texi: Update.
32770 * doc/functions/vfprintf.texi: Update.
32771 * doc/functions/vprintf.texi: Update.
32772 * doc/functions/vsnprintf.texi: Update.
32773 * doc/functions/vsprintf.texi: Update.
32775 2007-05-19 Bruno Haible <bruno@clisp.org>
32777 * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
32778 (scale10_round_decimal_long_double): Inline scale10_round_long_double.
32779 Instead of multiplying with 10^k, set extra_zeroes to k.
32780 (scale10_round_long_double): Remove function.
32782 2007-05-18 Bruno Haible <bruno@clisp.org>
32784 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
32785 introduced on 2007-05-06.
32787 2007-05-18 Bruno Haible <bruno@clisp.org>
32789 * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
32791 * tests/test-vasprintf-posix.c (test_function): Likewise.
32792 * tests/test-snprintf-posix.h (test_function): Likewise.
32793 * tests/test-sprintf-posix.h (test_function): Likewise.
32795 2007-05-18 Bruno Haible <bruno@clisp.org>
32797 * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
32798 (strmatch): New function.
32799 (test_function): Test the %f directive on numbers of various exponents.
32800 * tests/test-vasprintf-posix.c (SIZEOF): New macro.
32801 (strmatch): New function.
32802 (test_function): Test the %f directive on numbers of various exponents.
32803 * tests/test-snprintf-posix.h (strmatch): New function.
32804 (test_function): Test the %f directive on numbers of various exponents.
32805 * tests/test-sprintf-posix.h (strmatch): New function.
32806 (test_function): Test the %f directive on numbers of various exponents.
32807 * tests/test-snprintf-posix.c (SIZEOF): New macro.
32808 * tests/test-sprintf-posix.c (SIZEOF): New macro.
32809 * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
32810 * tests/test-vsprintf-posix.c (SIZEOF): New macro.
32812 2007-05-18 Bruno Haible <bruno@clisp.org>
32814 Add support for 'long double' number output.
32815 * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
32816 * lib/vasnprintf.c: Include math.h and float+.h.
32817 (mp_limb_t): New type.
32818 (GMP_LIMB_BITS): New macro.
32819 (mp_twolimb_t): New type.
32820 (GMP_TWOLIMB_BITS): New macro.
32822 (multiply, divide, convert_to_decimal, decode_long_double,
32823 scale10_round_long_double, scale10_round_decimal_long_double,
32824 floorlog10l): New functions.
32825 (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
32826 for the %f, %F, %e, %E, %g, %G directives.
32827 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
32828 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
32829 gl_PRINTF_LONG_DOUBLE and test its result. Invoke
32830 gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
32831 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
32832 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
32833 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
32834 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
32835 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
32836 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
32837 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
32838 * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
32839 * modules/snprintf-posix (Depends-on): Likewise.
32840 * modules/sprintf-posix (Depends-on): Likewise.
32841 * modules/vasnprintf-posix (Depends-on): Likewise.
32842 * modules/vasprintf-posix (Depends-on): Likewise.
32843 * modules/vfprintf-posix (Depends-on): Likewise.
32844 * modules/vsnprintf-posix (Depends-on): Likewise.
32845 * modules/vsprintf-posix (Depends-on): Likewise.
32846 * modules/vasnprintf (Files): Add lib/float+.h.
32847 * doc/functions/fprintf.texi: Update.
32848 * doc/functions/printf.texi: Update.
32849 * doc/functions/snprintf.texi: Update.
32850 * doc/functions/sprintf.texi: Update.
32851 * doc/functions/vfprintf.texi: Update.
32852 * doc/functions/vprintf.texi: Update.
32853 * doc/functions/vsnprintf.texi: Update.
32854 * doc/functions/vsprintf.texi: Update.
32856 2007-05-18 Bruno Haible <bruno@clisp.org>
32858 * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
32860 2007-05-18 Bruno Haible <bruno@clisp.org>
32862 * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
32863 for printing 64-bit integers. Needed for mingw.
32865 2007-05-18 Bruno Haible <bruno@clisp.org>
32867 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
32868 gl_FUNC_FREXPL_WORKS.
32869 * modules/printf-frexpl (Files): Add m4/frexpl.m4.
32871 2007-05-18 Bruno Haible <bruno@clisp.org>
32873 * modules/frexpl-nolibm-tests: New file.
32875 * modules/frexpl-nolibm: New file.
32876 * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
32878 2007-05-17 Paul Eggert <eggert@cs.ucla.edu>
32880 * lib/dirent_.h: Prefer #include_next <foo.h> to #include
32881 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
32882 GCC 4.2, which otherwise issues a lot of warnings.
32883 * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
32884 * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
32886 * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
32887 * modules/iconv_open (iconv.h): Likewise.
32888 * modules/locale (locale.h): Likewise.
32889 * modules/netinet_in (netinet/in.h): Likewise.
32890 * modules/sys_select (sys_select.h): Likewise.
32891 * modules/sys_socket (sys/socket.h): Likewise.
32892 * modules/sys_stat (sys/stat.h): Likewise.
32893 * modules/sysexits (sysexits.h): Likewise.
32894 * modules/unistd (unistd.h): Likewise.
32896 2007-05-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32898 * modules/closein-tests (Makefile.am): Distribute
32901 2007-05-17 Bruno Haible <bruno@clisp.org>
32903 * tests/test-printf-posix.output: Renamed from
32904 tests/test-fprintf-posix.out.
32905 * modules/fprintf-posix-tests: Update.
32906 * modules/printf-posix-tests: Update.
32907 * modules/vfprintf-posix-tests: Update.
32908 * modules/vprintf-posix-tests: Update.
32909 * tests/test-fprintf-posix.sh: Update.
32910 * tests/test-printf-posix.sh: Update.
32911 * tests/test-vfprintf-posix.sh: Update.
32912 * tests/test-vprintf-posix.sh: Update.
32913 Reported by Ralf Wildenhues.
32915 2007-05-16 Paul Eggert <eggert@cs.ucla.edu>
32917 * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
32918 @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@. This works better with
32919 GCC 4.2, which otherwise issues a lot of warnings.
32920 * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
32921 * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
32922 * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
32923 * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
32924 it should no longer be needed.
32925 * lib/string_.h: Likewise.
32926 * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
32927 * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
32928 * modules/inttypes (inttypes.h): Likewise.
32929 * modules/math (math.h): Likewise.
32930 * modules/search (search.h): Likewise.
32931 * modules/signal (signal.h): Likewise.
32932 * modules/stdint (stdint.h): Likewise.
32933 * modules/stdio (stdio.h): Likewise.
32934 * modules/stdlib (stdlib.h): Likewise.
32935 * modules/string (string.h): Likewise.
32936 * modules/sys_time (sys/time.h): Likewise.
32937 * modules/time (time.h): Likewise.
32938 * modules/wchar (wchar.h): Likewise.
32939 * modules/wctype (wtype.h): Likewise.
32941 2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
32943 * doc/gnulib-tool.texi (CVS Issues): Fix typo.
32945 2007-05-13 Bruno Haible <bruno@clisp.org>
32947 * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
32948 * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
32949 * strsep.m4 (gl_FUNC_STRSEP): Likewise.
32950 * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
32951 (gl_PREREQ_STRTOK_R): Don't require it here.
32953 2007-05-13 Bruno Haible <bruno@clisp.org>
32955 * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
32956 when used in C++ mode.
32958 2007-05-12 Bruno Haible <bruno@clisp.org>
32960 * lib/linebuffer.h: Tweak doc.
32961 * lib/linebuffer.c: Likewise.
32963 2007-05-12 James Youngman <jay@gnu.org>
32965 * lib/linebuffer.c (readlinebuffer_delim): New function,
32966 like readlinebuffer, but use a caller-specified delimiter.
32967 (readlinebuffer): Just call readlinebuffer_delim with '\n'
32969 * lib/linebuffer.h (readlinebuffer_delim): Declare it.
32971 2007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
32973 * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
32974 * modules/openat (Files): Remove openat-die.c.
32975 (Depends-on): Add openat-die.
32976 * modules/openat-die: New module.
32978 2007-05-06 Bruno Haible <bruno@clisp.org>
32980 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
32981 Update with info about Cygwin.
32982 * doc/functions/fprintf.texi: Update.
32983 * doc/functions/printf.texi: Update.
32984 * doc/functions/snprintf.texi: Update.
32985 * doc/functions/sprintf.texi: Update.
32986 * doc/functions/vfprintf.texi: Update.
32987 * doc/functions/vprintf.texi: Update.
32988 * doc/functions/vsnprintf.texi: Update.
32989 * doc/functions/vsprintf.texi: Update.
32990 Reported by Eric Blake.
32992 2007-05-06 Bruno Haible <bruno@clisp.org>
32994 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
32995 padding ourselves for the floating-point directives.
32996 * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
32997 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
32998 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
32999 gl_PRINTF_FLAG_ZERO and test its result. Invoke
33000 gl_PREREQ_VASNPRINTF_FLAG_ZERO.
33001 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33002 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33003 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33004 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33005 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33006 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33007 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33008 * tests/test-snprintf-posix.h (test_function): Also check the width
33009 and some flags in the %f directive.
33010 * tests/test-sprintf-posix.h (test_function): Likewise.
33011 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33012 * tests/test-vasprintf-posix.c (test_function): Likewise.
33013 * doc/functions/fprintf.texi: Update.
33014 * doc/functions/printf.texi: Update.
33015 * doc/functions/snprintf.texi: Update.
33016 * doc/functions/sprintf.texi: Update.
33017 * doc/functions/vfprintf.texi: Update.
33018 * doc/functions/vprintf.texi: Update.
33019 * doc/functions/vsnprintf.texi: Update.
33020 * doc/functions/vsprintf.texi: Update.
33022 2007-05-06 Bruno Haible <bruno@clisp.org>
33024 * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
33025 pass the ' flag character to sprintf or snprintf.
33026 * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
33027 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
33028 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33029 gl_PRINTF_FLAG_GROUPING and test its result. Invoke
33030 gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
33031 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
33032 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
33033 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
33034 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
33035 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
33036 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33037 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
33038 * tests/test-snprintf-posix.h (test_function): Also check the grouping
33040 * tests/test-sprintf-posix.h (test_function): Likewise.
33041 * tests/test-vasnprintf-posix.c (test_function): Likewise.
33042 * tests/test-vasprintf-posix.c (test_function): Likewise.
33043 * doc/functions/fprintf.texi: Update.
33044 * doc/functions/printf.texi: Update.
33045 * doc/functions/snprintf.texi: Update.
33046 * doc/functions/sprintf.texi: Update.
33047 * doc/functions/vfprintf.texi: Update.
33048 * doc/functions/vprintf.texi: Update.
33049 * doc/functions/vsnprintf.texi: Update.
33050 * doc/functions/vsprintf.texi: Update.
33052 2007-05-01 Bruno Haible <bruno@clisp.org>
33054 * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
33056 2007-05-03 Paul Eggert <eggert@cs.ucla.edu>
33058 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
33059 comment for D_INO_IN_DIRENT. Problem reported by James Youngman.
33061 2007-05-02 Paul Eggert <eggert@cs.ucla.edu>
33063 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
33064 readdir returns garbage in d_ino. Problem reported by Kaz Sasayama in
33065 <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
33067 2007-05-02 Sergey Poznyakoff <gray@gnu.org.ua>
33069 * lib/argp-help.c (struct hol_entry): New member `ord'.
33070 (HOL_ENTRY_PTRCMP): Use ord for comparison
33071 (hol_sort): Initialize ord.
33073 2007-05-01 Bruno Haible <bruno@clisp.org>
33075 * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
33076 Reported by Eric Blake.
33077 * doc/gnulib.texi (Function Substitutes): Update.
33079 2007-05-01 Bruno Haible <bruno@clisp.org>
33081 * doc/functions.texi: Remove file, now redundant through
33082 doc/functions/*.texi.
33084 2007-05-01 Bruno Haible <bruno@clisp.org>
33086 * modules/argp (Depends-on): Add sleep.
33088 2007-05-01 Bruno Haible <bruno@clisp.org>
33090 * modules/sleep-tests: New file.
33091 * tests/test-sleep.c: New file.
33093 * modules/sleep: New file.
33094 * lib/sleep.c: New file.
33095 * m4/sleep.m4: New file.
33096 * lib/unistd_.h (sleep): New declaration.
33097 * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
33099 * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
33100 * doc/functions/sleep.texi: Document the sleep module.
33102 2007-05-01 Bruno Haible <bruno@clisp.org>
33104 * lib/sigprocmask.h: Remove file.
33105 * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
33106 * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
33107 * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
33108 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
33109 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
33110 gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
33111 (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
33112 HAVE_SIGSET_T as a shell variable.
33113 * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
33114 HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
33115 * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
33116 (Depends-on): Add signal. Remove verify.
33117 (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
33118 (Include): Mention <signal.h> instead of sigprocmask.h.
33119 * NEWS: Mention the change.
33120 * lib/fatal-signal.c: Don't include sigprocmask.h.
33122 2007-05-01 Bruno Haible <bruno@clisp.org>
33124 * modules/signal: New file.
33125 * lib/signal_.h: New file.
33126 * m4/signal_h.m4: New file.
33128 2007-05-01 Bruno Haible <bruno@clisp.org>
33130 * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
33131 * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
33132 * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
33133 HAVE_WCTYPE_CTMP_BUG into wctype.h.
33135 2007-05-01 Bruno Haible <bruno@clisp.org>
33137 * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
33139 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
33140 HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
33141 * modules/sys_stat (Makefile.am): Substitute their values into
33144 2007-05-01 Bruno Haible <bruno@clisp.org>
33146 * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
33147 * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
33148 * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
33150 2007-05-01 Bruno Haible <bruno@clisp.org>
33152 * doc/header/assert.texi: Undo last change: don't mention the gnulib
33153 'assert' module here.
33155 2007-05-01 Bruno Haible <bruno@clisp.org>
33157 * doc/functions/*.texi: New files.
33158 * doc/functions/google-ranking.txt: New file.
33159 * doc/gnulib.texi (Function Substitutes): New chapter.
33160 (ctime, inet_ntoa): Remove sections.
33161 * doc/ctime.texi: Remove file.
33162 * doc/inet_ntoa.texi: Remove file.
33163 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
33165 (%.info): New rule, specifying a --reference-limit.
33167 2007-05-01 Bruno Haible <bruno@clisp.org>
33169 * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
33171 2007-05-01 Bruno Haible <bruno@clisp.org>
33173 * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
33174 the portability of 'mkdir' to mingw systems.
33176 2007-05-01 Bruno Haible <bruno@clisp.org>
33178 * doc/headers/google-ranking.txt: New file.
33180 2007-04-30 Eric Blake <ebb9@byu.net>
33182 Prefer fseeko to fseek.
33183 * modules/getpass (Depends-on): Add fseeko.
33184 * lib/getpass.c (getpass): Use fseeko, not fseek.
33186 2007-04-30 Sergey Poznyakoff <gray@gnu.org.ua>
33188 * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
33189 assumes the sorting is stable, while most qsort implementations
33190 are not. Use argument addresses to ensure they never compare as
33193 * tests/test-argp-2.sh (usage-indent test): Fix output
33194 (func_compare): Restore diff options
33195 * tests/test-argp.c: Restore #include "progname.h"
33197 2007-04-29 Bruno Haible <bruno@clisp.org>
33199 * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
33200 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33201 gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
33202 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
33203 * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
33204 (configure.ac): Define CHECK_SNPRINTF_POSIX.
33205 (TESTS, check_PROGRAMS): Add test-snprintf.
33206 * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
33207 (configure.ac): Define CHECK_VSNPRINTF_POSIX.
33208 (TESTS, check_PROGRAMS): Add test-vsnprintf.
33209 * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
33210 assertions that fail on HP-UX, OSF/1, or IRIX.
33211 * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
33213 2007-04-29 Bruno Haible <bruno@clisp.org>
33215 * MODULES.html.sh (posix_functions): Remove 'contents'.
33217 2007-04-29 Karl Berry <karl@gnu.org>
33219 * config/srclist.txt (gendocs_template_min): new entry.
33221 2007-04-29 Bruno Haible <bruno@clisp.org>
33223 Work around fpurge bug on BSD systems.
33224 * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
33225 * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
33226 * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
33227 fpurge to rpl_fpurge if the system already has this function.
33228 * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
33229 the case where the system already has this function. Correct invariants
33231 * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
33234 2007-04-29 Sergey Poznyakoff <gray@gnu.org.ua>
33236 * lib/argp-help.c (hol_cluster_cmp): Reverse comparison. Change
33237 proposed by Sven Verdoolaege.
33239 * tests/test-argp.c: Fix option ordering. Test deeply clustered
33241 * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
33242 (usage and help tests): Update
33244 2007-04-29 Bruno Haible <bruno@clisp.org>
33246 * tests/test-fflush.c (main): Use a file of size 17, not 10.
33247 Print more information in case of failure. Disable a test on BeOS.
33249 2007-04-29 Bruno Haible <bruno@clisp.org>
33251 * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
33252 This helps debugging on systems on which no gdb is available.
33254 2007-04-29 Bruno Haible <bruno@clisp.org>
33256 * lib/freading.h: Improve comments.
33257 * lib/fwriting.h: Likewise.
33258 * tests/test-freading.c (main): Don't check freading immediately after
33259 repositioning. Needed for glibc.
33261 2007-04-29 Bruno Haible <bruno@clisp.org>
33263 * lib/freading.c (freading): Trivial simplification.
33265 2007-04-28 Bruno Haible <bruno@clisp.org>
33267 * tests/test-fwriting.c (main): Also test the interaction between
33268 fflush and fwriting.
33269 * modules/fwriting-tests (Depends-on): Add fflush.
33271 * tests/test-freading.c (main): Also test the interaction between
33272 fflush and freading.
33273 * modules/freading-tests (Depends-on): Add fflush.
33275 2007-04-28 Bruno Haible <bruno@clisp.org>
33277 * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
33279 Suggested by Eric Blake.
33281 2007-04-28 Jim Meyering <jim@meyering.net>
33283 Avoid false-negative in gl_STDINT_H's C99 conformance test.
33284 * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
33285 to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
33287 2007-04-27 Eric Blake <ebb9@byu.net>
33289 * doc/headers/assert.texi (assert.h): Document assert module use.
33291 2007-04-27 Bruno Haible <bruno@clisp.org>
33293 * doc/headers/*.texi: New files.
33294 * doc/gnulib.texi (Header File Substitutes): New chapter.
33295 * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
33297 (standards.info ,standards.html, standards.dvi): Update dependencies.
33298 (mostlyclean, clean): New targets.
33300 2007-04-27 Bruno Haible <bruno@clisp.org>
33302 * lib/sysexits_.h: Renamed from lib/sysexit_.h.
33303 * modules/sysexits (Files, Makefile.am): Update.
33305 * lib/sys_socket_.h: Renamed from lib/socket_.h.
33306 * modules/sys_socket (Files, Makefile.am): Update.
33308 * lib/sys_stat_.h: Renamed from lib/stat_.h.
33309 * modules/sys_stat (Files, Makefile.am): Update.
33311 2007-04-27 Eric Blake <ebb9@byu.net>
33313 * lib/freading.h: Improve comments.
33314 * lib/fwriting.h: Likewise.
33315 * lib/fflush.c: Likewise.
33317 Fix closein for mingw.
33318 * modules/closein-tests: Add tests for closein.
33319 * tests/test-closein.c: New file.
33320 * tests/test-closein.sh: Likewise.
33321 * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
33322 * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
33324 2007-04-27 Bruno Haible <bruno@clisp.org>
33326 * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
33328 * lib/math_.h [__DECC]: Likewise.
33329 * lib/stdio_.h [__DECC]: Likewise.
33330 * lib/stdlib_.h [__DECC]: Likewise.
33331 * lib/string_.h [__DECC]: Likewise.
33332 * lib/time_.h [__DECC]: Likewise.
33333 * lib/wchar_.h [__DECC]: Likewise.
33334 * lib/wctype_.h [__DECC]: Likewise.
33336 2007-04-27 Bruno Haible <bruno@clisp.org>
33338 * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
33340 2007-04-27 Bruno Haible <bruno@clisp.org>
33342 * lib/fflush.c: Add comments.
33343 * modules/fpurge-tests (Depends-on): Add fflush.
33344 * modules/freadable-tests (Depends-on): Likewise.
33345 * modules/fwritable-tests (Depends-on): Likewise.
33347 2007-04-27 Charles Wilson <libtool@cwilson.fastmail.fm>
33349 * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
33350 SYSTEM_ARGZ_IS_BROKEN. Also, minor stylistic improvements.
33351 Report by Bruno Haible <bruno@clisp.org>.
33353 2007-04-26 Eric Blake <ebb9@byu.net>
33355 Fix fflush on mingw.
33356 * modules/fflush (Depends-on): Add freading.
33357 * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
33360 2007-04-26 Eric Blake <ebb9@byu.net>
33361 and Bruno Haible <bruno@clisp.org>
33363 Implement freading and fwriting.
33364 * lib/freading.c: New file.
33365 * lib/freading.h: Likewise.
33366 * m4/freading.m4: Likewise.
33367 * modules/freading: Likewise.
33368 * modules/freading-tests: Likewise.
33369 * tests/test-freading.c: Likewise.
33370 * lib/fwriting.c: New file.
33371 * lib/fwriting.h: Likewise.
33372 * m4/fwriting.m4: Likewise.
33373 * modules/fwriting: Likewise.
33374 * modules/fwriting-tests: Likewise.
33375 * tests/test-fwriting.c: Likewise.
33376 * MODULES.html.sh (File stream based Input/Output): Mention them.
33378 2007-04-26 Bruno Haible <bruno@clisp.org>
33380 * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
33381 'long' when we assume it.
33382 Suggested by Eric Blake.
33384 2007-04-26 Bruno Haible <bruno@clisp.org>
33386 Ensure fseeko, ftello are declared on glibc systems.
33387 * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
33388 * modules/fseeko (configure.ac-early): Likewise.
33389 * modules/ftello (configure.ac-early): Likewise.
33390 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
33391 AC_FUNC_FSEEKO for this.
33392 * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
33393 (gl_CHECK_FSEEKO): Remove macro.
33395 2007-04-26 Bruno Haible <bruno@clisp.org>
33397 * tests/test-fflush.c (main): Also check the ftell result after
33398 fflush and fseek/fseeko.
33399 * lib/fflush.c (rpl_fflush): For BSD implementations, update the
33400 file descriptor position cache in the stream.
33401 * lib/fseeko.c (rpl_fseeko): Likewise.
33403 2007-04-26 Bruno Haible <bruno@clisp.org>
33405 * modules/fflush-tests (Depends-on): Add fseeko.
33407 2007-04-25 Charles Wilson <libtool@cwilson.fastmail.fm>
33408 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33410 * lib/argz_.h: ensure error_t definition is obtained in same
33411 mechanism system argz.h would have.
33412 * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
33413 argz facilities are known bad. Err on the side of caution if
33416 2007-04-25 Eric Blake <ebb9@byu.net>
33418 * lib/fpurge.c (includes): Use stdlib.h for free.
33419 * tests/test-fflush.c (main): Also test fflush-fseeko.
33421 2007-04-25 Bruno Haible <bruno@clisp.org>
33423 Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
33424 * lib/fseeko.c: New file.
33425 * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
33426 (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
33427 * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
33429 (gl_FUNC_FSEEKO): Invoke it.
33430 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
33431 gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
33432 * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
33434 2007-04-25 Bruno Haible <bruno@clisp.org>
33436 * modules/fflush (Depends-on): Add ftello.
33438 2007-04-25 Bruno Haible <bruno@clisp.org>
33440 * modules/ftello-tests: New file.
33441 * tests/test-ftello.c: New file.
33443 * modules/ftello: New file.
33444 * m4/ftello.m4: New file.
33445 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
33447 * lib/stdio_.h (ftello): New declaration.
33448 * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
33451 2007-04-25 Bruno Haible <bruno@clisp.org>
33453 * modules/fseeko-tests: New file.
33454 * tests/test-fseeko.c: New file.
33456 * modules/fseeko: New file.
33457 * m4/fseeko.m4: New file.
33458 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
33460 * lib/stdio_.h (fseeko): New declaration.
33461 * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
33464 2007-04-25 Bruno Haible <bruno@clisp.org>
33466 * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
33468 2007-04-25 Bruno Haible <bruno@clisp.org>
33470 * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
33471 * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
33472 * tests/test-unistd.c: Likewise.
33473 * tests/test-fcntl.c: Likewise.
33475 2007-04-23 Eric Blake <ebb9@byu.net>
33477 * lib/fflush.c: Fix missing include.
33478 Reported by Bruno Haible.
33480 2007-04-23 Bruno Haible <bruno@clisp.org>
33482 * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
33483 Reported by Eric Blake.
33485 2007-04-23 Bruno Haible <bruno@clisp.org>
33487 * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
33489 2007-04-23 Bruno Haible <bruno@clisp.org>
33491 * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
33493 2007-04-23 Bruno Haible <bruno@clisp.org>
33495 * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
33496 Needed on HP-UX 11.
33498 2007-04-16 Eric Blake <ebb9@byu.net>
33500 Make fflush rely on fpurge.
33501 * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
33502 open coding all variants.
33503 * modules/fflush (Depends-on): Add fpurge and unistd.
33504 * modules/fflush-tests (Depends-on): Unistd is no longer extra.
33505 * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
33507 Fix --with-tests compilation on cygwin.
33508 * modules/argmatch-tests (Makefile.am): List gnulib library first
33510 * modules/argp-tests (Makefile.am): Likewise.
33511 * modules/array-list-tests (Makefile.am): Likewise.
33512 * modules/array-oset-tests (Makefile.am): Likewise.
33513 * modules/avltree-list-tests (Makefile.am): Likewise.
33514 * modules/avltree-oset-tests (Makefile.am): Likewise.
33515 * modules/avltreehash-list-tests (Makefile.am): Likewise.
33516 * modules/carray-list-tests (Makefile.am): Likewise.
33517 * modules/dirname-tests (Makefile.am): Likewise.
33518 * modules/frexp-tests (Makefile.am): Likewise.
33519 * modules/isnanl-tests (Makefile.am): Likewise.
33520 * modules/linked-list-tests (Makefile.am): Likewise.
33521 * modules/linkedhash-list-tests (Makefile.am): Likewise.
33522 * modules/lock-tests (Makefile.am): Likewise.
33523 * modules/rbtree-list-tests (Makefile.am): Likewise.
33524 * modules/rbtree-oset-tests (Makefile.am): Likewise.
33525 * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33526 * modules/tls-tests (Makefile.am): Likewise.
33527 * modules/tsearch-tests (Makefile.am): Likewise.
33528 * modules/xvasprintf-tests (Makefile.am): Likewise.
33530 Fix fpurge for cygwin.
33531 * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
33533 * modules/fpurge-tests (Depends-on): Clean up trash.
33535 2007-04-16 Simon Josefsson <simon@josefsson.org>
33537 * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
33539 * m4/autobuild.m4: Re-indent.
33541 2007-04-13 Bruno Haible <bruno@clisp.org>
33543 * modules/fpurge-tests: New file.
33544 * tests/test-fpurge.c: New file.
33546 * modules/fpurge: New file.
33547 * lib/fpurge.h: New file.
33548 * lib/fpurge.c: New file.
33549 * m4/fpurge.m4: New file.
33551 2007-04-13 Bruno Haible <bruno@clisp.org>
33553 * modules/fbufmode-tests: New file.
33554 * tests/test-fbufmode.c: New file.
33556 * modules/fbufmode: New file.
33557 * lib/fbufmode.h: New file.
33558 * lib/fbufmode.c: New file.
33559 * m4/fbufmode.m4: New file.
33561 2007-04-13 Bruno Haible <bruno@clisp.org>
33563 * modules/fwritable-tests: New file.
33564 * tests/test-fwritable.c: New file.
33566 * modules/fwritable: New file.
33567 * lib/fwritable.h: New file.
33568 * lib/fwritable.c: New file.
33569 * m4/fwritable.m4: New file.
33571 2007-04-13 Bruno Haible <bruno@clisp.org>
33573 * modules/freadable-tests: New file.
33574 * tests/test-freadable.c: New file.
33576 * modules/freadable: New file.
33577 * lib/freadable.h: New file.
33578 * lib/freadable.c: New file.
33579 * m4/freadable.m4: New file.
33581 2007-04-13 Bruno Haible <bruno@clisp.org>
33583 * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
33586 2007-04-13 Paul Eggert <eggert@cs.ucla.edu>
33588 * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
33589 gzip bootstrap.conf to avoid dragging in i18n machinery.
33590 (gnulib_tool_option): Use it.
33592 2007-04-13 Bruno Haible <bruno@clisp.org>
33594 * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
33596 * tests/test-vasprintf-posix.c (test_function): Likewise.
33597 * tests/test-snprintf-posix.h (test_function): Likewise.
33598 * tests/test-sprintf-posix.h (test_function): Likewise.
33599 * tests/test-fprintf-posix.h (test_function): Likewise.
33600 * tests/test-printf-posix.h (test_function): Likewise.
33601 * tests/test-fprintf-posix.out: Likewise.
33603 2007-04-13 Bruno Haible <bruno@clisp.org>
33605 * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
33606 * modules/tls-tests (configure.ac): Likewise.
33607 Reported by Arto C. Nirkko <anirkko@insel.ch>.
33609 2007-04-13 Bruno Haible <bruno@clisp.org>
33611 * lib/tls.c (glthread_tls_get): Fix return type.
33612 Patch by Arto C. Nirkko <anirkko@insel.ch>.
33614 2007-04-12 Eric Blake <ebb9@byu.net>
33616 * modules/gettime (Depends-on): Remove gettime.
33617 Reported by Dmitry V. Levin.
33619 2007-04-12 Bruno Haible <bruno@clisp.org>
33621 * modules/fflush (Include): Mention <stdio.h>.
33622 * modules/strtoimax (Include): Mention <inttypes.h>.
33623 * modules/strtoumax (Include): Likewise.
33625 2007-04-12 Eric Blake <ebb9@byu.net>
33627 * .cvsignore: New file.
33628 * .gitignore: Likewise.
33630 2007-04-12 Bruno Haible <bruno@clisp.org>
33632 * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
33633 not before, since $(LDADD) often contains libgnu.a.
33634 * modules/striconv-tests (test_striconv_LDADD): Likewise.
33635 * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
33636 * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
33639 2007-04-12 Eric Blake <ebb9@byu.net>
33641 Work around glibc's failure to flush stdin on fclose.
33642 * lib/closein.c (close_stdin): Flush stdin before closing.
33644 Work around glibc's failure to reset seekable stdin on exit.
33645 * modules/closein: New module.
33646 * lib/closein.c: New file.
33647 * lib/closein.h: Likewise.
33648 * m4/closein.m4: Likewise.
33649 * MODULES.html.sh (File stream based Input/Output): Document it.
33651 2007-04-12 Simon Josefsson <simon@josefsson.org>
33653 * gnulib-tool: Rename generated 'autobuild' script to
33654 'do-autobuild' in --create-megatestdir output.
33656 * doc/gnulib.texi (Build robot for gnulib): Fix.
33658 2007-04-12 Simon Josefsson <simon@josefsson.org>
33660 * modules/sysexits (Depends-on): Add absolute-header.
33662 2007-04-12 Eric Blake <ebb9@byu.net>
33664 No need to preserve errno on success.
33665 * lib/fflush.c (rpl_fflush): Simplify errno tracking.
33666 Reported by Bruno Haible.
33668 2007-04-12 Simon Josefsson <simon@josefsson.org>
33670 * MODULES.html.sh (Support for maintaining and releasing
33671 projects): Add autobuild. Suggested by Eric Blake <ebb9@byu.net>.
33673 2007-04-12 Simon Josefsson <simon@josefsson.org>
33675 * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
33677 2007-04-12 Simon Josefsson <simon@josefsson.org>
33679 * modules/autobuild: New module.
33681 * m4/autobuild.m4: New file.
33683 2007-04-11 Bruno Haible <bruno@clisp.org>
33685 * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
33686 %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
33687 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
33688 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
33689 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
33690 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33691 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33692 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
33693 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33694 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33695 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
33696 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33697 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33698 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
33699 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33700 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33701 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
33702 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33703 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33704 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
33705 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33706 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33707 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
33708 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33709 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33710 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
33711 gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
33712 gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
33713 Reported by Eric Blake.
33715 2007-04-11 Bruno Haible <bruno@clisp.org>
33717 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
33719 2007-04-10 Bruno Haible <bruno@clisp.org>
33721 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
33722 for NaN and Infinity. Needed on FreeBSD 6.1.
33723 * tests/test-vasnprintf-posix.c (test_function): Undo last change
33724 regarding results for "%010a" of Infinity and NaN.
33725 * tests/test-vasprintf-posix.c (test_function): Likewise.
33726 * tests/test-snprintf-posix.h (test_function): Likewise.
33727 * tests/test-sprintf-posix.h (test_function): Likewise.
33728 * tests/test-fprintf-posix.h (test_function): Likewise.
33729 * tests/test-printf-posix.h (test_function): Likewise.
33730 * tests/test-fprintf-posix.out: Likewise.
33732 2007-04-10 Bruno Haible <bruno@clisp.org>
33734 * modules/locale-tests: New file.
33735 * tests/test-locale.c: New file.
33737 * modules/locale: New file.
33738 * lib/locale_.h: New file.
33739 * m4/locale_h.m4: New file.
33741 2007-04-10 Paul Eggert <eggert@cs.ucla.edu>
33742 Bruno Haible <bruno@clisp.org>
33744 * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
33745 be determined, test for availability of the copysignf, copysign,
33746 copysignl functions.
33747 * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
33748 * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
33749 * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
33751 2007-04-09 Eric Blake <ebb9@byu.net>
33753 * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
33754 * modules/stdio (Makefile.am): Support fflush.
33755 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
33756 * modules/fflush: New file.
33757 * lib/fflush.c: Likewise.
33758 * m4/fflush.m4: Likewise.
33759 * modules/fflush-tests: New test.
33760 * tests/test-fflush.c: Likewise.
33761 * MODULES.html.sh (Input/output <stdio.h>): Document new module.
33763 2007-04-06 Bruno Haible <bruno@clisp.org>
33765 * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
33766 (VASNPRINTF): Use signbit for faster determination whether to print a
33768 * modules/vasnprintf (Files): Remove lib/float+.h.
33769 * modules/fprintf-posix (Depends-on): Add signbit.
33770 * modules/snprintf-posix (Depends-on): Likewise.
33771 * modules/sprintf-posix (Depends-on): Likewise.
33772 * modules/vasnprintf-posix (Depends-on): Likewise.
33773 * modules/vasprintf-posix (Depends-on): Likewise.
33774 * modules/vfprintf-posix (Depends-on): Likewise.
33775 * modules/vsnprintf-posix (Depends-on): Likewise.
33776 * modules/vsprintf-posix (Depends-on): Likewise.
33778 2007-04-06 Bruno Haible <bruno@clisp.org>
33780 * tests/test-frexp.c (main): Test also the sign bit of zero results.
33781 * tests/test-frexpl.c (main): Likewise.
33782 * tests/test-ldexpl.c (main): Likewise.
33783 * modules/frexp-tests (Depends-on): Add signbit.
33784 * modules/frexpl-tests (Depdends-on): Likewise.
33785 * modules/ldexpl-tests (Depdends-on): Likewise.
33787 2007-04-06 Bruno Haible <bruno@clisp.org>
33789 * modules/signbit-tests: New file.
33790 * tests/test-signbit.c: New file.
33792 * modules/signbit: New file.
33793 * lib/signbitf.c: New file.
33794 * lib/signbitd.c: New file.
33795 * lib/signbitl.c: New file.
33796 * m4/signbit.m4: New file.
33797 * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
33798 (signbit): New macro.
33799 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
33801 * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
33802 REPLACE_FREXPL into math.h.
33804 2007-04-06 Bruno Haible <bruno@clisp.org>
33806 * modules/isnanf-nolibm-tests: New file.
33807 * tests/test-isnanf.c: New file.
33809 * modules/isnanf-nolibm: New file.
33810 * lib/isnanf.h: New file.
33811 * lib/isnanf.c: New file.
33812 * lib/isnan.c: Consider the USE_FLOAT macro.
33813 * m4/isnanf.m4: New file.
33815 2007-04-06 Bruno Haible <bruno@clisp.org>
33817 * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
33818 (Link): New section.
33820 * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
33822 2007-04-06 Bruno Haible <bruno@clisp.org>
33824 Assume the 'long double' type.
33825 * m4/longdouble.m4: Remove file.
33826 * config/srclist.txt: Don't mention longdouble.m4.
33827 * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
33828 * lib/float+.h: Likewise.
33829 * lib/frexp.c: Likewise.
33830 * lib/printf-args.h: Likewise.
33831 * lib/printf-args.c: Likewise.
33832 * lib/printf-frexp.c: Likewise.
33833 * lib/printf-parse.c: Likewise.
33834 * lib/vasnprintf.c: Likewise.
33835 * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
33836 * m4/intl.m4: Likewise.
33837 * m4/isnanl.m4: Likewise.
33838 * m4/printf.m4: Likewise.
33839 * m4/printf-frexpl.m4: Likewise.
33840 * m4/vasnprintf.m4: Likewise.
33841 * modules/allocsa (Files): Remove m4/longdouble.m4.
33842 * modules/gettext (Files): Likewise.
33843 * modules/relocatable-prog-wrapper (Files): Likewise.
33844 * modules/vasnprintf (Files): Likewise.
33845 * modules/isnanl (Files): Likewise.
33846 (Include): Simplify.
33847 * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
33848 (Include): Simplify.
33849 * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
33850 (Include): Simplify.
33851 * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
33852 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33853 * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
33854 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33855 * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33856 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33857 * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
33858 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33859 * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
33860 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33861 * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
33862 (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
33863 * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
33864 * tests/test-isnanl.c: Likewise.
33865 * tests/test-snprintf-posix.h: Likewise.
33866 * tests/test-sprintf-posix.h: Likewise.
33867 * tests/test-vasnprintf-posix.c: Likewise.
33868 * tests/test-vasnprintf-posix2.c: Likewise.
33869 * tests/test-vasprintf-posix.c: Likewise.
33871 2007-04-06 Bruno Haible <bruno@clisp.org>
33873 Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
33874 * lib/math_.h [__DECC]: Include the overridden include file through
33875 #include_next, outside the double-inclusion guard.
33876 * lib/stdio_.h [__DECC]: Likewise.
33877 * lib/stdlib_.h [__DECC]: Likewise.
33878 * lib/string_.h [__DECC]: Likewise.
33879 * lib/time_.h [__DECC]: Likewise.
33880 * lib/wchar_.h [__DECC]: Likewise.
33881 * lib/wctype_.h [__DECC]: Likewise.
33882 * lib/inttypes_.h [__DECC]: Likewise.
33883 Reported by Albert Chin <china@thewrittenword.com> in
33884 <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
33886 2007-04-04 Eric Blake <ebb9@byu.net>
33888 * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
33891 2007-04-04 Bruno Haible <bruno@clisp.org>
33893 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
33894 rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
33896 2007-04-04 Bruno Haible <bruno@clisp.org>
33898 * tests/test-vasnprintf-posix.c (test_function): Allow two possible
33899 results for "%010a" of Infinity and NaN.
33900 * tests/test-vasprintf-posix.c (test_function): Likewise.
33901 * tests/test-snprintf-posix.h (test_function): Likewise.
33902 * tests/test-sprintf-posix.h (test_function): Likewise.
33903 * tests/test-fprintf-posix.h (test_function): Remove these tests.
33904 * tests/test-printf-posix.h (test_function): Likewise.
33905 * tests/test-fprintf-posix.out: Update.
33906 Needed for FreeBSD 6.1.
33908 2007-04-04 Bruno Haible <bruno@clisp.org>
33910 * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
33911 directly used by the gnulib modules nor by gnulib-tool.
33913 2007-04-04 Paul Eggert <eggert@cs.ucla.edu>
33915 * DEPENDENCIES: Give overall description of version dependency
33916 desirability. Use more-typical names for apps.
33917 Add shell, coreutils, diffutils, grep, tar, gzip.
33919 2007-04-04 Simon Josefsson <simon@josefsson.org>
33921 * MODULES.html.sh: Rename crypto modules. Remove iconvme.
33923 2007-04-04 Karl Berry <karl@gnu.org>
33925 * MODULES.html.sh (func_module): missing '.
33927 2007-04-03 Bruno Haible <bruno@clisp.org>
33929 * modules/argmatch-tests (Makefile.am): New variable
33930 test_argmatch_LDADD.
33931 * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
33932 * modules/array-list-tests (Makefile.am): New variable
33933 test_array_list_LDADD.
33934 * modules/array-oset-tests (Makefile.am): New variable
33935 test_array_oset_LDADD.
33936 * modules/avltree-list-tests (Makefile.am): New variable
33937 test_avltree_list_LDADD.
33938 * modules/avltree-oset-tests (Makefile.am): New variable
33939 test_avltree_oset_LDADD.
33940 * modules/avltreehash-list-tests (Makefile.am): New variable
33941 test_avltreehash_list_LDADD.
33942 * modules/canonicalize-lgpl-tests (Makefile.am): New variable
33943 test_canonicalize_lgpl_LDADD.
33944 * modules/carray-list-tests (Makefile.am): New variable
33945 test_carray_list_LDADD.
33946 * modules/dirname-tests (Makefile.am): New variable
33947 test_dirname_LDADD.
33948 * modules/linked-list-tests (Makefile.am): New variable
33949 test_linked_list_LDADD.
33950 * modules/linkedhash-list-tests (Makefile.am): New variable
33951 test_linkedhash_list_LDADD.
33952 * modules/rbtree-list-tests (Makefile.am): New variable
33953 test_rbtree_list_LDADD.
33954 * modules/rbtree-oset-tests (Makefile.am): New variable
33955 test_rbtree_oset_LDADD.
33956 * modules/rbtreehash-list-tests (Makefile.am): New variable
33957 test_rbtreehash_list_LDADD.
33958 * modules/xvasprintf-tests (Makefile.am): New variable
33959 test_xvasprintf_LDADD.
33960 Reported by Eric Blake.
33962 2007-04-03 Eric Blake <ebb9@byu.net>
33964 * DEPENDENCIES: Weaken m4 requirements.
33966 2007-04-03 Bruno Haible <bruno@clisp.org>
33968 * modules/frexp-tests (configure.ac): Remove AC_SUBST.
33969 * modules/isnanl-tests (configure.ac): Likewise.
33971 2007-04-03 Ben Pfaff <blp@gnu.org>
33973 * modules/iconv_open: Add $(srcdir)/ to source directory
33974 references in Makefile fragments that call gperf, to fix VPATH
33977 2007-04-03 Bruno Haible <bruno@clisp.org>
33979 * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
33980 * lib/ldexpl.c: Undo last change.
33982 2007-04-03 Bruno Haible <bruno@clisp.org>
33984 * modules/printf-frexpl (Depends-on): Undo last change.
33985 (Files): Add m4/ldexpl.m4.
33987 2007-04-03 Bruno Haible <bruno@clisp.org>
33989 * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
33990 * modules/isnanl (Link): New section.
33992 * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
33993 * modules/frexp (Link): New section.
33995 * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
33996 * modules/frexpl (Link): New section.
33998 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
33999 * modules/ldexpl (Link): New section.
34001 2007-04-03 Bruno Haible <bruno@clisp.org>
34003 * modules/TEMPLATE-EXTENDED: New file.
34004 * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
34006 2007-04-03 Bruno Haible <bruno@clisp.org>
34008 * DEPENDENCIES: New file.
34009 Suggested by Simon Josefsson.
34011 2007-04-03 Bruno Haible <bruno@clisp.org>
34013 * doc/gnulib.texi: Escape @.
34015 2007-04-03 James Youngman <jay@gnu.org>
34016 and Paul Eggert <eggert@cs.ucla.edu>
34018 * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
34019 birthtime on all systems that have birthtime, not just those which
34020 use st_birthtimensec rather than st_birthtim. Putting zero in
34021 st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
34022 that the birth time is not available for files on an NFS mount.
34024 2007-04-03 Simon Josefsson <simon@josefsson.org>
34026 * modules/memxor: Move back from crypto/, suggested by Bruno.
34027 * modules/crypto/hmac-sha1: Fix memxor dependency.
34029 * modules/crypto/gc: Moved from ../.
34031 2007-04-02 Eric Blake <ebb9@byu.net>
34033 * lib/ldexpl.c (includes): Avoid libm.
34035 * modules/printf-frexpl (Depends-on): Depend on ldexpl.
34037 2007-04-02 Bruno Haible <bruno@clisp.org>
34039 * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
34042 2007-04-02 Bruno Haible <bruno@clisp.org>
34044 * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
34045 x86 or x86_64 platforms running MacOS X.
34046 Reported by Ryan Schmidt <@ryandesign.com>.
34048 2007-04-02 Bruno Haible <bruno@clisp.org>
34050 * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
34053 2007-04-01 Simon Josefsson <simon@josefsson.org>
34055 * modules/crypto/arcfour: Moved from ../.
34056 * modules/crypto/arcfour-tests: Moved from ../.
34057 * modules/crypto/arctwo: Moved from ../.
34058 * modules/crypto/arctwo-tests: Moved from ../.
34059 * modules/crypto/des: Moved from ../.
34060 * modules/crypto/des-tests: Moved from ../.
34061 * modules/crypto/gc-arcfour: Moved from ../.
34062 * modules/crypto/gc-arcfour-tests: Moved from ../.
34063 * modules/crypto/gc-arctwo: Moved from ../.
34064 * modules/crypto/gc-arctwo-tests: Moved from ../.
34065 * modules/crypto/gc-des: Moved from ../.
34066 * modules/crypto/gc-des-tests: Moved from ../.
34067 * modules/crypto/gc-hmac-md5: Moved from ../.
34068 * modules/crypto/gc-hmac-md5-tests: Moved from ../.
34069 * modules/crypto/gc-hmac-sha1: Moved from ../.
34070 * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
34071 * modules/crypto/gc-md2: Moved from ../.
34072 * modules/crypto/gc-md2-tests: Moved from ../.
34073 * modules/crypto/gc-md4: Moved from ../.
34074 * modules/crypto/gc-md4-tests: Moved from ../.
34075 * modules/crypto/gc-md5: Moved from ../.
34076 * modules/crypto/gc-md5-tests: Moved from ../.
34077 * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
34078 * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
34079 * modules/crypto/gc-random: Moved from ../.
34080 * modules/crypto/gc-rijndael: Moved from ../.
34081 * modules/crypto/gc-rijndael-tests: Moved from ../.
34082 * modules/crypto/gc-sha1: Moved from ../.
34083 * modules/crypto/gc-sha1-tests: Moved from ../.
34084 * modules/crypto/gc-tests: Moved from ../.
34085 * modules/crypto/hmac-md5: Moved from ../.
34086 * modules/crypto/hmac-md5-tests: Moved from ../.
34087 * modules/crypto/hmac-sha1: Moved from ../.
34088 * modules/crypto/hmac-sha1-tests: Moved from ../.
34089 * modules/crypto/md2: Moved from ../.
34090 * modules/crypto/md2-tests: Moved from ../.
34091 * modules/crypto/md4: Moved from ../.
34092 * modules/crypto/md4-tests: Moved from ../.
34093 * modules/crypto/md5: Moved from ../.
34094 * modules/crypto/md5-tests: Moved from ../.
34095 * modules/crypto/memxor: Moved from ../.
34096 * modules/crypto/rijndael: Moved from ../.
34097 * modules/crypto/rijndael-tests: Moved from ../.
34098 * modules/crypto/sha1: Moved from ../.
34100 2007-03-30 James Youngman <jay@gnu.org>
34102 * tests/test-stat-time.c (prepare_test): use chmod() rather than
34103 rename() to change the ctime of a file (because ctime is unaffected
34104 by rename on jfs2 on AIX 5.1).
34105 (main): Start by doing cleanup, in case a previous run failed leaving
34108 2007-03-31 Bruno Haible <bruno@clisp.org>
34110 Support old proprietary implementations of iconv.
34111 * modules/iconv_open: New file.
34112 * lib/iconv_.h: New file.
34113 * m4/iconv_h.m4: New file.
34114 * lib/iconv_open.c: New file.
34115 * lib/iconv_open-aix.gperf: New file.
34116 * lib/iconv_open-hpux.gperf: New file.
34117 * lib/iconv_open-irix.gperf: New file.
34118 * lib/iconv_open-osf.gperf: New file.
34119 * m4/iconv_open.m4: New file.
34120 * modules/linebreak (Depends-on): Add iconv_open.
34121 * modules/striconv (Depends-on): Likewise.
34122 * modules/striconveh (Depends-on): Likewise.
34123 * modules/unicodeio (Depends-on): Likewise.
34124 * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
34126 * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
34127 conversion if cd is (iconv_t)(-1).
34128 (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
34131 2007-03-31 Bruno Haible <bruno@clisp.org>
34133 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34134 work on Solaris either. Protect also second use of "autodetect_jp".
34136 2007-03-31 Bruno Haible <bruno@clisp.org>
34138 * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
34139 the function is not present.
34141 2007-03-31 Bruno Haible <bruno@clisp.org>
34143 * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
34144 the function is not present.
34146 2007-03-31 Bruno Haible <bruno@clisp.org>
34148 * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
34149 a bug in HP-UX iconv_open().
34151 2007-03-31 Bruno Haible <bruno@clisp.org>
34153 * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
34154 (Mathematics <math.h>): New section, add fpieee.
34155 (Input/output <stdio.h>): Add fseterr.
34156 (Mathematics <math.h>): New section, add printf-frexp.
34157 (Container data structures): Add sublist.
34158 (Core language properties): Add fpucw, inline.
34159 (Functions for greatest-width integer types <inttypes.h>): Add
34160 imaxabs, imaxdiv, inttypes.
34161 (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
34162 isnanl-nolibm, ldexp.
34163 (Mathematics <math.h>): New section, add printf-frexpl.
34164 (Support for systems lacking POSIX:2001): Add fprintf-posix,
34165 printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
34166 sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
34167 vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
34168 (Unicode string functions): Add unistr/u*-mbtoucr.
34169 (Java): Add javacomp-script, javaexec-script.
34170 (C#): Add csharpcomp-script, csharpexec-script.
34171 (Support for building libraries and executables): Add havelib,
34173 (Support for maintaining and releasing projects): Renamed from
34174 'Support for maintaining and release projects'. Add announce-gen.
34176 2007-03-31 Bruno Haible <bruno@clisp.org>
34178 * README: Talk primarily about git.
34179 (git and CVS): Renamed from CVS.
34180 * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
34181 gnulib is available through git.
34182 * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
34184 2007-03-30 Bruno Haible <bruno@clisp.org>
34186 * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
34187 * lib/poll_.h: Likewise.
34188 * lib/stat_.h: Likewise.
34189 * lib/sys_time_.h: Likewise.
34190 * lib/sysexit_.h: Likewise.
34191 * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
34192 * lib/stdbool_.h: Likewise.
34193 * lib/byteswap_.h: Add double-inclusion guard.
34195 2007-03-30 Sergey Poznyakoff <gray@mirddin.farlep.net>
34197 * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
34199 2007-03-30 Karl Berry <karl@gnu.org>
34201 * config/srclist-update: double space after USA in the license
34202 substitution, since that's how it's usually (?) written.
34204 2007-03-30 Paul Eggert <eggert@cs.ucla.edu>
34206 * lib/write-any-file.c (can_write_any_file): Fix else-else bug
34207 reported by Bruno Haible.
34209 2007-03-29 Bruno Haible <bruno@clisp.org>
34211 * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
34212 a bug in AIX iconv().
34214 2007-03-29 Bruno Haible <bruno@clisp.org>
34216 * modules/ldexpl-tests: New file.
34217 * tests/test-ldexpl.c: New file.
34219 2007-03-29 Bruno Haible <bruno@clisp.org>
34221 * lib/ldexpl.c: Include fpucw.h.
34222 (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
34224 * modules/ldexpl (Depends-on): Add fpucw.
34226 2007-03-29 Bruno Haible <bruno@clisp.org>
34228 * modules/ldexpl: New file.
34229 * m4/ldexpl.m4: New file.
34230 * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
34232 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
34234 * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
34236 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
34237 gl_FUNC_LDEXPL_WORKS.
34238 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
34239 * modules/mathl (Files): Remove lib/ldexpl.c.
34240 (Depends-on): Add ldexpl.
34242 2007-03-29 Bruno Haible <bruno@clisp.org>
34244 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
34246 2007-03-29 Bruno Haible <bruno@clisp.org>
34248 * tests/test-striconveh.c (main): Don't assume that a direct conversion
34249 between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
34250 and possibly also HP-UX.
34251 * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
34252 work on AIX, IRIX, HP-UX, OSF/1.
34253 * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
34254 * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
34255 * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
34256 * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
34257 * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
34258 * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
34260 2007-03-29 Bruno Haible <bruno@clisp.org>
34262 * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
34264 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
34266 * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
34267 to work around a problem on OSF/1 5.1 reported by Bruno Haible.
34269 2007-03-29 Eric Blake <ebb9@byu.net>
34271 * lib/acl-internal.h: Remove redundant include.
34272 (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
34273 Cygwin when a file is locked.
34275 2007-03-29 Bruno Haible <bruno@clisp.org>
34277 * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
34279 * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
34281 2007-03-29 Paul Eggert <eggert@cs.ucla.edu>
34283 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
34284 try to remove a parent directory if the child couldn't be removed
34285 (except for the first rmdir, which could fail because the child
34286 doesn't exist). Problem reported by Jeff Blaine in
34287 <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
34289 2007-03-28 Bruno Haible <bruno@clisp.org>
34291 * lib/striconveh.c (utf8conv_carefully): New function.
34292 (mem_cd_iconveh_internal): Invoke it.
34294 2007-03-28 Bruno Haible <bruno@clisp.org>
34296 * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
34297 of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
34299 * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
34300 utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
34303 2007-03-28 Bruno Haible <bruno@clisp.org>
34305 * modules/unistr/u8-mbtoucr: New file.
34306 * lib/unistr/u8-mbtoucr.c: New file.
34307 * modules/unistr/u16-mbtoucr: New file.
34308 * lib/unistr/u16-mbtoucr.c: New file.
34309 * modules/unistr/u16-mbtoucr: New file.
34310 * lib/unistr/u16-mbtoucr.c: New file.
34311 * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
34313 2007-03-27 Simon Josefsson <simon@josefsson.org>
34314 Bruno Haible <bruno@clisp.org>
34316 * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
34317 REPLACE_VASPRINTF. Set HAVE_VASPRINTF. Add
34318 AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
34320 * m4/stdio_h.m4: Add stubs for vasprintf too.
34322 * modules/stdio: Support vasprintf in sed command.
34324 * modules/vasprintf: Depend on stdio for prototypes. Remove
34325 vasprintf.h. Add stdio module indicator.
34327 * lib/stdio_.h: Declare asprintf and vasprintf, based on
34330 * lib/vasprintf.h: File removed.
34332 * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
34333 * lib/vasprintf.c: Ditto.
34334 * lib/xvasprintf.c: Ditto.
34335 * tests/test-vasprintf-posix.c: Ditto.
34336 * tests/test-vasprintf.c: Ditto.
34338 2007-03-27 Bruno Haible <bruno@clisp.org>
34340 Make vasnprintf multithread-safe.
34341 * lib/vasnprintf.c (decimal_point_char): New function.
34342 (VASNPRINTF): Use it.
34343 Suggested by Simon Josefsson.
34345 2007-03-27 Eric Blake <ebb9@byu.net>
34347 Support sub-second birthtime on cygwin.
34348 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
34349 * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
34350 (get_stat_birthtime): Also work with st_birthtim.
34352 2007-03-27 Paul Eggert <eggert@cs.ucla.edu>
34354 * lib/stat-time.h (USE_BIRTHTIME): Remove.
34355 (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
34356 (get_stat_birthtime_ns): Do not try to use "spare" fields.
34357 (get_stat_birthtime_ns): Simplify compile-time tests.
34358 (get_stat_birthtime): Change the API to look like
34359 get_stat_mtime etc., except return a negative tv_nsec on error.
34360 * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
34361 Don't check for "spare" fields.
34362 (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
34363 or for struct stat.st_birthtime, as these tests aren't used.
34364 * tests/test-stat-time.c (test_birthtime): Adjust to new API.
34366 2007-03-27 Bruno Haible <bruno@clisp.org>
34368 * lib/stat-time.h: Include <sys/stat.h>.
34370 2007-03-27 James Youngman <jay@gnu.org>
34372 * lib/stat-time.h (get_stat_birthtime): New function for
34373 retrieving st_birthtime as provided by UFS2 (hence *BSD).
34374 * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
34376 * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
34377 * modules/stat-time-test: New file.
34378 * tests/test-stat-time.c: New test, devised by Bruno Haible.
34380 2007-03-26 Bruno Haible <bruno@clisp.org>
34382 Better support of signalling NaNs.
34383 * lib/atanl.c: Include isnanl.h.
34384 (atanl): Perform test for NaN at the beginning of the function and
34385 through a call to isnanl.
34386 * lib/cosl.c: Include isnanl.h.
34387 (cosl): Perform test for NaN at the beginning of the function and
34388 through a call to isnanl.
34389 * lib/ldexpl.c: Include isnanl.h.
34390 (ldexpl): Perform test for NaN through a call to isnanl.
34391 * lib/logl.c: Include isnanl.h.
34392 (logl): Perform test for NaN at the beginning of the function and
34393 through a call to isnanl.
34394 * lib/sinl.c: Include isnanl.h.
34395 (sinl): Perform test for NaN at the beginning of the function and
34396 through a call to isnanl.
34397 * lib/sqrtl.c: Include isnanl.h.
34398 (sqrtl): Perform test for NaN at the beginning of the function and
34399 through a call to isnanl.
34400 * lib/tanl.c: Include isnanl.h.
34401 (tanl): Perform test for NaN at the beginning of the function and
34402 through a call to isnanl.
34403 * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
34404 * modules/mathl (Depends-on): Add isnanl.
34406 2007-03-26 Eric Blake <ebb9@byu.net>
34408 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
34409 regression in logic sense of previous patch.
34411 2007-03-26 Bruno Haible <bruno@clisp.org>
34413 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
34414 unportable shell command "if ! ...".
34415 Reported by Ralf Wildenhues.
34417 2007-03-25 Bruno Haible <bruno@clisp.org>
34419 * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
34420 <sysexits.h> file, and only add EX_CONFIG.
34421 * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
34422 absolute file name and whether it is sufficient. Substitute also
34423 HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
34424 * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
34425 ABSOLUTE_SYSEXITS_H into sysexits.h.
34427 2007-03-25 Bruno Haible <bruno@clisp.org>
34429 * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
34432 2007-03-25 Bruno Haible <bruno@clisp.org>
34434 * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
34435 * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
34437 2007-03-25 Bruno Haible <bruno@clisp.org>
34439 * lib/vasnprintf.c: Include langinfo.h.
34440 (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
34442 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
34443 * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
34444 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
34445 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
34446 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
34447 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
34448 * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
34449 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
34450 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
34451 Reported by Simon Josefsson.
34453 2007-03-25 Bruno Haible <bruno@clisp.org>
34455 * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
34456 (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
34457 * modules/vasnprintf (Depends-on): Add stdint.
34459 2007-03-25 Bruno Haible <bruno@clisp.org>
34461 * modules/fpieee: New file.
34462 * m4/fpieee.m4: New file.
34463 * modules/isnan-nolibm (Depends-on): Add fpieee.
34464 * modules/isnanl-nolibm (Depends-on): Add fpieee.
34465 * modules/isnanl (Depends-on): Add fpieee.
34467 2007-03-25 Bruno Haible <bruno@clisp.org>
34469 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
34471 2007-03-25 Bruno Haible <bruno@clisp.org>
34473 Avoid test failures on IRIX 6.5.
34474 * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
34476 * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
34480 2007-03-25 Bruno Haible <bruno@clisp.org>
34482 * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
34483 (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
34484 exists but doesn't work.
34485 * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
34486 is set. Don't provide a prototype if REPLACE_FREXPL is not set.
34487 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
34488 * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
34490 2007-03-25 Bruno Haible <bruno@clisp.org>
34492 * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
34493 returns inf. Needed on IRIX 6.5.
34495 2007-03-25 Bruno Haible <bruno@clisp.org>
34497 * tests/test-frexpl.c: Include isnanl-nolibm.h.
34498 (main): Use isnanl instead of x != x idiom.
34499 * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
34501 * tests/test-frexp.c: Include isnan.h.
34502 (main): Use isnan instead of x != x idiom.
34503 * modules/frexp-tests (Depends-on): Add isnan-nolibm.
34505 2007-03-25 Bruno Haible <bruno@clisp.org>
34507 * tests/test-frexp.c (NaN): New function/macro.
34508 (main): Use it instead of 0.0 / 0.0.
34509 * tests/test-isnan.c (NaN): New function/macro.
34510 (main): Use it instead of 0.0 / 0.0.
34511 * tests/test-vasnprintf-posix.c (NaN): New function/macro.
34512 (test_function): Use it instead of 0.0 / 0.0.
34513 * tests/test-vasprintf-posix.c (NaN): New function/macro.
34514 (test_function): Use it instead of 0.0 / 0.0.
34515 * tests/test-snprintf-posix.h (NaN): New function/macro.
34516 (test_function): Use it instead of 0.0 / 0.0.
34517 * tests/test-sprintf-posix.h (NaN): New function/macro.
34518 (test_function): Use it instead of 0.0 / 0.0.
34519 * tests/test-fprintf-posix.h (NaN): New function/macro.
34520 (test_function): Use it instead of 0.0 / 0.0.
34521 * tests/test-printf-posix.h (NaN): New function/macro.
34522 (test_function): Use it instead of 0.0 / 0.0.
34524 * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
34526 2007-03-25 Bruno Haible <bruno@clisp.org>
34528 * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
34530 2007-03-25 Bruno Haible <bruno@clisp.org>
34532 * lib/regexec.c (merge_state_with_log): Make static.
34534 2007-03-25 Bruno Haible <bruno@clisp.org>
34536 * lib/trigl.c (kernel_rem_pio2): Make static.
34538 2007-03-25 Bruno Haible <bruno@clisp.org>
34540 * lib/sincosl.c (sincosl_table): Make static.
34542 2007-03-25 Bruno Haible <bruno@clisp.org>
34544 * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
34545 if the compiler does not support C99.
34547 2007-03-25 Bruno Haible <bruno@clisp.org>
34549 * modules/time (Makefile.am): Ensure all rule action lines start with a
34552 2007-03-24 Bruno Haible <bruno@clisp.org>
34554 * modules/tsearch-tests: New file.
34555 * tests/test-tsearch.sh: New file.
34556 * tests/test-tsearch.c: New file, mostly copied from glibc.
34558 * modules/search-tests: New file.
34559 * tests/test-search.c: New file.
34561 * modules/search: New file.
34562 * lib/search_.h: New file, incorporating lib/tsearch.h.
34563 * m4/search_h.m4: New file.
34564 * lib/tsearch.h: Remove file.
34565 * lib/tsearch.c: Include search.h instead of tsearch.h.
34566 * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
34568 * modules/tsearch (Files): Remove lib/tsearch.h.
34569 (Depends-on): Add search.
34570 (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
34571 (Include): Change tsearch.h into search.h.
34573 2007-03-24 Bruno Haible <bruno@clisp.org>
34575 * modules/fpucw: New file.
34576 * lib/fpucw.h: New file.
34577 * lib/frexp.c: Include fpucw.h.
34578 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34580 * lib/printf-frexp.c: Include fpucw.h.
34581 (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
34583 * lib/vasnprintf.c: Include fpucw.h.
34584 (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
34585 'long double' calculations.
34586 * tests/test-frexpl.c: Include fpucw.h.
34587 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34588 * tests/test-printf-frexpl.c: Include fpucw.h.
34589 (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
34590 * modules/frexpl (Depends-on): Add fpucw.
34591 * modules/printf-frexpl (Depends-on): Likewise.
34592 * modules/fprintf-posix (Depends-on): Likewise.
34593 * modules/snprintf-posix (Depends-on): Likewise.
34594 * modules/sprintf-posix (Depends-on): Likewise.
34595 * modules/vasnprintf-posix (Depends-on): Likewise.
34596 * modules/vasprintf-posix (Depends-on): Likewise.
34597 * modules/vfprintf-posix (Depends-on): Likewise.
34598 * modules/vsnprintf-posix (Depends-on): Likewise.
34599 * modules/vsprintf-posix (Depends-on): Likewise.
34600 * modules/frexpl-tests (Depends-on): Likewise.
34601 * modules/printf-frexpl-tests (Depends-on): Likewise.
34603 2007-03-24 Bruno Haible <bruno@clisp.org>
34605 * lib/float+.h: New file.
34606 * lib/isnan.c: Include float+.h.
34608 (FUNC): Compare only SIZE bytes of the value.
34609 * lib/vasnprintf.c: Include float+.h.
34610 (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
34611 SIZEOF_LDBL or SIZEOF_DBL bytes.
34612 * modules/isnan-nolibm (Files): Add lib/float+.h.
34613 * modules/isnanl-nolibm (Files): Add lib/float+.h.
34614 * modules/isnanl (Files): Add lib/float+.h.
34615 * modules/vasnprintf (Files): Add lib/float+.h.
34617 2007-03-24 Bruno Haible <bruno@clisp.org>
34619 * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
34620 include isnanl-nolibm.h.
34622 2007-03-24 Bruno Haible <bruno@clisp.org>
34624 * tests/test-read-file.c (main): Don't produce spurious output for
34625 expected situations. Make the test fail if it encountered unexpected
34628 2007-03-24 Bruno Haible <bruno@clisp.org>
34630 * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
34631 since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
34633 2007-03-24 Bruno Haible <bruno@clisp.org>
34635 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
34637 2007-03-24 Bruno Haible <bruno@clisp.org>
34639 * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
34640 utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
34642 * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
34643 * modules/utf8-ucs4: Turn into a symbolic link to module
34646 * modules/unistr/u8-mbtouc-unsafe: Add source files from module
34648 * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
34649 unistr/u8-mbtouc-unsafe.
34651 * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
34652 * modules/utf16-ucs4: Turn into a symbolic link to module
34655 * modules/unistr/u16-mbtouc-unsafe: Add source files from module
34657 * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
34658 unistr/u16-mbtouc-unsafe.
34660 * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
34661 * modules/ucs4-utf8: Turn into a symbolic link to module
34664 * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
34665 * modules/ucs4-utf16: Turn into a symbolic link to module
34668 2007-03-24 Bruno Haible <bruno@clisp.org>
34670 * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
34671 Enable the function only if HAVE_INLINE.
34672 * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
34673 lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34674 * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
34675 Enable the function only if HAVE_INLINE.
34676 * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
34677 lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
34678 * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
34679 Enable the function only if HAVE_INLINE.
34680 * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
34681 Enable the function only if HAVE_INLINE.
34682 * modules/utf8-ucs4: Update.
34683 * modules/utf8-ucs4-unsafe: Update.
34684 * modules/utf16-ucs4: Update.
34685 * modules/utf16-ucs4-unsafe: Update.
34686 * modules/ucs4-utf8: Update.
34687 * modules/ucs4-utf16: Update.
34689 2007-03-24 Bruno Haible <bruno@clisp.org>
34691 * lib/utf8-ucs4.h: Remove file.
34692 * lib/utf8-ucs4-unsafe.h: Remove file.
34693 * lib/utf16-ucs4.h: Remove file.
34694 * lib/utf16-ucs4-unsafe.h: Remove file.
34695 * lib/ucs4-utf8.h: Remove file.
34696 * lib/ucs4-utf16.h: Remove file.
34697 * lib/unistr.h: Include their previous contents.
34698 * m4/utf-ucs4.m4: Remove file.
34699 * m4/ucs4-utf.m4: Remove file.
34700 * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
34701 (Depends-on): Add unistr/base.
34702 (configure.ac): Remove gl_UTF_UCS4.
34703 (Makefile.am): Update.
34704 (Include): Change to unistr.h.
34705 * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
34706 (Depends-on): Add unistr/base.
34707 (configure.ac): Remove gl_UTF_UCS4.
34708 (Makefile.am): Update.
34709 (Include): Change to unistr.h.
34710 * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
34711 (Depends-on): Add unistr/base.
34712 (configure.ac): Remove gl_UTF_UCS4.
34713 (Makefile.am): Update.
34714 (Include): Change to unistr.h.
34715 * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
34716 (Depends-on): Add unistr/base.
34717 (configure.ac): Remove gl_UTF_UCS4.
34718 (Makefile.am): Update.
34719 (Include): Change to unistr.h.
34720 * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
34721 (Depends-on): Add unistr/base.
34722 (configure.ac): Remove gl_UCS4_UTF.
34723 (Makefile.am): Update.
34724 (Include): Change to unistr.h.
34725 * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
34726 (Depends-on): Add unistr/base.
34727 (configure.ac): Remove gl_UCS4_UTF.
34728 (Makefile.am): Update.
34729 (Include): Change to unistr.h.
34730 * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
34731 * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
34732 utf8-ucs4-unsafe.h.
34733 * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
34734 * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
34735 utf16-ucs4-unsafe.h.
34736 * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
34737 * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
34738 * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
34739 * lib/unistr/u8-strchr.c: Likewise.
34740 * lib/unistr/u8-strrchr.c: Likewise.
34741 * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
34742 * lib/unistr/u16-strchr.c: Likewise.
34743 * lib/unistr/u16-strrchr.c: Likewise.
34744 * lib/striconveh.c: Update.
34745 * lib/linebreak.c: Update.
34747 2007-03-24 Bruno Haible <bruno@clisp.org>
34749 * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
34750 arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
34752 2007-03-22 Bruno Haible <bruno@clisp.org>
34754 * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
34756 2007-03-23 Paul Eggert <eggert@cs.ucla.edu>
34758 * MODULES.html.sh (File system functions): New module write-any-file.
34759 * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
34760 * m4/write-any-file.m4: New files.
34762 2007-03-23 Eric Blake <ebb9@byu.net>
34764 * gnulib-tool: Rearrange space-tab sequences, since some editors
34767 2007-03-23 Eric Blake <ebb9@byu.net>
34769 * lib/version-etc.c (version_etc_va): Update license wording to
34770 be more concise. Recommended by Richard Stallman.
34772 2007-03-22 Bruno Haible <bruno@clisp.org>
34774 * lib/poll.c (MSG_PEEK): New fallback definition.
34776 2007-03-22 Bruno Haible <bruno@clisp.org>
34778 * modules/sys_socket-tests (configure.ac): Check for shutdown function.
34779 * tests/test-sys_socket.c (a): Test only if shutdown() exists.
34781 Fixes a compilation error on BeOS.
34783 2007-03-22 Bruno Haible <bruno@clisp.org>
34785 * modules/frexpl-tests: New file.
34786 * tests/test-frexpl.c: New file.
34788 * modules/frexpl: New file.
34789 * m4/frexpl.m4: New file.
34790 * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
34791 * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
34792 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
34793 * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
34794 (Depends-on): Add frexpl. Remove isnanl-nolibm.
34795 * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
34797 2007-03-22 Bruno Haible <bruno@clisp.org>
34799 * lib/frexpl.c: Share code with lib/frexp.c.
34800 * modules/mathl (Files): Add lib/frexp.c.
34801 (Depends-on): Add isnanl-nolibm.
34803 2007-03-22 Bruno Haible <bruno@clisp.org>
34805 * modules/printf-frexp (Files): Add m4/frexp.m4.
34806 * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
34807 only if the found frexp function actually works.
34809 2007-03-22 Bruno Haible <bruno@clisp.org>
34811 * lib/frexp.c: Remove older implementation that uses divisions.
34813 2007-03-21 Bruno Haible <bruno@clisp.org>
34815 * modules/frexp-tests: New file.
34816 * tests/test-frexp.c: New file.
34818 * modules/frexp: New file.
34819 * lib/frexp.c: New file.
34820 * m4/frexp.m4: New file.
34821 * lib/math_.h (frexp): New declaration.
34822 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
34824 * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
34826 2007-03-21 Bruno Haible <bruno@clisp.org>
34828 * modules/isnanl-tests: New file.
34829 * tests/test-isnanl.c: New file.
34831 * modules/isnanl: New file.
34832 * lib/isnanl.h: New file.
34833 * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
34834 (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
34835 gl_FUNC_ISNANL_WORKS.
34836 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
34839 2007-03-21 Bruno Haible <bruno@clisp.org>
34841 * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
34844 * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
34845 * lib/vasnprintf.c: Update.
34846 * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
34847 tests/test-isnanl.h, remove tests/test-isnanl.c.
34848 (Makefile.am): Update.
34849 * tests/test-isnanl-nolibm.c: New file.
34850 * tests/test-isnanl.h: New file.
34851 * tests/test-isnanl.c: Remove file.
34853 2007-03-21 Jim Meyering <jim@meyering.net>
34855 When trying to open ".", treat ESTALE like EACCES.
34856 * lib/savewd.c (savewd_save): Resort to forking not just upon
34857 failure with EACCES, but also when errno is ESTALE.
34859 2007-03-20 Bruno Haible <bruno@clisp.org>
34861 * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
34862 Needed on AIX 5.1. Reported by Matthew Woehlke.
34864 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
34866 Suggestions by Bruno Haible:
34867 * lib/acl-internal.h: Include "gettext.h" rather than rolling
34869 (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
34870 * modules/acl (Depends-on): Add gettext.
34872 2007-03-19 Bruno Haible <bruno@clisp.org>
34874 * modules/iconvme: Remove file.
34875 * lib/iconvme.h: Remove file.
34876 * lib/iconvme.c: Remove file.
34877 * m4/iconvme.m4: Remove file.
34879 2007-03-19 Bruno Haible <bruno@clisp.org>
34881 * doc/relocatable-maint.texi: Break long shell script line.
34882 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34884 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
34886 Add limited support for Solaris 10 ZFS-style ACLs: just enough to
34887 handle file_has_acl.
34888 * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
34889 * lib/acl.c: Move header inclusions and related macro defns into
34890 lib/acl-internal.h.
34891 (S_ISLNK): Remove defn, since that's now done for us.
34892 (file_has_acl): Move to lib/file-has-acl.c.
34893 Call acl_trivial if available. This is the crucial part of the fix.
34894 (acl_entries): Move to lib/acl_entries.c. Now extern, since it's
34895 shared within the library. Rewrite a bit, partly to make it compatible
34896 with the GNU coding style.
34897 * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
34898 Remove unnecessary double-quotes.
34899 Don't test for acl_to_text; the build will catch that.
34900 Replace acl_entries if it doesn't exist and it is needed.
34901 Check for -lsec and acl_trivial (as used on Solaris 10).
34902 * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
34903 lib/file-has-acl.c.
34904 (Depends-on): Add sys_stat, for S_ISLNK.
34906 2007-03-19 Ben Pfaff <blp@gnu.org>
34908 * doc/gnulib.texi: Fix typos.
34909 Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
34911 2007-03-19 Paul Eggert <eggert@cs.ucla.edu>
34913 * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
34914 If size is zero here, buf must be zero.
34916 2007-03-19 Simon Josefsson <simon@josefsson.org>
34918 * des.c: Remove weak_keys_chksum. Reported by Bruno Haible
34921 2007-03-18 Bruno Haible <bruno@clisp.org>
34923 * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
34924 Suggested by Eric Blake.
34926 2007-03-18 Ben Pfaff <blp@gnu.org>
34928 * doc/relocatable.texi: Recommend using as prefix a directory
34929 that does not exist and will never be created. Based on
34930 discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
34933 2007-03-17 Bruno Haible <bruno@clisp.org>
34935 * lib/fchownat.c: Include lchown.h.
34937 2007-03-17 Bruno Haible <bruno@clisp.org>
34939 Fix endless loop when the given allocated size was > INT_MAX.
34940 * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
34941 (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
34942 larger than INT_MAX, or when it grow to a value larger than INT_MAX.
34943 * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
34944 * lib/sprintf.c (sprintf): Likewise.
34946 2007-03-17 Bruno Haible <bruno@clisp.org>
34948 * tests/test-argp-2.sh (func_compare): Output a context diff.
34950 2007-03-17 Bruno Haible <bruno@clisp.org>
34952 * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
34953 locale's decimal-point character.
34955 2007-03-17 Bruno Haible <bruno@clisp.org>
34957 * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
34958 before comparing it. Needed because on some platforms (e.g. x86) a
34959 'long double' occupies less bytes than sizeof (long double).
34961 2007-03-17 Bruno Haible <bruno@clisp.org>
34963 * tests/test-crc.c (main): Make printf statements 64-bit clean.
34964 * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
34965 * tests/test-getaddrinfo.c (simple): Likewise.
34966 * tests/test-read-file.c (main): Likewise.
34968 2007-03-17 Bruno Haible <bruno@clisp.org>
34970 * tests/test-dirname.c (main): Make printf statements 64-bit clean.
34972 2007-03-17 Bruno Haible <bruno@clisp.org>
34974 * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
34977 2007-03-17 Bruno Haible <bruno@clisp.org>
34979 * tests/test-c-strcasecmp.c: Include c-strcase.h.
34980 * tests/test-c-strncasecmp.c: Likewise.
34982 2007-03-17 Bruno Haible <bruno@clisp.org>
34984 * modules/stdlib (Depends-on): Add unistd.
34985 * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
34986 Needed for MacOS X 10.3.
34988 2007-03-17 Bruno Haible <bruno@clisp.org>
34990 * lib/unistr/u-strdup.h: Include <stdlib.h>.
34992 2007-03-17 Bruno Haible <bruno@clisp.org>
34994 * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
34996 2007-03-17 Bruno Haible <bruno@clisp.org>
34998 * gnulib-tool (func_import): Update .cvsignore and .gitignore files
34999 to reflect files copied from gnulib (with or without modifications).
35000 Suggested by Jim Meyering.
35002 2007-03-17 Eric Blake <ebb9@byu.net>
35004 * NEWS: Document stdlib change from 2007-02-18.
35006 2007-03-17 Jim Meyering <jim@meyering.net>
35008 Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
35009 * build-aux/bootstrap: Put ""s around use of $build_aux, in case
35010 someone uses a name containing shell meta-characters.
35011 Reported by Alfred M. Szmidt.
35013 * build-aux/bootstrap: Don't use \> in grep regexp. For HP-UX.
35015 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35017 * build-aux/bootstrap (with_gettext): New variable. Run autopoint
35018 and copy gettext configuration files only if configure.ac contains
35019 a use of AM_GNU_GETTEXT_VERSION.
35021 2007-03-16 Alfred M. Szmidt <ams@gnu.org>
35023 * build-aux/bootstrap (gnulib_name): New variable.
35024 (gnulib_tool_options): Use it.
35026 2007-03-13 Simon Josefsson <simon@josefsson.org>
35028 * tests/test-des.c: Use new namespace.
35030 2007-03-15 Bruno Haible <bruno@clisp.org>
35032 * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
35033 Reported by James Youngman <jay@gnu.org>.
35035 2007-03-15 Bruno Haible <bruno@clisp.org>
35037 * lib/glob.c (glob): Add 'restrict' so that prototype matches the
35038 declared prototype. Needed with cc on OSF/1 5.1.
35040 2007-03-15 Bruno Haible <bruno@clisp.org>
35042 * lib/gl_list.h (gl_listelement_dispose_fn): New type.
35043 (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
35044 (struct gl_list_implementation): Add dispose_fn argument to the
35045 'create_empty', 'create' methods.
35046 (struct gl_list_impl_base): Add field 'dispose_fn'.
35047 * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
35049 * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
35050 dispose_fn argument.
35051 (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
35052 dispose_fn on the dropped values.
35053 * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
35054 dispose_fn argument.
35055 (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
35057 * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
35058 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35059 * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
35060 (gl_tree_remove_node): Call dispose_fn on the dropped value.
35061 * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
35063 (gl_tree_list_free): Call dispose_fn on the dropped values.
35064 * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
35065 the dropped values.
35066 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
35067 Add dispose_fn argument.
35068 (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
35069 Call dispose_fn on the dropped values.
35070 * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
35071 Add dispose_fn argument.
35072 (gl_sublist_create): Initialize the 'dispose_fn' field.
35073 * lib/clean-temp.c (create_temp_dir, register_fd): Update.
35074 * tests/test-array_list.c (main): Update.
35075 * tests/test-carray_list.c (main): Update.
35076 * tests/test-avltree_list.c (main): Update.
35077 * tests/test-rbtree_list.c (main): Update.
35078 * tests/test-avltreehash_list.c (main): Update.
35079 * tests/test-rbtreehash_list.c (main): Update.
35080 * tests/test-linked_list.c (main): Update.
35081 * tests/test-linkedhash_list.c (main): Update.
35082 * tests/test-array_oset.c (main): Update.
35084 2007-03-15 Bruno Haible <bruno@clisp.org>
35086 * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
35087 (gl_oset_create_empty): Add dispose_fn argument.
35088 (struct gl_oset_implementation): Add dispose_fn argument to
35089 'create_empty' method.
35090 (struct gl_oset_impl_base): Add dispose_fn field.
35091 * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
35092 * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
35093 (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
35095 * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
35096 (gl_tree_oset_free): Call dispose_fn on the dropped values.
35097 * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35099 * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
35101 * tests/test-array_oset.c (main): Update.
35102 * tests/test-avltree_oset.c (main): Update.
35103 * tests/test-rbtree_oset.c (main): Update.
35104 * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
35106 2007-03-13 Bruno Haible <bruno@clisp.org>
35108 * tests/test-stdbool.c (i): Update after last patch.
35110 2007-03-12 Bruno Haible <bruno@clisp.org>
35112 * lib/quotearg.c: Include <wctype.h> early, before the definition of
35113 the iswprint macro. Needed on Solaris 2.5.1.
35115 2007-03-12 Bruno Haible <bruno@clisp.org>
35117 * tests/test-printf-frexp.c (main): Declare x as volatile.
35119 2007-03-12 Simon Josefsson <simon@josefsson.org>
35121 * doc/gnulib.texi (Build robot for gnulib): New section.
35123 2007-03-12 Jim Meyering <jim@meyering.net>
35125 * build-aux/bootstrap: New file.
35126 * build-aux/bootstrap.conf: New file, from coreutils.
35128 2007-03-11 Bruno Haible <bruno@clisp.org>
35130 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
35132 2007-03-12 Simon Josefsson <simon@josefsson.org>
35134 * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
35135 avoid collisions with 'des_setkey'. Reported by Bruno Haible
35136 <bruno@clisp.org>. Also change 'tripledes_' to '3des_'.
35138 2007-03-11 Bruno Haible <bruno@clisp.org>
35140 * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
35141 compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
35143 2007-03-11 Bruno Haible <bruno@clisp.org>
35145 * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
35146 formula. Needed for SunPRO C 5.0.
35148 2007-03-11 Bruno Haible <bruno@clisp.org>
35150 * modules/long-options (Depends-on): Add getopt.
35152 2007-03-11 Bruno Haible <bruno@clisp.org>
35154 * modules/modechange (Depends-on): Add stdbool.
35156 2007-03-11 Bruno Haible <bruno@clisp.org>
35158 * modules/i-ring (Depends-on): Add stdbool.
35160 2007-03-11 Bruno Haible <bruno@clisp.org>
35162 * modules/gc-des (Depends-on): Add stdbool.
35164 2007-03-11 Bruno Haible <bruno@clisp.org>
35166 * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
35168 2007-03-11 Bruno Haible <bruno@clisp.org>
35170 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
35172 2007-03-11 Bruno Haible <bruno@clisp.org>
35174 * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
35176 2007-03-11 Bruno Haible <bruno@clisp.org>
35178 * lib/vasnprintf.c (sprintf): Undefine.
35180 2007-03-11 Bruno Haible <bruno@clisp.org>
35182 * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
35183 initializers in SunPRO C and Compaq C compilers.
35185 2007-03-11 Bruno Haible <bruno@clisp.org>
35187 * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
35188 decrementing code ANSI C compliant.
35190 2007-03-11 Bruno Haible <bruno@clisp.org>
35192 * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
35193 Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
35195 2007-03-11 Bruno Haible <bruno@clisp.org>
35197 * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
35198 <stdbool.h> substitute doesn't pass.
35200 2007-03-11 Bruno Haible <bruno@clisp.org>
35202 * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
35204 2007-03-11 Bruno Haible <bruno@clisp.org>
35206 * gnulib-tool (func_create_megatestdir): Create also an autobuild
35207 script, for submission to autobuild.josefsson.org.
35209 2007-03-10 Bruno Haible <bruno@clisp.org>
35211 * modules/canonicalize-lgpl-tests: New file.
35212 * tests/test-canonicalize-lgpl.sh: New file.
35213 * tests/test-canonicalize-lgpl.c: New file.
35215 * modules/c-strcase-tests: New file.
35216 * tests/test-c-strcase.sh: New file.
35217 * tests/test-c-strcasecmp.c: New file.
35218 * tests/test-c-strncasecmp.c: New file.
35220 * modules/atexit-tests: New file.
35221 * tests/test-atexit.sh: New file.
35222 * tests/test-atexit.c: New file.
35224 2007-03-10 Bruno Haible <bruno@clisp.org>
35226 * tests/test-binary-io.sh: Use temporary filenames that are not so
35227 likely to clash with those of other tests (in a parallel make).
35228 * tests/test-binary-io.c: Likewise.
35230 2007-03-10 Bruno Haible <bruno@clisp.org>
35232 * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
35233 fallback; use #error instead.
35234 Suggested by Simon Josefsson.
35236 2007-03-10 Bruno Haible <bruno@clisp.org>
35238 * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
35239 CLEANFILES. Put spaces in each line of $cleaned_files, not only the
35240 first and the last.
35242 2007-03-10 Bruno Haible <bruno@clisp.org>
35244 * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
35246 2007-03-10 Bruno Haible <bruno@clisp.org>
35248 * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
35250 * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
35251 * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
35252 * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
35254 2007-03-10 Bruno Haible <bruno@clisp.org>
35256 * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
35258 * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
35261 2007-03-09 Eric Blake <ebb9@byu.net>
35262 and Matthew Woehlke <mw_triad@users.sourceforge.net> (tiny change)
35264 * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
35265 types are not being provided by gnulib.
35266 (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
35267 types are supported.
35269 2007-03-10 Bruno Haible <bruno@clisp.org>
35271 * lib/stdio_.h (__attribute__): New macro.
35272 (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
35273 vsprintf): Specify __attribute__ __format__ for GCC.
35274 Suggested by Eric Blake.
35276 2007-03-09 Bruno Haible <bruno@clisp.org>
35278 * modules/printf-posix-tests: New file.
35279 * tests/test-printf-posix.sh: New file.
35280 * tests/test-printf-posix.c: New file.
35282 * modules/printf-posix: New file.
35283 * lib/printf.c: New file.
35284 * m4/printf-posix-rpl.m4: New file.
35285 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
35287 * lib/stdio_.h (printf): New declaration.
35288 (format, __format__, ____printf____, ____scanf____, ____strftime____,
35289 ____strfmon____): New macros.
35290 * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
35293 2007-03-09 Bruno Haible <bruno@clisp.org>
35295 * tests/test-vasnprintf-posix2.sh: New file.
35296 * tests/test-vasnprintf-posix2.c: New file.
35297 * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
35298 (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
35299 (Makefile.am): Activate test-vasnprintf-posix2.sh.
35301 * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
35302 a locale dependent decimal point, rather than always '.'.
35304 2007-03-09 Eric Blake <ebb9@byu.net>
35306 * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
35307 spite of platforms like Tandem/NSK that define it to -1.
35309 2007-03-08 Bruno Haible <bruno@clisp.org>
35311 * modules/vprintf-posix-tests: New file.
35312 * tests/test-vprintf-posix.sh: New file.
35313 * tests/test-vprintf-posix.c: New file.
35314 * tests/test-printf-posix.h: New file.
35316 * modules/vprintf-posix: New file.
35317 * lib/vprintf.c: New file.
35318 * m4/vprintf-posix.m4: New file.
35319 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
35321 * lib/stdio_.h (vprintf): New declaration.
35322 * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
35325 2007-03-08 Bruno Haible <bruno@clisp.org>
35327 * modules/fprintf-posix-tests: New file.
35328 * tests/test-fprintf-posix.sh: New file.
35329 * tests/test-fprintf-posix.c: New file.
35331 * modules/fprintf-posix: New file.
35332 * lib/fprintf.c: New file.
35333 * m4/fprintf-posix.m4: New file.
35334 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
35336 * lib/stdio_.h (fprintf): New declaration.
35337 * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
35340 2007-03-08 Bruno Haible <bruno@clisp.org>
35342 * modules/vfprintf-posix-tests: New file.
35343 * tests/test-vfprintf-posix.sh: New file.
35344 * tests/test-vfprintf-posix.c: New file.
35345 * tests/test-fprintf-posix.h: New file.
35346 * tests/test-fprintf-posix.out: New file.
35348 * modules/vfprintf-posix: New file.
35349 * lib/vfprintf.c: New file.
35350 * m4/vfprintf-posix.m4: New file.
35351 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
35353 * lib/stdio_.h (vfprintf): New declaration.
35354 * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
35357 2007-03-08 Bruno Haible <bruno@clisp.org>
35359 * lib/stdio_.h: Treat __need___FILE like __need_FILE.
35361 2007-03-08 Bruno Haible <bruno@clisp.org>
35363 * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
35364 instead of 'expr' invocations.
35365 * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
35366 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
35367 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
35368 * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
35369 * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
35370 Suggested by Paul Eggert.
35372 2007-03-08 Bruno Haible <bruno@clisp.org>
35374 * modules/fseterr-tests: New file.
35375 * tests/test-fseterr.c: New file.
35377 * modules/fseterr: New file.
35378 * lib/fseterr.h: New file.
35379 * lib/fseterr.c: New file.
35381 2007-03-08 Bruno Haible <bruno@clisp.org>
35383 * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
35384 * lib/getopt_.h: Likewise.
35385 * lib/mbswidth.h: Likewise.
35386 * lib/setenv.h: Likewise.
35387 * lib/vasnprintf.h: Likewise.
35388 * lib/vasprintf.h: Likewise.
35389 * lib/verror.h: Likewise.
35390 * lib/xsetenv.h: Likewise.
35391 * lib/xvasprintf.h: Likewise.
35393 2007-03-08 Jim Meyering <jim@meyering.net>
35395 * users.txt: Add parted.
35397 * ChangeLog: Restore 1500 lines mistakenly removed from the end.
35399 2007-03-07 Bruno Haible <bruno@clisp.org>
35401 * m4/printf.m4: Make the shell script snippets copy&pastable.
35403 2007-03-02 Bruno Haible <bruno@clisp.org>
35405 * lib/netinet_in_.h: New file.
35406 * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
35407 is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
35408 * modules/netinet_in (Files): Add lib/netinet_in_.h.
35409 (Depends-on): Add absolute-header.
35410 (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
35413 2007-03-03 Bruno Haible <bruno@clisp.org>
35415 * lib/sys_select_.h: New file.
35416 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
35417 is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
35418 * modules/sys_select (Files): Add lib/sys_select_.h.
35419 (Depends-on): Add absolute-header.
35420 (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
35423 2007-03-02 Bruno Haible <bruno@clisp.org>
35425 * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
35426 before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
35428 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
35429 <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
35430 HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
35431 * modules/sys_socket (Depends-on): Add absolute-header.
35432 (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
35433 HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
35434 (Include): Remove requirement of inclusion of <sys/types.h>.
35436 2007-03-02 Bruno Haible <bruno@clisp.org>
35438 * lib/byteswap_.h (bswap_32): Fix formula.
35440 2007-03-06 Bruno Haible <bruno@clisp.org>
35442 * modules/sprintf-posix-tests: New file.
35443 * tests/test-sprintf-posix.c: New file.
35445 * modules/sprintf-posix: New file.
35446 * lib/sprintf.c: New file.
35447 * m4/sprintf-posix.m4: New file.
35448 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
35450 * lib/stdio_.h (sprintf): New declaration.
35451 * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
35454 2007-03-06 Bruno Haible <bruno@clisp.org>
35456 * modules/vsprintf-posix-tests: New file.
35457 * tests/test-vsprintf-posix.c: New file.
35458 * tests/test-sprintf-posix.h: New file.
35460 * modules/vsprintf-posix: New file.
35461 * lib/vsprintf.c: New file.
35462 * m4/vsprintf-posix.m4: New file.
35463 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
35465 * lib/stdio_.h (vsprintf): New declaration.
35466 * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
35469 2007-03-06 Bruno Haible <bruno@clisp.org>
35471 * modules/vsnprintf (Depend-on): Remove minmax.
35473 2007-03-06 Bruno Haible <bruno@clisp.org>
35475 * modules/snprintf-posix-tests: New file.
35476 * tests/test-snprintf-posix.c: New file.
35478 * modules/snprintf-posix: New file.
35479 * m4/snprintf-posix.m4: New file.
35480 * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
35482 (gl_FUNC_SNPRINTF): Invoke it.
35483 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
35484 * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
35486 * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
35488 2007-03-06 Bruno Haible <bruno@clisp.org>
35490 * modules/vsnprintf-posix-tests: New file.
35491 * tests/test-vsnprintf-posix.c: New file.
35492 * tests/test-snprintf-posix.h: New file.
35494 * modules/vsnprintf-posix: New file.
35495 * m4/vsnprintf-posix.m4: New file.
35496 * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
35498 (gl_FUNC_VSNPRINTF): Invoke it.
35499 * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
35500 * lib/stdio_.h (vsnprintf): Define as a replacement if
35501 REPLACE_VSNPRINTF is set.
35502 * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
35504 2007-03-06 Bruno Haible <bruno@clisp.org>
35506 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
35507 * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
35509 2007-03-06 Bruno Haible <bruno@clisp.org>
35511 * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
35512 (asinl): Declare also if HAVE_DECL_ASINL is set.
35513 (atanl): Declare also if HAVE_DECL_ATANL is set.
35514 (ceill): Declare also if HAVE_DECL_CEILL is set.
35515 (cosl): Declare also if HAVE_DECL_COSL is set.
35516 (expl): Declare also if HAVE_DECL_EXPL is set.
35517 (floorl): Declare also if HAVE_DECL_FLOORL is set.
35518 (frexpl): Declare also if HAVE_DECL_FREXPL is set.
35519 (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
35520 (logl): Declare also if HAVE_DECL_LOGL is set.
35521 (sinl): Declare also if HAVE_DECL_SINL is set.
35522 (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
35523 (tanl): Declare also if HAVE_DECL_TANL is set.
35524 * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
35525 * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
35526 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
35527 declaration of frexpl, ldexpl.
35528 * modules/printf-frexpl (Depends-on): Add math.
35529 * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
35531 2007-03-05 Bruno Haible <bruno@clisp.org>
35533 * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
35534 frexpl and ldexpl are declared.
35535 * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
35537 2007-03-05 Bruno Haible <bruno@clisp.org>
35539 * gnulib-tool (func_get_automake_snippet): Don't synthesize an
35540 EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
35542 2007-03-05 Bruno Haible <bruno@clisp.org>
35544 * lib/stdio_.h: Include <stddef.h>.
35546 2007-03-05 Bruno Haible <bruno@clisp.org>
35548 * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
35550 2007-03-05 Bruno Haible <bruno@clisp.org>
35552 * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
35553 NetBSD 4, from Ralf Wildenhues.
35555 2007-03-04 Bruno Haible <bruno@clisp.org>
35557 * lib/vasprintf.h: Update #if logic for the case when the functions
35558 exist but are overridden.
35560 2007-03-04 Bruno Haible <bruno@clisp.org>
35562 * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
35563 implementations: glibc-2.4 and MacOS X 10.3.
35564 * tests/test-vasnprintf-posix.c (test_function): Test also the case
35565 that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
35566 * tests/test-vasprintf-posix.c (test_function): Likewise.
35568 2007-03-04 Bruno Haible <bruno@clisp.org>
35570 * modules/vasprintf-posix-tests: New file.
35571 * tests/test-vasprintf-posix.c: New file.
35573 * modules/vasprintf-posix: New file.
35574 * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
35576 * m4/vasprintf-posix.m4: New file.
35577 * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
35579 (gl_FUNC_VASPRINTF): Invoke it.
35580 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
35582 * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
35584 2007-03-04 Bruno Haible <bruno@clisp.org>
35586 * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
35587 REPLACE_GETTIMEOFDAY.
35588 * modules/sys_time (Makefile.am): Likewise.
35589 * m4/sys_time_h.m4: Likewise.
35590 * m4/gettimeofday.m4: Likewise.
35592 2007-03-04 Bruno Haible <bruno@clisp.org>
35594 * modules/vasnprintf-posix-tests: New file.
35595 * tests/test-vasnprintf-posix.c: New file.
35597 * modules/vasnprintf-posix: New file.
35598 * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
35600 (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
35601 * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
35602 REPLACE_VASNPRINTF is defined.
35603 * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
35604 gl_FUNC_VASNPRINTF.
35605 (gl_FUNC_VASNPRINTF): Invoke it.
35606 * m4/vasnprintf-posix.m4: New file.
35607 * m4/printf.m4: New file.
35609 2007-03-04 Bruno Haible <bruno@clisp.org>
35611 Compile progreloc.c only if --enable-relocatable is specified.
35612 * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
35613 if --enable-relocatable was specified.
35614 * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
35617 2007-03-04 Jim Meyering <jim@meyering.net>
35619 * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
35620 Use it consistently, rather than enumerating errno constants.
35622 2007-03-04 Bruno Haible <bruno@clisp.org>
35624 * modules/xvasprintf-tests: New file.
35625 * tests/test-xvasprintf.c: New file.
35627 * modules/vasprintf-tests: New file.
35628 * tests/test-vasprintf.c: New file.
35630 * modules/vasnprintf-tests: New file.
35631 * tests/test-vasnprintf.c: New file.
35633 * modules/vsnprintf-tests: New file.
35634 * tests/test-vsnprintf.c: New file.
35636 * modules/snprintf-tests: New file.
35637 * tests/test-snprintf.c: New file.
35639 2007-03-04 Bruno Haible <bruno@clisp.org>
35641 Compile relocatable.c only if --enable-relocatable is specified.
35642 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
35643 gl_RELOCATABLE_LIBRARY.
35644 (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
35645 * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
35646 (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
35647 gl_RELOCATABLE_LIBRARY.
35648 * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
35649 (Makefile.am): Remove lib_SOURCES.
35650 * modules/relocatable-lib-lgpl (configure.ac): Invoke
35651 gl_RELOCATABLE_LIBRARY.
35652 (Makefile.am): Remove lib_SOURCES.
35653 * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
35655 * modules/relocatable-prog-wrapper (configure.ac): Invoke
35656 gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
35658 2007-03-04 Bruno Haible <bruno@clisp.org>
35660 * modules/argmatch-tests: New file.
35661 * tests/test-argmatch.c: New file.
35663 * tests/test-allocsa.c (main): Halve the number of loop runs.
35665 * modules/alloca-opt-tests: New file.
35666 * tests/test-alloca-opt.c: New file.
35668 2007-03-04 Jim Meyering <jim@meyering.net>
35670 Work around difference between Linux ACLs and Solaris 10 ZFS.
35671 * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
35674 2007-03-03 Bruno Haible <bruno@clisp.org>
35676 * modules/relocatable-prog (Depends-on): Add back progreloc's
35677 dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
35679 2007-03-03 Bruno Haible <bruno@clisp.org>
35681 * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
35682 * modules/relocatable-lib: New file.
35684 2007-03-03 Bruno Haible <bruno@clisp.org>
35686 * modules/relocatable-prog: Renamed from modules/relocatable.
35687 * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
35689 2007-03-03 Bruno Haible <bruno@clisp.org>
35691 * modules/relocatable-script (Files): Add doc/relocatable.texi,
35692 m4/relocatable-lib.m4.
35693 (Depends-on): Remove 'relocatable'.
35694 (configure.ac): Add gl_RELOCATABLE_NOP.
35696 2007-03-03 Bruno Haible <bruno@clisp.org>
35698 * modules/relocatable-prog-wrapper: New file.
35699 * modules/relocatable (Depends-on): Add it. Remove all other
35700 dependencies except progname.
35701 (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
35703 * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
35704 (gl_FUNC_STRERROR): Nop.
35705 * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
35707 * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
35708 * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
35710 * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
35711 (gl_FUNC_READLINK): Update.
35713 * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
35715 2007-03-03 Bruno Haible <bruno@clisp.org>
35717 * lib/xreadlink.c: Include <unistd.h> unconditionally.
35718 * modules/xreadlink (Depends-on): Add unistd.
35719 * modules/xreadlink-with-size (Depends-on): Likewise.
35721 2007-03-03 Bruno Haible <bruno@clisp.org>
35723 * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
35724 extracted from gt_FUNC_SETENV.
35725 (gt_FUNC_SETENV): Remove macro.
35726 * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
35727 remove gt_FUNC_SETENV.
35729 2007-03-03 Bruno Haible <bruno@clisp.org>
35731 * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
35732 ENABLE_RELOCATABLE here.
35733 * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
35735 2007-03-03 Bruno Haible <bruno@clisp.org>
35737 * modules/rbtreehash-list-tests (Depends-on): Add progname.
35738 * tests/test-rbtreehash_list.c: Include progname.h.
35739 (main): Call set_program_name.
35741 * modules/rbtree-oset-tests (Depends-on): Add progname.
35742 * tests/test-rbtree_oset.c: Include progname.h.
35743 (main): Call set_program_name.
35745 * modules/rbtree-list-tests (Depends-on): Add progname.
35746 * tests/test-rbtree_list.c: Include progname.h.
35747 (main): Call set_program_name.
35749 * modules/linked-list-tests (Depends-on): Add progname.
35750 * tests/test-linked_list.c: Include progname.h.
35751 (main): Call set_program_name.
35753 2007-03-03 Bruno Haible <bruno@clisp.org>
35755 * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
35756 All uses of __restrict changed to _Restrict_.
35757 * lib/glob_.h (__restrict): Remove macro.
35759 2007-03-02 Bruno Haible <bruno@clisp.org>
35761 * modules/gettext (configure.ac): Require gettext infrastructure
35762 from version 0.16.1.
35764 2007-03-02 Bruno Haible <bruno@clisp.org>
35766 * modules/linkedhash-list-tests (Depends-on): Add progname.
35767 * tests/test-linkedhash_list.c: Include progname.h.
35768 (main): Call set_program_name.
35770 * modules/carray-list-tests (Depends-on): Add progname.
35771 * tests/test-carray_list.c: Include progname.h.
35772 (main): Call set_program_name.
35774 * modules/avltreehash-list-tests (Depends-on): Add progname.
35775 * tests/test-avltreehash_list.c: Include progname.h.
35776 (main): Call set_program_name.
35778 * modules/avltree-oset-tests (Depends-on): Add progname.
35779 * tests/test-avltree_oset.c: Include progname.h.
35780 (main): Call set_program_name.
35782 * modules/avltree-list-tests (Depends-on): Add progname.
35783 * tests/test-avltree_list.c: Include progname.h.
35784 (main): Call set_program_name.
35786 * modules/array-oset-tests (Depends-on): Add progname.
35787 * tests/test-array_oset.c: Include progname.h.
35788 (main): Call set_program_name.
35790 * modules/array-list-tests (Depends-on): Add progname.
35791 * tests/test-array_list.c: Include progname.h.
35792 (main): Call set_program_name.
35794 * modules/argp-tests (Depends-on): Add progname.
35795 * tests/test-argp.c: Include argp.h first. Include progname.h.
35796 (main): Call set_program_name.
35798 2007-03-02 Paul Eggert <eggert@cs.ucla.edu>
35800 * doc/gnulib-tool.texi (Initial import): Reword description of
35801 _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
35802 limited effect even if defined after the first system include.
35804 2007-03-01 Bruno Haible <bruno@clisp.org>
35806 * build-aux/config.libpath: Update to libtool-1.5.22.
35807 Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
35809 2007-03-01 Bruno Haible <bruno@clisp.org>
35811 * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
35813 Reported by Ralf Wildenhues.
35815 2007-03-01 Bruno Haible <bruno@clisp.org>
35817 * build-aux/install-reloc: Remove object files left over by some
35819 Reported by Ralf Wildenhues.
35821 2007-03-01 Bruno Haible <bruno@clisp.org>
35823 * build-aux/install-reloc: Break long lines.
35825 2007-03-01 Bruno Haible <bruno@clisp.org>
35827 * doc/relocatable.texi: Document that it may not work on OpenBSD.
35828 Reported by Ralf Wildenhues.
35830 2007-03-01 Bruno Haible <bruno@clisp.org>
35832 * doc/gnulib-tool.texi (Initial import): Remove paragraph about
35833 include ordering constraints.
35835 2007-03-01 Paul Eggert <eggert@cs.ucla.edu>
35837 Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
35838 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
35839 * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
35840 as another example.
35841 * lib/time_.h: Fix misspelling.
35842 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
35843 Require gl_HEADER_TIME_H_DEFAULTS.
35844 * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
35845 * m4/time_r.m4 (gl_TIME_R): Likewise.
35846 * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
35848 2007-03-01 Bruno Haible <bruno@clisp.org>
35850 * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
35851 * m4/utimens.m4 (gl_UTIMENS): Likewise.
35853 2007-03-01 Jim Meyering <jim@meyering.net>
35855 * modules/xreadlink (Maintainer): Add my name.
35856 * modules/xreadlink-with-size (Depends-on): Alphabetize.
35858 2007-02-26 Ben Pfaff <blp@cs.stanford.edu>
35859 Bruno Haible <bruno@clisp.org>
35861 * build-aux/install-reloc: Compile also c-ctype.c.
35862 * build-aux/relocatable.sh.in: New file.
35863 * doc/relocatable.texi: New file.
35864 * doc/relocatable-maint.texi: New file.
35865 * doc/gnulib.texi: Include relocatable-maint.texi.
35866 * lib/progreloc.c: Include unistd.h unconditionally.
35867 * lib/relocwrapper.c: Include unistd.h unconditionally.
35869 (add_dotbin): Use c_tolower.
35870 * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
35871 (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
35872 (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
35873 * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
35874 to m4/relocatable-lib.m4.
35875 (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
35876 RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
35877 (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
35878 require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
35879 SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
35880 * modules/relocatable: New file.
35881 * modules/relocatable-lib: New file.
35882 * modules/relocatable-script: New file.
35884 2007-02-28 Bruno Haible <bruno@clisp.org>
35886 Import --enable-relocatable infrastructure.
35887 * build-aux/config.libpath: New file, from GNU gettext.
35888 * build-aux/install-reloc: New file, from GNU gettext.
35889 * build-aux/reloc-ldflags: New file, from GNU gettext.
35890 * lib/relocatable.h: New file, from GNU gettext.
35891 * lib/relocatable.c: New file, from GNU gettext.
35892 * lib/relocwrapper.c: New file, from GNU gettext.
35893 * m4/relocatable.m4: New file, from GNU gettext.
35895 2007-02-28 Bruno Haible <bruno@clisp.org>
35897 * MODULES.html.sh (File system functions): Add xreadlink-with-size.
35899 * modules/xreadlink: New file, from GNU gettext with modifications.
35900 * lib/xreadlink.c: New file, from GNU gettext.
35901 * lib/xreadlink.h: Add comments.
35902 (xreadlink): New declaration.
35904 * modules/xreadlink-with-size: Renamed from modules/xreadlink.
35905 (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
35906 lib/xreadlink-with-size.c.
35907 (configure.ac): Remove gl_XREADLINK invocation.
35908 (Makefile.am): Augment lib_SOURCES.
35909 * m4/xreadlink.m4: Remove file.
35910 * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
35911 (xreadlink_with_size): Renamed from xreadink.
35912 * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
35913 * modules/canonicalize (Depends-on): Replace xreadlink with
35914 xreadlink-with-size.
35915 * lib/canonicalize.c (canonicalize_filename_mode): Update.
35917 2007-02-25 Jim Meyering <jim@meyering.net>
35919 * build-aux/announce-gen: When complaining about excess arguments,
35922 2007-02-25 Paul Eggert <eggert@cs.ucla.edu>
35924 * README: Document signed integer overflow situation more
35927 2007-02-25 Bruno Haible <bruno@clisp.org>
35929 * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
35930 'a' or 'A' conversion.
35932 2007-02-25 Bruno Haible <bruno@clisp.org>
35934 * modules/filename: Renamed from modules/pathname.
35935 (Files): Replace lib/pathname.h with lib/filename.h. Replace
35936 lib/concatpath.c with lib/concat-filename.c.
35937 (Makefile.am): Update.
35938 (Include): Replace pathname.h with filename.h.
35939 * lib/filename.h: Renamed from lib/pathname.h.
35940 (concatenated_filename): Renamed from concatenated_pathname.
35941 * lib/concat-filename.c: Renamed from lib/concatpath.c.
35942 (concatenated_filename): Renamed from concatenated_pathname.
35943 * lib/findprog.c: Include filename.h instead of pathname.h.
35944 (find_in_path): Update.
35945 * lib/javacomp.c: Include filename.h instead of pathname.h.
35946 (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
35947 is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
35948 is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
35949 is_oldgcj_14_13_usable, is_javac_usable): Update.
35950 * lib/javaexec.c: Include filename.h instead of pathname.h.
35951 (execute_java_class): Update.
35952 * modules/findprog: Update.
35953 * modules/javacomp: Update.
35954 * modules/javaexec: Update.
35955 * MODULES.html.sh (File system functions): Add 'filename', remove
35958 2007-02-25 Bruno Haible <bruno@clisp.org>
35960 * modules/printf-frexpl-tests: New file.
35961 * tests/test-printf-frexpl.c: New file.
35963 * modules/printf-frexpl: New file.
35964 * lib/printf-frexpl.h: New file.
35965 * lib/printf-frexpl.c: New file.
35966 * m4/printf-frexpl.m4: New file.
35968 2007-02-25 Bruno Haible <bruno@clisp.org>
35970 * modules/printf-frexp-tests: New file.
35971 * tests/test-printf-frexp.c: New file.
35973 * modules/printf-frexp: New file.
35974 * lib/printf-frexp.h: New file.
35975 * lib/printf-frexp.c: New file.
35976 * m4/printf-frexp.m4: New file.
35978 2007-02-25 Bruno Haible <bruno@clisp.org>
35980 Assume automake >= 1.10 for the tests.
35981 * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
35982 * modules/arctwo-tests: Likewise.
35983 * modules/argp-tests: Likewise.
35984 * modules/avltree-list-tests: Likewise.
35985 * modules/avltree-oset-tests: Likewise.
35986 * modules/avltreehash-list-tests: Likewise.
35987 * modules/carray-list-tests: Likewise.
35988 * modules/crc-tests: Likewise.
35989 * modules/des-tests: Likewise.
35990 * modules/gc-arcfour-tests: Likewise.
35991 * modules/gc-arctwo-tests: Likewise.
35992 * modules/gc-des-tests: Likewise.
35993 * modules/gc-hmac-md5-tests: Likewise.
35994 * modules/gc-hmac-sha1-tests: Likewise.
35995 * modules/gc-md2-tests: Likewise.
35996 * modules/gc-md4-tests: Likewise.
35997 * modules/gc-md5-tests: Likewise.
35998 * modules/gc-pbkdf2-sha1-tests: Likewise.
35999 * modules/gc-rijndael-tests: Likewise.
36000 * modules/gc-sha1-tests: Likewise.
36001 * modules/gc-tests: Likewise.
36002 * modules/getaddrinfo-tests: Likewise.
36003 * modules/hmac-md5-tests: Likewise.
36004 * modules/hmac-sha1-tests: Likewise.
36005 * modules/linked-list-tests: Likewise.
36006 * modules/linkedhash-list-tests: Likewise.
36007 * modules/lock-tests: Likewise.
36008 * modules/md2-tests: Likewise.
36009 * modules/md4-tests: Likewise.
36010 * modules/md5-tests: Likewise.
36011 * modules/rbtree-list-tests: Likewise.
36012 * modules/rbtree-oset-tests: Likewise.
36013 * modules/rbtreehash-list-tests: Likewise.
36014 * modules/read-file-tests: Likewise.
36015 * modules/rijndael-tests: Likewise.
36016 * modules/stdint-tests: Likewise.
36017 * modules/tls-tests: Likewise.
36019 2007-02-24 Bruno Haible <bruno@clisp.org>
36021 * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
36022 * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
36023 function; instead check whether isnan with a double argument links.
36024 * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
36025 function; instead check whether isnan with a 'long double' argument
36027 Reported by Eric Blake <ebb9@byu.net>.
36029 2007-02-24 Bruno Haible <bruno@clisp.org>
36031 * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
36033 * lib/isnanl.c: Remove all code. Just include isnan.c.
36034 * modules/isnanl-nolibm (Files): Add lib/isnan.c.
36036 2007-02-25 Jim Meyering <jim@meyering.net>
36038 Avoid conflicting types for 'unsetenv' on FreeBSD.
36039 * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
36040 conflicting with FreeBSD's (5.0 and 6.1) function declaration
36043 2007-02-24 Bruno Haible <bruno@clisp.org>
36045 * modules/isnanl-nolibm-tests: New file.
36046 * tests/test-isnanl.c: New file.
36048 * modules/isnanl-nolibm: New file.
36049 * lib/isnanl.h: New file.
36050 * lib/isnanl.c: New file.
36051 * m4/isnanl.m4: New file.
36053 2007-02-24 Bruno Haible <bruno@clisp.org>
36055 * modules/isnan-nolibm-tests: New file.
36056 * tests/test-isnan.c: New file.
36058 * modules/isnan-nolibm: New file.
36059 * lib/isnan.h: New file.
36060 * lib/isnan.c: New file.
36061 * m4/isnan.m4: New file.
36063 2007-02-24 Bruno Haible <bruno@clisp.org>
36065 * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
36066 assume that an exponent fits in 20 bits.
36068 2007-02-24 Jim Meyering <jim@meyering.net>
36070 * m4/regex.m4: Update the description of the configure-time option,
36071 --without-included-regex, to state accurately what the defaults are,
36072 and perhaps to give people an idea why using this option is risky.
36074 2007-02-24 Paul Eggert <eggert@cs.ucla.edu>
36076 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
36077 loops on small arguments. This attempts to avoid the problem
36078 Bruno Haible reported for AIX 4.3.2 in
36079 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
36081 2007-02-23 Bruno Haible <bruno@clisp.org>
36083 * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
36084 Needed for help2man.
36086 2007-02-23 Karl Berry <karl@gnu.org>
36088 * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
36089 exists, foo.h should be cvs-ignored, not committed.
36091 2007-02-23 Eric Blake <ebb9@byu.net>
36093 * lib/getdate.h (includes): Include <time.h>, not "timespec.h".
36094 * lib/stat-time.h (includes): Likewise.
36095 * lib/utimecmp.c (includes): Likewise.
36096 * lib/utimens.h (includes): Likewise.
36097 * lib/getdate.y (includes): Also include "timespec.h" for use
36098 internal to the module.
36099 * modules/utimens (Depends-on): Revert yesterday's patch.
36100 * modules/nanosleep (Depends-on): Add missing dependency.
36102 2007-02-22 Bruno Haible <bruno@clisp.org>
36104 * lib/glob.c: Don't include getlogin_r.h.
36106 2007-02-22 Jim Meyering <jim@meyering.net>
36108 * modules/utimens (Depends-on): Add timespec, required for
36109 utimens.h's inclusion of timespec.h.
36111 2007-02-21 Paul Eggert <eggert@cs.ucla.edu>
36113 * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
36114 long unreadable paths in GNU/Linux. Problem reported by Andreas
36116 <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
36117 I'll try to think of a better way to fix the Solaris problem.
36119 * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
36120 like glibc; on Solaris 10, it fails with errno == EINVAL.
36121 POSIX says the behavior is unspecified if the first argument is NULL,
36122 so play it safe and never pass NULL to the system getcwd.
36124 2007-02-21 Jim Meyering <jim@meyering.net>
36126 * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
36127 of gettimeofday. It would conflict with the one now always
36128 provided via sys_time_.h. Reported by Matthew Woehlke, as
36129 an IRIX 6.5 build failure.
36131 2007-02-20 Paul Eggert <eggert@cs.ucla.edu>
36133 Minor fixups to port to Solaris 10 with Sun C 5.8.
36134 * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
36135 * modules/getcwd (Depends-on): Add dirfd.
36136 * lib/putenv.c (putenv): #undef it.
36137 (rpl_putenv): New decl.
36138 (malloc, free): Include <stdlib.h> rather than prototyping separately.
36140 2007-02-20 Bruno Haible <bruno@clisp.org>
36142 * modules/stdio-tests: New file.
36143 * tests/test-stdio.c: New file.
36145 * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
36146 (Depends-on): Add stdio.
36147 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36148 (Include): Use <stdio.h> instead of vsnprintf.h.
36149 * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36150 HAVE_DECL_VSNPRINTF.
36151 * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
36153 * modules/snprintf (Files): Remove lib/snprintf.h.
36154 (Depends-on): Add stdio.
36155 (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
36156 (Include): Use <stdio.h> instead of snprintf.h.
36157 * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
36158 HAVE_DECL_SNPRINTF.
36159 * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
36160 * lib/getaddrinfo.c: Likewise.
36162 * modules/stdio: New file.
36163 * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
36164 * lib/snprintf.h: Remove file.
36165 * lib/vsnprintf.h: Remove file.
36166 * lib/.cppi-disable: Remove snprintf.h.
36167 * m4/stdio_h.m4: New file.
36168 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
36170 2007-02-20 Jim Meyering <jim@meyering.net>
36172 * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
36173 used by e.g., mingw. From Bruno Haible.
36175 2007-02-19 Bruno Haible <bruno@clisp.org>
36177 * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
36179 Reported by Ben Pfaff <blp@cs.stanford.edu>.
36181 2007-02-19 Bruno Haible <bruno@clisp.org>
36183 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
36186 2007-02-19 Bruno Haible <bruno@clisp.org>
36188 * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
36190 Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
36192 2007-02-19 Jim Meyering <jim@meyering.net>
36194 Don't use FD after a successful "fdopendir (fd)".
36195 * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
36196 Reset it by calling dirfd on the just-obtained DIR*.
36198 * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
36199 Prompted by a report from Bruno Haible that mingw lacks ftruncate.
36201 2007-02-18 Bruno Haible <bruno@clisp.org>
36203 * lib/readlink.c: Include <unistd.h>.
36204 * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
36206 * modules/readlink (Depends-on): Add unistd.
36207 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36208 (Include): Add <unistd.h>.
36210 * lib/getlogin_r.h: Remove file.
36211 * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
36212 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
36213 (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
36214 HAVE_DECL_GETLOGIN_R.
36215 * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
36216 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36217 (Include): Use <unistd.h> instead of getlogin_r.h.
36219 * lib/getcwd.h: Remove file.
36220 * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
36221 * lib/xgetcwd.c: Likewise.
36222 * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
36223 REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
36224 * modules/getcwd (Files): Remove lib/getcwd.h.
36225 (Depends-on): Add unistd.
36226 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36227 (Include): Use <unistd.h> instad of getcwd.h.
36229 * lib/ftruncate.c: Include <unistd.h> first.
36230 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
36231 Set HAVE_FTRUNCATE.
36232 * modules/ftruncate (Depends-on): Add unistd.
36233 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36235 * lib/fchdir.c: Include <unistd.h> first.
36236 * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
36237 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
36238 of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
36239 * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36240 (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
36242 * lib/dup2.c: Include <unistd.h> first.
36243 * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
36245 * modules/dup2 (Depends-on): Add unistd.
36246 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36248 * lib/chown.c: Include <unistd.h> first. Undefine chown later.
36249 * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
36250 REPLACE_CHOWN. Don't define chown as a macro here.
36251 * modules/chown (Depends-on): Add unistd.
36252 (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
36254 * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
36255 Add definition for GL_LINK_WARNING.
36256 (chown, dup2): New declarations.
36257 (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
36259 (ftruncate): New declaration.
36260 (getcwd): New declaration, taken from old getcwd.h.
36261 (getlogin_r): New declaration, taken from old getlogin_r.h.
36262 (readlink): New declaration.
36263 * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
36264 set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
36265 (gl_PREREQ_UNISTD): Remove macro.
36266 (gl_UNISTD_MODULE_INDICATOR): New macro.
36267 (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
36268 many new variables. Don't set UNISTD_H.
36269 * modules/unistd (Description): Change.
36270 (Depends-on): Add link-warning.
36271 (configure.ac): Update.
36272 (Makefile.am): Create unistd.h always. Substitute many new variables
36275 2007-02-18 Bruno Haible <bruno@clisp.org>
36277 * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
36278 * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
36280 * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
36281 GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
36282 * lib/getsubopt.h: Remove file.
36283 * modules/getsubopt (Files): Remove lib/getsubopt.h.
36284 (Depends-on): Add stdlib.
36285 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36286 (Includes): Use <stdlib.h> instead of getsubopt.h.
36287 * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
36288 Set HAVE_GETSUBOPT.
36289 * lib/getsubopt.c: Don't include getsubopt.h.
36291 2007-02-18 Bruno Haible <bruno@clisp.org>
36293 * modules/fchdir (Depends-on): Add dup2.
36295 2007-02-18 Bruno Haible <bruno@clisp.org>
36297 * lib/stdlib_.h: Handle glibc's special invocation convention
36300 2007-02-18 Bruno Haible <bruno@clisp.org>
36302 * modules/stdlib-tests: New file.
36303 * tests/test-stdlib.c: New file.
36305 * modules/mkstemp (Files): Remove lib/mkstemp.h.
36306 (Depends-on): Add stdlib.
36307 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36308 (Includes): Use <stdlib.h> instead of mkstemp.h.
36309 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36310 REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
36311 * lib/mkstemp.c: Don't include mkstemp.h.
36312 * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
36313 * lib/stdlib--.h: Don't include mkstemp.h.
36315 * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
36316 (Depends-on): Add stdlib.
36317 (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
36318 (Includes): Use <stdlib.h> instead of mkdtemp.h.
36319 * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
36321 * lib/mkdtemp.c: Don't include mkdtemp.h.
36322 * lib/clean-temp.c: Don't include mkdtemp.h.
36324 * modules/exit (Files): Remove lib/exit.h.
36325 (Depends-on): Add stdlib.
36326 (Makefile.am): Remove lib_SOURCES.
36327 (Include): Use <stdlib.h> instead of exit.h.
36328 * lib/argmatch.c: Don't include exit.h.
36329 * lib/execute.c: Likewise.
36330 * lib/pagealign_alloc.c: Likewise.
36331 * lib/pipe.c: Likewise.
36332 * lib/wait-process.c: Likewise.
36333 * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
36334 * lib/exitfail.c: Likewise.
36335 * lib/savewd.c: Likewise.
36336 * lib/xsetenv.c: Likewise.
36338 * modules/stdlib: New file.
36339 * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
36340 and extra comments about mkstemp().
36341 * lib/exit.h: Remove file.
36342 * lib/mkdtemp.h: Remove file.
36343 * lib/mkstemp.h: Remove file.
36344 * m4/stdlib_h.m4: New file.
36345 * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
36347 2007-02-18 Bruno Haible <bruno@clisp.org>
36349 * modules/math-tests: New file.
36350 * tests/test-math.c: New file.
36352 * modules/math: New file.
36353 * modules/mathl (Files): Remove lib/mathl.h.
36354 (Depends-on): Add math.
36355 (Makefile.am): Don't mention mathl.h.
36356 (Include): Use <math.h> instead of mathl.h.
36357 * lib/math_.h: New file.
36358 * lib/mathl.h: Remove file.
36359 * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
36361 * lib/asinl.c: Likewise.
36362 * lib/atanl.c: Likewise.
36363 * lib/ceill.c: Likewise.
36364 * lib/cosl.c: Likewise.
36365 * lib/expl.c: Likewise.
36366 * lib/floorl.c: Likewise.
36367 * lib/frexpl.c: Likewise.
36368 * lib/ldexpl.c: Likewise.
36369 * lib/logl.c: Likewise.
36370 * lib/sincosl.c: Likewise.
36371 * lib/sinl.c: Likewise.
36372 * lib/sqrtl.c: Likewise.
36373 * lib/tanl.c: Likewise.
36374 * lib/trigl.c: Likewise.
36375 * m4/math_h.m4: New file.
36376 * MODULES.html.sh (Mathematics): Add math.
36378 2007-02-17 Bruno Haible <bruno@clisp.org>
36380 * modules/wctype-tests: New file.
36381 * tests/test-wctype.c: New file.
36383 * modules/wchar-tests: New file.
36384 * tests/test-wchar.c: New file.
36386 * modules/unistd-tests: New file.
36387 * tests/test-unistd.c: New file.
36389 * modules/time-tests: New file.
36390 * tests/test-time.c: New file.
36392 * modules/sysexits-tests: New file.
36393 * tests/test-sysexits.c: New file.
36395 * modules/sys_time-tests: New file.
36396 * tests/test-sys_time.c: New file.
36398 * modules/sys_stat-tests: New file.
36399 * tests/test-sys_stat.c: New file.
36401 * modules/sys_socket-tests: New file.
36402 * tests/test-sys_socket.c: New file.
36404 * modules/sys_select-tests: New file.
36405 * tests/test-sys_select.c: New file.
36407 * modules/string-tests: New file.
36408 * tests/test-string.c: New file.
36410 * modules/stdbool-tests: New file.
36411 * tests/test-stdbool.c: New file.
36413 * modules/netinet_in-tests: New file.
36414 * tests/test-netinet_in.c: New file.
36416 * modules/inttypes-tests: New file.
36417 * tests/test-inttypes.c: New file.
36419 * modules/fcntl-tests: New file.
36420 * tests/test-fcntl.c: New file.
36422 * modules/byteswap-tests: New file.
36423 * tests/test-byteswap.c: New file.
36425 * modules/arpa_inet-tests: New file.
36426 * tests/test-arpa_inet.c: New file.
36428 2007-02-17 Bruno Haible <bruno@clisp.org>
36430 * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
36431 (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
36432 if the corresponding module is not enabled. Emit link warnings if
36433 the function is used nevertheless.
36434 * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
36435 Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
36436 HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
36437 (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
36438 * modules/inttypes (Depends-on): Add link-warning.
36439 (Makefile.am): Copy the contents of build-aux/link-warning.h into
36440 inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
36441 GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
36442 * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
36443 * modules/imaxdiv (configure.ac): Likewise.
36444 * modules/strtoimax (configure.ac): Likewise.
36445 * modules/strtoumax (configure.ac): Likewise.
36447 2007-02-17 Bruno Haible <bruno@clisp.org>
36449 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
36450 gl_STRING_MODULE_INDICATOR_DEFAULTS.
36451 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
36452 (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
36454 2007-02-17 Bruno Haible <bruno@clisp.org>
36456 * modules/link-warning: New file.
36457 * build-aux/link-warning.h: New file, extracted from lib/string_.h.
36458 * lib/string_.h (GL_LINK_WARNING): Remove definition.
36459 * modules/string (Depends-on): Add link-warning.
36460 (Makefile.am): Copy the contents of build-aux/link-warning.h into
36462 * MODULES.html.sh (Support for building libraries and executables): Add
36465 2007-02-17 Bruno Haible <bruno@clisp.org>
36467 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
36468 strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
36469 strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
36472 2007-02-17 Ben Pfaff <blp@cs.stanford.edu>
36473 Bruno Haible <bruno@clisp.org>
36475 * modules/tmpfile: New file.
36476 * lib/tmpfile.c: New file.
36477 * m4/tmpfile.m4: New file.
36478 * MODULES.html.sh (func_all_modules): New section "Input/output".
36480 2007-02-15 Bruno Haible <bruno@clisp.org>
36482 * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
36483 (supports_delete_on_close): New function.
36484 (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
36486 2007-02-14 Bruno Haible <bruno@clisp.org>
36488 * modules/mbspcasecmp-tests: New file.
36489 * tests/test-mbspcasecmp.sh: New file.
36490 * tests/test-mbspcasecmp.c: New file.
36492 New module mbspcasecmp.
36493 * modules/mbspcasecmp: New file.
36494 * lib/mbspcasecmp.c: New file.
36495 * lib/string_.h (strncasecmp): Change warning message.
36496 (mbspcasecmp): New declaration.
36497 * m4/mbspcasecmp.m4: New file.
36498 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36499 GNULIB_MBSPCASECMP.
36500 * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
36501 * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
36503 2007-02-14 Bruno Haible <bruno@clisp.org>
36505 * modules/mbsncasecmp-tests: New file.
36506 * tests/test-mbsncasecmp.sh: New file.
36507 * tests/test-mbsncasecmp.c: New file.
36509 New module mbsncasecmp.
36510 * modules/mbsncasecmp: New file.
36511 * lib/mbsncasecmp.c: New file.
36512 * lib/string_.h (mbsncasecmp): New declaration.
36513 * m4/mbsncasecmp.m4: New file.
36514 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36515 GNULIB_MBSNCASECMP.
36516 * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
36517 * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
36519 2007-02-14 Paul Eggert <eggert@cs.ucla.edu>
36521 * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
36522 Verify that it doesn't overlap with our flags.
36523 (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
36524 do not have the desired effect in multibyte locales; instead, use
36526 * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
36527 Add dependency on xalloc. Depend on fnmatch, not fnmatch-gnu, since
36528 we don't require GNU fnmatch ourselves (if our users require it, they
36529 should do so explicitly).
36531 Fix regex code so it doesn't rely on strcasecmp.
36532 * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
36533 Otherwise, include gnulib's langinfo.h.
36534 * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
36535 undesirable behavior in non-C locales. Instead, rely on localecharset.
36536 * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
36537 * modules/regex (FILES): Remove m4/codeset.m4.
36538 (Depends-on): Add localcharset. Remove strcase.
36540 2007-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36542 * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
36543 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
36545 2007-02-13 Bruno Haible <bruno@clisp.org>
36547 * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
36548 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36550 2007-02-12 Bruno Haible <bruno@clisp.org>
36552 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
36553 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
36554 GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
36555 time warning rather than a link error.
36557 2007-02-12 Bruno Haible <bruno@clisp.org>
36559 * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
36560 * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
36561 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36563 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
36565 * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
36568 2007-02-12 Paul Eggert <eggert@cs.ucla.edu>
36570 New module 'time', so that apps can include <time.h> as per
36571 POSIX and GNU instead of separate include files like time_r.h
36572 and timegm.h. This implementation tries out a simpler approach
36573 for replacing decls in standard include files (as compared to
36574 the string module), somewhat as an experiment.
36576 * config/srclist.txt: Comment out mktime.c for now.
36577 * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
36578 since it doesn't apply any more. Use generic wording instead.
36579 * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
36581 * lib/time_.h, m4/time_h.m4, modules/time: New files.
36582 * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
36583 * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
36584 Don't include <sys/types.h>; no longer needed since we assume C89.
36585 * lib/mktime.c: Don't include "time_r.h"; no longer needed.
36586 * lib/strftime.c: Likewise.
36587 * lib/time_r.c: Likewise.
36588 * lib/nanosleep.c (nanosleep): #undef after include files, not before.
36589 * lib/nanosleep.c: Include <time.h> first, to check interface.
36590 * lib/strptime.c: Likewise.
36591 * lib/time_r.c: Likewise.
36592 * lib/timegm.c: Likewise.
36593 * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
36595 * lib/timegm.c: Don't include timegm.h; no longer needed.
36596 * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
36597 time.h now handles any problems in that area.
36598 (struct timespec, nanosleep): Remove; time.h now arranges for these.
36599 * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
36600 that time.h defines struct timespec.
36601 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
36602 Set REPLACE_NANOSLEEP. Don't AC_DEFINE nanosleep; the time module now
36604 * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
36605 * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
36606 needed. Set REPLACE_LOCALTIME.
36607 * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
36608 * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
36609 (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
36610 nanosleep; time_h.m4 now does that. Don't require
36611 gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
36612 module handles this now.
36613 * modules/getdate (Depends-on): Remove timespec. Add time.
36614 * modules/nanosleep (Depends-on): Likewise.
36615 * modules/stat-time (Depends-on): Likewise.
36616 * modules/nanosleep (Include): Include time.h, not timespec.h.
36617 * modules/strptime (Files): Remove lib/strptime.h.
36618 (Depends-on): Add extensions, time.
36619 (Include): Include time.h, not strptime.h.
36620 * modules/time_r (Files): Remove lib/time_r.h.
36621 (Depends-on): Add time.
36622 (Include): Include time.h, not time_r.h.
36623 * modules/timegm: Likewise.
36624 * modules/timespec (Description): Now does timespec-related decls
36625 of our own, instead of struct timespec itself.
36626 (Depends-on): Add time; remove extensions.
36627 (Maintainer): Add self.
36628 * modules/utimecmp (Depends-on): Add time; remove timespec.
36629 * modules/utimens (Depends-on): Likewise.
36630 * modules/xnanosleep (Depends-on): Likewise.
36632 2007-02-11 Bruno Haible <bruno@clisp.org>
36634 * lib/c-strstr.c: Include allocsa.h.
36635 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36636 * lib/c-strcasestr.c: Include allocsa.h.
36637 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36638 * lib/strcasestr.c: Include allocsa.h.
36639 (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
36640 * lib/mbsstr.c: Include allocsa.h.
36641 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36642 allocsa/freesa instead of malloc/free.
36643 * lib/mbscasestr.c: Include allocsa.h.
36644 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
36645 allocsa/freesa instead of malloc/free.
36646 * modules/c-strstr (Depends-on): Add allocsa.
36647 * modules/c-strcasestr (Depends-on): Likewise.
36648 * modules/strcasestr (Depends-on): Likewise.
36649 * modules/mbsstr (Depends-on): Likewise.
36650 * modules/mbscasestr (Depends-on): Likewise.
36652 2007-02-11 Bruno Haible <bruno@clisp.org>
36654 * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
36656 * modules/mbsspn-tests: New file.
36657 * tests/test-mbsspn.sh: New file.
36658 * tests/test-mbsspn.c: New file.
36660 2007-02-11 Bruno Haible <bruno@clisp.org>
36662 * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
36664 * modules/mbspbrk-tests: New file.
36665 * tests/test-mbspbrk.sh: New file.
36666 * tests/test-mbspbrk.c: New file.
36668 2007-02-11 Bruno Haible <bruno@clisp.org>
36670 * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
36673 * modules/mbscspn-tests: New file.
36674 * tests/test-mbscspn.sh: New file.
36675 * tests/test-mbscspn.c: New file.
36677 2007-02-11 Bruno Haible <bruno@clisp.org>
36679 * modules/mbscasecmp-tests: New file.
36680 * tests/test-mbscasecmp.sh: New file.
36681 * tests/test-mbscasecmp.c: New file.
36683 2007-02-11 Bruno Haible <bruno@clisp.org>
36685 Ensure O(n) worst-case complexity of mbscasestr.
36686 * lib/mbscasestr.c: Include stdbool.h.
36687 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36689 (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
36690 the bookkeeping indicates that it's worth it.
36691 * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
36693 * modules/mbscasestr-tests: New file.
36694 * tests/test-mbscasestr1.c: New file.
36695 * tests/test-mbscasestr2.sh: New file.
36696 * tests/test-mbscasestr2.c: New file.
36697 * tests/test-mbscasestr3.sh: New file.
36698 * tests/test-mbscasestr3.c: New file.
36699 * tests/test-mbscasestr4.sh: New file.
36700 * tests/test-mbscasestr4.c: New file.
36701 * m4/locale-tr.m4: New file.
36703 2007-02-11 Bruno Haible <bruno@clisp.org>
36705 Ensure O(n) worst-case complexity of mbsstr.
36706 * lib/mbsstr.c: Include stdbool.h.
36707 (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
36709 (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
36710 bookkeeping indicates that it's worth it.
36711 * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
36713 * modules/mbsstr-tests: New file.
36714 * tests/test-mbsstr1.c: New file.
36715 * tests/test-mbsstr2.sh: New file.
36716 * tests/test-mbsstr2.c: New file.
36717 * tests/test-mbsstr3.sh: New file.
36718 * tests/test-mbsstr3.c: New file.
36719 * m4/locale-fr.m4: New file.
36721 2007-02-11 Bruno Haible <bruno@clisp.org>
36723 * lib/mbsrchr.c (mbsrchr): Fix bug.
36725 * modules/mbsrchr-tests: New file.
36726 * tests/test-mbsrchr.sh: New file.
36727 * tests/test-mbsrchr.c: New file.
36729 2007-02-11 Bruno Haible <bruno@clisp.org>
36731 * lib/mbschr.c (mbschr): Fix bug.
36733 * modules/mbschr-tests: New file.
36734 * tests/test-mbschr.sh: New file.
36735 * tests/test-mbschr.c: New file.
36736 * m4/locale-zh.m4: New file.
36738 2007-02-11 Bruno Haible <bruno@clisp.org>
36740 Support for copying multibyte string iterators.
36741 * lib/mbiter.h: Include <string.h>.
36742 (mbiter_multi_copy): New function.
36743 (mbi_copy): New macro.
36744 * lib/mbuiter.h: Include <string.h>.
36745 (mbuiter_multi_copy): New function.
36746 (mbui_copy): New macro.
36748 2007-02-11 Bruno Haible <bruno@clisp.org>
36751 * modules/mbslen: New file.
36752 * lib/mbslen.c: New file.
36753 * lib/string_.h (mbslen): New declaration.
36754 * m4/mbslen.m4: New file.
36755 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36757 * modules/string (string.h): Also substitute GNULIB_MBSLEN.
36758 * MODULES.html.sh (Internationalization functions): Add mbslen.
36760 2007-02-11 Bruno Haible <bruno@clisp.org>
36762 Ensure O(n) worst-case complexity of strcasestr substitute.
36763 * lib/strcasestr.c: Include stdbool.h.
36764 (knuth_morris_pratt): New function.
36765 (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36766 bookkeeping indicates that it's worth it.
36767 * modules/strcasestr (Depends-on): Add stdbool, strnlen.
36769 * modules/strcasestr-tests: New file.
36770 * tests/test-strcasestr.c: New file.
36772 2007-02-11 Bruno Haible <bruno@clisp.org>
36774 Ensure O(n) worst-case complexity of c_strcasestr.
36775 * lib/c-strcasestr.c: Include stdbool.h, string.h.
36776 (knuth_morris_pratt): New function.
36777 (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
36778 the bookkeeping indicates that it's worth it.
36779 * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
36781 * modules/c-strcasestr-tests: New file.
36782 * tests/test-c-strcasestr.c: New file.
36784 2007-02-11 Bruno Haible <bruno@clisp.org>
36786 Ensure O(n) worst-case complexity of c_strstr.
36787 * lib/c-strstr.c: Include stdbool.h, string.h.
36788 (knuth_morris_pratt): New function.
36789 (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
36790 bookkeeping indicates that it's worth it.
36791 * modules/c-strstr (Depends-on): Add stdbool, strnlen.
36793 * lib/c-strstr.c: Complete rewrite for maintainability.
36795 * modules/c-strstr-tests: New file.
36796 * tests/test-c-strstr.c: New file.
36798 2007-02-11 Bruno Haible <bruno@clisp.org>
36800 * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
36801 5.2.1 and earlier, whereby \055 was treated just like the range
36803 Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
36805 2007-02-08 Bruno Haible <bruno@clisp.org>
36807 * modules/regex (Depends-on): Add stdbool.
36808 Reported by Dalibor Topic <robilad@kaffe.org>.
36810 2007-02-05 Paul Eggert <eggert@cs.ucla.edu>
36812 * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
36813 Prefer returning from main to exiting from it.
36814 Remove unnecessary parens after sizeof.
36816 2007-02-05 Bruno Haible <bruno@clisp.org>
36819 * modules/mbssep: New file.
36820 * lib/mbssep.c: New file.
36821 * lib/string_.h (strsep): Add a conditional link warning.
36822 (mbssep): New declaration.
36823 * m4/mbssep.m4: New file.
36824 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36826 * modules/string (string.h): Also substitute GNULIB_MBSSEP.
36827 * MODULES.html.sh (Internationalization functions): Add mbssep.
36829 2007-02-05 Bruno Haible <bruno@clisp.org>
36831 * lib/strsep.c (strsep): Fix actions in case of no delimiters.
36832 Optimize search in case of 1 delimiter.
36834 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
36836 * lib/acl.h: Include sys/types.h before sys/acl.h.
36838 2007-02-05 Paolo Bonzini <bonzini@gnu.org>
36840 Merge upstream fix for glibc bugzilla #3957:
36842 2007-02-05 Jakub Jelinek <jakub@redhat.com>
36844 * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
36845 bit for RE_HAT_LISTS_NOT_NEWLINE.
36846 (build_charclass_op): Remove bogus comment.
36848 2007-02-05 Simon Josefsson <simon@josefsson.org>
36850 * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
36852 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
36854 * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
36855 * lib/memmem.c [!defined _LIBC]: Include config.h.
36857 2007-02-04 Bruno Haible <bruno@clisp.org>
36859 * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
36862 2007-02-04 Bruno Haible <bruno@clisp.org>
36864 New module mbstok_r.
36865 * modules/mbstok_r: New file.
36866 * lib/mbstok_r.c: New file.
36867 * lib/string_.h (strtok_r): Change argument names to match the
36868 comments. Add a conditional link warning.
36869 (mbstok_r): New declaration.
36870 * m4/mbstok_r.m4: New file.
36871 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36873 * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
36874 * MODULES.html.sh (Internationalization functions): Add mbstok_r.
36876 2007-02-04 Bruno Haible <bruno@clisp.org>
36879 * modules/mbsspn: New file.
36880 * lib/mbsspn.c: New file.
36881 * lib/string_.h (strspn): Add a conditional link warning.
36882 (mbsspn): New declaration.
36883 * m4/mbsspn.m4: New file.
36884 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36886 * modules/string (string.h): Also substitute GNULIB_MBSSPN.
36887 * MODULES.html.sh (Internationalization functions): Add mbsspn.
36889 2007-02-04 Bruno Haible <bruno@clisp.org>
36891 New module mbspbrk.
36892 * modules/mbspbrk: New file.
36893 * lib/mbspbrk.c: New file.
36894 * lib/string_.h (strpbrk): Add a conditional link warning.
36895 (mbspbrk): New declaration.
36896 * m4/mbspbrk.m4: New file.
36897 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36899 * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
36900 * MODULES.html.sh (Internationalization functions): Add mbspbrk.
36902 2007-02-04 Bruno Haible <bruno@clisp.org>
36904 New module mbscspn.
36905 * modules/mbscspn: New file.
36906 * lib/mbscspn.c: New file.
36907 * lib/string_.h (strcspn): Add a conditional link warning.
36908 (mbscspn): New declaration.
36909 * m4/mbscspn.m4: New file.
36910 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36912 * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
36913 * MODULES.html.sh (Internationalization functions): Add mbscspn.
36915 2007-02-04 Bruno Haible <bruno@clisp.org>
36917 New module mbscasestr, reduced goal of strcasestr.
36918 * modules/mbscasestr: New file.
36919 * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
36920 (mbscasestr): Renamed from strcasestr.
36921 * lib/strcasestr.c: Don't include mbuiter.h.
36922 (strcasestr): Remove support for multibyte locales.
36923 * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
36924 Change the conditional link warning.
36925 (mbscasestr): New declaration.
36926 * m4/mbscasestr.m4: New file.
36927 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
36928 the system does not have strcasestr. Set HAVE_STRCASESTR instead of
36929 REPLACE_STRCASESTR.
36930 (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
36931 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36932 HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36933 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
36934 * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
36935 Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
36936 * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
36937 (Depends-on): Remove mbuiter.
36938 * MODULES.html.sh (Internationalization functions): Add mbscasestr.
36940 2007-02-04 Bruno Haible <bruno@clisp.org>
36942 Simplify handling of strncasecmp.
36943 * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
36944 the conditional link warning.
36945 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
36946 HAVE_STRCASECMP, not REPLACE_STRCASECMP.
36947 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
36948 * modules/strcase (configure.ac): Don't invoke
36949 gl_STRING_MODULE_INDICATOR.
36950 * modules/string (string.h): Don't substitute GNULIB_STRCASE.
36952 2007-02-04 Bruno Haible <bruno@clisp.org>
36954 New module mbscasecmp, reduced goal of strcasecmp.
36955 * modules/mbscasecmp: New file.
36956 * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
36957 (mbscasecmp): Renamed from strcasecmp.
36958 * lib/strcasecmp.c: Don't include mbuiter.h.
36959 (strcasecmp): Remove support for multibyte locales.
36960 * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
36961 Change the conditional link warning.
36962 (mbscasecmp): New declaration.
36963 * m4/mbscasecmp.m4: New file.
36964 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
36965 the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
36966 REPLACE_STRCASECMP.
36967 (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
36968 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
36970 * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
36971 Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
36972 * modules/strcase (Files): Remove m4/mbrtowc.m4.
36973 (Depends-on): Remove mbuiter.
36974 * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
36976 2007-02-04 Bruno Haible <bruno@clisp.org>
36978 New module mbsstr. Remove module strstr.
36979 * modules/mbsstr: New file.
36980 * modules/strstr: Remove file.
36981 * lib/mbsstr.c: Renamed from lib/strstr.c.
36982 (mbsstr): Renamed from strstr.
36983 * lib/string_.h (strstr): Remove declaration. Change the conditional
36985 (mbsstr): New declaration.
36986 * m4/mbsstr.m4: New file.
36987 * m4/strstr.m4: Remove file.
36988 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
36990 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
36991 Don't initialize GNULIB_STRSTR.
36992 * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
36993 substitute GNULIB_STRSTR and REPLACE_STRSTR.
36994 * MODULES.html.sh (Internationalization functions): Add mbsstr.
36995 (Support for systems lacking ANSI C 89): Remove strstr.
36997 2007-02-04 Bruno Haible <bruno@clisp.org>
36999 New module mbsrchr.
37000 * modules/mbsrchr: New file.
37001 * lib/mbsrchr.c: New file.
37002 * lib/string_.h (strrchr): Add a conditional link warning.
37003 (mbsrchr): New declaration.
37004 * m4/mbsrchr.m4: New file.
37005 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37007 * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
37008 * MODULES.html.sh (Internationalization functions): Add mbsrchr.
37010 2007-02-04 Bruno Haible <bruno@clisp.org>
37013 * modules/mbschr: New file.
37014 * lib/mbschr.c: New file.
37015 * lib/string_.h (strchr): Add a conditional link warning.
37016 (mbschr): New declaration.
37017 * m4/mbschr.m4: New file.
37018 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
37020 * modules/string (string.h): Also substitute GNULIB_MBSCHR.
37021 * MODULES.html.sh (Internationalization functions): Add mbschr.
37023 2007-02-04 Paul Eggert <eggert@cs.ucla.edu>
37025 * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
37027 * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
37029 2007-02-04 Bruno Haible <bruno@clisp.org>
37031 New module description section 'configure.ac-early'.
37032 * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
37033 (func_get_autoconf_early_snippet): New function.
37034 (func_import, func_create_testdir): Use it. Remove special cases for
37035 modules 'extensions' and 'lock'.
37036 * modules/extensions (configure.ac-early): Require
37037 gl_USE_SYSTEM_EXTENSIONS.
37038 * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
37040 2007-02-04 Bruno Haible <bruno@clisp.org>
37042 Make use of gcj-4.3's -fsource and -ftarget option.
37043 * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
37044 and if so try the options -fsource and -ftarget.
37045 * lib/javacomp.c (compile_using_gcj): Add fsource_option,
37046 source_version, ftarget_option, target_version arguments.
37047 (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
37048 (is_envjavac_oldgcj_14_14_usable): Renamed from
37049 is_envjavac_gcj_14_14_usable.
37050 (is_envjavac_oldgcj_14_13_usable): Renamed from
37051 is_envjavac_gcj_14_13_usable.
37052 (is_gcj_present): Update.
37053 (is_gcj_43, is_gcj43_usable): New functions.
37054 (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
37055 (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
37056 (compile_java_class): Test whether gcj is in version >= 4.3, and if so
37057 try the options -fsource and -ftarget.
37059 2007-02-03 Paul Eggert <eggert@cs.ucla.edu>
37061 * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
37062 checking code. Set N = ceil (1.5 * N) rather than to a slightly
37065 2007-02-03 Jim Meyering <jim@meyering.net>
37067 Give tools a better chance to allocate space for very large buffers.
37068 * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
37070 Make pwd and readlink work also when run with an unreadable parent dir
37071 on systems with openat support.
37072 * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
37073 provided getcwd function, even when we have openat support.
37074 Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
37076 2007-02-02 Bruno Haible <bruno@clisp.org>
37078 * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
37079 strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
37080 error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
37081 portability problems if one of these functions is only used on specific
37083 Reported by Paul Eggert.
37085 2007-02-02 Paul Eggert <eggert@cs.ucla.edu>
37087 Avoid mempcpy in the regex code, as the string.h mempcpy stuff
37088 is causing more trouble than it's curing.
37089 * lib/regex_internal.h (__mempcpy): Remove.
37090 * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
37091 (and make the code a tad smaller to boot).
37092 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
37094 2007-02-02 Jim Meyering <jim@meyering.net>
37096 * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
37097 section, not in the Makefile.am: one.
37099 2007-02-02 Eric Blake <ebb9@byu.net>
37101 * lib/strchrnul.c: Always include config.h first.
37103 * modules/mountlist (Depends-on): Revert 2007-01-31 change,
37104 gnulib strstr is not necessary here.
37106 2007-02-02 Simon Josefsson <simon@josefsson.org>
37108 * m4/socklen.m4: Fix typo.
37110 2007-02-02 Eric Blake <ebb9@byu.net>
37112 * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
37113 * modules/netinet_in (Makefile.am): Likewise.
37115 2007-02-01 Bruno Haible <bruno@clisp.org>
37117 * lib/string_.h (GL_LINK_WARNING): New macro.
37118 (strcasecmp, strstr, strcasestr): If provided by the system,
37119 conditionally define as a macro that leads to a warning instead of to
37121 (strncasecmp): Conditionally define as a macro that leads to a warning.
37123 2007-02-01 Karl Berry <karl@gnu.org>
37125 * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
37127 2007-02-01 Bruno Haible <bruno@clisp.org>
37129 * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
37132 2007-02-01 Eric Blake <ebb9@byu.net>
37134 * modules/regex (Depends-on): Revert dependence on mempcpy.
37135 * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
37136 module's definition of mempcpy.
37137 Reported by Paul Eggert.
37139 2007-02-01 Paul Eggert <eggert@cs.ucla.edu>
37141 * lib/string_.h: If the gnulib module XYZ is not present, undefine
37142 the symbol XYZ before redefining it. This fixes a problem with
37143 programs that don't use XYZ, when compiled on systems that define
37144 XYZ to something else.
37146 2007-01-31 Paul Eggert <eggert@cs.ucla.edu>
37148 * lib/mkdir-p.c (make_dir_parents): Close a race condition that
37149 occurs when "mkdir -m foo" creates a setgid directory that is (1)
37150 writeable to group or other and (2) is intended to have a special
37151 mode bit that is set or cleared. In such a case, the directory
37152 should be neither group- nor other-writeable until the special
37153 mode bits are right.
37155 2007-01-31 Eric Blake <ebb9@byu.net>
37157 * modules/mountlist (Depends-on): Add strstr.
37159 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
37161 * modules/string (Makefile.am): Remove redundant replacement.
37162 * modules/regex (Depends-on): Add mempcpy.
37164 2007-01-31 Bruno Haible <bruno@clisp.org>
37166 New module description field 'Link'.
37167 * gnulib-tool (func_usage): Document --extract-link-directive.
37168 (sed_extract_prog): Recognize 'Link' directive.
37169 (func_get_link_directive): New function.
37170 (func_import): Show summary of link directives.
37171 Handle --extract-link-directive option.
37172 * modules/acl (Link): New section.
37173 * modules/clock-time (Link): New section.
37174 * modules/euidaccess (Link): New section.
37175 * modules/gettext (Link): New section.
37176 * modules/iconv (Link): New section.
37177 * modules/lock (Link): New section.
37178 * modules/nanosleep (Link): New section.
37179 * modules/readline (Link): New section.
37181 2007-01-27 Bruno Haible <bruno@clisp.org>
37183 Enforce the use of gnulib modules for unportable <string.h> functions.
37184 * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
37185 (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
37186 (gl_HEADER_STRING_H_BODY): Require it.
37187 * lib/string_.h: If the gnulib module XYZ is not present, redefine
37188 the symbol XYZ to one that gives a link error.
37189 * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
37190 * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
37191 * modules/mempcpy (configure.ac): Likewise.
37192 * modules/memrchr (configure.ac): Likewise.
37193 * modules/stpcpy (configure.ac): Likewise.
37194 * modules/stpncpy (configure.ac): Likewise.
37195 * modules/strcase (configure.ac): Likewise.
37196 * modules/strcasestr (configure.ac): Likewise.
37197 * modules/strchrnul (configure.ac): Likewise.
37198 * modules/strdup (configure.ac): Likewise.
37199 * modules/strndup (configure.ac): Likewise.
37200 * modules/strnlen (configure.ac): Likewise.
37201 * modules/strpbrk (configure.ac): Likewise.
37202 * modules/strsep (configure.ac): Likewise.
37203 * modules/strstr (configure.ac): Likewise.
37204 * modules/strtok_r (configure.ac): Likewise.
37206 2007-01-31 Jean-Louis Martineau <martineau@zmanda.com> (tiny change)
37208 * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
37210 2007-01-30 Jim Meyering <jim@meyering.net>
37212 * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
37214 2007-01-29 Bruno Haible <bruno@clisp.org>
37216 * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
37217 * lib/execute.c: Likewise.
37218 * lib/pipe.c: Likewise.
37219 * lib/printf-args.h: Likewise.
37220 * lib/printf-args.c: Likewise.
37221 * lib/printf-parse.c: Likewise.
37222 * lib/vasnprintf.c: Likewise.
37224 2007-01-29 Eric Blake <ebb9@byu.net>
37226 * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
37229 2007-01-29 Paul Eggert <eggert@cs.ucla.edu>
37231 * lib/strptime.h (strptime): Use 'restrict' for args where
37232 POSIX requires this.
37233 * lib/strptime.c (strptime): Likewise.
37234 Change license notice from LGPL to GPL, since gnulib-tool will
37235 change this as needed.
37236 Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
37238 Include "strptime.h" first, to check interface.
37239 Do not #undef _LIBC and _NL_CURRENT.
37240 Do not include <stdlib.h>; no longer needed.
37241 Include "time_r.h" and declare ptime_locale_status
37242 only if _LIBC is not defined.
37243 (__P): Remove unused macro.
37244 (match_string): Bring back glibc version, but use it only if _LIBC
37246 (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
37247 Remove unnecessary assertion and abort() call.
37248 Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
37249 * m4/strptime.m4: Fix serial number comment.
37250 (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
37251 * modules/strptime (Files): Add m4/tm_gmtoff.m4.
37252 (Depends-on): Add time_r.
37254 2007-01-29 Bruno Haible <bruno@clisp.org>
37256 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
37258 * modules/strptime (Depends-on): Add stdbool.
37259 * lib/strptime.h: Include <time.h> always. Add comments.
37261 2007-01-29 Yoann Vandoorselaere <yoann@prelude-ids.org>
37263 * modules/strptime: New file.
37264 * lib/strptime.h: New file.
37265 * lib/strptime.c: New file.
37266 * m4/strptime.m4: New file.
37268 2007-01-28 Paul Eggert <eggert@cs.ucla.edu>
37270 * MODULES.html.sh: New module mpsort.
37271 * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
37273 * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
37274 a circularity problem with HP-UX ia64 reported by Bob Proulx in
37275 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
37277 (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
37279 * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
37281 * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
37282 the parameter matches the prototype.
37284 2007-01-28 Jim Meyering <jim@meyering.net>
37286 * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
37287 sys/time.h here, reverting that part of the previous patch:
37288 <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
37290 2007-01-28 Bruno Haible <bruno@clisp.org>
37292 * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
37293 value of $(SYS_TIME_H).
37294 [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
37295 remove it conditionally, too. [added by Jim Meyering]
37296 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
37297 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37298 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
37299 GETTIMEOFDAY_REPLACEMENT to 1.
37301 2007-01-28 Bruno Haible <bruno@clisp.org>
37303 * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
37304 (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
37305 * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
37306 Set UNISTD_H instead of UNISTD_H2.
37307 * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
37309 2007-01-28 Bruno Haible <bruno@clisp.org>
37311 * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
37312 * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
37314 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37316 * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
37317 (func_create_testdir): Ensure C locale for `grep' and `tr'
37319 (func_create_megatestdir): Avoid one `grep'. Fix bug in
37320 ACLOCAL_AMFLAGS parsing state machine.
37322 2007-01-27 Bruno Haible <bruno@clisp.org>
37324 * modules/unistr/base: Update.
37326 2007-01-27 Bruno Haible <bruno@clisp.org>
37328 Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
37329 u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
37330 * modules/unistr/u32-mbtouc-unsafe: Renamed from
37331 modules/unistr/u32-mbtouc.
37332 * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
37333 * lib/unistr.h: Update.
37334 * lib/linebreak.c: Update.
37335 * modules/unistr/u32-mbtouc: Renamed from
37336 modules/unistr/u32-mbtouc-safe.
37337 * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
37338 * lib/unistr.h: Update.
37339 * lib/unistr/u32-to-u8.c: Update.
37340 * lib/unistr/u32-to-u16.c: Update.
37342 2007-01-27 Bruno Haible <bruno@clisp.org>
37344 Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
37345 u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
37346 * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
37347 * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
37348 * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
37349 * modules/unistr/u16-mbtouc-unsafe: Renamed from
37350 modules/unistr/u16-mbtouc.
37351 * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
37352 * lib/unistr.h: Update.
37353 * lib/linebreak.c: Update.
37354 * modules/linebreak: Update.
37355 * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
37356 * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
37357 * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
37358 * modules/unistr/u16-mbtouc: Renamed from
37359 modules/unistr/u16-mbtouc-safe.
37360 * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
37361 * lib/unistr.h: Update.
37362 * lib/unistr/u16-to-u8.c: Update.
37363 * modules/unistr/u16-to-u8: Update.
37364 * lib/unistr/u16-to-u32.c: Update.
37365 * modules/unistr/u16-to-u32: Update.
37367 2007-01-27 Bruno Haible <bruno@clisp.org>
37369 Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
37370 u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
37371 * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
37372 * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
37373 * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
37374 * modules/unistr/u8-mbtouc-unsafe: Renamed from
37375 modules/unistr/u8-mbtouc.
37376 * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
37377 * lib/unistr.h: Update.
37378 * lib/striconveh.c: Update.
37379 * modules/striconveh: Update.
37380 * lib/linebreak.c: Update.
37381 * modules/linebreak: Update.
37382 * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
37383 * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
37384 * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
37385 * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
37386 * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
37387 * lib/unistr.h: Update.
37388 * lib/striconveh.c: Update.
37389 * modules/striconveh: Update.
37390 * lib/unistr/u8-to-u16.c: Update.
37391 * modules/unistr/u8-to-u16: Update.
37392 * lib/unistr/u8-to-u32.c: Update.
37393 * modules/unistr/u8-to-u32: Update.
37395 2007-01-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
37398 * lib/argz.c: Do not include strings.h nor memory.h, include
37399 string.h unconditionally. Patch by Simon Josefsson.
37401 2007-01-27 Bruno Haible <bruno@clisp.org>
37403 * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
37404 from gl_HEADER_STRING_H_BODY.
37405 (gl_HEADER_STRING_H_BODY): Require it.
37406 * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
37407 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
37408 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
37409 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
37410 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
37411 * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
37412 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
37413 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
37414 * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
37415 * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
37416 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
37417 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
37418 * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
37419 * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
37420 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
37422 2007-01-27 Bruno Haible <bruno@clisp.org>
37424 * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
37425 check_PROGRAMS into noinst_PROGRAMS.
37426 (func_emit_tests_Makefile_am): Likewise. Also don't initialize
37427 check_PROGRAMS in this case.
37428 (func_import): Set for_test to false.
37429 (func_create_testdir): Set for_test to true.
37431 2007-01-27 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37432 Bruno Haible <bruno@clisp.org>
37434 * modules/strcasestr (Files): Remove lib/strcasestr.h.
37435 (Depends-on): Add string.
37436 (Includes): Use <string.h> instead of strcasestr.h.
37437 * modules/string (Makefile.am): Also substitute the value of
37438 REPLACE_STRCASESTR.
37439 * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
37440 assume strcasestr is declared in <string.h> not <strings.h>. Also
37441 set REPLACE_STRCASESTR.
37442 * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
37443 REPLACE_STRCASESTR.
37444 * lib/strcasestr.h: Remove file.
37445 * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
37446 * lib/string_.h (strcasestr): New declaration.
37448 2007-01-27 Bruno Haible <bruno@clisp.org>
37450 * lib/string_.h: Use 'extern'.
37452 2007-01-27 Jim Meyering <jim@meyering.net>
37454 * lib/regex_internal.c (re_string_reconstruct): Remove declaration
37455 of set-but-not-used local, "q".
37457 * lib/mempcpy.c: Include <config.h> before <string.h>.
37458 This fixes a compilation error on HP-UX, due to the system's
37459 "restrict"-using mempcpy prototype.
37461 2007-01-26 Bruno Haible <bruno@clisp.org>
37463 Small optimization.
37464 * lib/javacomp.c: Include c-strstr.h.
37465 (is_envjavac_gcj): Use c_strstr instead of strstr.
37466 * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
37468 2007-01-26 Bruno Haible <bruno@clisp.org>
37470 * MODULES.html.sh (Unicode string functions): Add the new modules.
37472 * modules/uniconv/u32-strconv-to-locale: New file.
37473 * lib/uniconv/u32-strconv-to-locale.c: New file.
37475 * modules/uniconv/u16-strconv-to-locale: New file.
37476 * lib/uniconv/u16-strconv-to-locale.c: New file.
37478 * modules/uniconv/u8-strconv-to-locale: New file.
37479 * lib/uniconv/u8-strconv-to-locale.c: New file.
37481 * modules/uniconv/u32-strconv-from-locale: New file.
37482 * lib/uniconv/u32-strconv-from-locale.c: New file.
37484 * modules/uniconv/u16-strconv-from-locale: New file.
37485 * lib/uniconv/u16-strconv-from-locale.c: New file.
37487 * modules/uniconv/u8-strconv-from-locale: New file.
37488 * lib/uniconv/u8-strconv-from-locale.c: New file.
37490 * modules/uniconv/u32-strconv-to-enc: New file.
37491 * lib/uniconv/u32-strconv-to-enc.c: New file.
37492 * modules/uniconv/u32-strconv-to-enc-tests: New file.
37493 * tests/uniconv/test-u32-strconv-to-enc.c: New file.
37495 * modules/uniconv/u16-strconv-to-enc: New file.
37496 * lib/uniconv/u16-strconv-to-enc.c: New file.
37497 * lib/uniconv/u-strconv-to-enc.h: New file.
37498 * modules/uniconv/u16-strconv-to-enc-tests: New file.
37499 * tests/uniconv/test-u16-strconv-to-enc.c: New file.
37501 * modules/uniconv/u8-strconv-to-enc: New file.
37502 * lib/uniconv/u8-strconv-to-enc.c: New file.
37503 * modules/uniconv/u8-strconv-to-enc-tests: New file.
37504 * tests/uniconv/test-u8-strconv-to-enc.c: New file.
37506 * modules/uniconv/u32-strconv-from-enc: New file.
37507 * lib/uniconv/u32-strconv-from-enc.c: New file.
37508 * modules/uniconv/u32-strconv-from-enc-tests: New file.
37509 * tests/uniconv/test-u32-strconv-from-enc.c: New file.
37511 * modules/uniconv/u16-strconv-from-enc: New file.
37512 * lib/uniconv/u16-strconv-from-enc.c: New file.
37513 * modules/uniconv/u16-strconv-from-enc-tests: New file.
37514 * tests/uniconv/test-u16-strconv-from-enc.c: New file.
37516 * modules/uniconv/u8-strconv-from-enc: New file.
37517 * lib/uniconv/u8-strconv-from-enc.c: New file.
37518 * lib/uniconv/u-strconv-from-enc.h: New file.
37519 * modules/uniconv/u8-strconv-from-enc-tests: New file.
37520 * tests/uniconv/test-u8-strconv-from-enc.c: New file.
37522 * modules/uniconv/u32-conv-from-enc: New file.
37523 * lib/uniconv/u32-conv-from-enc.c: New file.
37524 * modules/uniconv/u32-conv-from-enc-tests: New file.
37525 * tests/uniconv/test-u32-conv-from-enc.c: New file.
37527 * modules/uniconv/u16-conv-from-enc: New file.
37528 * lib/uniconv/u16-conv-from-enc.c: New file.
37529 * lib/uniconv/u-conv-from-enc.h: New file.
37530 * modules/uniconv/u16-conv-from-enc-tests: New file.
37531 * tests/uniconv/test-u16-conv-from-enc.c: New file.
37533 * modules/uniconv/u8-conv-from-enc: New file.
37534 * lib/uniconv/u8-conv-from-enc.c: New file.
37535 * modules/uniconv/u8-conv-from-enc-tests: New file.
37536 * tests/uniconv/test-u8-conv-from-enc.c: New file.
37538 * modules/uniconv/base: New file.
37539 * lib/uniconv.h: New file.
37541 2007-01-26 Paul Eggert <eggert@cs.ucla.edu>
37543 * doc/gnulib-tool.texi (Initial import): Update to match current
37544 behavior with strdup module.
37545 * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
37546 * lib/memmem.h: Remove; all uses removed. This is now done
37548 * lib/mempcpy.h: Likewise.
37549 * lib/memrchr.h: Likewise.
37550 * lib/stpcpy.h: Likewise.
37551 * lib/stpncpy.h: Likewise.
37552 * lib/strcase.h: Likewise.
37553 * lib/strchrnul.h: Likewise.
37554 * lib/strdup.h: Likewise.
37555 * lib/strndup.h: Likewise.
37556 * lib/strnlen.h: Likewise.
37557 * lib/strpbrk.h: Likewise.
37558 * lib/strsep.h: Likewise.
37559 * lib/strstr.h: Likewise.
37560 * lib/strtok_r.h: Likewise.
37561 * lib/string_.h: New file.
37562 * lib/argp-namefrob.h: Don't include no-longer-existent include files.
37563 Rely on <string.h> instead.
37564 * lib/canon-host.c: Likewise.
37565 * lib/chdir-long.c: Likewise.
37566 * lib/concatpath.c: Likewise.
37567 * lib/exclude.c: Likewise.
37568 * lib/fchdir.c: Likewise.
37569 * lib/getaddrinfo.c: Likewise.
37570 * lib/getcwd.c: Likewise.
37571 * lib/getsubopt.c: Likewise.
37572 * lib/glob.c: Likewise.
37573 * lib/hard-locale.c: Likewise.
37574 * lib/iconvme.c: Likewise.
37575 * lib/javacomp.c: Likewise.
37576 * lib/mempcpy.c: Likewise.
37577 * lib/memrchr.c: Likewise.
37578 * lib/regex_internal.h: Likewise.
37579 * lib/stpncpy.c: Likewise.
37580 * lib/strcasecmp.c: Likewise.
37581 * lib/strchrnul.c: Likewise.
37582 * lib/strdup.c: Likewise.
37583 * lib/striconv.c: Likewise.
37584 * lib/striconveh.c: Likewise.
37585 * lib/striconveha.c: Likewise.
37586 * lib/strncasecmp.c: Likewise.
37587 * lib/strndup.c: Likewise.
37588 * lib/strnlen.c: Likewise.
37589 * lib/strsep.c: Likewise.
37590 * lib/strstr.c: Likewise.
37591 * lib/strtok_r.c: Likewise.
37592 * lib/userspec.c: Likewise.
37593 * lib/w32spawn.h: Likewise.
37594 * lib/xstrndup.c: Likewise.
37595 * lib/mountlist.c (strstr): Remove decl.
37596 * m4/string_h.m4: New file.
37597 * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
37598 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
37599 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
37600 * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
37601 * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
37602 * m4/strcase.m4 (gl_FUNC_STRCASECMP):
37603 Set REPLACE_STRCASECMP if necessary.
37604 (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
37605 * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
37606 * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
37607 * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
37608 HAVE_DECL_STRDUP if necessary.
37609 (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
37610 since gl_FUNC_STRNDUP does that now.
37611 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
37612 Check for decl here...
37613 (gl_PREREQ_STRNLEN): ... not here.
37614 * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
37615 * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
37616 * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
37617 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
37619 * modules/string: New file.
37620 * modules/memmem (Files): Remove special-purpose include file.
37621 (Depends-on): Add string.
37622 (Include): Include <string.h>, not the removed file.
37623 * modules/mempcpy: Likewise.
37624 * modules/memrchr: Likewise.
37625 * modules/stpcpy: Likewise.
37626 * modules/stpncpy: Likewise.
37627 * modules/strcase: Likewise.
37628 * modules/strchrnul: Likewise.
37629 * modules/strdup: Likewise.
37630 * modules/strndup: Likewise.
37631 * modules/strnlen: Likewise.
37632 * modules/strpbrk: Likewise.
37633 * modules/strsep: Likewise.
37634 * modules/strstr: Likewise.
37635 * modules/strtok_r: Likewise.
37636 * tests/test-dirname.c: Don't include "strdup.h", since
37637 <string.h> now suffices.
37638 * tests/test-memmem.c: Don't include "memmem.h", since
37639 <string.h> now suffices.
37641 2007-01-25 Bruno Haible <bruno@clisp.org>
37643 * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
37646 * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
37647 * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
37648 * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
37649 * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
37651 * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
37652 * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
37653 * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
37654 * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
37655 * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
37656 * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
37658 2007-01-24 Bruno Haible <bruno@clisp.org>
37660 Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
37661 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
37662 * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
37663 * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
37665 (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
37666 * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
37667 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
37668 * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
37669 * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
37670 * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
37672 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
37674 * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
37675 Reported by Ralf Wildenhues.
37677 2007-01-24 Bruno Haible <bruno@clisp.org>
37679 Drop AC_REQUIRE calls that are redundant with the module dependencies.
37680 * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
37682 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
37683 gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
37684 * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
37686 2007-01-24 Paul Eggert <eggert@cs.ucla.edu>
37688 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
37689 Don't use 'exit'; just return from 'main'.
37690 (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
37692 * lib/fnmatch_.h: Readjust white space and comments to match
37693 glibc, to avoid spurious diffs.
37695 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
37697 * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
37698 2004-12-01 change by Jakub Jelinek, since this code won't compile
37699 if !LIBC. Problem reported by Bob Proulx.
37701 2007-01-23 Bruno Haible <bruno@clisp.org>
37703 * lib/striconveh.c: Include c-strcaseeq.h.
37704 (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
37705 * modules/striconveh (Depends-on): Add c-strcaseeq.
37707 2007-01-23 Bruno Haible <bruno@clisp.org>
37709 * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
37711 * modules/c-strcaseeq: New file.
37712 * lib/c-strcaseeq.h: New file.
37714 * modules/streq: New file.
37715 * lib/streq.h: New file.
37717 2007-01-23 Bruno Haible <bruno@clisp.org>
37719 * modules/striconveha-tests: New file.
37720 * tests/test-striconveha.c: New file.
37722 * lib/striconveha.h: Include <stdbool.h>.
37723 (mem_iconveha, str_iconveha): Add 'transliterate' argument.
37724 * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
37725 (mem_iconveha_notranslit): Renamed from mem_iconveha.
37726 (mem_iconveha): New function.
37727 (str_iconveha_notranslit): Renamed from str_iconveha.
37728 (str_iconveha): New function.
37729 * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
37732 2007-01-23 Bruno Haible <bruno@clisp.org>
37734 * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
37735 encodings without forgiving before trying any encoding with handler.
37736 (str_iconveha): Try all encodings without forgiving before trying any
37737 encoding with handler.
37739 2007-01-23 Paul Eggert <eggert@cs.ucla.edu>
37741 Import the following changes from libc.
37743 2005-10-14 Ulrich Drepper <drepper@redhat.com>
37745 * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
37747 2004-12-01 Jakub Jelinek <jakub@redhat.com>
37749 * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
37750 normal_bracket label.
37752 2004-09-01 Jakub Jelinek <jakub@redhat.com>
37755 * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
37756 to normal_bracket after fetching the next character.
37758 2007-01-22 Bruno Haible <bruno@clisp.org>
37760 * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
37762 * lib/striconveh.c (iconv_carefully_1): New function.
37763 (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
37765 (str_cd_iconveh): Update.
37766 * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
37767 * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
37768 * tests/test-striconveh.c (MAGIC): New macro.
37769 (new_offsets): New function.
37770 (main): Test call with and without offsets.
37772 2007-01-22 Bruno Haible <bruno@clisp.org>
37774 * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
37775 * modules/sys_select (Makefile.am): Likewise.
37776 * modules/sys_socket (Makefile.am): Likewise.
37777 * modules/sys_time (Makefile.am): Likewise.
37779 2007-01-22 Paul Eggert <eggert@cs.ucla.edu>
37781 * modules/gettimeofday (License): Change from GPL to LGPL, since
37782 gettimeofday is a library function.
37784 2007-01-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
37786 * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
37788 2007-01-21 Bruno Haible <bruno@clisp.org>
37790 * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
37792 2007-01-21 Bruno Haible <bruno@clisp.org>
37794 * modules/striconveha: New file.
37795 * lib/striconveha.h: New file.
37796 * lib/striconveha.c: New file.
37797 * MODULES.html.sh (Internationalization functions): Add striconveha.
37798 * lib/striconv.c (str_iconv): Optimize the case of an empty input
37800 * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
37802 2007-01-21 Bruno Haible <bruno@clisp.org>
37804 * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
37805 * lib/striconveh.c (str_iconveh): Likewise.
37807 2007-01-21 Bruno Haible <bruno@clisp.org>
37809 * lib/striconveh.h (mem_iconveh): New declaration.
37810 * lib/striconveh.c (mem_iconveh): New function.
37811 * tests/test-striconveh.c (main): Add tests for mem_iconveh.
37813 2007-01-21 Bruno Haible <bruno@clisp.org>
37815 * lib/xstriconv.h (xmem_cd_iconv): Change specification.
37817 * lib/striconveh.h (mem_cd_iconveh): Change specification.
37818 * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
37819 original result buffer.
37820 (str_cd_iconveh): Update.
37821 * tests/test-striconveh.c (main): Update.
37823 * lib/striconv.h (mem_cd_iconv): Change specification.
37824 * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
37826 (str_cd_iconv): Update.
37827 * tests/test-striconv.c (main): Update.
37829 2007-01-21 Bruno Haible <bruno@clisp.org>
37831 * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
37833 2007-01-20 Jim Meyering <jim@meyering.net>
37835 * lib/userspec.c (parse_with_separator): If a user or group string
37836 starts with "+", skip the corresponding name-to-ID look-up, since
37837 such a look-up must fail: user and group names may not include "+".
37839 2007-01-19 Paul Eggert <eggert@cs.ucla.edu>
37841 * lib/poll.c: Include sys/time.h and time.h unconditionally,
37842 since we now assume the sys_time module.
37843 * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
37844 check for sys/time.h; no longer needed.
37845 * modules/poll (Depends-on): Depend on sys_time.
37847 2007-01-18 Bruno Haible <bruno@clisp.org>
37849 * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
37850 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37852 * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
37855 * tests/test-gettimeofday.c: Include <time.h>.
37856 (dummy): Remove variable.
37858 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
37859 gl_HEADER_SYS_TIME_H.
37860 (gl_HEADER_SYS_TIME_H): New macro.
37862 * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
37863 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37864 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
37865 gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
37866 HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37867 * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
37868 GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
37869 and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37870 * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
37871 instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
37872 GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37874 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
37875 last change; it caused a compilation error when cross-compiling to
37878 2007-01-18 Jim Meyering <jim@meyering.net>
37880 Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
37881 * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
37882 than the race-prone "test -d sys || mkdir sys".
37883 (configure.ac): Use AC_PROG_MKDIR_P.
37884 * modules/sys_select: Likewise.
37885 * modules/sys_socket: Likewise.
37886 * modules/sys_time: Likewise.
37888 2007-01-18 Eric Blake <ebb9@byu.net>
37890 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
37891 replace gettimeofday.
37892 * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
37893 name, to avoid infinite recursion.
37895 2007-01-17 Paul Eggert <eggert@cs.ucla.edu>
37897 * MODULES.html.sh (Support for systems lacking POSIX:2001): New
37899 * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
37900 assume timespec.h defines struct timeval.
37901 * lib/settime.c: Likewise.
37902 * lib/utimens.c: Likewise.
37903 * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
37904 since we now assume the gettimeofday module.
37905 * lib/tempname.c (__gen_tempname): Likewise.
37906 * lib/gettimeofday.h: Remove.
37907 * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
37908 Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
37909 Include <time.h>, for 'time()'.
37910 (localtime_buffer_addr): Also use this workaround if
37911 TZSET_CLOBBERS_LOCALTIME. Set to a dummy static variable by default,
37912 to simplify the uses. All uses changed.
37913 (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
37914 that #undef is inside {}, and 'const' follows type name consistently.
37915 (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
37916 (gettimeofday): Do not use the maximum possible value for
37917 tv->tv_usec, since that might break usages other than ls.c.
37918 Instead, we'll leave ls.c alone. This undoes today's patch
37919 by Bruno. Add a compile-time warning for 1s-clock resolution;
37920 we've never observed the problem but might as well keep the
37922 * lib/nanosleep.c: Include timespec.h first, for interface check.
37923 * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
37924 now assume the sys_time module.
37925 * lib/tempname.c: Likewise.
37926 * lib/timespec.h: Likewise.
37927 * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
37929 * lib/strftime.c: Likewise.
37930 * lib/timespec.h: Likewise.
37931 * lib/posixtm.c: Include posixtm.h first, for interface check.
37932 Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
37933 * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
37934 * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
37935 * lib/sys_time_.h: New file.
37936 * lib/timespec.h (struct timespec): Use long int, not long.
37937 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
37938 (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
37939 Remove obsolescent call to AC_HEADER_TIME.
37940 * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
37941 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
37942 * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
37943 * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
37945 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
37946 * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
37947 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
37948 into the sys_time module. Check for gettimeofday just once.
37949 Prefix our variables with gl_, not with ac_ or jm_. Tighten test
37950 for gettimeofday signature to just check the signature. Merely
37951 compile it, since linking doesn't test signature. Improve test for
37952 whether gettimeofday.o is actually needed.
37953 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
37954 AC_FUNC_GETTIMEOFDAY_CLOBBER. All uses changed. Use
37955 AC_RUN_IFELSE rather than AC_TRY_RUN. If clobbering, set
37956 and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
37957 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
37958 GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
37959 job. Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
37960 * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
37961 than worrying about sys/time.h.
37962 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
37963 Don't bother worrying about TIME_WITH_SYS_TIME.
37964 * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
37965 * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
37966 * m4/sys_time_h.m4: New file.
37967 * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
37968 Don't include sys/time.h. Return from main rather than exiting.
37969 Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
37971 * modules/gethrxtime (Depends-on): Add sys_time.
37972 * modules/gettime (Depends-on): Likewise.
37973 * modules/gettimeofday (Depends-on): Likewise.
37974 * modules/nanosleep (Depends-on): Likewise.
37975 * modules/settime (Depends-on): Likewise.
37976 * modules/tempname (Depends-on): Likewise.
37977 * modules/utimens (Depends-on): Likewise.
37978 * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
37979 (Include:) Change back to <sys/time.h>.
37980 (Maintainer:) Add self.
37981 * modules/sys_time: New file.
37982 * modules/tempname (Depends-on): Add gettimeofday.
37983 * tests/test-gettimeofday.c: Include <sys/time.h>
37984 rather than gettimeofday.h.
37986 2007-01-17 Bruno Haible <bruno@clisp.org>
37988 * gnulib-tool (func_get_license): Revert last patch. Instead, let
37989 the license default to GPL.
37990 (func_create_testdir): Don't complain if a module is LGPL and its
37991 tests module depends on GPLed modules.
37993 2007-01-17 Bruno Haible <bruno@clisp.org>
37995 * lib/gettimeofday.c (gettimeofday): Add code for the case
37996 HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
37997 maximum possible value for tv->tv_usec, rather than the minimum one.
37999 2005-10-08 Martin Lambers <marlam@marlam.de>
38000 2005-10-08 Paul Eggert <eggert@cs.ucla.edu>
38001 2007-01-16 Bruno Haible <bruno@clisp.org>
38003 * modules/gettimeofday (Files): Add lib/gettimeofday.h.
38004 (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
38005 gl_FUNC_GETTIMEOFDAY.
38006 (Include): Add gettimeofday.h.
38007 * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
38008 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
38009 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
38010 GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
38011 (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
38012 * lib/gettimeofday.h: New file.
38013 * lib/gettimeofday.c: Include <sys/timeb.h>.
38014 (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
38015 only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
38016 (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
38017 fall back on time().
38019 * tests/test-gettimeofday.c: New file.
38020 * modules/gettimeofday-tests: New file.
38022 2007-01-16 Eric Blake <ebb9@byu.net>
38024 * modules/fnmatch (Depends-on): Depend on wchar.
38025 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
38026 * m4/fnmatch.m4: Likewise.
38027 * modules/mbchar (Makefile.am): Assume <wchar.h>.
38028 * m4/mbchar.m4: Likewise.
38029 * modules/mbswidth (Depends-on): Depend on wchar.
38030 * lib/mbswidth.c: Assume <wchar.h>.
38031 * m4/mbswidth.m4: Likewise.
38032 * modules/quotearg (Depends-on): Depend on wchar.
38033 * lib/quotearg.c: Assume <wchar.h>.
38034 * m4/quotearg.m4: Likewise.
38035 * modules/regex (Depends-on): Depend on wchar.
38036 * lib/regex_internal.h: Assume <wchar.h>.
38037 * m4/regex.m4: Likewise.
38038 * modules/stdint (Depends-on): Depend on wchar.
38039 * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
38040 * m4/stdint.m4: Likewise.
38041 * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
38042 * modules/strftime (Depends-on): Depend on wchar.
38043 * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
38044 * modules/strtol (Depends-on): Depend on wchar.
38045 * lib/strtol.c: Assume <wchar.h>.
38046 * modules/wcwidth (Depends-on): Depend on wchar.
38047 * lib/wcwidth.h: Assume <wchar.h>.
38048 * m4/wcwidth.m4: Likewise.
38050 2007-01-16 Bruno Haible <bruno@clisp.org>
38052 * modules/csharpexec-script: New, created from...
38053 * modules/csharpexec: ... this.
38055 2007-01-16 Paolo Bonzini <bonzini@gnu.org>
38057 * modules/javaexec-script: New, created from...
38058 * modules/javaexec: ... this.
38060 2007-01-16 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38062 * modules/poll (Dependencies): Add sys_select.
38064 2007-01-15 Jim Meyering <jim@meyering.net>
38066 * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
38067 redefinition bug when using both <utmp.h> and <utmpx.h> headers.
38068 * lib/readutmp.h: Likewise. Reported by Daniel Richard G. in
38069 <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
38071 2007-01-15 Bruno Haible <bruno@clisp.org>
38073 * modules/striconveh: New file.
38074 * lib/striconveh.h: New file.
38075 * lib/striconveh.c: New file.
38076 * MODULES.html.sh (Internationalization functions): Add striconveh.
38078 * modules/striconveh-tests: New file.
38079 * tests/test-striconveh.c: New file.
38081 2007-01-15 Bruno Haible <bruno@clisp.org>
38083 * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
38084 not from GNU libiconv or GNU libc.
38086 2007-01-15 Bruno Haible <bruno@clisp.org>
38088 * doc/gnulib-intro.texi (Copyright): Explain the different license
38089 terms for module descriptions, autoconf macros, tests, documentation.
38091 2007-01-14 Bruno Haible <bruno@clisp.org>
38093 * modules/striconv-tests: New file.
38094 * tests/test-striconv.c: New file.
38096 2007-01-14 Bruno Haible <bruno@clisp.org>
38098 * modules/iconv-tests: New file.
38099 * tests/test-iconv.c: New file.
38101 2007-01-14 Bruno Haible <bruno@clisp.org>
38103 * gnulib-tool (func_get_license): For test modules, use the license of
38106 2007-01-14 Bruno Haible <bruno@clisp.org>
38108 * modules/iconv (Include): Clarify that <iconv.h> can only be included
38109 if iconv is found to exist.
38111 2007-01-14 Bruno Haible <bruno@clisp.org>
38113 * modules/c-ctype-tests: New file.
38114 * tests/test-c-ctype.c: New file.
38116 2007-01-14 Bruno Haible <bruno@clisp.org>
38118 * modules/binary-io-tests: New file.
38119 * tests/test-binary-io.sh: New file.
38120 * tests/test-binary-io.c: New file.
38122 2007-01-14 Bruno Haible <bruno@clisp.org>
38124 * modules/array-oset-tests: New file.
38125 * tests/test-array_oset.c: New file.
38127 2007-01-14 Bruno Haible <bruno@clisp.org>
38129 * modules/array-list-tests: New file.
38130 * tests/test-array_list.c: New file.
38132 2007-01-14 Bruno Haible <bruno@clisp.org>
38134 * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
38136 Reported by Simon Josefsson in
38137 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
38139 2007-01-14 Bruno Haible <bruno@clisp.org>
38141 * modules/allocsa-tests: New file.
38142 * tests/test-allocsa.c: New file.
38144 2007-01-14 Bruno Haible <bruno@clisp.org>
38146 * modules/fchdir (Depends-on): Add absolute-header.
38147 * modules/unistd (Depends-on): Likewise.
38149 2006-12-30 Bruno Haible <bruno@clisp.org>
38151 * modules/fchdir: New file.
38152 * modules/unistd (Files): Add lib/unistd_.h.
38153 (Makefile.am): Generate unistd.h from unistd_.h.
38154 * lib/fchdir.c: New file.
38155 * lib/dirent_.h: New file.
38156 * lib/unistd_.h: New file.
38157 * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
38158 * m4/fchdir.m4: New file.
38159 * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
38160 (gl_HEADER_UNISTD): Invoke it.
38161 * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
38163 * lib/backupfile.c (opendir, closedir): Undefine.
38164 * lib/chown.c (open, close): Undefine.
38165 * lib/clean-temp.c (open, close): Undefine.
38166 * lib/copy-file.c (open, close): Undefine.
38167 * lib/execute.c (open, close): Undefine.
38168 * lib/fsusage.c (open, close): Undefine.
38169 * lib/gc-gnulib.c (open, close): Undefine.
38170 * lib/getcwd.c (opendir, closedir): Undefine.
38171 * lib/glob.c (opendir, closedir): Undefine.
38172 * lib/javacomp.c (open, close): Undefine.
38173 * lib/mountlist.c (open, close, opendir, closedir): Undefine.
38174 * lib/openat-proc.c (open, close): Undefine.
38175 * lib/pagealign_alloc.c (open, close): Undefine.
38176 * lib/pipe.c (open, close): Undefine.
38177 * lib/progreloc.c (open, close): Undefine.
38178 * lib/savedir.c (opendir, closedir): Undefine.
38179 * lib/utime.c (open, close): Undefine.
38180 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
38182 2007-01-10 Bruno Haible <bruno@clisp.org>
38184 * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
38186 2007-01-12 Eric Blake <ebb9@byu.net>
38188 Provide a robust <wchar.h>. Further simplifications are now
38189 possible in other modules, but not included here.
38190 * modules/wchar: New module.
38191 * m4/wchar.m4: New file.
38192 * lib/wchar_.h: Likewise.
38193 * modules/mbchar (Depends-on): Depend on wchar, as the first use
38195 * MODULES.html.sh (Extended multibyte and wide character utilities):
38198 2007-01-12 Paul Eggert <eggert@cs.ucla.edu>
38200 * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
38201 to a reasonable default for memory allocation.
38202 (xreadlink): Don't allocate a huge buffer, to work around a buggy
38203 file system that reports garbage st_size values for symlinks.
38204 Problem reported by Liyang Hu.
38206 2007-01-11 Simon Josefsson <simon@josefsson.org>
38208 * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
38209 Emacs .#* auto-save files).
38211 2007-01-11 Bruno Haible <bruno@clisp.org>
38213 * gnulib-tool (func_all_modules): Exclude all files inside the CVS
38216 2007-01-10 Paul Eggert <eggert@cs.ucla.edu>
38218 Use @...@ consistently in lib/wctype_.h.
38219 * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
38220 on it being set to 1 or 0.
38221 * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
38222 go back to AC_SUBSTing it.
38223 * modules/wctype (Makefile.am): Undo previous change.
38225 2007-01-10 Eric Blake <ebb9@byu.net>
38227 * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
38228 * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
38229 * modules/wctype (Makefile.am): Likewise.
38230 Reported by Chris McGuire.
38232 2007-01-10 Jim Meyering <jim@meyering.net>
38234 fts.c: a small readability/maintainability improvement
38235 * lib/fts.c (fts_read): Make this code slightly more readable and
38236 maintainable by hoisting the "sp->fts_cur = p" assignments to
38237 immediately follow the statements that set P. Derived from
38238 the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
38240 2007-01-10 Eric Blake <ebb9@byu.net>
38242 * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
38243 <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
38244 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38245 * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
38246 Reported by Chris McGuire.
38248 2007-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38250 * gnulib-tool (func_all_modules): Use POSIX conforming escaping
38253 2007-01-09 Bruno Haible <bruno@clisp.org>
38255 * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
38256 (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
38258 (func_module): Use them.
38260 2007-01-09 Bruno Haible <bruno@clisp.org>
38262 * modules/unistr/base: New file.
38263 * lib/unistr.h: New file.
38265 * modules/unistr/u8-to-u16: New file.
38266 * lib/unistr/u8-to-u16.c: New file.
38268 * modules/unistr/u8-to-u32: New file.
38269 * lib/unistr/u8-to-u32.c: New file.
38271 * modules/unistr/u16-to-u8: New file.
38272 * lib/unistr/u16-to-u8.c: New file.
38274 * modules/unistr/u16-to-u32: New file.
38275 * lib/unistr/u16-to-u32.c: New file.
38277 * modules/unistr/u32-to-u8: New file.
38278 * lib/unistr/u32-to-u8.c: New file.
38280 * modules/unistr/u32-to-u16: New file.
38281 * lib/unistr/u32-to-u16.c: New file.
38283 * modules/unistr/u8-check: New file.
38284 * modules/unistr/u16-check: New file.
38285 * modules/unistr/u32-check: New file.
38286 * lib/unistr/u8-check.c: New file.
38287 * lib/unistr/u16-check.c: New file.
38288 * lib/unistr/u32-check.c: New file.
38290 * modules/unistr/u8-chr: New file.
38291 * modules/unistr/u16-chr: New file.
38292 * modules/unistr/u32-chr: New file.
38293 * lib/unistr/u8-chr.c: New file.
38294 * lib/unistr/u16-chr.c: New file.
38295 * lib/unistr/u32-chr.c: New file.
38297 * modules/unistr/u8-cmp: New file.
38298 * modules/unistr/u16-cmp: New file.
38299 * modules/unistr/u32-cmp: New file.
38300 * lib/unistr/u8-cmp.c: New file.
38301 * lib/unistr/u16-cmp.c: New file.
38302 * lib/unistr/u32-cmp.c: New file.
38304 * modules/unistr/u8-cpy: New file.
38305 * modules/unistr/u16-cpy: New file.
38306 * modules/unistr/u32-cpy: New file.
38307 * lib/unistr/u8-cpy.c: New file.
38308 * lib/unistr/u16-cpy.c: New file.
38309 * lib/unistr/u32-cpy.c: New file.
38310 * lib/unistr/u-cpy.h: New file.
38312 * modules/unistr/u8-cpy-alloc: New file.
38313 * modules/unistr/u16-cpy-alloc: New file.
38314 * modules/unistr/u32-cpy-alloc: New file.
38315 * lib/unistr/u8-cpy-alloc.c: New file.
38316 * lib/unistr/u16-cpy-alloc.c: New file.
38317 * lib/unistr/u32-cpy-alloc.c: New file.
38318 * lib/unistr/u-cpy-alloc.h: New file.
38320 * modules/unistr/u8-endswith: New file.
38321 * modules/unistr/u16-endswith: New file.
38322 * modules/unistr/u32-endswith: New file.
38323 * lib/unistr/u8-endswith.c: New file.
38324 * lib/unistr/u16-endswith.c: New file.
38325 * lib/unistr/u32-endswith.c: New file.
38326 * lib/unistr/u-endswith.h: New file.
38328 * modules/unistr/u8-mblen: New file.
38329 * modules/unistr/u16-mblen: New file.
38330 * modules/unistr/u32-mblen: New file.
38331 * lib/unistr/u8-mblen.c: New file.
38332 * lib/unistr/u16-mblen.c: New file.
38333 * lib/unistr/u32-mblen.c: New file.
38335 * modules/unistr/u8-mbtouc: New file.
38336 * modules/unistr/u16-mbtouc: New file.
38337 * modules/unistr/u32-mbtouc: New file.
38338 * lib/unistr/u8-mbtouc.c: New file.
38339 * lib/unistr/u16-mbtouc.c: New file.
38340 * lib/unistr/u32-mbtouc.c: New file.
38342 * modules/unistr/u8-mbtouc-safe: New file.
38343 * modules/unistr/u16-mbtouc-safe: New file.
38344 * modules/unistr/u32-mbtouc-safe: New file.
38345 * lib/unistr/u8-mbtouc-safe.c: New file.
38346 * lib/unistr/u16-mbtouc-safe.c: New file.
38347 * lib/unistr/u32-mbtouc-safe.c: New file.
38349 * modules/unistr/u8-move: New file.
38350 * modules/unistr/u16-move: New file.
38351 * modules/unistr/u32-move: New file.
38352 * lib/unistr/u8-move.c: New file.
38353 * lib/unistr/u16-move.c: New file.
38354 * lib/unistr/u32-move.c: New file.
38355 * lib/unistr/u-move.h: New file.
38357 * modules/unistr/u8-next: New file.
38358 * modules/unistr/u16-next: New file.
38359 * modules/unistr/u32-next: New file.
38360 * lib/unistr/u8-next.c: New file.
38361 * lib/unistr/u16-next.c: New file.
38362 * lib/unistr/u32-next.c: New file.
38364 * modules/unistr/u8-prev: New file.
38365 * modules/unistr/u16-prev: New file.
38366 * modules/unistr/u32-prev: New file.
38367 * lib/unistr/u8-prev.c: New file.
38368 * lib/unistr/u16-prev.c: New file.
38369 * lib/unistr/u32-prev.c: New file.
38371 * modules/unistr/u8-set: New file.
38372 * modules/unistr/u16-set: New file.
38373 * modules/unistr/u32-set: New file.
38374 * lib/unistr/u8-set.c: New file.
38375 * lib/unistr/u16-set.c: New file.
38376 * lib/unistr/u32-set.c: New file.
38377 * lib/unistr/u-set.h: New file.
38379 * modules/unistr/u8-startswith: New file.
38380 * modules/unistr/u16-startswith: New file.
38381 * modules/unistr/u32-startswith: New file.
38382 * lib/unistr/u8-startswith.c: New file.
38383 * lib/unistr/u16-startswith.c: New file.
38384 * lib/unistr/u32-startswith.c: New file.
38385 * lib/unistr/u-startswith.h: New file.
38387 * modules/unistr/u8-stpcpy: New file.
38388 * modules/unistr/u16-stpcpy: New file.
38389 * modules/unistr/u32-stpcpy: New file.
38390 * lib/unistr/u8-stpcpy.c: New file.
38391 * lib/unistr/u16-stpcpy.c: New file.
38392 * lib/unistr/u32-stpcpy.c: New file.
38393 * lib/unistr/u-stpcpy.h: New file.
38395 * modules/unistr/u8-stpncpy: New file.
38396 * modules/unistr/u16-stpncpy: New file.
38397 * modules/unistr/u32-stpncpy: New file.
38398 * lib/unistr/u8-stpncpy.c: New file.
38399 * lib/unistr/u16-stpncpy.c: New file.
38400 * lib/unistr/u32-stpncpy.c: New file.
38401 * lib/unistr/u-stpncpy.h: New file.
38403 * modules/unistr/u8-strcat: New file.
38404 * modules/unistr/u16-strcat: New file.
38405 * modules/unistr/u32-strcat: New file.
38406 * lib/unistr/u8-strcat.c: New file.
38407 * lib/unistr/u16-strcat.c: New file.
38408 * lib/unistr/u32-strcat.c: New file.
38409 * lib/unistr/u-strcat.h: New file.
38411 * modules/unistr/u8-strchr: New file.
38412 * modules/unistr/u16-strchr: New file.
38413 * modules/unistr/u32-strchr: New file.
38414 * lib/unistr/u8-strchr.c: New file.
38415 * lib/unistr/u16-strchr.c: New file.
38416 * lib/unistr/u32-strchr.c: New file.
38418 * modules/unistr/u8-strcmp: New file.
38419 * modules/unistr/u16-strcmp: New file.
38420 * modules/unistr/u32-strcmp: New file.
38421 * lib/unistr/u8-strcmp.c: New file.
38422 * lib/unistr/u16-strcmp.c: New file.
38423 * lib/unistr/u32-strcmp.c: New file.
38425 * modules/unistr/u8-strcpy: New file.
38426 * modules/unistr/u16-strcpy: New file.
38427 * modules/unistr/u32-strcpy: New file.
38428 * lib/unistr/u8-strcpy.c: New file.
38429 * lib/unistr/u16-strcpy.c: New file.
38430 * lib/unistr/u32-strcpy.c: New file.
38431 * lib/unistr/u-strcpy.h: New file.
38433 * modules/unistr/u8-strcspn: New file.
38434 * modules/unistr/u16-strcspn: New file.
38435 * modules/unistr/u32-strcspn: New file.
38436 * lib/unistr/u8-strcspn.c: New file.
38437 * lib/unistr/u16-strcspn.c: New file.
38438 * lib/unistr/u32-strcspn.c: New file.
38439 * lib/unistr/u-strcspn.h: New file.
38441 * modules/unistr/u8-strdup: New file.
38442 * modules/unistr/u16-strdup: New file.
38443 * modules/unistr/u32-strdup: New file.
38444 * lib/unistr/u8-strdup.c: New file.
38445 * lib/unistr/u16-strdup.c: New file.
38446 * lib/unistr/u32-strdup.c: New file.
38447 * lib/unistr/u-strdup.h: New file.
38449 * modules/unistr/u8-strlen: New file.
38450 * modules/unistr/u16-strlen: New file.
38451 * modules/unistr/u32-strlen: New file.
38452 * lib/unistr/u8-strlen.c: New file.
38453 * lib/unistr/u16-strlen.c: New file.
38454 * lib/unistr/u32-strlen.c: New file.
38455 * lib/unistr/u-strlen.h: New file.
38457 * modules/unistr/u8-strmblen: New file.
38458 * modules/unistr/u16-strmblen: New file.
38459 * modules/unistr/u32-strmblen: New file.
38460 * lib/unistr/u8-strmblen.c: New file.
38461 * lib/unistr/u16-strmblen.c: New file.
38462 * lib/unistr/u32-strmblen.c: New file.
38464 * modules/unistr/u8-strmbtouc: New file.
38465 * modules/unistr/u16-strmbtouc: New file.
38466 * modules/unistr/u32-strmbtouc: New file.
38467 * lib/unistr/u8-strmbtouc.c: New file.
38468 * lib/unistr/u16-strmbtouc.c: New file.
38469 * lib/unistr/u32-strmbtouc.c: New file.
38471 * modules/unistr/u8-strncat: New file.
38472 * modules/unistr/u16-strncat: New file.
38473 * modules/unistr/u32-strncat: New file.
38474 * lib/unistr/u8-strncat.c: New file.
38475 * lib/unistr/u16-strncat.c: New file.
38476 * lib/unistr/u32-strncat.c: New file.
38477 * lib/unistr/u-strncat.h: New file.
38479 * modules/unistr/u8-strncmp: New file.
38480 * modules/unistr/u16-strncmp: New file.
38481 * modules/unistr/u32-strncmp: New file.
38482 * lib/unistr/u8-strncmp.c: New file.
38483 * lib/unistr/u16-strncmp.c: New file.
38484 * lib/unistr/u32-strncmp.c: New file.
38486 * modules/unistr/u8-strncpy: New file.
38487 * modules/unistr/u16-strncpy: New file.
38488 * modules/unistr/u32-strncpy: New file.
38489 * lib/unistr/u8-strncpy.c: New file.
38490 * lib/unistr/u16-strncpy.c: New file.
38491 * lib/unistr/u32-strncpy.c: New file.
38492 * lib/unistr/u-strncpy.h: New file.
38494 * modules/unistr/u8-strnlen: New file.
38495 * modules/unistr/u16-strnlen: New file.
38496 * modules/unistr/u32-strnlen: New file.
38497 * lib/unistr/u8-strnlen.c: New file.
38498 * lib/unistr/u16-strnlen.c: New file.
38499 * lib/unistr/u32-strnlen.c: New file.
38500 * lib/unistr/u-strnlen.h: New file.
38502 * modules/unistr/u8-strpbrk: New file.
38503 * modules/unistr/u16-strpbrk: New file.
38504 * modules/unistr/u32-strpbrk: New file.
38505 * lib/unistr/u8-strpbrk.c: New file.
38506 * lib/unistr/u16-strpbrk.c: New file.
38507 * lib/unistr/u32-strpbrk.c: New file.
38508 * lib/unistr/u-strpbrk.h: New file.
38510 * modules/unistr/u8-strrchr: New file.
38511 * modules/unistr/u16-strrchr: New file.
38512 * modules/unistr/u32-strrchr: New file.
38513 * lib/unistr/u8-strrchr.c: New file.
38514 * lib/unistr/u16-strrchr.c: New file.
38515 * lib/unistr/u32-strrchr.c: New file.
38517 * modules/unistr/u8-strspn: New file.
38518 * modules/unistr/u16-strspn: New file.
38519 * modules/unistr/u32-strspn: New file.
38520 * lib/unistr/u8-strspn.c: New file.
38521 * lib/unistr/u16-strspn.c: New file.
38522 * lib/unistr/u32-strspn.c: New file.
38523 * lib/unistr/u-strspn.h: New file.
38525 * modules/unistr/u8-strstr: New file.
38526 * modules/unistr/u16-strstr: New file.
38527 * modules/unistr/u32-strstr: New file.
38528 * lib/unistr/u8-strstr.c: New file.
38529 * lib/unistr/u16-strstr.c: New file.
38530 * lib/unistr/u32-strstr.c: New file.
38531 * lib/unistr/u-strstr.h: New file.
38533 * modules/unistr/u8-strtok: New file.
38534 * modules/unistr/u16-strtok: New file.
38535 * modules/unistr/u32-strtok: New file.
38536 * lib/unistr/u8-strtok.c: New file.
38537 * lib/unistr/u16-strtok.c: New file.
38538 * lib/unistr/u32-strtok.c: New file.
38539 * lib/unistr/u-strtok.h: New file.
38541 * modules/unistr/u8-uctomb: New file.
38542 * modules/unistr/u16-uctomb: New file.
38543 * modules/unistr/u32-uctomb: New file.
38544 * lib/unistr/u8-uctomb.c: New file.
38545 * lib/unistr/u16-uctomb.c: New file.
38546 * lib/unistr/u32-uctomb.c: New file.
38548 * MODULES.html.sh (Unicode string functions): Add the new modules.
38550 2007-01-08 Bruno Haible <bruno@clisp.org>
38552 * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
38553 modules directory. Filter out CVS, ChangeLog, COPYING, README also from
38556 2007-01-08 Karl Berry <karl@gnu.org>
38558 * doc/error.texi: mention that main() fns must set program_name
38559 when progname is used.
38561 2007-01-08 Paul Eggert <eggert@cs.ucla.edu>
38563 * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
38564 WCTYPE_H is empty, for the benefit of builds from non-distclean
38565 directories. Problem reported by Eric Blake in
38566 <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
38568 2007-01-08 Bruno Haible <bruno@clisp.org>
38570 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
38571 PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
38572 * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
38573 PROVIDE_CANONICALIZE_FILENAME_MODE.
38574 * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
38576 2007-01-08 Bruno Haible <bruno@clisp.org>
38578 * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
38579 * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
38580 Use !GNULIB_FTS instead of _LGPL_PACKAGE.
38581 * lib/fts.c: Likewise.
38582 * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
38584 2006-12-25 Bruno Haible <bruno@clisp.org>
38586 * modules/utf8-ucs4-safe: New file.
38587 * lib/utf8-ucs4-safe.h: New file.
38588 * lib/unistr/utf8-ucs4-safe.c: New file.
38590 * modules/utf16-ucs4-safe: New file.
38591 * lib/utf16-ucs4-safe.h: New file.
38592 * lib/unistr/utf16-ucs4-safe.c: New file.
38594 * MODULES.html.sh (Unicode string functions): Add the new modules.
38596 2007-01-08 Bruno Haible <bruno@clisp.org>
38598 * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
38599 (Depends-on): Add unitypes.
38600 * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38601 (u8_mbtouc_aux): Move out to separate file.
38602 (u8_mbtouc): Use ucs4_t, uint8_t types.
38603 * lib/unistr/utf8-ucs4.c: New file.
38605 * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
38606 (Depends-on): Add unitypes.
38607 * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
38608 (u16_mbtouc_aux): Move out to separate file.
38609 (u16_mbtouc): Use ucs4_t, uint16_t types.
38610 * lib/unistr/utf16-ucs4.c: New file.
38612 * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
38613 (Depends-on): Add unitypes.
38614 * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
38615 (u8_uctomb_aux): Move out to separate file.
38616 (u8_uctomb): Use ucs4_t, uint8_t types.
38617 * lib/unistr/ucs4-utf8.c: New file.
38619 * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
38620 (Depends-on): Add unitypes.
38621 * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
38622 (u16_uctomb_aux): Move out to separate file.
38623 (u16_uctomb): Use ucs4_t, uint16_t types.
38624 * lib/unistr/ucs4-utf16.c: New file.
38626 2006-12-25 Bruno Haible <bruno@clisp.org>
38628 * modules/unitypes: New file.
38629 * lib/unitypes.h: New file.
38630 * MODULES.html.sh (func_all_modules): New section "Unicode string
38631 functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
38632 this section. Add unitypes.
38634 2007-01-08 Bruno Haible <bruno@clisp.org>
38636 Avoid variable names that conflict with those from libtool.
38637 * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
38638 AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
38639 shlibext to acl_shlibext, libname_spec to acl_libname_spec,
38640 library_names_spec to acl_library_names_spec, hardcode_* to
38642 Reported by Ralf Wildenhues.
38644 2007-01-08 Bruno Haible <bruno@clisp.org>
38646 * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
38648 * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
38650 * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
38651 * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
38653 * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
38655 * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
38656 * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
38657 * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
38658 * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
38660 * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
38662 * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
38663 * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
38664 GC_USE_<algorithm>.
38665 * lib/gc-libgcrypt.c: Likewise.
38666 * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
38667 * modules/gc-arctwo (configure.ac): Likewise.
38668 * modules/gc-des (configure.ac): Likewise.
38669 * modules/gc-hmac-md5 (configure.ac): Likewise.
38670 * modules/gc-hmac-sha1 (configure.ac): Likewise.
38671 * modules/gc-md2 (configure.ac): Likewise.
38672 * modules/gc-md4 (configure.ac): Likewise.
38673 * modules/gc-md5 (configure.ac): Likewise.
38674 * modules/gc-random (configure.ac): Likewise.
38675 * modules/gc-rijndael (configure.ac): Likewise.
38676 * modules/gc-sha1 (configure.ac): Likewise.
38678 2007-01-08 Bruno Haible <bruno@clisp.org>
38680 * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
38682 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
38684 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
38686 * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
38687 * modules/fcntl-safer (configure.ac): Likewise.
38688 * modules/fopen-safer (configure.ac): Likewise.
38689 * modules/fwriteerror (configure.ac): Likewise. Remove explicit
38690 GNULIB_FWRITEERROR macro definition.
38692 2007-01-08 Bruno Haible <bruno@clisp.org>
38694 * m4/gnulib-common.m4: New file.
38695 * gnulib-tool (func_get_autoconf_snippet): Undo last change.
38696 (func_get_filelist): Add m4/gnulib-common.m4.
38698 2007-01-08 Bruno Haible <bruno@clisp.org>
38700 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
38703 2007-01-08 Jim Meyering <jim@meyering.net>
38705 Use a more robust test for a "can't happen" condition.
38706 * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
38707 narrowed the st_size value. Presuming the "can't happen" condition
38708 is true, that narrowing could conceivably convert an invalid st_size
38709 value into a valid one. Instead, use a change based on Matthew
38710 Woehlke's original patch.
38712 Slight readability improvement: use an assert-like macro
38713 in place of literal "abort ()" uses.
38714 * lib/fts.c (fts_assert): Define.
38715 (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
38716 Use this macro instead of a bare 'abort'.
38718 2007-01-05 Paul Eggert <eggert@cs.ucla.edu>
38720 Don't worry about using IRIX 5.3's wctype.h broken definitions;
38721 simply work around them.
38722 * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
38723 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
38724 (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
38726 Don't bother to define as macros, since the standard doesn't require it.
38727 * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
38728 longer worry about IRIX 5.3.
38729 (HAVE_WCTYPE_CTMP_BUG): Remove.
38731 2007-01-04 Paul Eggert <eggert@cs.ucla.edu>
38733 * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
38734 not wint_t. Also, include <ctype.h>, to fix another IRIX bug.
38735 * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
38736 Problems reported by Georg Schwarz for IRIX 5.3.
38738 * gnulib-tool (autoconf_minversion): Take the maximum version number
38739 found, not the minimum. Problem reported by James Youngman.
38741 2007-01-03 Karl Berry <karl@gnu.org>
38743 * doc/error.texi: new file, explaining interaction with progname.
38744 * doc/gnulib.texi: include it. Update copyright.
38746 2007-01-03 Simon Josefsson <simon@josefsson.org>
38748 * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
38749 AC_CANONICAL_HOST, to improve autobuild outputs.
38751 2007-01-03 Paolo Bonzini <bonzini@gnu.org>
38752 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
38754 * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
38755 sockets, server sockets, and other file descriptors. Count errors
38756 to compute the return value. Reorder the code a bit to be easier
38757 to follow. Don't set event bits that were not requested (except
38758 POLLERR and POLLHUP).
38760 2007-01-01 Bruno Haible <bruno@clisp.org>
38762 * modules/lchmod (Include): Require lchmod.h, not lchown.h.
38764 2007-01-03 Jim Meyering <jim@meyering.net>
38766 * modules/fts-lgpl (Depends-on): Add i-ring. Reported by Bruno Haible.
38768 2007-01-02 Bruno Haible <bruno@clisp.org>
38770 * modules/settime (Include): Require timespec.h.
38771 * modules/nanosleep (Include): Likewise.
38773 2007-01-01 Bruno Haible <bruno@clisp.org>
38775 * gnulib-tool (func_emit_copyright_notice): Bump year.
38776 (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
38778 2007-01-01 Bruno Haible <bruno@clisp.org>
38780 Improve support for OpenBSD.
38781 * build-aux/config.rpath (libname_spec): Export.
38782 (library_names_spec): New variable. Export.
38783 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
38784 library_names_spec from the config.rpath output. Locate shared library
38785 through the name pattern in library_names_spec.
38787 2007-01-01 Eric Blake <ebb9@byu.net>
38789 * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
38791 2006-12-30 Paul Eggert <eggert@cs.ucla.edu>
38793 * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
38794 Rewrite so as not to assume GNU sort or "tail -1". Also, don't
38795 assume the C locale, and avoid an "eval" that could cause trouble.
38796 Problem with SORT reported by Bob Proulx.
38798 * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
38799 Define. Trivial patch from Henning Nielsen Lund, originally
38800 sent to bug-grep@gnu.org today.
38802 2006-12-29 Paul Eggert <eggert@cs.ucla.edu>
38804 * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
38805 struct stat. Problem reported by Henning Nielsen Lund.
38806 * lib/acl.c: Include acl.h first, to check interface. Don't
38807 bother to include sys/types.h and sys/stat.h again.
38809 2006-12-28 Paul Eggert <eggert@cs.ucla.edu>
38811 Import the following change from libc; problem reported by
38814 2005-10-13 Ulrich Drepper <drepper@redhat.com>
38817 * lib/argp.h: Remove __NTH for __argp_usage inline function.
38819 2006-12-28 Jim Meyering <jim@meyering.net>
38821 * build-aux/announce-gen: Do not assume that the package
38822 builds any of tar.gz, tar.bz2, and .xdelta files.
38823 Suggestion from Simon Josefsson.
38825 2006-12-28 Simon Josefsson <simon@josefsson.org>
38827 * modules/announce-gen: New file.
38829 2006-12-27 Paul Eggert <eggert@cs.ucla.edu>
38831 * lib/mbchar.h: Just include <wctype.h>; the wctype module
38832 handles its gotchas now.
38833 * lib/mbswidth.c: Likewise.
38834 * lib/wcwidth.h: Likewise.
38835 * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
38836 and iswcntrl; the wctype module does this stuff now.
38837 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
38838 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
38839 * modules/mbchar (Depends-on): Add wctype.
38840 * modules/mbswidth (Depends-on): Likewise.
38841 * modules/wcwidth (Depends-on): Likewise.
38843 2006-12-27 Eric Blake <ebb9@byu.net>
38845 * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
38846 module uses more than what <wctype.h> is required to provide.
38848 2006-12-26 Eric Blake <ebb9@byu.net>
38850 * gnulib-tool (sed_extract_prog): Avoid space-tab.
38852 2006-12-26 Eric Blake <ebb9@byu.net>
38854 * modules/absolute-header: New module.
38855 * modules/fcntl (Depends-on): Depend on it.
38856 * modules/inttypes (Depends-on): Likewise.
38857 * modules/stdint (Depends-on): Likewise.
38858 * modules/sys_stat (Depends-on): Likewise.
38859 * modules/wctype (Depends-on): Likewise.
38860 * MODULES.html.sh (Support for building libraries and
38861 executables): Document it.
38863 2006-12-25 Paul Eggert <eggert@cs.ucla.edu>
38865 * gnulib-tool (SED): Remove, undoing previous change.
38866 The problem was that it broke coreutils on Solaris, because
38867 "sed --posix" leaked into a makefile.
38868 (sed): New alias, if 'alias' and GNU sed.
38870 2006-12-24 Jim Meyering <jim@meyering.net>
38872 Work around an fchownat bug in glibc-2.4:
38873 http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
38874 This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
38875 in spite of the -P option.
38876 * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
38878 (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
38879 * modules/openat (Files): Add lib/fchownat.c.
38880 * lib/openat.c (fchownat): Don't define here. Move to...
38881 * lib/fchownat.c: ...this new file.
38883 2006-12-23 Paul Eggert <eggert@cs.ucla.edu>
38885 Fix bug reported by Bruno Haible in
38886 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
38887 where quotearg.c didn't compile on Mac OS X 10.2 because it
38888 lacks <wchar.h> and wint_t.
38889 * lib/wctype_.h (__wctype_wint_t): New type.
38890 Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
38891 (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
38892 (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
38893 Arg is now of type __wctype_wint_t, not wint_t.
38894 * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
38895 substitute HAVE_WINT_T.
38896 * modules/wctype (Files): Add m4/wint_t.m4.
38897 (wctype.h): Substitute HAVE_WINT_T.
38899 2006-12-23 Bruno Haible <bruno@clisp.org>
38901 * lib/safe-read.h [C++]: Wrap declarations in extern "C".
38903 2006-12-23 Bruno Haible <bruno@clisp.org>
38905 * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
38907 Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
38910 2006-12-22 Bruno Haible <bruno@clisp.org>
38912 * lib/copy-file.c: Include acl.h.
38913 (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
38914 Close the file descriptors only after being done with copy_acl.
38915 * modules/copy-file (Depends-on): Add acl.
38917 2006-12-22 Bruno Haible <bruno@clisp.org>
38919 * gnulib-tool (SED): New variable.
38920 Use $SED instead of sed everywhere.
38922 2006-12-22 Bruno Haible <bruno@clisp.org>
38924 * modules/no-c++: New file.
38925 * m4/no-c++.m4: New file.
38926 * MODULES.html.sh (Support for building libraries and executables):
38929 2006-12-22 Paul Eggert <eggert@cs.ucla.edu>
38931 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
38932 Include <limits.h>, and use its INT_MAX to rewrite the
38933 j loop so that it does not overflow 'int'. Problem reported by
38935 <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
38936 Play it safe by shifting left by 1 rather than multiplying by 2,
38937 as GCC is less likely to optimize this away when the value
38938 is signed (when it assumes overflow leads to undefined behavior).
38939 Also, don't assume time_t uses two's complement.
38941 2006-12-21 Paul Eggert <eggert@cs.ucla.edu>
38943 * MODULES.html.sh: New module wctype.
38944 * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
38945 * lib/fnmatch.c: Don't bother to include <wchar.h> before
38946 <wctype.h>, since the new wctype module should fix this.
38947 * lib/quotearg.c: Include <wctype.h> unconditionally, since
38948 the wctype module should arrange for it.
38949 * lib/regex_internal.h: Likewise.
38950 * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
38951 since the wctype module should handle this now.
38952 * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
38953 * modules/fnmatch (Depends-on): Add wctype.
38954 * modules/quotearg (Depends-on): Likewise.
38955 * modules/regex (Depends-on): Likewise.
38957 2006-12-19 Bruno Haible <bruno@clisp.org>
38959 * lib/strdup.h [C++]: Wrap definitions in extern "C".
38960 Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
38962 2006-12-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
38964 * modules/savewd (Depends-on): Fix dependency on fcntl.
38966 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
38968 * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
38969 conforms to C99, rather than relying on the user's environment
38970 setting of STDINT_H.
38972 2006-12-18 Paul Eggert <eggert@cs.ucla.edu>
38973 and Eric Blake <ebb9@byu.net>
38975 * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
38976 This is more consistent with the other defines here.
38977 * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
38978 Port to z/OS. Problem reported by Paul Gilmartin.
38979 Change local vars to use gl_ prefix rather than ac_.
38980 Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
38981 with other defines.
38982 * modules/double-slash-root: New module.
38983 * modules/dirname (Files): Remove m4/double-slash-root.m4.
38984 (Depends-on): Add double-slash-root.
38985 * MODULES.html.sh (File system functions): Mention new module.
38987 2006-12-14 Paul Eggert <eggert@cs.ucla.edu>
38989 * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
38990 (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
38991 This is for the benefit of gzip, which doesn't do i18n.
38993 2006-12-12 Jim Meyering <jim@meyering.net>
38995 * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
38996 Reported by Andreas Schwab <schwab@suse.de>.
38998 2006-12-12 Bruno Haible <bruno@clisp.org>
39000 Merge these changes.
39001 2006-09-05 Bruno Haible <bruno@clisp.org>
39002 * lib/iconvme.c (iconv_string): No need to save and restore errno when
39003 iconv_alloc succeeded.
39004 (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
39005 sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
39006 test for " && dest " at the end - dest is always != NULL there. Call
39007 iconv with 4xNULL arguments initially, to reset the state. Call iconv
39008 with 2xNULL arguments, also to flush the state storage. Handle the
39009 IRIX iconv behaviour. Realloc the final result, to throw away unused
39012 2006-12-11 Paul Eggert <eggert@cs.ucla.edu>
39014 * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
39015 and fchmodat unconditionally, since glibc 2.4 has them.
39016 Problem reported by Arkadiusz Miskiewicz.
39018 2006-12-10 Bruno Haible <bruno@clisp.org>
39020 * gnulib-tool (func_import): Show the include files only for those
39021 modules that are copied and specified.
39022 Reported by Karl Berry.
39024 2006-12-08 Jim Meyering <jim@meyering.net>
39026 * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
39027 Instead, use Emacs' time-stamp write hook. Note that the time is UTC.
39029 * build-aux/announce-gen: Add two new options, both optional:
39030 --bootstrap-tools=TOOL_LIST
39031 a comma-separated list of tools, e.g.,
39032 autoconf,automake,bison,gnulib
39033 --gnulib-snapshot-date=DATE
39034 if gnulib is in the bootstrap tool list,
39035 then report this as the snapshot date.
39036 If not specified, use the current date/time.
39037 If you specify a date here, be sure it's UTC.
39039 2006-12-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39041 * tests/test-argp-2.sh: Fix test to match actual output.
39042 (func_compare): Fix sed script to be portable.
39044 2006-12-05 Paul Eggert <eggert@cs.ucla.edu>
39046 * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
39047 workaround for this case. It is not autoconfigured now; offhand
39048 it's hard to see how to autoconfigure it.
39050 2006-12-03 Paul Eggert <eggert@cs.ucla.edu>
39052 * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
39053 a directory that is about to be chowned. Such a directory's
39054 initial file permissions should permit the owner only and this
39055 should not be changed until after the chown, since the group and
39056 other bits would be incorrect if they granted permission before
39059 Fix porting problem for iswctype reported by Georg Schwarz in:
39060 http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
39061 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
39062 * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
39063 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
39064 * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
39066 2006-12-03 Jim Meyering <jim@meyering.net>
39068 * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
39069 p->fts_statp may not yet be defined.
39070 (fts_read): Instead, set it in the caller, once p->fts_statp is
39071 sure to be defined, and corresponds to a top-level directory.
39072 This bug made du -x fail. Here's the coreutils test case:
39073 http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
39074 Reported by Mike Frysinger.
39076 2006-12-01 Jim Meyering <jim@meyering.net>
39078 * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
39079 build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
39080 Reported by Simon Josefsson.
39082 2006-11-30 Jim Meyering <jim@meyering.net>
39084 * m4/warning.m4: Use the all-permissive copyright notice
39085 recommended by RMS (rather than LGPL).
39086 * m4/vararrays.m4: Likewise.
39087 * m4/flexmember.m4: Likewise.
39089 2006-11-29 Bruno Haible <bruno@clisp.org>
39091 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39092 noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
39094 Reported by Simon Josefsson <simon@josefsson.org>.
39096 2006-11-28 James Youngman <jay@gnu.org>
39098 * README: Advise users that they might find the bug-gnulib@gnu.org
39099 and autotools-announce@gnu.org mailing lists useful.
39101 2006-11-28 Bruno Haible <bruno@clisp.org>
39103 * m4/ptrdiff_max.m4: Remove file.
39105 2006-11-21 Bruno Haible <bruno@clisp.org>
39107 * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
39109 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39110 * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
39112 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39113 * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
39115 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39117 2006-11-28 Jim Meyering <jim@meyering.net>
39119 * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
39120 warning from "gcc -Wshadow" about shadowing the builtin.
39122 2006-11-27 Bruno Haible <bruno@clisp.org>
39124 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
39126 (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
39128 2006-11-27 Bruno Haible <bruno@clisp.org>
39129 Paul Eggert <eggert@cs.ucla.edu>
39131 * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
39133 2006-11-26 Bruno Haible <bruno@clisp.org>
39135 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
39136 noinst_LTLIBRARIES.
39138 2006-11-27 Paul Eggert <eggert@cs.ucla.edu>
39139 Bruno Haible <bruno@clisp.org>
39141 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
39142 if compiling with "gcc -ansi".
39144 2006-11-26 Paul Eggert <eggert@cs.ucla.edu>
39146 Fix some incompatibilities with gcc -ansi -pedantic.
39147 * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
39148 if compiling pedantically with GCC, unless it's C99 or later.
39149 Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
39150 it mishandles gcc -ansi -pedantic as well.
39151 * lib/regex_internal.h (re_token_t): Don't use enum bitfields
39153 * lib/regexec.c (check_node_accept_bytes): Don't use auto
39154 initializers for struct if -pedantic, unless it's C99 or later.
39156 2006-11-25 Nix <nix@esperi.org.uk> (tiny change)
39158 * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
39159 Don't close an fd more than once. Identical atimes indicate
39160 success, not failure.
39162 2006-11-22 Robinson Mittmann <bob@hoplon.com> (tiny change)
39164 * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
39166 2006-11-23 Jim Meyering <jim@meyering.net>
39168 * build-aux/announce-gen: New file. From coreutils.
39170 2006-11-22 Jim Meyering <jim@meyering.net>
39172 Work around a compile-time error from the HP-UX 11.00 /bin/cc.
39173 * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
39174 (fts_read): Use a temporary to narrow the overused st_size member
39175 before using it in a switch statement. Reported by Matthew Woehlke.
39177 * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
39178 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
39180 2006-11-20 Bruno Haible <bruno@clisp.org>
39182 * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
39183 changequote instead of pairs of brackets.
39184 Reported by Andreas Schwab <schwab@suse.de>.
39186 2006-11-21 Jim Meyering <jim@meyering.net>
39188 * lib/fts.c (fts_safe_changedir): Move a declaration "up",
39189 so as to remain compatible with older compilers.
39190 Patch from Michael Deutschmann.
39192 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
39194 * MODULES.html.sh (File system functions): Add openat.
39196 * lib/openat.h (rpl_fstatat): New macro, if
39197 [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
39198 (fstatat): Define to rpl_fstatat under the same conditions,
39199 unless COMPILING_FSTATAT.
39200 * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
39201 seems to have the bug.
39202 * lib/fstatat.c: New file.
39203 * modules/openat (Files): Add it.
39205 2006-11-20 Bruno Haible <bruno@clisp.org>
39207 * Makefile: New file.
39209 2006-11-20 Jim Meyering <jim@meyering.net>
39211 The beginnings of syntax-related checks for gnulib.
39212 * lib/Makefile: New file.
39213 * lib/t-idcache: New script. Ensure that the two halves of
39214 idcache.c stay in sync.
39216 * lib/idcache.c: Adjust comments in user- and group- portions to
39217 be more accurate, and to be consistent with one another.
39219 2006-11-20 Jim Meyering <jim@meyering.net>
39221 * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
39222 continue using the flexible array member (thus, this module performs
39223 half as many malloc calls), with the addition that...
39224 (getgroup, getuser): Consistently record a non-match via an empty
39225 "name" string, and map an empty string match to a NULL return value.
39226 * modules/idcache (Depends-on): Re-add flexmember.
39228 * lib/idcache.c (getuser): Remove all uses of the register keyword.
39229 (getuidbyname, getgroup, getgidbyname): Likewise.
39231 Use cleaner syntax: NULL rather than 0.
39232 * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
39234 2006-11-20 Paul Eggert <eggert@cs.ucla.edu>
39236 * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
39237 It mishandled the case where the group was missing.
39238 Problem reported by Greg Schafer.
39239 * modules/idcache: Likewise.
39241 2006-11-18 Jim Meyering <jim@meyering.net>
39243 * check-module (%exempt_header): Add exception for some
39244 conditionally-included headers.
39246 * modules/i-ring (Depends-on): Add verify.
39247 (License): Change to LGPL.
39249 2006-11-16 Paul Eggert <eggert@cs.ucla.edu>
39251 * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
39252 * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
39253 and inttostr.h. Use snprintf rather than uinttostr, so that
39254 LGPLed code doesn't depend on GPLed.
39256 2006-11-17 Paul Eggert <eggert@cs.ucla.edu>
39258 * modules/inline (License): Change from GPL to LGPL.
39260 2006-11-17 Jim Meyering <jim@meyering.net>
39262 * modules/d-type (License): Switch to LGPL.
39264 2006-11-15 Bruno Haible <bruno@clisp.org>
39266 * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
39268 2006-11-15 Eric Blake <ebb9@byu.net>
39270 * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
39271 the module dependency.
39273 2006-11-15 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
39274 Bruno Haible <bruno@clisp.org>
39276 * gnulib-tool (func_create_testdir): Add license consistency check.
39278 2006-11-15 Eric Blake <ebb9@byu.net>
39280 * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
39281 random "(cached)" in configure output.
39283 2006-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39285 * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
39286 test for conforming inttypes.h is both announced and cached.
39288 * MODULES.html.sh (seen_modules, seen_files): New variables.
39289 (func_module): Rewrite to use a few less gnulib-tool and sed
39290 invocations. Avoid a couple of quadratic algorithms for ...
39291 (missed_modules, missed_files): ... these, with ...
39292 (func_append, func_tmpdir): ... these new functions, from
39293 gnulib-tool. Analogously, install traps for cleanup.
39295 * tests/test-gc.c (main): Remove unused variables.
39296 * tests/test-read-file.c: Include stdlib.h, for 'free'.
39298 2006-11-14 Paul Eggert <eggert@cs.ucla.edu>
39300 * modules/inttostr (License): Change to LGPL.
39302 2006-11-14 Eric Blake <ebb9@byu.net>
39304 * modules/tempname (License): Change to LGPL.
39306 2006-11-14 Eric Blake <ebb9@byu.net>
39308 * doc/functions.texi (Function Portability): *printf functions on
39309 Cygwin now understand all POSIX size specifiers.
39311 2006-11-14 Bruno Haible <bruno@clisp.org>
39313 * modules/c-ctype (License): Change to LGPL.
39315 2006-11-12 Bruno Haible <bruno@clisp.org>
39317 * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
39318 AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
39319 for GNOME libraries, for which the include files are installed in
39320 subdirectories of $prefix/include.
39322 2006-11-12 Bruno Haible <bruno@clisp.org>
39324 * m4/lib-link.m4: Require at least autoconf-2.54.
39325 (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
39326 name to underscores for the --with option.
39328 2006-11-13 Bruno Haible <bruno@clisp.org>
39330 * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
39331 the tests directory.
39332 Reported by Ralf Wildenhues.
39334 2006-11-13 Bruno Haible <bruno@clisp.org>
39336 * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
39337 (func_emit_initmacro_end): Undo the override here.
39338 (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
39339 Works around the famous automake error in coreutils.
39341 2006-11-13 Eric Blake <ebb9@byu.net>
39343 * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
39344 element, not its node.
39346 2006-11-12 Bruno Haible <bruno@clisp.org>
39348 * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
39349 '$(top_srcdir)/build-aux/', taking into account the real auxdir.
39351 2006-11-12 Bruno Haible <bruno@clisp.org>
39353 * gnulib-tool: New option --local-symlink.
39354 (func_usage): Document it.
39355 (lsymbolic): New variable.
39356 (func_import, func_create_testdir): If --symlink was not specified,
39357 test whether --local-symlink was specified and the file comes from
39358 the local_gnulib_dir.
39360 2006-11-12 Bruno Haible <bruno@clisp.org>
39362 * gnulib-tool (func_ln): New function.
39363 (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
39365 2006-11-12 Bruno Haible <bruno@clisp.org>
39367 Finish support for source files in subdirectories.
39368 * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
39369 are in subdirectories, set uses_subdirs and add 'subdir-objects' to
39371 (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
39373 2006-11-12 Bruno Haible <bruno@clisp.org>
39375 * gnulib-tool (func_get_automake_snippet): Synthesize also an
39376 EXTRA_lib_SOURCES augmentation.
39377 (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
39379 2006-11-12 Jim Meyering <jim@meyering.net>
39381 Make fts (in FTS_CWDFD mode) more efficient by caching a few open
39382 file descriptors. This also averts a failure on systems with
39383 native openat support when a traversed directory lacks "x" access.
39384 * lib/fts_.h: Include "i-ring.h"
39385 (struct FTS) [fts_fd_ring]: New member.
39386 * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
39387 (FCHDIR): Add parentheses.
39388 (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
39389 (cwd_advance_fd): Add a 3rd parameter. Adjust all callers.
39390 When descending, rather than simply closing the previous
39391 fts_cwd_fd value, push that file descriptor onto the ring.
39392 (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
39393 (fts_open): Initialize the new fd_ring member.
39394 (fts_close): Clear the ring.
39395 (fts_safe_changedir): When possible, use our new fd_ring to skip
39396 the diropen and fstat and dev/ino comparison that would normally
39397 accompany a virtual `chdir ("..")'.
39399 * modules/fts (Depends-on): Add i-ring.
39400 * modules/i-ring: New module.
39401 * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
39402 * m4/i-ring.m4: New file.
39404 2006-11-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39406 * gnulib-tool (func_create_testdir): Fix replacement of
39407 `build-aux' in configure.ac. Run autotools in gltests
39409 (func_create_testdir, func_create_megatestdir, test): There is
39410 no need for '--force' in most autotool invocations in a new
39411 tree. Actually fail the whole test if any of the tools, or the
39412 configure or make stages fail.
39414 Sync from Automake.
39415 * build-aux/gnupload: Revert last change. Add pointer to upload
39416 instructions of the GNU Maintenance Instructions.
39417 Suggestion by Karl Berry.
39419 2006-11-10 Jim Meyering <jim@meyering.net>
39421 * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
39423 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
39425 * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
39426 (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
39427 (bind_textdomain_codeset) [! ENABLE_NLS]:
39428 Evaluate all the arguments. That way, callers get compatible behavior
39429 if the arguments have side effects. Also, it avoids some GCC
39430 diagnostics in some cases; Joel E. Denny reported problems when Bison
39431 was configured with --enable-gcc-warnigs.
39433 2006-11-10 Jim Meyering <jim@meyering.net>
39435 * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
39436 relevant options in CFLAGS (like -O, -fno-inline) are taken into
39439 2006-11-10 Jim Meyering <jim@meyering.net>
39441 * modules/inline: New file/module.
39442 * modules/xalloc (Files): Remove m4/inline.m4.
39443 (Depends-on): Add inline, instead.
39444 * modules/oset: Likewise.
39445 * modules/list: Likewise.
39447 2006-11-09 Paul Eggert <eggert@cs.ucla.edu>
39449 * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
39450 Problem reported by Matthew Woehlke.
39452 2006-11-09 Bruno Haible <bruno@clisp.org>
39454 * lib/tempname.c (gen_tempname): Remove variant that invokes
39456 * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
39459 2006-11-08 Bruno Haible <bruno@clisp.org>
39461 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
39462 to 'yes' instead of 'cross-compiling'.
39464 2006-11-08 Paul Eggert <eggert@cs.ucla.edu>
39466 * lib/quotearg.h (quotearg_free): New decl.
39467 * lib/quotearg.c (quotearg_free): New function.
39468 (slot0, nslots, slotvec0, slotvec):
39469 Now file-scope so that quotearg_free can get at them.
39471 2006-11-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39473 Sync from Automake.
39474 * build-aux/gnupload: Add missing 'gnu' to example URL.
39475 Report by Karl Berry.
39477 2006-11-08 Bruno Haible <bruno@clisp.org>
39479 * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
39480 Suggested by Paul Eggert.
39482 2006-11-08 Jim Meyering <jim@meyering.net>
39484 * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
39485 It's already included if !_LIBC.
39486 (fts_safe_changedir): Add a comment.
39488 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
39490 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
39491 Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
39494 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
39495 definitions up, to avoid colliding with change below.
39496 (static_inline) [HAVE_INLINE]: New macro.
39497 (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
39498 Provide extern decls when !HAVE_INLINE. Do not define unless
39499 static_inline is defined, either by us or by xmalloc.c. Use
39500 static_inline rather than static inline.
39501 (XCALLOC): Optimize sizeof(T) = 1 case.
39502 * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
39504 2006-11-07 Bruno Haible <bruno@clisp.org>
39506 * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
39507 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
39509 * modules/xalloc (Files): Add m4/inline.m4.
39511 2006-11-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39513 * README: Fix typo.
39514 * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
39515 (Miscellanous Notes): ...from this.
39517 2006-11-07 Paul Eggert <eggert@cs.ucla.edu>
39519 * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
39520 Mention that offsetof should be used instead of sizeof.
39523 2006-11-07 Bruno Haible <bruno@clisp.org>
39525 * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
39527 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
39529 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39530 * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
39531 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39532 (gl_tree_add_before, gl_tree_add_after):
39533 Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
39534 * lib/gl_anyhash_list2.h (hash_resize): Likewise.
39535 * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
39536 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
39537 (gl_linked_add_after, gl_linked_add_at): Likewise.
39538 * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
39539 (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
39540 (gl_tree_add_before, gl_tree_add_after): Likewise.
39541 * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
39542 * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
39543 * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39545 2006-11-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39547 * lib/gl_oset.h: Use C comment style, not C++ comment style.
39549 2006-11-06 Bruno Haible <bruno@clisp.org>
39551 * m4/inline.m4: New file.
39552 * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
39553 * modules/list (Files): Add m4/inline.m4.
39554 * modules/oset (Files): Likewise.
39556 2006-11-06 Paul Eggert <eggert@cs.ucla.edu>
39558 * lib/idcache.c: Include <stddef.h>, for offsetof.
39559 (struct userid.name): Change from char * to a flexible array member.
39561 * modules/idcache (Depends-on): Add flexmember.
39563 * MODULES.html.sh (Core language properties): New module flexmember.
39564 * modules/flexmember, m4/flexmember.m4: New files.
39566 * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
39567 inline functions that are identical with the old xnmalloc_inline,
39568 xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c. This is so
39569 that we can avoid some unnecessary integer multiplications and
39570 divisions in the common case where the element size is known at
39572 (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
39574 (xnboundedmalloc): Remove.
39575 (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
39576 arguments, for consistency with rest of this header.
39577 (xcharalloc): Rewrite using XNMALLOC.
39578 * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
39579 (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove. The *_inline
39580 versions have been moved to lib/xalloc.h and renamed to be the
39581 non-*_inline versions.
39582 (xmalloc, xrealloc): Implement without reference to the xnmalloc
39583 and xnrealloc functions, since those functions are now inline and
39585 (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
39586 renaming described above.
39587 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
39588 xmalloc.c no longer uses inline directly. gl_PREREQ_XALLOC now
39589 captures the dependency in AC_C_INLINE.
39591 New module canonicalize-lgpl, proposed by Charles Wilson in
39592 <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
39593 with a few small changes afterwards.
39594 * MODULES.html.sh (File system functions): New module
39596 * lib/canonicalize.h: Add comments for canonicalize_filename_mode
39597 and canonicalize_file_name.
39598 * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
39599 * modules/canonicalize-lgpl: New files.
39601 2006-11-05 Bruno Haible <bruno@clisp.org>
39603 * gnulib-tool (func_import, func_create_testdir): Create directories
39604 also for files in subdirectories of lib/.
39606 2006-11-05 Bruno Haible <bruno@clisp.org>
39608 * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
39611 2006-11-03 Bruno Haible <bruno@clisp.org>
39613 Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
39614 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
39615 * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
39616 (xnboundedmalloc): New inline function.
39617 * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
39618 * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
39620 * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
39622 * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
39623 * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
39624 * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
39626 (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39627 * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
39629 * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
39630 gl_tree_add_after): Use XMALLOC instead of xmalloc.
39631 * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
39633 (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
39634 * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
39635 gl_tree_add_after): Use XMALLOC instead of xmalloc.
39636 * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
39637 * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
39638 * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
39639 * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
39641 2006-11-03 Bruno Haible <bruno@clisp.org>
39643 * lib/c-ctype.h [C++]: Define functions without name mangling.
39644 * lib/fwriteerror.h [C++]: Likewise.
39645 * lib/gcd.h [C++]: Likewise.
39646 * lib/linebreak.h [C++]: Likewise.
39648 2006-11-03 Paul Eggert <eggert@cs.ucla.edu>
39650 * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
39651 (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
39652 Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
39653 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
39654 Check for functions and headers just once.
39655 Check for declaration of canonicalize_file_name.
39656 Define PROVIDE_CANONICALIZE_FILENAME_MODE.
39658 2006-11-02 Charles Wilson <cygwin@cwilson.fastmail.fm>
39660 * gnulib-tool (func_import): Fix typo in actioncmd.
39662 2006-11-02 Bruno Haible <bruno@clisp.org>
39664 * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
39665 newline sequence in the Makefile.am snippet as a space, like "make"
39667 Reported by Roger Persson <perrog@gmail.com>.
39669 2006-11-01 Bruno Haible <bruno@clisp.org>
39671 * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
39672 already declared in <string.h>.
39673 * lib/strcase.h (strncasecmp): Don't declare it if yes.
39675 2006-11-01 Bruno Haible <bruno@clisp.org>
39677 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
39678 * lib/strcase.h: Include <string.h>.
39679 (strcasecmp): Define to rpl_strcasecmp here.
39681 2006-11-01 Bruno Haible <bruno@clisp.org>
39683 * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
39685 2006-11-01 Eric Blake <ebb9@byu.net>
39687 * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
39689 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
39691 2006-10-29 Bruno Haible <bruno@clisp.org>
39693 Make it compile in C++ mode.
39694 * lib/full-write.c (full_rw): Add a cast.
39696 2006-11-01 Bruno Haible <bruno@clisp.org>
39698 * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
39699 be POSIX compliant.
39700 Reported by Roger Persson <perrog@gmail.com>.
39702 2006-11-01 Eric Blake <ebb9@byu.net>
39704 * lib/getopt_.h: Fix comments.
39706 2006-10-31 Eric Blake <ebb9@byu.net>
39708 * modules/tmpdir (Depends-on): Add sys_stat.
39709 * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
39710 * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
39711 * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
39712 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
39715 2006-10-31 Paul Eggert <eggert@cs.ucla.edu>
39717 Avoid some C++ diagnostics reported by Bruno Haible.
39718 * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
39720 (quotearg_alloc): Use xcharalloc rather than xmalloc.
39721 (struct slotvec): Move to top level.
39722 (quotearg_n_options): Rewrite to avoid xmalloc.
39723 * lib/xalloc.h (xcharalloc): New function.
39724 * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
39725 [defined __cplusplus]: Add function template that provides result
39726 type propagation. This part of the change is from Bruno Haible.
39728 2006-10-29 Bruno Haible <bruno@clisp.org>
39730 Make it compile in C++ mode.
39731 * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
39732 * lib/strnlen1.c (strnlen1): Cast memchr result.
39733 * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
39734 * lib/clean-temp.c (string_equals, string_hash): Add casts.
39735 (create_temp_dir): Rename local variable 'template'.
39736 (compile_csharp_using_sscli): Add cast.
39737 * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
39738 * lib/findprog.c (find_in_path): Likewise.
39739 * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
39740 * lib/wait-process.c (register_slave_subprocess): Likewise.
39742 2006-10-22 Bruno Haible <bruno@clisp.org>
39744 * modules/tsearch: New file.
39745 * lib/tsearch.h: New file.
39746 * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
39747 * m4/tsearch.m4: New file.
39748 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
39750 2006-10-29 Eric Blake <ebb9@byu.net>
39752 * lib/arcfour.c: Assume config.h.
39753 * lib/arctwo.c: Likewise.
39754 * lib/base64.c: Likewise.
39755 * lib/check-version.c: Likewise.
39756 * lib/crc.c: Likewise.
39757 * lib/des.c: Likewise.
39758 * lib/gc-gnulib.c: Likewise.
39759 * lib/gc-libgcrypt.c: Likewise.
39760 * lib/gc-pbkdf2-sha1.c: Likewise.
39761 * lib/getaddrinfo.c: Likewise.
39762 * lib/getdelim.c: Likewise.
39763 * lib/getline.c: Likewise.
39764 * lib/hmac-md5.c: Likewise.
39765 * lib/hmac-sha1.c: Likewise.
39766 * lib/iconvme.c: Likewise.
39767 * lib/md2.c: Likewise.
39768 * lib/md4.c: Likewise.
39769 * lib/memxor.c: Likewise.
39770 * lib/read-file.c: Likewise.
39771 * lib/readline.c: Likewise.
39772 * lib/rijndael-alg-fst.c: Likewise.
39773 * lib/rijndael-api-fst.c: Likewise.
39774 * lib/xgetdomainname.c: Likewise.
39776 2006-10-28 Eric Blake <ebb9@byu.net>
39778 * lib/xstrndup.c: Assume config.h.
39780 2006-10-27 Paul Eggert <eggert@cs.ucla.edu>
39782 Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
39783 stat-macros.h is now for our own macros, whereas stat_h is for
39784 macros in the <sys/stat.h> name space.
39785 * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
39786 (STAT_MACROS_H): Remove.
39787 (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
39788 (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
39789 (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
39790 (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
39791 (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
39792 (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
39793 Move these macros to ...
39794 * lib/stat_.h: here. Don't include stat-macros.h.
39795 * lib/canonicalize.c: Don't include stat-macros.h.
39796 * lib/chown.c: Likewise.
39797 * lib/euidaccess.c: Likewise.
39798 * lib/file-type.c: Likewise.
39799 * lib/filemode.c: Likewise.
39800 * lib/glob.c: Likewise.
39801 * lib/isapipe.c: Likewise.
39802 * lib/lchown.c: Likewise.
39803 * lib/lstat.c: Likewise.
39804 * lib/mkdir-p.c: Likewise.
39805 * lib/rmdir.c: Likewise.
39806 * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
39807 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
39808 unless mkdir isn't declared, to speed up 'configure'.
39809 Always create sys/stat.h, since it's unlikely any real sys/stat.h
39810 would define all the S_* symbols.
39811 * modules/canonicalize (Depends-on):
39812 Depend on sys_stat, not stat-macros.
39813 * modules/chown: Likewise.
39814 * modules/euidaccess: Likewise.
39815 * modules/filemode: Likewise.
39816 * modules/file-type: Likewise.
39817 * modules/glob: Likewise.
39818 * modules/isapipe: Likewise.
39819 * modules/lchown: Likewise.
39820 * modules/lstat: Likewise.
39821 * modules/mkancesdirs: Likewise.
39822 * modules/rmdir: Likewise.
39823 * modules/mkdir-p (Depends-on): Also depend on sys_stat.
39824 * modules/modechange: Likewise.
39825 * modules/stat-macros (Files): Remove m4/stat-macros.m4.
39826 (configure.ac): Remove gl_STAT_MACROS.
39827 * modules/sys_stat (Depends-on): Remove stat-macros.
39829 2006-10-27 Bruno Haible <bruno@clisp.org>
39831 * m4/signed.m4: Remove file.
39832 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
39834 * modules/vasnprintf (Files): Remove m4/signed.m4.
39836 2006-10-27 Bruno Haible <bruno@clisp.org>
39838 Update to GNU gettext 0.16.
39839 * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
39840 m4/inttypes-h.m4, m4/signed.m4.
39841 * m4/gettext.m4: Update to GNU gettext 0.16.
39842 * m4/intl.m4: New file, from GNU gettext.
39843 * m4/intldir.m4: New file, from GNU gettext.
39844 * config/srclist.txt: Update
39846 2006-10-27 Eric Blake <ebb9@byu.net>
39848 * MODULES.html.sh: Document tempname.
39849 * modules/mkstemp (Depends-on): Add tempname, and drop transitive
39851 (Files): Move lib/tempname.c...
39852 * modules/tempname: ...to this new module.
39853 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
39854 (gl_PREREQ_TEMPNAME): Move...
39855 * m4/tempname.m4: ...to this new file.
39856 * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
39857 * modules/sys_stat (Depends-on): Add stat-macros.
39858 * lib/stat_.h (includes): Pick up stat macros.
39859 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
39860 if stat macros are broken.
39861 * lib/tempname.c (includes): No need to include "stat-macros.h".
39862 (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
39863 (direxists, __path_search) [!_LIBC]: Don't compile these in
39864 gnulib; the tmpdir module covers that.
39865 * lib/tempname.h: New file.
39867 2006-10-26 Paul Eggert <eggert@cs.ucla.edu>
39869 * COPYING: Explain how gnulib-tool converts licence headers.
39870 Almost all wording by Eric Blake.
39872 2006-10-25 Paul Eggert <eggert@cs.ucla.edu>
39874 * lib/mbchar.h (is_basic_table): Make read-only.
39875 * lib/mbchar.c (is_basic_table): Likewise.
39876 Reported by John Darrington.
39878 2006-10-25 Bruno Haible <bruno@clisp.org>
39880 * lib/progname.h (set_program_name): Undefine before defining.
39882 2006-10-25 Bruno Haible <bruno@clisp.org>
39884 * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
39885 false for non-gcc C++ compilers.
39886 Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
39888 2006-10-24 Bruno Haible <bruno@clisp.org>
39890 * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
39891 iconv implementations like Irix iconv.
39893 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
39895 * modules/vararrays: New file.
39896 * m4/vararrays.m4: New file, taken from diffutils.
39897 * MODULES.html.sh: New module vararrays.
39899 2006-10-24 Karl Berry <karl@gnu.org>
39901 * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
39902 Don't call GNU Unix.
39904 2006-10-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
39906 * users.txt: Add Libtool.
39910 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
39912 * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
39913 to gnulib's policy of including config.h unconditionally.
39915 2006-10-24 Bruno Haible <bruno@clisp.org>
39917 * modules/wcwidth (Files): Add m4/wint_t.m4.
39918 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
39919 * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
39921 2006-10-24 Paul Eggert <eggert@cs.ucla.edu>
39923 * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
39924 to pacify GCC with some -W flags enabled. Problem reported by
39927 2006-10-24 Jim Meyering <jim@meyering.net>
39929 * MODULES.html.sh: Remove uinttostr. It's not a module.
39930 Reported by Karl Berry.
39932 2006-10-23 Bruno Haible <bruno@clisp.org>
39934 * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
39936 2006-10-24 Bruno Haible <bruno@clisp.org>
39938 * lib/gl_list.h: Use C comment style, not C++ comment style.
39940 2006-10-23 Eric Blake <ebb9@byu.net>
39942 * lib/getaddrinfo.c (includes): Add missing include.
39944 2006-10-23 Bruno Haible <bruno@clisp.org>
39945 Paul Eggert <eggert@cs.ucla.edu>
39947 Ability to rename obstack_free.
39948 * lib/obstack.h (__obstack_free): New macro. Declare instead of
39950 (obstack_free): Invoke the __obstack_free macro.
39951 * lib/obstack.c (obstack_free): Use __obstack_free macro.
39953 2006-10-23 Bruno Haible <bruno@clisp.org>
39954 Paul Eggert <eggert@cs.ucla.edu>
39956 * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
39957 __argc, __argv from the declaration. (They are defined as macros on
39960 2006-10-22 Bruno Haible <bruno@clisp.org>
39962 * doc/gnulib-intro.texi: New file.
39963 * doc/gnulib.texi: Include it.
39965 2006-10-21 Bruno Haible <bruno@clisp.org>
39967 * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
39968 "Introduction", "Miscellanous Notes", "Particular Modules".
39970 2006-10-21 Bruno Haible <bruno@clisp.org>
39972 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39973 Change mostlyclean-local rule to avoid sh syntax error from bash
39974 versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
39976 2006-10-23 Jim Meyering <jim@meyering.net>
39978 * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
39979 in place of snprintf.
39981 * modules/inttostr (Files): Add lib/uinttostr.c.
39982 * lib/uinttostr.c (inttostr): New file/function.
39983 * lib/inttostr.h (uinttostr): Declare.
39984 * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
39985 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
39987 * modules/getaddrinfo (Depends-on): Remove snprintf. Add inttostr.
39989 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
39991 * lib/canonicalize.c (ELOOP): Define if not already defined.
39992 Problem reported by Bruno Haible in
39993 <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
39995 2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
39997 * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
39998 Problem reported by Perry Smith and Ville Laurikari.
40000 * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
40003 2006-10-19 Bruno Haible <bruno@clisp.org>
40005 * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
40008 2006-10-19 Bruno Haible <bruno@clisp.org>
40010 * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
40013 2006-10-19 Bruno Haible <bruno@clisp.org>
40015 * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
40017 2006-10-19 Bruno Haible <bruno@clisp.org>
40019 * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
40022 2006-10-19 Bruno Haible <bruno@clisp.org>
40024 * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
40027 2006-10-19 Bruno Haible <bruno@clisp.org>
40029 * gnulib-tool (func_create_testdir): Don't include ftruncate and
40030 mountlist by default.
40032 2006-10-16 Bruno Haible <bruno@clisp.org>
40034 * lib/c-strstr.c: Include c-strstr.h.
40036 2006-10-18 Charles Wilson <cygwin@cwilson.fastmail.fm>
40038 * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
40041 2006-10-18 Bruno Haible <bruno@clisp.org>
40043 * lib/lock.h [C++]: Wrap definitions in extern "C".
40045 2006-10-18 Bruno Haible <bruno@clisp.org>
40047 * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
40050 2006-10-18 Bruno Haible <bruno@clisp.org>
40052 * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
40054 2006-10-19 Paul Eggert <eggert@cs.ucla.edu>
40056 * lib/xstrtol.h: Include gettext.h.
40057 (_STRTOL_ERROR): Wrap English-language formats inside gettext.
40058 Problem reported by Eric Blake.
40059 * modules/xstrtol (Depends-on): Add gettext-h.
40061 2006-10-19 Paul Eggert <eggert@cs.ucla.edu> (tiny change)
40063 * lib/strftime.c (advance): New macro.
40064 (add): Use it to avoid adding 0 to a FILE *. FILE can be an
40065 incomplete type, so you can't add 0 to it. Problem and patch
40066 reported by Eelco Dolstra for dietlibc.
40068 2006-10-18 Jim Meyering <jim@meyering.net>
40070 * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
40071 type for a local, and rename it: s/up/user_proc/.
40073 2006-10-18 Sergey Poznyakoff <gray@gnu.org.ua>
40075 * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
40076 READ_UTMP_USER_PROCESS.
40077 * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
40079 2006-10-17 Paul Eggert <eggert@cs.ucla.edu>
40081 * lib/localcharset.c: Do not check HAVE_SETLOCALE.
40082 * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
40084 2006-10-17 Eric Blake <ebb9@byu.net>
40086 * lib/sigprocmask.c (sigprocmask): Fix typo.
40088 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
40090 * modules/clean-temp (Makefile.am): Don't add to make output...
40091 (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
40094 2006-10-17 Bruno Haible <bruno@clisp.org>
40096 * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
40097 differently if DEFAULT_TEXT_DOMAIN is set.
40099 2006-10-16 Bruno Haible <bruno@clisp.org>
40101 * lib/clean-temp.c: Include fwriteerror.h.
40103 2006-10-16 Bruno Haible <bruno@clisp.org>
40105 * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
40107 2006-10-16 Bruno Haible <bruno@clisp.org>
40109 * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
40110 * lib/sigprocmask.h: Include <sys/types.h>.
40111 (sigset_t): Use the system's definition if present.
40113 2006-10-17 Eric Blake <ebb9@byu.net>
40115 * lib/xvasprintf.c (includes): Assume config.h.
40116 * lib/xasprintf.c (includes): Likewise.
40118 2006-10-16 Paul Eggert <eggert@cs.ucla.edu>
40120 * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
40121 at least as wide as intmax_t.
40123 2006-10-16 Alexandre Duret-Lutz <adl@gnu.org>
40125 (Imported from Automake.)
40126 * build-aux/gnupload: Update to version 1.1 of directive file.
40128 2006-10-16 Eric Blake <ebb9@byu.net>
40130 * modules/configmake (Makefile.am): Add pkglibexecdir support, to
40131 match Automake 1.10a.
40133 2006-10-14 Bruno Haible <bruno@clisp.org>
40135 * modules/sigprocmask: New file.
40136 * lib/sigprocmask.h: New file.
40137 * lib/sigprocmask.c: New file.
40138 * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
40139 gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
40140 request sigprocmask.o.
40141 (gl_PREREQ_SIGPROCMASK): New macro.
40142 * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
40143 (Depends-on): Add sigprocmask.
40144 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
40145 gt_SIGNALBLOCKING. Test for 'raise' only once.
40146 * lib/fatal-signal.c: Include sigprocmask.h.
40147 (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
40148 unblock_fatal_signals): Define always.
40149 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40152 2006-10-14 Paul Eggert <eggert@cs.ucla.edu>
40154 Sync from Automake.
40155 * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
40156 which incorrectly sets the mode of an existing destination
40157 directory. In some cases the unpatched install-sh could do the
40158 equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
40159 system. We hope this is rare in practice, but it's clearly worth
40160 fixing. Problem reported by Alex Unleashed in
40161 <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
40162 Also, don't bother to check for -m bugs unless we're using -m;
40163 suggested by Stepan Kasal.
40165 2006-10-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
40167 Sync from Automake.
40168 * build-aux/depcomp (gcc3): Put dependency extraction flags before the
40169 `-c' flag, so they appear at the same position as in %FASTDEP%
40170 mode in depend2.am. Fixes build failure for FreeBSD's c89,
40171 which ignores unknown options only after the first non-option.
40172 Bug report against M4 by Nelson H. F. Beebe.
40174 2006-10-13 Jim Meyering <jim@meyering.net>
40176 Fix a bug in yesterday's change.
40177 * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
40178 p->fts_statp->st_dev would be used uninitialized.
40179 Ensures that we always call fts_stat on the very first entry.
40180 Miklos Szeredi reported that find -xdev stopped working.
40182 2006-10-12 Bruno Haible <bruno@clisp.org>
40184 * gnulib-tool (func_get_automake_snippet): Append an automatically
40185 computed EXTRA_DIST augmentation.
40186 * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
40187 * modules/alloca-opt (Makefile.am): Likewise.
40188 * modules/allocsa (Makefile.am): Likewise.
40189 * modules/arcfour (Makefile.am): Likewise.
40190 * modules/arctwo (Makefile.am): Likewise.
40191 * modules/argmatch (Makefile.am): Likewise.
40192 * modules/argz (Makefile.am): Likewise.
40193 * modules/atexit (Makefile.am): Likewise.
40194 * modules/backupfile (Makefile.am): Likewise.
40195 * modules/byteswap (Makefile.am): Likewise.
40196 * modules/c-strtod (Makefile.am): Likewise.
40197 * modules/c-strtold (Makefile.am): Likewise.
40198 * modules/calloc (Makefile.am): Likewise.
40199 * modules/canon-host (Makefile.am): Likewise.
40200 * modules/canonicalize (Makefile.am): Likewise.
40201 * modules/chdir-long (Makefile.am): Likewise.
40202 * modules/chdir-safer (Makefile.am): Likewise.
40203 * modules/check-version (Makefile.am): Likewise.
40204 * modules/chown (Makefile.am): Likewise.
40205 * modules/cloexec (Makefile.am): Likewise.
40206 * modules/close-stream (Makefile.am): Likewise.
40207 * modules/closeout (Makefile.am): Likewise.
40208 * modules/crc (Makefile.am): Likewise.
40209 * modules/csharpexec (Makefile.am): Likewise.
40210 * modules/cycle-check (Makefile.am): Likewise.
40211 * modules/des (Makefile.am): Likewise.
40212 * modules/dev-ino (Makefile.am): Likewise.
40213 * modules/dirfd (Makefile.am): Likewise.
40214 * modules/dirname (Makefile.am): Likewise.
40215 * modules/dup2 (Makefile.am): Likewise.
40216 * modules/eealloc (Makefile.am): Likewise.
40217 * modules/error (Makefile.am): Likewise.
40218 * modules/euidaccess (Makefile.am): Likewise.
40219 * modules/exclude (Makefile.am): Likewise.
40220 * modules/exitfail (Makefile.am): Likewise.
40221 * modules/fcntl-safer (Makefile.am): Likewise.
40222 * modules/fcntl (Makefile.am): Likewise.
40223 * modules/file-type (Makefile.am): Likewise.
40224 * modules/fileblocks (Makefile.am): Likewise.
40225 * modules/filemode (Makefile.am): Likewise.
40226 * modules/filenamecat (Makefile.am): Likewise.
40227 * modules/fnmatch (Makefile.am): Likewise.
40228 * modules/fopen-safer (Makefile.am): Likewise.
40229 * modules/fpending (Makefile.am): Likewise.
40230 * modules/fprintftime (Makefile.am): Likewise.
40231 * modules/free (Makefile.am): Likewise.
40232 * modules/fsusage (Makefile.am): Likewise.
40233 * modules/ftruncate (Makefile.am): Likewise.
40234 * modules/fts (Makefile.am): Likewise.
40235 * modules/gc-arcfour (Makefile.am): Likewise.
40236 * modules/gc-des (Makefile.am): Likewise.
40237 * modules/gc-hmac-md5 (Makefile.am): Likewise.
40238 * modules/gc-hmac-sha1 (Makefile.am): Likewise.
40239 * modules/gc-md4 (Makefile.am): Likewise.
40240 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40241 * modules/gc-sha1 (Makefile.am): Likewise.
40242 * modules/gc (Makefile.am): Likewise.
40243 * modules/getaddrinfo (Makefile.am): Likewise.
40244 * modules/getcwd (Makefile.am): Likewise.
40245 * modules/getdelim (Makefile.am): Likewise.
40246 * modules/getdomainname (Makefile.am): Likewise.
40247 * modules/getgroups (Makefile.am): Likewise.
40248 * modules/gethostname (Makefile.am): Likewise.
40249 * modules/gethrxtime (Makefile.am): Likewise.
40250 * modules/getline (Makefile.am): Likewise.
40251 * modules/getloadavg (Makefile.am): Likewise.
40252 * modules/getlogin_r (Makefile.am): Likewise.
40253 * modules/getndelim2 (Makefile.am): Likewise.
40254 * modules/getopt (Makefile.am): Likewise.
40255 * modules/getpagesize (Makefile.am): Likewise.
40256 * modules/getpass-gnu (Makefile.am): Likewise.
40257 * modules/getpass (Makefile.am): Likewise.
40258 * modules/getsubopt (Makefile.am): Likewise.
40259 * modules/gettime (Makefile.am): Likewise.
40260 * modules/gettimeofday (Makefile.am): Likewise.
40261 * modules/getugroups (Makefile.am): Likewise.
40262 * modules/getusershell (Makefile.am): Likewise.
40263 * modules/glob (Makefile.am): Likewise.
40264 * modules/group-member (Makefile.am): Likewise.
40265 * modules/hard-locale (Makefile.am): Likewise.
40266 * modules/hash (Makefile.am): Likewise.
40267 * modules/hmac-md5 (Makefile.am): Likewise.
40268 * modules/hmac-sha1 (Makefile.am): Likewise.
40269 * modules/human (Makefile.am): Likewise.
40270 * modules/idcache (Makefile.am): Likewise.
40271 * modules/imaxabs (Makefile.am): Likewise.
40272 * modules/imaxdiv (Makefile.am): Likewise.
40273 * modules/inet_ntop (Makefile.am): Likewise.
40274 * modules/inet_pton (Makefile.am): Likewise.
40275 * modules/intprops (Makefile.am): Likewise.
40276 * modules/inttostr (Makefile.am): Likewise.
40277 * modules/inttypes (Makefile.am): Likewise.
40278 * modules/isapipe (Makefile.am): Likewise.
40279 * modules/javaversion (Makefile.am): Likewise.
40280 * modules/lchmod (Makefile.am): Likewise.
40281 * modules/lchown (Makefile.am): Likewise.
40282 * modules/localcharset (Makefile.am): Likewise.
40283 * modules/long-options (Makefile.am): Likewise.
40284 * modules/lstat (Makefile.am): Likewise.
40285 * modules/malloc (Makefile.am): Likewise.
40286 * modules/mathl (Makefile.am): Likewise.
40287 * modules/mbchar (Makefile.am): Likewise.
40288 * modules/md2 (Makefile.am): Likewise.
40289 * modules/md4 (Makefile.am): Likewise.
40290 * modules/md5 (Makefile.am): Likewise.
40291 * modules/memcasecmp (Makefile.am): Likewise.
40292 * modules/memchr (Makefile.am): Likewise.
40293 * modules/memcmp (Makefile.am): Likewise.
40294 * modules/memcoll (Makefile.am): Likewise.
40295 * modules/memcpy (Makefile.am): Likewise.
40296 * modules/memmem (Makefile.am): Likewise.
40297 * modules/memmove (Makefile.am): Likewise.
40298 * modules/mempcpy (Makefile.am): Likewise.
40299 * modules/memrchr (Makefile.am): Likewise.
40300 * modules/memset (Makefile.am): Likewise.
40301 * modules/memxor (Makefile.am): Likewise.
40302 * modules/mkancesdirs (Makefile.am): Likewise.
40303 * modules/mkdir-p (Makefile.am): Likewise.
40304 * modules/mkdir (Makefile.am): Likewise.
40305 * modules/mkdtemp (Makefile.am): Likewise.
40306 * modules/mkstemp (Makefile.am): Likewise.
40307 * modules/mktime (Makefile.am): Likewise.
40308 * modules/modechange (Makefile.am): Likewise.
40309 * modules/mountlist (Makefile.am): Likewise.
40310 * modules/nanosleep (Makefile.am): Likewise.
40311 * modules/obstack (Makefile.am): Likewise.
40312 * modules/openat (Makefile.am): Likewise.
40313 * modules/pagealign_alloc (Makefile.am): Likewise.
40314 * modules/pathmax (Makefile.am): Likewise.
40315 * modules/physmem (Makefile.am): Likewise.
40316 * modules/poll (Makefile.am): Likewise.
40317 * modules/posixtm (Makefile.am): Likewise.
40318 * modules/posixver (Makefile.am): Likewise.
40319 * modules/putenv (Makefile.am): Likewise.
40320 * modules/quote (Makefile.am): Likewise.
40321 * modules/quotearg (Makefile.am): Likewise.
40322 * modules/raise (Makefile.am): Likewise.
40323 * modules/read-file (Makefile.am): Likewise.
40324 * modules/readline (Makefile.am): Likewise.
40325 * modules/readlink (Makefile.am): Likewise.
40326 * modules/readtokens (Makefile.am): Likewise.
40327 * modules/readutmp (Makefile.am): Likewise.
40328 * modules/realloc (Makefile.am): Likewise.
40329 * modules/regex (Makefile.am): Likewise.
40330 * modules/rename-dest-slash (Makefile.am): Likewise.
40331 * modules/rename (Makefile.am): Likewise.
40332 * modules/rijndael (Makefile.am): Likewise.
40333 * modules/rmdir (Makefile.am): Likewise.
40334 * modules/rpmatch (Makefile.am): Likewise.
40335 * modules/safe-read (Makefile.am): Likewise.
40336 * modules/safe-write (Makefile.am): Likewise.
40337 * modules/same-inode (Makefile.am): Likewise.
40338 * modules/same (Makefile.am): Likewise.
40339 * modules/save-cwd (Makefile.am): Likewise.
40340 * modules/savedir (Makefile.am): Likewise.
40341 * modules/setenv (Makefile.am): Likewise.
40342 * modules/settime (Makefile.am): Likewise.
40343 * modules/sha1 (Makefile.am): Likewise.
40344 * modules/sig2str (Makefile.am): Likewise.
40345 * modules/snprintf (Makefile.am): Likewise.
40346 * modules/stat-macros (Makefile.am): Likewise.
40347 * modules/stat-time (Makefile.am): Likewise.
40348 * modules/stdbool (Makefile.am): Likewise.
40349 * modules/stdint (Makefile.am): Likewise.
40350 * modules/stdlib-safer (Makefile.am): Likewise.
40351 * modules/stpcpy (Makefile.am): Likewise.
40352 * modules/stpncpy (Makefile.am): Likewise.
40353 * modules/strcase (Makefile.am): Likewise.
40354 * modules/strcasestr (Makefile.am): Likewise.
40355 * modules/strchrnul (Makefile.am): Likewise.
40356 * modules/strcspn (Makefile.am): Likewise.
40357 * modules/strdup (Makefile.am): Likewise.
40358 * modules/strerror (Makefile.am): Likewise.
40359 * modules/strftime (Makefile.am): Likewise.
40360 * modules/strndup (Makefile.am): Likewise.
40361 * modules/strnlen (Makefile.am): Likewise.
40362 * modules/strpbrk (Makefile.am): Likewise.
40363 * modules/strsep (Makefile.am): Likewise.
40364 * modules/strstr (Makefile.am): Likewise.
40365 * modules/strtod (Makefile.am): Likewise.
40366 * modules/strtoimax (Makefile.am): Likewise.
40367 * modules/strtok_r (Makefile.am): Likewise.
40368 * modules/strtol (Makefile.am): Likewise.
40369 * modules/strtoll (Makefile.am): Likewise.
40370 * modules/strtoul (Makefile.am): Likewise.
40371 * modules/strtoull (Makefile.am): Likewise.
40372 * modules/strtoumax (Makefile.am): Likewise.
40373 * modules/strverscmp (Makefile.am): Likewise.
40374 * modules/sys_socket (Makefile.am): Likewise.
40375 * modules/sys_stat (Makefile.am): Likewise.
40376 * modules/sysexits (Makefile.am): Likewise.
40377 * modules/time_r (Makefile.am): Likewise.
40378 * modules/timegm (Makefile.am): Likewise.
40379 * modules/timespec (Makefile.am): Likewise.
40380 * modules/tmpfile-safer (Makefile.am): Likewise.
40381 * modules/trim (Makefile.am): Likewise.
40382 * modules/unistd-safer (Makefile.am): Likewise.
40383 * modules/unlinkdir (Makefile.am): Likewise.
40384 * modules/unlocked-io (Makefile.am): Likewise.
40385 * modules/userspec (Makefile.am): Likewise.
40386 * modules/utime (Makefile.am): Likewise.
40387 * modules/utimecmp (Makefile.am): Likewise.
40388 * modules/utimens (Makefile.am): Likewise.
40389 * modules/vasnprintf (Makefile.am): Likewise.
40390 * modules/vasprintf (Makefile.am): Likewise.
40391 * modules/vsnprintf (Makefile.am): Likewise.
40392 * modules/xalloc (Makefile.am): Likewise.
40393 * modules/xgetcwd (Makefile.am): Likewise.
40394 * modules/xnanosleep (Makefile.am): Likewise.
40395 * modules/xreadlink (Makefile.am): Likewise.
40396 * modules/xstrtod (Makefile.am): Likewise.
40397 * modules/xstrtol (Makefile.am): Likewise.
40398 * modules/xstrtold (Makefile.am): Likewise.
40399 * modules/yesno (Makefile.am): Likewise.
40400 * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
40402 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
40404 * modules/error (Makefile.am): Distribute files through
40405 EXTRA_DIST, not lib_SOURCES.
40407 2006-10-12 Eric Blake <ebb9@byu.net>
40409 * modules/error (Makefile.am): Distribute files in /lib.
40410 * modules/obstack (Makefile.am): Likewise.
40412 2006-10-12 Bruno Haible <bruno@clisp.org>
40414 * modules/acl (Makefile.am): Distribute all files in lib/ through
40416 * modules/arcfour (Makefile.am): Likewise.
40417 * modules/arctwo (Makefile.am): Likewise.
40418 * modules/argmatch (Makefile.am): Likewise.
40419 * modules/argz (Makefile.am): Likewise.
40420 * modules/atexit (Makefile.am): Likewise.
40421 * modules/backupfile (Makefile.am): Likewise.
40422 * modules/c-strtod (Makefile.am): Likewise.
40423 * modules/c-strtold (Makefile.am): Likewise.
40424 * modules/calloc (Makefile.am): Likewise.
40425 * modules/canon-host (Makefile.am): Likewise.
40426 * modules/canonicalize (Makefile.am): Likewise.
40427 * modules/chdir-long (Makefile.am): Likewise.
40428 * modules/chdir-safer (Makefile.am): Likewise.
40429 * modules/check-version (Makefile.am): Likewise.
40430 * modules/chown (Makefile.am): Likewise.
40431 * modules/cloexec (Makefile.am): Likewise.
40432 * modules/close-stream (Makefile.am): Likewise.
40433 * modules/closeout (Makefile.am): Likewise.
40434 * modules/crc (Makefile.am): Likewise.
40435 * modules/cycle-check (Makefile.am): Likewise.
40436 * modules/des (Makefile.am): Likewise.
40437 * modules/dirfd (Makefile.am): Likewise.
40438 * modules/dirname (Makefile.am): Likewise.
40439 * modules/dup2 (Makefile.am): Likewise.
40440 * modules/euidaccess (Makefile.am): Likewise.
40441 * modules/exclude (Makefile.am): Likewise.
40442 * modules/exitfail (Makefile.am): Likewise.
40443 * modules/fcntl-safer (Makefile.am): Likewise.
40444 * modules/file-type (Makefile.am): Likewise.
40445 * modules/fileblocks (Makefile.am): Likewise.
40446 * modules/filemode (Makefile.am): Likewise.
40447 * modules/filenamecat (Makefile.am): Likewise.
40448 * modules/fnmatch (Makefile.am): Likewise.
40449 * modules/fopen-safer (Makefile.am): Likewise.
40450 * modules/fpending (Makefile.am): Likewise.
40451 * modules/fprintftime (Makefile.am): Likewise.
40452 * modules/free (Makefile.am): Likewise.
40453 * modules/fsusage (Makefile.am): Likewise.
40454 * modules/ftruncate (Makefile.am): Likewise.
40455 * modules/fts (Makefile.am): Likewise.
40456 * modules/gc (Makefile.am): Likewise.
40457 * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
40458 * modules/getaddrinfo (Makefile.am): Likewise.
40459 * modules/getcwd (Makefile.am): Likewise.
40460 * modules/getdelim (Makefile.am): Likewise.
40461 * modules/getdomainname (Makefile.am): Likewise.
40462 * modules/getgroups (Makefile.am): Likewise.
40463 * modules/gethostname (Makefile.am): Likewise.
40464 * modules/gethrxtime (Makefile.am): Likewise.
40465 * modules/getline (Makefile.am): Likewise.
40466 * modules/getloadavg (Makefile.am): Likewise.
40467 * modules/getlogin_r (Makefile.am): Likewise.
40468 * modules/getopt (Makefile.am): Likewise.
40469 * modules/getpass (Makefile.am): Likewise.
40470 * modules/getpass-gnu (Makefile.am): Likewise.
40471 * modules/getsubopt (Makefile.am): Likewise.
40472 * modules/gettime (Makefile.am): Likewise.
40473 * modules/gettimeofday (Makefile.am): Likewise.
40474 * modules/getugroups (Makefile.am): Likewise.
40475 * modules/getusershell (Makefile.am): Likewise.
40476 * modules/glob (Makefile.am): Likewise.
40477 * modules/group-member (Makefile.am): Likewise.
40478 * modules/hard-locale (Makefile.am): Likewise.
40479 * modules/hash (Makefile.am): Likewise.
40480 * modules/hmac-md5 (Makefile.am): Likewise.
40481 * modules/hmac-sha1 (Makefile.am): Likewise.
40482 * modules/human (Makefile.am): Likewise.
40483 * modules/idcache (Makefile.am): Likewise.
40484 * modules/imaxabs (Makefile.am): Likewise.
40485 * modules/imaxdiv (Makefile.am): Likewise.
40486 * modules/inet_ntop (Makefile.am): Likewise.
40487 * modules/inet_pton (Makefile.am): Likewise.
40488 * modules/inttostr (Makefile.am): Likewise.
40489 * modules/isapipe (Makefile.am): Likewise.
40490 * modules/lchown (Makefile.am): Likewise.
40491 * modules/long-options (Makefile.am): Likewise.
40492 * modules/lstat (Makefile.am): Likewise.
40493 * modules/malloc (Makefile.am): Likewise.
40494 * modules/mathl (Makefile.am): Likewise.
40495 * modules/mbchar (Makefile.am): Likewise.
40496 * modules/md2 (Makefile.am): Likewise.
40497 * modules/md4 (Makefile.am): Likewise.
40498 * modules/md5 (Makefile.am): Likewise.
40499 * modules/memcasecmp (Makefile.am): Likewise.
40500 * modules/memchr (Makefile.am): Likewise.
40501 * modules/memcmp (Makefile.am): Likewise.
40502 * modules/memcoll (Makefile.am): Likewise.
40503 * modules/memcpy (Makefile.am): Likewise.
40504 * modules/memmem (Makefile.am): Likewise.
40505 * modules/memmove (Makefile.am): Likewise.
40506 * modules/mempcpy (Makefile.am): Likewise.
40507 * modules/memrchr (Makefile.am): Likewise.
40508 * modules/memset (Makefile.am): Likewise.
40509 * modules/memxor (Makefile.am): Likewise.
40510 * modules/mkancesdirs (Makefile.am): Likewise.
40511 * modules/mkdir (Makefile.am): Likewise.
40512 * modules/mkdir-p (Makefile.am): Likewise.
40513 * modules/mkdtemp (Makefile.am): Likewise.
40514 * modules/mkstemp (Makefile.am): Likewise.
40515 * modules/mktime (Makefile.am): Likewise.
40516 * modules/modechange (Makefile.am): Likewise.
40517 * modules/mountlist (Makefile.am): Likewise.
40518 * modules/nanosleep (Makefile.am): Likewise.
40519 * modules/openat (Makefile.am): Likewise.
40520 * modules/pagealign_alloc (Makefile.am): Likewise.
40521 * modules/physmem (Makefile.am): Likewise.
40522 * modules/poll (Makefile.am): Likewise.
40523 * modules/posixtm (Makefile.am): Likewise.
40524 * modules/posixver (Makefile.am): Likewise.
40525 * modules/putenv (Makefile.am): Likewise.
40526 * modules/quote (Makefile.am): Likewise.
40527 * modules/quotearg (Makefile.am): Likewise.
40528 * modules/raise (Makefile.am): Likewise.
40529 * modules/read-file (Makefile.am): Likewise.
40530 * modules/readline (Makefile.am): Likewise.
40531 * modules/readlink (Makefile.am): Likewise.
40532 * modules/readtokens (Makefile.am): Likewise.
40533 * modules/readutmp (Makefile.am): Likewise.
40534 * modules/realloc (Makefile.am): Likewise.
40535 * modules/regex (Makefile.am): Likewise.
40536 * modules/rename (Makefile.am): Likewise.
40537 * modules/rename-dest-slash (Makefile.am): Likewise.
40538 * modules/rijndael (Makefile.am): Likewise.
40539 * modules/rmdir (Makefile.am): Likewise.
40540 * modules/rpmatch (Makefile.am): Likewise.
40541 * modules/safe-read (Makefile.am): Likewise.
40542 * modules/safe-write (Makefile.am): Likewise.
40543 * modules/same (Makefile.am): Likewise.
40544 * modules/save-cwd (Makefile.am): Likewise.
40545 * modules/savedir (Makefile.am): Likewise.
40546 * modules/setenv (Makefile.am): Likewise.
40547 * modules/settime (Makefile.am): Likewise.
40548 * modules/sha1 (Makefile.am): Likewise.
40549 * modules/sig2str (Makefile.am): Likewise.
40550 * modules/snprintf (Makefile.am): Likewise.
40551 * modules/stdlib-safer (Makefile.am): Likewise.
40552 * modules/stpcpy (Makefile.am): Likewise.
40553 * modules/stpncpy (Makefile.am): Likewise.
40554 * modules/strcase (Makefile.am): Likewise.
40555 * modules/strcasestr (Makefile.am): Likewise.
40556 * modules/strchrnul (Makefile.am): Likewise.
40557 * modules/strcspn (Makefile.am): Likewise.
40558 * modules/strdup (Makefile.am): Likewise.
40559 * modules/strerror (Makefile.am): Likewise.
40560 * modules/strftime (Makefile.am): Likewise.
40561 * modules/strndup (Makefile.am): Likewise.
40562 * modules/strnlen (Makefile.am): Likewise.
40563 * modules/strpbrk (Makefile.am): Likewise.
40564 * modules/strsep (Makefile.am): Likewise.
40565 * modules/strstr (Makefile.am): Likewise.
40566 * modules/strtod (Makefile.am): Likewise.
40567 * modules/strtoimax (Makefile.am): Likewise.
40568 * modules/strtok_r (Makefile.am): Likewise.
40569 * modules/strtol (Makefile.am): Likewise.
40570 * modules/strtoll (Makefile.am): Likewise.
40571 * modules/strtoul (Makefile.am): Likewise.
40572 * modules/strtoull (Makefile.am): Likewise.
40573 * modules/strtoumax (Makefile.am): Likewise.
40574 * modules/strverscmp (Makefile.am): Likewise.
40575 * modules/time_r (Makefile.am): Likewise.
40576 * modules/timegm (Makefile.am): Likewise.
40577 * modules/tmpfile-safer (Makefile.am): Likewise.
40578 * modules/unistd-safer (Makefile.am): Likewise.
40579 * modules/unlinkdir (Makefile.am): Likewise.
40580 * modules/userspec (Makefile.am): Likewise.
40581 * modules/utime (Makefile.am): Likewise.
40582 * modules/utimecmp (Makefile.am): Likewise.
40583 * modules/utimens (Makefile.am): Likewise.
40584 * modules/vasnprintf (Makefile.am): Likewise.
40585 * modules/vasprintf (Makefile.am): Likewise.
40586 * modules/vsnprintf (Makefile.am): Likewise.
40587 * modules/xalloc (Makefile.am): Likewise.
40588 * modules/xgetcwd (Makefile.am): Likewise.
40589 * modules/xnanosleep (Makefile.am): Likewise.
40590 * modules/xreadlink (Makefile.am): Likewise.
40591 * modules/xstrtod (Makefile.am): Likewise.
40592 * modules/xstrtol (Makefile.am): Likewise.
40593 * modules/xstrtold (Makefile.am): Likewise.
40594 * modules/yesno (Makefile.am): Likewise.
40596 2006-10-12 Jim Meyering <jim@meyering.net>
40598 * m4/getloadavg.m4: Revert the change below.
40600 * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
40601 lib/getloadavg.c using "ls -L", not "test -f". The latter would
40602 fail with a symlink, which is what coreutils' ./bootstrap now
40603 creates by default.
40605 2006-10-12 Bruno Haible <bruno@clisp.org>
40607 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
40609 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
40610 MSVC and mingw explicitly.
40612 2006-10-11 Simon Josefsson <jas@extundo.com>
40613 Bruno Haible <bruno@clisp.org>
40615 Add support for multiple gnulib-tool invocations in the scope of a
40616 single configure.ac file.
40617 * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
40618 use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
40619 with the same contents as the _LIBADD variable.
40620 (func_emit_initmacro_start, func_emit_initmacro_end,
40621 func_emit_initmacro_done): New functions.
40622 (func_import, func_create_testdir): Invoke them. Allow the identifiers
40623 gl_LIBOBJS and gl_LTLIBOBJS.
40625 2006-10-11 Bruno Haible <bruno@clisp.org>
40627 * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
40628 (func_create_testdir): Don't create po/Makefile.am, don't invoke
40629 autoreconf. Instead, invoke autopoint explicitly but move back the
40630 *.m4 files from gnulib.
40632 2006-10-11 Bruno Haible <bruno@clisp.org>
40634 * gnulib-tool (func_usage): Make module names after --create-testdir
40636 (func_create_testdir): If no module was specified, use nearly all
40639 2006-10-12 Jim Meyering <jim@meyering.net>
40641 Big performance improvement for fts-based tools that use FTS_NOSTAT.
40642 Avoid spurious inode-mismatch problems on non-POSIX file systems.
40643 Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
40644 * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
40645 (FTS_OPTIONMASK): Extend the mask to reflect this addition.
40646 * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
40647 (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
40648 (fts_set_stat_required): New function.
40649 (fts_open): Defer the calls to fts_stat, if possible or requested.
40650 Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
40651 into fts_stat itself.
40652 (fts_read): Perform any required (deferred) fts_stat call.
40653 (fts_build): Likewise, for the directory we're about to open and read.
40654 In the readdir loop, carefully decide whether each entry will require
40655 an eventual call to fts_stat, using dirent.d_type info if available.
40656 (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
40657 a command line argument into this function. Update all callers.
40658 Map a return value of FTS_DOT to FTS_D for a command line argument.
40659 * modules/fts (Depends-on): Add d-type. Alphabetize.
40660 Thanks to Miklos Szeredi for his tenacity and for the initial
40661 bug report about "find" failing on a FUSE-based file system.
40663 * lib/fts.c (fts_open): Use consistent indentation.
40665 2006-10-12 Paul Eggert <eggert@cs.ucla.edu>
40667 * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
40668 gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
40669 reported by Jim Meyering. All uses of cache variables renamed
40670 to match Autoconf's.
40671 (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
40674 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
40675 Fix misspelling in diagnostic.
40677 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
40679 * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
40680 defined. Problem reported by Matthew Woehlke.
40682 * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
40683 Add support for Tandem NonStop R series.
40684 (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
40687 * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
40688 (has_trailing_slash): Omit size arg; all callers changed.
40689 Omit 'inline', since it doesn't help performance and we'd
40690 need to configure it.
40691 Don't count //, ///, etc. as having a trailing slash.
40692 As a side effect, this removes a C99ism reported by Matthew Woehlke.
40693 (rpl_rename_dest_slash): On failure, use rename's errno rather
40694 than (in some cases) an incorrect or junk errno.
40695 Simplify code by removing need to compute length; this does
40696 cause it to make two passes instead of one over the file name,
40699 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
40700 change, since Autoconf's version may no longer be appropriate now
40701 that we are using CVS Autoconf's version. Add support for Tandem.
40703 2006-10-11 Paul Eggert <eggert@cs.ucla.edu>
40704 Bruno Haible <bruno@clisp.org>
40706 * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
40707 HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
40708 * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
40709 gl_AC_TYPE_LONG_LONG.
40711 * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
40712 instead of HAVE_LONG_LONG.
40713 * lib/printf-args.c (printf_fetchargs): Likewise.
40714 * lib/printf-parse.c (PRINTF_PARSE): Likewise.
40715 * lib/vasnprintf.c (VASNPRINTF): Likewise.
40716 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
40717 gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
40718 gl_AC_TYPE_LONG_LONG.
40720 2006-10-11 Bruno Haible <bruno@clisp.org>
40722 * m4/longlong.m4: Add comments.
40723 * m4/ulonglong.m4: Likewise.
40725 2006-10-10 Bruno Haible <bruno@clisp.org>
40727 Make it possible to #define stpcpy, strdup to aliases.
40728 * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
40729 * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
40731 2006-10-10 Bruno Haible <bruno@clisp.org>
40733 Make it possible to #define gcd to an alias.
40734 * lib/gcd.c: Include config.h.
40736 2006-10-10 Bruno Haible <bruno@clisp.org>
40738 Make it possible to #define c_isascii to an alias.
40739 * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
40740 defined. Undefine the macros before defining them, to avoid gcc
40742 * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
40743 define NO_C_CTYPE_MACROS early.
40745 2006-10-10 Bruno Haible <bruno@clisp.org>
40747 Make it possible to #define set_program_name to an alias.
40748 * lib/progname.c: Don't undefine set_program_name; instead, undefine
40749 ENABLE_RELOCATABLE early.
40751 2006-10-10 Paul Eggert <eggert@cs.ucla.edu>
40753 Port to Tandem NSK OSS, which has 64-bit signed int but at most
40754 32-bit unsigned int. Problem reported by Matthew Woehlke in:
40755 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
40756 More generally, don't assume that 64-bit signed int is available
40757 if unsigned int is, and vice versa.
40758 * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
40759 unsigned symbols, not on their signed counterparts.
40760 * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
40761 (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
40762 (UINT64_C, UINTMAX_C):
40764 * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
40765 unsigned counterparts.
40766 (Have_long_long, Unsigned): New macros.
40767 (Int): Renamed from INT.
40768 (strtoimax): Use the new macros.
40769 * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
40770 and substitute HAVE_UNSIGNED_LONG_LONG_INT.
40771 * modules/inttypes (inttypes.h): Substitute
40772 HAVE_UNSIGNED_LONG_LONG_INT.
40773 * modules/stdint (stdint.h): Likewise.
40774 (Files): Add m4/ulonglong.m4.
40776 2006-10-10 Bruno Haible <bruno@clisp.org>
40778 Fix a gcc -Wshadow warning.
40779 * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
40781 * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
40782 gl_linked_indexof_from_to): Likewise.
40783 * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
40785 * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
40787 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
40788 Reported by Eric Blake.
40790 2006-10-09 Paul Eggert <eggert@cs.ucla.edu>
40792 * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
40793 for NetBSD. Problem reported by Bruno Haible.
40795 2006-10-09 Jim Meyering <jim@meyering.net>
40797 * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
40798 Patch from Bruno Haible.
40800 2006-10-09 Jim Meyering <jim@meyering.net>
40802 * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
40803 to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
40804 Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
40806 2006-10-08 Paul Eggert <eggert@cs.ucla.edu>
40808 Don't include <config.h> twice; this doesn't work in some cases,
40809 e.g., when config.h has "#define intmax_t long long int" and
40810 we include <config.h>, <inttypes.h>, <config.h> in that order.
40811 Problem reported by Matthew Woehlke in:
40812 http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
40813 * lib/fprintftime.c: Don't include config.h or fprintftime.h.
40814 * lib/fts-cycle.c: Don't include config.h.
40815 * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
40816 * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
40817 Don't include config.h or xstrtol.h. Define STRTOL_T_MINIMUM
40818 and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
40820 * lib/xstrtoumax.c: Likewise.
40821 * lib/xstrtol.c: Include config.h and xstrtol.h after defining
40822 __strtol and the like, so that this module is more like its siblings.
40823 (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
40824 Remove; no longer needed now that we assume gnulib inttypes.h.
40826 2006-10-08 Bruno Haible <bruno@clisp.org>
40828 * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
40831 2006-10-07 Jim Meyering <jim@meyering.net>
40833 * modules/inttypes (inttypes.h): Revert what seems to have been
40834 an inadvertent part of today's change: use "|", not "/" in the
40835 substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
40837 2006-10-07 Bruno Haible <bruno@clisp.org>
40839 * modules/sublist: New file.
40841 2006-10-07 Bruno Haible <bruno@clisp.org>
40843 * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
40844 * modules/argz (argz.h): Likewise.
40845 * modules/arpa_inet (arpa/inet.h): Likewise.
40846 * modules/byteswap (byteswap.h): Likewise.
40847 * modules/configmake (configmake.h): Likewise.
40848 * modules/fcntl (fcntl.h): Likewise.
40849 * modules/fnmatch (fnmatch.h): Likewise.
40850 * modules/getopt (getopt.h): Likewise.
40851 * modules/glob (glob.h): Likewise.
40852 * modules/inttypes (inttypes.h): Likewise.
40853 * modules/netinet_in (netinet/in.h): Likewise.
40854 * modules/poll (poll.h): Likewise.
40855 * modules/stdbool (stdbool.h): Likewise.
40856 * modules/stdint (stdint.h): Likewise.
40857 * modules/sys_select (sys/select.h): Likewise.
40858 * modules/sys_socket (sys/socket.h): Likewise.
40859 * modules/sys_stat (sys/stat.h): Likewise.
40860 * modules/sysexits (sysexits.h): Likewise.
40861 * modules/unistd (unistd.h): Likewise.
40862 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
40863 Add a "DO NOT EDIT" comment to the generated file.
40864 (func_import): Likewise for gnulib-comp.m4.
40866 2006-10-07 Bruno Haible <bruno@clisp.org>
40868 * lib/gl_sublist.h: New file.
40869 * lib/gl_sublist.c: New file.
40871 2006-10-06 Paul Eggert <eggert@cs.ucla.edu>
40873 * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
40874 name (relative to the original working directory) and the file
40875 name component (relative to the temporary working directory). All
40877 * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
40878 * lib/mkdir-p.c (make_dir_parents): Likewise.
40879 * lib/mkdir-p.h (make_dir_parents): Likewise.
40881 2006-10-06 Eric Blake <ebb9@byu.net>
40883 Define several macros for use by the clean-temp module.
40884 * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
40885 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
40886 * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
40888 * lib/clean-temp.h (close_stream_temp): New declaration.
40889 * lib/clean-temp.c (includes): Pull in headers according to what
40890 other modules are in use.
40891 (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
40893 2006-10-06 Bruno Haible <bruno@clisp.org>
40895 * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
40896 instead of fopen, fwriteerror.
40898 2006-10-06 Bruno Haible <bruno@clisp.org>
40900 * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
40901 cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
40903 * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
40904 cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
40905 Return an error indicator.
40906 Suggested by Eric Blake.
40908 2006-10-06 Bruno Haible <bruno@clisp.org>
40910 * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
40911 Reported by Eric Blake.
40913 2006-10-06 Bruno Haible <bruno@clisp.org>
40915 * modules/closeout (Description): Mention stderr too.
40917 2006-10-06 Bruno Haible <bruno@clisp.org>
40918 and Paul Eggert <eggert@cs.ucla.edu>
40920 * lib/closeout.c (close_stdout): Also close stderr.
40921 * lib/closeout.h: Update comment.
40923 2006-10-05 Paul Eggert <eggert@cs.ucla.edu>
40925 Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
40926 <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
40927 * lib/dirchownmod.c: Include lchown.h.
40928 * lib/lchown.c: Don't include files that lchown.h now includes.
40929 Don't declare chown, since lchown.h now does that.
40930 * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
40931 (lchown): Define to rpl_chown if lchown is declared but
40932 does not exist. Declare using a prototype if lchown is not
40933 declared. Add a copyright notice.
40934 * lib/mkstemp.h: Include <unistd.h>.
40935 * lib/openat.c: Include lchown.h.
40937 * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
40938 we now test for that separately.
40939 * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
40940 rather than O_NOFOLLOW, when testing whether it's possible to
40941 avoid a race condition reliably.
40942 * lib/savewd.c (savewd_chdir): Likewise.
40944 Remove macros that are no longer needed now that stdint.h is
40946 * lib/fsusage.c (UINTMAX_MAX): Remove.
40947 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
40948 * lib/utimecmp.c (SIZE_MAX): Remove.
40950 * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
40952 * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
40953 of O_NOFOLLOW_IS_INEFFECTIVE. Define HAVE_WORKING_O_NOATIME if
40956 2006-10-05 Bruno Haible <bruno@clisp.org>
40958 * lib/gl_list.h (gl_sortedlist_search_from_to,
40959 gl_sortedlist_indexof_from_to): New declarations.
40960 (gl_list_implementation): New fields sortedlist_search_from_to,
40961 sortedlist_indexof_from_to.
40962 (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
40964 * lib/gl_list.c (gl_sortedlist_search_from_to,
40965 gl_sortedlist_indexof_from_to): New functions.
40966 * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
40968 (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
40969 (gl_array_sortedlist_search_from_to): New function.
40970 (gl_array_list_implementation): Update.
40971 * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
40973 (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
40974 (gl_carray_sortedlist_search_from_to): New function.
40975 (gl_carray_list_implementation): Update.
40976 * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
40977 gl_linked_sortedlist_indexof_from_to): New functions.
40978 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
40979 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
40980 * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
40981 gl_tree_sortedlist_indexof_from_to): New functions.
40982 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
40983 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
40985 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
40986 * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
40989 2006-10-05 Bruno Haible <bruno@clisp.org>
40991 * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
40992 gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
40993 (struct gl_list_implementation): Add fields search_from_to,
40994 indexof_from_to. Remove fields search, indexof.
40995 (gl_list_search): Use the search_from_to method.
40996 (gl_list_search_from, gl_list_search_from_to): New functions.
40997 (gl_list_indexof): Use the indexof_from_to method.
40998 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
40999 * lib/gl_list.c (gl_list_search): Use the search_from_to method.
41000 (gl_list_search_from, gl_list_search_from_to): New functions.
41001 (gl_list_indexof): Use the indexof_from_to method.
41002 (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
41003 * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
41004 gl_array_indexof. Add start_index, end_index arguments.
41005 (gl_array_search_from_to): Renamed from gl_array_search. Add
41006 start_index, end_index arguments.
41007 (gl_array_remove, gl_array_list_implementation): Update.
41008 * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
41009 gl_carray_indexof. Add start_index, end_index arguments.
41010 (gl_carray_search_from_to): Renamed from gl_carray_search. Add
41011 start_index, end_index arguments.
41012 (gl_carray_remove, gl_carray_list_implementation): Update.
41013 * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
41014 gl_linked_search. Add start_index, end_index arguments.
41015 (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
41016 start_index, end_index arguments.
41017 (gl_linked_remove): Update.
41018 * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
41019 * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
41020 * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
41022 * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
41023 gl_tree_search. Add start_index, end_index arguments.
41024 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41025 start_index, end_index arguments.
41026 (gl_tree_remove): Update.
41027 * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
41028 * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
41029 * lib/gl_anytreehash_list1.h (compare_position_threshold): New
41031 * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
41032 gl_tree_search. Add start_index, end_index arguments.
41033 (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
41034 start_index, end_index arguments.
41035 * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
41037 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
41039 2006-10-05 Bruno Haible <bruno@clisp.org>
41041 * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
41043 * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
41044 fwriteerror_temp): New declarations.
41045 * lib/clean-temp.c (uintptr_t): Provide fallback definition.
41046 (descriptors): New variable.
41047 (cleanup): First, close the descriptors.
41048 (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
41049 fclose_temp, fwriteerror_temp): New functions.
41051 2006-10-04 Jim Meyering <jim@meyering.net>
41053 * lib/fts.c (fts_open): Tiny comment change.
41055 2006-10-04 Bruno Haible <bruno@clisp.org>
41057 Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
41058 * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
41060 (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
41061 (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
41062 gl_LOCK_EARLY_BODY.
41063 (gl_LOCK): Require gl_LOCK_BODY.
41065 2006-10-04 Bruno Haible <bruno@clisp.org>
41067 * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
41068 (gl_oset_search_atleast): New declaration.
41069 (struct gl_oset_implementation): Add field 'search_atleast'.
41070 (gl_oset_search_atleast): New inline function.
41071 * lib/gl_oset.c (gl_oset_search_atleast): New function.
41072 * lib/gl_array_oset.c (gl_array_search_atleast): New function.
41073 (gl_array_oset_implementation): Update.
41074 * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
41075 * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
41076 * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
41078 2006-10-04 Bruno Haible <bruno@clisp.org>
41080 * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
41082 2006-10-03 Bruno Haible <bruno@clisp.org>
41084 * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
41085 from gl_avltreehash_list_implementation.
41087 2006-10-03 Bruno Haible <bruno@clisp.org>
41089 * lib/gl_oset.c (gl_oset_add): Fix return type.
41091 2006-10-02 Paolo Bonzini <bonzini@gnu.org> (tiny change)
41093 * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
41095 2006-10-02 Eric Blake <ebb9@byu.net>
41097 * modules/strnlen (Depends-on): Add extensions.
41099 2006-10-02 Eric Blake <ebb9@byu.net>
41101 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
41102 definition in 2.60+.
41104 2006-10-02 Dmitry V. Levin <ldv@altlinux.org>
41106 * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
41109 2006-10-02 Bruno Haible <bruno@clisp.org>
41111 * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
41112 to the AUTOMAKE_OPTIONS.
41113 Reported by Jim Meyering.
41115 2006-09-29 Paul Eggert <eggert@cs.ucla.edu>
41117 Work around bug in Solaris 10 /proc file system:
41118 /proc/self/fd/NNN/.. isn't the parent directory of
41119 the directory whose file descriptor is NNN. This needs to
41120 be worked around at run time, not compile time, since a
41121 program might be built on Solaris 8, where things work, and
41123 * lib/openat-priv.h (BUILD_PROC_NAME): Remove. All callers changed
41124 to use the following interface instead:
41125 (OPENAT_BUFFER_SIZE): New macro.
41126 (openat_proc_name): New function.
41127 * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
41128 * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
41130 * lib/openat-proc.c: New file.
41131 * modules/openat (Files): Add lib/openat-proc.c.
41132 (Depends-on): Add same-inode, stdbool.
41133 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
41135 2006-09-29 Bruno Haible <bruno@clisp.org>
41137 * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
41138 * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
41139 argument. Set stdout_closed before testing for ferror, not after.
41140 (fwriteerror, fwriteerror_no_ebadf): New functions.
41142 2006-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41144 * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
41146 2006-09-28 Paolo Bonzini <bonzini@gnu.org>
41148 * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
41149 * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
41151 2006-09-28 Jim Meyering <jim@meyering.net>
41153 * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
41154 Include <unistd.h>.
41156 2006-09-28 Bruno Haible <bruno@clisp.org>
41158 * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
41159 * modules/linkedhash-list (Depends-on): Likewise.
41160 * modules/rbtreehash-list (Depends-on): Likewise.
41162 2006-09-28 Bruno Haible <bruno@clisp.org>
41164 * lib/strndup.h: Simplify the redefinition of strndup.
41165 (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
41166 * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
41168 2006-09-28 Bruno Haible <bruno@clisp.org>
41170 * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
41171 * lib/gl_linkedhash_list.c: Likewise.
41172 * lib/gl_rbtreehash_list.c: Likewise.
41174 2006-09-27 Paul Eggert <eggert@cs.ucla.edu>
41176 * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
41179 * lib/__fpending.h: Don't include <stdio_ext.h> unless
41180 HAVE_DECL___FPENDING. This avoids a bug with lsbcc, where
41181 it causes <stdio_ext.h> to cause a compile-time error.
41182 Problem reported by Nelson H. F. Beebe.
41183 * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
41184 of HAVE_DECL___PENDING.
41186 * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
41187 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
41190 2006-09-27 Jim Meyering <jim@meyering.net>
41192 This file could end up with a definition for a function
41193 named __strndup, rather than rpl_strndup on a system with
41194 incomplete weak_alias support.
41195 * lib/strndup.c (strndup): Rename from __strndup.
41196 Remove #defines that used to map __strndup to strndup.
41197 Don't use K&R prototypes.
41198 Remove LIBC-related code, since this file is not sync'd with glibc.
41199 * lib/strndup.h: Revamp, accordingly.
41200 * m4/strndup.m4: Modernize.
41202 2006-09-26 Paul Eggert <eggert@cs.ucla.edu>
41204 * modules/savewd (Depends-on): Add 'raise'.
41205 * lib/savewd.c: Include <signal.h>, for 'raise'.
41207 2006-09-26 Jim Meyering <jim@meyering.net>
41209 * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
41210 when we detect Darwin 8.7.0's acl_get_file bug.
41211 Rearrange to perform the new (below) run-test while $LIBS
41212 contains any acl-related library. Set USE_ACL at the end.
41213 (gl_ACL_GET_FILE): New function.
41215 2006-09-26 Eric Blake <ebb9@byu.net>
41217 * lib/verror.c: Include <config.h> unconditionally.
41219 2006-09-25 Paul Eggert <eggert@cs.ucla.edu>
41221 * modules/clock-time (Maintainer): Add self.
41222 * modules/getlogin_r (Depends-on): Add extensions.
41224 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41226 * modules/clock-time: New module.
41227 * modules/nanosleep (Depends-on): Add clock-time.
41228 * modules/gethrxtime (Depends-on): Likewise.
41229 * modules/gettime (Depends-on): Likewise.
41230 * modules/settime (Depends-on): Likewise.
41232 * modules/fts-lgpl: Depend on openat.
41233 * modules/mkancesdirs: Depend on savewd.
41234 * modules/mkdir-p: Likewise.
41236 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41238 * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
41240 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
41241 `gl_have_arbitrary_file_name_length_limit' to
41242 `gl_cv_have_arbitrary_file_name_length_limit', so that caching
41243 actually works between configure runs.
41245 2006-09-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41246 Bruno Haible <bruno@clisp.org>
41248 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
41250 2006-09-25 Jim Meyering <jim@meyering.net>
41252 * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
41253 This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
41255 2006-09-25 Eric Blake <ebb9@byu.net>
41257 * gnulib-tool (func_import, func_create_testdir): Fix typos in
41258 exec's in 2006-09-18 patch when shuffling fds.
41260 2006-09-25 Bruno Haible <bruno@clisp.org>
41262 * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
41263 Reported by Jim Meyering.
41265 2006-09-24 Jim Meyering <jim@meyering.net>
41267 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
41268 compare a pointer against a literal "0". That caused failures with
41269 at least HP-UX's hpcc.
41271 2006-09-22 Simon Josefsson <jas@extundo.com>
41275 * modules/gc-hmac-sha1:
41276 * modules/gc-hmac-md5:
41278 * modules/gc-arcfour: Distribute more files.
41280 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41282 * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
41283 (gl_linked_iterator_from_to): Initialize struct completely.
41284 * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
41285 (gl_tree_iterator_from_to): Likewise
41286 * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
41287 * lib/gl_array_list.c [lint] (gl_array_iterator)
41288 (gl_array_iterator_from_to): Likewise.
41289 * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
41290 * lib/gl_carray_list.c [lint] (gl_carray_iterator)
41291 (gl_carray_iterator_from_to): Likewise.
41293 * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
41294 * lib/md4.c (md4_process_block): Remove unused variable.
41295 * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
41296 parentheses for clarity.
41298 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41300 * modules/bison-i18n (Depends-on): Add gettext.
41302 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41304 * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
41305 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
41306 * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
41307 also add missing comma that caused broken test.
41308 * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
41309 stdlib.h, for `abort'.
41310 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
41312 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
41313 include unistd.h if present, for `rmdir'.
41314 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
41316 * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
41317 in the process include standard headers for prototypes.
41318 * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
41319 gets declared on GNU/Linux.
41320 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
41321 unistd.h, for `rmdir'.
41322 * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
41324 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
41326 * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
41328 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
41330 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41332 * gnulib-tool (func_version): Create output all at once. This
41333 may help avoid triggering unnecessary SIGPIPEs, and at any
41334 rate it doesn't hurt.
41336 2006-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41337 Bruno Haible <bruno@clisp.org>
41339 * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
41340 * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
41341 * m4/signed.m4 (bh_C_SIGNED): Likewise.
41343 * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
41344 (gl_FUNC_VASPRINTF): Invoke it.
41346 2006-09-22 Bruno Haible <bruno@clisp.org>
41348 * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
41349 getloadavg.c as first argument.
41351 2006-09-22 Bruno Haible <bruno@clisp.org>
41353 * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
41354 at the beginning of the gl_INIT macro.
41355 * modules/getloadavg (configure.ac): Pass $gl_source_base to
41358 2006-09-22 Bruno Haible <bruno@clisp.org>
41360 * gnulib-tool (func_create_megatestdir): Don't include the config-h
41362 Suggested by Ralf Wildenhues.
41364 2006-09-20 Paul Eggert <eggert@cs.ucla.edu>
41366 Import this patch from libc:
41368 2006-09-06 Jakub Jelinek <jakub@redhat.com>
41370 * lib/regex_internal.c (re_string_reconstruct): Handle
41371 offset < pstr->valid_raw_len && pstr->offsets_needed case.
41372 Ensure no bytes read before raw_mbs array. Pass a saved copy of
41373 pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
41374 re_string_context_at.
41376 * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
41378 (gl_PREREQ_REGEX): Don't check for locale.h any more, since
41379 gl_REGEX now does it for us.
41380 (gl_REGEX): Add test taken from
41381 http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
41383 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
41384 Check that large offsets work. Modernize Autoconf usages.
41385 Prefer "yes" to mean a good thing rather than a bad.
41386 Don't put "#define mkstemp" in config.h, as this might interfere
41387 with standard system headers that "#define mkstemp mkstemp64".
41389 * modules/mkstemp (Depends-on): Add extensions, so that
41390 mkstemp is visible on some platforms.
41391 (Makefile.am): Add mkstemp.h to EXTRA_DIST.
41392 (Include): Change to "mkstemp.h" from <stdlib.h>.
41393 (Files): Add mkstemp.h.
41395 * lib/mkstemp.h: New file, since some standard headers
41397 * lib/mkstemp.c: Revamp to put the !_LIBC code together.
41398 Include "mkstemp.h".
41399 Make the _LIBC code resemble glibc original more,
41400 e.g., use K&R style.
41401 * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
41402 (mkstemp): Remove, since mkstemp.h does this for us.
41403 * lib/stdlib--.h: Include mkstemp.h.
41405 Import this patch from libc:
41407 2006-04-07 Ulrich Drepper <drepper@redhat.com>
41409 * lib/tempname.c (__gen_tempname): Change attempts_min
41410 into a macro. Use preprocessor to decide how to initialize
41411 attempts [Coverity CID 67].
41413 2006-09-20 Bruno Haible <bruno@clisp.org>
41415 * lib/mkdtemp.c: Import from libc.
41416 2006-04-07 Ulrich Drepper <drepper@redhat.com>
41417 * sysdeps/posix/tempname.c (__gen_tempname): Change
41418 attempts_min into a macro. Use preprocessor to decide how to
41419 initialize attempts [Coverity CID 67].
41420 2001-11-27 Paul Eggert <eggert@twinsun.com>
41421 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
41422 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
41424 2006-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41426 * gnulib-tool (func_exit): New function, to allow to pass the
41427 exit status portably through the trap. Use everywhere.
41428 (--help, --version): Signal a write error.
41429 (trap): catch SIGPIPE, for write errors.
41430 Exit at the end of the trap, with the correct exit status.
41432 2006-09-19 Karl Berry <karl@gnu.org>
41434 * doc/gnulib.texi: note about the license texinfo files.
41436 2006-09-19 Eric Blake <ebb9@byu.net>
41438 * gnulib-tool: Avoid space-tab.
41440 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
41442 * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
41443 that prevented coreutils 6.1 from building. Problem reported
41444 by Petter Reinholdtsen.
41446 2006-09-18 Paul Eggert <eggert@cs.ucla.edu>
41448 * gnulib-tool (avoidlist): Fix typo that broke options like
41449 --avoid=lock that are used by coreutils bootstrap.
41451 2006-09-18 Mark D. Baushke <mdb@gnu.org>
41453 * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
41454 more systematically.
41456 2006-09-18 Jim Meyering <jim@meyering.net>
41458 * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
41460 2006-09-18 Bruno Haible <bruno@clisp.org>
41462 * modules/inttypes (Files): Remove m4/inttypes-h.m4.
41464 2006-09-18 Bruno Haible <bruno@clisp.org>
41466 * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
41467 * m4/inttypes-pri.m4: Require autoconf >= 2.52.
41468 (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
41469 ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
41470 * m4/gettext.m4: Require autoconf >= 2.52.
41471 (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
41472 * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
41473 of gl_cv_header_inttypes_h.
41475 2006-09-18 Bruno Haible <bruno@clisp.org>
41477 * lib/javaversion.c: Include configmake.h.
41479 2006-09-18 Bruno Haible <bruno@clisp.org>
41481 * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
41482 avoid that the while loops be executed in a subshell.
41484 2006-09-18 Bruno Haible <bruno@clisp.org>
41486 * MODULES.html.sh (func_module): Break long lines.
41487 Suggested by Bruce Korb <bkorb@gnu.org>.
41489 2006-09-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41491 Speed up by a factor of 1.12.
41492 * gnulib-tool (nl): New variable.
41493 (func_import): Rewrite include directive extraction to only read each
41496 2006-09-17 Bruno Haible <bruno@clisp.org>
41498 * modules/javaversion (Makefile.am): Remove DEFS setting.
41499 (Depends-on): Add configmake, for PKGDATADIR definition.
41501 2006-09-17 Bruno Haible <bruno@clisp.org>
41503 * gnulib-tool (func_create_testdir): Rewrite all files at once.
41505 2006-09-17 Bruno Haible <bruno@clisp.org>
41507 * gnulib-tool (func_append): New function, stolen from libtool.m4.
41508 (func_modules_transitive_closure, func_modules_add_dummy,
41509 func_modules_to_filelist, func_import, func_create_testdir,
41510 func_create_megatestdir, ...): Use it wherever possible.
41511 Suggested by Ralf Wildenhues.
41513 2006-09-16 Karl Berry <karl@gnu.org>
41515 * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
41516 to avoid sectioning errors.
41517 * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
41518 [ifinfo]: blank line after @center-ed titles.
41519 * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
41520 Spell FSF address consistently with others.
41521 (These changes approved by rms.)
41523 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41525 Speed up by a factor of 1.61.
41526 * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
41527 already checked module names again.
41529 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41531 Speed up by a factor of 1.13.
41532 * gnulib-tool (func_import): Rewrite all old_files at once; likewise
41533 for new_files, and the input to func_add_or_update.
41535 2006-09-15 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41537 * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
41538 func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
41540 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
41542 * modules/mkancesdirs (Depends-on): Add fcntl.
41543 * modules/savewd: New file.
41544 * MODULES.html.sh (File system functions): Add savewd.
41546 * modules/configmake (Makefile.am): Add support for the
41547 Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
41549 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
41551 * m4/savewd.m4: New file.
41553 2006-09-15 Paul Eggert <eggert@cs.ucla.edu>
41555 * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
41556 (dirchownmod): New arg FD. All callers changed.
41557 Use FD rather than opening the directory ourself, as opening is
41558 now the caller's responsibility.
41559 * lib/dirchownmod.h: Likewise.
41560 * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
41561 hosts that require <sys/types.h> before <sys/stat.h>. Include
41562 fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
41563 (test_dir): Remove.
41564 (mkancesdirs): Return length of prefix of FILE that has already
41565 been made, or -2 if there is a child doing the work. Redo
41566 algorithm so that it is O(N) rather than O(N**2). Optimize away
41567 ".", and treat ".." specially since it might stray back into
41568 already-created areas. Use a subprocess if necessary. New arg
41569 WD; all users changed. MAKE_DIR function should now return 1
41570 if it creates a directory that is not readable. Return -2 if
41571 a child process is spun off.
41572 * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
41573 Adjust signature to match code.
41574 * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
41575 (make_dir_parents): Use a subprocess if necessary. New arg WD;
41577 * lib/savewd.c, lib/savewd.h: New files.
41579 2006-09-15 Jim Meyering <jim@meyering.net>
41581 * modules/rename-dest-slash: New module.
41582 * MODULES.html.sh (posix_compat): Add it here.
41584 * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
41586 2006-09-15 Jim Meyering <jim@meyering.net>
41588 * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
41591 * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
41593 2006-09-15 Jim Meyering <jim@meyering.net>
41595 * lib/rename-dest-slash.c (has_trailing_slash): Use
41596 FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
41597 (rpl_rename_dest_slash): Perform the cheaper trailing slash
41598 test before testing whether SRC is a directory.
41599 Suggestions from Bruno Haible.
41601 Avoid a warning about an unused variable.
41602 * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
41603 into the #ifdef block where it's used.
41605 * lib/rename-dest-slash.c: New file.
41607 2006-09-14 Bruno Haible <bruno@clisp.org>
41609 * lib/allocsa.c: Include <config.h> unconditionally.
41610 * lib/asnprintf.c: Likewise.
41611 * lib/asprintf.c: Likewise.
41612 * lib/c-strcasecmp.c: Likewise.
41613 * lib/c-strcasestr.c: Likewise.
41614 * lib/c-strncasecmp.c: Likewise.
41615 * lib/c-strstr.c: Likewise.
41616 * lib/classpath.c: Likewise.
41617 * lib/clean-temp.c: Likewise.
41618 * lib/concatpath.c: Likewise.
41619 * lib/copy-file.c: Likewise.
41620 * lib/csharpcomp.c: Likewise.
41621 * lib/csharpexec.c: Likewise.
41622 * lib/execute.c: Likewise.
41623 * lib/fatal-signal.c: Likewise.
41624 * lib/findprog.c: Likewise.
41625 * lib/fwriteerror.c: Likewise.
41626 * lib/gl_array_list.c: Likewise.
41627 * lib/gl_array_oset.c: Likewise.
41628 * lib/gl_avltree_list.c: Likewise.
41629 * lib/gl_avltree_oset.c: Likewise.
41630 * lib/gl_avltreehash_list.c: Likewise.
41631 * lib/gl_carray_list.c: Likewise.
41632 * lib/gl_linked_list.c: Likewise.
41633 * lib/gl_linkedhash_list.c: Likewise.
41634 * lib/gl_list.c: Likewise.
41635 * lib/gl_oset.c: Likewise.
41636 * lib/gl_rbtree_list.c: Likewise.
41637 * lib/gl_rbtree_oset.c: Likewise.
41638 * lib/gl_rbtreehash_list.c: Likewise.
41639 * lib/imaxabs.c: Likewise.
41640 * lib/imaxdiv.c: Likewise.
41641 * lib/javacomp.c: Likewise.
41642 * lib/javaexec.c: Likewise.
41643 * lib/javaversion.c: Likewise.
41644 * lib/linebreak.c: Likewise.
41645 * lib/localcharset.c: Likewise.
41646 * lib/lock.c: Likewise.
41647 * lib/mbchar.c: Likewise.
41648 * lib/mbswidth.c: Likewise.
41649 * lib/mkdtemp.c: Likewise.
41650 * lib/pipe.c: Likewise.
41651 * lib/printf-args.c: Likewise.
41652 * lib/printf-parse.c: Likewise.
41653 * lib/progname.c: Likewise.
41654 * lib/progreloc.c: Likewise.
41655 * lib/readlink.c: Likewise.
41656 * lib/sh-quote.c: Likewise.
41657 * lib/stpcpy.c: Likewise.
41658 * lib/stpncpy.c: Likewise.
41659 * lib/strcasecmp.c: Likewise.
41660 * lib/strcasestr.c: Likewise.
41661 * lib/strcspn.c: Likewise.
41662 * lib/striconv.c: Likewise.
41663 * lib/strncasecmp.c: Likewise.
41664 * lib/strnlen1.c: Likewise.
41665 * lib/strstr.c: Likewise.
41666 * lib/strtok_r.c: Likewise.
41667 * lib/tls.c: Likewise.
41668 * lib/tmpdir.c: Likewise.
41669 * lib/unicodeio.c: Likewise.
41670 * lib/unsetenv.c: Likewise.
41671 * lib/vasnprintf.c: Likewise.
41672 * lib/vasprintf.c: Likewise.
41673 * lib/wait-process.c: Likewise.
41674 * lib/xallocsa.c: Likewise.
41675 * lib/xsetenv.c: Likewise.
41676 * lib/xstriconv.c: Likewise.
41678 2006-09-13 Simon Josefsson <jas@extundo.com>
41680 * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
41681 that internally, suggested by Ralf Wildenhues
41682 <Ralf.Wildenhues@gmx.de>.
41684 2006-09-13 Simon Josefsson <jas@extundo.com>
41686 * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
41688 Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
41690 2006-09-13 Paul Eggert <eggert@cs.ucla.edu>
41692 * lib/_fpending.c: Include <config.h> unconditionally, since we no
41693 longer worry about uses that don't define HAVE_CONFIG_H.
41694 * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
41695 * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
41696 * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
41697 * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
41698 * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
41699 * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
41700 * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
41701 * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
41702 * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
41703 * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
41704 * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
41705 * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
41706 * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
41707 * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
41708 * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
41709 * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
41710 * lib/getusershell.c, lib/glob.c, lib/group-member.c:
41711 * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
41712 * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
41713 * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
41714 * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
41715 * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
41716 * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
41717 * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
41718 * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
41719 * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
41720 * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
41721 * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
41722 * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
41723 * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
41724 * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
41725 * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
41726 * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
41727 * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
41728 * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
41729 * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
41730 * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
41731 * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
41732 * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
41733 * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
41734 * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
41737 2006-09-13 Eric Blake <ebb9@byu.net>
41739 * lib/getopt.c: Fix typo in last commit.
41741 2006-09-12 Sergey Poznyakoff <gray@gnu.org.ua>
41743 * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
41746 2006-09-12 Jim Meyering <jim@meyering.net>
41748 * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
41749 compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
41750 Reported by Nelson H. F. Beebe.
41752 2006-09-10 Sergey Poznyakoff <gray@gnu.org.ua>
41754 * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
41755 program_invocation_name and program_invocation_short_name are
41757 * lib/argp-namefrob.h: Move declarations of program_invocation_name
41758 and program_invocation_short_name to argp.h, so they are visible
41760 * lib/argp.h: Likewise
41762 2006-09-10 Bruno Haible <bruno@clisp.org>
41764 * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
41765 m4/inttypes_h.m4, m4/uintmax_t.m4.
41767 2006-09-10 Bruno Haible <bruno@clisp.org>
41769 * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
41770 gl_AC_TYPE_UINTMAX_T.
41772 2006-09-10 Bruno Haible <bruno@clisp.org>
41774 * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
41776 2006-09-09 Sergey Poznyakoff <gray@gnu.org.ua>
41778 * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
41779 convention. Text proposed by Bruno Haible.
41780 (struct argp_option): Document the use of N_() wrappers.
41782 * lib/argp-help.c (argp_doc): Split the untranslated doc string on
41783 '\v', and translate the two parts separately, instead of feeding
41784 the whole string to gettext. This allows to exclude
41785 '\v' from the strings visible to the translator by writing doc
41786 strings as N_("..") "\v" N_("..").
41788 2006-09-09 Paul Eggert <eggert@cs.ucla.edu>
41790 * config/srclist.txt: Undo latest change; the bug was fixed.
41792 2006-09-09 Bruno Haible <bruno@clisp.org>
41794 * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
41795 assignments if building a library without libtool.
41796 (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
41797 in func_emit_lib_Makefile_am.
41798 (func_import): When building a static library libfoo.a, arrange to
41799 define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
41800 (func_create_testdir): Likewise.
41801 * modules/gc (configure.ac, Makefile.am): If building statically,
41802 augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
41803 * modules/iconvme (configure.ac, Makefile.am): Likewise.
41804 * modules/striconv (configure.ac, Makefile.am): Likewise.
41805 Based on a suggestion by Ralf Wildenhues.
41807 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
41809 * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
41810 Check for unistd.h too, since Autoconf doesn't assume POSIX.
41813 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
41814 Add year_2050_test to catch glibc bug 2821
41815 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41817 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
41818 Prefer #ifdef to #if.
41820 2006-04-02 Paul Eggert <eggert@cs.ucla.edu>
41821 Return from 'main' instead of calling 'exit'.
41823 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
41825 * lib/mktime.c (guess_time_tm): Fix bug where mktime
41826 returned the maximum time_t value rather than (time_t) -1.
41827 Problem originally reported by William Bardwell
41828 <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
41830 * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41832 * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
41835 2006-09-08 Paul Eggert <eggert@cs.ucla.edu>
41837 * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
41840 2006-09-08 Jim Meyering <jim@meyering.net>
41842 Don't make generated files read-only. That would bother too many
41843 people. However, do retain the ability to work when targets are
41844 read-only: remove the destination and temporary files before writing
41845 them (when generated via sed or echo), or by using the -f option for
41846 both cp and mv commands. Suggestion to use -f from Paul Eggert.
41847 * modules/alloca-opt, modules/argz, modules/arpa_inet:
41848 * modules/byteswap, modules/configmake, modules/fcntl:
41849 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41850 * modules/localcharset, modules/netinet_in, modules/poll:
41851 * modules/stdbool, modules/stdint, modules/sys_select:
41852 * modules/sys_socket, modules/sys_stat, modules/sysexits:
41854 2006-09-08 Jim Meyering <jim@meyering.net>
41856 Avoid new build failure on FreeBSD 6.0.
41857 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
41858 <sys/param.h> when testing whether getmntinfo uses statvfs. Patch by
41859 Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
41861 2006-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41863 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
41865 2006-09-07 Jim Meyering <jim@meyering.net>
41867 Fix global typo in last change: use chmod u-w, not chmod u-x.
41868 Spotted by Paul Eggert and Bruce Korb.
41869 * modules/alloca-opt, modules/argz, modules/arpa_inet:
41870 * modules/byteswap, modules/configmake, modules/fcntl:
41871 * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
41872 * modules/localcharset, modules/netinet_in, modules/poll:
41873 * modules/stdbool, modules/stdint, modules/sys_select:
41874 * modules/sys_socket, modules/sys_stat, modules/sysexits:
41876 2006-09-06 Jim Meyering <jim@meyering.net>
41878 Make generated files be read-only.
41879 * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
41880 Ensure that each generated file is now read-only.
41881 * modules/argz: Likewise.
41882 * modules/arpa_inet: Likewise.
41883 * modules/byteswap: Likewise.
41884 * modules/configmake: Likewise.
41885 * modules/fcntl: Likewise.
41886 * modules/fnmatch: Likewise.
41887 * modules/getopt: Likewise.
41888 * modules/glob: Likewise.
41889 * modules/inttypes: Likewise.
41890 * modules/netinet_in: Likewise.
41891 * modules/poll: Likewise.
41892 * modules/stdbool: Likewise.
41893 * modules/stdint: Likewise.
41894 * modules/sys_select: Likewise.
41895 * modules/sys_socket: Likewise.
41896 * modules/sys_stat: Likewise.
41897 * modules/sysexits: Likewise.
41898 * modules/localcharset: Same as above, but continue using temporary
41899 file named "t-$@" (why different?) rather than the "$@-t" used
41902 * modules/sysexits (Makefile.am): Replace literal occurrences
41903 of "sysexit.h" more readable, and more consistent, "$@".
41905 2006-09-06 Bruno Haible <bruno@clisp.org>
41907 * modules/striconv: New file.
41908 * modules/xstriconv: New file.
41909 * MODULES.html.sh (Internationalization functions): Add striconv,
41912 2006-09-06 Bruno Haible <bruno@clisp.org>
41914 * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
41915 * modules/iconvme (Makefile.am): Likewise. Also handle the case of
41916 not using libtool correctly.
41918 2006-09-06 Bruno Haible <bruno@clisp.org>
41920 * lib/striconv.h: New file.
41921 * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
41923 * lib/xstriconv.h: New file.
41924 * lib/xstriconv.c: New file.
41926 2006-09-06 Bruno Haible <bruno@clisp.org>
41928 * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
41931 2006-09-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41933 * lib/argz_.h: Sync from Libtool.
41935 2006-09-04 George Bosilca <bosilca@cs.utk.edu>
41936 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
41938 * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
41940 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
41942 * modules/trim: New file.
41944 2006-09-05 Davide Angelocola <davide.angelocola@tiscali.it>
41946 * lib/trim.h: New file.
41947 * lib/trim.c: New file.
41949 2006-09-05 Bruno Haible <bruno@clisp.org>
41951 * MODULES.html.sh (String handling): Add trim.
41953 2006-09-04 Karl Berry <karl@gnu.org>
41955 * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
41956 until next release.
41958 2006-09-03 Bruno Haible <bruno@clisp.org>
41960 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
41963 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
41965 * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
41966 not gl_GETLOADAVG. Omit unneeded semicolons.
41967 Problems reported by Ralf Wildenhues in
41968 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41969 (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define. Put
41970 at the end, which is the usual gnulib style.
41972 * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
41973 of doing all the work ourselves.
41974 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
41975 sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
41977 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
41979 * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
41980 Problem reported by Ralf Wildenhues in
41981 <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
41983 * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
41984 HAVE_STRUCT_STATFS_F_FSTYPENAME.
41986 2006-09-01 Paul Eggert <eggert@cs.ucla.edu>
41988 * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
41989 yesterday's patch by changing test -n to test -z.
41991 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
41993 * modules/getloadavg (Files): Add m4/getloadavg.m4.
41994 (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
41995 the former is now obsolescent.
41997 * modules/chdir-long (Depends-on): Add fcntl.
41999 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42001 * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
42002 obsolescent, and programs should use gnulib instead.
42003 * m4/getloadavg.m4: New file, with contents taken from Autoconf
42004 but with prefixes changed.
42006 2006-08-31 Paul Eggert <eggert@cs.ucla.edu>
42008 * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
42009 or stdbool.h, because they might not exist while configuring.
42011 * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
42012 Don't include unistd.h or limits.h; not needed, since chdir-long.h
42014 (O_DIRECTORY): Remove.
42016 2006-08-31 Eric Blake <ebb9@byu.net>
42018 * gnulib-tool: Don't let emacs change spaces to TAB.
42020 2006-08-31 Bruno Haible <bruno@clisp.org>
42022 * gnulib-tool: When calling func_import more than once, do it in a
42024 Reported by Eric Blake <ebb9@byu.net>.
42026 2006-08-31 Bruno Haible <bruno@clisp.org>
42028 * gnulib-tool (nl): Remove variable.
42029 (sed_transform_lib_file): Use more robust test for config-h module.
42030 (func_import): Fix typo in 2006-08-25 patch.
42032 2006-08-31 Bruno Haible <bruno@clisp.org>
42034 * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
42035 specified, augment Makefile.am variables instead of assigning them.
42037 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42039 Work around a bug in both the Linux and SunOS 64-bit kernels:
42040 nanosleep mishandles sleeps for longer than 2**31 seconds.
42041 Problem reported by Frank v Waveren in
42042 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42043 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
42044 Check for nanosleep bug.
42045 (LIB_NANOSLEEP): Append clock_gettime library if needed.
42047 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42049 Work around a bug in both the Linux and SunOS 64-bit kernels:
42050 nanosleep mishandles sleeps for longer than 2**31 seconds.
42051 Problem reported by Frank v Waveren in
42052 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
42053 * lib/nanosleep.c (BILLION): New constant.
42054 (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
42055 (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
42058 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42060 * modules/nanosleep (Depends-on): Add gettime.
42062 2006-08-30 Paul Eggert <eggert@cs.ucla.edu>
42063 and Simon Josefsson <jas@extundo.com>
42064 and Oskar Liljeblad <oskar@osk.mine.nu>
42066 * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
42067 * gnulib-tool (func_import): New license type 'unmodifiable license
42069 * modules/fdl: Use it. Longer description.
42070 * module/gpl, module/lgpl: New files.
42072 2006-08-30 Jim Meyering <jim@meyering.net>
42074 * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
42075 shadowing the parameter.
42077 2006-08-29 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42081 2006-08-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
42083 * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
42084 sharing with gnulib. Report by Eric Blake.
42086 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42088 * modules/isapipe: New file.
42089 * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
42091 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42093 * modules/configmake (Makefile.am): Add a comment, and omit
42094 the CONFIGMAKE_ prefix from generated macro names. Suggested
42097 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42099 * m4/isapipe.m4: New file.
42101 2006-08-29 Paul Eggert <eggert@cs.ucla.edu>
42103 * lib/isapipe.c, lib/isapipe.h: New files.
42105 2006-08-29 Jim Meyering <jim@meyering.net>
42107 * modules/configmake (Makefile.am): Make configmake.h depend on
42108 Makefile. Otherwise, a stale configmake.h could hang around.
42110 2006-08-29 Eric Blake <ebb9@byu.net>
42112 * lib/error.c (error_at_line, print_errno_message): Match libc, after
42113 resolution of upstream bug 3044.
42115 2006-08-29 Bruno Haible <bruno@clisp.org>
42117 * modules/localcharset (Depends-on): Add configmake.
42118 (Makefile.am): Remove setting of LIBDIR through DEFS.
42120 2006-08-29 Bruno Haible <bruno@clisp.org>
42122 * lib/localcharset.c: Include configmake.h in order to get LIBDIR
42125 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42127 * modules/fcntl: New file.
42128 * modules/chdir-safer (Depends-on): Add fcntl.
42129 * modules/fts: Likewise.
42130 * modules/mkdir-p: Likewise.
42132 * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
42133 This undoes the most recent change, since we're now addressing the
42134 problem in a different way.
42136 * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
42137 into output, since the output might be called Makefile.am even
42138 if $makefile_name is something different.
42139 (func_import): Use $makefile_am rather than
42140 ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
42143 * modules/inttypes (Files): Add m4/inttypes-h.m4.
42145 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42147 * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
42148 * m4/stdint.m4 (gl_STDINT_H): ... from here. This undoes the most
42149 recent change to stdint.m4, since we're now addressing the problem in a
42152 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42154 * m4/fcntl_h.m4: New file.
42156 2006-08-28 Paul Eggert <eggert@cs.ucla.edu>
42158 * lib/fcntl_.h: New file.
42159 * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
42161 * lib/dirchownmod.c: Likewise.
42162 * lib/fts.c: Likewise.
42164 * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
42165 Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
42166 * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
42167 just before including <inttypes.h>, to avoid circular inclusion.
42169 2006-08-28 Jim Meyering <jim@meyering.net>
42171 * doc/visibility.texi: Actually read and correct the grammar of the
42172 sentence affected by yesterday's change.
42174 2006-08-28 Eric Blake <ebb9@byu.net>
42176 * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
42179 2006-08-28 Eric Blake <ebb9@byu.net>
42181 * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
42183 2006-08-28 Eric Blake <ebb9@byu.net>
42185 * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
42187 2006-08-28 Bruno Haible <bruno@clisp.org>
42189 * modules/c-strstr: New file, from GNU gettext.
42190 * MODULES.html.sh (String handling): Add c-strstr.
42192 2006-08-28 Bruno Haible <bruno@clisp.org>
42194 * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
42196 Reported by Eric Blake.
42198 2006-08-28 Bruno Haible <bruno@clisp.org>
42200 * lib/vasnprintf.c (EOVERFLOW): Remove definition.
42201 (VASNPRINTF): Return a string of length > INT_MAX without failing.
42202 * lib/vasprintf.c: Include errno.h, limits.h.
42203 (EOVERFLOW): New fallback definition.
42204 (vasprintf): Test here whether the string length is > INT_MAX.
42205 * lib/vsnprintf.c: Include errno.h, limits.h.
42206 (EOVERFLOW): New fallback definition.
42207 (vsnprintf): Fix bug when generated string was too long for the buffer.
42208 Test here whether the string length is > INT_MAX.
42210 2006-08-28 Bruno Haible <bruno@clisp.org>
42212 * lib/inttypes_.h (SCNX*): Remove definitions.
42213 Reported by Eric Blake.
42215 2006-08-28 Bruno Haible <bruno@clisp.org>
42217 * lib/c-strstr.h: New file, from GNU gettext.
42218 * lib/c-strstr.c: New file, from GNU gettext.
42220 2006-08-28 Bruno Haible <bruno@clisp.org>
42222 * gnulib-tool: Reorder some statements.
42224 2006-08-28 Bruno Haible <bruno@clisp.org>
42226 * gnulib-tool: New option --makefile-name.
42227 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
42229 (func_import): Write $makefile_name to the cache file, and read it from
42230 there unless explicitly specified. Use $makefile_name as file name
42231 instead of Makefile.am. Adjust the recommendations accordingly.
42233 2006-08-28 Bruno Haible <bruno@clisp.org>
42235 * gnulib-tool (func_verify_module): Check against misapplying patch.
42237 2006-08-28 Bruno Haible <bruno@clisp.org>
42239 * gnulib-tool (func_relativize, func_relconcat): New functions.
42240 Give an error if --local-dir is given with --update.
42241 Remove trailing slashes from $local_gnulib_dir.
42242 (func_import): Store the relativized $local_gnulib_dir in
42243 gnulib-cache.m4, and read it from there if not specified explicitly.
42245 2006-08-28 Bruno Haible <bruno@clisp.org>
42247 * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
42248 is the current directory. Respect also $local_gnulib_dir.
42250 2006-08-28 Bruno Haible <bruno@clisp.org>
42251 Simon Josefsson <jas@extundo.com>
42254 * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
42256 2006-08-27 Jim Meyering <jim@meyering.net>
42258 * doc/visibility.texi: Remove duplicate word: "pointer".
42260 2006-08-26 Bruno Haible <bruno@clisp.org>
42262 * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
42263 Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
42264 (Makefile.am): Create inttypes.h from inttypes_.h.
42265 * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
42267 * modules/imaxabs: New file.
42269 * modules/imaxdiv: New file.
42271 2006-08-26 Bruno Haible <bruno@clisp.org>
42273 * m4/inttypes.m4: New file.
42274 * m4/_inttypes_h.m4: Remove file.
42275 * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
42277 * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
42279 * m4/imaxabs.m4: New file.
42281 * m4/imaxdiv.m4: New file.
42283 2006-08-26 Bruno Haible <bruno@clisp.org>
42285 * lib/inttypes_.h: New file.
42286 * lib/inttypes.h: Remove file.
42287 * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
42289 * lib/imaxabs.c: New file.
42291 * lib/imaxdiv.c: New file.
42293 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
42295 New config-h module, so that "make" output needn't be cluttered
42296 by -DHAVE_CONFIG_H.
42297 * MODULES.html.sh (Support for building libraries and executables):
42299 * modules/config-h: New file.
42300 * gnulib-tool (nl, sed_transform_lib_file): New vars.
42301 (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
42302 the config-h module is used.
42304 New configmake module, so that "make" output needn't be cluttered
42305 by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
42306 * MODULES.html.sh (Support for building libraries and executables):
42308 * modules/configmake: New file.
42310 2006-08-25 Paul Eggert <eggert@cs.ucla.edu>
42312 * m4/config-h.m4: New file.
42314 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
42316 * config/srclist.txt: Add elisp-comp.
42318 2006-08-24 Paul Eggert <eggert@cs.ucla.edu>
42320 * MODULES.html.sh (Support for building libraries and executables):
42322 * build-aux/elisp-comp: New file.
42323 * modules/elisp-comp: New file.
42325 2006-08-24 Bruno Haible <bruno@clisp.org>
42327 * gnulib-tool (func_create_testdir): Use non-default values of
42328 sourcebase and m4base.
42330 2006-08-24 Bruno Haible <bruno@clisp.org>
42332 * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
42335 2006-08-23 Paul Eggert <eggert@cs.ucla.edu>
42337 * modules/openat (Depends-on): Add lchown.
42339 2006-08-23 Bruno Haible <bruno@clisp.org>
42341 * gnulib-tool (func_import, func_create_testdir): Emit an invocation
42342 of gl_LOCK_EARLY instead of gl_LOCK.
42344 2006-08-23 Bruno Haible <bruno@clisp.org>
42346 * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
42348 Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
42350 2006-08-23 Bruno Haible <bruno@clisp.org>
42352 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
42355 * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
42356 (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
42357 (gl_LOCK): New macro.
42359 2006-08-22 Simon Josefsson <jas@extundo.com>
42361 * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
42364 2006-08-22 Simon Josefsson <jas@extundo.com>
42366 * MODULES.html.sh: Add "Support for maintaining and release
42369 * build-aux/gnupload: New file, from coreutils.
42371 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42373 Avoid the need for AC_LIBSOURCES in m4 macros.
42374 * modules/arcfour (EXTRA_DIST): Add arcfour.h.
42375 * modules/arctwo (EXTRA_DIST): Add arctwo.h.
42376 * modules/check-version (EXTRA_DIST): Add check-version.h.
42377 * modules/crc (EXTRA_DIST): Add crc.h.
42378 * modules/des (EXTRA_DIST): Add des.h.
42379 * modules/gc (EXTRA_DIST): Add gc.h.
42380 * modules/getdelim (EXTRA_DIST): Add getdelim.h.
42381 * modules/getline (EXTRA_DIST): Add getline.h.
42382 * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
42383 * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
42384 * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
42385 * modules/md2 (EXTRA_DIST): Add md2.h.
42386 * modules/md4 (EXTRA_DIST): Add md4.h.
42387 * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
42388 * modules/read-file (EXTRA_DIST): Add read-file.h.
42389 * modules/readline (EXTRA_DIST): Add readline.h.
42390 * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
42391 rijndael-api-fst.h.
42393 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42395 * m4/rijndael.m4 (gl_ARCFOUR):
42396 * m4/arctwo.m4 (gl_ARCTWO):
42397 * m4/check-version.m4 (gl_CHECK_VERSION):
42398 * m4/crc.m4 (gl_CRC):
42399 * m4/des.m4 (gl_DES):
42400 * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
42401 * m4/gc.m4 (gl_GC):
42402 * m4/getdelim.m4 (gl_FUNC_GETDELIM):
42403 * m4/getline.m4 (gl_FUNC_GETLINE):
42404 * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
42405 * m4/hmac-md5.m4 (gl_HMAC_MD5):
42406 * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
42407 * m4/md2.m4 (gl_MD2):
42408 * m4/md4.m4 (gl_MD4):
42409 * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
42410 * m4/read-file.m4 (gl_FUNC_READ_FILE):
42411 * m4/readline.m4 (gl_FUNC_READLINE):
42412 * m4/rijndael.m4 (gl_RIJNDAEL):
42413 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42414 to get the necessary .h files and whatnot.
42416 2006-08-22 Paul Eggert <eggert@cs.ucla.edu>
42418 * config/srclist.txt: Remove gnupload, since coreutils now syncs from
42419 gnulib rather than the other way around.
42420 * config/srclistvars.sh (COREUTILS): Remove.
42422 2006-08-22 Jim Meyering <jim@meyering.net>
42424 * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
42426 * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
42428 2006-08-22 Eric Blake <ebb9@byu.net>
42430 * modules/regexprops-generic: New file.
42431 * MODULES.html.sh (Support for building documentation): List it.
42433 2006-08-22 Eric Blake <ebb9@byu.net>
42435 * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
42436 * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
42437 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
42438 * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
42440 2006-08-22 Bruno Haible <bruno@clisp.org>
42442 * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
42443 and lib_LTLIBRARIES like the other lib_* variables.
42445 2006-08-22 Bruno Haible <bruno@clisp.org>
42447 * build-aux/x-to-1.in: New file, from GNU gettext.
42449 2006-08-22 Bruno Haible <bruno@clisp.org>
42451 * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
42454 2006-08-22 Bruno Haible <bruno@clisp.org>
42456 * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
42459 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
42462 * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
42464 Problem reported by Bruno Haible.
42466 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
42468 Avoid the need for AC_LIBSOURCES in m4 macros.
42469 * modules/acl (EXTRA_DIST): Add acl.h.
42470 * modules/argmatch (Files): Add m4/argmatch.m4.
42471 (configure.ac): Add gl_ARGMATCH.
42472 (EXTRA_DIST): Renamed from lib_SOURCES, for
42473 consistency with the other modules. Remove argmatch.c.
42474 * modules/backupfile (EXTRA_DIST): Add backupfile.h.
42475 * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
42476 * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
42477 * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
42478 * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
42479 * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
42480 * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
42481 * modules/cloexec (EXTRA_DIST): Add cloexec.h.
42482 * modules/close-stream (EXTRA_DIST): Add close-stream.h.
42483 * modules/closeout (EXTRA_DIST): Add closeout.h.
42484 * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
42485 * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
42486 * modules/dirfd (EXTRA_DIST): Add dirfd.h.
42487 * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES. Add
42488 dirname.h; remove basename.c and stripslash.c.
42489 * modules/exclude (EXTRA_DIST): Add exclude.h.
42490 * modules/exitfail (EXTRA_DIST): Add exitfail.h.
42491 * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
42492 * modules/file-type (EXTRA_DIST): Add file-type.h.
42493 * modules/filemode (EXTRA_DIST): Add filemode.h.
42494 * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
42495 * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42496 * modules/fpending (EXTRA_DIST): Add __fpending.h.
42497 * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
42498 * modules/fsusage (EXTRA_DIST): Add fsusage.h.
42499 * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
42500 * modules/getcwd (EXTRA_DIST): Add getcwd.h.
42501 * modules/getdate (EXTRA_DIST): Add getdate.c.
42502 * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
42503 * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
42504 * modules/getpass (EXTRA_DIST): Add getpass.h.
42505 * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
42506 * modules/group-member (EXTRA_DIST): Add group-member.h.
42507 * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
42508 * modules/hash (EXTRA_DIST): Add hash.h.
42509 * modules/human (EXTRA_DIST): Add human.h.
42510 * modules/inttypes (EXTRA_DIST): Add inttypes.h.
42511 * modules/lchmod (EXTRA_DIST): Add lchmod.h.
42512 * modules/lchown (EXTRA_DIST): Add lchown.h.
42513 * modules/long-options (EXTRA_DIST): Add long-options.h.
42514 * modules/lstat (EXTRA_DIST): Add lstat.h.
42515 * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
42516 * modules/memcoll (EXTRA_DIST): Add memcoll.h.
42517 * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
42518 * modules/memrchr (EXTRA_DIST): Add memrchr.h.
42519 * modules/memxor (EXTRA_DIST): Add memxor.h.
42520 * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
42521 * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
42522 * modules/mountlist (EXTRA_DIST): Add mountlist.h.
42523 * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
42524 * modules/pathmax (EXTRA_DIST): Add pathmax.h.
42525 * modules/physmem (EXTRA_DIST): Add physmem.h.
42526 * modules/posixtm (EXTRA_DIST): Add posixtm.h.
42527 * modules/posixver (EXTRA_DIST): Add posixver.h.
42528 * modules/quote (EXTRA_DIST): Add quote.h.
42529 * modules/quotearg (EXTRA_DIST): Add quotearg.h.
42530 * modules/readtokens (EXTRA_DIST): Add readtokens.h.
42531 * modules/readutmp (EXTRA_DIST): Add readutmp.h.
42532 * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
42533 regex_internal.h regexec.c.
42534 * modules/safe-read (EXTRA_DIST): Add safe-read.h.
42535 * modules/safe-write (EXTRA_DIST): Add safe-write.h.
42536 * modules/same (EXTRA_DIST): Add same.h.
42537 * modules/same-inode (EXTRA_DIST): Add same-inode.h.
42538 * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
42539 * modules/savedir (EXTRA_DIST): Add savedir.h.
42540 * modules/sha1 (EXTRA_DIST): Add sha1.h.
42541 * modules/sig2str (EXTRA_DIST): Add sig2str.h.
42542 * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
42543 * modules/stat-time (EXTRA_DIST): Add stat-time.h.
42544 * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
42545 * modules/strdup (EXTRA_DIST): Add strdup.h.
42546 * modules/strftime (EXTRA_DIST): Add strftime.h.
42547 * modules/strndup (EXTRA_DIST): Add strndup.h.
42548 * modules/strnlen (EXTRA_DIST): Add strnlen.h.
42549 * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
42550 * modules/time_r (EXTRA_DIST): Add time_r.h.
42551 * modules/timespec (EXTRA_DIST): Add timespec.h.
42552 * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
42553 * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
42554 * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
42555 * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
42556 * modules/userspec (EXTRA_DIST): Add userspec.h.
42557 * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
42558 * modules/utimens (EXTRA_DIST): Add utimens.h.
42559 * modules/xalloc (EXTRA_DIST): Add xalloc.h.
42560 * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
42561 * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
42562 * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
42563 * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
42564 * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
42565 * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
42566 * modules/yesno (EXTRA_DIST): Add yesno.h.
42568 2006-08-21 Paul Eggert <eggert@cs.ucla.edu>
42570 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
42572 * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
42573 * m4/dev-ino.m4, same-inode.m4: Remove.
42575 * m4/_inttypes_h.m4 (gl_INTTYPES_H):
42576 * m4/acl.m4 (AC_FUNC_ACL):
42577 * m4/backupfile.m4 (gl_BACKUPFILE):
42578 * m4/c-strtod.m4 (gl_C99_STRTOLD):
42579 * m4/canon-host.m4 (gl_CANON_HOST):
42580 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
42581 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
42582 * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
42583 * m4/cloexec.m4 (gl_CLOEXEC):
42584 * m4/close-stream.m4 (gl_CLOSE_STREAM):
42585 * m4/closeout.m4 (gl_CLOSEOUT):
42586 * m4/dirfd.m4 (gl_FUNC_DIRFD):
42587 * m4/dirname.m4 (gl_DIRNAME):
42588 * m4/exclude.m4 (gl_EXCLUDE):
42589 * m4/exitfail.m4 (gl_EXITFAIL):
42590 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
42591 * m4/file-type.m4 (gl_FILE_TYPE):
42592 * m4/filemode.m4 (gl_FILEMODE):
42593 * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
42594 * m4/fpending.m4 (gl_FUNC_FPENDING):
42595 * m4/fprintftime.m4 (gl_FPRINTFTIME):
42596 * m4/fts.m4 (gl_FUNC_FTS):
42597 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
42598 * m4/getdate.m4 (gl_GETDATE):
42599 * m4/gethrxtime.m4 (gl_GETHRXTIME):
42600 * m4/getpagesize.m4 (gl_GETPAGESIZE):
42601 * m4/getpass.m4 (gl_FUNC_GETPASS):
42602 * m4/gettime.m4 (gl_GETTIME):
42603 * m4/getugroups.m4 (gl_GETUGROUPS):
42604 * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
42605 * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
42606 * m4/hard-locale.m4 (gl_HARD_LOCALE):
42607 * m4/hash.m4 (gl_HASH):
42608 * m4/idcache.m4 (gl_IDCACHE):
42609 * m4/lchmod.m4 (gl_FUNC_LCHMOD):
42610 * m4/lchown.m4 (gl_FUNC_LCHOWN):
42611 * m4/long-options.m4 (gl_LONG_OPTIONS):
42612 * m4/lstat.m4 (gl_FUNC_LSTAT):
42613 * m4/md5.m4 (gl_MD5):
42614 * m4/memcasecmp.m4 (gl_MEMCASECMP):
42615 * m4/memcoll.m4 (gl_MEMCOLL):
42616 * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
42617 * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
42618 * m4/memxor.m4 (gl_MEMXOR):
42619 * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
42620 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
42621 * m4/modechange.m4 (gl_MODECHANGE):
42622 * m4/mountlist.m4 (gl_MOUNTLIST):
42623 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
42624 * m4/openat.m4 (gl_FUNC_OPENAT):
42625 * m4/pathmax.m4 (gl_PATHMAX):
42626 * m4/physmem.m4 (gl_PHYSMEM):
42627 * m4/posixtm.m4 (gl_POSIXTM):
42628 * m4/posixver.m4 (gl_POSIXVER):
42629 * m4/quote.m4 (gl_QUOTE):
42630 * m4/quotearg.m4 (gl_QUOTEARG):
42631 * m4/readtokens.m4 (gl_READTOKENS):
42632 * m4/readutmp.m4 (gl_READUTMP):
42633 * m4/regex.m4 (gl_REGEX):
42634 * m4/safe-read.m4 (gl_SAFE_READ):
42635 * m4/safe-write.m4 (gl_SAFE_WRITE):
42636 * m4/same.m4 (gl_SAME):
42637 * m4/save-cwd.m4 (gl_SAVE_CWD):
42638 * m4/savedir.m4 (gl_SAVEDIR):
42639 * m4/settime.m4 (gl_SETTIME):
42640 * m4/sha1.m4 (gl_SHA1):
42641 * m4/sig2str.m4 (gl_FUNC_SIG2STR):
42642 * m4/stat-macros.m4 (gl_STAT_MACROS):
42643 * m4/stat-time.m4 (gl_STAT_TIME):
42644 * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
42645 * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
42646 * m4/strdup.m4 (gl_FUNC_STRDUP):
42647 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
42648 * m4/strndup.m4 (gl_FUNC_STRNDUP):
42649 * m4/strnlen.m4 (gl_FUNC_STRNLEN):
42650 * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
42651 * m4/time_r.m4 (gl_TIME_R):
42652 * m4/timespec.m4 (gl_TIMESPEC):
42653 * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
42654 * m4/unlinkdir.m4 (gl_UNLINKDIR):
42655 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
42656 * m4/userspec.m4 (gl_USERSPEC):
42657 * m4/utimecmp.m4 (gl_UTIMECMP):
42658 * m4/utimens.m4 (gl_UTIMENS):
42659 * m4/xalloc.m4 (gl_XALLOC):
42660 * m4/xgetcwd.m4 (gl_XGETCWD):
42661 * m4/xnanosleep.m4 (gl_XNANOSLEEP):
42662 * m4/xreadlink.m4 (gl_XREADLINK):
42663 * m4/xstrtod.m4 (gl_XSTRTOD):
42664 * m4/yesno.m4 (gl_YESNO):
42665 Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
42666 to get the necessary .h files and whatnot.
42668 2006-08-21 Mark D. Baushke <mdb@gnu.org>
42669 Bruno Haible <bruno@clisp.org>
42671 * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
42672 /bin/sh understanding of '!' conditional negation.
42674 2006-08-21 Jim Meyering <jim@meyering.net>
42676 * modules/openat (Depends-on): Really alphabetize.
42678 * modules/acl (Depends-on): Add error and quote.
42680 * check-module (find_included_lib_files): Add at-func.c to the
42681 ok-to-include-more-than-once white list.
42683 * modules/openat (Depends-on): Add lstat. Alphabetize.
42685 2006-08-21 Bruno Haible <bruno@clisp.org>
42687 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
42688 Emit a pkgdata_DATA variable only if some snippets add contents to it.
42689 Reported by Martin Lambers <marlam@marlam.de>.
42691 2006-08-21 Bruno Haible <bruno@clisp.org>
42693 * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
42694 specify an installation location, don't emit a noinst_LIBRARIES or
42695 noinst_LTLIBRARIES assignment.
42697 2006-08-21 Bruno Haible <bruno@clisp.org>
42700 * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
42701 BeOS has mbrtowc() but no <wctype.h>.
42703 2006-08-21 Bruno Haible <bruno@clisp.org>
42706 * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
42709 2006-08-21 Bruno Haible <bruno@clisp.org>
42712 * lib/mbchar.h: Include <wctype.h> only if it exists.
42714 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
42716 Remove files that are no longer needed by their respective modules.
42717 * m4/obstack.m4: Remove.
42718 * m4/strerror_r.m4: Remove.
42719 * m4/uint32_t.m4: Remove.
42720 * m4/uintptr_t.m4: Remove.
42721 * m4/ullong_max.m4: Remove.
42722 * m4/xstrtoimax.m4: Remove.
42723 * m4/xstrtoumax.m4: Remove.
42725 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
42726 gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
42727 dependencies now capture this.
42729 * m4/cycle-check.m4 (gl_CYCLE_CHECK):
42730 Do not use AC_LIBSOURCES, since gnulib modules now do this.
42731 * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
42732 * m4/human.m4 (gl_HUMAN): Likewise.
42733 * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
42734 * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
42736 * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
42738 * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
42739 gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
42741 * m4/human.m4 (gl_HUMAN): Likewise.
42742 * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
42743 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
42744 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42745 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42746 * m4/xstrtol (gl_XSTRTOL): Likewise.
42748 * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
42749 AC_TYPE_LONG_LONG_INT.
42750 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
42751 * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
42752 * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
42753 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
42755 * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
42758 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
42759 (gl_PREREQ_XSTRTOUL): Remove.
42761 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
42763 * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
42766 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
42768 Add and change modules to make it easier for coreutils to use
42770 * modules/backupfile (Files): Remove m4/d-ino.m4.
42771 (Depends-on): Add d-ino.
42772 * modules/cycle-check (Depends-on): Add stdint.
42773 (lib_SOURCES): Add cycle-check.h.
42774 * modules/d-ino: New module.
42775 * modules/d-type: New module.
42776 * modules/error (Files): Remove m4/strerror_r.m4.
42777 * modules/filemode (Files): Add m4/st_dm_mode.m4.
42778 * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42779 m4/inttypes_h.m4, m4/uintmax_t.m4.
42780 (Depends-on): Add stdint.
42781 (lib_SOURCES): Add fsusage.h.
42782 * modules/getcwd (Files): Remove d-ino.m4.
42783 (Depends-on): Add d-ino.
42784 * modules/getndelim2 (Depends-on): Add stdint.
42785 * modules/glob (Files): Remove m4/d-type.m4.
42786 (Depends-on): Add d-type.
42787 * modules/host-os: New module.
42788 * modules/human (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
42789 m4/inttypes_h.m4, m4/uintmax_t.m4.
42790 * Depends-on: Add stdint.
42791 (lib_SOURCES): Add human.h.
42792 * modules/inttostr (Files): Remove m4/intmax_t.m4,
42793 m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
42794 m4/uintmax_t.m4, m4/ulonglong.m4.
42795 (Depends-on): Add stdint.
42796 (EXTRA_DIST): Add inttostr.h.
42797 * modules/lchmod: New module.
42798 * modules/link-follow: New module.
42799 * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
42800 (Depends-on): Add lchmod.
42801 * modules/mkstemp (Files): Remove m4/ulonglong.m4,
42802 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
42803 (Depends-on): Add stdint.
42804 * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
42805 m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
42806 (Depends-on): Add stdint.
42807 (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
42808 * modules/perl: New module.
42809 * modules/regex (Depends-on): Add stdint.
42810 * modules/rmdir-errno: New module.
42811 * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42813 (Depends-on): Add stdint.
42814 * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
42816 (Depends-on): Add stdint.
42817 * modules/unlink-busy: New module.
42818 * modules/utimecmp (Depends-on): Add stdint.
42819 * modules/uptime: New module.
42820 * modules/winsz-ioctl: New module.
42821 * modules/winsz-termios: New module.
42822 * modules/xnanosleep (Depends-on): Add nanosleep.
42823 * modules/ullong_max: Remove.
42824 * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
42825 (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
42826 * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
42827 m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
42828 (Depends-on): Add inttypes.
42829 (lib_SOURCES): Add xstrtol.h.
42830 * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
42831 (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
42832 * MODULES.html.sh: Move 'assert' into the assert section.
42833 Move 'dummy' into the linking section.
42835 Add section for compatibility checks for POSIX:2001 functions,
42836 and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
42837 winsz-ioctl, and winsz-termios into it.
42839 Add top-level Misc section and put host-os, perl, and uptime
42842 2006-08-20 Paul Eggert <eggert@cs.ucla.edu>
42844 * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
42845 now assume the stdint module. Do not include inttypes.h.
42846 * lib/fsusage.h: Likewise.
42847 * lib/getndelim2.c: Likewise.
42848 * lib/human.h: Likewise.
42849 * lib/inttostr.h: Likewise.
42850 * lib/obstack.c: Likewise.
42851 * lib/regex_internal.h: Likewise.
42852 * lib/tempname.c: Likewise.
42853 * lib/utimecmp.c: Likewise.
42854 * lib/xstrtol.h: Likewise.
42856 * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
42858 * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
42859 e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
42860 * lib/xtime.h: Likewise.
42862 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
42864 * modules/openat (Files): Add lib/fchmodat.c.
42865 Fixes problem reported by Jay Youngman.
42867 2006-08-19 Paul Eggert <eggert@cs.ucla.edu>
42869 * lib/fchmodat.c: New file, from coreutils. This was inadvertently
42870 omitted in the 2006-08-17 update. Problem reported by Jay Youngman.
42872 2006-08-18 Paul Eggert <eggert@cs.ucla.edu>
42873 Bruno Haible <bruno@clisp.org>
42875 * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
42876 and is a script that invokes bison. Tighten the code. Add comments.
42878 2006-08-18 Jim Meyering <jim@meyering.net>
42880 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
42881 CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
42882 gettime.c. Gabor Z. Papp reported that gethrxtime-using programs
42883 failed to link due to unresolved clock_gettime on a linux-2.4.x system.
42885 2006-08-18 Bruno Haible <bruno@clisp.org>
42887 * modules/bison-i18n: New file.
42888 * MODULES.html.sh (Internationalization functions): Add it.
42890 2006-08-18 Bruno Haible <bruno@clisp.org>
42892 * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
42893 sys/statvfs.h. When getmntinfo was found, check its declaration and
42894 set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
42896 2006-08-18 Bruno Haible <bruno@clisp.org>
42898 * m4/bison-i18n.m4: New file, from bison.
42900 2006-08-18 Bruno Haible <bruno@clisp.org>
42902 * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
42903 (ME_DUMMY): Treat "kernfs" as a dummy.
42904 (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
42906 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
42908 Update from coreutils.
42910 2006-08-15 Jim Meyering <jim@meyering.net>
42912 * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
42914 2006-01-17 Jim Meyering <jim@meyering.net>
42916 * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
42918 2006-01-11 Jim Meyering <jim@meyering.net>
42920 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
42921 Check for the lchmod function.
42923 2006-08-17 Paul Eggert <eggert@cs.ucla.edu>
42925 Update from coreutils.
42927 * lib/__fpending.h: Add copyright notice.
42928 * lib/fprintftime.h: Likewise.
42929 * lib/savedir.c: Use (C) in copyright notice.
42930 * lib/savedir.h: Likewise.
42932 2006-08-15 Jim Meyering <jim@meyering.net>
42934 * lib/at-func.c: New file, with the logic of all emulated at-functions.
42935 * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
42936 in support of the EXPECTED_ERRNO macro.
42937 * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
42938 definitions. Instead, define the appropriate symbols and include
42940 * lib/mkdirat.c (mkdirat): Likewise.
42941 * lib/fchmodat.c (fchmodat): Likewise.
42942 (ENOSYS): Remove definition.
42943 * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
42944 it. Don't include "unistd--.h" -- it wasn't ever used.
42946 2006-01-17 Jim Meyering <jim@meyering.net>
42948 Rewrite fts.c not to change the current working directory,
42949 by using openat, fstatat, fdopendir, etc..
42951 * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
42952 (HAVE_OPENAT_SUPPORT): Define.
42953 [_LIBC] (fchdir): Don't undef or define; no longer used.
42954 (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
42955 Now, this `function' always succeeds, and consumes its file descriptor
42956 parameter -- so callers must not close such FDs. Update callers.
42957 (diropen_fd, opendirat, cwd_advance_fd): New functions.
42958 (diropen): Add parameter, SP. Adjust all callers.
42959 Implement using diropen_fd, rather than open.
42960 (fts_open): Initialize new member, fts_cwd_fd.
42961 Remove fts_rft-setting code.
42962 (fts_close): Close fts_cwd_fd, if necessary.
42963 (__opendir2): Define in terms of opendir or opendirat,
42964 depending on whether the FST_NOCHDIR flag is set.
42965 (fts_build): Since fts_safe_changedir consumes its FD, and since
42966 this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
42967 and close the dup'd file descriptor upon failure.
42968 (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
42969 (fts_safe_changedir): Tweak semantics to reflect that this function
42970 now calls cwd_advance_fd and hence consumes its FD argument.
42971 * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
42972 [struct FTS] (fts_rft): Remove now-unused member.
42973 [struct FTS] (fts_cycle.state): Improve comment.
42975 * lib/openat.c (openat_needs_fchdir): New function.
42976 * lib/openat.h (openat_needs_fchdir): Declare it.
42978 2006-08-16 Paul Eggert <eggert@cs.ucla.edu>
42980 * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
42981 Problem and fix reported by Pádraig Brady in
42982 <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
42984 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
42986 * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
42988 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
42990 * lib/memcoll.c (memcoll): Optimize for the common case where the
42991 arguments are bytewise equal.
42993 2006-08-15 Paul Eggert <eggert@cs.ucla.edu>
42995 * doc/regexprops-generic.texi: Add a copyright notice.
42997 2006-08-15 Bruno Haible <bruno@clisp.org>
42999 * modules/tmpdir (License): Change to LGPL.
43001 2006-08-15 Bruno Haible <bruno@clisp.org>
43003 * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
43006 2006-08-14 Simon Josefsson <jas@extundo.com>
43008 * config/srclist.txt: Add gnupload.
43010 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43012 Change copyright notice from LGPL 2 to GPL 2, since that's the
43013 standard form used in the gnulib repository.
43014 * tests/test-lock.c: Likewise.
43015 * tests/test-stdint.c: Likewise.
43016 * tests/test-tls.c: Likewise.
43018 * users.txt: Add bison, diffutils, libprelude, prelude-lml,
43019 prelude-manager. User shorter URLs for GNU projects, without '?'.
43020 Add copyright notice.
43022 * check-module: Add copyright notice. Output a copyright
43023 notice if "--version" is specified.
43024 * modules/COPYING: New file.
43025 * tests/test-getaddrinfo.c: Add copyright notice.
43026 * tests/test-verify.c: Likewise.
43028 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43030 Change copyright notice from LGPL 2 to GPL 2, since that's the
43031 standard form used in the gnulib repository.
43032 * lib/lock.c: LGPL -> GPL.
43033 * lib/lock.h: Likewise.
43034 * lib/strnlen1.c: Likewise.
43035 * lib/strnlen1.h: Likewise.
43036 * lib/tls.c: Likewise.
43037 * lib/tls.h: Likewise.
43038 * lib/tmpdir.c: Likewise.
43040 * lib/TODO: Remove; this belongs only in coreutils.
43042 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43044 Add copyright notices to long-enough files that lack them, since
43045 otherwise the files aren't clearly free. Use the same notice that
43046 getdate.texi already uses.
43047 * doc/alloca-opt.texi: Add copyright notice.
43048 * doc/alloca.texi: Likewise.
43049 * doc/ctime.texi: Likewise.
43050 * doc/functions.texi: Likewise.
43051 * doc/gcd.texi: Likewise.
43052 * doc/gnulib-tool.texi: Likewise.
43053 * doc/inet_ntoa.texi: Likewise.
43054 * doc/visibility.texi: Likewise.
43056 * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
43057 * doc/quote.texi: Add copyright notice.
43059 * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
43060 4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B. SunOS 4.1.3
43061 was Solaris 1.1A. Remove space before B in Solaris 1.1.1B.
43062 Mention SunOS 5.11. Mention that everything before SunOS 5.7
43063 is now obsolete, and give a pointer to the Sun list.
43064 Add copyright notice.
43066 2006-08-14 Paul Eggert <eggert@cs.ucla.edu>
43068 * config/srclistvars.sh: Add copyright notice.
43070 2006-08-14 Eric Blake <ebb9@byu.net>
43072 Import the following change from libc:
43074 2006-08-12 Ulrich Drepper <drepper@redhat.com>
43077 * lib/misc/error.c: Add space between program name and message if file
43080 2006-08-12 Karl Berry <karl@gnu.org>
43082 * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
43083 remove, these originate in gnulib now.
43085 2006-08-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43087 * doc/Makefile (standards.info standards.html standards.dvi):
43088 Also depend on make-stds.texi.
43090 2006-08-11 Paul Eggert <eggert@cs.ucla.edu>
43092 * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
43093 HAVE_PIPE. Fix a file descriptor leak when fd_safer fails.
43095 * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
43096 in wchar_t. Problem reported by Eric Blake.
43098 * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
43099 LEN is smaller than SIZE. Suggested by Bruno Haible.
43100 Also, help the compiler to keep LEN in a register.
43102 2006-08-11 Eric Blake <ebb9@byu.net>
43104 * users.txt: Sort. Add tar.
43106 2006-08-11 Bruno Haible <bruno@clisp.org>
43108 * users.txt: New file.
43110 2006-08-11 Bruno Haible <bruno@clisp.org>
43112 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
43113 before <wchar.h>. Needed for OSF/1 and BSD/OS.
43115 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43117 * modules/snprintf (Depends-on): Remove minmax.
43118 (Maintainer): Add self and Bruno.
43120 2006-08-10 Paul Eggert <eggert@cs.ucla.edu>
43122 * lib/.cppi-disable: Add snprintf.h, socket_.h.
43123 * lib/snprintf.c: Include <errno.h> and <limits.h>.
43124 (EOVERFLOW): Define if the system does not.
43125 Do not include "minmax.h"; it wasn't used.
43126 (snprintf): Don't assume size_t promotes to an unsigned type.
43127 Fix bug when generated string was too long for the buffer: the
43128 buffer's contents are supposed to be the initial prefix of the
43129 output. Don't assume vasnprintf returns EOVERFLOW if the size
43130 exceeds INT_MAX; do the check ourselves.
43132 Import the following changes from libc:
43134 2006-06-02 Jakub Jelinek <jakub@redhat.com>
43136 * lib/posix/regex_internal.c (re_string_skip_chars): If no character
43137 has been converted at all, set *last_wc to WEOF. If mbrtowc failed,
43138 set wc to the byte which couldn't be converted.
43139 (re_string_reconstruct): Don't clear valid_raw_len before calling
43140 re_string_skip_chars. If wc is WEOF after re_string_skip_chars, set
43141 tip_context using re_string_context_at.
43143 2006-05-02 Ulrich Drepper <drepper@redhat.com>
43145 * lib/posix/regex.h: g++ still cannot handled [restrict].
43147 2006-04-21 Ulrich Drepper <drepper@redhat.com>
43149 * lib/posix/regex.h: Remove special handling for VMS.
43151 2006-08-10 Jim Meyering <jim@meyering.net>
43153 * modules/same-inode: New module.
43154 * modules/dev-ino: New module.
43155 * modules/cycle-check: Depend on these modules, rather than simply
43156 including their .h files.
43157 (Makefile.am): Don't list cycle-check.[ch] here, now that they're
43158 required via m4/cycle-check.m4.
43159 * modules/same: Depend on new same-inode module, rather than
43160 including same-inode.h.
43161 * modules/chdir-safer: New file.
43163 * modules/chown (Depends-on): Add stat-macros.
43165 2006-08-10 Jim Meyering <jim@meyering.net>
43167 * m4/cycle-check.m4: New file.
43168 Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
43169 * m4/dev-ino.m4, m4/same-inode.m4: New files.
43171 2006-08-10 Eric Blake <ebb9@byu.net>
43173 * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
43174 in from original proposal.
43176 2006-08-10 Eric Blake <ebb9@byu.net>
43177 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43179 * gnulib-tool (func_import): Detect unexpanded macros in gnulib
43182 2006-08-10 Bruno Haible <bruno@clisp.org>
43184 * gnulib-tool (func_create_testdir): Detect unexpanded macros here
43187 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43189 Sync from coreutils.
43191 2006-07-19 Mike Frysinger <vapier@gentoo.org>
43193 * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
43194 Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
43196 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43198 * modules/restrict: Remove; no longer needed now that we assume
43199 Autoconf 2.59 or later.
43200 * MODULES.html.sh: Remove 'restrict'.
43201 * modules/argp (Depends-on): Remove 'restrict'.
43202 * modules/base64 (Depends-on): Likewise.
43203 * modules/gc (Depends-on): Likewise.
43204 * modules/getaddrinfo (Depends-on): Likewise.
43205 * modules/glob (Depends-on): Likewise.
43206 * modules/inet_ntop (Depends-on): Likewise.
43207 * modules/inet_pton (Depends-on): Likewise.
43208 * modules/memxor (Depends-on): Likewise.
43209 * modules/regex (Depends-on): Likewise.
43210 * modules/strtok_r (Depends-on): Likewise.
43211 * modules/time_r (Depends-on): Likewise.
43213 2006-08-09 Paul Eggert <eggert@cs.ucla.edu>
43215 * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
43216 * m4/gc.m4 (gl_PREREQ_GC): Likewise.
43217 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
43218 * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
43219 * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
43220 * m4/memxor.m4 (gl_MEMXOR): Likewise.
43221 * m4/restrict.m4: Remove; no longer needed. All remaining uses of
43222 gl_C_RESTRICT replaced by AC_C_RESTRICT.
43224 Merge from coreutils.
43225 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
43226 gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
43227 * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
43228 * m4/time_r.m4 (gl_TIME_R): Likewise.
43230 2006-08-09 Karl Berry <karl@gnu.org>
43232 * config/srclist.txt: no more gettext-tools, per Bruno.
43234 2006-08-08 Eric Blake <ebb9@byu.net>
43236 * modules/verror: New module.
43237 * MODULES.html.sh: Document it.
43239 2006-08-08 Eric Blake <ebb9@byu.net>
43241 * lib/verror.h, lib/verror.c: New files.
43243 2006-08-08 Eric Blake <ebb9@byu.net>
43245 * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
43246 verror_at_line output complies with GNU Coding Standards even when
43249 2006-08-07 Bruno Haible <bruno@clisp.org>
43251 * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
43253 Reported by Ralf Wildenhues.
43255 2006-08-07 Bruno Haible <bruno@clisp.org>
43257 * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
43258 in an AC_DEFUN. Needed so that the autoconf snippets can use
43261 2006-08-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
43263 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43264 Initialize pkgdata_DATA.
43265 * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
43268 2006-08-06 Eric Blake <ebb9@byu.net>
43270 * lib/error.h: Fold in some upstream changes from glibc.
43271 * lib/error.c: Likewise.
43273 2006-08-04 Bruno Haible <bruno@clisp.org>
43275 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43276 Make the mostlyclean-local rule depend on mostlyclean-generic.
43277 Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
43279 2006-07-31 Bruno Haible <bruno@clisp.org>
43281 * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
43282 <stdlib.h>, <string.h>.
43284 2006-07-30 Bruno Haible <bruno@clisp.org>
43286 * modules/readlink (License): Change to LGPL.
43288 2006-07-30 Bruno Haible <bruno@clisp.org>
43290 * modules/javaversion (Makefile.am): Distribute javaversion.java and
43291 javaversion.class. Also install javaversion.class in $(pkgdatadir) and
43292 set PKGDATADIR to point to it.
43294 2006-07-30 Bruno Haible <bruno@clisp.org>
43296 * modules/csharpexec (configure.ac): Comment out macro invocation.
43297 * modules/javaexec (configure.ac): Likewise.
43298 * modules/javacomp-script (configure.ac): Likewise.
43300 * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
43302 2006-07-30 Bruno Haible <bruno@clisp.org>
43304 * modules/clean-temp (Depends-on): Add linkedhash-list, remove
43307 2006-07-30 Bruno Haible <bruno@clisp.org>
43309 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
43311 2006-07-30 Bruno Haible <bruno@clisp.org>
43313 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
43314 Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
43317 2006-07-29 Bruno Haible <bruno@clisp.org>
43319 Make it possible for gnulib-tool to work with locally modified or
43320 augmented gnulib repositories.
43321 * gnulib-tool (func_usage): Document --local-dir option.
43322 (local_gnulib_dir): New variable.
43323 Handle --local-dir option.
43324 (func_lookup_file): New function.
43325 (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
43326 (func_get_description, func_get_filelist, func_get_description,
43327 func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
43328 func_get_automake_snippet, func_get_include_directive,
43329 func_get_license, func_get_maintainer): Use func_lookup_file.
43330 (func_import, func_create_testdir): Use func_lookup_file.
43332 2006-07-29 Bruno Haible <bruno@clisp.org>
43334 * modules/setenv (Depends-on): Add unistd.
43336 2006-07-29 Bruno Haible <bruno@clisp.org>
43338 * lib/setenv.c: Undo unintended modification done on 2006-02-27.
43340 2006-07-29 Bruno Haible <bruno@clisp.org>
43342 * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
43344 2006-07-29 Bruno Haible <bruno@clisp.org>
43346 * gnulib-tool (import, update): If there is no Makefile.am, look at
43347 aclocal.m4, instead of bailing out.
43349 2006-07-29 Bruno Haible <bruno@clisp.org>
43351 * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
43352 Categorize the options by when they are useful.
43354 2006-07-29 Bruno Haible <bruno@clisp.org>
43356 * gnulib-tool (func_usage): Document option --no-libtool.
43357 Handle option --no-libtool.
43358 (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
43359 for changed semantics of $libtool variable.
43360 (func_import): Likewise. If libtool is not used, show this through
43361 an option --no-libtool.
43362 (func_create_testdir): Update.
43364 2006-07-29 Bruno Haible <bruno@clisp.org>
43366 * gnulib-tool (func_import): Extend error message about missing
43369 2006-07-29 Bruno Haible <bruno@clisp.org>
43371 * gnulib-tool (func_import): Don't create the $docbase directory if
43372 there is no file to store there.
43374 2006-07-29 Bruno Haible <bruno@clisp.org>
43376 * gnulib-tool (autoconf_minversion): If a --dir option is given and
43377 relevant, look for configure.ac there, not in the current directory.
43378 Also use a simple search for AC_PREREQ, not "autoconf --trace".
43380 2006-07-29 Bruno Haible <bruno@clisp.org>
43382 * gnulib-tool (SORT): New variable.
43383 (func_usage): Undocument --assume-autoconf option.
43384 Remove --assume-autoconf option handling.
43385 (autoconf_minversion): Determine from the contents of configure.ac.
43386 (func_import): Remove autoconf_minversion handling.
43387 Suggested by Eric Blake.
43389 2006-07-29 Bruno Haible <bruno@clisp.org>
43391 * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
43393 2006-07-29 Bruno Haible <bruno@clisp.org>
43395 * config/srclist.txt (*setenv.[ch]): Remove rules.
43397 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43399 * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
43401 2006-07-28 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43403 * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
43406 2006-07-28 Simon Josefsson <jas@extundo.com>
43408 * modules/inet_ntop (Depends-on): Depend on arpa_inet.
43409 * modules/inet_pton (Depends-on): Likewise.
43411 2006-07-28 Simon Josefsson <jas@extundo.com>
43413 * m4/netinet_in_h.m4: New file.
43415 2006-07-28 Simon Josefsson <jas@extundo.com>
43417 * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
43420 2006-07-28 Simon Josefsson <jas@extundo.com>
43422 * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
43425 2006-07-28 Paul Eggert <eggert@cs.ucla.edu>
43427 * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
43428 setgid on directories only if they set these bits.
43429 * lib/modechange.h: Remove obsolete comment about masks.
43431 2006-07-28 Eric Blake <ebb9@byu.net>
43433 * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
43436 2006-07-28 Bruno Haible <bruno@clisp.org>
43438 * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
43440 2006-07-28 Bruno Haible <bruno@clisp.org>
43442 * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
43444 2006-07-28 Bruno Haible <bruno@clisp.org>
43446 * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
43447 iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
43449 Avoids link error on FreeBSD 4.x.
43450 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43452 * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
43454 * lib/mbswidth.c (iswcntrl): Likewise.
43456 2006-07-27 Bruno Haible <bruno@clisp.org>
43458 * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
43461 2006-07-27 Bruno Haible <bruno@clisp.org>
43463 * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
43464 __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
43467 2006-07-26 Eric Blake <ebb9@byu.net>
43469 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
43471 2006-07-26 Eric Blake <ebb9@byu.net>
43473 * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
43474 like mingw that lack mkstemp.
43475 * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
43476 avoid compilation warning on mingw.
43478 2006-07-26 Bruno Haible <bruno@clisp.org>
43480 * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
43481 INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
43482 INT_FAST*_MIN, INTPTR_MIN.
43484 2006-07-25 Bruno Haible <bruno@clisp.org>
43486 * modules/version-etc (Depends-on): Add stdarg.
43488 2006-07-25 Bruno Haible <bruno@clisp.org>
43490 * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
43493 2006-07-25 Bruno Haible <bruno@clisp.org>
43495 * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
43496 defined in <stdarg.h> or config.h.
43498 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
43500 * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
43501 (gl_STDIO_SAFER): Remove.
43503 2006-07-24 Paul Eggert <eggert@cs.ucla.edu>
43505 * MODULES.html.sh (File stream based Input/Output):
43506 Add fopen-safer, tmpfile-safer; remove stdio-safer.
43507 * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
43508 * modules/fopen-safer, modules/tmpfile-safer: New files.
43509 * modules/stdio-safer: Remove.
43511 2006-07-24 Bruno Haible <bruno@clisp.org>
43513 * modules/tmpdir: New file.
43514 * MODULES.html.sh (File system functions): Add it.
43516 2006-07-24 Bruno Haible <bruno@clisp.org>
43518 * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
43519 getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
43521 2006-07-24 Bruno Haible <bruno@clisp.org>
43523 * modules/clean-temp: New file.
43525 2006-07-24 Bruno Haible <bruno@clisp.org>
43527 * m4/tmpdir.m4: New file, from GNU gettext.
43529 2006-07-24 Bruno Haible <bruno@clisp.org>
43531 * lib/tmpdir.h: New file, from GNU gettext.
43532 * lib/tmpdir.c: New file, from GNU gettext.
43534 2006-07-24 Bruno Haible <bruno@clisp.org>
43536 * lib/clean-temp.h: New file, from GNU gettext.
43537 * lib/clean-temp.c: New file, from GNU gettext.
43539 2006-07-23 Eric Blake <ebb9@byu.net>
43541 * modules/stdio-safer (Files): Add tmpfile-safer.c.
43542 (Depends-on): Add binary-io.
43544 2006-07-23 Eric Blake <ebb9@byu.net>
43546 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
43548 2006-07-23 Eric Blake <ebb9@byu.net>
43550 * lib/tmpfile-safer.c: New file.
43551 * lib/stdio-safer.h (fopen_safer): Add prototype.
43552 * lib/stdio--.h (tmpfile): Make safer.
43554 2006-07-23 Bruno Haible <bruno@clisp.org>
43556 * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
43557 (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
43558 gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
43559 gl_linked_remove_at): Use it.
43561 2006-07-22 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
43562 and Simon Josefsson <jas@extundo.com>
43564 * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
43566 * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
43568 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
43570 * modules/close-stream: New file.
43571 * modules/closeout (Description): Make it clear that it exits
43572 with a diagnostic on error.
43573 (Depends-on): Add close-stream. Remove fpending, stdbool.
43574 * MODULES.html.sh (File stream based Input/Output): Add close-stream.
43576 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
43578 * m4/close-stream.m4: New file.
43580 2006-07-22 Paul Eggert <eggert@cs.ucla.edu>
43582 * lib/close-stream.c, lib/close-stream.h: New files.
43584 2006-07-22 Bruno Haible <bruno@clisp.org>
43586 Merge from GNU gettext 0.15.
43588 2006-05-01 Bruno Haible <bruno@clisp.org>
43590 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
43592 2006-07-22 Bruno Haible <bruno@clisp.org>
43594 * modules/javaversion: New file.
43595 * MODULES.html.sh (Java): Add javaversion.
43597 2006-03-12 Bruno Haible <bruno@clisp.org>
43599 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
43601 2005-12-04 Bruno Haible <bruno@clisp.org>
43603 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
43606 2006-06-21 Bruno Haible <bruno@clisp.org>
43608 Avoid warnings from recent versions of mcs.
43609 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
43610 -o, -L, -r any more. Use options documented since mcs-1.0
43611 instead. Similarly for -g.
43613 2005-12-04 Bruno Haible <bruno@clisp.org>
43615 * build-aux/csharpcomp.sh.in: Suffix for resources is
43616 .resources, not .resource.
43618 2005-07-09 Bruno Haible <bruno@clisp.org>
43620 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
43622 Reported by Mark Junker <mjscod@gmx.de>.
43624 2006-07-22 Bruno Haible <bruno@clisp.org>
43626 * modules/gettext: Upgrade to gettext-0.15.
43627 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
43629 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
43631 2006-07-22 Bruno Haible <bruno@clisp.org>
43633 Merge from GNU gettext 0.15.
43635 2006-03-25 Bruno Haible <bruno@clisp.org>
43637 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
43639 2006-07-21 Bruno Haible <bruno@clisp.org>
43641 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
43644 2006-05-09 Bruno Haible <bruno@clisp.org>
43646 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
43647 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
43648 for the conftestver execution.
43650 2006-05-01 Bruno Haible <bruno@clisp.org>
43652 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
43653 optional target-version argument. Verify that the compiler
43654 groks source of the specified source-version, or add -source
43655 option as necessary. Verify that the compiler produces
43656 bytecode in the specified target-version, or add -target and
43657 -source options as necessary. Make the result of the test
43658 available as variable CONF_JAVAC. Also log error output in
43661 2006-03-11 Bruno Haible <bruno@clisp.org>
43663 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
43665 2006-05-09 Bruno Haible <bruno@clisp.org>
43667 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
43668 CLASSPATH_SEPARATOR to a semicolon.
43670 2006-03-12 Bruno Haible <bruno@clisp.org>
43672 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
43673 available as variable CONF_JAVA, for subsequent autoconf
43674 tests. Also log error output in config.log.
43676 2006-07-19 Bruno Haible <bruno@clisp.org>
43678 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
43679 that getline works on glibc2 systems. Needed to avoid trouble
43681 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
43683 2005-12-04 Bruno Haible <bruno@clisp.org>
43685 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
43686 launcher (untested).
43688 2005-12-04 Bruno Haible <bruno@clisp.org>
43690 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
43692 2006-07-22 Bruno Haible <bruno@clisp.org>
43694 * gettext.m4: Update from GNU gettext-0.15.
43695 * nls.m4: Likewise.
43697 * inttypes-pri.m4: Likewise.
43698 * inttypes-h.m4: Renamed from inttypes.m4.
43699 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
43701 2006-07-22 Bruno Haible <bruno@clisp.org>
43703 Merge from GNU gettext 0.15.
43705 2005-07-05 Bruno Haible <bruno@clisp.org>
43707 * printf-args.c (printf_fetchargs): Work around broken
43708 definition of wint_t on mingw.
43710 2005-02-12 Bruno Haible <bruno@clisp.org>
43712 * xallocsa.h: Add extern "C" for C++.
43714 2006-05-17 Bruno Haible <bruno@clisp.org>
43716 Cygwin portability.
43717 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
43719 2006-04-30 Bruno Haible <bruno@clisp.org>
43721 * progreloc.c: Include <mach-o/dyld.h> if available.
43722 (find_executable): Use _NSGetExecutablePath when possible.
43724 2006-05-06 Charles Wilson <cygwin@cwilson.fastmail.fm>
43726 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
43729 2005-12-29 Bruno Haible <bruno@clisp.org>
43731 * progreloc.c (set_program_name_and_installdir): Fix
43734 2005-12-04 Bruno Haible <bruno@clisp.org>
43736 Cygwin portability.
43737 * progreloc.c: Include <windows.h> also on Cygwin.
43738 (find_executable): Add support for Cygwin.
43739 (set_program_name_and_installdir): Handle also platforms with
43742 2006-07-11 Bruno Haible <bruno@clisp.org>
43744 * javacomp.c: Fix a comment.
43745 Reported by Jim Meyering.
43747 2006-04-30 Bruno Haible <bruno@clisp.org>
43749 * javacomp.h (compile_java_class): Add source_version,
43750 target_version arguments.
43751 * javacomp.c: Rewritten to choose only a compiler that
43752 respects the specified source_version and target_version.
43754 2006-06-27 Bruno Haible <bruno@clisp.org>
43756 Assume correct S_ISDIR macro.
43757 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
43759 2006-07-22 Bruno Haible <bruno@clisp.org>
43761 * javaversion.h: New file, from GNU gettext.
43762 * javaversion.c: New file, from GNU gettext.
43763 * javaversion.java: New file, from GNU gettext.
43764 * javaversion.class: New file, from GNU gettext.
43766 2006-05-17 Bruno Haible <bruno@clisp.org>
43768 Cygwin portability.
43769 * javaexec.c (execute_java_class): Test for jview program
43772 2006-04-09 Bruno Haible <bruno@clisp.org>
43774 * fatal-signal.c: Don't include string.h.
43775 (at_fatal_signal): Use a copying loop instead of memcpy.
43777 2005-12-04 Bruno Haible <bruno@clisp.org>
43779 * csharpexec.c: Add support for 'clix' launcher (untested).
43780 (execute_csharp_using_sscli): New function.
43781 (execute_csharp_program): Call it.
43783 2006-06-21 Bruno Haible <bruno@clisp.org>
43785 Avoid warnings from recent versions of mcs.
43786 * csharpcomp.c (compile_csharp_using_mono): Don't use options
43787 -o, -L, -r any more. Use options documented since mcs-1.0
43788 instead. Similarly for -g.
43790 2005-07-09 Bruno Haible <bruno@clisp.org>
43792 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
43794 Reported by Mark Junker <mjscod@gmx.de>.
43796 2006-06-17 Bruno Haible <bruno@clisp.org>
43798 * config.charset: Update for NetBSD 3.0.
43800 2006-05-17 Bruno Haible <bruno@clisp.org>
43802 Cygwin portability.
43803 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
43805 2006-05-16 Bruno Haible <bruno@clisp.org>
43807 * localcharset.c [CYGWIN]: Include <windows.h>.
43808 (get_charset_aliases): For Cygwin, return the same CPxxx
43809 aliases list as under WIN32.
43810 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
43811 the environment variables. Fall back to GetACP().
43813 2006-04-05 Bruno Haible <bruno@clisp.org>
43815 * config.charset: Update Juan Manuel Guerrero's address.
43817 2005-02-12 Bruno Haible <bruno@clisp.org>
43819 * allocsa.h: Add extern "C" for C++.
43821 2005-02-10 Bruno Haible <bruno@clisp.org>
43823 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
43824 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
43826 2006-07-22 Bruno Haible <bruno@clisp.org>
43828 * gettext.h: Update to GNU gettext-0.15.
43830 2006-07-22 Bruno Haible <bruno@clisp.org>
43832 * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
43833 localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
43834 lib-prefix.m4, longdouble.m4, ssize_t.m4.
43836 2006-07-21 Eric Blake <ebb9@byu.net>
43838 * modules/stdlib-safer: New file.
43839 * MODULES.html.sh (File stream based Input/Output): Add
43842 2006-07-21 Eric Blake <ebb9@byu.net>
43844 * lib/stdlib-safer.h: New file from coreutils, required by
43847 2006-07-20 Paul Eggert <eggert@cs.ucla.edu>
43849 * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
43851 2006-07-20 Bruno Haible <bruno@clisp.org>
43853 * gnulib-tool: Recognize new option --assume-autoconf.
43854 (autoconf_minversion): New variable.
43855 (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
43857 2006-07-20 Bruno Haible <bruno@clisp.org>
43859 * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
43861 2006-07-19 Derek R. Price <derek@ximbiot.com>
43863 * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
43864 Reindent and repaginate.
43866 2006-07-19 Derek Price <derek@ximbiot.com>
43868 * doc/gnulib.texi (Libtool and Windows): Eliminate passive voice.
43871 2006-07-17 Bruno Haible <bruno@clisp.org>
43873 * modules/list: New file.
43874 * modules/array-list: New file.
43875 * modules/carray-list, modules/carray-list-tests: New files.
43876 * modules/linked-list, modules/linked-list-tests: New files.
43877 * modules/avltree-list, modules/avltree-list-tests: New files.
43878 * modules/rbtree-list, modules/rbtree-list-tests: New files.
43879 * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
43880 * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
43881 * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
43882 * modules/oset: New file.
43883 * modules/array-oset: New file.
43884 * modules/avltree-oset, modules/avltree-oset-tests: New files.
43885 * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
43886 * tests/test-carray_list.c: New file.
43887 * tests/test-linked_list.c: New file.
43888 * tests/test-avltree_list.c: New file.
43889 * tests/test-rbtree_list.c: New file.
43890 * tests/test-linkedhash_list.c: New file.
43891 * tests/test-avltreehash_list.c: New file.
43892 * tests/test-rbtreehash_list.c: New file.
43893 * tests/test-avltree_oset.c: New file.
43894 * tests/test-rbtree_oset.c: New file.
43895 * MODULES.html.sh (Container data structures): New section.
43897 2006-07-17 Bruno Haible <bruno@clisp.org>
43899 * m4/gl_list.m4: New file.
43901 2006-07-17 Bruno Haible <bruno@clisp.org>
43903 * lib/gl_list.h: New file.
43904 * lib/gl_list.c: New file.
43905 * lib/gl_array_list.h: New file.
43906 * lib/gl_array_list.c: New file.
43907 * lib/gl_carray_list.h: New file.
43908 * lib/gl_carray_list.c: New file.
43909 * lib/gl_linked_list.h: New file.
43910 * lib/gl_linked_list.c: New file.
43911 * lib/gl_anylinked_list1.h: New file.
43912 * lib/gl_anylinked_list2.h: New file.
43913 * lib/gl_avltree_list.h: New file.
43914 * lib/gl_avltree_list.c: New file.
43915 * lib/gl_anyavltree_list1.h: New file.
43916 * lib/gl_anyavltree_list2.h: New file.
43917 * lib/gl_rbtree_list.h: New file.
43918 * lib/gl_rbtree_list.c: New file.
43919 * lib/gl_anyrbtree_list1.h: New file.
43920 * lib/gl_anyrbtree_list2.h: New file.
43921 * lib/gl_anytree_list1.h: New file.
43922 * lib/gl_anytree_list2.h: New file.
43923 * lib/gl_linkedhash_list.h: New file.
43924 * lib/gl_linkedhash_list.c: New file.
43925 * lib/gl_anyhash_list1.h: New file.
43926 * lib/gl_anyhash_list2.h: New file.
43927 * lib/gl_avltreehash_list.h: New file.
43928 * lib/gl_avltreehash_list.c: New file.
43929 * lib/gl_rbtreehash_list.h: New file.
43930 * lib/gl_rbtreehash_list.c: New file.
43931 * lib/gl_anytreehash_list1.h: New file.
43932 * lib/gl_anytreehash_list2.h: New file.
43934 * lib/gl_oset.h: New file.
43935 * lib/gl_oset.c: New file.
43936 * lib/gl_array_oset.h: New file.
43937 * lib/gl_array_oset.c: New file.
43938 * lib/gl_avltree_oset.h: New file.
43939 * lib/gl_avltree_oset.c: New file.
43940 * lib/gl_rbtree_oset.h: New file.
43941 * lib/gl_rbtree_oset.c: New file.
43942 * lib/gl_anytree_oset.h: New file.
43944 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
43946 * m4/mkancesdirs.m4: New file.
43947 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
43948 dirchownmod.h. Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
43949 no longer needed. Require gl_FUNC_LCHOWN, since dirchownmod.c needs
43952 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
43954 * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
43955 * lib/mkancesdirs.h: New files.
43956 * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
43957 unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
43958 save-cwd.h. Instead, include dirchownmod.h and mkancesdirs.h.
43959 (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
43960 MODE_BITS. Remove options VERBOSE_FMT_STRING, CWD_ERRNO. All
43961 callers changed. Revamp internals significantly, by not
43962 attempting to create directories that are temporarily more
43963 permissive than the final results. Do not attempt to use
43964 save_cwd/restore_cwd; it isn't worth it for mkdir and install.
43965 This removes some race conditions, fixes some bugs, and simplifies
43966 things. Use new dirchownmod function to do owner and mode changes.
43967 * lib/mkdir-p.h: Likewise.
43968 * lib/modechange.c (octal_to_mode): New function.
43969 (struct mode_change): New member mentioned.
43970 (make_node_op_equals): New arg mentioned. All callers changed.
43971 (mode_compile): Keep track of which mode bits the user has explicitly
43973 (mode_adjust): New arg DIR, so that we implement the X op correctly.
43974 New arg PMODE_BITS, to keep track of which mode bits the user
43975 mentioned; it treats S_ISUID and S_ISGID speciall.
43976 All callers changed.
43977 * lib/modechange.h: Likewise.
43979 2006-07-16 Paul Eggert <eggert@cs.ucla.edu>
43981 * MODULES.html.sh: Add mkancestors.
43982 * modules/mkancesdirs: New module.
43983 * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
43984 lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
43985 The chdir-safer and afs files are now orphans; I'll remove them
43986 unless someone speaks up.
43987 Add lib/dirchownmod.c, lib/dirchownmod.h.
43988 (Depends-on): Remove alloca, chown, save-cwd, dirname.
43989 Add lchown, mkancesdirs.
43990 (Maintainer): Add self.
43992 2006-07-15 Karl Berry <karl@gnu.org>
43994 * gnulib-tool: help message wording/arrangement.
43996 2006-07-14 Simon Josefsson <jas@extundo.com>
43998 * doc/gnulib.texi (Libtool and Windows): New section.
44000 2006-07-12 Simon Josefsson <jas@extundo.com>
44002 * modules/gendocs (License): Fix license, approved by Karl.
44004 2006-07-12 Eric Blake <ebb9@byu.net>
44006 * MODULES.html.sh: Add gendocs.
44008 2006-07-11 Eric Blake <ebb9@byu.net>
44010 * modules/fdl: New module, to install doc/fdl.texi.
44011 * MODULES.html.sh: Add new section for documentation modules.
44012 * gnulib-tool: Avoid space-tab.
44013 (--doc-base): New option, to manage files from doc.
44015 2006-07-11 Eric Blake <ebb9@byu.net>
44017 * m4/absolute-header.m4: Fix comments to match recent change.
44019 2006-07-11 Eric Blake <ebb9@byu.net>
44021 * gnulib-tool: List --doc-base before --tests-base.
44023 2006-07-11 Derek R. Price <derek@ximbiot.com>
44025 * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
44027 2006-07-11 Bruno Haible <bruno@clisp.org>
44029 * README: Mention where to put documentation.
44031 2006-07-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44033 * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
44035 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44037 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
44040 2006-07-10 Paul Eggert <eggert@cs.ucla.edu>
44042 * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
44043 absolute-header.m4. Also, set ABSOLUTE_STDINT_H to a string
44044 "no/such/file/stdint.h" when there is no such file, so that
44045 the resulting C code can be parsed by dodgy compilers.
44046 Problems reported by Bob Proulx.
44048 2006-07-10 Derek R. Price <derek@ximbiot.com>
44050 * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
44051 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44052 macros into the GNU _D_EXACT_NAMLEN.
44053 * lib/savedir.c: Likewise.
44054 (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
44056 2006-07-10 Derek R. Price <derek@ximbiot.com>
44057 and Paul Eggert <eggert@cs.ucla.edu>
44059 * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
44061 Ignore the obsolescent !HAVE_DIRENT_H case. Consolidate NAMLEN
44062 macros into the GNU _D_EXACT_NAMLEN.
44064 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44066 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
44067 around the absolute name, to work around a problem with the HP-UX
44068 11.23 native C compiler, reported by Bob Proulx.
44070 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44072 * doc/maintain.texi, make-stds.texi: Sync from
44073 <http://savannah.gnu.org/projects/gnustandards>.
44075 2006-07-09 Paul Eggert <eggert@cs.ucla.edu>
44077 * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
44079 2006-07-09 Jim Meyering <jim@meyering.net>
44081 * m4/glob.m4: Remove a doubled word in a comment.
44083 2006-07-09 Jim Meyering <jim@meyering.net>
44085 * lib/argp-pv.c: Remove a doubled word in a comment.
44086 * lib/check-version.c (check_version): Likewise.
44087 * lib/javacomp.c (compile_java_class): Likewise.
44089 2006-07-08 Paul Eggert <eggert@cs.ucla.edu>
44091 * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
44092 for the benefit of people using Autoconf 2.60. If you want to
44093 support older Autoconf versions you can copy m4/onceonly_2_57.m4
44094 (or m4/onceonly.m4, if pre-2.57) manually.
44096 2006-07-08 Jim Meyering <jim@meyering.net>
44098 * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
44100 * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
44101 * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
44104 2006-07-08 Jim Meyering <jim@meyering.net>
44106 * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
44108 2006-07-07 Simon Josefsson <jas@extundo.com>
44110 * tests/test-crc.c: Change expected crc value, the test vector
44111 were probably computed using the old broken crc.c?
44113 2006-07-06 Simon Josefsson <jas@extundo.com>
44115 * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
44116 now the canonical place for the M4 file).
44118 * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
44119 from the sys_socket dependency now.
44121 * modules/inet_pton (Files): Ditto.
44123 * modules/inet_ntop (Files): Ditto.
44125 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
44127 * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
44128 not gl_PREREQ_GETUSERSHELL.
44130 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44132 * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
44133 with only one argument, for Autoconf 2.60.
44134 * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
44135 expand to nothing, so add a shell command to avoid syntax error.
44136 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
44138 2006-07-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
44140 * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
44142 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44144 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
44145 no longer needed. Check for isblank decl.
44146 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
44147 * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
44150 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44152 * lib/getloadavg.c: Use __VMS, not VMS.
44153 * lib/getopt.c: Likewise.
44154 * lib/getpagesize.h: Likewise.
44155 * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
44156 and probably does not work.
44158 2006-07-06 Paul Eggert <eggert@cs.ucla.edu>
44160 * lib/.cppi-disable: Add wcwidth.
44161 * lib/fnmatch.c (ISBLANK): Remove. All uses changed to isblank.
44162 (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
44163 (ISGRAPH): Remove. All uses changed to isgraph.
44164 (FOLD) [!defined _LIBC]: Remove special case.
44165 * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
44166 * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
44168 * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
44171 2006-07-06 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
44173 * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
44174 '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
44175 brackets. Other minor changes to suppress some compiler
44178 2006-07-06 Derek R. Price <derek@ximbiot.com>
44179 and Paul Eggert <eggert@cs.ucla.edu>
44181 * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
44182 of invoking obsolescent AC_HEADER_DIRENT macro.
44183 * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
44184 * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
44185 * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44186 * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
44187 * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
44188 * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
44189 * m4/savedir.m4 (gl_SAVEDIR): Likewise.
44190 * m4/readdir.m4: Remove; no longer needed.
44192 2006-07-06 Derek R. Price <derek@ximbiot.com>
44193 and Paul Eggert <eggert@cs.ucla.edu>
44195 * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
44196 Don't worry about this obsolete case any more.
44197 (HAVE_DIR): Remove. All uses removed; we now assume you can read
44199 * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
44200 worry about this obsolete case any more.
44201 * lib/fts.c: Likewise.
44202 * lib/getcwd.c: Likewise.
44203 * lib/glob.h: Likewise.
44204 * lib/savedir.c: Likewise.
44206 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44208 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
44209 rather than AC_CHECK_DECLS for strtoimax and strtoumax.
44210 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
44213 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44214 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44215 * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
44217 * m4/getdate.m4 (gl_GETDATE): Likewise.
44218 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44219 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44220 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44221 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44222 * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
44223 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44224 * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
44227 2006-07-05 Paul Eggert <eggert@cs.ucla.edu>
44229 * lib/memcasecmp.c: Include <limits.h>.
44230 (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
44231 * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
44232 Don't assume isdigit succeeds only on '0' through '9'.
44234 2006-07-05 Eric Blake <ebb9@byu.net>
44236 * modules/getaddrinfo (Depends-on): Add snprintf.
44238 2006-07-05 Eric Blake <ebb9@byu.net>
44240 * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
44241 to avoid 'header present but could not be compiled' on cygwin.
44243 2006-07-05 Eric Blake <ebb9@byu.net>
44245 * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
44246 missing from netdb.h.
44247 * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
44249 2006-07-05 Derek R. Price <derek@ximbiot.com>
44251 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
44253 * m4/exclude.m4 (gl_EXCLUDE): Likewise.
44254 * m4/getdate.m4 (gl_GETDATE): Likewise.
44255 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
44256 * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
44257 * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
44258 * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
44259 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
44261 2006-07-05 Derek R. Price <derek@ximbiot.com>
44263 * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
44264 All uses of is_space replaced by isspace.
44265 * lib/exit.h: Don't talk about STDC_HEADERS.
44266 * lib/fnmatch.c (ISASCII): Remove; no longer needed. All uses removed.
44267 (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
44268 (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed. All uses
44269 replaced by isprint etc.
44270 * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
44271 * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44272 * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
44273 * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
44274 * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
44275 * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
44277 2006-07-05 Bruno Haible <bruno@clisp.org>
44279 * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
44280 the function exists, before testing against AIX.
44281 Reported by Martin Lambers <marlam@marlam.de>.
44283 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
44285 * modules/cycle-check (lib_SOURCES): Add same-inode.h.
44286 From Mark D. Baushke.
44288 2006-07-04 Paul Eggert <eggert@cs.ucla.edu>
44290 * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
44291 to the absolute name, not just one, to bypass Sun C 5.8's
44292 "warning: #include of /usr/include/... may be non-portable".
44294 2006-07-04 Eric Blake <ebb9@byu.net>
44296 * modules/dirname-tests: New test module.
44297 * tests/test-dirname.c: New file, replacing dirname.c
44298 TEST_DIRNAME section that was recently deleted.
44300 2006-07-04 Bruno Haible <bruno@clisp.org>
44302 Assume ANSI C header files and <ctype.h> functions.
44303 * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
44304 (mbsnwidth): Use isprint, iscntrl instead.
44306 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44308 Merge from coreutils.
44309 * MODULES.html.sh: Add xstrtold.
44310 * modules/xstrtold: New file.
44311 * modules/cycle-check (Files): Add lib/same-inode.h.
44312 * modules/dirname (Files): Add m4/double-slash-root.m4.
44313 * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
44314 * modules/mkdir-p (Files): Add lib/same-inode.h.
44315 * modules/same (Files): Add lib/same-inode.h.
44317 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44319 * m4/absolute-header.m4: Renamed from full-header-path.m4.
44320 This is to keep the terminology clean; POSIX talks about
44321 "absolute pathnames", not "full pathnames", but the GNU
44322 Coding Standards say to use "path" for something else;
44323 so use "absolute" to keep both sides happy.
44324 (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
44325 Set gl_absolute_header, not gl_full_header_path.
44326 Set gl_cv_absolute_<header>, not gl_full_path_<header>.
44327 Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
44330 Merge from coreutils.
44332 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
44334 * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
44335 Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
44336 want to require the building of c-strtod.o.
44337 * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
44338 needs -lm directly.
44339 * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
44341 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
44343 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
44344 --as-needed option if available. Problem reported by Albert Chin in
44345 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
44346 However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
44347 cc merely issues a bunch of annoying warnings for --as-needed
44348 (this problem was reported by Bob Proulx). Also, try linking with
44349 -lm to detect a bug in binutils 2.16 (this problem was reported
44350 by Ralf Wildenhues).
44352 2006-06-18 Jim Meyering <jim@meyering.net>
44354 Test for a bug that causes glibc's getcwd to suffer a failed assertion.
44355 * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
44357 * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
44358 also check for glibc-2.4's abort-inducing bug.
44360 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
44361 Low-probability clean-up should be to use rmdir to get rid of
44362 the just-created directory, not unlink.
44364 * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
44365 configure fail, and request a bug report to inform us about it.
44366 Add a comment that, barring reports to the contrary, in 2007 we'll
44367 assume ftruncate is universally available.
44369 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
44371 * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
44373 2006-03-12 Jim Meyering <jim@meyering.net>
44375 * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
44376 * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
44377 * m4/same.m4 (gl_SAME): Likewise.
44378 * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
44380 2006-03-11 Eric Blake <ebb9@byu.net>
44382 * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
44383 * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
44384 * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
44385 (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
44387 2006-07-03 Paul Eggert <eggert@cs.ucla.edu>
44389 * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
44390 MacOS X 10.4.6. Don't mention <sys/int_types.h>. Problems
44391 reported by Mark D. Baushke, one in
44392 <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
44394 Merge from coreutils.
44396 * lib/.cppi-disable: Add stdint_.h.
44397 * lib/.cvsignore: Add stdint.h.
44399 2006-06-30 Paul Eggert <eggert@cs.ucla.edu>
44401 * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
44402 both double and long double versions.
44403 (XSTRTOD): Renamed from xstrtod. Use DOUBLE internally.
44404 * lib/xstrtold.c: New file.
44405 * lib/xstrtod.h (xstrtold): New decl.
44407 2006-05-22 Paul Eggert <eggert@cs.ucla.edu>
44409 * lib/filemode.c (setst): Remove.
44410 (strmode): Rewrite to avoid setst. This makes the code shorter,
44411 (arguably) clearer, and the generated code is a bit smaller on my
44412 Debian GNU/Linux stable x86 host.
44414 2006-04-17 Paul Eggert <eggert@cs.ucla.edu>
44416 * lib/filemode.c: Include "filemode.h" first, to test the interface.
44417 Assume that filemode.h includes sys/types.h and sys/stat.h.
44418 (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
44419 (ftypelet): Reorder to put common cases first, for efficiency.
44420 Add 'P', 'w'. Remove 'M', since it's now the caller's responsibility
44422 (strmode): Renamed from mode_string, and now stores 12 bytes instead
44423 of 10, for compatibility with FreeBSD. All callers changed.
44424 (filemodestring): Now stores 12 bytes instead of 10, and sets file
44425 types that can't be deduced solely from st_mode. First arg is now a
44427 * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
44428 (strmode): Renamed from mode_string.
44429 (filemodestring): New decl.
44430 * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
44431 (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
44433 (S_ISPORT, S_ISWHT): New macros, if not already defined.
44435 2006-04-12 Paul Eggert <eggert@cs.ucla.edu>
44437 * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
44438 fsusage.h now does that. Include fsusage.h first, to test interface.
44439 Prefer statvfs if it works, since it's blessed by POSIX. Attempt
44440 at most one method (the old code could have generated decls that
44441 didn't conform to C89, not that this was ever exercised).
44442 * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
44444 2006-03-19 Jim Meyering <jim@meyering.net>
44446 Work even in a chroot where d_ino values for entries in "/"
44447 don't match the stat.st_ino values for the same names.
44448 * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
44449 number, iterate through all entries again, using lstat instead.
44450 Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
44451 Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
44453 * lib/getcwd.c (__getcwd): Clarify a comment.
44454 Use memcpy in place of a call to strcpy.
44456 2006-03-12 Jim Meyering <jim@meyering.net>
44458 * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
44459 matches that of the current directory (which we're about to chdir ".."
44460 out of), then save the dev-ino of the parent, instead.
44462 * lib/same-inode.h (SAME_INODE): New file/macro.
44463 * lib/chdir-safer.c (SAME_INODE): Remove definition.
44464 Include "same-inode.h", instead.
44465 * lib/same.c: Likewise.
44466 * lib/cycle-check.h: Include "same-inode.h".
44467 (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
44468 * lib/cycle-check.c (SAME_INODE): Remove definition.
44469 * lib/root-dev-ino.h: Include "same-inode.h".
44471 2006-03-11 Eric Blake <ebb9@byu.net>
44473 * lib/same.c (same_name): s/base_name/last_component/
44474 * lib/backupfile.c (check_extension, numbered_backup): Likewise.
44475 * lib/filenamecat.c (file_name_concat): Likewise.
44477 2006-03-11 Eric Blake <ebb9@byu.net>,
44478 Paul Eggert <eggert@cs.ucla.edu>
44480 * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
44481 [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
44483 (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
44484 platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
44485 (last_component): New method.
44486 * lib/dirname.c (dir_len): Determine when drive letters need a
44487 subsequent slash. Preserve // when it is special.
44488 (dir_name): Don't append dot when drive letter is absolute.
44489 [TEST_DIRNAME]: Move into a full-blown gnulib test.
44490 * lib/basename.c (base_name): New semantics - malloc the result.
44491 Preserve // when it is special. Preserve relative files that look
44492 like drive letters.
44493 (base_len): Preserve // when it is special.
44494 (last_component): New method, similar to old base_name semantics.
44495 * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
44496 base_name. Strip redundant slashes from ///.
44498 2006-07-03 Jim Meyering <jim@meyering.net>
44500 * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
44501 macro is used before the first cycle_check call.
44503 2006-07-03 Eric Blake <ebb9@byu.net>
44505 * modules/dirname (Depends-on): Add xstrndup.
44507 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
44509 * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
44510 test cases, so that config.log is a bit easier to follow.
44512 2006-07-02 Paul Eggert <eggert@cs.ucla.edu>
44514 * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
44515 both are 64 bits, since this seems to be the tradition, and this
44516 prevents gcc -Wformat from warning about usages with PRIuMAX. If
44517 we ever run into a host that prefers long long to long in this
44518 case, we'll need another configure-time test. Problem reported by
44521 2006-07-02 Eric Blake <ebb9@byu.net>
44523 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
44525 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
44527 * modules/inttypes (Depends-on): No longer depends on stdint.
44528 * modules/stdint (Description): Say more about assumptions.
44529 Say that the fast types might differ. Say macros are used.
44530 (Files): Remove m4/size_max.m4, m4/wchar_t.m4. Add m4/longlong.m4.
44531 (Makefile.am): Revise list of substituted symbols to match
44533 * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
44534 (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
44535 * tests/test-stdint.c (verify_same_types)
44536 [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
44537 the code conforms to C99/C89.
44538 Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
44539 Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
44541 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
44543 * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
44544 but fix a bug, by requiring at least 64 bits.
44545 * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
44546 * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
44547 AC_TYPE_LONG_LONG_INT. This macro is obsolete and will go soon.
44548 * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
44550 * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
44551 changes. Make 2.59 a prerequisite. Check and substitute for
44552 HAVE_LONG_LONG_INT. Rely on Autoconf to check for stdint.h and
44553 inttypes.h. Do not use special include files; just use the
44554 defaults. Check for sys/inttypes.h and sys/bitypes.h in the usual
44555 way now. Remove no-longer-needed tests for HAVE_LONG_64BIT,
44556 HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
44557 uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
44558 int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
44559 uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
44560 int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
44561 uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
44562 uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
44563 UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
44564 INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
44565 UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
44566 UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
44567 UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
44568 UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
44569 INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
44570 INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
44571 UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
44572 INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
44573 SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
44574 WINT_MAX. Check for C99 conformance more strictly, by detecting
44575 bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9. On the other hand do
44576 not check for things that C99 does not require, e.g., int8_t. If
44577 a test isn't needed unless <stdint.h> isn't working, and is
44578 unlikely to be needed for any other reason, then don't do it
44579 unless <stdint.h> isn't working. Do not check for ptrdiff_t or
44580 size_t, since we assume C89 freestanding at least. Do not check
44581 for sig_atomic_t, wchar_t, or wint_t, since the code now does
44582 the right thing even if the types are not defined. Instead use:
44583 (gl_STDINT_TYPE_PROPERTIES): New macro.
44584 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove. Don't bother
44585 testing whether <sys/types.h> clashes, as Autoconf does this for
44586 us now. All uses removed.
44587 (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
44588 (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
44589 (gl_CHECK_TYPE_SAME):
44590 Remove; no longer needed.
44591 (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
44592 exists, since we'll return 0 anyway in that case.
44593 (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
44595 2006-07-01 Paul Eggert <eggert@cs.ucla.edu>
44597 * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
44598 possible collision with system files.
44599 (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
44600 __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
44601 WCHAR_MIN and WCHAR_MAX in this case.
44602 (<stddef.h>): Do not include; no longer needed.
44603 (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
44604 (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
44605 (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
44606 !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
44607 && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
44608 (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
44609 __c99]: Define, to work around IRIX <stdint.h> incompatibility.
44610 (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
44611 !defined(__c99))]: Include in this case too, since it's harmless
44613 (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
44614 dangerous to do so.
44615 (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
44616 @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
44617 (_STDINT_MIN, _STDINT_MAX): New macros.
44618 (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
44619 (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
44620 (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
44621 (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
44622 (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
44623 (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
44624 macros, not typedefs; this simplifies things quite a bit.
44625 Use long int for all types narrower than int64_t.
44626 (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
44627 Define in terms of long long int or int64_t or long int,
44628 not int64_t or int32_t. This saves some compile-time testing.
44629 (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
44630 (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
44631 (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
44632 (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
44633 (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
44634 (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
44635 (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
44636 (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
44637 (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
44638 (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
44639 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44640 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44641 undef any previous version and define our own version, for
44642 simplicity and consistency with the new macros for types.
44643 (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
44644 (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
44645 Simplify definitions by using _STDINT_MIN and _STDINT_MAX
44646 where appropriate. Rely on new symbols @PTRDIFF_T_SUFFIX@,
44647 @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
44648 @WINT_T_SUFFIX@ to keep things simple here.
44649 (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
44650 Simplify by assuming typical 8/16/32/64 host, since we're
44651 already doing that elsewhere anyway.
44652 Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
44653 and assume long long int is 64 bits if available. This
44654 speeds up 'configure'.
44656 2006-07-01 Eric Blake <ebb9@byu.net>
44658 * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
44659 Reported by Andreas Buening.
44661 2006-07-01 Eric Blake <ebb9@byu.net>
44663 * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
44665 2006-06-30 Jim Hyslop <jhyslop@dreampossible.ca> (tiny change)
44667 * lib/getaddrinfo.c: fixed typo
44669 2006-06-29 Jim Meyering <jim@meyering.net>
44671 * modules/strftime (Maintainer): Add my name, since with the
44672 FPRINTFTIME changes strftime.c has forked from glibc.
44674 2006-06-29 Eric Blake <ebb9@byu.net>
44676 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
44678 2006-06-29 Eric Blake <ebb9@byu.net>
44680 * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
44682 2006-06-29 Eric Blake <ebb9@byu.net>
44684 * lib/stat_.h: New file.
44686 2006-06-29 Eric Blake <ebb9@byu.net>
44688 * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
44689 unused static function.
44691 2006-06-29 Eric Blake <ebb9@byu.net>
44693 * doc/functions.texi (Function Portability): Document missing lstat
44696 2006-06-29 Eric Blake <ebb9@byu.net>
44698 * MODULES.html.sh: Add sys_stat.
44699 * modules/sys_stat: New module.
44700 * modules/mkstemp (Depends-on): Add sys_stat.
44702 2006-06-29 Derek R. Price <derek@ximbiot.com>
44704 * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
44706 2006-06-29 Derek R. Price <derek@ximbiot.com>
44708 * m4/c-bs-a.m4: Removed.
44710 2006-06-29 Derek R. Price <derek@ximbiot.com>
44712 * lib/strftime.c: Assume strftime() exists.
44714 2006-06-29 Derek Price <derek@ximbiot.com>
44716 * modules/c-bs-a: Removed - \a is C89.
44717 * MODULES.html.sh: Remove c-bs-a.
44719 2006-06-29 Bruno Haible <bruno@clisp.org>
44721 * modules/wcwidth (License): Change to LGPL.
44723 2006-06-28 Simon Josefsson <jas@extundo.com>
44725 * tests/test-getaddrinfo.c: Test getnameinfo too. Call WSAStartup
44728 * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
44731 2006-06-28 Simon Josefsson <jas@extundo.com>
44733 * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
44735 2006-06-28 Simon Josefsson <jas@extundo.com>
44737 * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
44738 functions there. It will succeed on Windows XP, but on Windows
44739 2000 and (presumably) earlier, it will fail, and use the internal
44741 (use_win32_p): New function.
44742 (getaddrinfo): Use strtoul on servname, to support numeric ports.
44743 Support AI_NUMERICSERV to disable getservbyname.
44744 (getnameinfo): New function, only supports
44745 NI_NUMERICHOST|NI_NUMERICSERV for now.
44747 * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
44748 only have some of them. Add AI_NUMERICSERV. Add prototype for
44751 2006-06-28 Eric Blake <ebb9@byu.net>
44753 * modules/wcwidth: New file.
44754 * modules/mbchar (Depends-on): Add wcwidth.
44755 * modules/mbswidth (Depends-on): Add wcwidth.
44756 * MODULES.html.sh: Add wcwidth.
44758 2006-06-28 Eric Blake <ebb9@byu.net>
44760 * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
44761 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
44763 2006-06-28 Eric Blake <ebb9@byu.net>
44765 * lib/xvasprintf.h: Fix comments.
44767 2006-06-28 Eric Blake <ebb9@byu.net>
44769 * lib/mbchar.h (wcwidth): Include wcwidth.h.
44770 * lib/mbswidth.c (wcwidth): Move from here...
44771 * lib/wcwidth.h: ...to this new file.
44773 2006-06-28 Derek R. Price <derek@ximbiot.com>
44775 * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
44777 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
44779 * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
44781 2006-06-28 Derek R. Price <derek@ximbiot.com>
44783 * lib/savedir.c (CLOSEDIR): Remove. All uses changed to closedir.
44784 Autoconf 2.60 says this stuff was obsolete.
44786 2006-06-28 Bruno Haible <bruno@clisp.org>
44788 * modules/wcwidth (Files): Add m4/wchar_t.m4.
44790 2006-06-28 Bruno Haible <bruno@clisp.org>
44792 * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
44795 2006-06-28 Bruno Haible <bruno@clisp.org>
44797 * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
44798 declaration for wcwidth.
44799 * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
44801 2006-06-28 Bruno Haible <bruno@clisp.org>
44803 * lib/mkdtemp.c [MINGW]: Include <io.h>.
44804 (mkdir): Define using _mkdir.
44806 2006-06-28 Bruno Haible <bruno@clisp.org>
44808 * lib/getaddrinfo.h: Fix POSIX URL.
44809 * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
44811 (use_win32_p): Make static.
44812 (getaddrinfo): Reject service name if it is empty or does not consist
44813 solely of decimal digits, or if its value is > 65535.
44814 (getnameinfo): Remove useless casts.
44816 2006-06-27 Simon Josefsson <jas@extundo.com>
44818 * modules/sys_select: New file, suggested by Bruno Haible, Paul
44819 Eggert and Martin Lambers.
44821 2006-06-27 Simon Josefsson <jas@extundo.com>
44823 * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
44824 Eggert and Martin Lambers.
44826 2006-06-27 Bruno Haible <bruno@clisp.org>
44828 * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
44829 result to 0, not to empty.
44830 Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
44832 2006-06-27 Bruno Haible <bruno@clisp.org>
44834 * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
44836 2006-06-26 Simon Josefsson <jas@extundo.com>
44838 * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
44841 2006-06-26 Paul Eggert <eggert@cs.ucla.edu>
44843 * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
44844 bug in IBM C V6 for AIX. Problem reported by Larry Jones in
44845 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
44847 2006-06-26 Mark D. Baushke <mdb@gnu.org>
44849 * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
44851 2006-06-26 Bruno Haible <bruno@clisp.org>
44853 * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
44855 2006-06-26 Bruno Haible <bruno@clisp.org>
44857 * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
44859 2006-06-26 Bruno Haible <bruno@clisp.org>
44861 * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
44862 SGI C compiler in pre-C99 mode.
44863 Suggested by Mark D. Baushke and Larry Jones.
44865 2006-06-26 Bruno Haible <bruno@clisp.org>
44867 * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
44869 Reported by Mark D. Baushke and Larry Jones.
44871 2006-06-26 Bruno Haible <bruno@clisp.org>
44873 * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
44875 Suggested by Mark D. Baushke and Larry Jones.
44877 2006-06-23 Simon Josefsson <jas@extundo.com>
44878 Bruno Haible <bruno@clisp.org>
44880 * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
44881 Emit mostlyclean-local rule.
44882 (func_emit_tests_Makefile_am): Likewise.
44883 * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
44885 2006-06-23 Mark D. Baushke <mdb@gnu.org>
44887 * lib/stdint_.h: Treat BSD/OS like OpenBSD.
44889 2006-06-23 Bruno Haible <bruno@clisp.org>
44891 * tests/test-stdint.c: Update to match ISO C 99 Technical
44894 2006-06-23 Bruno Haible <bruno@clisp.org>
44896 * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
44898 2006-06-23 Bruno Haible <bruno@clisp.org>
44900 * lib/stdint_.h: Treat IRIX like OpenBSD.
44902 2006-06-23 Bruno Haible <bruno@clisp.org>
44904 * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
44905 ISO C 99 Technical Corrigendum 1.
44907 2006-06-22 Simon Josefsson <jas@extundo.com>
44909 * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
44912 2006-06-22 Paul Eggert <eggert@cs.ucla.edu>
44914 * lib/glob.c (collated_compare): Remove 'const' uses that weren't
44915 needed. Some compiler complained about some of them. Problem reported
44917 <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
44919 2006-06-21 Simon Josefsson <jas@extundo.com>
44921 * tests/test-getaddrinfo.c: New file.
44923 * modules/getaddrinfo-tests: New file.
44925 * MODULES.html.sh: Add inet_pton.
44927 * modules/inet_pton: New file.
44929 2006-06-21 Simon Josefsson <jas@extundo.com>
44931 * m4/getaddrinfo.m4: Don't define WINVER. Look for gethostbyname in
44932 -lws2_32 too. Fixes getaddrinfo on Windows 2000, with the price
44933 of using the (limited) gnulib implementation on Windows XP.
44935 * m4/inet_pton.m4: New file.
44937 2006-06-21 Simon Josefsson <jas@extundo.com>
44939 * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
44942 * lib/socket_.h: Don't define WINVER.
44944 * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
44945 slightly modified to work in gnulib.
44947 2006-06-21 Simon Josefsson <jas@extundo.com>
44949 * doc/gnulib.texi (Windows sockets): Add.
44951 2006-06-21 Paul Eggert <eggert@cs.ucla.edu>
44953 * lib/read-file.c (fread_file): Start with buffer allocation of
44954 0 bytes rather than 1 byte; this simplifies the code.
44955 Don't invoke feof; it's not needed. Refactor to avoid duplicate
44956 code to free buffer and save/restore errno.
44957 (internal_read_file): Remove unused local.
44959 2006-06-20 Paul Eggert <eggert@cs.ucla.edu>
44961 * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
44962 <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
44963 Problem reported by Denis Excoffier in
44964 <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
44966 2006-06-19 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
44968 * modules/sys_socket, modules/socklen: Include sys/types since
44969 FreeBSD 4.x's sys/socket.h needs it.
44971 2006-06-19 Simon Josefsson <jas@extundo.com>
44973 * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
44975 2006-06-19 Paul Eggert <eggert@cs.ucla.edu>
44977 * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
44979 2006-06-19 Bruno Haible <bruno@clisp.org>
44981 * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
44982 and FULL_PATH_INTTYPES_H in angle brackets.
44983 Reported by Mark D. Baushke <mdb@gnu.org>.
44985 2006-06-17 Eric Blake <ebb9@byu.net>
44987 * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
44990 2006-06-17 Bruno Haible <bruno@clisp.org>
44992 * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
44995 2006-06-17 Bruno Haible <bruno@clisp.org>
44997 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
44998 whether errno is declared. Assume <errno.h> declares errno.
45000 2006-06-17 Bruno Haible <bruno@clisp.org>
45002 * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
45004 2006-06-17 Bruno Haible <bruno@clisp.org>
45006 * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
45007 problem on Solaris 2.5.1.
45009 2006-06-16 Eric Blake <ebb9@byu.net>
45011 * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
45012 * lib/unicodeio.c [!defined errno]: Likewise.
45013 * lib/strtol.c [!defined errno]: Likewise.
45014 * lib/strtod.c [!defined errno]: Likewise.
45016 2006-06-15 Eric Blake <ebb9@byu.net>
45018 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
45020 2006-06-15 Eric Blake <ebb9@byu.net>
45022 * config/srclist.txt (ssize_t.m4): Lose sync.
45024 2006-06-15 Bruno Haible <bruno@clisp.org>
45026 * modules/stdint (Files): Include m4/full-header-path.m4,
45027 m4/size_max.m4, m4/wchar_t.m4.
45028 (Makefile.am): Many more substitutions.
45029 * modules/stdint-tests: New file.
45030 * tests/test-stdint.c: New file.
45032 2006-06-15 Bruno Haible <bruno@clisp.org>
45034 * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
45035 (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
45036 gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
45037 gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
45038 gl_CHECK_TYPE_SAME): New macros.
45040 2006-06-15 Bruno Haible <bruno@clisp.org>
45042 * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
45044 2006-06-15 Bruno Haible <bruno@clisp.org>
45046 * lib/stdint_.h: Rewritten to be fully auto-configured.
45047 Fixes bug on HP-UX/IA64.
45049 2006-06-11 Paul Eggert <eggert@cs.ucla.edu>
45051 * lib/getdate.y (__attribute__): Don't define if already defined.
45052 Problem reported by Larry Jones.
45053 * lib/utimens.c (__attribute__): Likewise.
45055 2006-06-04 Paul Eggert <eggert@cs.ucla.edu>
45057 * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
45058 reported by Andreas Schwab.
45060 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45061 Bruno Haible <bruno@clisp.org>
45063 * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
45064 check for the declaration of strnlen and a run test that exposes the
45065 AIX 5.1 strnlen bug. In the failure case, #define strndup to
45068 2006-05-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45069 Bruno Haible <bruno@clisp.org>
45071 * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
45073 2006-05-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45075 * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
45076 compile test, for Tru64 4.0D.
45078 2006-05-28 Karl Berry <karl@gnu.org>
45080 * config/srclist.txt (printf-args.c): lose sync.
45082 2006-05-26 Martin Lambers <marlam@marlam.de>
45084 * lib/getpass.c: Updates the test for the native W32 API, and adds
45085 missing includes, thus fixing compilation warnings.
45087 2006-05-25 Sergey Poznyakoff <gray@gnu.org.ua>
45089 * lib/exclude.c (exclude_fnmatch): New function.
45090 (excluded_file_name): Call exclude_fnmatch.
45091 * lib/exclude.h (excluded_file_name): New prototype
45093 2006-05-25 Paul Eggert <eggert@cs.ucla.edu>
45095 * lib/tempname.c (small_open, large_open): New macros.
45096 (__open, __open64) [!_LIBC]: Remove.
45097 (__gen_tempname): Use small_open and large_open instead of __open
45098 and __open64. This fixes a portability bug on HP-UX 11.11i
45099 reported by Simon Wing-Tang in
45100 <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
45102 2006-05-24 Bruno Haible <bruno@clisp.org>
45104 * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
45105 TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
45106 Reported by Thorsten Maerz <torte@netztorte.de> via
45107 Aaron Stone <aaron@serendipity.cx>.
45109 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45111 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
45112 gl_ rather than jm_. Link, don't run, so that cross-compiles are
45113 allowed. Check that resulting type is arithmetic. Move AC_REQUIRE
45114 and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
45115 not really conditional on the cache.
45116 (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
45118 2006-05-19 Paul Eggert <eggert@cs.ucla.edu>
45120 * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
45121 Use the usual Autoconf way to include <time.h> and/or sys/time.h.
45122 (my_usleep): Don't mishandle maximum value.
45124 2006-05-19 Jim Meyering <jim@meyering.net>
45126 * lib/getugroups.c: Correct an outdated comment. From Bruno Haible.
45128 2006-05-17 Bruno Haible <bruno@clisp.org>
45130 Cygwin portability.
45131 * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
45133 2006-05-17 Bruno Haible <bruno@clisp.org>
45135 * lib/stdint_.h: Fix recognition of Cygwin.
45137 2006-05-15 Bruno Haible <bruno@clisp.org>
45139 * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
45140 on libtool patch by Ralf Wildenhues.
45142 2006-05-14 Paul Eggert <eggert@cs.ucla.edu>
45144 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
45145 test for C99 conformance; (bool) 0.5 is an integer constant
45146 expression, but (bool) -0.5 is not. Problem reported by Fedor
45147 Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
45149 2006-05-11 Simon Josefsson <jas@extundo.com>
45151 * m4/xvasprintf.m4: Fix obvious typo.
45153 2006-05-11 Jim Meyering <jim@meyering.net>
45155 * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/. From
45158 2006-05-10 Simon Josefsson <jas@extundo.com>
45160 * lib/md4.c: Typo fix, update copyright years.
45161 (K1, K2): Don't use L because it turn computations into 64-bit on
45164 2006-05-10 Paul Eggert <eggert@cs.ucla.edu>
45166 * lib/crc.c (crc32_update): Remove unnecessary L suffix.
45167 * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
45168 unwanted sign propagation, e.g., on hosts with 64-bit int.
45169 There still are some problems with reeelly weird theoretical hosts
45170 (e.g., 33-bit int) but it's not worth worrying about now.
45171 * lib/sha1.c (rol): Likewise.
45172 (K1, K2, K3, K4): Remove unnecessary L suffix.
45174 2006-05-10 Bruno Haible <bruno@clisp.org>
45176 * lib/des.c: Cast to avoid warnings.
45178 2006-05-09 Bruno Haible <bruno@clisp.org>
45180 * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
45181 (Depends-on): Depend also on xsize, stdarg.
45182 (configure.ac): Add gl_XVASPRINTF.
45184 2006-05-09 Bruno Haible <bruno@clisp.org>
45186 * m4/xvasprintf.m4: New file.
45188 2006-05-09 Bruno Haible <bruno@clisp.org>
45190 * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
45191 (EOVERFLOW): Define fallback value.
45192 (xstrcat): New function.
45193 (xvasprintf): Recognize the special case of a string concatenation.
45195 2006-05-08 Eric Blake <ebb9@byu.net>
45197 * gnulib-tool (func_version): Base copyright year on CVS date.
45198 (func_emit_copyright_notice): New function.
45199 (func_emit_lib_Makefile_am): Use it.
45200 (func_emit_tests_Makefile_am): Likewise.
45201 (func_import): Likewise.
45203 2006-05-08 Bruno Haible <bruno@clisp.org>
45205 * modules/stdarg: New file.
45206 * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
45208 2006-05-08 Bruno Haible <bruno@clisp.org>
45210 * m4/stdarg.m4: New file, from GNU gettext.
45212 2006-05-08 Bruno Haible <bruno@clisp.org>
45214 * config/srclist.txt (build-aux/config.rpath): different from latest
45217 2006-05-08 Bruno Haible <bruno@clisp.org>
45219 * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
45221 2006-05-05 Jim Meyering <jim@meyering.net>
45223 * m4/warning.m4: New file, derived from bison's file by the same name.
45225 2006-05-03 Bruno Haible <bruno@clisp.org>
45227 * lib/stdint_.h: Shorter URL.
45228 * lib/inttypes.h: Likewise.
45230 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45232 * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
45234 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45236 * lib/verify.h: Document the internals better. Most of this change
45237 was written by Bruno Haible.
45239 2006-05-02 Paul Eggert <eggert@cs.ucla.edu>
45241 * doc/verify.texi: New file, partly based on a proposal by
45244 2006-05-02 Bruno Haible <bruno@clisp.org>
45246 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
45248 * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
45250 2006-04-29 Bruno Haible <bruno@clisp.org>
45252 * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
45253 Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
45255 2006-04-29 Bruno Haible <bruno@clisp.org>
45257 * gnulib-tool: Make --update option actually work.
45259 2006-04-29 Bruno Haible <bruno@clisp.org>
45261 * doc/gcd.texi: New file.
45262 * doc/gnulib.texi: Include it.
45264 2006-04-25 Paul Eggert <eggert@cs.ucla.edu>
45266 * lib/getdate.y (get_date): When adding relative date, start with the
45267 initial time, not with the result of the first mktime call.
45269 2006-04-25 Bruno Haible <bruno@clisp.org>
45271 * gnulib-tool (func_import): Output the include directives in three
45272 blocks, sorted separately.
45273 Reported by Ben Pfaff <blp@cs.stanford.edu>.
45275 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
45277 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
45278 to define main with arguments, for C++. Reported by Eric Blake.
45279 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
45280 Prefer 'int main ()' to 'int main (void)', for C++.
45281 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
45282 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
45283 for 'main', for C99 and C++.
45285 2006-04-24 Paul Eggert <eggert@cs.ucla.edu>
45287 * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
45288 Don't assume that exit status -1 is valid.
45289 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45290 * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
45291 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
45292 * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
45293 * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
45294 * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
45295 not AC_TRY_RUN. Use return, not exit. Don't assume that
45296 functions can be used without declaring them, or that you can
45297 exit with status -1.
45298 * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
45300 2006-04-24 Karl Berry <karl@gnu.org>
45302 * config/srclist.txt (longdouble.m4): sync lost.
45304 2006-04-24 Eric Blake <ebb9@byu.net>
45306 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
45308 2006-04-24 Bruno Haible <bruno@clisp.org>
45310 * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
45311 poll() implementation in AIX.
45312 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45314 2006-04-24 Bruno Haible <bruno@clisp.org>
45316 * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
45317 assigned exactly once.
45319 2006-04-23 Claudio Fontana <claudio@gnu.org>
45320 Bruno Haible <bruno@clisp.org>
45322 * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
45323 * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
45326 2006-04-23 Bruno Haible <bruno@clisp.org>
45328 * modules/copy-file: Depend on unistd.
45329 * modules/execute: Likewise.
45330 * modules/fatal-signal: Likewise.
45331 * modules/findprog: Likewise.
45332 * modules/mkdtemp : Likewise.
45333 * modules/pipe: Likewise.
45334 * modules/wait-process: Likewise.
45336 2006-04-23 Bruno Haible <bruno@clisp.org>
45338 * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
45339 condition was already detected.
45340 Reported by Ben Pfaff <blp@cs.stanford.edu>.
45342 2006-04-23 Bruno Haible <bruno@clisp.org>
45344 * lib/copy-file.c: Include <unistd.h> unconditionally.
45345 * lib/execute.c: Likewise.
45346 * lib/fatal-signal.c: Likewise.
45347 * lib/findprog.c: Likewise.
45348 * lib/mkdtemp.c: Likewise.
45349 * lib/pipe.h: Likewise.
45350 * lib/pipe.c: Likewise.
45351 * lib/wait-process.h: Likewise.
45353 2006-04-23 Bruno Haible <bruno@clisp.org>
45355 * gnulib-tool (func_usage): Fix --import description. Document
45357 (func_import): Create temporary file in a temporary directory, if
45358 --dry-run is specified. Silence errors from 'grep' when there are no
45359 m4 files in $m4dir.
45360 (func_create_testdir): Silence errors from 'grep' when there are no
45361 m4 files in $m4dir.
45362 Reported by Karl Berry <karl@freefriends.org>.
45364 2006-04-20 Bruno Haible <bruno@clisp.org>
45366 * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
45367 one argument, so that the code will be portable to Autoconf 2.60.
45368 * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
45369 * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
45370 * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
45372 2006-04-19 Derek Price <derek@ximbiot.com>
45373 Eric Blake <ebb9@byu.net>
45375 * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
45376 rather than "/full/path.h". Update comment to match. Shorten &
45377 generalize m4_translit call via AS_TR_CPP.
45379 2006-04-19 Derek Price <derek@ximbiot.com>
45380 Eric Blake <ebb9@byu.net>
45382 * lib/inttypes.h: Correct grammar in comment.
45384 2006-04-18 Derek Price <derek@ximbiot.com>
45385 Paul Eggert <eggert@cs.ucla.edu>
45387 * modules/inttypes: New file.
45388 * modules/strtoimax, modules/strtoumax: Depend on inttypes.
45390 2006-04-18 Derek Price <derek@ximbiot.com>
45391 Paul Eggert <eggert@cs.ucla.edu>
45393 * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
45396 2006-04-18 Derek Price <derek@ximbiot.com>
45397 Paul Eggert <eggert@cs.ucla.edu>
45399 * lib/inttypes.h: New file.
45400 * lib/strtoimax.c: Assume <inttypes.h>.
45402 2006-04-15 Paul Eggert <eggert@cs.ucla.edu>
45404 * lib/utimens.c (futimens): glibc futimesat messes up if /proc
45405 isn't mounted. Problem reported by Kir Kolyshkin.
45407 2006-04-13 Paul Eggert <eggert@cs.ucla.edu>
45409 * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
45410 RE_ENABLE_I18N is not defined. Problem reported by Mark D. Baushke via
45412 * lib/regex.h (RE_DUP_MAX): Update comment to match current
45415 2006-04-12 Eric Blake <ebb9@byu.net>
45417 * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
45418 is now done automatically by the corresponding Autoconf macro.
45420 2006-04-11 Paul Eggert <eggert@cs.ucla.edu>
45422 * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
45425 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
45427 Merge regex changes from libc, removing some of our
45428 POSIX-conformance changes that were rejected and redoing them in a
45429 less-intrusive way.
45431 * lib/regcomp.c (re_compile_internal, init_dfa):
45432 Length arg is now size_t, not Idx. All uses changed.
45433 (peek_token): Forward decl now says internal_function.
45434 (__re_error_msgid, __re_error_msgid_idx):
45435 Now static rather than extern with attribute_hidden.
45436 (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
45437 For some reason libc prefers K&R style defns for external functions.
45438 (regerror) [!defined _LIBC]: Likewise.
45439 (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
45440 (seek_collating_symbol_entry, lookup_collation_sequence_value):
45441 (build_range_exp, build_collating_symbol):
45442 Use K&R-style defn.
45443 (re_compile_fastmap): Use '\0' to memset, not 0.
45444 (utf8_sb_map): Make the calculations more obvious.
45445 (init_dfa, parse_bracket_exp, build_charclass_op):
45446 Call calloc and cast result, as glibc does.
45447 (init_word_char, fetch_token, peek_token, peek_token_bracket):
45448 (build_range_exp, build_collating_symbol):
45449 Now internal functions.
45451 * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
45453 * lib/regex.h (__USE_GNU_REGEX): New macro. Don't depend on
45454 _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
45455 Don't depend on VMS; depend on __VMS instead, for POSIX
45456 namespace cleanness.
45457 (regoff_t): Define to ssize_t, not long int.
45459 Remove the REG_ macros named below. Instead, make the old names
45460 (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
45462 (REG_BACKSLASH_ESCAPE_IN_LISTS):
45463 (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
45464 (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
45465 (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
45466 (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
45467 (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
45468 (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
45469 (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
45470 (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
45471 (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
45472 (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
45473 (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
45474 (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
45475 (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
45476 (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
45477 (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
45478 (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
45480 Remove. All uses replaced by the old RE_* names.
45481 (RE_BACKSLASH_ESCAPE_IN_LISTS):
45482 (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
45483 (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
45484 (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
45485 (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
45486 (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
45487 (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
45488 (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
45489 (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
45490 (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
45491 (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
45492 Don't bother having these macros be independent of each others'
45493 values, since they no longer exist in the POSIX name space.
45495 Rename the following member names back to their old names,
45496 unless !__USE_GNU_REGEX. All uses changed back.
45497 (buffer): Renamed from re_buffer.
45498 (allocated): Renamed from re_allocated.
45499 (used): Renamed from re_used.
45500 (syntax): Renamed from re_syntax.
45501 (fastmap): Renamed from re_fastmap.
45502 (translate): Renamed from re_translate.
45503 (can_be_null): Renamed from re_can_be_null.
45504 (regs_allocated): Renamed from re_regs_allocated.
45505 (fastmap_accurate): Renamed from re_fastmap_accurate.
45506 (no_sub): Renamed from re_no_sub.
45507 (not_bol): Renamed from re_not_bol.
45508 (not_eol): Renamed from re_not_eol.
45509 (newline_anchor): Renamed from re_newline_anchor.
45510 (num_regs): Renamed from rm_num_regs.
45511 (start): Renamed from rm_start.
45512 (end): Renamed from rm_end.
45514 (free_state): Move up a bit.
45516 * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
45517 #define to be empty.
45518 (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
45519 when that is what is intended.
45520 (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
45521 (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
45523 (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
45524 All uses changed back to re_malloc, etc. It's now the caller's
45525 responsibility to check for overflow; all callers changed.
45526 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
45527 (re_x2nrealloc): Remove.
45528 (free_state): Remove decl.
45530 * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
45531 (re_set_registers, re_exec):
45532 Use K&R-style defn.
45534 2006-01-31 Roland McGrath <roland@redhat.com>
45536 * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
45537 Reported by Mike Frysinger <vapier@gentoo.org>.
45539 2006-01-15 Andreas Jaeger <aj@suse.de>
45542 * lib/regex_internal.c (re_string_reconstruct): Adjust for
45543 build_wcs_upper_buffer change.
45544 (build_wcs_upper_buffer): Change return type.
45546 2005-12-10 Ulrich Drepper <drepper@redhat.com>
45548 * lib/regex_internal.h: Include <stdint.h> if available.
45550 2005-12-06 Paolo Bonzini <bonzini@gnu.org>
45552 * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
45554 2005-10-14 Ulrich Drepper <drepper@redhat.com>
45556 * lib/regcomp.c: Adjust for changed secondary hash function.
45558 2005-09-30 Ulrich Drepper <drepper@redhat.com>
45560 * lib/regex.h: Pretty printing.
45561 Clean up namespace a bit.
45563 2005-09-30 Jakub Jelinek <jakub@redhat.com>
45565 * lib/regexec.c (update_cur_sifted_state, check_arrival,
45566 check_arrival_add_next_nodes): Avoid using uninitialized variable.
45568 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
45569 Ulrich Drepper <drepper@redhat.com>
45572 * lib/regex_internal.h (bitset_t): Renamed from bitset. All uses
45574 (bitset_word_t): Renamed from bitset_word. All uses changed.
45576 2005-09-22 Ulrich Drepper <drepper@redhat.com>
45579 * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
45580 * lib/regcomp.c: Remove unnecessary uses of
45581 unsigned RE_TRANSLATE_TYPE.
45582 * lib/regex_internal.h: Likewise.
45583 * lib/regex_internal.c: Likewise.
45584 * lib/regexec.c: Likewise.
45585 Based on a patch by Stepan Kasal <kasal@ucw.cz>.
45587 2005-09-07 Ulrich Drepper <drepper@redhat.com>
45589 * lib/regexec.c (find_recover_state): Remove unnecessary
45591 (transit_state_bkref): Make DFA a const pointer.
45592 (get_subexp): Likewise.
45593 (check_arrival): Likewise.
45594 (update_cur_sifted_state): Likewise.
45595 (re_search_internal): Likewise.
45596 (prune_impossible_nodes): Likewise.
45597 (acquire_init_state_context): Likewise.
45598 (proceed_next_node): Likewise.
45599 (set_regs): Likewise.
45600 (free_fail_stack_return): Likewise.
45601 (check_arrival_expand_ecl): Mark DFA parameter as const.
45602 (check_arrival_expand_ecl_sub): Likewise.
45603 (check_subexp_limits): Likewise.
45604 (sub_epsilon_src_nodes): Likewise.
45605 (add_epsilon_src_nodes): Likewise.
45606 (merge_state_array): Likewise.
45607 (update_regs): Likewise.
45608 (build_trtable): Likewise.
45609 (sift_states_backward): Mark MCTX parameter as const.
45610 (build_sifted_states): Likewise.
45611 (update_cur_sifted_state): Likewise.
45612 (sift_states_mkref): Likewise.
45613 (check_arrival_expand_ecl): Mark eclosure as const.
45614 (check_dst_limits_calc_pos_1): Likewise.
45615 * lib/regex_internal.h (re_match_context_t): Make dfa a const
45618 2005-09-06 Ulrich Drepper <drepper@redhat.com>
45620 * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
45621 (transit_state_sb): Likewise.
45622 (transit_state_mb): Likewise.
45623 (sift_states_iter_mb): Likewise.
45624 (check_arrival_add_next_nodes): Likewise.
45625 (check_node_accept_bytes): Change first parameter to pointer-to-const.
45626 [_LIBC] (re_search_2_stub): Use mempcpy.
45628 * lib/regex_internal.c (re_string_reconstruct): Avoid calling
45629 mbrtowc for very simple UTF-8 case.
45631 * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
45632 a pointer-to-const.
45633 (re_acquire_state_context): Likewise.
45634 * lib/regex_internal.h: Adjust prototypes.
45636 * lib/regex.c: Prevent using C++ compilers.
45638 * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
45639 (re_acquire_state_context): Likewise.
45641 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
45643 * modules/regex (Depends-on): Add ssize_t.
45645 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
45647 * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
45650 2006-04-09 Paul Eggert <eggert@cs.ucla.edu>
45652 * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
45654 2006-03-29 Mark D. Baushke <mdb@gnu.org>
45655 Bruno Haible <bruno@clisp.org>
45657 * lib/stdint_.h: On OpenBSD, don't redefine types already included in
45658 <sys/types.h> and <inttypes.h>.
45660 2006-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45662 * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
45663 `__error_t_defined', so argp.h will not typedef the former.
45665 2006-03-25 Paul Eggert <eggert@cs.ucla.edu>
45667 * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
45668 REG_SYNTAX_EMACS, and REG_IGNORE_CASE. Settle for the traditional
45669 glibc names. Even if glibc is changed to conform to POSIX, the
45670 traditional names will be available anyway, since regex depends on
45671 the extensions module. Also, fix a longstanding typo in the
45672 implementation of Spencer ERE test #75 from grep 2.3. Problems
45673 reported by Emanuele Giaquinta. Also, change sense of cached
45674 variable, so that the message makes sense.
45676 2006-03-24 Simon Josefsson <jas@extundo.com>
45678 * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
45679 including some doc fixes.
45680 (base64_encode_alloc): Fix +1 bug on allocation failures.
45682 2006-03-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45684 * lib/base64.c (base64_encode): Do not read past end of array with
45685 unsanitized input on systems with CHAR_BIT > 8.
45687 2006-03-24 Eric Blake <ebb9@byu.net>
45689 * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
45691 2006-03-22 Karl Berry <karl@gnu.org>
45693 * config/srclist.txt (*setenv.[ch]): get from coreutils.
45694 * config/srclistvars.sh (COREUTILS): new var.
45696 2006-03-17 Jim Meyering <jim@meyering.net>
45698 * m4/regex.m4 (gl_REGEX): Fix typo in last change:
45699 s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
45701 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
45703 * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
45704 no longer needs it. Instead, check that regoff_t is as least
45705 as wide as ptrdiff_t.
45707 Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
45708 so that our regex.h stays compatible with the installed regex.
45709 This is helpful for installers who configure --without-included-regex.
45710 Problem reported by Emanuele Giaquinta.
45712 2006-03-16 Paul Eggert <eggert@cs.ucla.edu>
45714 * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
45715 Typedef to long int, not to off_, as POSIX will likely change
45718 2006-03-15 Eric Blake <ebb9@byu.net>
45720 * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
45722 2006-03-13 Sergey Poznyakoff <gray@gnu.org.ua>
45724 * lib/argp-help.c (validate_uparams): Fix typo
45725 * lib/argp-parse.c (argp_default_options): Consistently begin help
45726 messages with a lowercase letter.
45728 2006-03-11 Paul Eggert <eggert@cs.ucla.edu>
45730 * lib/time_r.h (asctime_r, ctime_r): Remove. These functions can
45731 overrun buffers and shouldn't be used (much as gets shouldn't be
45733 * lib/time_r.c (asctime_r, ctime_r): Likewise.
45735 2006-03-08 Simon Josefsson <jas@extundo.com>
45737 * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
45738 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45740 2006-03-08 Simon Josefsson <jas@extundo.com>
45742 * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
45743 $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45745 2006-03-08 Simon Josefsson <jas@extundo.com>
45747 * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
45748 signal that configure disabled the device.
45750 2006-03-08 Simon Josefsson <jas@extundo.com>
45752 * build-aux/maint.mk: Fix refresh-po, to handle no translated
45755 2006-03-07 Simon Josefsson <jas@extundo.com>
45757 * modules/getopt (Depends-on): Add unistd.
45759 * modules/unistd: New file.
45761 2006-03-07 Simon Josefsson <jas@extundo.com>
45763 * modules/gc-random: New file.
45765 2006-03-07 Simon Josefsson <jas@extundo.com>
45767 * m4/unistd_h.m4: New file.
45769 2006-03-07 Simon Josefsson <jas@extundo.com>
45771 * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
45772 test to be side-effect free by storing the result in the cache
45773 variable gl_cv_lib_readline, and moving the assignment of
45774 LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
45775 From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
45777 2006-03-07 Simon Josefsson <jas@extundo.com>
45779 * m4/gc-random.m4: New file, mostly from gc.m4. Warn instead of
45780 error on missing devices (the functions will return an error).
45782 * m4/gc.m4: Move random stuff to gc-random.m4
45784 2006-03-07 Simon Josefsson <jas@extundo.com>
45786 * lib/unistd_.h: New file.
45788 2006-03-07 Simon Josefsson <jas@extundo.com>
45790 * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
45792 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
45794 * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
45795 Problem reported by Juan Manuel Guerrero.
45797 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
45799 * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
45801 * lib/getlogin_r.c: Likewise.
45802 * lib/getlogin_r.h: Likewise.
45803 * lib/glob.c: Likewise.
45804 * lib/pagealign_alloc.c: Likewise.
45805 * lib/unistd_.h: Remove; no longer needed.
45807 2006-03-07 Paul Eggert <eggert@cs.ucla.edu>
45809 * MODULES.html.sh (Support for systems lacking POSIX:2001):
45811 * modules/c-stack (Depends-on): Add unistd.
45812 * modules/getlogin_r: Likewise.
45813 * modules/glob: Likewise.
45814 * modules/pagealign_alloc: Likewise.
45815 * modules/unistd (Files): Remove lib/unistd_.h.
45816 (EXTRA_DIST): Remove.
45817 (unistd.h): Create using 'echo' rather than 'cp', so that we don't
45819 (MOSTLYCLEANFILES): Remove unistd.h-t.
45821 2006-03-03 Simon Josefsson <jas@extundo.com>
45823 * build-aux/maint.mk: Add several syntax checks from CoreUtils.
45825 2006-03-03 Simon Josefsson <jas@extundo.com>
45827 * build-aux/maint.mk: Add refresh-po rule, based on ideas from
45830 2006-03-03 Simon Josefsson <jas@extundo.com>
45832 * build-aux/maint.mk: Add indent target.
45834 2006-03-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
45836 * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
45837 our replacement poll.h in any case, to avoid a differing
45838 declaration from a system header. Seen on AIX.
45840 2006-03-01 Simon Josefsson <jas@extundo.com>
45842 * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
45845 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
45847 * modules/gettime (Depends-on): Add extensions module.
45848 * modules/nanosleep (Depends-on): Likewise.
45849 * modules/settime (Depends-on): Likewise.
45851 2006-03-01 Paul Eggert <eggert@cs.ucla.edu>
45853 * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
45854 not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
45856 * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
45857 * m4/timespec.m4 (gl_TIMESPEC): Likewise.
45859 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
45860 not "==". Reported by Ralf Wildenhues.
45862 2006-03-01 Karl Berry <karl@gnu.org>
45864 * doc/Copyright/request-*: new files, synced from gnuorg.
45866 2006-03-01 Karl Berry <karl@gnu.org>
45868 * config/srclist.txt (Copyright/*): new entries.
45870 2006-02-28 Simon Josefsson <jas@extundo.com>
45872 * lib/getopt.c: Protect #include of unistd.h, for MSVS.
45874 2006-02-27 Simon Josefsson <jas@extundo.com>
45876 * lib/base64.h: Indent #define's. From Jim Meyering
45877 <jim@meyering.net>.
45879 2006-02-27 Jim Meyering <jim@meyering.net>
45881 Revert the change of 2006-02-24, so these files can continue
45882 to be sync'd from gettext.
45883 * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
45886 2006-02-26 Paul Eggert <eggert@cs.ucla.edu>
45888 * modules/intprops: New file.
45889 * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
45891 * modules/getloadavg (Files): Remove lib/intprops.h.
45892 (Depends-on): Add intprops.
45893 * modules/human: Likewise.
45894 * modules/inttostr: Likewise.
45895 * modules/openat: Likewise.
45896 * modules/sig2str: Likewise.
45897 * modules/userspec: Likewise.
45898 * modules/utimecmp: Likewise.
45899 * modules/xnanosleep: Likewise.
45900 * modules/xstrtol: Likewise.
45902 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny changes)
45904 * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
45905 * modules/lock-tests (TESTS): Use $(EXEEXT).
45906 * modules/tls-tests: Likewise.
45907 * modules/argp-tests: Likewise.
45908 (check_PROGRAMS): New var, replacing...
45909 (noinst_PROGRAMS, test_argp_SOURCES): Remove.
45911 2006-02-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45913 * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
45916 2006-02-24 Paul Eggert <eggert@cs.ucla.edu>
45918 * lib/glob.c: Say "invalid" rather than "illegal" in comments.
45920 2006-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
45922 Sync from coreutils.
45923 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
45926 2006-02-22 Jim Meyering <jim@meyering.net>
45928 Sync from coreutils.
45929 * m4/chdir-safer.m4: New file.
45931 2006-02-20 Paul Eggert <eggert@cs.ucla.edu>
45933 * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
45934 AT_FDCWD exceeds INT_MAX.
45935 * lib/openat.h (AT_FDCWD): Likewise.
45937 2006-02-17 Eric Blake <address@hidden>
45939 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
45941 2006-02-16 Simon Josefsson <jas@extundo.com>
45943 * modules/getaddrinfo (Depends-on): Add sys_socket.
45945 2006-02-15 Simon Josefsson <jas@extundo.com>
45947 * build-aux/maint.mk: Add dsyntax-check rule.
45949 2006-02-15 Eric Blake <ebb9@byu.net>
45951 * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
45952 winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
45953 'present but cannot compile' warnings on cygwin.
45954 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET. Don't
45955 use ws2tcpip.h if sys/socket.h works.
45956 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
45957 (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
45959 2006-02-14 Simon Josefsson <jas@extundo.com>
45961 * modules/maintainer-makefile (Files): Rename.
45963 * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
45964 and (the local) Makefile.cfg to maint-cfg.mk.
45966 * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
45969 * modules/maintainer-makefile: New module.
45971 * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
45972 severaly stripped to make it possible to build it up from scratch
45973 with reliable tests.
45975 * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
45976 fixes to permit overriding the default actions when configure and
45977 makefile are not available.
45979 2006-02-14 Paul Eggert <eggert@cs.ucla.edu>
45981 Sync from coreutils.
45982 * modules/lstat (Depends-on): Don't depend on xalloc.
45983 (License): Change from GPL to LGPL, since this is now simply a
45984 replacement for a libc function.
45986 2006-02-14 Jim Meyering <jim@meyering.net>
45988 Sync from coreutils.
45990 Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
45991 failure on deficient systems, and simplify gnulib lgpl dependencies.
45992 * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
45993 xmalloc/lstat combination. Based on a patch from Bruno Haible.
45995 * lib/xalloc-die.c: Remove unused definition of N_.
45997 2006-02-14 Jim Meyering <jim@meyering.net>
45999 Sync from coreutils.
46000 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
46001 AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
46002 $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
46003 double-quote uses of that variable, to accommodate the rare case in
46004 which getmntent is available in none of the libraries checked. This
46005 happens at least on FreeBSD 5.0.
46007 2006-02-13 Simon Josefsson <jas@extundo.com>
46009 * gnulib-tool (Usage): Fix --import, from
46010 karl@freefriends.org (Karl Berry).
46012 2006-02-13 Sergey Poznyakoff <gray@gnu.org.ua>
46014 * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
46016 2006-02-07 Sergey Poznyakoff <gray@gnu.org.ua>
46018 * lib/argp-namefrob.h: Restore changes accidentally lost during the
46019 "autoupdate" on 2005-12-12.
46021 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46023 * modules/closeout (Depends-on): Remove atexit.
46025 2006-02-07 Paul Eggert <eggert@cs.ucla.edu>
46027 * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
46028 ints to 0 or 1, as this isn't true for the stdbool.h substitute.
46030 2006-02-05 Paul Eggert <eggert@cs.ucla.edu>
46032 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
46033 __EXTENSIONS__ if this causes compilation to fail. Problem
46034 reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
46035 c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
46037 2006-01-27 Paul Eggert <eggert@cs.ucla.edu>
46039 * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
46040 Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
46041 <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
46044 2006-01-26 Simon Josefsson <jas@extundo.com>
46046 * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
46047 prototype is visible on mingw32.
46049 * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
46052 * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
46055 2006-01-26 Paul Eggert <eggert@cs.ucla.edu>
46057 * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too. Don't
46058 attempt to open for write; this always fails, at least on POSIX
46059 hosts. This reinstates the 2006-01-09 change, which was
46060 inadvertently removed.
46062 2006-01-26 Bruno Haible <bruno@clisp.org>
46064 * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
46065 Reported by Paul Eggert.
46067 2006-01-26 Bruno Haible <bruno@clisp.org>
46068 Paul Eggert <eggert@cs.ucla.edu>
46070 * lib/stdbool_.h (_Bool)
46071 [(! (defined __cplusplus || defined __BEOS__)
46072 && !defined __GNUC__
46073 && !(defined __HP_cc || defined __xlc__
46074 || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
46075 || defined __sgi))]:
46076 #define to signed char in these cases too; this simplifies
46077 the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
46078 etc., separately) and makes it more conservative.
46080 2006-01-25 Simon Josefsson <jas@extundo.com>
46082 * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
46083 -lws2_32. Protect sys/socket.h and netdb.h #include's. Include
46084 ws2tcpip.h with WINVER=0x0501. All for mingw32.
46086 2006-01-25 Sergey Poznyakoff <gray@gnu.org.ua>
46088 * lib/argp-namefrob.h: Bugfix. Remove stray #
46090 2006-01-25 Paul Eggert <eggert@cs.ucla.edu>
46092 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
46093 so that we test the test.
46094 Check for yet another HP-UX cc bug involving *bool |= bool.
46096 2006-01-25 Karl Berry <karl@gnu.org>
46098 * config/srclist.txt (vasnprintf.c): sync lost.
46100 2006-01-25 Jim Meyering <jim@meyering.net>
46102 Sync from the stable (b5) branch of coreutils:
46104 * lib/fts.c (fts_children): Don't let close() clobber errno from
46107 * lib/fts.c (fts_stat): When following a symlink-to-directory,
46108 don't necessarily interpret stat-fails+lstat-succeeds as indicating
46109 a dangling symlink. That can also happen at least for ELOOP.
46110 The fix: return FTS_SLNONE only when the stat errno is ENOENT.
46111 FYI, this bug predates the inclusion of fts.c in coreutils.
46113 * lib/fts.c (fts_open): Put new maxarglen declaration and uses
46114 in their own block, so pre-c99 compilers don't object.
46116 Avoid the double-free (first in fts_read, second in fts_close) that
46117 would occur when an `active' directory is made inaccessible (e.g.,
46118 via chmod a-x) during a traversal.
46119 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46120 before returning. Reproduce this failure by
46121 mkdir -p a/b; cd a; chmod a-x . b
46122 Reported by Stavros Passas.
46124 2006-01-25 Jim Meyering <jim@meyering.net>
46126 * lib/fileblocks.c: Remove more useless parentheses.
46127 * lib/readutmp.h: Likewise.
46129 2006-01-25 Bruno Haible <bruno@clisp.org>
46131 * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
46133 Reported by Paul Eggert.
46135 2006-01-25 Bruno Haible <bruno@clisp.org>
46137 * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
46138 rid of a trap command. For Solaris sh.
46139 Reported by Mark D. Baushke <mdb@gnu.org>.
46141 2006-01-24 Simon Josefsson <jas@extundo.com>
46143 * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
46146 2006-01-24 Karl Berry <karl@gnu.org>
46148 * config/srclist.txt (argp-namefrob.h): sync lost.
46150 2006-01-24 Jim Meyering <jim@meyering.net>
46152 * modules/openat (Files): Add lib/intprops.h.
46153 From Mark D. Baushke.
46155 2006-01-24 Jim Meyering <jim@meyering.net>
46157 * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
46158 Reported by Mark D. Baushke.
46160 2006-01-24 Jim Meyering <jim@meyering.net>
46162 * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
46164 2006-01-24 Bruno Haible <bruno@clisp.org>
46166 * modules/strnlen (Maintainer): Change from glibc to all.
46168 2006-01-24 Bruno Haible <bruno@clisp.org>
46170 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
46171 Patch by Paul Eggert.
46173 2006-01-24 Bruno Haible <bruno@clisp.org>
46175 * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
46177 Report and patch by Albert Chin-A-Young <china@thewrittenword.com> on
46180 * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
46181 'signed char' to avoid problems with the built-in _Bool type.
46182 Reported by Paul Eggert on 2005-11-26.
46184 2006-01-24 Bruno Haible <bruno@clisp.org>
46186 * gnulib-tool (func_import): Avoid constructing complicated sed
46187 expressions inside backquote.
46188 Report and solution by Mark D. Baushke <mdb@gnu.org>.
46190 2006-01-23 Ulrich Drepper <drepper@redhat.com>
46192 These changes imported from libc.
46193 * lib/getopt.c: Use __fxprintf instead of inline stream orientation
46194 test and two separate function calls.
46195 * lib/strndup.c (__strndup): Add libc_hidden_def.
46197 2006-01-23 Simon Josefsson <jas@extundo.com>
46199 * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
46200 Remove the test_*_SOURCES variable: automake infers it by default.
46201 * modules/tls-tests: Likewise.
46203 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46205 Work around porting bugs reported by Dieter in
46206 <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
46207 * lib/getopt.c (_NOPROTO): Remove; no longer needed.
46208 Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
46209 Include "getopt.h" first, to check interface.
46210 (getenv): Declare only if defined HAVE_DECL_GETENV &&
46212 * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
46213 (__strndup): Revert to K&R-style function dfns, the glibc style.
46214 * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
46215 (strnlen, __strnlen): Remove #defines and #undefs; not needed.
46216 Include strnlen.h first, to get prototype properly.
46217 (strnlen): Renamed from __strnlen.
46220 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46222 * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
46224 2006-01-23 Paul Eggert <eggert@cs.ucla.edu>
46226 * config/srclist.txt: Adjust to reflect glibc reorganization.
46227 This affects only comments.
46229 2006-01-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
46231 * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
46232 Reported by Bruce Korb <bkorb@gnu.org>.
46234 2006-01-22 Paul Eggert <eggert@cs.ucla.edu>
46236 * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
46237 to pacify gcc -Wswitch-default.
46239 2006-01-22 Bruno Haible <bruno@clisp.org>
46241 * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
46242 temporary buffer for sprintf, take into account the precision also
46243 for 'd', 'i', 'u', 'o', 'x', 'X'.
46245 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
46247 * modules/argp-tests: New module
46248 * tests/test-argp.c: New file
46249 * tests/test-argp-2.sh: New file
46251 2006-01-21 Sergey Poznyakoff <gray@gnu.org.ua>
46253 * lib/argp-help.c (usage_long_opt): Do not print DOC options.
46254 (__argp_base_name): Removed
46255 * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
46257 (__argp_base_name): Provide macro definition or extern declaration
46258 depending on the configuration
46260 2006-01-20 Simon Josefsson <jas@extundo.com>
46262 * modules/inet_ntop (Depends-on): Depend on sys_socket.
46264 2006-01-20 Simon Josefsson <jas@extundo.com>
46266 * lib/inet_ntop.h: Unconditionally include sys/socket.h.
46268 2006-01-20 Paul Eggert <eggert@cs.ucla.edu>
46270 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
46271 rather than -Xlinker -z -Xlinker ignore, as it's more portable.
46272 Suggested by Bruno Haible.
46274 2006-01-20 Karl Berry <karl@gnu.org>
46276 * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
46277 until changes propagate, I guess.
46279 2006-01-19 Simon Josefsson <jas@extundo.com>
46281 * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
46283 2006-01-19 Simon Josefsson <jas@extundo.com>
46285 * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
46287 2006-01-19 Simon Josefsson <jas@extundo.com>
46289 * gnulib-tool: Set check_PROGRAMS.
46291 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46292 modules/des-tests, modules/gc-arcfour-tests,
46293 modules/gc-arctwo-tests, modules/gc-des-tests,
46294 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46295 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46296 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46297 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46298 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46299 modules/md5-tests, modules/readline, modules/rijndael-tests: Use
46300 check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
46303 2006-01-18 Simon Josefsson <jas@extundo.com>
46305 * modules/socklen (Depends-on): Depend on sys_socket.
46307 2006-01-18 Simon Josefsson <jas@extundo.com>
46309 * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
46310 modules/des-tests, modules/gc-arcfour-tests,
46311 modules/gc-arctwo-tests, modules/gc-des-tests,
46312 modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
46313 modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
46314 modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
46315 modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
46316 modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
46317 modules/md5-tests, modules/readline, modules/rijndael-tests: Add
46318 $(EXEEXT) to automake TESTS variable, for mingw32.
46320 2006-01-17 Simon Josefsson <jas@extundo.com>
46322 * modules/socklen (Include): Need sys/socket.h.
46324 2006-01-17 Bruno Haible <bruno@clisp.org>
46326 * modules/ssize_t (Include): Add <sys/types.h>.
46328 2006-01-16 Paul Eggert <eggert@cs.ucla.edu>
46330 * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
46331 it's not portable and it doesn't work with cross-compiles.
46332 Problem reported by Bruno Haible. Fix missing-$ typo in
46333 'test "gl_cv_ignore_unused_libraries" ...' that prevented
46334 -zignore from being used with Sun's C compiler.
46336 2006-01-12 Simon Josefsson <jas@extundo.com>
46338 * lib/base64.c: Fix warning, reported by Bruno Haible
46339 <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
46341 2006-01-12 Bruno Haible <bruno@clisp.org>
46343 * modules/ldd: New file.
46344 * build-aux/ldd.sh.in: New file.
46345 * MODULES.html.sh (Support for building libraries and executables): Add
46348 2006-01-12 Bruno Haible <bruno@clisp.org>
46350 * m4/ldd.m4: New file.
46352 2006-01-12 Bruno Haible <bruno@clisp.org>
46354 * gnulib-tool (func_import, func_create_testdir): Don't go into an
46355 endless loop while replacing $auxdir with build-aux.
46357 2006-01-11 Simon Josefsson <jas@extundo.com>
46359 * lib/stdint_.h (SIZE_MAX): Add missing (.
46361 2006-01-11 Paul Eggert <eggert@cs.ucla.edu>
46363 Sync from coreutils.
46364 * lib/md5.c: Fix commentary typos.
46365 (alignof, UNALIGNED_P): No need for a GCC-specific version.
46366 * lib/md5.h (__attribute__): Remove; unused.
46367 * lib/sha1.c: Fix commentary to match md5 better.
46368 * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
46369 so that we don't need to worry about alignment. All uses changed.
46370 This merges the 2005-10-28 md5 change into sha1.
46372 2006-01-11 Jim Meyering <jim@meyering.net>
46374 Sync from coreutils.
46375 * lib/md5.c (OP): Fix spacing.
46377 2006-01-11 Bruno Haible <bruno@clisp.org>
46379 Ensure automatic ordering between gl_LOCK and gl_ARGP.
46380 * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
46381 (gl_LOCK): New macro, requiring gl_LOCK_BODY.
46383 2006-01-11 Bruno Haible <bruno@clisp.org>
46385 Ensure automatic ordering between gl_LOCK and gl_ARGP.
46386 * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
46387 the "early" section as well.
46389 2006-01-11 Bruno Haible <bruno@clisp.org>
46391 Avoid "ar: no archive members specified" error on MacOS X.
46392 * gnulib-tool (func_modules_add_dummy): New function.
46393 (func_import, func_create_testdir): Invoke it.
46395 2006-01-11 Bruno Haible <bruno@clisp.org>
46397 * gnulib-tool (func_import, func_create_testdir): Replace build-aux
46398 with $auxdir in AC_CONFIG_FILES statements.
46400 2006-01-11 Bruno Haible <bruno@clisp.org>
46402 * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
46403 Initialize also noinst_HEADERS to empty.
46405 2006-01-11 Bruno Haible <bruno@clisp.org>
46407 * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
46409 (func_create_megatestdir): Call aclocal, autoconf, automake here, not
46412 2006-01-11 Bruno Haible <bruno@clisp.org>
46414 * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
46415 overridable by the user.
46416 Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46418 2006-01-10 Simon Josefsson <jas@extundo.com>
46420 * modules/sys_socket: New file.
46422 2006-01-10 Simon Josefsson <jas@extundo.com>
46424 * m4/sys_socket_h.m4: New file.
46426 2006-01-10 Simon Josefsson <jas@extundo.com>
46428 * lib/socket_.h: New file.
46430 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46432 * modules/readutmp (Maintainer): Add myself.
46434 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46436 * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
46437 the 2002-12-31 change. Problem and fix reported by Bruno Haible.
46438 People who are still concerned with buggy memcmp implementations
46439 can invoke gl_FUNC_MEMCMP themselves.
46441 2006-01-10 Paul Eggert <eggert@cs.ucla.edu>
46443 * lib/regex_internal.h (BITSET_WORD_BITS):
46444 Work around a bug in 64-bit PGC (before version 6.1-2), where the
46445 preprocessor mishandles large unsigned values as if they were signed.
46446 Problem reported by Claudio Fontana in
46447 <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
46449 2006-01-10 Jim Meyering <jim@meyering.net>
46451 Avoid the double-free (first in fts_read, second in fts_close) that
46452 would occur when an `active' directory is made inaccessible (e.g.,
46453 via chmod a-x) during a traversal.
46454 * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
46455 before returning. Reproduce this failure by
46456 mkdir -p a/b; cd a; chmod a-x . b
46457 Reported by Stavros Passas.
46459 Sync from coreutils.
46460 * lib/sha1.c: Tweak grammar in a comment.
46462 2006-01-10 Jim Meyering <jim@meyering.net>
46464 * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
46465 Patch by Joerg Sonnenberger.
46467 2006-01-10 Bruno Haible <bruno@clisp.org>
46469 * modules/readutmp: Depend on module free.
46470 * modules/strtok_r: Depend on module restrict.
46472 2006-01-10 Bruno Haible <bruno@clisp.org>
46474 * modules/gettext (configure.ac): Add an invocation of
46475 AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
46477 2006-01-10 Bruno Haible <bruno@clisp.org>
46479 * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
46480 Reported by Werner Lemberg <wl@gnu.org>.
46482 2006-01-10 Bruno Haible <bruno@clisp.org>
46484 * lib/localcharset.c: Update from GNU gettext.
46486 2006-01-10 Bruno Haible <bruno@clisp.org>
46488 * lib/argp.h (__const): Remove macro. Use const instead.
46489 * lib/argp-fmtstream.h (__const): Likewise.
46490 * lib/glob_.h (__const): Remove macro.
46491 * lib/glob-libc.h: Use const instead of __const.
46493 2006-01-10 Bruno Haible <bruno@clisp.org>
46495 * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
46497 Needed to avoid an automake error regarding the 'gettext' module.
46499 2006-01-09 Simon Josefsson <jas@extundo.com>
46501 * modules/inet_ntop (Depends-on): Add restrict.
46503 2006-01-09 Simon Josefsson <jas@extundo.com>
46505 * modules/gc-rijndael-tests (License): Put under LGPL.
46507 * modules/gc-des-tests (License): Likewise.
46509 * modules/gc-arcfour-tests (License): Likewise.
46511 * modules/gc-arctwo-tests (License): Likewise.
46513 * modules/gc-pbkdf2-sha1-tests (License): Likewise.
46515 * modules/gc-hmac-sha1-tests (Files): Likewise.
46517 * modules/gc-hmac-md5-tests (License): Likewise.
46519 * modules/gc-sha1-tests (License): Likewise.
46521 * modules/gc-md5-tests (License): Likewise.
46523 * modules/gc-md4-tests (License): Likewise.
46525 * modules/gc-md2-tests (License): Likewise.
46527 * modules/gc-tests (License): Likewise.
46529 * modules/des-tests (License): Likewise.
46531 * modules/md4-tests (License): Likewise.
46533 * modules/md2-tests (License): Likewise.
46535 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
46537 Sync from coreutils:
46539 * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
46540 * modules/lib-ignore: New file.
46541 * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
46542 chdir-safer.m4, lchmod.m4.
46543 * modules/openat: Add mkdirat.c, openat-priv.h.
46545 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
46547 Sync from coreutils.
46548 * m4/lib-ignore.m4: New file.
46549 * m4/lchmod.m4: New file.
46551 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
46553 Sync from coreutils.
46554 * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
46555 for write access: POSIX says that must fail.
46556 * lib/fts.c (diropen): Likewise.
46557 * lib/save-cwd.c (save_cwd): Likewise.
46558 * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
46559 well, for minor improvements on hosts that lack O_DIRECTORY.
46560 * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
46561 Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
46562 Fall back on chown if open failed with EACCES.
46564 * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
46565 Report an error at compile-time if only a 1-second nominal clock
46566 resolution is found.
46568 * lib/lchmod.h: New file.
46569 * lib/mkdir-p.c: Include lchmod.h, lchown.h.
46570 (make_dir_parents): Use lchown rather than chown, and
46571 lchmod rather than chmod.
46573 * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
46574 dummies too. Problem with "none" reported by Bob Proulx. Problem with
46575 "proc" reported by n0dalus.
46577 * lib/mountlist.c: Include <limits.h>.
46578 (dev_from_mount_options)
46579 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
46580 New function. It no longer assumes "dev=" has the System V meaning
46581 on Linux (since it doesn't). It also parses "dev=" more carefully.
46582 (read_file_system_list)
46583 [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
46584 MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
46587 * lib/posixtm.h (PDS_PRE_2000): New macro.
46588 * lib/posixtm.c (year): Arg is now syntax_bits rather than
46589 allow_century. All usages changed. Reject dates outside the range
46590 1969-1999 if PDS_PRE_2000 is used.
46592 2006-01-09 Paul Eggert <eggert@cs.ucla.edu>
46594 Sync from coreutils.
46595 * doc/getdate.texi (General date syntax): Invalid dates are rejected.
46596 (Time of day items): Mention the possibility of leap seconds.
46597 Problem reported by Dr. David Alan Gilbert.
46599 2006-01-09 Jim Meyering <jim@meyering.net>
46601 Sync from coreutils.
46603 * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
46605 * lib/chdir-safer.h, lib/chdir-safer.c: New files.
46607 * lib/modechange.c (mode_compile): Reject an invalid mode string
46608 that starts with an octal digit. From Andreas Gruenbacher.
46610 * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
46611 and dup to open_safer and dup_safer, respectively.
46612 (openat_permissive): Fix typo in comment.
46614 * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
46615 "gettext.h"; either no longer needed or are guaranteed by openat.h.
46616 (_): Remove; no longer needed.
46617 (openat): Renamed from rpl_openat; no need for rpl_openat
46618 since openat.h renames openat for us.
46619 Replace most of the body with a call to openat_permissive,
46620 to avoid duplicate code.
46621 Port to (probably hypothetical) environments were mode_t is
46623 (openat_permissive): Require mode arg, so that we can check
46624 types better. Put it just after flags. Change cwd failure
46625 indicator from pointer-to-bool to pointer-to-errno-value.
46626 All callers changed.
46627 Invoke openat_save_fail and/or openat_restore_fail if
46628 cwd_errno is null, so that openat can call us.
46629 (openat_permissive, fdopendir, fstatat, unlinkat):
46630 Simplify errno handling to avoid some duplicate code,
46631 as it's OK to set errno on success.
46632 * lib/openat.h: Revamp code so that function macros depend on
46633 __OPENAT_PREFIX only, not also on AT_FDCWD.
46634 (openat_ro): Remove. Caller changed to use openat_permissive.
46635 (openat_permissive): Now a macro, if not a function.
46636 (openat_restore_fail, openat_save_fail): Now always functions,
46637 since mkdirat needs them even if __OPENAT_PREFIX is defined.
46639 * lib/openat-priv.h: New file, defining macros used by mkdirat.c
46641 * lib/mkdirat.c: Include openat-priv.h.
46642 Remove definitions of macros defined therein.
46643 * lib/openat.c: Likewise.
46645 * lib/mkdirat.c (mkdirat): New file and function.
46646 * lib/openat.h (mkdirat): Declare.
46648 * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
46650 * lib/openat.h (openat_permissive): Declare.
46651 (openat_ro): Define.
46653 * lib/openat.c (EXPECTED_ERRNO): New macro.
46654 (openat_permissive): New function -- used in remove.c rewrite.
46655 (all functions): Set errno just before returning, only if there
46656 was an actual failure.
46657 Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
46659 Emulate openat-family functions using Linux's procfs, if possible.
46660 Idea and some code based on Ulrich Drepper's glibc changes.
46662 * lib/openat.c: (BUILD_PROC_NAME): New macro.
46663 Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
46664 (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
46665 before falling back on save_cwd and restore_cwd.
46666 (fdopendir, fstatat, unlinkat): Likewise.
46668 * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
46669 skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
46671 * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
46672 as second argument to va_arg. Otherwise, some versions of gcc
46673 warn that `if this code is reached, the program will abort'.
46675 2006-01-09 Jim Meyering <jim@meyering.net>
46677 Sync from coreutils.
46678 * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
46679 Require openat-priv.h.
46681 2006-01-09 Bruno Haible <bruno@clisp.org>
46683 * modules/strnlen (Include): Use strnlen.h.
46685 2006-01-09 Bruno Haible <bruno@clisp.org>
46687 * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
46689 2006-01-09 Bruno Haible <bruno@clisp.org>
46691 * lib/sysexit_.h (EX_OK): New macro.
46692 Suggested by Martin Lambers <marlam@marlam.de>.
46694 2006-01-09 Bruno Haible <bruno@clisp.org>
46696 * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
46697 don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
46699 2006-01-09 Bruno Haible <bruno@clisp.org>
46701 * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
46704 2006-01-09 Bruno Haible <bruno@clisp.org>
46706 * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
46707 * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
46708 * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
46709 * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
46711 2006-01-09 Bruno Haible <bruno@clisp.org>
46713 * build-aux/javacomp.sh.in: New file, moved from lib/.
46714 * modules/javacomp-script (Files): Update.
46715 (configure.ac): Add AC_CONFIG_FILES invocation.
46716 (EXTRA_DIST): Remove variable.
46718 * build-aux/javaexec.sh.in: New file, moved from lib/.
46719 * modules/javaexec (Files): Update.
46720 (configure.ac): Add AC_CONFIG_FILES invocation.
46721 (EXTRA_DIST): Remove javaexec.sh.in.
46723 * build-aux/csharpcomp.sh.in: New file, moved from lib/.
46724 * modules/csharpcomp-script (Files): Update.
46725 (configure.ac): Add AC_CONFIG_FILES invocation.
46726 (EXTRA_DIST): Remove variable.
46728 * build-aux/csharpexec.sh.in: New file, moved from lib/.
46729 * modules/csharpexec (Files): Update.
46730 (configure.ac): Add AC_CONFIG_FILES invocation.
46731 (EXTRA_DIST): Remove csharpexec.sh.in.
46733 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
46735 Sync from coreutils.
46737 Add POSIX ACL support
46738 * lib/acl.h (copy_acl, set_acl): Add declarations.
46739 * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
46740 systems other than Linux.
46741 (chmod_or_fchmod): New function: use fchmod when possible,
46742 and chmod otherwise.
46743 (file_has_acl): Add a POSIX ACL implementation, with a
46744 Linux-specific subcase.
46745 (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
46746 S_ISVTX from one file to another. Fall back to fchmod/chmod when
46747 acls are unsupported.
46748 (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
46749 S_ISVTX to a defined value. Fall back to fchmod/chmod when acls
46752 2006-01-09 Andreas Gruenbacher <agruen@suse.de>
46754 Sync from coreutils.
46755 * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
46757 2006-01-07 Bruno Haible <bruno@clisp.org>
46759 * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
46762 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
46764 * lib/strftime.c (tzname): Don't declare if it is already #defined.
46765 Problem reported for Mingw by Mark Junker.
46767 2006-01-04 Paul Eggert <eggert@cs.ucla.edu>
46769 * README: Gnulib normally doesn't generate a tarball.
46771 2006-01-03 Paul Eggert <eggert@cs.ucla.edu>
46773 * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
46774 long int, not int, for nanosecond counts, so that people who are
46775 used to POSIX struct timespec won't be surprised. Reported by Jim
46778 2005-12-28 Bruno Haible <bruno@clisp.org>
46780 * build-aux/config.rpath: Update from GNU gettext.
46782 2005-12-16 Jim Meyering <jim@meyering.net>
46784 * modules/fprintftime: New module.
46785 * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
46787 2005-12-16 Jim Meyering <jim@meyering.net>
46789 * m4/fprintftime.m4: New file.
46791 2005-12-16 Jim Meyering <jim@meyering.net>
46793 * lib/fprintftime.c, lib/fprintftime.h: New files.
46795 2005-12-15 Simon Josefsson <jas@extundo.com>
46797 * modules/socklen (configure.ac): Fix M4 macro name, to align with
46800 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
46802 * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
46803 HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
46805 2005-12-10 Sergey Poznyakoff <gray@gnu.org.ua>
46807 * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
46808 * lib/argp-help.c (fill_in_uparams): Check if the constructed
46809 struct uparams is valid. Fall back to the default values if it is
46812 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
46814 * modules/argp (Files): Add argp-pin.c
46815 (Depends-on): dirname
46816 (lib_SOURCES): Add argp-pin.c
46818 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
46820 * m4/argp.m4: Check if program_invocation_name and
46821 program_invocation_short_name are declared and define appropriate
46822 macros if they are not.
46824 2005-12-09 Sergey Poznyakoff <gray@gnu.org.ua>
46826 * lib/argp-help.c (__argp_base_name): New function
46827 (__argp_short_program_name): Rewrite using __argp_base_name
46828 * lib/argp-namefrob.h: Define program_invocation_name and
46829 program_invocation_short_name if requested
46830 (__argp_base_name): Add prototype
46831 * lib/argp-parse.c (argp_def): Use gettext wrappers
46832 (argp_default_parser): Use __argp_base_name
46833 * lib/argp-pin.c: New file. Defines program_invocation_name and
46834 program_invocation_short_name on systems that lack them.
46836 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
46838 * m4/stat-time.m4 (gl_STAT_TIME): Add check for
46839 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46840 porting problem reported by Georg Schwarz in
46841 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46843 2005-12-07 Paul Eggert <eggert@cs.ucla.edu>
46845 * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
46846 TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
46847 porting problem reported by Georg Schwarz in
46848 <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
46850 2005-12-05 Bruno Haible <bruno@clisp.org>
46852 * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
46853 * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
46854 Reported by Mark Junker <mjscod@gmx.de>.
46856 2005-12-02 Paul Eggert <eggert@cs.ucla.edu>
46858 * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
46859 Use implementation from Albert Chin, with some
46860 comments/corrections by Stepan Kasal and myself.
46862 2005-12-02 Bruno Haible <bruno@clisp.org>
46864 * gnulib-tool (func_import): Accept GPLed build tool modules when
46866 * modules/csharpcomp-script: New file.
46867 * modules/csharpcomp: Depend on it.
46868 * modules/javacomp-script: New file.
46869 * modules/javacomp: Depend on it.
46870 Suggested by Simon Josefsson.
46872 2005-12-01 Paul Eggert <eggert@cs.ucla.edu>
46874 * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
46875 statement, to work around an HP-UX 10.20 compiler bug reported by
46878 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
46880 * modules/savedir (Depends-on): Add openat.
46882 2005-11-29 Paul Eggert <eggert@cs.ucla.edu>
46884 * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
46885 (uintmax_t) [defined uintmax_t]: Do not declare.
46886 (SIZE_MAX) [defined SIZE_MAX]: Do not define.
46887 This works around a problem if intmax_t.m4 and/or uintmax_t.m4
46888 and/or size_max.m4 are also used. Problem reported by Mark D. Baushke.
46889 (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
46890 sake of portability to weird hosts that C allows (though we don't
46891 know of any practical examples).
46893 * lib/savedir.h (fdsavedir): New decl.
46894 * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
46895 contains most of the former guts of savedir.
46896 (savedir): Use savedirstream.
46897 Include "openat.h".
46899 2005-11-25 Paul Eggert <eggert@cs.ucla.edu>
46901 * modules/obstack (Files): Add m4/ulonglong.m4.
46902 Problem reported by Davide Angelocola.
46904 2005-11-15 Paul Eggert <eggert@cs.ucla.edu>
46906 * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
46907 coreutils no longer futzes with rounding modes.
46909 2005-11-14 Jim Meyering <jim@meyering.net>
46911 * lib/mkstemp-safer.c: Include <config.h>, required for possible
46912 replacement of mkstemp.
46914 2005-11-10 Simon Josefsson <jas@extundo.com>
46916 * lib/readline.c: Remove EOL.
46918 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
46920 * modules/gethrxtime (Depends-on): Add gettime.
46922 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
46924 * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
46925 or gettimeofday; no longer needed.
46927 2005-11-10 Paul Eggert <eggert@cs.ucla.edu>
46929 * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
46931 (gethrxtime) [! (HAVE_NANOUPTIME
46932 || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
46933 || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
46934 our own approximation.
46936 2005-11-08 Eric Blake <ebb9@byu.net>
46938 * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46940 2005-11-08 Eric Blake <ebb9@byu.net>
46942 * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
46944 2005-11-04 Bruno Haible <bruno@clisp.org>
46946 * gnulib-tool: Implement --update mode.
46948 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
46950 Fix porting problem reported by Theodoros V. Kalamatianos.
46951 * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
46952 Don't assume that futimes failing means we must fail.
46954 2005-10-30 Paul Eggert <eggert@cs.ucla.edu>
46956 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
46957 variables to suggest the intended function of the PATH_MAX check.
46959 2005-10-30 Kean Johnston <jkj@sco.com>
46961 Trivial changes to support SCO systems.
46962 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
46964 * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
46965 where __ptr is null when no I/O is pending.
46967 2005-10-29 Paul Eggert <eggert@cs.ucla.edu>
46969 * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
46970 leave errno alone. Problem reported by Dmitry V. Levin.
46972 2005-10-28 Simon Josefsson <jas@extundo.com>
46974 * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
46977 * tests/test-gc-md2.c, tests/test-md2.c: New files.
46979 * modules/md2, modules/md2-tests: New files.
46981 2005-10-28 Simon Josefsson <jas@extundo.com>
46983 * m4/inet_ntop.m4: More tests.
46985 * m4/gc-md2.m4, md2.m4: New file.
46987 2005-10-28 Simon Josefsson <jas@extundo.com>
46989 * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
46990 "restrict" keywords, as per POSIX. Protect the function
46991 declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
46992 Don't use K&R prototypes. Check the sprintf return values.
46993 Re-define EAFNOSUPPORT if not present. Indent.
46995 * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
46996 suggested by Bruno Haible <bruno@clisp.org>.
46998 * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
47000 * lib/gc.h: Add MD2 and RMD160 length defines. Add prototypes.
47002 * lib/gc-libgcrypt.c: Add MD2 (which is not available through
47005 * lib/gc-gnulib.c: Add MD2. Implement gc_hash_* API.
47007 * lib/md2.h, lib/md2.c: New files.
47009 2005-10-28 Paul Eggert <eggert@cs.ucla.edu>
47011 * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
47012 errno alone. Problem reported by Frederic Jolliton.
47014 2005-10-27 Paul Eggert <eggert@cs.ucla.edu>
47016 * modules/verify (License): Change from GPL to LGPL. This is a
47017 tiny module and there are apparently near-equivalents that are
47018 under the BSD license.
47020 2005-10-24 Simon Josefsson <jas@extundo.com>
47022 * modules/sha1: Relicense to LGPL.
47024 2005-10-24 Simon Josefsson <jas@extundo.com>
47026 * lib/md4.h: Shrink buffer size, now that we changed the type.
47028 2005-10-23 Simon Josefsson <jas@extundo.com>
47030 * gnulib-tool (func_import): Fix --tests-base.
47032 2005-10-22 Simon Josefsson <jas@extundo.com>
47034 * modules/arcfour (Depends-on): Need stdint.
47036 2005-10-22 Simon Josefsson <jas@extundo.com>
47038 * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
47039 suggested by Bruno Haible <bruno@clisp.org>. Fix error messages.
47041 2005-10-22 Simon Josefsson <jas@extundo.com>
47043 * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
47044 suggested by Bruno Haible <bruno@clisp.org>.
47046 2005-10-22 Simon Josefsson <jas@extundo.com>
47048 * lib/crc.h: Include stddef.h, for size_t.
47050 2005-10-22 Simon Josefsson <jas@extundo.com>
47052 * lib/arcfour.h, arcfour.c: Use fixed size indices in the
47053 arcfour_context struct (simplify test vector testing in GNU
47056 2005-10-21 Simon Josefsson <jas@extundo.com>
47058 * modules/des, modules/des-tests: New files.
47060 * modules/gc-des, modules/gc-des-tests: New files.
47062 * tests/test-des.c, tests/test-gc-des.c: New file.
47064 2005-10-21 Simon Josefsson <jas@extundo.com>
47066 * modules/arctwo, modules/arctwo-tests: New files.
47068 * tests/test-arctwo.c: New file.
47070 * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
47072 * tests/test-gc-arctwo.c: New file.
47074 2005-10-21 Simon Josefsson <jas@extundo.com>
47076 * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
47077 Bruno Haible <bruno@clisp.org>.
47079 * m4/gc-des.m4: New file.
47081 2005-10-21 Simon Josefsson <jas@extundo.com>
47083 * m4/arctwo.m4: New file.
47085 * m4/gc-arctwo.m4: New file.
47087 2005-10-21 Simon Josefsson <jas@extundo.com>
47089 * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
47092 2005-10-21 Simon Josefsson <jas@extundo.com>
47094 * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
47097 * lib/hmac-sha1.c (hmac_sha1): Likewise.
47099 * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
47100 Bruno Haible <bruno@clisp.org>.
47102 * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
47105 2005-10-21 Simon Josefsson <jas@extundo.com>
47107 * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
47109 2005-10-21 Simon Josefsson <jas@extundo.com>
47111 * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
47113 2005-10-21 Simon Josefsson <jas@extundo.com>
47115 * lib/des.h, lib/des.c: New files.
47117 * lib/gc-gnulib.c: Support DES.c
47119 2005-10-21 Simon Josefsson <jas@extundo.com>
47121 * lib/arctwo.h, lib/arctwo.c: New files.
47123 * lib/gc-gnulib.c: Support ARCTWO.
47125 2005-10-21 Simon Josefsson <jas@extundo.com>
47127 * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
47128 suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
47130 2005-10-21 Simon Josefsson <jas@extundo.com>
47132 * gnulib-tool (func_import, func_create_testdir): Define automake
47133 conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
47134 Makefile.am snippet),
47135 suggested by Bruno Haible <bruno@clisp.org>.
47137 * modules/gc (Makefile.am): Use it.
47139 2005-10-21 Bruno Haible <bruno@clisp.org>
47141 * gnulib-tool (func_import, func_create_testdir): Add quoting to last
47144 2005-10-19 Simon Josefsson <jas@extundo.com>
47146 * tests/test-gc-rijndael.c: New file.
47148 * modules/gc-rijndael, modules/gc-rijndael-test: New files.
47150 2005-10-19 Simon Josefsson <jas@extundo.com>
47152 * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
47155 2005-10-19 Simon Josefsson <jas@extundo.com>
47157 * tests/test-gc-arcfour.c: New file.
47159 * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
47161 2005-10-19 Simon Josefsson <jas@extundo.com>
47163 * modules/gc-md4, modules/gc-md4-tests: New file.
47165 * tests/test-gc-md4.c: New file.
47167 2005-10-19 Simon Josefsson <jas@extundo.com>
47169 * m4/gc-md4.m4: New file.
47171 2005-10-19 Simon Josefsson <jas@extundo.com>
47173 * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
47174 gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
47177 2005-10-19 Simon Josefsson <jas@extundo.com>
47179 * m4/gc-arcfour.m4: New file.
47181 * m4/gc-rijndael.m4: New file.
47183 2005-10-19 Simon Josefsson <jas@extundo.com>
47185 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
47187 2005-10-19 Simon Josefsson <jas@extundo.com>
47189 * lib/gc-gnulib.c: Support ARCFOUR.
47191 2005-10-19 Simon Josefsson <jas@extundo.com>
47193 * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
47196 * lib/gc.h: Add ECB enum type.
47198 * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
47200 2005-10-18 Simon Josefsson <jas@extundo.com>
47202 * tests/test-md5.c: New file.
47204 * modules/md5-tests: New file.
47206 2005-10-18 Simon Josefsson <jas@extundo.com>
47208 * tests/test-md4.c: New file.
47210 * modules/md4, modules/md4-tests: New files.
47212 2005-10-18 Simon Josefsson <jas@extundo.com>
47214 * m4/md4.m4: New file.
47216 2005-10-18 Simon Josefsson <jas@extundo.com>
47218 * lib/md4.h, lib/md4.c: New files, based on md5.?.
47220 2005-10-17 Stepan Kasal <kasal@ucw.cz>
47222 * gnulib-tool (func_create_testdir): Omit the second check whether
47223 BUILT_SOURCES in nonempty.
47225 2005-10-17 Simon Josefsson <jas@extundo.com>
47227 * tests/test-rijndael.c: New file.
47229 2005-10-17 Simon Josefsson <jas@extundo.com>
47231 * modules/sha1: Depend on stdint instead of md5.
47233 * modules/md5: Depend on stdint, remove uint32_t.
47235 2005-10-17 Simon Josefsson <jas@extundo.com>
47237 * modules/gc-sha1-tests: New file.
47239 * tests/test-gc-sha1.c: New file.
47241 2005-10-17 Simon Josefsson <jas@extundo.com>
47243 * m4/md5.m4: Remove call to uint32_t.m4.
47245 2005-10-17 Simon Josefsson <jas@extundo.com>
47247 * lib/sha1.c: Use uint32_t instead of md5_uint32.t
47249 * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
47252 * lib/md5.c: Use uin32_t. Fix non-gcc UNALIGNED_P macro.
47254 * lib/md5.h: Use stdint.h and uint32_t. Doc fix.
47256 2005-10-17 Simon Josefsson <jas@extundo.com>
47258 * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
47260 2005-10-17 Simon Josefsson <jas@extundo.com>
47262 * lib/gc.h, gc-libgcrypt.c: Add ciphers.
47264 2005-10-17 Simon Josefsson <jas@extundo.com>
47266 * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
47268 * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
47270 2005-10-17 Bruno Haible <bruno@clisp.org>
47272 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
47273 that it can also be used in a test.
47275 2005-10-16 Bruno Haible <bruno@clisp.org>
47277 * gnulib-tool (func_emit_tests_Makefile_am): Also define
47278 TESTS_ENVIRONMENT, so that individual tests can augment it.
47280 * gnulib-tool (func_create_testdir): Use an intermediate target for
47281 building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
47282 macros, like $(ALLOCA_H), which cannot be passed through the command
47285 2005-10-15 Simon Josefsson <jas@extundo.com>
47287 * modules/rijndael-tests: New file.
47289 * modules/rijndael: New file.
47291 2005-10-15 Simon Josefsson <jas@extundo.com>
47293 * m4/rijndael.m4: New file.
47295 2005-10-15 Simon Josefsson <jas@extundo.com>
47297 * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
47299 * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
47301 2005-10-14 Simon Josefsson <jas@extundo.com>
47303 * tests/test-arcfour.c: New file.
47305 * modules/arcfour, modules/arcfour-tests: New files.
47307 2005-10-14 Simon Josefsson <jas@extundo.com>
47309 * m4/arcfour.m4: New file.
47311 2005-10-14 Simon Josefsson <jas@extundo.com>
47313 * lib/arcfour.h, lib/arcfour.c: New files.
47315 2005-10-14 Roland McGrath <roland@redhat.com>
47317 Import from libc. [BZ #1331]
47318 * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
47320 Reported by Matej Vela <vela@debian.org>.
47322 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
47324 * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
47325 include <wchar.h>; no longer needed.
47327 2005-10-14 Paul Eggert <eggert@cs.ucla.edu>
47329 * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
47331 2005-10-14 Jakub Jelinek <jakub@redhat.com>
47332 and Ulrich Drepper <drepper@redhat.com>
47335 * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
47336 instead of inline stream orientation test and two separate
47337 function calls. Pay no attention to USE_IN_LIBIO.
47339 2005-10-13 Simon Josefsson <jas@extundo.com>
47341 * modules/gc-hmac-md5-tests: New file.
47343 * tests/test-gc-hmac-sha1.c: New file.
47345 * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
47347 * modules/gc-hmac-md5-tests: New file.
47349 * tests/test-gc-md5.c: New file.
47351 * modules/gc-md5-tests: New file.
47353 2005-10-13 Simon Josefsson <jas@extundo.com>
47355 * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
47356 Move memory allocation outside of loop.
47358 2005-10-13 Paul Eggert <eggert@cs.ucla.edu>
47360 * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
47361 intermediate directory is in a read-only file system. Problem
47362 reported by Eric Blake.
47364 2005-10-13 Oskar Liljeblad <oskar@osk.mine.nu>
47366 * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
47368 2005-10-12 Simon Josefsson <jas@extundo.com>
47370 * tests/test-hmac-sha1.c: New file.
47372 * modules/hmac-sha1-tests: New file.
47374 * modules/hmac-sha1: New file.
47376 2005-10-12 Simon Josefsson <jas@extundo.com>
47378 * modules/gc-sha1: New file.
47380 2005-10-12 Simon Josefsson <jas@extundo.com>
47382 * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
47384 * tests/test-gc-pbkdf2-sha1.c: New file.
47386 2005-10-12 Simon Josefsson <jas@extundo.com>
47388 * modules/gc-md5, modules/gc-hmac-md5: New files.
47390 * modules/gc (Files): Remove md5, memxor and hmac files.
47392 2005-10-12 Simon Josefsson <jas@extundo.com>
47394 * m4/gc-pbkdf2-sha1.m4: New file.
47396 * m4/gc-hmac-sha1.m4: New file.
47398 * m4/gc-sha1: New file.
47400 * m4/hmac-sha1.m4: New file.
47402 2005-10-12 Simon Josefsson <jas@extundo.com>
47404 * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
47406 * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
47408 2005-10-12 Simon Josefsson <jas@extundo.com>
47410 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
47411 suggested by Bruno Haible <bruno@clisp.org>.
47413 2005-10-12 Simon Josefsson <jas@extundo.com>
47415 * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
47417 2005-10-12 Simon Josefsson <jas@extundo.com>
47419 * lib/gc-pbkdf2-sha1.c: New file.
47421 * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
47423 2005-10-12 Simon Josefsson <jas@extundo.com>
47425 * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
47427 * lib/gc-gnulib.c (gc_hmac_sha1): New function.
47429 2005-10-12 Simon Josefsson <jas@extundo.com>
47431 * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
47432 GC_USE_HMAC_MD5, respectively.
47434 * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
47435 (gc_md5): Fix typo.
47437 * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
47439 * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
47441 * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
47443 2005-10-12 Bruno Haible <bruno@clisp.org>
47445 * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
47446 Reported by Stepan Kasal <kasal@ucw.cz>.
47448 2005-10-11 Simon Josefsson <jas@extundo.com>
47450 * tests/test-crc.c: New file.
47452 * modules/crc, modules/crc-tests: New files.
47454 2005-10-11 Simon Josefsson <jas@extundo.com>
47456 * m4/crc.m4: New file.
47458 2005-10-11 Simon Josefsson <jas@extundo.com>
47460 * lib/gc.h: Add gc_hash and gc_hash_buffer.
47462 * lib/gc-gnulib.c (gc_hash_buffer): Add. Reorder #include's.
47464 * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
47466 2005-10-11 Simon Josefsson <jas@extundo.com>
47468 * lib/crc.h, lib/crc.c: New files.
47470 * lib/gc.h (gc_hash_buffer): Add doc.
47472 2005-10-11 Bruno Haible <bruno@clisp.org>
47474 * modules/c-strcasestr: New file.
47475 * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
47477 2005-10-11 Bruno Haible <bruno@clisp.org>
47479 * modules/c-strcase: New file.
47480 * MODULES.html.sh (String handling <string.h>): Add c-strcase.
47482 2005-10-11 Bruno Haible <bruno@clisp.org>
47484 * lib/strcasecmp.c: Include limits.h.
47485 (strcasecmp): Avoid integer overflow on exotic platforms.
47486 * lib/strncasecmp.c: Include limits.h.
47487 (strncasecmp): Avoid integer overflow on exotic platforms.
47488 Reported by Paul Eggert.
47490 2005-10-11 Bruno Haible <bruno@clisp.org>
47492 * lib/c-strcasestr.h: New file, from GNU gettext.
47493 * lib/c-strcasestr.c: New file, from GNU gettext.
47495 2005-10-11 Bruno Haible <bruno@clisp.org>
47497 * lib/c-strcase.h: New file, from GNU gettext.
47498 * lib/c-strcasecmp.c: New file, from GNU gettext.
47499 * lib/c-strncasecmp.c: New file, from GNU gettext.
47501 2005-10-10 Paul Eggert <eggert@cs.ucla.edu>
47503 * modules/mempcpy (License): GPL -> LGPL.
47504 * modules/strchrnul (License): Likewise.
47505 * modules/sysexits (License): Likewise.
47507 2005-10-08 Simon Josefsson <jas@extundo.com>
47509 * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
47511 2005-10-07 Simon Josefsson <jas@extundo.com>
47513 * m4/memxor.m4: Remove gl_C_RESTRICT call.
47515 2005-10-06 Simon Josefsson <jas@extundo.com>
47517 * tests/test-hmac-md5.c: New file.
47519 * modules/hmac-md5-tests: New file.
47521 * modules/hmac-md5: New file.
47523 2005-10-06 Simon Josefsson <jas@extundo.com>
47525 * m4/hmac-md5.m4: New file.
47527 * m4/memxor.m4: Require gl_C_RESTRICT.
47529 2005-10-06 Simon Josefsson <jas@extundo.com>
47531 * lib/memxor.c (memxor): Avoid casts and warnings.
47533 2005-10-06 Simon Josefsson <jas@extundo.com>
47535 * lib/hmac-md5.c: New file.
47537 * lib/hmac.h: New file.
47539 2005-10-06 Paul Eggert <eggert@cs.ucla.edu>
47541 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
47542 promotes to int, not unsigned int, to catch the AIX 5.3
47545 2005-10-05 Simon Josefsson <jas@extundo.com>
47547 * modules/memxor: New file.
47549 * modules/iconv (Files): Move config.rpath to havelib, it is used
47552 * modules/havelib (Files): Add config.rpath.
47554 2005-10-05 Simon Josefsson <jas@extundo.com>
47556 * m4/memxor.m4: New file.
47558 2005-10-05 Simon Josefsson <jas@extundo.com>
47560 * lib/memxor.c (memxor): Fix compiler error.
47562 * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
47563 <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
47565 * lib/memxor.h, lib/memxor.c: New files.
47567 * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
47568 we assume all systems have it, suggested by Jim Meyering
47569 <jim@meyering.net>. Remove HAVE_SYS_SOCKET_H test too, to see if
47570 any systems lack sys/socket.h; mingw32 is known to lack it, but we
47571 don't support it yet anyway. Also remove HAVE_NETDB_H test, for
47574 2005-10-05 Simon Josefsson <jas@extundo.com>
47576 * config/srclist.txt: Add glibc bug 1423 for md5.h.
47578 2005-10-05 Paul Eggert <eggert@cs.ucla.edu>
47580 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
47581 sys/socket.h, netdb.h, sys/types.h; the checks areno longer
47582 needed, since the source code now assumes these .h files.
47584 2005-10-05 Derek Price <derek@ximbiot.com>
47586 * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
47588 2005-10-05 Bruno Haible <bruno@clisp.org>
47590 * modules/stdint (License): Change to LGPL.
47592 2005-10-04 Simon Josefsson <jas@extundo.com>
47594 * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
47595 D. Baushke" <mdb@gnu.org>.
47597 2005-10-04 Bruno Haible <bruno@clisp.org>
47599 * lib/verify.h (verify_true): Provide alternative definition for C++.
47601 2005-10-03 Paul Eggert <eggert@cs.ucla.edu>
47603 * lib/getdelim.c: Include getdelim.h first. Include <limits.h>.
47604 (SSIZE_MAX): New macro, if not already defined.
47605 (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
47608 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
47610 Sync from coreutils.
47611 * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
47612 * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
47613 defines ULONG_MAX_LT_ULLONG_MAX. Thomas M.Ott reports that
47614 ULLONG_MAX doesn't work with 2.7.2.1.
47616 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
47618 * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
47621 * modules/exclude (Depends-on): Depend on verify.
47622 * modules/strtoimax (Depends-on): Likewise.
47623 * modules/utimecmp (Depends-on): Likewise.
47625 2005-10-02 Paul Eggert <eggert@cs.ucla.edu>
47627 * lib/exclude.c: Include verify.h.
47628 (verify): Remove. All callers changed to use verify.h's version.
47629 * lib/strtoimax.c: Likewise.
47630 * lib/utimecmp.c: Likewis.e
47632 Sync from coreutils.
47633 * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
47634 getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
47635 * lib/.cvsignore: Add fts.h, search.h, t-fpending.
47636 * lib/settime.c (settime): Fix { typo in previous patch. Also, don't
47637 bother returning ENOSYS if settimeofday or stime fails; just let
47638 them return whatever errno they want to return.
47639 * lib/utimens.c: Include unistd.h, for dup2.
47640 (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
47641 (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
47643 2005-10-02 Jim Meyering <jim@meyering.net>
47645 Sync from coreutils.
47646 * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
47647 from glibc-2.2.5 that fails for read-only files.
47649 2005-10-02 Jim Meyering <jim@meyering.net>
47651 Sync from coreutils.
47652 * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
47653 * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
47654 `#if HAVE_CONFIG_H'.
47655 * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
47656 Remove AT_FDCWD test.
47657 Do not consume the fd unless successful.
47658 * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
47659 * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
47660 block, so that we don't even try to compile it if settimeofday is
47661 available. This works around a compilation failure on OSF1 V5.1,
47662 due to stime requiring a `long int*' while tv_sec is `int'.
47664 2005-10-02 Alfred M. Szmidt <ams@gnu.org>
47666 Sync from coreutils.
47667 * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
47668 against `yes', rather than just testing for nonempty.
47670 2005-10-01 Simon Josefsson <jas@extundo.com>
47672 * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
47675 * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
47676 as an (POSIX) extension. Check for sys/types.h, sys/socket.h, and
47677 netdb.h too, needed by getaddrinfo.h. Check if getaddrinfo,
47678 freeaddrinfo and gai_strerror are declared by the POSIX headers.
47679 Check if struct addrinfo is declared.
47681 2005-10-01 Simon Josefsson <jas@extundo.com>
47683 * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
47684 Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO. Protect
47685 AI_* and EAI_* definitions. Protect function declarations.
47687 2005-10-01 Jim Meyering <jim@meyering.net>
47689 Sync from coreutils.
47691 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
47692 libraries [inet nsl socket xnet]. Nelson Beebe reported that with
47693 native cc on Solaris 7, getaddrinfo.c requires -lsocket.
47694 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47695 in the inet and nsl libraries. Required on Solaris 5.7.
47697 2005-10-01 Jim Meyering <jim@meyering.net>
47699 Sync from coreutils.
47700 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
47701 in the inet and nsl libraries. Required on Solaris 5.7.
47703 2005-10-01 Eric Blake <ebb9@byu.net> (tiny change)
47705 * lib/getdelim.c (getdelim): Remove unused variables.
47707 2005-09-29 Paul Eggert <eggert@cs.ucla.edu>
47709 * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
47710 so that the code works even with ancient cpp. Portability problem
47711 with GCC 2.7.2.1 reported by Thomas M.Ott.
47713 2005-09-27 Paul Eggert <eggert@cs.ucla.edu>
47715 * modules/regex (Depends-on): Add strcase.
47717 * modules/gethostname (Licence): Change from GPL to LGPL, since
47718 gethostname.c is a trivial implementation of a standard library
47720 * modules/poll (License): Change from GPL to LGPL, since it's
47721 derived from LGPL code.
47723 2005-09-27 Jim Meyering <jim@meyering.net>
47725 * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
47728 * lib/intprops.h (signed_type_or_expr__): Define.
47729 (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
47730 for unsigned types.
47732 2005-09-26 Paul Eggert <eggert@cs.ucla.edu>
47734 * lib/verify.h (verify_expr): Remove, replacing with:
47735 (verify_true): New macro that returns true instead of void.
47736 (verify_type__): Remove.
47737 (verify): Use verify_true rather than verify_type__.
47739 2005-09-26 Bruno Haible <bruno@clisp.org>
47741 * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
47743 (lib_SOURCES): Remove mbchar.c.
47744 * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
47745 (Files): Add m4/mbrtowc.m4.
47746 * modules/mbiter: Likewise.
47747 * modules/mbuiter: Likewise.
47749 2005-09-26 Bruno Haible <bruno@clisp.org>
47751 * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
47752 compile mbchar.c if they are not both present.
47753 * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
47754 * m4/mbiter.m4 (gl_MBITER): Likewise.
47755 * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
47756 * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
47757 * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
47759 2005-09-25 Jim Meyering <jim@meyering.net>
47761 * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
47762 also uses socklen_t.
47764 2005-09-24 Paul Eggert <eggert@cs.ucla.edu>
47766 * lib/utimens.c (ENOSYS): Define if not already defined.
47767 (futimens): Support having a null PATH if the file descriptor
47770 * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
47772 (__attribute): Define to empty unless GCC 3.1 or later.
47773 This works around a core dump on OpenBSD 3.4, which has GCC
47774 2.95.3, which dumps core when given __attribute__(()). It also
47775 simplifies other tests, since we really don't want to bother with
47776 worrying about which ancient version of GCC supported what.
47777 Original problem reported by Yoann Vandoorselaere, with part of
47778 the fix suggested by Derek Price.
47780 2005-09-24 Jim Meyering <jim@meyering.net>
47782 * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
47783 so we can once again use a positive bitfield width of 1 -- now we
47784 don't have to explain why we were using a bitfield width of 2.
47786 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
47788 * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
47789 and similarly for the other external symbols. Problem reported
47792 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
47793 bug reported by Jim Meyering.
47795 * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
47796 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
47797 not needed, since socklen is a prerequisite module.
47799 2005-09-23 Paul Eggert <eggert@cs.ucla.edu>
47801 * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
47802 Problem reported by Eric Blake.
47803 (getaddrinfo): Initialize se so that it's not garbage.
47804 Redo internal storage allocation so that it doesn't make unportable
47805 assumptions about alignment.
47808 * lib/utimens.c (futimens): Use futimesat if available.
47809 Prefer it to futimes since it doesn't have the futimes bug.
47811 * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
47812 (verify): Don't use the __LINE__ trick, as it doesn't work in general.
47813 Instead, declare a function that returns a pointer to an array,
47814 and use verify_type__ to declare the size of the array.
47815 Problem and germ of a solution reported by Bruno Haible.
47816 (verify_type__): Use 2, not 1, for bitfield size, to avoid
47817 a warning with Irix 6.5 cc. Problem reported by Bruno Haible.
47819 2005-09-23 Jim Meyering <jim@meyering.net>
47821 Sync from coreutils.
47822 Correct build failure (socklen_t not defined) on at least
47823 mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
47824 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
47826 2005-09-23 Jim Meyering <jim@meyering.net>
47828 * modules/getaddrinfo (Depends-on): Add socklen.
47830 2005-09-23 Bruno Haible <bruno@clisp.org>
47832 * tests/test-verify.c: New file.
47834 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
47836 Sync from coreutils.
47838 * modules/argmatch (Depends-on): Add verify.
47839 * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
47841 * modules/save-cwd (Depends-on): Likewise.
47843 * modules/openat (Files): Add lib/openat-die.c.
47844 (Depends-on): Remove error, exitfail.
47847 * modules/verify: New file.
47848 * MODULES.html.sh (Diagnostics <assert.h>): New section,
47849 with "verify" module.
47851 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
47853 Sync from coreutils.
47855 * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
47856 * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
47857 * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
47858 * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
47859 * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
47860 * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
47861 * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
47862 Don't bother checking for string.h, stdlib.h, unistd.h.
47863 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
47864 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
47866 * m4/jm-macros.m4 (gl_MACROS): Likewise.
47867 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
47869 * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
47870 (gl_GETDATE): Use it.
47872 * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
47874 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
47876 Sync from coreutils.
47878 * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
47880 * lib/argmatch.h: Include verify.h
47881 (ARGMATCH_VERIFY): Use verify rather than rolling our own.
47882 (ARGMATCH_ASSERT): Remove; unused.
47883 * lib/canonicalize.c: Assume STDC_HEADERS.
47884 * lib/exclude.c: Include "strcase.h".
47885 * lib/regex_internal.h [!defined _LIBC]: Likewise.
47886 * lib/getusershell.c: Include stdio--.h rather than stdio.h
47888 (getusershell): Call fopen, not fopen_safer.
47889 * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
47890 Do not include unistd-safer.h.
47891 (save_cwd): Don't call fd_safer; no longer needed
47892 now that we include fcntl--.h.
47894 * lib/getdate.y (relative_time): New type.
47895 (RELATIVE_TIME_0): New constant.
47896 (parser_control): Use relative_time instead of doing it ourselves.
47897 (%union): Add new relative_time rel member.
47898 (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
47900 (relunit, relunit_snumber): Now of type rel.
47901 (zone, rel, relunit, get_date): Adjust to above changes.
47903 * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
47904 Do not include unistd-safer.h.
47905 (getloadavg): Don't call fd_safer; no longer needed
47906 now that we include fcntl--.h.
47908 * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
47909 (make_dir_parents): Treat ENOSYS like EEXIST.
47911 Improve quality of diagnostics on restore_cwd failure.
47912 * lib/mkdir-p.h (make_dir): Remove. All uses replaced by mkdir.
47913 (make_dir_parents): Last arg is now int * (for errno), not bool *.
47914 * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
47915 Rewrite "mkdir -p" algorithm to avoid the need for "stat"
47916 each time through the loop. Do not diagnose restore_cwd failure;
47917 that is the caller's job (and perhaps the caller does not care).
47919 * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
47920 (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
47921 If the file already exists but is not a directory, don't bother
47922 to try to make its parents.
47923 Close potential file descriptor leak if we can't chdir("/") (!).
47924 Don't always return true if chdir($PWD) fails; return true only
47925 if the requested action was done successfully (except for the
47927 Don't log final directory unless we actually made it.
47928 Refactor to avoid duplicate code to fix up permissions.
47929 Don't attempt to fix up parent permissions if chdir($PWD) fails.
47931 * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
47932 to make it a bit faster and (I hope) clearer.
47933 * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
47934 Fix bug in formats like %2N.
47936 * lib/verify.h: New file.
47938 2005-09-22 Paul Eggert <eggert@cs.ucla.edu>
47940 Sync from coreutils.
47941 * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
47943 2005-09-22 Jim Meyering <jim@meyering.net>
47945 Sync from coreutils.
47947 * m4/lstat.m4 (gl_FUNC_LSTAT):
47948 Use AC_LIBSOURCES to require lstat.c and lstat.h.
47949 Remove obsolete comment.
47950 * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
47951 * m4/xstrtod.m4: Likewise.
47953 * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
47955 2005-09-22 Jim Meyering <jim@meyering.net>
47957 Sync from coreutils.
47959 * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
47961 * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
47962 the .tm_year member, since otherwise gcc-4.0 would now warn about
47963 tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
47965 * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
47966 order to avoid an unsuppressible warning from gcc on 64-bit systems.
47968 * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
47969 the command "date -d'2005-03-27 +1 day'" succeeds once again, even
47970 when run in a time zone for which daylight savings time is in effect
47971 for the starting date.
47973 * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
47974 stop us from restricting permissions of just-created absolute-named
47976 * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
47977 to restore initial working directory.
47978 * lib/mkdir-p.c (make_dir_parents): New parameter:
47979 different_working_dir, to tell caller if/when we change the working
47980 directory and are unable to return to the initial one.
47981 * lib/mkdir-p.h (make_dir_parents): Update prototype.
47982 * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
47983 `return false'. This fixes a bug introduced on 2004-07-30.
47985 * lib/openat.c (fdopendir): Be sure to close the supplied
47986 file descriptor before returning. This makes our replacement
47987 implementation a little closer to Solaris's, where fdopendir
47988 ties the file descriptor to the returned DIR* pointer.
47989 * lib/openat.c (unlinkat): New function.
47990 * lib/openat.h (unlinkat): Add prototype.
47991 * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
47992 (openat_restore_fail): Rename from openat_restore_die.
47993 * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
47995 Provide an alternative to exiting immediately upon save_cwd or
47996 restore_cwd failure. Now, an application can arrange e.g.,
47997 to perform a longjump in that case.
47998 * lib/openat.c: Include dirname.h.
47999 Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
48000 (rpl_openat, fdopendir, fstatat): Call openat_save_die
48001 and openat_restore_die rather than calling error directly.
48002 Don't include "error.h" or "exitfail.h"; they're no longer needed.
48004 * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
48005 * lib/openat.h (openat_save_die, openat_restore_die): Declare and
48008 * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
48009 size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
48010 int utc, int nanoseconds);
48012 date should not have to allocate a megabyte of virtual memory to
48013 handle a format argument like +%1048575T. When implemented with
48014 strftime, it must allocate such a buffer, use strftime to fill it
48015 in, print it, then free it.
48016 With fprintftime, it simply prints everything and exits.
48017 With no need for memory allocation, that's one fewer way to fail.
48018 * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
48019 optional field width, not before, so we accept %9:z, not %:9z.
48020 (my_strftime): Be sure to use L_('x') for literals.
48022 * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
48023 * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
48024 * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
48025 * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
48026 * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
48027 * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
48028 * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
48029 * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
48030 * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
48031 * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
48032 * lib/xgethostname.c, lib/xreadlink.c:
48033 Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
48035 * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
48036 * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
48037 * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
48038 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
48039 and don't include <sys/file.h>).
48041 2005-09-22 Eric Blake <ebb9@byu.net> (tiny change)
48043 Sync from coreutils.
48045 * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
48046 [__linux__]: Allocate a big enough buffer for /proc/loadavg.
48047 [!LDAV_DONE]: Avoid unused variable warning.
48049 2005-09-21 Bruno Haible <bruno@clisp.org>
48051 * lib/unicodeio.h (unicode_to_mb): New declaration.
48053 2005-09-20 Derek Price <derek@ximbiot.com>
48055 * lib/getaddrinfo.c: Don't include <netdb.h> included from
48058 2005-09-20 Bruno Haible <bruno@clisp.org>
48060 * gnulib-tool: Remove trailing slashes from the values specified for
48061 --source-base, --m4-base, --tests-base, --aux-dir.
48062 Suggested by Simon Josefsson <jas@extundo.com>.
48064 2005-09-20 Bruno Haible <bruno@clisp.org>
48066 * gnulib-tool (func_all_modules, func_modules_transitive_closure,
48067 func_modules_to_filelist, func_import, func_create_testdir): Make all
48068 sorting results locale-independent, so that gnulib-cache.m4 doesn't
48069 change when gnulib-tool is invoked in a different locale.
48071 2005-09-19 Simon Josefsson <jas@extundo.com>
48073 * m4/socklen.m4: Fix typo.
48075 2005-09-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
48077 Use a consistent style for including <config.h>.
48078 * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
48079 lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
48080 lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
48081 lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
48082 lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
48083 lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
48084 lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
48085 lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
48086 lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
48087 lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
48088 lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
48089 lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
48090 lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
48091 lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
48092 lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
48093 lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
48094 lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
48095 lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
48096 lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
48097 lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
48098 lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
48099 lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
48100 lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
48101 lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
48102 lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
48103 lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
48104 lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
48105 lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
48106 lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
48107 lib/xstrtoumax.c, lib/yesno.c:
48108 Standardize inclusion of config.h.
48109 * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
48110 lib/inttostr.h: Removed inclusion of config.h from header files.
48111 * lib/inttostr.c: Adjusted in-tree users.
48112 * lib/timespec.h: Remove superfluous warning to include config.h.
48113 * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
48114 lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
48115 lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
48116 lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
48117 config.h with HAVE_CONFIG_H.
48119 2005-09-19 Jim Meyering <jim@meyering.net>
48121 * modules/pathmax (License): Change to LGPL.
48123 2005-09-19 Derek Price <derek@ximbiot.com>
48125 * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
48127 2005-09-19 Bruno Haible <bruno@clisp.org>
48129 * gnulib-tool (import): Provide default for --tests-base.
48131 2005-09-19 Bruno Haible <bruno@clisp.org>
48133 * doc/quote.texi: New file, extracted from gnulib.texi.
48134 * doc/ctime.texi: New file, extracted from gnulib.texi.
48135 * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
48136 * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
48137 * doc/gnulib.texi: Include them.
48139 2005-09-18 Bruno Haible <bruno@clisp.org>
48142 * gnulib-tool (func_readlink): New function.
48143 (func_ln_if_changed): Use it.
48145 2005-09-18 Bruno Haible <bruno@clisp.org>
48147 * gnulib-tool: Support --with-tests also with --import.
48148 (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
48149 (func_import): Use variables $testsbase and $inctests. Emit a
48150 gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
48151 Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
48152 SUBDIRS += $testsdir.
48153 (func_create_testdir): Update.
48155 2005-09-18 Bruno Haible <bruno@clisp.org>
48157 * gnulib-tool: Revise --dry-run implementation. Use variable $doit
48158 instead of $dry_run.
48159 (func_cp_if_changed, func_mv_if_changed): Remove functions.
48160 (func_ln_if_changed): Don't handle dry-run here.
48161 (func_import): In dry-run mode, detect more precisely which actions
48162 would be performed, and don't use "...ing" verbs.
48164 2005-09-18 Bruno Haible <bruno@clisp.org>
48166 * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
48167 (func_import): Use join on two temporary files instead of three nested
48168 loops, in order to determine which files are new or old.
48170 2005-09-18 Bruno Haible <bruno@clisp.org>
48172 * gnulib-tool (func_import): Comment out code that spits out the
48173 new files with --dry-run.
48175 2005-09-18 Bruno Haible <bruno@clisp.org>
48177 * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
48179 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48181 * lib/stat-time.h: New file.
48182 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
48183 (MTIME_CMP, TIMESPEC_NS): Remove. Now done by stat-time.h,
48184 in a different way.
48185 (timespec_cmp): New function.
48186 * lib/utimecmp.c: Include stat-time.h.
48187 (SYSCALL_RESOLUTION): Depend on whether various struct stat
48188 members exist, not on the obsolescent ST_MTIM_NSEC.
48189 (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
48191 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48193 * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
48195 2005-09-16 Paul Eggert <eggert@cs.ucla.edu>
48197 * MODULES.html.sh (File system functions): Add stat-time.
48198 * modules/stat-time: New file.
48199 * modules/timespec (Files): Remove m4/st_mtim.m4; this
48200 is now done in a different way, by the stat-time module.
48201 * modules/utimecmp (Depends-on): Add stat-time.
48203 2005-09-15 Paul Eggert <eggert@cs.ucla.edu>
48205 * m4/st_mtim.m4: Remove. Superseded by...
48206 * m4/stat-time.m4: New file.
48207 * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
48208 Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
48210 2005-09-15 Derek Price <derek@ximbiot.com>
48212 * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
48214 2005-09-15 Derek Price <derek@ximbiot.com>
48216 * lib/regex_internal.h: Blank `pure' for GNUC < 3.
48217 * lib/regex_internal.c: Ditto, using this...
48218 (__GNUC_PREREQ): ...new macro.
48219 * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
48221 (__GNUC_PREREQ): ...this new macro.
48223 * lib/strstr.h: Include string.h. Define strstr as a macro here.
48225 2005-09-15 Derek Price <derek@ximbiot.com>
48226 Paul Eggert <eggert@cs.ucla.edu>
48228 * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
48229 changes, consolidating in...
48230 * lib/regex_internal.h: ...this file.
48232 2005-09-13 Jim Meyering <jim@meyering.net>
48234 * lib/canon-host.c: Filter through gnu indent and reword comments
48236 * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
48238 2005-09-13 Derek Price <derek@ximbiot.com>
48240 * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
48242 Reported by Jim Meyering <jim@meyering.net>.
48244 2005-09-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
48246 * lib/base64.c: Typo.
48247 (base64_encode): Put b64str in initialized data section.
48249 2005-09-12 Paul Eggert <eggert@cs.ucla.edu>
48251 Merge glibc and coreutils changes into gnulib, plus a few
48253 * lib/md5.c: Use #error rather than a string.
48254 (CYCLIC): New macro, from glibc source. Use it instead of rol.
48255 * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
48256 (__attribute__): Define to empty for non recent-GCC.
48257 (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
48258 (__md5_process_bytes, __md5_read_ctx, __md5_stream):
48259 Renamed from their non-__ counterparts, with new macros replacing
48260 them if not _LIBC. Add __THROW attribute.
48262 (struct md5_ctx): Align buffer if using GCC.
48263 * lib/sha1.h (struct sha1_ctx): Likewise.
48264 * lib/sha1.c (SWAP): Renamed from the NOTSWAP. All uses changed.
48265 The old name was backwards.
48266 (NOTSWAP): Remove; not used.
48267 (rol): New macro, moved here from md5.h.
48268 (sha1_process_block): Remove a FIXME that doesn't make sense.
48270 2005-09-12 Derek Price <derek@ximbiot.com>
48272 Return usable errors from canon-host.
48273 * lib/canon-host.h: New file.
48274 * lib/canon-host.c (canon_host): Wrap...
48275 (canon_host_r): ...this new function, which now relies exclusively on
48277 (ch_strerror): New function.
48278 (last_cherror): New global.
48279 * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
48281 (getaddrinfo): Add AI_CANONNAME functionality. Don't do arithmetic on
48283 (freeaddrinfo): Free ai->ai_canonname when set.
48285 2005-09-12 Derek Price <derek@ximbiot.com>
48287 Make canon-host require getaddrinfo.
48288 * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
48289 AC_LIBSOURCE canon-host.h. Call...
48290 (gl_PREREQ_CANON_HOST): ...this new function, which requires
48292 * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
48294 2005-09-12 Derek Price <derek@ximbiot.com>
48296 * modules/canon-host: Add canon-host.h. Depend on getaddrinfo. Make
48298 * modules/getaddrinfo: Add link to opengroup spec. Depend on strdup.
48300 2005-09-12 Derek Price <derek@ximbiot.com>
48302 * lib/gai_strerror.c: Include config.h when available. Include
48303 getaddrinfo.h before other headers to test interface.
48304 Reported by Larry Jones <lawrence.jones@ugs.com>.
48306 2005-09-12 Derek Price <derek@ximbiot.com>
48307 Paul Eggert <eggert@cs.ucla.edu>
48309 * modules/glob (Files): Add glob-libc.h.
48311 2005-09-12 Derek Price <derek@ximbiot.com>
48312 Paul Eggert <eggert@cs.ucla.edu>
48314 * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
48315 glob_.h, glob-libc.h.
48316 (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
48318 2005-09-12 Derek Price <derek@ximbiot.com>
48319 Paul Eggert <eggert@cs.ucla.edu>
48321 * lib/glob-libc.h: Renamed from glob_.h. The new version is
48322 taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
48323 protecting things that should be done only in gnulib contexts.
48324 * lib/glob_.h: New file, containing only the glob things needed for
48326 (GLOB_PREFIX): Remove. All uses changed to look for __GLOB_GNULIB.
48327 (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
48328 (glob, globfree, glob_pattern_p): Now defined simply in terms of
48329 rpl_glob, rpl_globfree, rpl_glob_pattern_p.
48330 (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
48331 and to respect the namespace rules better.
48333 2005-09-08 Simon Josefsson <jas@extundo.com>
48335 * modules/socklen: New file.
48337 2005-09-08 Simon Josefsson <jas@extundo.com>
48339 * m4/socklen.m4: New file.
48341 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48343 * modules/utimens (Files): Add m4/utimbuf.m4, since
48344 m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
48345 Reported by Sergey Poznyakoff.
48347 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48349 * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
48350 definitions, since that's the preferred style in glibc.
48351 Fix a minor spacing issue, and update copyright notice to match
48354 2005-09-08 Paul Eggert <eggert@cs.ucla.edu>
48356 * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
48358 2005-09-06 Simon Josefsson <jas@extundo.com>
48360 * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
48361 TCSETATTR. Reported by Derek Price <derek@ximbiot.com>.
48363 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
48365 * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
48368 2005-09-06 Paul Eggert <eggert@cs.ucla.edu>
48370 * config/srclist.txt: Add glibc bug 1302.
48372 2005-09-05 Paul Eggert <eggert@cs.ucla.edu>
48374 Change bitset word type from unsigned int to unsigned long int,
48375 as this has better performance on typical 64-bit hosts.
48376 Port bitset code to hosts with unusual word sizes.
48377 * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
48378 (build_collating_symbol):
48379 Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
48380 argument is a bitset. This is merely a style issue, but it makes
48381 it clearer that an entire array is expected.
48382 (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
48383 * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
48384 Port to the case where bitset_word is not the same as unsigned int.
48385 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48386 (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
48388 * lib/regexec.c (check_dst_limits_calc_pos_1,
48389 check_subexp_matching_top):
48390 (build_trtable, group_nodes_into_DFAstates):
48392 * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
48393 Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
48394 * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
48395 * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
48396 * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
48397 * lib/regcomp.c (optimize_subexps, lower_subexp):
48398 Work even if bitset_word has holes in its bitwise representation.
48399 * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
48400 * lib/regexec.c (check_dst_limits_calc_pos_1,
48401 check_subexp_matching_top):
48403 * lib/regex_internal.c (re_string_reconstruct):
48404 Don't assume UCHAR_MAX == 255.
48405 * lib/regex_internal.h (bitset_set_all): Likewise.
48406 * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
48408 (BITSET_WORDS): Renamed from BITSET_UINTS. All uses changed.
48409 (bitset_word): New type, replacing 'unsigned int' for bitset uses.
48411 (BITSET_WORD_MAX): New macro.
48412 (bitset_set, bitset_clear, bitset_contain, bitset_empty):
48413 (bitset_set_all, bitset_copy): Now inline functions, not macros.
48414 (bitset_empty, bitset_copy):
48415 Prefer sizeof (bitset) to multiplying it out ourselves.
48416 (bitset_not_merge): Remove; unused.
48417 (bitset_contain): Return bool, not unsigned int with one bit on.
48418 All callers changed.
48419 * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
48420 alignment than re_node_set; do this by defining a new internal
48421 type struct dests_alloc and using it to allocate memory.
48423 2005-09-05 Bruno Haible <bruno@clisp.org>
48425 * gnulib-tool (func_import): Fix comparison in handling of symbolic
48428 2005-09-04 Martin Lambers <marlam@marlam.de> (tiny change)
48430 * modules/size_max (Makefile.am): Add size_max.h
48432 2005-09-04 Derek Price <derek@ximbiot.com>
48434 * gnulib-tool (func_import): Fix reversed $symbolic logic.
48436 2005-09-03 Simon Josefsson <jas@extundo.com>
48438 * gnulib-tool: Fix typo.
48440 2005-09-03 Simon Josefsson <jas@extundo.com>
48442 * config/srclist.txt: Add glibc bug 1293.
48444 2005-09-03 Derek Price <derek@ximbiot.com>
48446 * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
48447 From Larry Jones <lawrence.jones@ugs.com>.
48449 2005-09-02 Simon Josefsson <jas@extundo.com>
48451 * modules/socklen: New file.
48453 2005-09-02 Simon Josefsson <jas@extundo.com>
48455 * modules/havelib: New module.
48457 * modules/gettext, modules/iconv, modules/lock, modules/readline:
48460 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
48462 Check for arithmetic overflow when calculating sizes, to prevent
48463 some buffer-overflow issues. These patches are conservative, in the
48464 sense that when I couldn't determine whether an overflow was possible,
48465 I inserted a run-time check.
48466 * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
48468 (SIZE_MAX) [!defined SIZE_MAX]: New macro.
48469 (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
48470 (re_xnrealloc, re_x2nrealloc): New inline functions.
48471 * lib/regcomp.c (init_dfa, analyze, build_range_exp,
48472 parse_bracket_exp):
48473 (build_equiv_class, build_charclass): Check for arithmetic overflow
48474 in size expression calculations.
48475 * lib/regex_internal.c (re_string_realloc_buffers):
48476 (build_wcs_upper_buffer, re_node_set_add_intersect):
48477 (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
48478 (re_dfa_add_node, register_state): Likewise.
48479 * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
48480 (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
48481 (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
48482 (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
48484 2005-09-02 Paul Eggert <eggert@cs.ucla.edu>
48486 * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
48487 m4/ulonglong.m4. Problem reported by Martin Lambers.
48489 2005-09-02 Bruno Haible <bruno@clisp.org>
48491 Support for lib vs. lib64 distinction on biarch platforms.
48492 * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
48493 (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
48494 * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
48496 2005-09-02 Bruno Haible <bruno@clisp.org>
48498 * gnulib-tool (import): In the other first-use case, provide defaults
48501 2005-09-02 Bruno Haible <bruno@clisp.org>
48503 * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
48504 patches not yet found in the latest gettext release.
48506 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
48508 * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
48509 to avoid a collision with bits/local_lim.h in glibc.
48510 All uses changed. Problem reported by Dmitry V. Levin in
48511 <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
48513 * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
48514 bugs in int versus size_t comparisons.
48515 (re_string_context_at): Fix bug where the code assumed that
48518 Use bool where appropriate.
48519 * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
48520 All callers changed.
48521 (calc_eclosure_iter): Likewise, for ROOT arg.
48522 (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
48523 (build_charclass_op): Likewise, for NON_MATCH arg.
48524 * lib/regex_internal.c (re_string_allocate, re_string_construct):
48525 (re_string_construct_common): Likewise, for ICASE arg.
48526 * lib/regexec.c (re_search_2_stub, re_search_stub):
48527 Likewise, for RET_LEN arg.
48528 (check_matching): Likewise, for FL_LONGEST_MATCH arg.
48529 (set_regs): Likewise, for FL_BACKTRACK arg.
48530 * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
48531 (duplicate_node_closure, calc_inveclosure, calc_eclosure):
48532 (calc_eclosure_iter, parse_bracket_exp):
48533 Use bool for internal variables that are booleans.
48534 * lib/regexec.c (re_search_internal, check_matching,
48535 proceed_next_node):
48536 (set_regs, build_sifted_states, sift_states_bkref):
48537 (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
48538 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
48539 (find_collation_sequence_value):
48541 * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
48542 (re_node_set_compare):
48543 Return bool, not int. All callers changed.
48544 * lib/regexec.c (check_halt_node_context, check_dst_limits):
48545 (build_trtable, check_node_accept): Likewise.
48546 * lib/regex_internal.h: Include stdbool.h.
48548 Fix bugs uncovered when converting to bool.
48549 * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
48550 failure instead of charging ahead blindly.
48551 * lib/regex_internal.c (register_state): Likewise.
48552 * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
48553 for freeing internal storage.
48554 (group_nodes_into_DFA_states): Use unsigned int, not int, for
48555 bitset pieces used as boolean, to avoid undefined behavior
48556 on hosts that do int overflow checking.
48558 2005-09-01 Paul Eggert <eggert@cs.ucla.edu>
48560 * config/srclist.txt: Add glibc bugs 1285-1287.
48562 2005-09-01 Jim Meyering <jim@meyering.net>
48564 * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
48565 CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
48566 Require gl_STAT_MACROS, too.
48568 2005-09-01 Bruno Haible <bruno@clisp.org>
48570 * gnulib-tool (import): In the first-use case, provide defaults.
48572 2005-09-01 Bruno Haible <bruno@clisp.org>
48574 * gnulib-tool (func_import): Remove the .tmp files.
48576 2005-09-01 Bruno Haible <bruno@clisp.org>
48578 * gnulib-tool (func_import): Fix handling of symbolic links.
48580 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
48582 On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
48583 old glibc regex code mishandles strings longer than 2**31 bytes.
48584 This patch fixes this when the regex code is used in gnulib
48585 (i.e., outside glibc).
48587 This patch should not affect the use of the regex code inside
48588 glibc. No doubt this problem also needs to be handled for glibc
48589 as well, but the result will be an incompatible change to the
48590 glibc ABI, and the old ABI will have to be supported too. That
48591 can be the the subject for another patch.
48593 * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
48594 governing whether the rest of this patch is active. By default,
48595 the macro is disabled and the patch has no effect.
48596 (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
48597 (__re_idx_t, __re_size_t, __re_long_size_t): New types.
48598 (struct re_pattern_buffer, re_search, re_search_2, re_match):
48599 (re_match_2, re_set_registers): Use the new types.
48600 * lib/regex_internal.h (Idx, re_hashval_t): New types.
48601 (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
48603 (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
48604 (re_string_context_at, bin_tree_t, re_dfastate_t):
48605 (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
48606 (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
48607 (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
48608 (re_string_char_size_at, re_string_wchar_at):
48609 (re_string_elem_size_at):
48610 Use the new types and macros to port to 64-bit hosts.
48611 Use unsigned types for internal values, so that the code
48612 mostly works even for arrays larger than SSIZE_MAX.
48613 * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
48614 (search_duplicated_node, calc_eclosure_iter, fetch_number):
48615 (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
48616 (build_equiv_class, build_charclass, re_compile_fastmap_iter):
48617 (free_dfa_content, create_initial_state, optimize_utf8, analyze):
48618 (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
48619 (calc_inveclosure, parse_dup_op, build_range_exp):
48620 (build_collating_symbol, parse_bracket_exp, build_charclass_op):
48621 (fetch_number, create_token_tree, mark_opt_subexp):
48623 * lib/regex_internal.c (re_string_construct_common,
48624 create_ci_newstate):
48625 (create_cd_newstate, re_string_allocate, re_string_construct):
48626 (re_string_realloc_buffers, build_wcs_upper_buffer):
48627 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
48628 (re_string_reconstruct, re_string_peek_byte_case):
48629 (re_string_fetch_byte_case, re_string_context_at):
48630 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
48631 (re_node_set_init_copy, re_node_set_add_intersect):
48632 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48633 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48634 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
48635 (re_acquire_state, re_acquire_state_context, register_state):
48637 * lib/regex.c (match_ctx_init, match_ctx_add_entry,
48638 search_cur_bkref_entry):
48639 (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
48640 (re_search_internal, re_search_2_stub, re_search_stub)
48641 (re_copy_regs, check_matching, check_halt_state_context, update_regs):
48642 (push_fail_stack, sift_states_iter_mb, build_sifted_states):
48643 (update_cur_sifted_state, check_dst_limits):
48644 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48645 (check_subexp_limits, sift_states_bkref, merge_state_array):
48646 (check_subexp_matching_top, get_subexp, get_subexp_sub):
48647 (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
48648 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
48649 (expand_bkref_cache, check_node_accept_bytes):
48650 (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
48651 (re_search, re_match_2, re_search_2, prune_impossible_nodes):
48652 (acquire_init_state_context, check_halt_node_context):
48653 (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
48654 (sift_states_backward, clean_state_log_if_needed):
48655 (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
48656 (find_recover_state, transit_state_sb, transit_state_mb):
48657 (transit_state_bkref, build_trtable, match_ctx_clean):
48659 * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
48660 to work around an assumption that REG_MISSING is negative.
48662 * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
48663 (seek_collating_symbol_entry) [defined _LIBC]:
48664 (lookup_collation_sequence_value) [defined _LIBC]:
48665 (build_range_exp, build_collating_symbol) [defined _LIBC]:
48666 Use prototypes rather than old-style function definitions.
48667 * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
48668 (transit_state_sb) [0]:
48669 (find_collation_sequence_value) [defined _LIBC]: Likewise.
48671 * lib/regexec.c (re_search_internal): Simplify update of rm_so and
48674 * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
48675 (optimize_subexps, lower_subexp):
48676 Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
48677 since the signed shift might overflow. Use 1u<<31 instead.
48678 * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
48680 * lib/regexec.c (check_dst_limits_calc_pos_1,
48681 check_subexp_matching_top): Likewise.
48683 * lib/regcomp.c (optimize_subexps, lower_subexp):
48684 Use CHAR_BIT rather than 8, for clarity.
48685 * lib/regexec.c (check_dst_limits_calc_pos_1):
48686 (check_subexp_matching_top): Likewise.
48687 * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
48688 have to worry about portability issues when shifting it left.
48689 Remove no-longer-needed test for table_size > 0.
48690 * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
48691 in a word, as the resulting behavior is undefined.
48692 * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
48693 in one case, a <= should have been an <, and in another case the
48694 whole test was missing.
48695 * lib/regex_internal.h (BYTE_BITS): Remove. All uses changed to
48696 the standard name CHAR_BIT.
48697 * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
48698 this is not true on one's complement and signed-magnitude hosts.
48700 * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
48702 (struct re_dfa_t): Remove unused member states_alloc.
48703 * lib/regcomp.c (init_dfa): Don't initialize unused members.
48705 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
48707 * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
48708 _REGEX_LARGE_OFFSETS). Test for regoff_t/off_t bug in 64-bit
48709 and large-file glibc and in 32-bit large-file Solaris.
48711 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
48713 * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
48714 lengths fit in regoff_t; this isn't true if regoff_t is the same
48716 * lib/regex.c (re_search_internal): 5th arg is LAST_START
48717 (= START + RANGE) instead of RANGE. This avoids overflow
48718 problems when regoff_t is the same width as size_t.
48719 All callers changed.
48720 (re_search_2_stub): Check for overflow when adding the
48721 sizes of the two strings.
48722 (re_search_stub): Check for overflow when adding START
48723 to RANGE; if it occurs, substitute the extreme value.
48725 2005-08-31 Paul Eggert <eggert@cs.ucla.edu>
48727 * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
48729 2005-08-31 Jim Meyering <jim@meyering.net>
48731 * lib/regcomp.c (search_duplicated_node): Make first pointer arg
48732 a pointer-to-const.
48733 * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
48734 (register_state): Likewise.
48735 * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
48736 (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
48737 (group_nodes_into_DFAstates): Likewise.
48739 2005-08-31 Jim Meyering <jim@meyering.net>
48741 * check-module: Add a FIXME comment.
48743 2005-08-31 Eric Blake <ebb9@byu.net>
48745 * modules/unistd-safer (Files): Add unistd--.h.
48746 * modules/stdio-safer (Files): Add stdio--.h.
48748 2005-08-31 Derek Price <derek@ximbiot.com>
48750 * lib/getdelim.c (getdelim): Return EOF on EOF.
48751 Reported by Larry Jones <lawrence.jones@ugs.com>.
48753 2005-08-31 Bruno Haible <bruno@clisp.org>
48755 Avoid unnecessary diffs in the generated lib/Makefile.am.
48756 * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
48757 the generated files.
48758 (func_import): Don't set cmd.
48760 2005-08-31 Bruno Haible <bruno@clisp.org>
48762 * lib/strstr.c: Include <stddef.h>, for NULL.
48763 * lib/strcasestr.c: Likewise.
48764 Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48766 2005-08-31 Bruno Haible <bruno@clisp.org>
48768 * gnulib-tool: New option --macro-prefix.
48769 (func_import): Use macro_prefix.
48770 (import): Handle option --macro-prefix.
48772 2005-08-31 Bruno Haible <bruno@clisp.org>
48774 * gnulib-tool (import): Rename most ac_* variables to cached_*.
48775 Also use new variables cached_lgpl, cached_libtool.
48777 2005-08-31 Bruno Haible <bruno@clisp.org>
48779 * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
48780 always instantiating them.
48782 2005-08-31 Bruno Haible <bruno@clisp.org>
48784 * gnulib-tool (func_import): Read the previous cached settings
48785 from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
48786 earlier added by gnulib but are now dropped. Warn when a gnulib file
48787 overwrites a non-gnulib file.
48789 2005-08-31 Bruno Haible <bruno@clisp.org>
48791 * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
48792 gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
48793 projects that don't keep autogenerated files in CVS. Put into
48794 actioncmd only the specified modules, not the transitive closure.
48796 2005-08-31 Bruno Haible <bruno@clisp.org>
48798 * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
48799 Create directories that shall be filled.
48800 (import): Don't look for gl_* macros in configure.ac. Recurse across
48801 all directories containing a gnulib-cache.m4 files, if meaningful.
48803 2005-08-31 Bruno Haible <bruno@clisp.org>
48805 * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
48806 (import): Set seen_libtool when we see gl_LIBTOOL.
48808 2005-08-31 Bruno Haible <bruno@clisp.org>
48810 * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
48811 declaration macro definitions from generated gnulib.m4.
48813 2005-08-30 Oskar Liljeblad <oskar@osk.mine.nu>
48815 * lib/iconvme.h: Add prototype for iconv_alloc.
48817 2005-08-29 Simon Josefsson <jas@extundo.com>
48819 * lib/iconvme.c: Fix errno.
48821 2005-08-29 Bruno Haible <bruno@clisp.org>
48823 * gnulib-tool: Enclose all occurrences of $destdir in "...", so
48824 that it works when the directory contains spaces.
48826 2005-08-29 Bruno Haible <bruno@clisp.org>
48828 * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
48830 2005-08-29 Bruno Haible <bruno@clisp.org>
48832 * gnulib-tool (func_import): Emit more comments into gnulib.m4.
48835 2005-08-29 Bruno Haible <bruno@clisp.org>
48836 and Stepan Kasal <kasal@ucw.cz>
48838 * check-module: If more parameters are given, check each of them
48839 separately; add more exceptions, as noted by Jim Meyering.
48840 (check_module): New procedure.
48841 (%exempt_header): Now contains all exceptions.
48843 2005-08-29 Ben Pfaff <blp@cs.stanford.edu>
48845 * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
48847 2005-08-29 Oskar Liljeblad <oskar@osk.mine.nu>
48849 * lib/iconvme.c: Split iconv_string into iconv_alloc.
48851 2005-08-28 Bruno Haible <bruno@clisp.org>
48853 * m4/gnulib-tool.m4: New file.
48855 2005-08-27 Jim Meyering <jim@meyering.net>
48857 * modules/unistd-safer (Files): Add pipe-safer.c.
48858 * modules/fcntl-safer (Files): Add creat-safer.c.
48860 2005-08-27 Jim Meyering <jim@meyering.net>
48862 * m4/stdlib-safer.m4: New file. From coreutils.
48863 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
48864 * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
48865 AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
48866 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
48867 Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
48869 2005-08-27 Jim Meyering <jim@meyering.net>
48871 * lib/fopen-safer.c: Merge minor changes from coreutils.
48872 * lib/dup-safer.c: Likewise.
48873 * lib/fd-safer.c: Likewise.
48875 Merge from coreutils.
48876 * lib/stdio--.h: New file.
48877 * lib/stdlib--.h: New file.
48878 * lib/mkstemp-safer.c: New file.
48880 GNU tar needs these.
48881 * lib/pipe-safer.c: New file.
48882 * lib/creat-safer.c: New file.
48883 * lib/fcntl--.h (creat): Define to creat_safer.
48884 * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
48885 * lib/unistd--.h (pipe): Define to pipe_safer.
48886 * lib/unistd-safer.h: Declare pipe_safer.
48888 2005-08-26 Simon Josefsson <jas@extundo.com>
48890 * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
48891 Haible <bruno@clisp.org>.
48893 2005-08-26 Paul Eggert <eggert@cs.ucla.edu>
48895 * lib/regex_internal.h: Remove all references to
48896 RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
48898 (bitset_not, bitset_merge, bitset_not_merge):
48899 (bitset_mask, re_string_allocate, re_string_construct):
48900 (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
48901 (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
48902 (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
48903 (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
48904 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
48905 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
48906 (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
48907 (re_acquire_state_context):
48908 Remove unnecessary forward decls.
48909 (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
48910 Put __attribute at function definition,
48911 now that the function decl has been removed.
48912 * lib/regex_internal.c (re_string_peek_byte_case):
48913 (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
48916 2005-08-25 Stepan Kasal <kasal@ucw.cz>
48918 * m4/regex.m4: Add AC_PREREQ(2.50).
48919 (gl_REGEX): If --with-included-regex was given, skip the autodetection.
48921 2005-08-25 Simon Josefsson <jas@extundo.com>
48923 * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
48926 2005-08-25 Simon Josefsson <jas@extundo.com>
48928 * lib/getpass.c: Add WIN32 implementation. Conditionalize use of
48929 termios.h, tcgetattr, tcsetattr and __fsetlocking. Remove some
48930 GLIBC specific code.
48932 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
48934 Make regex safe for g++. This fixes one real bug (an "err"
48935 that should have been "*err"). g++ problem reported by
48937 * lib/regex_internal.h (re_calloc): New macro, consistent with
48938 re_malloc etc. All callers of calloc changed to use re_calloc.
48939 * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
48940 not int. All callers changed.
48941 * lib/regcomp.c (re_compile_fastmap_iter): Don't use
48942 alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
48943 * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
48944 (find_recover_state): Change "err" to "*err"; this fixes what
48945 appears to be a real bug.
48946 (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
48949 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
48951 * modules/regex (Depends-on): Add malloc, since the code
48952 assumes that !malloc(0) means failure.
48954 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
48956 * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
48958 alloca modernization/simplification for regex.
48959 * lib/regex.c: Remove portability cruft for alloca. This no longer
48960 needs to be at the start of the file, and can be moved into
48961 regex_internal.h and simplified.
48962 * lib/regex_internal.h: Include <alloca.h>.
48963 (__libc_use_alloca) [!defined _LIBC]: New macro.
48964 * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
48965 now works outside glibc.
48967 2005-08-25 Paul Eggert <eggert@cs.ucla.edu>
48969 * config/srclist.txt: Add glibc bugs 1241, 1245.
48971 2005-08-25 Jim Meyering <jim@meyering.net>
48973 * lib/open-safer.c: Include <config.h>.
48974 Otherwise, we'd lose LARGEFILE support in any file using
48977 2005-08-25 Bruno Haible <bruno@clisp.org>
48979 * m4/minmax.m4: Require autoconf 2.52.
48980 (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
48981 of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
48982 alternatives of translit over the alphabet.
48983 Based on a patch from Stepan Kasal <kasal@ucw.cz>.
48985 2005-08-24 Simon Josefsson <jas@extundo.com>
48987 * tests/test-getpass.c: New file.
48989 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
48991 * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
48992 for GNU regex features.
48994 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
48996 * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
48997 * lib/regex.h (regerror): Likewise.
48999 * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
49000 requires this. (The code never needed it.)
49002 * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
49003 All uses of recently-renamed identifiers changed to use the new,
49004 POSIX-compliant names. The code will build and run just fine
49005 without these changes, but it's better to eat our own dog food
49006 and use the standard-conforming names.
49008 * lib/regex.h: Fix a multitude of POSIX name space violations.
49009 These changes have an effect only for programs that define
49010 _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
49011 do not change anything for programs compiled in the normal way.
49012 Also, there is no effect on the ABI.
49014 (_REGEX_SOURCE): New macro.
49015 Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
49016 defined and _GNU_SOURCE is not; this fixes a name space violation.
49018 Rename the following macros to obey POSIX requirements.
49019 The old names are still visible as macros if _REGEX_SOURCE is defined.
49020 (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
49021 RE_BACKSLASH_ESCAPE_IN_LISTS.
49022 (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
49023 (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
49024 (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
49025 (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
49026 (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
49027 (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
49028 (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
49029 (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
49030 (REG_INTERVALS): renamed from RE_INTERVALS.
49031 (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
49032 (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
49033 (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
49034 (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
49035 (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
49036 (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
49037 (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
49038 (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
49039 RE_UNMATCHED_RIGHT_PAREN_ORD.
49040 (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
49041 (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
49042 (REG_DEBUG): renamed from RE_DEBUG.
49043 (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
49044 (REG_IGNORE_CASE): renamed from RE_ICASE. This renaming is a bit
49045 unusual, since we can't clash with the POSIX REG_ICASE.
49046 (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
49047 (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
49048 (REG_NO_SUB): renamed from RE_NO_SUB.
49049 (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
49050 (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
49051 (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
49052 (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
49053 (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
49054 (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
49055 (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
49056 (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
49057 (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
49058 (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
49059 (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
49060 (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
49061 RE_SYNTAX_POSIX_MINIMAL_BASIC.
49062 (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
49063 (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
49064 RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
49065 (REG_DUP_MAX): renamed from RE_DUP_MAX. No need to undef it.
49066 (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
49067 (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
49068 (REG_FIXED): Renamed from REGS_FIXED.
49069 (REG_NREGS): Renamed from RE_NREGS.
49071 (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
49072 of other REG_* macros, since POSIX says the user is allowed to
49073 #undef these macros selectively.
49075 (reg_errcode_t): Update comment stating what other tables need
49078 Rename the following enum values to obey POSIX requirements.
49079 The old names are still visible as macros.
49080 (_REG_ENOSYS): Renamed from REG_ENOSYS. Define even if _XOPEN_SOURCE
49081 is not defined, since GNU is supposed to be a superset of POSIX as
49082 much as possible, and since we want reg_errcode_t to be a signed
49083 type for implementation consistency.
49084 (_REG_NOERROR): Renamed from REG_NOERROR.
49085 (_REG_NOMATCH): Renamed from REG_NOMATCH.
49086 (_REG_BADPAT): Renamed from REG_BADPAT.
49087 (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
49088 (_REG_ECTYPE): Renamed from REG_ECTYPE.
49089 (_REG_EESCAPE): Renamed from REG_EESCAPE.
49090 (_REG_ESUBREG): Renamed from REG_ESUBREG.
49091 (_REG_EBRACK): Renamed from REG_EBRACK.
49092 (_REG_EPAREN): Renamed from REG_EPAREN.
49093 (_REG_EBRACE): Renamed from REG_EBRACE.
49094 (_REG_BADBR): Renamed from REG_BADBR.
49095 (_REG_ERANGE): Renamed from REG_ERANGE.
49096 (_REG_ESPACE): Renamed from REG_ESPACE.
49097 (_REG_BADRPT): Renamed from REG_BADRPT.
49098 (_REG_EEND): Renamed from REG_EEND.
49099 (_REG_ESIZE): Renamed from REG_ESIZE.
49100 (_REG_ERPAREN): Renamed from REG_ERPAREN.
49101 (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
49102 (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
49103 (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
49104 (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
49106 (_REG_RE_NAME, _REG_RM_NAME): New macros.
49107 (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE. All uses
49108 changed. But support the old name if the new one is not defined
49109 and if _REGEX_SOURCE.
49111 Change the following member names in struct re_pattern_buffer.
49112 The old names are still supported if !_REGEX_SOURCE.
49113 The new names are always supported, regardless of _REGEX_SOURCE.
49114 (re_buffer): Renamed from buffer.
49115 (re_allocated): Renamed from allocated.
49116 (re_used): Renamed from used.
49117 (re_syntax): Renamed from syntax.
49118 (re_fastmap): Renamed from fastmap.
49119 (re_translate): Renamed from translate.
49120 (re_can_be_null): Renamed from can_be_null.
49121 (re_regs_allocated): Renamed from regs_allocated.
49122 (re_fastmap_accurate): Renamed from fastmap_accurate.
49123 (re_no_sub): Renamed from no_sub.
49124 (re_not_bol): Renamed from not_bol.
49125 (re_not_eol): Renamed from not_eol.
49126 (re_newline_anchor): Renamed from newline_anchor.
49128 Change the following member names in struct re_registers.
49129 The old names are still supported if !_REGEX_SOURCE.
49130 The new names are always supported, regardless of _REGEX_SOURCE.
49131 (rm_num_regs): Renamed from num_regs.
49132 (rm_start): Renamed from start.
49133 (rm_end): Renamed from end.
49135 (re_set_syntax, re_compile_pattern, re_compile_fastmap):
49136 (re_search, re_search_2, re_match, re_match_2, re_set_registers):
49137 Prepend __ to parameter names.
49139 Undo yesterday's changes.
49141 2005-08-24 Paul Eggert <eggert@cs.ucla.edu>
49143 * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
49144 supersedes it. Add glibc bugs 1237, 1238, 1240. Comment out
49147 2005-08-24 Jim Meyering <jim@meyering.net>
49149 Sync from coreutils.
49150 * m4/fcntl-safer.m4: New file.
49152 * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
49153 and object files for this module.
49155 2005-08-24 Jim Meyering <jim@meyering.net>
49157 Sync from coreutils.
49158 * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
49160 2005-08-24 Jim Meyering <jim@meyering.net>
49162 * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
49163 now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
49165 2005-08-24 Jim Meyering <jim@meyering.net>
49167 * modules/fcntl-safer: New module.
49168 * modules/fts (Depends-on): Add fcntl-safer.
49169 * MODULES.html.sh (File descriptor based Input/Output):
49172 2005-08-24 Bruno Haible <bruno@clisp.org>
49174 Support for unit test modules.
49175 * modules/README: Mention tests modules.
49176 * modules/TEMPLATE-TESTS: New file.
49177 * gnulib-tool: New options --extract-tests-module, --with-tests and
49178 --tests-base (unused for the moment).
49179 (testsbase, inctests): New variables.
49180 (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
49181 (func_verify_module): Exclude TEMPLATE-TESTS.
49182 (func_verify_nontests_module, func_verify_tests_module): New functions.
49183 (func_get_dependencies): Add implicit dependency for tests modules.
49184 (func_get_tests_module): New function.
49185 (func_modules_transitive_closure): When --with-tests was specified,
49186 include the unit tests as well, unless explicitly avoided.
49187 (func_emit_lib_Makefile_am): Ignore the tests modules here.
49188 (func_emit_tests_Makefile_am): New function.
49189 (func_create_testdir): When --with-tests was specified, emit a
49191 * MODULES.html.sh (Future developments): Update.
49193 2005-08-24 Bruno Haible <bruno@clisp.org>
49195 * modules/tls-tests: New file.
49196 * tests/test-tls.c: New file, from GNU gettext.
49198 2005-08-24 Bruno Haible <bruno@clisp.org>
49200 * modules/lock-tests: New file.
49201 * tests/test-lock.c: New file, from GNU gettext.
49203 2005-08-24 Bruno Haible <bruno@clisp.org>
49205 * lib/lock.h: Add multiple inclusion guard.
49206 * lib/tls.h: Add multiple inclusion guard.
49208 2005-08-24 Bruno Haible <bruno@clisp.org>
49210 * gnulib-tool: Add support for the --aux-dir option to
49211 --create-testdir, --create-megatestdir, --test, --megatest.
49212 (func_create_testdir, func_create_megatestdir): Optionally emit a
49213 AC_CONFIG_AUX_DIR directive.
49214 (create-testdir, create-megatestdir, test, megatest): Provide a
49215 default value for $auxdir.
49217 2005-08-24 Bruno Haible <bruno@clisp.org>
49219 * gnulib-tool (import): Use compound statement instead of subshell
49222 2005-08-24 Bruno Haible <bruno@clisp.org>
49224 * gnulib-tool (import): Change --aux-dir default to "build-aux".
49226 2005-08-24 Bruno Haible <bruno@clisp.org>
49228 * gnulib-tool (func_version): Update.
49230 2005-08-24 Bruno Haible <bruno@clisp.org>
49232 * gnulib-tool (func_import, func_create_testdir,
49233 func_create_megatestdir): Quote all autoconf macro arguments.
49235 2005-08-24 Bruno Haible <bruno@clisp.org>
49237 * gnulib-tool (func_create_megatestdir): Call autoreconf without the
49238 option --force, because --force causes the aclocal.m4 of each
49239 subdirectory to be newer than the corresponding config.h.in.
49241 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49243 * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
49244 All contents moved to gl_REGEX.
49245 (gl_REGEX): Don't bother checking whether lib/regex.c exists;
49246 assume that it does.
49248 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49250 * lib/regex.h (REG_NOSYS)
49251 [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
49252 Define, since POSIX requires it as of 2001.
49254 [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
49255 New private symbol, used to keep the enum signed in all cases.
49256 * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
49258 <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
49260 * lib/regex_internal.c (re_string_skip_chars, register_state):
49262 Remove forward decls; no longer needed now that we use prototypes.
49263 * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
49264 (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
49265 (clean_state_log_if_needed): Likewise.
49267 2005-08-23 Paul Eggert <eggert@cs.ucla.edu>
49269 * config/srclist.txt: Add glibc bugs 1231-1233.
49271 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49273 Fix problems reported by Sam Steingold in
49274 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
49275 * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
49276 assumed that reg_errcode_t is a signed type, which is not
49277 necessarily true if _XOPEN_SOURCE is not defined.
49278 * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
49279 since some compilers warn about it otherwise.
49281 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49283 * lib/regcomp.c (create_initial_state): Remove duplicate decl.
49284 (init_word_char, create_initial_state, duplicate_node_closure):
49285 (fetch_token, peek_token_bracket, build_range_exp):
49286 (build_collating_symbol): Remove forward decls; no longer needed
49287 now that we use prototypes.
49290 (re_compile_pattern, re_set_syntax, re_compile_fastmap):
49291 (re_compile_fastmap_iter, regcomp, regerror, regfree):
49292 (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
49293 (create_initial_state, optimize_utf8, analyze, postorder, preorder):
49294 (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
49295 (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
49296 (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
49297 (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
49298 (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
49299 (build_range_exp, build_collating_symbol, parse_bracket_exp):
49300 (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
49301 (build_charclass, build_charclass_op, fetch_number, create_tree):
49302 (create_token_tree, mark_opt_subexp, duplicate_tree):
49303 Use prototypes rather than old-style definitions.
49305 * lib/regex_internal.c:
49306 (re_string_allocate, re_string_construct, re_string_realloc_buffers):
49307 (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
49308 (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
49309 (re_string_reconstruct, re_string_peek_byte_case):
49310 (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
49311 (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
49312 (re_node_set_init_copy, re_node_set_add_intersect):
49313 (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
49314 (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
49315 (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
49316 (re_acquire_state, re_acquire_state_context, register_state):
49317 (create_ci_newstate, create_cd_newstate, free_state):
49319 * lib/regexec.c (regexec, re_match, re_search, re_match_2,
49321 (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
49322 (re_search_internal, prune_impossible_nodes):
49323 (acquire_init_state_context, check_matching, static):
49324 (check_halt_node_context, check_halt_state_context, proceed_next_node):
49325 (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
49326 (update_regs, sift_states_backward, build_sifted_states):
49327 (clean_state_log_if_needed, merge_state_array):
49328 (update_cur_sifted_state, add_epsilon_src_nodes):
49329 (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
49330 (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
49331 (sift_states_iter_mb, transit_state, merge_state_with_log, static):
49332 (find_recover_state, check_subexp_matching_top, transit_state_mb):
49333 (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
49334 (check_arrival, check_arrival_add_next_nodes):
49335 (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
49336 (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
49337 (check_node_accept_bytes, check_node_accept, extend_buffers):
49338 (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
49339 (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
49343 * lib/regex_internal.h:
49344 (re_string_allocate, re_string_construct, re_string_reconstruct):
49345 (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
49346 (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
49347 (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
49348 (re_string_context_at, re_string_peek_byte_case):
49349 (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
49350 is defined, since we now use prototypes always.
49352 * lib/regex.h (_RE_ARGS): Remove. No longer needed, since we assume
49353 C89 or better. All uses removed.
49355 2005-08-20 Paul Eggert <eggert@cs.ucla.edu>
49357 * config/srclist.txt: Add glibc bugs 1220-1227.
49359 2005-08-20 Jim Meyering <jim@meyering.net>
49361 * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
49362 of unused local, dfa.
49364 2005-08-20 Bruno Haible <bruno@clisp.org>
49366 * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
49368 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49370 * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
49371 (re_node_set_insert_last, re_dfa_add_node):
49372 Rename local variables to avoid GCC shadowing warnings.
49374 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49376 * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
49377 [defined lint]: Suppress bogus uninitialized-variable warnings.
49379 * lib/regcomp.c (duplicate_node): Return new index, not an error code,
49380 and let the caller return REG_ESPACE if out of space. This
49381 removes an uninitialied-variable warning with GCC 4.0.1, and also
49382 avoids taking the address of a local variable. All callers
49385 2005-08-19 Paul Eggert <eggert@cs.ucla.edu>
49387 * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
49388 $LIBCSRC/posix/regexec.c.
49389 Add glibc bug 1217 for regcomp.c.
49391 2005-08-19 Jim Meyering <jim@meyering.net>
49393 * lib/regexec.c (proceed_next_node): Redo local variables to
49394 avoid GCC shadowing warnings.
49396 2005-08-18 Bruno Haible <bruno@clisp.org>
49398 * lib/strstr.c (strstr): Fix return value in multibyte case.
49399 * lib/strcasestr.c (strcasestr): Likewise.
49401 2005-08-17 Paul Eggert <eggert@cs.ucla.edu>
49403 * lib/regex.h: Remove useless space-before-tab. From coreutils.
49405 2005-08-17 Jim Meyering <jim@meyering.net>
49407 Make the %s format (seconds since the epoch) work for a negative
49408 number and when used with a zero-padded field width, e.g. %015s.
49410 * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
49411 label so that it precedes the code to set `digits'. Otherwise,
49412 %0Ns wouldn't work. Before this change, `date -d @-22 +%05s' would
49413 print `00-22'. Now, it prints `-0022', as it should.
49415 2005-08-17 Bruno Haible <bruno@clisp.org>
49417 * modules/strstr (Files): Add m4/mbrtowc.m4.
49418 (Depends-on): Add mbuiter.
49420 2005-08-17 Bruno Haible <bruno@clisp.org>
49422 * modules/strcasestr: New file.
49423 * MODULES.html.sh (String handling, based on ANSI C 89): Add
49426 2005-08-17 Bruno Haible <bruno@clisp.org>
49428 * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
49430 2005-08-17 Bruno Haible <bruno@clisp.org>
49432 * modules/mbuiter: New file.
49433 * MODULES.html.sh (Extended multibyte and wide character utilities):
49436 2005-08-17 Bruno Haible <bruno@clisp.org>
49438 * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
49439 (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
49441 2005-08-17 Bruno Haible <bruno@clisp.org>
49443 * m4/strcasestr.m4: New file.
49445 2005-08-17 Bruno Haible <bruno@clisp.org>
49447 * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
49448 * lib/strstr.c: Completely rewritten, with multibyte locale support.
49450 2005-08-17 Bruno Haible <bruno@clisp.org>
49452 * lib/strcasestr.h: New file.
49453 * lib/strcasestr.c: New file.
49455 2005-08-17 Bruno Haible <bruno@clisp.org>
49457 * lib/strcasecmp.c: Use mbuiter.h.
49459 2005-08-17 Bruno Haible <bruno@clisp.org>
49461 * lib/mbuiter.h: New file.
49463 2005-08-16 Paul Eggert <eggert@cs.ucla.edu>
49465 * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
49466 of gl_GETOPT_SUBSTITUTE. That way, if both gl_GETOPT_SUBSTITUTE
49467 and gl_GETOPT are both invoked via different paths (as happens
49468 with GNU tar CVS because it uses both argp and getopt), the former
49471 2005-08-16 Bruno Haible <bruno@clisp.org>
49473 * modules/tls: New file.
49474 * MODULES.html.sh (Multithreading): Add tls.
49476 2005-08-16 Bruno Haible <bruno@clisp.org>
49478 * modules/strnlen1: New file.
49479 * MODULES.html.sh (String handling): Add strnlen1.
49481 2005-08-16 Bruno Haible <bruno@clisp.org>
49483 * modules/strcase (Files): Add m4/mbrtowc.m4.
49484 (Depends-on): Add strnlen1, mbchar.
49486 2005-08-16 Bruno Haible <bruno@clisp.org>
49488 * modules/mbiter: New file.
49489 * MODULES.html.sh (Extended multibyte and wide character utilities):
49492 2005-08-16 Bruno Haible <bruno@clisp.org>
49494 * modules/mbfile: New file.
49495 * MODULES.html.sh (Extended multibyte and wide character utilities):
49498 2005-08-16 Bruno Haible <bruno@clisp.org>
49500 * modules/mbchar: New file.
49501 * MODULES.html.sh (Extended multibyte and wide character utilities):
49504 2005-08-16 Bruno Haible <bruno@clisp.org>
49506 * m4/tls.m4: New file, from GNU gettext.
49508 2005-08-16 Bruno Haible <bruno@clisp.org>
49510 * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
49512 (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
49514 2005-08-16 Bruno Haible <bruno@clisp.org>
49516 * m4/mbiter.m4: New file.
49518 2005-08-16 Bruno Haible <bruno@clisp.org>
49520 * m4/mbfile.m4: New file.
49522 2005-08-16 Bruno Haible <bruno@clisp.org>
49524 * m4/mbchar.m4: New file.
49526 2005-08-16 Bruno Haible <bruno@clisp.org>
49528 * lib/tls.h: New file, from GNU gettext.
49529 * lib/tls.c: New file, from GNU gettext.
49531 2005-08-16 Bruno Haible <bruno@clisp.org>
49533 * lib/strnlen1.h: New file.
49534 * lib/strnlen1.c: New file.
49536 2005-08-16 Bruno Haible <bruno@clisp.org>
49538 * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
49539 (mbi_init): Update.
49540 (mbi_avail, mbi_advance): Let the iteration end before the terminating
49541 NUL byte, not after it.
49543 2005-08-16 Bruno Haible <bruno@clisp.org>
49545 * lib/strcase.h (strcasecmp): Add note in comments.
49546 * lib/strncasecmp.c: Use code from strcasecmp.c.
49547 * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
49548 (strcasecmp): Work correctly in multibyte locales.
49550 2005-08-16 Bruno Haible <bruno@clisp.org>
49552 * lib/mbiter.h: New file.
49554 2005-08-16 Bruno Haible <bruno@clisp.org>
49556 * lib/mbfile.h: New file.
49558 2005-08-16 Bruno Haible <bruno@clisp.org>
49560 * lib/mbchar.h: New file.
49561 * lib/mbchar.c: New file.
49563 2005-08-16 Bruno Haible <bruno@clisp.org>
49565 * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
49566 the valid ones. Makes the comparison operations transitive:
49567 cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
49568 * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
49570 2005-08-15 Simon Josefsson <jas@extundo.com>
49572 * modules/ssize_t (License): Change to 'unlimited'.
49574 * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
49576 2005-08-15 Paul Eggert <eggert@cs.ucla.edu>
49578 * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
49579 Add comments for each pending glibc patch.
49581 2005-08-15 Bruno Haible <bruno@clisp.org>
49583 * lib/regex.h (__restrict_arr): Don't define to __restrict if
49584 __cplusplus is defined.
49586 2005-08-14 Jim Meyering <jim@meyering.net>
49588 Sync from coreutils.
49590 * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
49591 Use the hash-table-based cycle-detection code not just when
49592 FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
49593 Reported by James Youngman in
49594 <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
49595 * lib/fts_.h: Mention that with FTS_LOGICAL, we use
49596 FTS_TIGHT_CYCLE_CHECK.
49597 * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
49598 s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
49600 * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
49601 * lib/fts.c (fd_safer): Remove decl.
49602 Include fcntl--.h rather than unistd-safer.h
49603 (fts_safe_changedir): Don't call fd_safer; no longer needed
49604 now that we include fcntl--.h.
49606 2005-08-12 Simon Josefsson <jas@extundo.com>
49608 * modules/getndelim2: Use ssize_t module.
49609 * modules/getnline: Likewise.
49610 * modules/safe-read: Likewise.
49611 * modules/xreadlink: Likewise.
49613 * modules/ssize_t: New file.
49615 2005-08-12 Simon Josefsson <jas@extundo.com>
49617 * m4/readline.m4: Look for termcap, curses or ncurses if required.
49619 2005-08-12 Simon Josefsson <jas@extundo.com>
49621 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49624 2005-08-12 Simon Josefsson <jas@extundo.com>
49626 * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
49627 readline, getdelim and check_version.
49628 (Support for systems lacking ISO C 99: Sizes of integer types):
49631 2005-08-12 Bruno Haible <bruno@clisp.org>
49633 * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
49635 2005-08-11 Simon Josefsson <jas@extundo.com>
49637 * modules/readline: New file.
49639 * modules/strnlen (Files): Add strnlen.h.
49641 2005-08-11 Simon Josefsson <jas@extundo.com>
49643 * m4/readline.m4: New file.
49645 2005-08-11 Simon Josefsson <jas@extundo.com>
49647 * lib/readline.h, readline.c: New file.
49649 2005-08-11 Simon Josefsson <jas@extundo.com>
49651 * doc/gnulib.texi (Initial import, Finishing touches): Mention
49654 2005-08-11 Bruno Haible <bruno@clisp.org>
49656 * lib/strnlen.h (strnlen): Change parameter name to match comment.
49658 2005-08-10 Stepan Kasal <kasal@ucw.cz>
49660 * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
49662 2005-08-10 Simon Josefsson <jas@extundo.com>
49664 * tests/test-iconvme.c: New file.
49666 2005-08-10 Simon Josefsson <jas@extundo.com>
49668 * m4/strnlen.m4: New file.
49670 * m4/strndup.m4: Don't check for strnlen declaration, done in
49673 2005-08-10 Simon Josefsson <jas@extundo.com>
49675 * lib/strndup.c: Use strnlen.h.
49677 * lib/strnlen.h: New file.
49679 2005-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
49683 2005-08-02 Simon Josefsson <jas@extundo.com>
49685 * modules/readline: New file.
49687 2005-08-02 Simon Josefsson <jas@extundo.com>
49689 * modules/getdelim: New file.
49691 * modules/getline: Rewrite, don't use getndelim2.
49693 2005-08-02 Simon Josefsson <jas@extundo.com>
49695 * m4/getline.m4: Separate out getdelim stuff into separate module.
49697 * m4/getdelim.m4: New file.
49699 2005-08-02 Simon Josefsson <jas@extundo.com>
49701 * lib/getline.h, getline.c: Rewrite.
49703 * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
49705 2005-07-31 Bruno Haible <bruno@clisp.org>
49707 * lib/lock.h (gl_lock_initializer): New macro.
49708 (gl_lock_define_initialized): Use it.
49709 (gl_rwlock_initializer): New macro.
49710 (gl_rwlock_define_initialized): Use it.
49711 (gl_recursive_lock_initializer): New macro.
49712 (gl_recursive_lock_define_initialized): Use it.
49714 2005-07-30 Karl Berry <karl@gnu.org>
49716 * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
49717 Report from Ben Pfaff, regarding getopt.
49719 2005-07-26 Paul Eggert <eggert@cs.ucla.edu>
49721 Add support to getopt for Emacs, which doesn't use LIBOBJS in the
49723 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
49724 (gl_GETOPT_SUBSTITUTE): Use it. Invoke gl_PREREQ_GETOPT.
49725 (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
49726 (gl_GETOPT): Use the new macros. Most of the implementation
49727 is moved to the new macros. This is for programs like Emacs
49728 that don't want all the functionality of gl_GETOPT.
49730 2005-07-26 Bruno Haible <bruno@clisp.org>
49732 * m4/lock.m4: Update from GNU gettext.
49734 2005-07-26 Bruno Haible <bruno@clisp.org>
49736 * lib/lock.h: Update from GNU gettext.
49737 * lib/lock.c: Update from GNU gettext.
49739 2005-07-25 Paul Eggert <eggert@cs.ucla.edu>
49741 * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
49742 obsolescent AC_TRY_RUN. Include the default includes files, for
49745 2005-07-24 Bruno Haible <bruno@clisp.org>
49747 * modules/visibility: New file.
49748 * MODULES.html.sh (Misc): Add visibility.
49750 2005-07-24 Bruno Haible <bruno@clisp.org>
49752 * m4/visibility.m4: New file.
49754 2005-07-24 Bruno Haible <bruno@clisp.org>
49756 * doc/visibility.texi: New file.
49758 2005-07-22 Bruno Haible <bruno@clisp.org>
49760 * modules/alloca-opt (Makefile.am): Remove explicit dependency on
49761 $(ALLOCA_H), redundant through BUILT_SOURCES.
49762 * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
49763 redundant through BUILT_SOURCES.
49764 * modules/byteswap (Makefile.am): Remove explicit dependency on
49765 $(BYTESWAP_H), redundant through BUILT_SOURCES.
49766 * modules/fnmatch (Makefile.am): Remove explicit dependency on
49767 $(FNMATCH_H), redundant through BUILT_SOURCES.
49768 * modules/getopt (Makefile.am): Remove explicit dependency on
49769 $(GETOPT_H), redundant through BUILT_SOURCES.
49770 * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
49771 redundant through BUILT_SOURCES.
49772 * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
49773 redundant through BUILT_SOURCES.
49774 * modules/stdbool (Makefile.am): Remove explicit dependency on
49775 $(STDBOOL_H), redundant through BUILT_SOURCES.
49776 * modules/stdint (Makefile.am): Remove explicit dependency on
49777 $(STDINT_H), redundant through BUILT_SOURCES.
49778 * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
49779 Remove explicit dependency on $(SYSEXITS_H).
49780 Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
49782 2005-07-18 Simon Josefsson <jas@extundo.com>
49784 * lib/check-version.c (check_version): Accept identical versions too.
49786 2005-07-18 Bruno Haible <bruno@clisp.org>
49788 * modules/lock: New file.
49789 * MODULES.html.sh (Multithreading): New section.
49791 2005-07-18 Bruno Haible <bruno@clisp.org>
49793 * m4/lock.m4: New file, from GNU gettext.
49795 2005-07-18 Bruno Haible <bruno@clisp.org>
49797 * lib/lock.h: New file, from GNU gettext.
49798 * lib/lock.c: New file, from GNU gettext.
49800 2005-07-18 Bruno Haible <bruno@clisp.org>
49802 * lib/lock.h (gl_once_t): New type.
49803 (gl_once_define, gl_once): New macros.
49804 * lib/lock.c (fresh_once): New variable.
49805 (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
49808 2005-07-16 Simon Josefsson <jas@extundo.com>
49810 * doc/gnulib.texi (Library version handling): Add ELF symbol collision
49811 workaround, suggested by Bruno.
49813 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
49815 * modules/xalloc (Depends-on): Add xalloc-die.
49816 * modules/xvasprintf (Depends-on): Add xalloc-die.
49818 2005-07-15 Paul Eggert <eggert@cs.ucla.edu>
49820 * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
49821 with a minor change.
49823 2005-07-15 Bruno Haible <bruno@clisp.org>
49825 * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
49826 When using lib/poll.c, define poll as rpl_poll.
49828 2005-07-14 Paul Eggert <eggert@cs.ucla.edu>
49830 * modules/argp (Depends-on): Remove unlocked-io.
49832 2005-07-14 Derek Price <derek@ximbiot.com>
49834 * m4/glob.m4 (gl_GLOB): Cache glob interface check result. Add check
49835 for glob symlink bug.
49837 2005-07-14 Bruno Haible <bruno@clisp.org>
49839 * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
49840 Instead, test for *_unlocked function declarations directly.
49842 2005-07-11 Simon Josefsson <jas@extundo.com>
49844 * modules/size_max: New file.
49846 * modules/xsize: Depend on size_max module for size_max.m4.
49848 2005-07-11 Simon Josefsson <jas@extundo.com>
49850 * lib/size_max.h: New file.
49852 2005-07-11 Paul Eggert <eggert@cs.ucla.edu>
49854 * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
49855 copyright symbol and the year.
49856 * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
49857 (version_etc_va): Use parameterized copyright notice.
49858 Reword to conform to the current GNU coding standards.
49860 2005-07-11 Karl Berry <karl@gnu.org>
49862 * doc/gnulib.texi (Quoting): new node.
49863 (Initial import): more info, from Patrice.
49865 2005-07-11 Bruno Haible <bruno@clisp.org>
49867 * gnulib-tool (func_usage): Document option --avoid.
49868 (Command line options): Handle --avoid.
49869 (func_acceptable): New function.
49870 (func_modules_transitive_closure): Use it.
49872 2005-07-11 Bruno Haible <bruno@clisp.org>
49874 * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
49875 Reported by Jim Meyering.
49877 2005-07-10 Bruno Haible <bruno@clisp.org>
49879 * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
49880 Needed when size_t is smaller than 'unsigned int'.
49881 Reported by Paul Eggert.
49883 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
49885 * modules/argp (Depends-on): Add unlocked-io
49887 2005-07-09 Sergey Poznyakoff <gray@gnu.org.ua>
49889 * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
49892 2005-07-08 Paul Eggert <eggert@cs.ucla.edu>
49894 * config/srclist.txt: Comment out regcomp.c, since we have a porting
49897 2005-07-08 Eric Blake <ebb9@byu.net> (tiny change)
49898 and Paul Eggert <eggert@cs.ucla.edu>
49900 * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
49901 in wint_t, not wchar_t. Remove now-unnecessary cast.
49903 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
49905 * modules/regex (Files): Add lib/regex_internal.c,
49906 lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
49907 (Depends-on): Add extensions.
49908 (Makefile.am): Remove lib_SOURCES; now done by m4 code.
49910 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
49912 * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
49914 * m4/same.m4 (gl_SAME): Likewise.
49915 Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
49917 * m4/regex.m4: Adjust to new libc regex implementation.
49918 (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
49919 all the .c and .h parts of (the new) regex.
49920 Quote the m4 stuff better.
49921 Check for RE_ICASE bug of old gnulib.
49922 Check for REG_STARTEND of recent libc.
49923 Rename local variables from jm_* to gl_*.
49924 Quote operand of "test -f".
49925 Say "recent enough" version of libc, not "version 2".
49926 (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
49927 prerequisite module. Remove AC_HEADER_STDC; no longer needed.
49928 Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
49929 Remove check for btowc, isascii.
49930 Require AM_LANGINFO_CODESET.
49932 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
49934 * lib/regex.c, regex.h: Sync from libc.
49935 * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
49937 New files, synced from libc, except that regex_internal.h
49938 currently has a small porting fix.
49940 2005-07-07 Paul Eggert <eggert@cs.ucla.edu>
49942 * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
49943 regex_internal.c, regexec.c.
49944 Add regex_internal.h too, but as a comment, since the libc version
49945 is currently broken in gnulib mode.
49947 2005-07-06 Paul Eggert <eggert@cs.ucla.edu>
49949 Support programs like Emacs that use gnulib but not gettext.
49950 * MODULES.html.sh (Internationalization functions): Add gettext-h.
49951 * modules/gettext-h: New file.
49952 * modules/gettext (Files): Remove lib/gettext.h.
49953 (Depends-on): Add gettext-h.
49954 (Makefile.am): Remove lib_SOURCES.
49955 * modules/argmatch, modules/c-stack, modules/closeout:
49956 * modules/copy-file, modules/csharpcomp, modules/csharpexec:
49957 * modules/execute, modules/file-type, modules/getaddrinfo:
49958 * modules/getopt, modules/human, modules/javacomp:
49959 * modules/javaexec, modules/mkdir-p, modules/obstack:
49960 * modules/openat, modules/pagealign_alloc, modules/pipe:
49961 * modules/quotearg, modules/regex, modules/rpmatch:
49962 * modules/unicodeio, modules/userspec, modules/version-etc:
49963 * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
49965 Depend on gettext-h, not gettext.
49967 2005-07-05 Paul Eggert <eggert@cs.ucla.edu>
49969 * gnulib-tool (func_import): Add support for 'public domain' license.
49970 * modules/alloca, modules/atexit, modules/memmove:
49971 Now public domain, not GPL.
49972 * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
49973 * modules/realloc, modules/strerror, modules/strtod:
49976 2005-07-05 Bruno Haible <bruno@clisp.org>
49978 * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
49979 autoconf CVS. Needed for mingw.
49981 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
49983 Remove the dependency of the strftime module on the tzset module.
49984 * modules/strftime (Depends-on): Remove dependency on tzset.
49986 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
49988 Remove the dependency of the strftime module on the tzset module.
49989 * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
49990 gl_FUNC_TZSET_CLOBBER.
49992 2005-07-03 Paul Eggert <eggert@cs.ucla.edu>
49994 Remove the dependency of the strftime module on the tzset module.
49995 * lib/strftime.c (my_strftime)
49996 [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
49997 Copy the input structure, to work around some of the bug with
49998 Solaris 2.5.1 and Solaris 2.6. If you still care about these old
49999 Solaris releases, you should also use the tzset module, but we won't
50000 require it as a dependency any more since we don't want LGPLed code
50001 to depend on GPLed code.
50003 2005-07-02 Jim Meyering <jim@meyering.net>
50005 * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
50006 * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
50007 * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
50008 Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
50010 2005-07-02 Jim Meyering <jim@meyering.net>
50012 * lib/backupfile.c (backup_args): Change a `0' to NULL.
50014 2005-07-01 Paul Eggert <eggert@cs.ucla.edu>
50016 * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
50017 declares only 'struct timespec;' (!).
50019 2005-07-01 Jim Meyering <jim@meyering.net>
50021 * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
50022 * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
50023 * lib/save-cwd.c, tempname.c:
50024 Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
50025 and don't include <sys/file.h>).
50027 2005-06-29 Jim Meyering <jim@meyering.net>
50029 * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
50030 type name. Use the variable name instead.
50031 * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
50034 2005-06-28 Simon Josefsson <jas@extundo.com>
50036 * modules/check-version (Files): Add check-version.m4.
50038 2005-06-28 Simon Josefsson <jas@extundo.com>
50040 * m4/check-version.m4: New file, suggested by Jim Meyering
50041 <jim@meyering.net>.
50043 2005-06-28 Simon Josefsson <jas@extundo.com>
50045 * lib/check-version.h, lib/check-version.c: New files.
50047 2005-06-28 Simon Josefsson <jas@extundo.com>
50049 * lib/base64.c (base64_encode): Indent. Rename 'b64' to avoid
50050 collision with global variable. Better indentation. Don't
50051 increment buffer pointer beyond buffer end. Based on comments
50052 from Paul Eggert <eggert@cs.ucla.edu>.
50054 * lib/base64.h: Indent.
50056 2005-06-28 Simon Josefsson <jas@extundo.com>
50058 * doc/gnulib.texi (Library version handling): New section.
50060 2005-06-28 Jim Meyering <jim@meyering.net>
50062 * check-module (find_included_lib_files): Hard-code another
50063 pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
50064 but modules/fts-lgpl (correctly) does not list those files.
50066 * modules/canonicalize (Files): Add lib/pathmax.h.
50068 2005-06-25 Simon Josefsson <jas@extundo.com>
50070 * modules/check-version: New file.
50072 2005-06-24 Paul Eggert <eggert@cs.ucla.edu>
50074 * lib/canon-host.c (canon-host): Append trailing "," to 0 in
50075 initializer of struct addrinfo, as an indication that we don't
50076 care how many members the structure has.
50078 2005-06-24 Derek Price <derek@ximbiot.com>
50079 and Bruno Haible <bruno@clisp.org>
50081 Remove stat module & update lstat.
50082 * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
50083 AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
50084 * m4/stat.m4: Remove this file.
50086 2005-06-24 Derek Price <derek@ximbiot.com>
50087 and Bruno Haible <bruno@clisp.org>
50089 Remove stat module & update lstat.
50090 * lib/stat.c: Remove this file...
50091 (slash_aware_lstat): ...moving this content and its support...
50092 * lib/lstat.c (rpl_lstat): ...into here.
50093 * lib/lstat.h: New file.
50095 2005-06-24 Derek Price <derek@ximbiot.com>
50096 and Bruno Haible <bruno@clisp.org>
50098 Remove stat module & update lstat.
50099 * config/srclist.txt (libc sources): Remove stat.
50101 2005-06-24 Derek Price <derek@ximbiot.com>
50102 and Bruno Haible <bruno@clisp.org>
50104 Remove stat module & update lstat.
50105 * MODULES.html.sh (stat): Remove.
50106 * MODULES.html: Regenerated.
50107 * modules/lstat (Description): Correct function name.
50108 (Files): Add "lstat.h".
50109 (Depends-on): Remove stat, add xalloc, stat-macros.
50110 * modules/stat: Remove this file.
50111 (Include): Add "lstat.h", remove <sys/stat.h>.
50113 2005-06-23 Paul Eggert <eggert@cs.ucla.edu>
50115 * lib/mktime.c: Include <string.h> even if !DEBUG. (From glibc.)
50116 (ranged_convert): Don't save conversion in a temporary struct.
50117 This causes a warning with GCC 4.0.0, and anyway in the typical
50118 case it's not worth the extra 100 bytes or so of code.
50119 (ranged_convert, __mktime_internal): When calling a function via a
50120 pointer P, use P () rather than (*P) (), as we now assume C89 or
50123 2005-06-22 Paul Eggert <eggert@cs.ucla.edu>
50125 * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
50126 "who -r" failed to give output. Problem reported by Tim Waugh.
50128 * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
50129 (xcalloc): Use it to avoid needless tests.
50130 Problem reported by Jim Meyering.
50132 2005-06-20 Derek Price <derek@ximbiot.com>
50134 * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
50135 unnecessary for Autoconfs > 2.59c.
50137 2005-06-16 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50139 * lib/argp.h (__option_is_short): Check upper limit of
50140 __key. Isprint() requires its argument to have the value
50141 of an unsigned char or EOF.
50143 2005-06-16 Jim Meyering <jim@meyering.net>
50145 * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
50146 when either N or S is zero.
50148 2005-06-16 Derek Price <derek@ximbiot.com>
50150 * m4/bison.m4: Declare YACC & YFLAGS precious.
50152 2005-06-10 Paul Eggert <eggert@cs.ucla.edu>
50154 * lib/fnmatch.c (fnmatch): If there is an encoding error in a
50155 multibyte string or pattern, fall back on unibyte matching.
50156 Problem reported by James Youngman.
50158 2005-06-08 Bruno Haible <bruno@clisp.org>
50160 * modules/csharpcomp: New file.
50161 * MODULES.html.sh (C#): Add csharpcomp.
50163 2005-06-08 Bruno Haible <bruno@clisp.org>
50165 * m4/csharpcomp.m4: New file, from GNU gettext.
50167 2005-06-08 Bruno Haible <bruno@clisp.org>
50169 * lib/csharpcomp.h: New file, from GNU gettext.
50170 * lib/csharpcomp.c: New file, from GNU gettext.
50171 * lib/csharpcomp.sh.in: New file, from GNU gettext.
50173 2005-06-08 Bruno Haible <bruno@clisp.org>
50175 * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
50178 2005-06-07 Derek Price <derek@ximbiot.com>
50181 * lib/glob_.h: Indent nested #ifdef.
50183 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50185 Sync from coreutils.
50186 Use "file name" when talking about file names, instead of "filename"
50187 or "path", as per the GNU coding standards.
50188 * lib/mkdir-p.c: Renamed from makepath.c.
50189 (make_dir_parents): Renamed from make_path. All callers changed.
50190 * lib/mkdir-p.h: Likewise. All includers changed.
50191 * lib/filenamecat.c: Renamed from path-concat.c.
50192 (file_name_concat): Renamed from path_concat. All callers changed.
50193 [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
50194 * lib/filenamecat.h: Likewise. All includers changed.
50195 * lib/acl.c: Don't use "path" or "filename" to mean "file name"
50196 in comments or local variable names.
50197 * lib/basename.c: Likewise.
50198 * lib/canonicalize.c, canonicalize.h: Likewise.
50199 * lib/dirname.c, dirname.h: Likewise.
50200 * lib/euidaccess.c: Likewise.
50201 * lib/exclude.c: Likewise
50202 * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
50203 * lib/fsusage.c, fsuage.h: Likewise.
50204 * lib/fts.c, fts_.h: Likewise.
50205 * lib/getcwd.c: Likewise.
50206 * lib/getloadavg.c: Likewise.
50207 * lib/mkstemp.c: Likewise.
50208 * lib/mountlist.c, mountlist.h: Likewise.
50209 * lib/openat.c, openat.h: Likewise.
50210 * lib/readlink-stub.c: Likewise.
50211 * lib/readutmp.c, readutmp.h: Likewise.
50212 * lib/rename.c: Likewise.
50213 * lib/rmdir.c: Likewise.
50214 * lib/same.c: Likewise.
50215 * lib/savedir.c: Likewise.
50216 * lib/stripslash.c: Likewise.
50217 * lib/tempname.c: Likewise.
50218 * lib/xreadlink.c: Likewise.
50219 * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
50221 * lib/exclude.h: Likewise.
50223 * lib/euidaccess.c (getuid, getgid, getuid, getegid)
50224 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50225 * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
50226 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50227 * lib/pathmax.h: Include <limits.h> unconditionally, since other
50228 files have been getting away with it for years (MORE/BSD 4.3
50230 * lib/userspec.c (getpwnam, getgrnam, getgrgid)
50231 [!defined _POSIX_VERSION]: Remove decls; not needed these days.
50233 * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
50234 Define to 256, not 255, as per modern POSIX.
50236 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50238 Sync from coreutils.
50239 Use "file name" when talking about file names, instead of "filename"
50240 or "path", as per the GNU coding standards.
50241 * MODULES.html.sh: mkdir-p renamed from makepath.
50242 filenamecat renamed from path-concat.
50243 * modules/filenamecat: Renamed from modules/path-concat.
50244 (Files): filenamecat.h and filenamecat.c renamed from
50245 path-concat.h and path-concat.c.
50246 (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
50247 (Include): filenamecat.h, not path-concat.h.
50248 * modules/mkdir-p: Renamed from modules/makepath.
50249 (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
50251 (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
50252 (Include): mkdir-p.h, not makepath.h.
50254 2005-06-02 Paul Eggert <eggert@cs.ucla.edu>
50256 Sync from coreutils.
50257 * m4/mkdir-p.m4: Renamed from makepath.m4.
50258 (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH. All uses changed.
50259 Rename files from makepath.c to mkdir-p.c, and from
50260 makepath.h to mkdir-p.h.
50261 * m4/filenamecat.m4: Renamed from path-concat.m4.
50262 (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT. All uses changed.
50263 Rename files from path-concat.c to filenamecat.c,
50264 and from path-concat.h to filenamecat.h.
50265 * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
50266 "file name" in local variables or comments.
50267 * m4/rename.m4: Likewise.
50269 2005-06-01 Bruno Haible <bruno@clisp.org>
50271 * modules/csharpexec: New file.
50272 * MODULES.html.sh (C#): New section.
50274 2005-06-01 Bruno Haible <bruno@clisp.org>
50276 * m4/csharp.m4: New file, from GNU gettext.
50277 * m4/csharpexec.m4: New file, from GNU gettext.
50279 2005-06-01 Bruno Haible <bruno@clisp.org>
50281 * lib/csharpexec.h: New file, from GNU gettext.
50282 * lib/csharpexec.c: New file, from GNU gettext.
50283 * lib/csharpexec.sh.in: New file, from GNU gettext.
50285 2005-05-31 Derek Price <derek@ximbiot.com>
50286 Paul Eggert <eggert@cs.ucla.edu>
50289 * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50291 2005-05-31 Derek Price <derek@ximbiot.com>
50292 Paul Eggert <eggert@cs.ucla.edu>
50295 * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
50297 2005-05-29 Derek Price <derek@ximbiot.com>
50299 * config/srclist.txt (glob_.h, glob.c): Add these files.
50301 2005-05-29 Derek Price <derek@ximbiot.com>
50303 * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
50304 * modules/glob: New file.
50305 * modules/getlogin_r: Add link to POSIX spec in description.
50307 2005-05-29 Derek Price <derek@ximbiot.com>
50308 Paul Eggert <eggert@cs.ucla.edu>
50310 * m4/glob.m4: New file.
50312 2005-05-29 Derek Price <derek@ximbiot.com>
50313 Paul Eggert <eggert@cs.ucla.edu>
50315 * lib/glob_.h, lib/glob.c: New files.
50317 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50319 * modules/fts (Files): Remove m4/inttypes-pri.m4.
50320 * modules/fts-lgpl (Depends-on): Remove gettext.
50322 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50324 * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
50325 and don't require gt_INTTYPES_PRI.
50327 2005-05-27 Paul Eggert <eggert@cs.ucla.edu>
50329 * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
50331 * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
50332 the configuration hassle isn't worth it.
50333 Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
50334 (LONGEST_MODIFIER, PRIuMAX): Remove.
50336 2005-05-27 Bruno Haible <bruno@clisp.org>
50338 * lib/getlogin_r.h: Remove second include of <stddef.h>.
50340 2005-05-26 Paul Eggert <eggert@cs.ucla.edu>
50342 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
50343 _POSIX_PTHREAD_SEMANTICS for Solaris.
50345 2005-05-25 Derek Price <derek@ximbiot.com>
50347 * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
50349 2005-05-25 Derek Price <derek@ximbiot.com>
50350 Paul Eggert <eggert@cs.ucla.edu>
50352 * modules/getlogin_r, m4/getlogin_r.m4: New files.
50353 * lib/getlogin_r.c, getlogin_r.h: New files.
50355 2005-05-25 Bruno Haible <bruno@clisp.org>
50356 Derek Price <derek@ximbiot.com>
50358 * lib/getlogin_r.h: Simplify API documentation.
50360 2005-05-23 Derek Price <derek@ximbiot.com>
50362 * modules/minmax (Files): Add m4/minmax.m4.
50363 (configure.ac): Add gl_MINMAX.
50365 2005-05-22 Paul Eggert <eggert@cs.ucla.edu>
50367 * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
50368 so that unistd-safer.h (GPL'ed code) need not be included.
50370 2005-05-22 Bruno Haible <bruno@clisp.org>
50372 * m4/minmax.m4: New file.
50373 Based on a patch by Derek Price <derek@ximbiot.com>.
50375 2005-05-22 Bruno Haible <bruno@clisp.org>
50377 * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
50378 (INT64_MIN): Fix definition.
50379 Suggested by Paul Eggert <eggert@cs.ucla.edu>.
50381 * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
50382 NEED_SIGNED_INT_TYPES.
50384 * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
50385 HAVE_SYSTEM_INTTYPES.
50387 2005-05-22 Bruno Haible <bruno@clisp.org>
50389 * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
50390 Also include <sys/param.h> if it defines MIN, MAX.
50391 Based on a patch by Derek Price <derek@ximbiot.com>.
50393 2005-05-21 Jim Meyering <jim@meyering.net>
50395 * modules/fts (Files): Add m4/inttypes-pri.m4.
50396 (Depends-on): Add lstat and remove gettext. Alphabetize.
50398 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50401 * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
50402 (setup_dir, free_dir): New functions.
50403 (enter_dir, leave_dir): Define trivial
50404 alternatives of _LGPL_PACKAGE. Move to fts-cycle.c if !_LGPL_PACKAGE.
50405 (HT_INITIAL_SIZE, ENTER_DIR): Remove. All uses removed.
50406 (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
50407 (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
50408 Move to fts-cycle.c.
50409 (fts_open): Use setup_dir.
50410 (fts_close): Use free_dir.
50411 (fts_read): Have just one copy of the ENTER_DIR code rather than three.
50412 This adds a label and some gotos, but the alternatives were messier.
50413 Check for memory allocation failure when entering a dir.
50414 (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
50415 * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
50416 (FTS): New member fts_cycle, that is a union that contains the
50417 old active_dir_ht and cycle_state. All uses changed to mention
50418 fts_cycle.ht and fts_cycle.state.
50419 * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
50420 fts.c, with the following changes:
50421 (setup_dir, free_dir): New functions.
50422 (enter_dir): Now returns bool. Return true if successful, false
50423 if memory exhausted. All callers changed.
50424 Do not bother partly cleaning up on
50425 memory allocation failure; that is free_dir's job.
50426 However, free ad if hash_insert fails, to avoid memory leak.
50427 (enter_dir, leave_dir): Accommodate change to FTS by inspecting
50428 fts->fts_options to see which union member to use.
50430 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50432 * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
50433 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
50435 2005-05-20 Paul Eggert <eggert@cs.ucla.edu>
50437 * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
50439 2005-05-20 Jim Meyering <jim@meyering.net>
50441 * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
50442 Now a macro, to pacify GCC.
50444 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
50446 * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
50449 2005-05-20 Eric Blake <ebb9@byu.net> (tiny change)
50451 * lib/chown.c (rpl_chown): Return -1 on failure.
50453 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
50455 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
50456 Don't check for stddef.h.
50457 * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
50458 don't use its results.
50459 Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
50460 since we include them unconditionally. Don't require
50461 AM_STDBOOL_H, since stdbool is a prerequisite.
50462 Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
50463 since we assume C89 or better.
50464 Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
50465 as we don't use their results.
50466 Don't check for fchdir, memmove, memset, strrchr, as we use
50467 them unconditionally.
50468 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
50469 GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
50471 2005-05-18 Paul Eggert <eggert@cs.ucla.edu>
50473 * lib/canonicalize.c: Include canonicalize.h first, to test interface.
50474 Include <stddef.h> unconditionally, since we assume C89 now.
50475 All uses of PTR_INT_TYPE replaced by ptrdiff_t.
50476 * lib/fts.c: Include fts_.h first, to check interface.
50477 Do not include intprops.h; no longer needed.
50478 Include cycle-check.h and hash.h, since fts_.h no longer does.
50479 Remove unnecessary casts of closedir to void.
50480 (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
50481 decide whether to decrement nlinks.
50482 * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
50483 (FTS): Use struct hash_table * instead of Hash_table, so that
50484 we no longer need to include hash.h here.
50486 2005-05-18 Jim Meyering <jim@meyering.net>
50488 * modules/dirfd (License): Change to LGPL. Most of the code
50489 is already in the public domain.
50491 2005-05-18 Jim Meyering <jim@meyering.net>
50493 * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
50494 Reported by Yoann Vandoorselaere.
50496 2005-05-17 Jim Meyering <jim@meyering.net>
50498 * m4/fts.m4: New file, from coreutils.
50500 2005-05-17 Jim Meyering <jim@meyering.net>
50502 * lib/fts.c, lib/fts_.h: New files, from coreutils.
50504 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
50506 Sync from coreutils.
50507 * m4/unlinkdir.m4: New file.
50509 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
50511 Sync from coreutils.
50512 * lib/unlinkdir.c, lib/unlinkdir.h: New files.
50513 * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
50514 lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
50515 White space changes only.
50516 * lib/makepath.c (make_path): Port to hosts where leading "//" is
50518 * lib/yesno.c: Include getline.h, not ctype.h.
50519 (yesno): Don't remove leading white space; POSIX doesn't allow it.
50520 Use getline to remove arbitrary restriction on response length.
50522 2005-05-14 Paul Eggert <eggert@cs.ucla.edu>
50524 * config/srclist-update: Spell out "Street" in FSF postal
50525 mail address; this is the style the FSF seems to prefer.
50527 * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
50528 build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
50529 this updates FSF postal mail address.
50531 Sync from coreutils.
50532 * modules/unlinkdir: New file.
50533 * modules/yesno (Depends-on): Add getline.
50534 * MODULES.html.sh (File system functions): Add unlinkdir.
50536 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
50538 * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
50540 Change the initial comment to refer to GPL, not LGPL.
50541 gnulib-tool will change it to LGPL as needed.
50543 * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
50544 lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
50545 lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
50546 lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
50547 lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
50548 lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
50549 lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
50550 lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
50551 lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
50552 lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
50553 lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
50554 lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
50555 lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
50556 lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
50557 lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
50558 lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
50559 lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
50560 lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
50561 lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
50562 lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
50563 lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
50564 lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
50565 lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
50566 lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
50567 lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
50568 lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
50569 lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
50570 lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
50571 lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
50572 lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
50573 lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
50574 lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
50575 lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
50576 lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
50577 lib/getusershell.c, lib/group-member.c, lib/group-member.h,
50578 lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
50579 lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
50580 lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
50581 lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
50582 lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
50583 lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
50584 lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
50585 lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
50586 lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
50587 lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
50588 lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
50589 lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
50590 lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
50591 lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
50592 lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
50593 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
50594 lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
50595 lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
50596 lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
50597 lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
50598 lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
50599 lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
50600 lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
50601 lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
50602 lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
50603 lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
50604 lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
50605 lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
50606 lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
50607 lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
50608 lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
50609 lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
50610 lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
50611 lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
50612 lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
50613 lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
50614 lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
50615 lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
50616 lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
50617 lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
50618 lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
50619 lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
50620 lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
50621 lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
50622 lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
50623 lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
50624 lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
50625 lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
50626 lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
50627 lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
50628 lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
50629 lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
50630 lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
50631 lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
50632 lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
50633 lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
50634 lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
50635 lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
50636 lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
50637 lib/yesno.c, lib/yesno.h:
50638 Update FSF postal mail address.
50640 2005-05-13 Paul Eggert <eggert@cs.ucla.edu>
50642 * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
50643 tests/test-memmem.c, tests/test-stpncpy.c:
50644 Update FSF postal mail address.
50646 2005-05-13 Bruno Haible <bruno@clisp.org>
50648 * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
50649 int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
50650 UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
50651 INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
50652 INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
50653 Add support for 64-bit integers in the MSVC compiler.
50655 2005-05-12 Sergey Poznyakoff <gray@Mirddin.farlep.net>
50657 * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
50659 2005-05-12 Eric Blake <ebb9@byu.net> (tiny change)
50661 * gnulib-tool (func_import): Sort and uniquify recommended includes.
50663 2005-05-11 Paul Eggert <eggert@cs.ucla.edu>
50665 * doc/getdate.texi (General date syntax): Don't say that date
50666 date --iso-8601=ns generates acceptable dates; it doesn't yet.
50667 Problem reported by Nic Ferrier.
50669 2005-05-10 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50671 * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
50672 specified in ai_socktype. Fix invalid ai_protocol
50673 check. ai_protocol is usually set to 0 or depending on
50674 ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP. Checking for
50675 SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid. Set
50676 ai_socktype / ai_protocol in the returned addrinfo structure.
50678 2005-05-10 Simon Josefsson <jas@extundo.com>
50680 * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
50681 Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
50683 2005-05-10 Karl Berry <karl@gnu.org>
50685 * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
50686 (from http://www.gnu.org/licenses).
50687 * doc/COPYING.LIB: also rename to COPYING.LESSER.
50688 * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
50691 2005-05-10 Karl Berry <karl@gnu.org>
50693 * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
50694 (COPYING.DOC): remove.
50696 * config/srclist-update: new FSF address.
50698 2005-05-10 Derek Price <derek@ximbiot.com>
50700 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
50703 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50704 Bruno Haible <bruno@clisp.org>
50706 * modules/inet_ntop: New file.
50707 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50710 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50711 Bruno Haible <bruno@clisp.org>
50713 * m4/inet_ntop.m4: New file.
50715 2005-05-09 Yoann Vandoorselaere <yoann.v@prelude-ids.com>
50716 Bruno Haible <bruno@clisp.org>
50718 * lib/inet_ntop.h: New file.
50719 * lib/inet_ntop.c: New file, from glibc with modifications.
50721 2005-05-09 Paul Eggert <eggert@cs.ucla.edu>
50723 * modules/time_r (License): Change to LGPL.
50724 * modules/extensions (License): Change to LGPL. Actually,
50725 the license is more permissive than that, but currently gnulib-tool
50726 doesn't know how to handle more-permissive licenses.
50728 * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
50729 Problem reported by Dave Love.
50731 2005-05-08 Jim Meyering <jim@meyering.net>
50733 * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
50736 2005-05-06 Paul Eggert <eggert@cs.ucla.edu>
50738 * modules/argmatch (Depends-on): Add stdbool.
50739 * modules/backupfile (Depends-on): Likewise.
50740 * modules/chdir-long (Depends-on): Likewise.
50741 * modules/closeout (Depends-on): Likewise.
50742 * modules/cycle-check (Depends-on): Likewise.
50743 * modules/dirname (Depends-on): Likewise.
50744 * modules/fnmatch (Depends-on): Likewise.
50745 * modules/fsusage (Depends-on): Likewise.
50746 * modules/fwriteerror (Depends-on): Likewise.
50747 * modules/getcwd (Depends-on): Likewise.
50748 * modules/getloadavg (Depends-on): Likewise.
50749 * modules/hard-locale (Depends-on): Likewise.
50750 * modules/makepath (Depends-on): Likewise.
50751 * modules/mountlist (Depends-on): Likewise.
50752 * modules/nanosleep (Depends-on): Likewise.
50753 * modules/posixtm (Depends-on): Likewise.
50754 * modules/quotearg (Depends-on): Likewise.
50755 * modules/readtokens (Depends-on): Likewise.
50756 * modules/readtokens0 (Depends-on): Likewise.
50757 * modules/readutmp (Depends-on): Likewise.
50758 * modules/save-cwd (Depends-on): Likewise.
50759 * modules/strftime (Depends-on): Likewise.
50760 * modules/userspec (Depends-on): Likewise.
50761 * modules/utimecmp (Depends-on): Likewise.
50762 * modules/xgetcwd (Depends-on): Likewise.
50763 * modules/xnanosleep (Depends-on): Likewise.
50764 * modules/xstrtod (Depends-on): Likewise.
50765 * modules/yesno (Depends-on): Likewise.
50767 2005-05-05 Paul Eggert <eggert@cs.ucla.edu>
50769 * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
50772 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
50774 Merge from coreutils. Among other things,
50775 add bulletproofing for cases where stdin, stdout, or stderr are closed.
50776 * lib/fd-safer.c: New file.
50777 * lib/fcntl-safer.h, open-safer.c: Remove.
50778 * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
50779 * lib/dup-safer.c: Include unistd-safer.h first.
50780 Don't include errno.h.
50781 (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
50782 * lib/file-type.h: Don't assume invoker included sys/stat.h first.
50783 * lib/file-type.c: Rely on file-type.h change.
50784 * lib/getloadavg.c: Include unistd-safer.h.
50785 (getloadavg): Use safer open.
50786 * lib/getusershell.c: Include "stdio-safer.h".
50787 (getusershell): Use safer fopen.
50788 * lib/long-options.c (long_options): Use NULL rather than 0.
50789 * lib/modechange.h (mode_free): Remove; all callers changed to invoke
50791 * lib/modechange.c: Likewise.
50792 xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
50793 (MODE_DONE): New constant.
50794 (struct mode_change): Remove 'next' member.
50795 (make_node_op_equals): New function; like the old one of the
50796 same name, except it allocates an array.
50797 (mode_compile, mode_create_from_ref): Use it.
50798 (mode_compile): Allocate result as an array, not a linked list.
50799 Parse octal string ourself, so that we catch mistakes like "+0".
50800 (mode_adjust): Arg is an array, not a linked list.
50801 * lib/modechange.c: Include stat-macros.h, xalloc.h.
50802 (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
50803 (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
50804 (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
50805 Remove. This is now stat-macros.h's job.
50806 (talloc): Remove. All callers replaced by xalloc, so that
50807 our invokers don't have to worry about reporting memory failures.
50808 (make_node_op_equals): Remove.
50809 (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50811 (struct mode_change): Moved here from modechange.h.
50812 (mode_append_entry): Remove.
50813 (mode_compile): Remove MASKED_OPS arg, since it encouraged
50814 apps to have incorrect behavior. Use simpler algorithm for head
50815 and tail. Don't futz with umask; that's now the job of mode_adjust.
50816 Detect more invalid usages rather than having somewhat-random behavior.
50817 Don't insert an "a=" action, as that leads to incorrect behavior.
50818 (mode_compile, mode_create_from_ref): Return NULL on error instead
50819 of an enum, since now there's only one way to have an error. All
50821 (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
50822 at the correct time. Simplify calculation of "+u" and its ilk.
50823 Don't mishandle "+X".
50824 (mode_free): Remove "register" and localize decls.
50825 * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
50826 (struct mode_change): Move to modechange.c; callers don't
50827 need to see this stuff.
50828 (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
50829 (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
50830 (mode_change, mode_adjust): Reflect the new signatures noted above.
50831 * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
50832 that might redefine system include files.
50833 (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
50834 (my_usleep): Use NULL rather than (void *) 0.
50835 (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
50836 Use siginterrupt to specify that system calls should be interrupted.
50837 (rpl_nanosleep): Move initialization of suspended closer to call of
50839 * lib/readutmp.h (read_utmp): New arg OPTIONS. All uses changed.
50840 * lib/readutmp.c: Likewise. Include signal.h, stdbool.h.
50841 (desirable_utmp_entry): New function.
50842 (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
50843 using x2nrealloc, to simplify logic.
50844 (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
50845 size calculation. Do not assume utmp file is a regular file.
50846 * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
50847 (READ_UTMP_CHECK_PIDS): New constant.
50848 * lib/save-cwd.c: Include unistd-safer.h.
50849 (save_cwd): Use fd_safer.
50850 * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
50851 [!_LIBC] Include "stat-macros.h" instead.
50852 * lib/unistd-safer.h (fd_safer): New decl.
50854 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
50856 * modules/getloadavg (Depends-on): Add unistd-safer.
50857 * modules/getusershell (Depends-on): Add stdio-safer.
50858 * modules/lstat (Depends-on): Remove xalloc.
50859 * modules/mkstemp (Depends-on): Add stat-macros.
50860 * modules/modechange (Depends-on): Remove xstrtol.
50861 Add stat-macros, xalloc.
50862 * modules/save-cwd (Depends-on): Add unistd-safer.
50863 * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
50864 * modules/unistd-safer (Files): Add lib/fd-safer.c
50865 (Makefile.am): Remove lib_SOURCES.
50867 * MODULES.html.sh (Enhancements for POSIX:2001 functions):
50868 Remove fcntl-safer; unistd-safer supersedes it.
50870 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
50872 * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
50874 * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
50875 (gl_PREREQ_CHOWN): Remove.
50876 * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
50877 it. Don't require AC_HEADER_STAT.
50878 (gl_PREREQ_LSTAT): Remove.
50879 * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
50880 Don't require AC_HEADER_STAT.
50881 * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
50882 (gl_PREREQ_RMDIR): Remove.
50883 * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
50884 mention stat-macros.h or AC_HEADER_STAT, since we'll make
50885 the stat-macros module a prerequisite.
50886 * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
50887 * m4/filemode.m4 (gl_FILEMODE): Likewise.
50888 * m4/makepath.m4 (gl_MAKEPATH): Likewise.
50889 * m4/modechange.m4 (gl_MODECHANGE): Likewise.
50890 * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
50892 * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
50893 fetish_FUNC_RMDIR_NOTEMPTY. All uses changed. Use gl_ for
50895 * m4/fcntl-safer.m4: Remove.
50896 * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
50897 * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
50898 Invoke gl_PREREQ_FD_SAFER.
50899 (gl_PREREQ_FD_SAFER): New macro.
50900 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
50901 * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
50902 Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
50903 Remove duplicate call to AC_LIBOBJ(readutmp).
50904 (gl_PREREQ_READUTMP): Remove. All uses inlined.
50906 * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
50907 MAP_ANON. Problem reported by Moriyoshi Koizumi to bug-cvs.
50909 2005-05-01 Paul Eggert <eggert@cs.ucla.edu>
50911 * MODULES.html.sh (Misc): Add byteswap.
50913 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
50915 * modules/getcwd (Depends-on): Add extensions.
50916 * modules/openat (Depends-on): Likewise.
50918 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
50920 * modules/byteswap: New file.
50922 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
50924 * m4/byteswap.m4: New file.
50926 2005-05-01 Oskar Liljeblad <oskar@osk.mine.nu>
50928 * lib/byteswap_.h: New file.
50930 2005-04-25 Karl Berry <karl@gnu.org>
50932 * m4/gettext.m4: Update from GNU gettext 0.14.4.
50934 2005-04-25 Albert Chin <china@thewrittenword.com>
50936 * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
50939 2005-04-21 Oskar Liljeblad <oskar@osk.mine.nu>
50941 * gnulib-tool (Options): Add -s for --symlink/--symbolic.
50942 (func_ln_if_changed) Remove forcibly for no error message
50943 in case file does not exist.
50945 2005-04-19 Simon Josefsson <jas@extundo.com>
50947 * gnulib-tool (Options): Make --symlink mean --symbolic.
50949 2005-04-18 Oskar Liljeblad <oskar@osk.mine.nu>
50951 * doc/gnulib.texi (Initial import): Fix. Mention --aux-dir.
50953 2005-04-16 Simon Josefsson <jas@extundo.com>
50955 * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
50957 2005-04-15 Simon Josefsson <jas@extundo.com>
50959 * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
50961 2005-04-15 Simon Josefsson <jas@extundo.com>
50963 * gnulib-tool: Rename --symlink to --symbolic.
50965 2005-04-15 Oskar Liljeblad <oskar@osk.mine.nu>
50967 * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
50968 symbolic links to files instead of copying/moving. Add --aux-dir,
50969 specifying directory relative --dir where auxiliary build tools
50972 2005-04-14 Bruno Haible <bruno@clisp.org>
50974 * modules/allocsa (License): Change to LGPL.
50975 Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50977 2005-04-13 Paul Eggert <eggert@cs.ucla.edu>
50979 * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
50980 that "UTC +1 second" continues to work. Problem reported
50981 by Dmitry V. Levin.
50982 (relunit_snumber): New rule.
50985 2005-04-12 Paul Eggert <eggert@cs.ucla.edu>
50987 * lib/getdate.y (universal_time_zone_table): New constant.
50988 (time_zone_table): Remove GMT, UT, UTC entries; they're now in
50989 universal_time_zone_table.
50990 (lookup_zone): Prefer universal_time_zone_table to
50991 local_time_zone_table, so that "GMT" time stamps are allowed in
50992 London during the summer. Problem reported by Ian Abbott.
50994 2005-04-12 Jim Meyering <jim@meyering.net>
50996 * lib/human.c (humblock): Set *options even when returning due to
50997 xstrtoumax conversion failure. Thanks to a used-uninitialized
50998 warning from gcc-4.
51000 2005-04-09 Jim Meyering <jim@meyering.net>
51002 * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
51003 -Wuninitialized: initialize tm0.tm_year.
51005 2005-04-04 Paul Eggert <eggert@cs.ucla.edu>
51007 * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
51008 count, since there's no maximum. All uses changed.
51009 Add member dsts_seen.
51010 (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
51012 (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
51013 Use pc_rels_seen to decide whther a date is absolute.
51015 * lib/getdate.y (number): Don't overwrite year.
51016 (get_date): Initialize pc.year.digits to 0, not 4, to enable above
51019 2005-04-02 Simon Josefsson <jas@extundo.com>
51021 * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
51022 patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
51024 2005-03-28 Eric Blake <ebb9@byu.net> (tiny change)
51026 * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
51027 where no absolute path name can be longer than PATH_MAX.
51029 2005-03-27 Jim Meyering <jim@meyering.net>
51031 * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
51033 2005-03-26 Paul Eggert <eggert@cs.ucla.edu>
51035 * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
51036 "one's complement" -> "ones' complement" in comment, as per Knuth.
51037 "value of type" -> "type or expression" in comment.
51038 * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
51040 2005-03-26 Jim Meyering <jim@meyering.net>
51043 * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
51044 Correct typos: s/or/of/.
51046 2005-03-26 Jim Meyering <jim@meyering.net>
51048 * modules/check-include-files: Move to ../ and rename to...
51049 * check-module: ...this.
51051 2005-03-25 Jim Meyering <jim@meyering.net>
51053 * modules/xvasprintf (Files): Add xalloc.h.
51055 2005-03-23 Paul Eggert <eggert@cs.ucla.edu>
51057 * modules/gettext (Files): config/config.rpath ->
51058 build-aux/config.rpath
51059 * modules/iconv (Files): Likewise.
51060 Problem reported by Oskar Liljeblad.
51062 2005-03-23 Jim Meyering <jim@meyering.net>
51064 * modules/check-include-files: New script to check for
51065 missing dependencies, multiple includes, etc.
51067 * modules/c-strtold (Depends-on): Add xalloc.
51068 * modules/c-strtod (Depends-on): Add xalloc.
51069 * modules/hash (Depends-on): Add xalloc.
51070 (Files): Remove lib/xalloc.h.
51072 * modules/gethrxtime (Files): Add lib/gethrxtime.h.
51073 * modules/userspec (Files): Add lib/inttostr.h.
51075 2005-03-23 Jim Meyering <jim@meyering.net>
51077 * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
51079 2005-03-22 Jim Meyering <jim@meyering.net>
51081 * modules/stat-macros: New module.
51082 * modules/canonicalize, modules/euidaccess, modules/file-type,
51083 * modules/filemode, modules/lchown, modules/makepath,
51084 * modules/rmdir, modules/stat: Depend on new stat-macros module
51085 rather than listing lib/stat-macros.h manually.
51086 Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
51088 2005-03-22 Jim Meyering <jim@meyering.net>
51090 * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
51092 2005-03-22 Bruno Haible <bruno@clisp.org>
51094 * config/srclist.txt: Replace target directory 'config' with
51096 * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
51097 * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
51100 2005-03-21 Paul Eggert <eggert@cs.ucla.edu>
51102 * modules/chdir-long (Depends-on): Add mempcpy.
51104 * modules/acl, modules/backupfile, modules/c-strtod,
51105 modules/c-strtold, modules/canon-host, modules/canonicalize,
51106 modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
51107 modules/exclude, modules/exitfail, modules/file-type,
51108 modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
51109 modules/getdate, modules/getline, modules/getpagesize,
51110 modules/getpass, modules/getugroups, modules/group-member,
51111 modules/hard-locale, modules/hash, modules/human, modules/idcache,
51112 modules/inttostr, modules/long-options, modules/makepath,
51113 modules/md5, modules/memcasecmp, modules/memcoll,
51114 modules/modechange, modules/mountlist, modules/path-concat,
51115 modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
51116 modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
51117 modules/safe-read, modules/safe-write, modules/same, modules/savedir,
51118 modules/settime, modules/sha1, modules/sig2str, modules/strdup,
51119 modules/strftime, modules/strndup, modules/strverscmp,
51120 modules/timespec, modules/unlocked-io, modules/userspec,
51121 modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
51123 Remove lib_SOURCES line from Makefile.am section, as this is now
51124 done automatically by the corresponding Autoconf macro.
51126 2005-03-21 Jim Meyering <jim@meyering.net>
51128 Changes imported from coreutils.
51130 * lib/cycle-check.c: Don't include xalloc.h.
51132 * lib/path-concat.c: Don't include assert.h.
51133 (path_concat): Remove assertion that would have triggered
51134 for ABASE starting with more than one slash.
51135 Reported by Andreas Schwab.
51137 * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
51138 properly when ABASE is an absolute file name.
51139 Correct the description of this function.
51140 Include <assert.h>.
51141 Add an assertion and a test driver.
51142 This fixes a bug introduced on 2004-07-02.
51143 Andreas Schwab reported the resulting failure of cp --parents:
51144 http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
51146 2005-03-21 Jim Meyering <jim@meyering.net>
51148 * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
51149 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
51151 2005-03-21 Jim Meyering <jim@meyering.net>
51152 and Paul Eggert <eggert@cs.ucla.edu>
51154 * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
51155 m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
51156 m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
51157 m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
51158 m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
51159 m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
51160 m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
51161 m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
51162 m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
51163 m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
51164 m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
51165 m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
51166 m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
51167 m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
51168 m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
51169 m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
51170 Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
51173 2005-03-18 Paul Eggert <eggert@cs.ucla.edu>
51175 * lib/strftime.c (my_strftime): If the underlying strftime returns 0
51176 (which shouldn't happen), generate nothing instead of returning 0
51177 immediately, so that nstrftime (NULL, ...) doesn't return 0.
51179 2005-03-16 Bruno Haible <bruno@clisp.org>
51181 * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
51182 HAVE_LONGLONG_64BIT.
51184 2005-03-16 Bruno Haible <bruno@clisp.org>
51186 * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
51187 HAVE_LONGLONG_64BIT.
51189 2005-03-16 Bruno Haible <bruno@clisp.org>
51191 * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
51192 HAVE_LONGLONG_64BIT.
51194 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51196 * lib/strftime.c (my_strftime): Prepend space to format so that we can
51197 reliably distinguish strftime failure from empty output on POSIX
51200 2005-03-15 Paul Eggert <eggert@cs.ucla.edu>
51202 * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
51203 (iconv_string): Don't guess a size-zero buffer, as that might cause
51204 buffer overrun. Instead, avoid multiplying by MB_LEN_MAX if the
51205 result would be 'too large', where 'too large' is (heuristically)
51206 the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
51207 overflow concerns. This will prevent some unwanted malloc failures
51208 when the inputs are very large.
51210 2005-03-15 Karl Berry <karl@gnu.org>
51212 * config/srclist.txt (config.rpath): from gettext.
51213 * config/config.rpath: update.
51215 2005-03-15 Bruno Haible <bruno@clisp.org>
51217 * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
51220 * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
51223 * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
51226 2005-03-14 Simon Josefsson <jas@extundo.com>
51228 * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
51231 2005-03-14 Paul Eggert <eggert@cs.ucla.edu>
51233 * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
51234 TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
51236 * lib/strtol.c: Likewise.
51238 2005-03-14 Jim Meyering <jim@meyering.net>
51240 * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
51241 && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
51242 to be nonzero so that we (and caller) can detect the difference
51243 between a valid zero-length expansion and an error return, even
51244 when the underlying strftime fails before writing anything into
51247 2005-03-14 Bruno Haible <bruno@clisp.org>
51249 * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
51250 Update from GNU gettext 0.14.3.
51252 2005-03-10 Jim Meyering <jim@meyering.net>
51254 * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
51256 2005-03-10 Jim Meyering <jim@meyering.net>
51258 * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
51259 so that this module works on systems without fchdir.
51261 2005-03-09 Paul Eggert <eggert@cs.ucla.edu>
51263 Factor int-properties macros into a single file, except for
51264 glibc-related files.
51265 * lib/intprops.h: New file.
51266 * lib/getloadavg.c: Include it instead of limits.h.
51267 (INT_STRLEN_BOUND): Remove.
51268 * lib/human.c: Include intprops.h.
51269 (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
51270 * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
51272 * lib/inttostr.h: Include intprops.h instead of limits.h.
51273 (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
51274 * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
51275 for consistency with intprops.h.
51276 (time_t_is_integer, twos_complement_arithmetic): Use them.
51277 * lib/sig2str.h: Include <signal.h>, intprops.h.
51278 (INT_STRLEN_BOUND): Remove.
51279 * lib/strftime.c (TYPE_SIGNED): Remove.
51280 (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
51281 * lib/strtol.c: Adjust comments to match intprops.h.
51282 * lib/userspec.c: Include intprops.h.
51283 (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
51284 * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
51285 * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
51286 instead of rolling our own expressions.
51287 * lib/xstrtol.c: Include xstrtol.h first, to test interface.
51289 * lib/strftime.c: Include <stdbool.h>. Use bool where appropriate,
51291 (my_strftime): Do not mishandle years close to INT_MAX, by doing
51292 the right thing even if adding 1900 would overflow. Similarly
51293 for tm_mon + 1 and tm_yday + 1.
51294 Make %Y always equivalent to %C%y, and similarly for %G and %g.
51295 (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
51296 (DO_SIGNED_NUMBER): New macro.
51297 (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
51299 2005-03-07 Bruno Haible <bruno@clisp.org>
51301 * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
51303 2005-03-07 Bruno Haible <bruno@clisp.org>
51305 * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
51307 2005-03-04 Derek R. Price <derek@ximbiot.com>
51309 * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
51310 (func_import): Only replace files via --import when they have actually
51313 2005-03-03 Derek R. Price <derek@ximbiot.com>
51315 * m4/mmap-anon.m4: New file.
51316 * m4/pagealign_alloc.m4: New file.
51318 2005-03-03 Derek R. Price <derek@ximbiot.com>
51319 Bruno Haible <bruno@clisp.org>
51321 * modules/pagealign_alloc: New file.
51322 * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
51324 2005-03-03 Derek R. Price <derek@ximbiot.com>
51325 Bruno Haible <bruno@clisp.org>
51327 * lib/pagealign_alloc.h: New file.
51328 * lib/pagealign_alloc.c: New file.
51330 2005-03-03 Bruno Haible <bruno@clisp.org>
51332 * m4/inttypes.m4, isc-posix.m4, once-only.m4:
51333 Use an all-permissive copyright notice, recommended by RMS.
51335 2005-03-02 Bruno Haible <bruno@clisp.org>
51337 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
51338 of AIX, the replacement has to be done only after <string.h> is
51339 included, therefore not in config.h. stpncpy.h does the replacement,
51340 and stpncpy.c uses it.
51342 2005-03-02 Bruno Haible <bruno@clisp.org>
51344 * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
51347 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51349 Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
51350 The workaround isn't strictly needed for POSIX conformance, and
51351 it's too much of a pain to configure and maintain. We'll ask
51352 people to fix their kernels instead.
51353 * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
51354 (NANOSLEEP_BUG_WORKAROUND): Remove.
51355 (xnanosleep): Remove the workaround.
51357 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51359 * modules/gettime (Makefile.am): Remove lib_SOURCES line.
51360 Reported by Derek Price.
51361 (Include): Add "timespec.h".
51363 * modules/xnanosleep (Depends-on): Remove gethrxtime.
51365 2005-03-01 Paul Eggert <eggert@cs.ucla.edu>
51367 * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
51368 to detect nanosleep bug.
51370 2005-03-01 Bruno Haible <bruno@clisp.org>
51372 * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
51374 2005-02-26 Paul Eggert <eggert@cs.ucla.edu>
51376 * modules/gethrxtime: New file.
51377 * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
51378 (Depends-on): Add gethrxtime.
51379 (configure.ac): Add gl_XNANOSLEEP.
51380 (Makefile.am): Remove lib_SOURCES line.
51382 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
51384 * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
51385 * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
51387 2005-02-25 Paul Eggert <eggert@cs.ucla.edu>
51389 * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
51390 * lib/timespec.h (gettime): Return void, since it always
51391 succeeds now. All uses changed.
51392 * lib/gettime.c (gettime) Likewise.
51393 [HAVE_NANOTIME]: Prefer nanotime.
51394 Assume gettimeofday succeeds, as POSIX requires.
51395 Assime time () succeeds, since other code already does.
51396 * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
51397 (timespec_subtract): Remove.
51398 (NANOSLEEP_BUG_WORKAROUND): New constant.
51399 (xnanosleep): Use gethrxtime rather than gettime; this simplifies
51400 things considerably. Use it only on GNU/Linux hosts, since the
51401 workaround shouldn't be needed elsewhere.
51403 2005-02-24 Bruno Haible <bruno@clisp.org>
51405 * modules/gettext (Files): Add m4/glibc2.m4.
51407 2005-02-24 Bruno Haible <bruno@clisp.org>
51409 * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
51410 * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
51412 Update from GNU gettext 0.14.2.
51413 * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
51415 2005-02-24 Bruno Haible <bruno@clisp.org>
51417 * lib/localcharset.c: Update from GNU gettext 0.14.2.
51418 * lib/config.charset: Update from GNU gettext 0.14.2.
51420 2005-02-24 Bruno Haible <bruno@clisp.org>
51422 * lib/gettext.h: Update from GNU gettext 0.14.2.
51424 2005-02-23 Simon Josefsson <jas@extundo.com>
51426 * m4/iconvme.m4: New file.
51428 2005-02-23 Jim Meyering <jim@meyering.net>
51430 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
51432 Thanks to Bruno Haible for catching it.
51434 2005-02-22 Simon Josefsson <jas@extundo.com>
51436 * modules/iconvme: New file.
51438 * MODULES.html.sh: Add iconvme.
51440 2005-02-22 Simon Josefsson <jas@extundo.com>
51442 * lib/iconvme.h, lib/iconvme.c: New files, from libc.
51444 2005-02-22 Simon Josefsson <jas@extundo.com>
51446 * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
51448 2005-02-22 Jim Meyering <jim@meyering.net>
51450 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
51453 2005-02-20 Neil Conway <neilc@samurai.com>
51455 * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
51456 returned by OSX/Darwin if the specified buffer is not large
51457 enough for the hostname.
51459 2005-02-03 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51461 * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
51462 pass it to _help, otherwise the latter coredumps trying to
51463 dereference state.root_argp.
51465 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51467 * modules/chdir-long (Depends-on): Add memrchr.
51468 * modules/memrchr (Files): Add lib/memrchr.h.
51469 (Include): "memrchr.h".
51471 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51473 * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
51475 2005-02-03 Paul Eggert <eggert@cs.ucla.edu>
51477 * lib/memrchr.h: New file.
51478 * lib/chdir-long.c: Include it.
51479 * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
51480 Don't bother including stddef.h.
51482 2005-02-01 Paul Eggert <eggert@cs.ucla.edu>
51484 * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
51486 Include <sys/types.h>, for dev_t.
51487 (ME_DUMMY, ME_REMOTE): Move from here....
51488 * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
51489 (ME_DUMMY): Count "subfs" as a dummy. Problem reported by
51491 Include mountlist.h first, to test the interface.
51493 2005-01-29 Bruno Haible <bruno@clisp.org>
51495 * lib/progname.c (program_name): Initialize.
51496 Needed when linking statically on MacOS X.
51498 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
51500 Sync from coreutils.
51501 * modules/getloadavg (Files): Remove m4/getloadavg.m4.
51502 (Depends-on): Add c-strtod.
51503 (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
51505 2005-01-28 Paul Eggert <eggert@cs.ucla.edu>
51507 Sync from coreutils.
51508 * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
51510 Remove files that are specific to coreutils.
51511 * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
51513 2005-01-28 Bruno Haible <bruno@clisp.org>
51515 * modules/javacomp: New file.
51516 * MODULES.html.sh (Java): Add javacomp.
51518 2005-01-28 Bruno Haible <bruno@clisp.org>
51520 * m4/javacomp.m4: New file, from GNU gettext.
51522 2005-01-28 Bruno Haible <bruno@clisp.org>
51524 * lib/javacomp.sh.in: New file, from GNU gettext.
51525 * lib/javacomp.h: New file, from GNU gettext.
51526 * lib/javacomp.c: New file, from GNU gettext.
51528 2005-01-26 Simon Josefsson <jas@extundo.com>
51530 * lib/gai_strerror.c: Use GPL in header.
51532 2005-01-26 Bruno Haible <bruno@clisp.org>
51534 * modules/javaexec: New file.
51535 * MODULES.html.sh (Java): Add javaexec.
51537 2005-01-26 Bruno Haible <bruno@clisp.org>
51539 * m4/javaexec.m4: New file, from GNU gettext.
51541 2005-01-26 Bruno Haible <bruno@clisp.org>
51543 * lib/javaexec.sh.in: New file, from GNU gettext.
51544 * lib/javaexec.h: New file, from GNU gettext.
51545 * lib/javaexec.c: New file, from GNU gettext.
51547 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51549 * modules/lchown (Depends-on): Remove lchown.h
51551 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51553 * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
51554 must be defined if the header file was not found, in order
51555 to provide a replacement. Reported by Todd Vierling <tv@duh.org>
51557 2005-01-24 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51559 * lib/argp-help.c (hol_entry_help): Avoid using non-constant
51560 initializers for struct pentry_state.
51561 (__argp_error): Check return value of __asprintf
51562 (__argp_failure): Translate error message
51564 * lib/argp-parse.c: Removed braces around the expansion of N_()
51566 2005-01-23 Paul Eggert <eggert@cs.ucla.edu>
51568 * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
51569 backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
51570 c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
51571 clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
51572 dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
51573 exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
51574 file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
51575 free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
51576 getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
51577 getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
51578 getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
51579 gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
51580 group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
51581 idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
51582 link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
51583 makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
51584 memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
51585 memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
51586 modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
51587 path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
51588 posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
51589 readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
51590 restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
51591 savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
51592 sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
51593 stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
51594 strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
51595 strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
51596 strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
51597 time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
51598 uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
51599 unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
51600 utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
51601 xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
51602 xstrtol.m4, xstrtoumax.m4, yesno.m4:
51603 Use an all-permissive copyright notice, recommended by RMS.
51605 2005-01-21 Paul Eggert <eggert@cs.ucla.edu>
51607 * modules/chdir-long (Depends-on): Remove mempcpy.
51609 2005-01-21 Jim Meyering <jim@meyering.net>
51611 * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
51612 same value as for Solaris 9.
51614 * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
51615 component length. This included changing the parameter to be
51616 of type `char *' rather than `char const *'.
51617 * lib/chdir-long.h (chdir_long): Update prototype.
51619 * lib/openat.c (fdopendir, fstatat): New functions.
51620 * lib/openat.h: Include headers required for use of DIR and struct
51622 [AT_SYMLINK_NOFOLLOW]: Define.
51623 (fdopendir, fstatat): Add prototypes.
51625 2005-01-21 Bruno Haible <bruno@clisp.org>
51627 * modules/classpath: New file.
51628 * MODULES.html.sh (Java): Add classpath.
51630 2005-01-21 Bruno Haible <bruno@clisp.org>
51632 * lib/classpath.h: New file, from GNU gettext.
51633 * lib/classpath.c: New file, from GNU gettext.
51635 2005-01-20 Simon Josefsson <jas@extundo.com>
51637 * modules/version-etc-fsf: New file.
51639 2005-01-20 Simon Josefsson <jas@extundo.com>
51641 * lib/version-etc-fsf.c: New file, with version_etc_copyright.
51642 * lib/version-etc.c: Remove version_etc_copyright.
51643 * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
51644 prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
51646 2005-01-20 Simon Josefsson <jas@extundo.com>
51648 * lib/base64.h (isbase64): Add.
51650 * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
51651 using a unsigned prototype, don't inline.
51652 (base64_decode): Use it.
51654 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
51656 * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
51659 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
51661 * lib/save-cwd.c (save_cwd): Remove code to support the case
51662 where fchdir is missing or flaky.
51664 2005-01-20 Paul Eggert <eggert@cs.ucla.edu>
51666 * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
51668 2005-01-19 Paul Eggert <eggert@cs.ucla.edu>
51670 * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
51671 AC_LIBSOURCES now does this.
51672 * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
51673 with new ullong_max module.
51675 2005-01-19 Bruno Haible <bruno@clisp.org>
51677 * modules/sh-quote: New file.
51678 * MODULES.html.sh (Executing programs): Add sh-quote.
51680 2005-01-19 Bruno Haible <bruno@clisp.org>
51682 * lib/sh-quote.h: New file, from GNU gettext.
51683 * lib/sh-quote.c: New file, from GNU gettext.
51685 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
51687 Merge from coreutils.
51688 * m4/ullong_max.m4: New file.
51689 * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
51690 (gl_MACROS): Assume localeconv exists.
51692 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
51694 Merge changes from coreutils, as described below in several
51695 changelogs dated today.
51697 * lib/save-cwd.c: Include "save-cwd.h" before other include files.
51698 (O_DIRECTORY): Remove; not needed here, since "." must be
51699 a directory. All uses removed.
51700 (save_cwd): Use __sgi || __sun, not sun || __sun. __sun is
51701 universal on Suns, and we also need to test for IRIX.
51702 Revamp code to use 'if' rather than '#if'.
51703 Avoid unnecessary comparison of cwd->desc to 0.
51705 * lib/utimens.c (futimens): Robustify the previous patch, by checking
51706 for known valid error numbers rather than observed invalid ones.
51708 2005-01-18 Paul Eggert <eggert@cs.ucla.edu>
51710 * modules/ullong_max: New file.
51712 * modules/chdir-long, modules/openat: New files.
51713 * modules/save-cwd (Depends-on): Depend on chdir-long.
51714 (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
51716 2005-01-18 Jim Meyering <jim@meyering.net>
51718 Merge from coreutils.
51719 * m4/chdir-long.m4, m4/openat.m4: New files.
51720 * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
51721 save-cwd.h. Add AC_LIBOBJ for save-cwd.
51722 * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
51723 is sane and DOES follow symlinks. Besides, testing 20 different
51724 systems found no broken chown implementations.
51725 Prompted by a change in rsync's copy of this macro.
51726 * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
51728 * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
51730 * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
51731 (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
51732 NULL-means-set-to-current-time semantics.
51733 Remove temporary file immediately, rather than waiting
51734 for configure's at-exit trap code to do it.
51736 2005-01-18 Jim Meyering <jim@meyering.net>
51738 * lib/version-etc.c (version_etc_copyright): Update copyright date.
51740 * lib/utimens.c (futimens): Account for the fact that futimes
51741 can also fail with errno == ENOSYS or errno == ENOENT.
51742 Patch from Dmitry V. Levin.
51744 Change the name of the robust chdir function from chdir to chdir_long.
51745 * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
51746 (restore_cwd): Use chdir_long, not chdir.
51747 * lib/chdir-long.c: Renamed from chdir.c.
51748 * lib/chdir-long.h: Renamed from chdir.h.
51749 [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
51752 2005-01-18 Bruno Haible <bruno@clisp.org>
51754 * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
51755 * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
51756 * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
51757 * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
51758 * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
51759 * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
51760 * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
51761 * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
51762 * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
51763 * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
51764 * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
51765 * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
51766 * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
51767 * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
51768 Use an all-permissive copyright notice, recommended by RMS.
51770 2005-01-18 Bob Proulx <bob@proulx.com>
51772 * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
51773 simplify offsetof() macro construct to avoid compile failure with
51774 native HP-UX 11.0 ANSI C compiler.
51776 2005-01-17 Bruno Haible <bruno@clisp.org>
51778 * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
51779 redundant because stpncpy.m4 takes care of it.
51781 2005-01-17 Bruno Haible <bruno@clisp.org>
51783 * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
51785 2005-01-17 Bruno Haible <bruno@clisp.org>
51787 * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
51790 2005-01-17 Bruno Haible <bruno@clisp.org>
51792 * lib/fwriteerror.h (fwriteerror): Change specification to include
51794 * lib/fwriteerror.c: Include <stdbool.h>.
51795 (fwriteerror): At the end, close the file stream. Record whether
51796 stdout was already closed.
51798 2005-01-17 Bruno Haible <bruno@clisp.org>
51800 * lib/execute.c (environ): Declare if needed.
51801 * lib/pipe.c (environ): Likewise.
51802 Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
51804 2005-01-11 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51806 * modules/argp: Depend on vsnprintf
51808 2005-01-10 Jim Meyering <jim@meyering.net>
51810 * modules/closeout (Depends-on): Add atexit.
51812 2005-01-06 Bruno Haible <bruno@clisp.org>
51814 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
51816 2005-01-04 Paul Eggert <eggert@cs.ucla.edu>
51818 * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
51819 definitions to be after all include files, to avoid collisions.
51820 Problem reported by Bob Proulx.
51822 2005-01-04 Jim Meyering <jim@meyering.net>
51824 Changes imported from coreutils.
51825 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
51826 as the mkstemp template, use a temporary directory and an
51827 8.3-friendly template to avoid trouble on systems like DJGPP.
51828 Reported by Juan M. Guerrero via Stepan Kasal.
51829 * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
51830 close. Remove the temporary directory right away, rather than waiting
51831 for configure's at-exit trap code to do it.
51832 Suggestion from Stepan Kasal.
51834 2005-01-01 Simon Josefsson <jas@extundo.com>
51836 * gnulib-tool: Print #include directives when --import'ing.
51838 2004-12-28 Simon Josefsson <jas@extundo.com>
51840 * tests/test-base64.c: Include required header files. Remove
51843 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
51845 * modules/error (Depends-on): Remove gettext.
51847 2004-12-28 Paul Eggert <eggert@cs.ucla.edu>
51849 * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
51850 not needed. This removes a dependency on the gettext module.
51851 [defined _LIBC]: Do not include <libintl.h>; not needed.
51853 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
51855 * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
51856 (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
51858 2004-12-24 Paul Eggert <eggert@cs.ucla.edu>
51860 * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
51863 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
51865 * modules/getdate (Depends-on): Remove alloca-opt.
51867 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
51869 * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
51871 2004-12-23 Paul Eggert <eggert@cs.ucla.edu>
51873 * lib/argp-parse.c: Include <stddef.h>.
51874 (alignof, alignto): New macros.
51875 (parser_init): Don't assume that void * is aligned sufficiently
51878 * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
51879 need to extend the stack.
51880 (YYINITDEPTH): New macro, so that the initial stack isn't overly
51883 2004-12-22 Sergey Poznyakoff <gray@Mirddin.farlep.net>
51885 * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
51887 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
51889 * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
51890 (2004-10-24) change. Apparently this was a false alarm.
51892 * modules/getdate: Depend on alloca-opt, not alloca.
51894 2004-12-19 Paul Eggert <eggert@cs.ucla.edu>
51896 * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
51897 Remove now-obsolete comment about AIX.
51898 * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
51899 (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
51900 (YYMAXDEPTH): New macro.
51902 2004-12-18 Simon Josefsson <jas@extundo.com>
51904 * modules/alloca: Depend on alloca-opt, instead of duplicating it.
51906 2004-12-18 Bruno Haible <bruno@clisp.org>
51908 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
51910 2004-12-18 Bruno Haible <bruno@clisp.org>
51912 * lib/fatal-signal.c (fatal_signals): Make non-const.
51913 (init_fatal_signals): New function.
51914 (uninstall_handlers, install_handlers): Ignore signals that were set to
51916 (at_fatal_signal): Call init_fatal_signals.
51917 (init_fatal_signal_set): Likewise. Ignore signals that were set to
51919 Reported by Paul Eggert.
51921 2004-12-18 Bruno Haible <bruno@clisp.org>
51923 * doc/alloca.texi: New file.
51924 * doc/alloca-opt.texi: New file.
51926 2004-12-17 Jim Meyering <jim@meyering.net>
51928 * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
51929 Otherwise, install-sh could exit with improper exit status when
51930 exiting via a trapped interrupt. Thanks to a report from Bob Proulx.
51932 2004-12-16 Simon Josefsson <jas@extundo.com>
51934 * tests/test-base64.c: Add license.
51936 2004-12-15 Stepan Kasal <address@hidden>
51938 * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
51940 2004-12-12 Paul Eggert <eggert@cs.ucla.edu>
51942 * modules/getcwd (Files): Add m4/d-ino.m4.
51943 Suggested by Mark D. Baushke.
51945 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
51947 * lib/getdate.y (textint): New member "negative".
51948 (time_zone_hhmm): New function.
51949 Expect 14 shift-reduce conflicts, not 13.
51950 (o_colon_minutes): New rule.
51951 (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
51952 (yylex): Set the "negative" member of signed numbers.
51954 2004-12-08 Paul Eggert <eggert@cs.ucla.edu>
51956 * doc/getdate.texi (Time of day items, Time zone items):
51957 Describe new formats +00:00, UTC+00:00.
51959 2004-12-07 Paul Eggert <eggert@cs.ucla.edu>
51961 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
51962 spurious "-l"s. Problem reported by Stepan Kasal.
51964 2004-12-06 Paul Eggert <eggert@cs.ucla.edu>
51966 * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
51967 in Autoconf 2.59. Problem reported by Mark D. Baushke.
51969 2004-12-04 Simon Josefsson <jas@extundo.com>
51971 * modules/getaddrinfo (License): Add LGPL, reported by Yoann
51972 Vandoorselaere <yoann@prelude-ids.org>.
51974 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
51976 Changes imported from coreutils.
51977 * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
51979 * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
51981 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
51983 Changes imported from coreutils.
51984 * lib/hard-locale.c: Assume <locale.h> exists.
51985 Include "strdup.h".
51986 (GLIBC_VERSION): New macro.
51987 (hard_locale): Assume setlocale exists.
51988 Rewrite to avoid #ifdef.
51989 Use strdup rather than malloc + strcpy.
51990 * lib/human.c: Assume <locale.h> exists.
51991 (human_readable): Assume localeconv exists.
51993 2004-12-04 Paul Eggert <eggert@cs.ucla.edu>
51995 * modules/hard-locale (Depends-on): Add strdup.
51997 2004-12-01 Jakub Jelinek <jakub@redhat.com>
51999 * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
52000 convert T2, not T. (Imported from libc.)
52002 2004-11-30 Simon Josefsson <jas@extundo.com>
52004 * modules/restrict (License): Change to LGPL.
52006 2004-11-30 Simon Josefsson <jas@extundo.com>
52008 * m4/restrict.m4: Add copyright and copying conditions.
52010 2004-11-30 Simon Josefsson <jas@extundo.com>
52012 * m4/base64.m4: New file.
52014 2004-11-30 Simon Josefsson <jas@extundo.com>
52016 * MODULES.html.sh (Extra functions based on ANSI C 89): Add
52019 * tests/test-base64.c: New file.
52021 * modules/base64: New file.
52023 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52025 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
52026 Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
52028 * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
52030 2004-11-30 Paul Eggert <eggert@cs.ucla.edu>
52032 * lib/getcwd.c (is_ENAMETOOLONG): New macro.
52033 (__getcwd.c): Don't restore errno; glibc doesn't.
52034 [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
52035 first, falling back to our code only if its results look suspicious.
52036 Ensure that the resulting buffer is only as large as necessary.
52038 * lib/readutmp.c: Include readutmp.h first.
52039 Include <errno.h>, since readutmp.h no longer does that.
52040 * lib/readutmp.h: Don't include <errno.h>,
52041 <sys/param.h>, <time.h>; not needed to establish interface.
52042 (errno): Remove decl.
52043 (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
52044 (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
52045 UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
52047 2004-11-28 Simon Josefsson <jas@extundo.com>
52049 * lib/base64.h, base64.c: New file.
52051 2004-11-27 Paul Eggert <eggert@cs.ucla.edu>
52053 * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
52055 2004-11-26 Paul Eggert <eggert@cs.ucla.edu>
52057 * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
52058 (Depends-on): Remove pathmax, same. Add mempcpy.
52059 (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
52060 (Makefile.am): Append getcwd.h to lib_SOURCES.
52061 (Include): Add getcwd.h.
52062 (Maintainer): Change from Jim Meyering to "all, glibc",
52063 since getdate now uses intended-for-glibc code.
52064 * modules/xgetcwd (Files): Remove m4/getcwd.m4.
52065 (Depends-on): Depend on getcwd. Do not depend on pathmax.
52067 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52069 Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
52070 HP's ANSI C compiler.
52071 * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
52072 Declaring int functions causes warnings on some modern systems and
52073 shouldn't be needed to compile on ancient ones.
52074 * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
52077 * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
52078 with the following changes.
52079 (__set_errno): Parenthesize properly.
52080 Include <stdbool.h>.
52081 (MIN, MAX, MATCHING_INO): New macros.
52082 (__getcwd): Define with prototype, not K&R form.
52083 Use heuristics to allocate default buffer on stack if possible.
52084 If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
52085 behavior, and to avoid the PATH_MAX limit when computing
52087 Use MATCHING_INO to compare inode number to file.
52088 Check for arithmetic overflow in size calculations.
52089 Fix bug in reallocation of dot array that caused getcwd to fail
52090 on directories nested deeper than 75.
52091 Be more careful about saving errno on error.
52092 Do not use realloc; use only free+malloc, as this is a bit
52093 more flexible and avoids a needless copy operation.
52094 Do not inspect st_dev and st_ino for symbolic links; POSIX
52095 doesn't specify the latter.
52096 Check for closedir errors.
52097 Avoid needless casts.
52098 Use "#ifdef weak_alias" around weak_alias, to be like other
52100 The following changes to getcwd.c have effect only when used in
52101 gnulib; they have no effect inside glibc proper.
52102 (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
52103 as alloca isn't used.
52104 (alloca, __alloca): Likewise.
52105 [!_LIBC]: Include "getcwd.h", "mempcpy.h".
52106 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
52107 unconditionally, as gnulib assumes C89 or better.
52108 Do not include <sys/param.h>.
52109 (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
52110 no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
52112 (NULL) [!defined NULL]: Remove; we assume C89 or better.
52113 Include <dirent.h> in a way that is compatible with modern Autoconf.
52114 (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
52115 New macros, if not already defined.
52116 Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
52117 Use "_LIBC", not "defined _LIBC", for consistency.
52118 (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
52120 (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
52121 (GETCWD_RETURN_TYPE): Remove. All uses replaced by char *.
52122 * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
52123 credit only to Jim Meyering and adjust the copyright dates.
52124 Do not include <limits.h>, <stdio.h>, <sys/types.h>,
52125 <stdlib.h>, <unistd.h>, "pathmax.h".
52126 Instead, include "xgetcwd.h" (first) and "getcwd.h".
52127 (INITIAL_BUFFER_SIZE): Remove.
52128 (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
52130 2004-11-25 Paul Eggert <eggert@cs.ucla.edu>
52132 * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
52133 GL_FUNC_GETCWD_PATH_MAX for consistency. All uses changed.
52134 Use the _ONCE methods, for efficiency.
52135 Check for fcntl.h. In test program, include <errno.h>
52136 and <fcntl.h> if available. Remove old K&R cruft from
52137 test program. Check for common errors in GNU/Linux,
52138 OpenBSD, and Solaris. Just set gl_cv_func_getcwd_path_max;
52139 don't do AC_LIBOBJ, as that's getcwd.m4's job.
52140 * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
52141 AC_FUNC_GETCWD_NULL. All used changed. Change cache variable
52143 (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros. Revamp to
52144 accommodate new getcwd.c.
52145 * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
52146 * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
52147 * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
52148 that's all we need now.
52150 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52152 * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
52153 argp-parse.c depends on getopt internals, that means we should
52154 always use our getopt, to be on the safe side.
52155 * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
52156 order not to spoil the result of an eventual previous invocation
52157 of gl_GETOPT_SUBSTITUTE.
52159 2004-11-23 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52161 * lib/getopt_.h: Re-addition of __getopt_argv_const caused
52162 redefinition warnings. To avoid them, include the defines
52163 in `#if !defined __need_getopt ... #endif'. The only place
52164 where __getopt_argv_const is used is in definitions
52165 of getopt_long and getopt_long_only below, which are as well
52166 protected by `#ifndef __need_getopt'.
52167 [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
52168 __need_getopt after including <stdio.h> and <unistd.h> These
52169 headers might have defined it.
52171 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52173 * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
52175 2004-11-23 Paul Eggert <eggert@cs.ucla.edu>
52177 * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
52178 (futimens): New function, which uses futimes if available.
52179 (futimens, utimens): Support timespec==NULL, with same semantics
52180 as utime and utimens.
52181 * lib/utimens.h (futimens): New decl.
52183 2004-11-23 Jim Meyering <jim@meyering.net>
52185 * lib/getopt_.h: Remove trailing blanks.
52187 2004-11-23 Jim Meyering <jim@meyering.net>
52189 * lib/__fpending.c: Add comment.
52191 2004-11-22 Paul Eggert <eggert@cs.ucla.edu>
52193 * modules/canonicalize (Depends-on): Add xreadlink.
52194 Problem reported by James Youngman.
52196 2004-11-20 Paul Eggert <eggert@cs.ucla.edu>
52198 * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
52200 (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
52201 optopt): Use them instead of invoking ## directly; otherwise, the
52202 symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
52204 2004-11-19 Bruno Haible <bruno@clisp.org>
52206 * lib/strtok_r.c: Move comments from here...
52207 * lib/strtok_r.h: ... to here.
52209 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52211 * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
52212 implementations that mishandle size_t overflow.
52214 2004-11-17 Paul Eggert <eggert@cs.ucla.edu>
52216 * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
52217 might fail. Problem reported by Yoann Vandoorselaere.
52218 * lib/calloc.c (rpl_calloc): Defend against buggy calloc
52219 implementations that mishandle size_t overflow.
52221 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52223 * modules/canon-host (Depends-on): Add strdup.
52225 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52227 * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
52229 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52231 * lib/canon-host.c: Include "strdup.h".
52232 (canon_host): Use getaddrinfo if available, so that IPv6 works.
52233 Use strdup instead of malloc/strcpy to duplicate strings.
52235 * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
52236 (human_space_before_unit): New constant.
52237 * lib/human.c (human_readable): Support it.
52239 * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
52240 (xgetcwd): Set errno correctly when failing.
52241 Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
52242 the failure is actually due to a PATH_MAX problem.
52244 Further getopt changes to make it more likely that glibc will
52245 buy the changes back.
52246 * lib/getopt.c (POSIXLY_CORRECT): New constant.
52247 (getopt): Use it, so to preserve glibc semantic
52248 * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
52249 when compiling for libc.
52250 * lib/getopt_.h (__getopt_argv_const): Bring it back.
52251 (getopt_long, getopt_long_only): Use it.
52253 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52254 _getopt_internal): New arg POSIXLY_CORRECT. All callers changed.
52255 (getopt): Argv is now char * const *, as per standard.
52256 (_getopt_internal_r, _getopt_internal): Argv is now char **,
52257 not char *__getopt_argv_const *.
52258 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52259 _getopt_long_only_r): Likewise.
52260 * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
52261 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52262 _getopt_long_r, _getopt_long_only_r): Likewise.
52263 * lib/getopt_.h (__getopt_argv_const): Remove.
52264 (getopt): Argv is now char * const *, as per standard.
52266 * lib/getdate.y (tORDINAL): New token.
52267 (day, relunit): Allow it for relative times.
52268 (relative_time_table): Use tORDINAL for ordinals.
52270 2004-11-16 Paul Eggert <eggert@cs.ucla.edu>
52272 * doc/getdate.texi (General date syntax): "next" is 1, not 2.
52273 Document that "second" isn't allowed as an ordinal number.
52275 2004-11-16 Jim Meyering <jim@meyering.net>
52277 * modules/closeout (Depends-on): Add fpending.
52279 2004-11-15 Jim Meyering <jim@meyering.net>
52281 * lib/closeout.c: Include "__fpending.h" once again.
52282 Include <stdbool.h>.
52283 (close_stdout): Don't fail just because stdout was closed initially,
52284 since some programs don't write to stdout in the normal course of
52285 operation (other than --version and --help), and we don't want this
52286 function to make e.g. `touch file >&-' fail.
52287 But do fail if it was closed and someone has tried to write to it.
52288 E.g., `printf foo >&-' must fail.
52290 2004-11-13 Jim Meyering <jim@meyering.net>
52292 * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
52294 2004-11-12 Simon Josefsson <jas@extundo.com>
52296 * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
52297 small doc fix is still pending.
52299 2004-11-11 Simon Josefsson <jas@extundo.com>
52301 * modules/strtok_r: New file.
52303 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52306 2004-11-11 Simon Josefsson <jas@extundo.com>
52308 * m4/strtok_r.m4: New file.
52310 * m4/getopt.m4: Replace opterr.
52312 2004-11-11 Simon Josefsson <jas@extundo.com>
52314 * lib/strtok_r.h, strtok_r.c: New file.
52316 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
52318 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
52319 of replacing opterr, getopt, etc. This should handle the
52320 powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
52322 2004-11-11 Paul Eggert <eggert@cs.ucla.edu>
52324 * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
52325 we can stop lying to compilers about the constness of argv when we
52326 are compiled outside glibc.
52327 (getopt, getopt_long, getopt_long_only): Use it.
52328 * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
52329 _getopt_internal, getopt): Likewise.
52330 * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
52331 _getopt_long_only_r): Likewise.
52332 * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
52333 _getopt_long_r, _getopt_long_only_r): Likewise.
52335 * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
52336 Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
52337 Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
52338 the other external symbols.
52339 (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
52340 declaration, since the above renaming now works around collisions.
52342 2004-11-11 Jim Meyering <jim@meyering.net>
52344 * lib/linebreak.c: Remove trailing blanks.
52345 * lib/alloca_.h: Likewise.
52346 * lib/acosl.c: Likewise.
52347 * lib/euidaccess.c: Likewise.
52348 * lib/allocsa.h: Likewise.
52350 2004-11-10 Simon Josefsson <jas@extundo.com>
52352 * m4/getaddrinfo.m4: New file.
52354 2004-11-10 Simon Josefsson <jas@extundo.com>
52356 * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
52358 2004-11-10 Simon Josefsson <jas@extundo.com>
52360 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52363 * modules/getaddrinfo: New file.
52365 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
52367 * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
52369 2004-11-10 Paul Eggert <eggert@cs.ucla.edu>
52371 * lib/mktime.c (SHR): New macro, which is a portable
52372 substitute for >> that should work even on Crays.
52373 (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
52374 Problem reported by Mark D. Baushke in
52375 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
52376 * lib/getdate.y (SHR): Likewise.
52378 * lib/strftime.c (SHR): Likewise.
52380 * lib/quotearg.c (struct quoting_options): Use unsigned int for
52381 quote_these_too, so that right shifts are well defined. All uses
52384 2004-11-10 Jim Meyering <jim@meyering.net>
52386 Ensure that no close failure goes unreported.
52387 * lib/closeout.c (close_stdout): Always close stdout. I.e., don't
52388 return early when it seems there's nothing to flush.
52389 Don't include __fpending.h.
52391 2004-11-10 Jim Meyering <jim@meyering.net>
52393 * modules/closeout (Depends-on): Remove fpending.
52395 2004-11-10 Jim Meyering <jim@meyering.net>
52397 * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
52399 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
52401 * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove. Move its body to
52403 (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
52404 and AC_REQUIRE when possible, to avoid duplicate checks.
52405 Check for <wchar.h>.
52407 2004-11-09 Paul Eggert <eggert@cs.ucla.edu>
52409 * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
52411 2004-11-09 Bruno Haible <bruno@clisp.org>
52413 * m4/sockpfaf.m4: New file.
52415 2004-11-05 Bruno Haible <bruno@clisp.org>
52417 * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
52418 Reported by Mark D. Baushke <mdb@cvshome.org>.
52420 2004-11-04 Bruno Haible <bruno@clisp.org>
52422 2004-09-11 Bruno Haible <bruno@clisp.org>
52423 * allocsa.valgrind: New file.
52424 2004-02-06 Bruno Haible <bruno@clisp.org>
52425 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
52426 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
52427 Reported by Christopher Seip <chris.seip@hp.com>.
52429 2004-11-04 Bruno Haible <bruno@clisp.org>
52431 * modules/allocsa (Files): Add lib/allocsa.valgrind.
52432 (Makefile.am): Distribute it.
52434 2004-11-03 Paul Eggert <eggert@cs.ucla.edu>
52436 * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
52437 with errno == ERANGE if the buffer is too small.
52438 Problem reported by Mark D. Baushke.
52440 2004-11-03 Albert Chin <china@thewrittenword.com>
52441 Paul Eggert <eggert@cs.ucla.edu>
52443 * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
52444 equivalent, substitute $ac_type for equivalent type rather than
52445 blindly using uint32_t *always* which won't work if uint32_t is not
52446 available. Define _UINT32_T to work around typedef of uint32_t if
52447 <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
52450 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52452 * m4/jm-macros.m4: Sync from coreutils.
52453 (gl_MACROS): Check for mbrlen, for pathchk.
52454 (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
52456 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52458 * lib/xreadlink.c (MAXSIZE): New macro.
52459 (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer
52460 size does not exceed MAXSIZE. Avoid cast.
52461 As suggested by Mark D. Baushke in
52462 <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
52463 if readlink fails with buffer size just under MAXSIZE, try again
52466 2004-11-02 Paul Eggert <eggert@cs.ucla.edu>
52468 * config/srclist.txt: Add mktime.c; glibc bought all our changes.
52470 2004-11-02 Derek R. Price <derek@ximbiot.com>
52471 and Paul Eggert <eggert@cs.ucla.edu>
52473 * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
52474 (get_date): Overparenthesize to avoid GCC warning.
52476 2004-11-02 Bruno Haible <bruno@clisp.org>
52478 * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
52481 2004-11-02 Bruno Haible <bruno@clisp.org>
52483 * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
52484 function returns void.
52486 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
52488 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
52489 fflush_unlocked, flockfile, funlockfile, funlockfile,
52490 fputs_unlocked, putc_unlocked.
52492 2004-11-01 Paul Eggert <eggert@cs.ucla.edu>
52494 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52495 (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
52498 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
52500 * modules/getdate (Files): Add doc/getdate.texi.
52501 (Depends-on): Add setenv, xalloc.
52503 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
52505 * lib/getdate.y: Add support for TZ="foo" within a date string.
52506 Fix some bugs near time_t boundaries. Reject dates with
52507 out-of-range components, e.g., "Sept 31".
52508 Include <stdlib.h>, "setenv.h", "xalloc.h".
52509 (ISDIGIT_LOCALE): Remove; unused.
52510 Note that the TZ and time functions used here are not reentrant.
52511 (mktime_ok, get_tz): New functions.
52512 (TZBUFSIZE): New constant.
52513 (get_date): Parse leading TZ="foo". Reject out-of-range components;.
52514 This requires that we sometimes generate our own TZ="XXX..." setting.
52516 2004-10-29 Paul Eggert <eggert@cs.ucla.edu>
52518 * doc/getdate.texi: New file, from coreutils with modifications for
52519 the new TZ parsing.
52521 2004-10-27 Derek R. Price <derek@ximbiot.com>
52523 * lib/mktime.c (not_equal_tm): Remove redundant check.
52525 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
52527 * modules/regex (lib_SOURCES): Add regex.c.
52528 Reported by James Youngman in
52529 <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
52531 2004-10-24 Paul Eggert <eggert@cs.ucla.edu>
52533 * lib/getdate.y: Use Bison 1.875 features, and some minor
52534 code cleanups. This change does not affect semantics.
52535 Don't include <stdlib.h>; no longer needed.
52536 Don't include unlocked-io.h; only the "#if TEST" code uses
52537 stdio, and performance isn't crucial there.
52538 (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
52539 Bison 1.875 features as described below.
52540 All uses of "PC." replaced by "pc->".
52541 (YYSTYPE): Add a forward declaration.
52542 (yylex, yyerror): Use full prototypes in forward decls.
52543 Use "%pure-parser" rather than obsolescent "%pure_parser".
52544 Use %parse-param and %lex-param instead of obsolescent
52545 YYPARSE_PARAM and YYLEX_PARAM.
52546 (meridian_table, month_and_day_table, time_units_table,
52547 relative_time_table, time_zone_table, military_table,
52548 lookup_zone, lookup_word, get_date):
52549 Use NULL instead of 0 where appropriate.
52550 (to_hour): Avoid abort (), to avoid a dependency on
52552 (yyerror, yylex): Now accepts parser_control * arg.
52553 (main) [TEST]: Use '\0' rather than 0 for char.
52555 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
52557 * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
52559 2004-10-22 Paul Eggert <eggert@cs.ucla.edu>
52561 * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
52562 It's now the caller's responsibility to handle the case where
52563 !HAVE_GETPAGESIZE && !defined getpagesize.
52565 * lib/mktime.c (leapyear): Arg is long int, not int.
52567 2004-10-18 Paul Eggert <eggert@cs.ucla.edu>
52569 * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
52571 2004-10-17 Paul Eggert <eggert@cs.ucla.edu>
52573 * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
52574 missing. Problem reported by James Youngman.
52576 2004-10-16 Simon Josefsson <jas@extundo.com>
52578 * gnulib-tool: Fix comments. Fix parse problem.
52579 (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
52581 2004-10-15 Paul Eggert <eggert@cs.ucla.edu>
52583 * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
52584 implementation of getopt_long. Problem reported by Alexander Taler in:
52585 http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
52587 2004-10-15 Bruno Haible <bruno@clisp.org>
52589 * gnulib-tool: Untabify. Initialize supplied_libname.
52590 (func_usage): More homogenous output.
52591 (func_modules_transitive_closure, func_modules_to_filelist,
52592 func_emit_lib_Makefile_am): New functions.
52593 (func_import): New function, extracted from big case statement. Use
52594 func_get_license, func_modules_transitive_closure,
52595 func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
52596 opt_lgpl. Don't use test -a, as it's not portable.
52597 (func_create_testdir): Use func_modules_transitive_closure,
52598 func_modules_to_filelist, func_emit_lib_Makefile_am.
52600 2004-10-15 Bruno Haible <bruno@clisp.org>
52602 * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
52604 2004-10-15 Bruno Haible <bruno@clisp.org>
52606 * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
52607 the portions belonging to each module.
52608 Suggested by Derek Robert Price <derek@ximbiot.com>.
52610 2004-10-12 Simon Josefsson <jas@extundo.com>
52612 * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
52613 (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
52616 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
52618 * modules/vsnprintf: New file.
52620 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
52622 * m4/vsnprintf.m4: New file.
52624 2004-10-11 Yoann Vandoorselaere <yoann@prelude-ids.org>
52626 * lib/vsnprintf.h: New file.
52627 * lib/vsnprintf.c: New file.
52629 2004-10-11 Bruno Haible <bruno@clisp.org>
52631 * MODULES.html.sh (Support for systems lacking ISO C 99): Add
52634 2004-10-10 Paul Eggert <eggert@cs.ucla.edu>
52636 * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
52638 2004-10-07 Bruno Haible <bruno@clisp.org>
52640 * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
52641 fits into the provided buffer.
52643 2004-10-06 Paul Eggert <eggert@cs.ucla.edu>
52645 * lib/diacrit.c, diacrit.h: Add GPL notice.
52647 * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
52649 * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
52650 * lib/logl.c (logl): Keep the code as similar to glibc as possible.
52651 This avoids a potential constant-folding bug.
52653 2004-10-05 Bruno Haible <bruno@clisp.org>
52655 * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
52656 for the declaration of strsep.
52658 2004-10-05 Bruno Haible <bruno@clisp.org>
52660 * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
52662 2004-10-04 Simon Josefsson <jas@extundo.com>
52664 * modules/memmem: New file.
52665 * tests/test-memmem.c: New file.
52666 * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
52668 2004-10-04 Simon Josefsson <jas@extundo.com>
52670 * m4/memmem.m4: New file.
52672 2004-10-04 Simon Josefsson <jas@extundo.com>
52674 * lib/memmem.h: New file.
52675 * lib/memmem.c: New file, taken from glibc.
52677 2004-10-04 Simon Josefsson <jas@extundo.com>
52679 * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
52680 '#ifdef USE_UNLOCKED_IO'.
52682 2004-10-04 Simon Josefsson <jas@extundo.com>
52684 * config/srclist.txt: Add memmem from glibc.
52686 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
52688 * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
52690 * modules/argmatch, modules/argp, modules/closeout, modules/error,
52691 modules/exclude, modules/getdate, modules/getline,
52692 modules/getndelim2, modules/getpass, modules/getpass-gnu,
52693 modules/getusershell, modules/linebuffer, modules/md5,
52694 modules/mountlist, modules/posixtm, modules/readtokens,
52695 modules/readutmp, modules/regex, modules/sha1,
52696 modules/version-etc, modules/yesno:
52697 Remove dependency on unlocked-io.
52699 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
52701 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove. All uses removed.
52703 * m4/unlocked-io.m4: Add copyright notice.
52704 (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
52706 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
52708 * lib/xalloc.h (xmemdup): Renamed from xclone. All uses changed.
52709 * lib/xmalloc.c (xmemdup): Likewise.
52710 * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
52711 XFREE): Remove these long-obsolescent macros.
52712 * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
52713 * lib/xstrdup.c: Remove.
52715 * lib/regex.c (re_comp): Cast gettext return value to char *,
52716 Problem reported by Martin Neitzel via Mark D. Baushke.
52718 2004-10-04 Paul Eggert <eggert@cs.ucla.edu>
52720 * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
52721 getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
52722 md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
52723 regex.c, sha1.c, version-etc.c, yesno.c:
52724 Include "unlocked-io.h" only if USE_UNLOCKED_IO.
52725 * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
52726 the includer's responsibility.
52728 Sync from coreutils.
52730 * lib/modechange.c (mode_compile): Don't decrement a pointer that
52731 points to the start of a string, as the C Standard says the
52732 resulting behavior is undefined.
52734 * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
52735 simple -> simple_backups, numbered_existing ->
52736 numbered_existing_backups, numbered -> numbered_backups
52737 to avoid shadowing problems. All uses changed.
52738 * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
52739 * lib/backupfile.c (check_extension, numbered_backup):
52740 Rename locals to avoid shadowing 'basename'.
52741 * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
52744 * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
52745 * lib/.cvsignore: Add getopt.h.
52747 2004-10-04 Bruno Haible <bruno@clisp.org>
52749 * modules/README: New file.
52750 * gnulib-tool (func_all_modules, func_verify_module): modules/README is
52753 2004-10-02 Jim Meyering <jim@meyering.net>
52755 * lib/dirfd.h, getpagesize.h: Add copyright notice.
52757 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
52759 * modules/strsep: New file.
52761 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
52763 * m4/strsep.m4: New file.
52765 2004-10-01 Yoann Vandoorselaere <yoann@prelude-ids.org>
52767 * lib/strsep.h: New file.
52768 * lib/strsep.c: New file.
52770 2004-10-01 Simon Josefsson <jas@extundo.com>
52772 * lib/snprintf.c (snprintf): Handle size==0.
52774 2004-10-01 Simon Josefsson <jas@extundo.com>
52775 Bruno Haible <bruno@clisp.org>
52777 * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
52778 (snprintf): Declare 'args'.
52780 2004-10-01 Paul Eggert <eggert@cs.ucla.edu>
52782 * lib/snprintf.c: Remove comments as to why each header is needed.
52784 2004-10-01 Bruno Haible <bruno@clisp.org>
52786 * MODULES.html.sh: Add strsep.
52788 2004-09-30 Simon Josefsson <jas@extundo.com>
52790 * modules/snprintf: New file.
52792 2004-09-30 Simon Josefsson <jas@extundo.com>
52794 * m4/snprintf.m4: New file.
52796 2004-09-30 Simon Josefsson <jas@extundo.com>
52798 * lib/snprintf.h, lib/snprintf.c: New files.
52800 2004-09-30 Sergey Poznyakoff <gray@Mirddin.farlep.net>
52802 * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
52803 (hol_entry_help): Never translate an empty string.
52804 Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
52805 * lib/argp.h (OPTION_NO_TRANS): New option.
52807 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
52809 * modules/argp (Maintainer): Replace Simon Josefsson
52810 by Sergey Poznyakoff.
52812 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
52814 * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
52815 changes merged back into glibc.
52817 2004-09-30 Paul Eggert <eggert@cs.ucla.edu>
52819 * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
52821 2004-09-29 Oskar Liljeblad <oskar@osk.mine.nu>
52823 * lib/xvasprintf.c: Include xalloc.h.
52824 (xvasprintf): Use xalloc_die, not xmalloc_die.
52826 2004-09-29 Bruno Haible <bruno@clisp.org>
52828 * modules/alloca-opt: New file, derived from modules/alloca.
52829 * modules/allocsa: Depend on alloca-opt instead of alloca.
52830 * modules/setenv: Likewise.
52831 * modules/vasnprintf: Likewise.
52832 * MODULES.html.sh: Add alloca-opt.
52834 2004-09-28 Simon Josefsson <jas@extundo.com>
52836 * gnulib-tool: New parameter --lgpl, to asseert that modules are
52837 LGPL, and to replace license template from GPL to LGPL.
52839 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
52841 * modules/dummy: Change license to LGPL.
52843 2004-09-28 Paul Eggert <eggert@cs.ucla.edu>
52845 * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
52847 2004-09-24 Simon Josefsson <jas@extundo.com>
52849 * modules/minmax (License): Change from GPL to LGPL.
52851 2004-09-23 Simon Josefsson <jas@extundo.com>
52853 * gnulib-tool (--import): Typo.
52855 2004-09-23 Simon Josefsson <jas@extundo.com>
52857 * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
52859 2004-09-22 Bruno Haible <bruno@clisp.org>
52861 * modules/*: Add 'License' field.
52862 * gnulib-tool: Accept --extract-license option.
52863 (func_get_license): New function.
52865 2004-09-21 Bruno Haible <bruno@clisp.org>
52867 * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
52868 Reported by Simon Josefsson.
52870 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
52872 * modules/inttostr (Files): Add m4/longlong.m4, since it uses
52873 gl_AC_TYPE_LONG_LONG.
52875 2004-09-20 Paul Eggert <eggert@cs.ucla.edu>
52877 * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
52879 2004-09-18 Simon Josefsson <jas@extundo.com>
52880 and Paul Eggert <eggert@cs.ucla.edu>
52882 * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
52883 calls with autoreconf. Define GL_LIB.
52885 2004-09-14 Karl Berry <karl@gnu.org>
52887 * config/srclist.txt: unsync setenv.c, sigh.
52889 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
52891 * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
52892 Problem reported by Bruno Haible in:
52893 http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
52895 2004-09-13 Paul Eggert <eggert@cs.ucla.edu>
52897 * config/srclist.txt: Comment out argp-pvh.c.
52899 2004-09-11 Paul Eggert <eggert@cs.ucla.edu>
52901 * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
52902 in case some system header has #define'd it. Problem reported by
52903 Soeren D. Schulze in
52904 <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
52906 2004-09-09 Karl Berry <karl@gnu.org>
52908 * regex.[ch]: delete from the root. These were supposed to be
52909 synced with emacs cvs, but this has not happened for about
52910 a year, and anyway nothing else uses emacs regex.[ch].
52911 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
52912 lib/regex[.ch] is untouched.
52914 2004-09-09 Bruno Haible <bruno@clisp.org>
52916 * modules/vasnprintf (Files): Add m4/eoverflow.m4.
52918 2004-09-09 Bruno Haible <bruno@clisp.org>
52920 * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
52922 * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
52924 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
52926 * modules/xvasprintf: New file.
52927 * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
52929 2004-09-08 Oskar Liljeblad <oskar@osk.mine.nu>
52931 * lib/xvasprintf.h: New file.
52932 * lib/xvasprintf.c: New file.
52933 * lib/xasprintf.c: New file.
52935 2004-09-08 Bruno Haible <bruno@clisp.org>
52937 * m4/stdint.m4: New file, taken from GNU clisp with modifications.
52939 2004-09-08 Bruno Haible <bruno@clisp.org>
52941 * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
52942 length is > INT_MAX.
52943 * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
52946 2004-09-08 Bruno Haible <bruno@clisp.org>
52948 * lib/stdint_.h: New file, taken from GNU clisp.
52950 2004-09-08 Bruno Haible <bruno@clisp.org>
52951 Oskar Liljeblad <oskar@osk.mine.nu>
52953 * modules/stdint: New file.
52954 * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
52956 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
52958 Import from coreutils.
52959 * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
52960 strings on unbounded length. alloca's performance benefits aren't
52961 that important here.
52962 (V_STRDUP): Remove.
52963 (parse_with_separator): New function, with most of the internals
52964 of the old parse_user_spec. Allow user to omit both user and group,
52965 for compatibility with FreeBSD.
52966 Clone only the user name, not the entire spec.
52967 Do not set *uid, *gid unless entirely successful.
52968 Avoid memory leak in some failing cases.
52969 Fix regression for USER.GROUP reported by Dmitry V. Levin in
52970 <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
52971 (parse_user_spec): Rewrite to use parse_with_separator.
52973 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
52975 * modules/userspec: Don't depend on alloca.
52977 2004-08-19 Paul Eggert <eggert@cs.ucla.edu>
52979 * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
52981 2004-08-17 Paul Eggert <eggert@cs.ucla.edu>
52983 * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
52984 readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
52985 utimecmp, utimens, xnanosleep. Rename sha to sha1.
52987 2004-08-16 Simon Josefsson <jas@extundo.com>
52989 * gnulib-tool: Use sed instead of autoconf --trace, inspired by
52990 libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
52991 Add --dry-run for --import.
52992 Let user provided command line parameters override configure.ac
52995 2004-08-12 Simon Josefsson <jas@extundo.com>
52997 * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
52998 as discussed with Paul Eggert in threads rooted at
52999 <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
53001 <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
53002 Before, the test was empty, and relied on ELIDE_CODE in source
53004 (gl_PREREQ_GETOPT): New macro.
53005 (gl_GETOPT): Use them.
53007 2004-08-12 Simon Josefsson <jas@extundo.com>
53009 * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
53010 * lib/getopt_.h: Renamed from getopt.h.
53012 2004-08-12 Simon Josefsson <jas@extundo.com>
53014 * gnulib-tool: Add --source-base, --m4-base, --libtool options.
53015 Change default library name from libfoo to libgnu.
53016 Now, if you have a configure.ac that says:
53019 gl_MODULES(error getopt etcetera)
53021 you can import all you need by running:
53022 ../gnulib/gnulib-tool --import
53024 * modules/getopt (Files): Rename getopt.h to getopt_.h.
53025 (Makefile.am): Rewrite, use logic from argz.
53026 (Include): Use <getopt.h> instead of "getopt.h".
53028 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53030 * modules/argp (Files): Add m4/unlocked-io.m4.
53031 (Depends-on): Add extensions.
53033 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53035 * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
53036 uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
53037 Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
53038 Check for program_invocation_name, program_invocation_short_name,
53039 flockfile, funlockfile, features.h, _getopt_long_only_r.
53041 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53043 * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
53044 its complicated substitute.
53045 * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
53046 and program_invocation_name.
53047 (__argp_basename) [!_LIBC]: Remove; the only use was
53048 replaced by its body.
53049 (__argp_short_program_name): Change condition from
53050 !defined __argp_short_program_name to
53051 ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
53052 to match argp-namefrob.h.
53053 (__argp_failure): Don't assume strerror_r returns char *.
53054 * lib/argp-parse.c (N_): Define unconditionally.
53055 (argp_default_options): Fill out initializers with 0 to avoid
53058 2004-08-12 Paul Eggert <eggert@cs.ucla.edu>
53060 * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
53063 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53065 Merge from coreutils.
53067 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
53069 * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
53070 gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
53072 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53074 Merge from coreutils.
53076 * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
53077 wmemchr or wmemcpy. Problem reported by Robert Dahlem
53078 for Reliant Unix 5.43.
53080 * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
53081 (union fooround): Use uintmax_t, not long int.
53082 The rest is a merge from libc:
53083 [defined _LIBC]: Include <shlib-compat.h>.
53084 (_obstack) [defined _LIBC]: Remove after 2.3.4.
53086 * lib/settime.c (settime): Recode to avoid warning with
53089 * lib/strverscmp.c: Convert to UTF-8.
53091 2004-08-11 Paul Eggert <eggert@cs.ucla.edu>
53093 * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
53096 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53098 * modules/xalloc-die: New file.
53099 * modules/xalloc: Remove dependencies on error, gettext, exitfail.
53101 * modules/md5 (Files): Add m4/uint32_t.m4.
53102 * modules/sha1: Renamed from modules/sha.
53104 Rename lib/sha.h to lib/sha1.h.
53105 Rename lib/sha.c to lib/sha1.c.
53106 Rename m4/sha.m4 to m4/sha1.m4.
53107 (lib_SOURCES): Likewise.
53108 (configure.ac): Rename gl_SHA to gl_SHA1.
53109 (Include): sha.h -> sha1.h.
53111 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53113 * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
53114 * m4/sha1.m4: Renamed from sha.m4.
53115 (gl_SHA1): Renamed from gl_SHA. All uses changed.
53117 2004-08-09 Paul Eggert <eggert@cs.ucla.edu>
53119 * lib/obstack.h (obstack_empty_p):
53120 Don't assume that chunk->contents is suitably aligned.
53121 * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
53122 Likewise. Problem reported by Benno in
53123 <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
53125 * lib/chown.c (rpl_chown): Work even if the file is writeable but not
53126 readable. This could be improved further but it'd take some work.
53128 2004-08-08 Simon Josefsson <jas@extundo.com>
53130 * modules/xgethostname (Depends-on): Remove exit and error (not
53133 * modules/getpass-gnu: Add getpass.h.
53134 (Depends-on): Add stdbool.
53135 * modules/getpass: Add getpass.h.
53137 2004-08-08 Simon Josefsson <jas@extundo.com>
53139 * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
53140 Check getpass declaration.
53142 2004-08-08 Simon Josefsson <jas@extundo.com>
53144 * lib/xgethostname.c: Don't include error.h (not used).
53146 * lib/getpass.h: Add.
53147 * lib/getpass.c: Include getpass.h first.
53149 2004-08-08 Paul Eggert <eggert@cs.ucla.edu>
53151 * lib/xalloc-die.c: New file.
53152 * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
53154 * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
53155 Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
53157 (_, N_, xalloc_die): Move to xalloc-die.c.
53158 * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
53159 so that we needn't mess with xalloc_msg_memory_exhausted.
53161 * lib/sha1.h: Renamed from sha.h.
53162 (SHA1_H): Renamed from _SHA_H.
53163 (sha1_ctx): Renamed from sha_ctx.
53164 (sha1_init_ctx): Renamed from sha_init_ctx.
53165 (sha1_process_block): Renamed from sha_process_block.
53166 (sha1_process_bytes): Renamed from sha_process_bytes.
53167 (sha1_finish_ctx): Renamed from sha_finish_ctx.
53168 (sha1_read_ctx): Renamed from sha_read_ctx.
53169 (sha1_stream): Renamed from sha_stream.
53170 (sha1_buffer): Renamed from sha_buffer.
53171 * lib/sha1.c: Likewise; renamed from sha.c.
53172 Do not include <sys/types.h>.
53173 Include <stddef.h> rather than <stdlib.h>.
53175 2004-08-08 Bruno Haible <bruno@clisp.org>
53177 * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
53178 FILESYSTEM_PREFIX_LEN.
53179 * lib/progreloc.c: Likewise.
53180 * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
53182 2004-08-06 Simon Josefsson <jas@extundo.com>
53184 * modules/progname (Depends-on): Don't depend on stdbool.
53186 2004-08-06 Simon Josefsson <jas@extundo.com>
53188 * modules/getsubopt: New file.
53189 * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
53192 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53194 More merge from coreutils.
53196 * m4/utimens.m4, m4/utimecmp.m4: New files.
53197 * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
53198 fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
53199 prereq.m4, sha.m4: Import changes from coreutils.
53201 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53203 More merge from coreutils.
53204 * modules/raise, modules/readtokens0, modules/utimens:
53205 * modules/utimecmp, module/xnanosleep: New files.
53206 * modules/strftime: Add lib/strftime.h.
53207 Change include from <time.h> to "strftime.h".
53208 * modules/yesno: Add lib/yesno.h.
53209 * modules/backupfile: Remove lib/addext.c.
53210 * modules/euidaccess: Add stat-macros.h.
53211 * modules/canonicalize, modules/euidaccess,
53212 modules/filemode, modules/lchown, modules/makepath,
53213 modules/rmdir, modules/stat: Likewise.
53215 2004-08-06 Paul Eggert <eggert@cs.ucla.edu>
53218 * lib/argp-help.c (make_hol, hol_append): Don't assume that
53219 SIZE_MAX is a valid preprocessor constant.
53220 (__argp_basename): Change from "#ifndef _LIBC"
53221 to "#ifndef __argp_short_program_name", so that
53222 we don't compile these functions for tar.
53224 More merges from coreutils.
53225 * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
53226 * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
53227 * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
53228 * lib/addext.c: Remove; no longer needed.
53229 * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
53230 lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
53231 lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
53232 lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
53233 lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
53234 lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
53235 lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
53236 lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
53237 lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
53238 lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
53239 lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
53240 lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
53241 lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
53242 lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
53243 lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
53244 lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
53245 lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
53246 Import changes from coreutils.
53248 2004-08-05 Simon Josefsson <jas@extundo.com>
53250 * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
53252 2004-08-05 Simon Josefsson <jas@extundo.com>
53254 * m4/getsubopt.m4: New file.
53256 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53258 Merge from coreutils.
53260 * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
53261 * m4/getcwd-path-max.m4: New files.
53263 * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
53264 FILESYSTEM_PREFIX_LEN ->
53265 FILE_SYSTEM_PREFIX_LEN.
53266 FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
53267 FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
53268 FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
53269 FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
53271 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
53272 prerequisite modules now handle the DOS stuff.
53273 Don't check for unistd.h.
53275 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53277 Merge from coreutils.
53279 * lib/.gdb-history: Remove; this doesn't belong here.
53281 * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
53282 * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
53283 * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
53284 * lib/getcwd.c: New files.
53286 * lib/dirname.h: Include <stdbool.h>.
53287 (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
53288 for consistency with POSIX terminology. All uses changed.
53289 (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
53290 (strip_trailing_slashes): Use bool for booleans.
53291 * lib/stripslash.c (strip_trailing_slashes): Likewise.
53293 * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
53294 sometimes returns a positive errno value even when it succeeds.
53295 (print_errno_message) [!LIBC]: Fall back on strerror if
53296 __strerror_r fails.
53298 * lib/path-concat.c (mempcpy): Don't define if a system header defines
53299 it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
53300 (longest_relative_suffix): New function.
53301 (path_concat): Use it. Assume first argument is not NULL.
53302 Port to DOS. Omit redundant separators.
53303 Report an error instead of returning NULL.
53304 Use mempcpy instead of memcpy.
53305 (xpath_concat): Remove: not declared or used.
53307 * lib/same.h: Include <stdbool.h>
53308 (same_name): Return bool, not int.
53309 * lib/same.c (same_name): Likewise.
53310 (errno): Don't declare; we assume C89 or better now.
53312 * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
53313 if not already defined.
53315 * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
53316 * lib/dup-safer.c (errno): Likewise.
53318 2004-08-05 Paul Eggert <eggert@cs.ucla.edu>
53320 Merge from coreutils.
53321 * modules/c-strtod, modules/c-strtold, modules/canonicalize:
53322 * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
53323 * modules/path-concat: Don't depend on strdup.
53325 2004-08-03 Simon Josefsson <jas@extundo.com>
53327 * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
53328 * lib/progname.h: Don't include stdbool.h.
53330 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53332 * modules/fatal: Remove, as the "fatal" module wasn't used or working.
53333 * MODULES.html.sh (func_all_modules): Remove fatal.
53335 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53337 * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
53339 2004-08-03 Paul Eggert <eggert@cs.ucla.edu>
53341 * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
53344 2004-08-02 Simon Josefsson <jas@extundo.com>
53346 * lib/getsubopt.h: New file, with comments from Bruno Haible.
53347 * lib/getsubopt.c: New file, from glibc, but slightly modified based on
53348 suggestions from Paul Eggert <eggert@cs.ucla.edu>.
53350 2004-08-01 Simon Josefsson <jas@extundo.com>
53352 * lib/xgetdomainname.c: Include stdlib.h, for free().
53354 2004-07-19 Bruno Haible <bruno@clisp.org>
53356 * MODULES.html.sh (func_all_modules): Add dummy.
53358 2004-07-16 Simon Josefsson <jas@extundo.com>
53360 * modules/dummy: New file.
53362 2004-07-16 Simon Josefsson <jas@extundo.com>
53364 * lib/dummy.c: New file.
53366 2004-07-16 Bruno Haible <bruno@clisp.org>
53368 * lib/backupfile.h: Add extern "C" for C++.
53369 * lib/closeout.h: Likewise.
53370 * lib/copy-file.h: Likewise.
53371 * lib/findprog.h: Likewise.
53372 * lib/full-write.h: Likewise.
53373 * lib/pathname.h: Likewise.
53374 * lib/progname.h: Likewise.
53375 * lib/stpcpy.h: Likewise.
53376 * lib/stpncpy.h: Likewise.
53377 * lib/strcase.h: Likewise.
53378 * lib/strstr.h: Likewise.
53379 * lib/xalloc.h: Likewise.
53381 * lib/mbswidth.h: Add extern "C" for C++.
53382 Reported by Albert Chin-A-Young <china@thewrittenword.com>.
53384 2004-07-13 Robert Millan <robertmh@gnu.org>
53386 * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
53388 2004-07-09 Simon Josefsson <jas@extundo.com>
53390 * lib/getndelim2.c: Include stddef.h, for ptrdiff_t. (FreeBSD 4.9
53391 failed without this.)
53393 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
53395 * modules/chown (Files): Add lib/fchown-stub.c, since
53396 gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
53398 2004-07-09 Paul Eggert <eggert@cs.ucla.edu>
53400 * lib/fchown-stub.c: New file.
53402 2004-06-24 Jim Meyering <jim@meyering.net>
53404 * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
53406 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53408 * modules/argz: Omit "#include".
53410 * MODULES.html.sh (func_all_modules): Add calloc, to match
53411 2004-06-01 addition of calloc module.
53413 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53415 * m4/argz.m4: New file, which is autoupdated from libtool.
53417 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53419 * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
53422 2004-06-22 Paul Eggert <eggert@cs.ucla.edu>
53424 * config/srclist-update: Don't insist on "USA." before the
53425 close-comment, as libtool omits the period and puts the */ on a
53427 * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
53428 * config/srclistvars.sh: Add LIBTOOL (for eggert only).
53430 2004-06-22 Gary V. Vaughan <gary@gnu.org>
53432 * modules/argz: New file.
53433 * MODULES.html.sh (func_all_modules): Add argz.
53435 2004-06-12 Jim Meyering <jim@meyering.net>
53436 and Paul Eggert <eggert@cs.ucla.edu>
53438 * modules/hash (Files): Add lib/xalloc.h.
53439 * modules/pipe (Depends-on): Add wait-process.
53440 * modules/stat (Depends-on): Add xalloc.
53441 * modules/userspec (Files): Add lib/userspec.h.
53444 Upgrade from gettext-0.13.
53445 * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
53446 m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
53447 m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
53449 2004-06-10 Jim Meyering <jim@meyering.net>
53451 * lib/calloc.c: New file.
53453 2004-06-06 Paul Eggert <eggert@cs.ucla.edu>
53455 * lib/getdate.y (yylex): Allow space between sign and number.
53456 Problem reported by Dan Jacobson.
53458 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
53460 Merge from coreutils CVS.
53462 * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
53463 makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
53464 putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
53465 strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
53466 xstrtol.m4: Fix copyright date and/or serial number.
53468 * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
53469 See if we need an fchown replacement.
53470 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
53471 (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
53472 and use the replacement function if we detect either defect.
53474 * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
53477 2004-06-01 Paul Eggert <eggert@cs.ucla.edu>
53478 and Jim Meyering <jim@meyering.net>
53480 Merge from coreutils CVS.
53482 * lib/stat-macros.h: New file, with contents from file-type.h
53483 and coreutils' system.h.
53484 * lib/file-type.c: Include "stat-macros.h".
53485 * lib/file-type.h (file_type): Move all macro definitions to new file,
53488 * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
53489 Wrap old code with this conditional.
53490 [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
53491 function that does not dereference symlinks.
53492 * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
53494 * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
53495 dependency problems.
53496 (xreadlink): Accept new arg SIZE, for efficiency.
53497 All decls and uses changed.
53498 * lib/xreadlink.h: Include <stddef.h>, for size_t.
53500 * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
53501 gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
53503 * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
53506 2004-06-01 Jim Meyering <jim@meyering.net>
53508 * m4/calloc.m4: New file.
53510 2004-05-31 Paul Eggert <eggert@cs.ucla.edu>
53512 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
53513 C B3910B A.05.55 [Dec 04 2003]. Problem reported by Jim Meyering.
53514 Also, fix a typo in a diagnostic.
53516 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
53518 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
53519 or AC_FUNC_REALLOC.
53521 2004-05-30 Paul Eggert <eggert@cs.ucla.edu>
53523 * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
53524 macros to be defined.
53525 (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
53526 the allocator returns NULL because the requested size is zero.
53528 2004-05-20 Paul Eggert <eggert@cs.ucla.edu>
53530 * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
53531 var. Add comment explaining why libc still defines it. This
53532 merges the following patch from glibc:
53533 http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
53535 2004-05-20 Andreas Schwab <schwab@suse.de>
53537 * m4/free.m4: Replace free if it not known to work, not the other
53540 2004-05-19 Paul Eggert <eggert@cs.ucla.edu>
53542 * lib/obstack.c (_obstack): Remove unused variable. It hasn't been
53543 present in glibc since revision 1.1 of this file.
53544 * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
53545 obstack_alignment_mask, obstack_alloc, obstack_base,
53546 obstack_blank, obstack_blank_fast, obstack_chunk_size,
53547 obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
53548 obstack_grow0, obstack_init, obstack_int_grow,
53549 obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
53550 obstack_next_free, obstack_object_size, obstack_ptr_grow,
53551 obstack_ptr_grow_fast, obstack_room): Remove declarations of
53552 nonexistent functions.
53554 2004-05-18 Karl Berry <karl@gnu.org>
53556 * config/srclist.txt: break link for vasnprintf.c.
53558 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
53560 Port obstack to the AS/400, where pointers are 16 bytes wide and
53561 you cannot cast an integer to a valid pointer. This patch is
53562 currently waiting to be integrated into glibc; see
53563 <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
53565 * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
53566 All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
53567 (__BPTR_ALIGN, __PTR_ALIGN): New macros.
53568 (struct obstack): temp member is now a union of a pointer and
53569 an integer, instead of an integer. All integer uses changed.
53570 This does not affect the physical layout of struct obstack,
53571 except on hosts (like the AS/400) where the size or alignment of
53572 void * is greater than that of ptrdiff_t.
53573 (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
53574 __STDC__)]: Store temporary in pointer member of union, not
53576 * lib/obstack.c: Include <stddef.h>, for offsetof.
53577 (struct fooalign): Remove; it doesn't need a name.
53578 (union fooround): Change double to long double, and add void *.
53579 (DEFAULT_ALIGNMENT): Use offsetof to compute.
53580 (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
53581 not a macro. Hence the values are always int; so remove all
53582 casts-to-int in uses.
53584 2004-05-17 Paul Eggert <eggert@cs.ucla.edu>
53586 * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
53587 we can get this patch merged into glibc.
53589 2004-05-17 Derek R. Price <derek@ximbiot.com>
53590 Paul Eggert <eggert@cs.ucla.edu>
53592 * m4/argp: Depend on alloca.
53594 2004-05-17 Derek R. Price <derek@ximbiot.com>
53595 Paul Eggert <eggert@cs.ucla.edu>
53597 * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
53600 2004-05-17 Bruno Haible <bruno@clisp.org>
53602 * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
53603 precision that consists of a '.' followed by an empty digit string.
53604 Patch by Tor Lillqvist <tml@iki.fi>.
53606 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
53608 * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
53609 for backward compatibility with older code. We need our own
53610 alloca.h if _AIX is defined. Define HAVE_ALLOCA if we discover
53611 it under some other name, and our alloca.h will define it.
53613 2004-05-16 Paul Eggert <eggert@cs.ucla.edu>
53614 Derek Price <derek@ximbiot.com>
53616 * lib/alloca.c: Include <alloca.h>, to get our interface.
53617 * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
53618 include <alloca.h> first. Use C89 prototype for alloca; this
53619 requires including <stddef.h> for size_t. Use extern "C" if C++.
53620 Use #elif for simplicity, since we can assume C89 now.
53621 Don't try to source the system alloca.h since it will not be found
53622 and to prevent recursively including its replacement.
53623 * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
53624 * lib/regex.c: Likewise.
53626 2004-05-16 Derek Price <derek@ximbiot.com>
53627 Paul Eggert <eggert@cs.ucla.edu>
53629 getline cleanup. This changes the getndelim2 API: both order of
53630 arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
53633 * lib/getline.c: Don't include stddef.h or stdio.h, since our
53634 interface does that.
53635 (getline): Always use getdelim, so that we don't have two
53636 copies of this code.
53637 * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
53639 (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
53640 (GETNDELIM2_MAXIMUM): New macro.
53641 (getndelim2): Reorder arguments. delim==EOF now means no delimiter,
53642 instead of the old practice of delim2==0. All callers changed.
53643 Return -1 on overflow, instead of returning junk.
53644 Do not set *linesize unless allocation succeeds.
53645 * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
53646 that we include sys/types.h.
53647 * lib/getnline.h: Likewise.
53648 * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
53649 (getndelim2): Reorder arguments.
53650 * lib/getnline.c (getnline, getndelim):
53651 Don't discard the NMAX argument.
53652 (getnline): Invoke getndelim, to avoid code duplication.
53653 * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
53654 of (size_t) -1 by callers of the getnline family.
53656 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
53658 * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
53659 Check for gettimeofday.
53660 * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
53661 Check for settimeofday, stime.
53663 2004-05-13 Paul Eggert <eggert@cs.ucla.edu>
53665 * lib/nanosleep.c (suspended): Change its type from int to
53666 sig_atomic_t volatile.
53667 (first_call): Make it private to rpl_nanosleep, and have it
53668 be zero initially as that's a bit faster.
53669 (my_usleep): Round up fractional times instead of truncating them,
53670 as this is the usual meaning for 'sleep'.
53672 * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
53674 * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
53675 (ENOSYS): Define if not defined.
53676 (settime): Fall back on stime if it exists and settimeofday fails.
53677 But don't bother with fallbacks if a method fails with errno == EPERM.
53679 2004-05-11 Jim Meyering <jim@meyering.net>
53681 Prior to this change, the save_cwd caller required read access to the
53682 current directory on most systems (ones with the fchdir function).
53684 * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
53685 fails, try write-only, and finally, resort to using xgetcwd.
53687 2004-05-06 Paul Eggert <eggert@cs.ucla.edu>
53689 * lib/obstack.c, obstack.h: Import changes from libc.
53691 2004-04-28 Bruno Haible <bruno@clisp.org>
53693 * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
53694 also implicitly appends .exe to executables.
53695 * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
53696 accepts Windows pathnames.
53697 * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53698 Treat Cygwin like Windows, since it now accepts Windows pathnames.
53699 * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
53700 Treat Cygwin like Windows, since it now accepts Windows pathnames.
53701 Reported by Derek Robert Price <derek@ximbiot.com>.
53703 2004-04-21 Karl Berry <karl@gnu.org>
53705 * config/srclist.txt (localcharset.c): break sync.
53707 2004-04-20 Paul Eggert <eggert@twinsun.com>
53709 * m4/host-os.m4: Add a copyright notice.
53711 2004-04-20 Jim Meyering <jim@meyering.net>
53713 Change UTILS_ to gl_ in AC_DEFINE'd names.
53714 Change utils_- and jm_-prefixed variables, too.
53715 * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
53716 UTILS_FUNC_MKDIR_TRAILING_SLASH.
53717 * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
53719 * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
53720 Don't emit trailing blanks.
53721 Also rename jm_-prefixed variables to have gl_ prefix.
53723 * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
53724 Also rename jm_-prefixed variables to have gl_ prefix.
53726 * m4/jm-macros.m4: Reflect the renamings.
53727 * m4/prereq.m4: Likewise.
53729 2004-04-20 Jim Meyering <jim@meyering.net>
53731 * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
53734 2004-04-20 Jim Meyering <jim@meyering.net>
53735 Bruno Haible <bruno@clisp.org>
53737 * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
53738 memory when realloc fails.
53740 2004-04-19 Jim Meyering <jim@meyering.net>
53742 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
53743 now that readutmp.c may call `free (0)'.
53745 2004-04-19 Bruno Haible <bruno@clisp.org>
53747 * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
53748 * m4/inttypes_h.m4: Likewise.
53749 * m4/stdint_h.m4: Likewise.
53750 * m4/intmax_t.m4: Likewise.
53751 * m4/uintmax_t.m4: Likewise.
53753 2004-04-18 Jim Meyering <jim@meyering.net>
53755 * m4/prereq.m4: Don't forbid jm_ prefix.
53757 * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
53758 * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
53759 * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
53760 * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
53761 * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
53762 * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
53763 * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
53764 * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
53765 * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
53766 * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
53767 * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
53768 * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
53769 * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
53770 * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
53771 * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
53772 * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
53773 * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
53774 * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
53775 Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
53777 2004-04-18 Jim Meyering <jim@meyering.net>
53779 * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
53780 failure, don't leak memory and do call END_UTMP_ENT.
53782 2004-04-16 Jim Meyering <jim@meyering.net>
53784 * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro. It is specific to
53785 coreutils' stat program.
53786 (gl_PREREQ): Don't require jm_PREREQ_STAT.
53788 2004-04-11 Paul Eggert <eggert@twinsun.com>
53790 * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
53792 (CHAR_BIT): Remove, since we assume C89.
53793 Include <stdint.h> if available, as per current Autoconf CVS advice.
53795 2004-03-31 Jim Meyering <jim@meyering.net>
53797 * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
53798 Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
53799 * m4/xalloc.m4: Likewise.
53801 2004-03-30 Paul Eggert <eggert@twinsun.com>
53803 Merge from coreutils.
53805 * m4/inttostr.m4: New file.
53806 * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
53807 Require AM_STDBOOL_H and gl_TIMESPEC instead.
53808 Require gl_CLOCK_TIME.
53809 * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
53811 2004-03-30 Paul Eggert <eggert@twinsun.com>
53813 * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
53814 not bool, to be more consistent with Unix conventions.
53815 Suggested by Bruno Haible.
53817 Merge from coreutils.
53819 * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
53820 * lib/umaxtostr.c: New files.
53822 * lib/getdate.h: Include stdbool.h, and timespec.h instead of
53823 the usual <time.h> dance.
53824 (get_date): Change signature to support fractional time stamps.
53825 All callers changed.
53826 * lib/getdate.y: Include "getdate.h" first, as we can now
53827 assume C89 and don't need to worry about 'const'.
53828 Similarly, include "unlocked-io.h" near start, not in middle.
53829 Include <limits.h>.
53830 (textint.value): Use long int rather than int.
53831 (textint.digits): Use size_t rather than int.
53832 (BILLION, LOG10_BILLION): New constants.
53833 (parser_control): New member rel_ns. Members day_ordinal,
53834 time_zone, month, day, hour, minutes, rel_year, rel_month,
53835 rel_day, rel_hour, rel_minutes, rel_seconds
53836 are now long int, not int. Member seconds is now struct timespec,
53837 not int. New member timespec_seen. Members dates_seen, days_seen,
53838 local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
53840 (%union.intval): Now long int, not int.
53841 New member timespec.
53842 (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
53843 (seconds, signed_seconds, unsigned_seconds): New nonterminals.
53844 (spec): Now is a timespec or an item list.
53845 (timespec, items): New nonterminals.
53846 (time, rel, relunit, number, get_date):
53847 Add support for fractional seconds.
53848 (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
53849 (gmtime, localtime, mktime): Remove decls; not needed with C89.
53850 (to_hour): First arg is now long int, not int.
53851 (to_year): Returns long int, not int.
53852 Don't treat year -70 like 70.
53853 (tm_diff): Returns long int, not int.
53854 (lookup_word): Use bool instead of int when appropriate.
53855 (yylex): Use size_t for count, not int.
53856 Detect overflow when parsing large integer constants.
53857 Add support for fractions.
53858 (get_date): Make pointers 'const' if possible.
53859 Use more-portable code to detect integer overflow.
53860 (main) [TEST]: Adjust to above changes. Test for localtime failure.
53861 Don't use ctime; it's not reliable if the year has >4 digits.
53863 * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
53864 This is for compatibility with BSD.
53866 * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
53867 (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
53868 From coreutils' system.h.
53870 * lib/userspec.c: Don't include "posixver.h".
53871 (parse_user_spec): Fall back on USER.GROUP parsing, regardless
53872 of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
53873 compatible extension. Simplify code by removing a boolean int
53874 that was always nonzero if a string was nonnull.
53876 2004-03-30 Jim Meyering <jim@meyering.net>
53878 Merge from coreutils.
53880 Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
53881 * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
53882 on some systems one must include <grp.h> before it.
53883 Reported by Christian Krackowizer.
53885 2004-03-30 Jim Meyering <jim@meyering.net>
53887 Merge from coreutils.
53889 * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
53891 * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
53892 an empty input stream.
53894 * lib/readtokens.c: Include <stdbool.h>.
53895 (readtoken): Use `size_t' rather than int/long.
53896 All callers adjusted.
53897 Use `bool' rather than `int' where appropriate.
53898 Use memset rather than an explicit loop.
53899 Use x2nrealloc rather than xrealloc.
53900 Allow the use of `\0' as a delimiter.
53901 (readtokens): Likewise.
53902 * lib/readtokens.h (readtoken, readtokens): Update prototypes.
53904 2004-03-30 Jim Meyering <jim@meyering.net>
53906 * m4/realloc.m4: Remove file, since now it does no more than
53907 AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
53908 the `configure.ac' section of module/realloc.
53909 * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
53911 2004-03-30 Bruno Haible <bruno@clisp.org>
53913 * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
53916 2004-03-29 Paul Eggert <eggert@twinsun.com>
53918 Merge changes to getloadavg.c from coreutils and Emacs.
53920 * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
53921 Define to an expression, not to the empty string.
53922 Include cloexec.h and xalloc.h.
53923 (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
53924 Use set_cloexec_flag rather than rolling our own.
53925 * lib/cloexec.c, lib/cloexec.h: New files.
53927 2004-03-29 Paul Eggert <eggert@twinsun.com>
53929 * m4/cloexec.m4: New file.
53931 2004-03-18 Paul Eggert <eggert@twinsun.com>
53933 * lib/getopt.h: Sync with libc CVS.
53935 2004-03-18 Paul Eggert <eggert@twinsun.com>
53936 Bruno Haible <bruno@clisp.org>
53938 * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
53941 2004-03-18 Paul Eggert <eggert@twinsun.com>
53942 Bruno Haible <bruno@clisp.org>
53944 * lib/mbswidth.h: Include <wchar.h> only if
53945 HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
53947 * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
53949 2004-03-09 Paul Eggert <eggert@twinsun.com>
53951 * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
53952 Sync with libc CVS.
53953 * lib/getopt_int.h: New file, also synced from libc.
53955 2004-03-09 Paul Eggert <eggert@twinsun.com>
53957 * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
53958 * config/srclist.txt: Sync getopt with libc. Add getopt_int.h.
53959 Bring back getopt.c, getopt.h, getopt1.c.
53961 2004-03-07 Paul Eggert <eggert@twinsun.com>
53963 * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
53964 All uses changed. Check for sa_sigaction member; this fixes
53965 a bug first reported by Jason Andrade in
53966 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53968 2004-03-07 Paul Eggert <eggert@twinsun.com>
53970 * lib/c-stack.c (SIGACTION_WORKS): New macro. Use it instead of long
53971 '#if' expressions. Unlike the code it replaces, it does not
53972 depend on (defined _SC_PAGESIZE). However, it does depend on
53973 HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
53974 first reported by Jason Andrade in
53975 <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
53977 2004-02-25 Simon Josefsson <jas@extundo.com>
53979 * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
53981 2004-02-25 Simon Josefsson <jas@extundo.com>
53983 * lib/strdup.h: New file.
53984 * lib/strdup.c: Include it.
53985 * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
53986 * lib/userspec.c: Include strdup.h. Drop strdup declaration.
53988 2004-02-23 Karl Berry <karl@gnu.org>
53990 * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
53991 (from fencepost.gnu.org:/gd/gnuorg).
53993 2004-02-23 Karl Berry <karl@gnu.org>
53995 * config/srclistvars.sh (GNUORG) [karl]: redefine.
53996 * config/srclist.txt: add maintain/standards documents.
53998 2004-02-18 Bruno Haible <bruno@clisp.org>
54000 * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
54001 Reported by Derek Robert Price <derek@ximbiot.com>.
54003 2004-02-16 Karl Berry <karl@gnu.org>
54005 * config/mkinstalldirs, install-sh: update from automake.
54007 2004-02-06 Karl Berry <karl@gnu.org>
54009 * m4/po.m4: update from gettext 0.14.1.
54011 2004-02-06 Karl Berry <karl@gnu.org>
54013 * lib/config.charset: update from gettext 0.14.1.
54015 2004-02-05 Paul Eggert <eggert@twinsun.com>
54017 Add comments and code, prompted by suggestions from Bruno Haible
54019 * lib/quotearg.h (quotearg_alloc): New decl. Improve the comments
54020 describing the enum quoting_style values.
54021 * lib/quotearg.c (quotearg_alloc): New function.
54022 (quotearg_buffer_restyled): Treat lone { and } as special.
54023 Treat = as special. Work around bug with older shells
54024 that "see" a '\' that is really the 2nd byte of a multibyte char.
54025 Quote empty string with shell_quoting_style.
54027 2004-02-03 Bruno Haible <bruno@clisp.org>
54029 * m4/pipe.m4: New file, from GNU gettext.
54031 2004-02-03 Bruno Haible <bruno@clisp.org>
54033 * lib/pipe.h: New file, from GNU gettext.
54034 * lib/pipe.c: New file, from GNU gettext.
54036 2004-01-27 Bruno Haible <bruno@clisp.org>
54038 * m4/execute.m4: New file, from GNU gettext.
54040 2004-01-27 Bruno Haible <bruno@clisp.org>
54042 * lib/execute.h: New file, from GNU gettext.
54043 * lib/execute.c: New file, from GNU gettext.
54044 * lib/w32spawn.h: New file, from GNU gettext.
54046 2004-01-24 Paul Eggert <eggert@twinsun.com>
54048 Merge from diffutils.
54050 * lib/file-type.c (file_type): Add typed memory objects.
54051 * lib/file-type.h (S_TYPEISTMO): New macro.
54053 * lib/c-stack.h (c_stack_action): Remove argv argument.
54054 * lib/c-stack.c (c_stack_action): Likewise. All uses changed.
54055 (die): Don't calculate message unless segv_action returns.
54056 (get_stack_location, min_address_from_argv, max_address_from_argv,
54057 volatile stack_base, volatile_stack_size): Remove.
54058 (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
54059 that every segmentation violation is a stack overflow. (Ouch!)
54060 See Debian bug 136249 (still outstanding) for more info about why
54061 HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
54063 2004-01-24 Paul Eggert <eggert@twinsun.com>
54065 Exit-status fix from coreutils.
54067 Use exit_failure consistently in place of EXIT_FAILURE,
54068 so that program exit statuses are consistent on failure.
54070 * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
54071 Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
54072 * lib/argmatch.h: Comment fix to match the above.
54073 * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
54074 Now a macro referring to exit_failure, instead of a separate
54075 variable. Include "exitfail.h" to get it.
54076 * lib/xstrtol.h: Include "exitfail.h".
54077 (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
54079 * lib/long-options.c (parse_long_options): Use prototype
54080 for usage function arg. Pass it EXIT_SUCCESS rather than 0,
54083 2004-01-21 Jim Meyering <jim@meyering.net>
54085 * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
54086 so as not to conflict with a different-sized __mktime_internal
54087 function in GNU libc.
54088 * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
54089 Problem building statically-linked `ls' reported by Michael Brunnbauer.
54091 2004-01-20 Karl Berry <karl@gnu.org>
54093 * config/config.guess: update from config.
54095 * config/srclistvars.sh: GNUWWWLICENSES for karl.
54097 2004-01-20 Bruno Haible <bruno@clisp.org>
54099 Safer stack allocation.
54100 * lib/setenv.c: Include allocsa.h.
54101 (alloca): Remove fallback definition.
54102 (freea): Remove macro.
54103 (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
54106 2004-01-20 Bruno Haible <bruno@clisp.org>
54108 * m4/eealloc.m4: New file, from GNU gettext.
54110 2004-01-20 Bruno Haible <bruno@clisp.org>
54112 * m4/allocsa.m4: New file, from GNU gettext.
54114 2004-01-20 Bruno Haible <bruno@clisp.org>
54116 * lib/xallocsa.h: New file, from GNU gettext.
54117 * lib/xallocsa.c: New file, from GNU gettext.
54119 2004-01-20 Bruno Haible <bruno@clisp.org>
54121 * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
54123 2004-01-20 Bruno Haible <bruno@clisp.org>
54125 * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
54126 * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
54129 2004-01-20 Bruno Haible <bruno@clisp.org>
54131 * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
54134 2004-01-20 Bruno Haible <bruno@clisp.org>
54136 * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
54138 2004-01-20 Bruno Haible <bruno@clisp.org>
54140 * lib/eealloc.h: New file.
54142 2004-01-20 Bruno Haible <bruno@clisp.org>
54144 * lib/binary-io.h: Avoid warnings on Cygwin.
54146 2004-01-20 Bruno Haible <bruno@clisp.org>
54148 * lib/allocsa.h: New file, from GNU gettext.
54149 * lib/allocsa.c: New file, from GNU gettext.
54151 2004-01-18 Karl Berry <karl@gnu.org>
54153 * doc/gpl.texi, doc/lgpl.texi: new files.
54155 2004-01-18 Karl Berry <karl@gnu.org>
54157 * config/srclistvars.sh (GNUWWWLICENSES): new variable.
54158 * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
54160 2004-01-15 Paul Eggert <eggert@twinsun.com>
54162 Merge from coreutils.
54164 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
54165 * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
54166 (gl_DEFAULT_POSIX2_VERSION): Move
54167 the documentation from 'configure' into 'config.hin',
54168 so that 'configure --help' isn't burdened by it and
54169 we don't have to worry about its formatting there.
54170 Reword the documentation so that it's more succinct
54171 and can be run together into a single paragraph.
54172 * m4/same.m4 (gl_SAME): Check for pathconf.
54174 2004-01-15 Paul Eggert <eggert@twinsun.com>
54176 Merge from coreutils.
54178 * lib/posixver.c: Include posixver.h.
54180 * lib/same.c: Include <stdbool.h>, <limits.h>.
54181 (_POSIX_NAME_MAX): Define if not defined.
54183 (same_name): If file names are silently truncated, report
54184 that the file names are the same if they are the same after
54185 the silent truncation.
54187 * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
54188 conversion function.
54189 * lib/xstrtod.c (xstrtod): Likewise. All callers changed to
54190 include c-strtod.h and use c_strtod. Don't include stdlib.h; no
54193 2004-01-15 Jim Meyering <jim@meyering.net>
54195 Merge from coreutils.
54197 * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
54198 if no library is required.
54199 * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
54200 * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
54201 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
54202 (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
54203 * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
54204 * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
54205 value, $ac_cv_search_crypt, if it's "none required".
54206 * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
54207 * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
54208 not gl_FUNC_GETLOADAVG.
54209 * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
54210 gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
54212 2004-01-15 Jim Meyering <jim@meyering.net>
54214 Merge from coreutils.
54216 * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code. These
54217 days, gcc-3.x does better all by itself. Patch from Dean Gaudet:
54218 http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
54220 * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
54221 optional configure-time default.
54223 * lib/version-etc.c (version_etc_copyright): Update copyright date.
54225 * lib/xreadlink.c (xreadlink): Correct outdated comment.
54227 2004-01-15 Alexandre Duret-Lutz <adl@gnu.org>
54229 Merge from coreutils.
54231 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
54232 value, $ac_cv_search_nanosleep, if it's "none required".
54234 2004-01-14 Paul Eggert <eggert@twinsun.com>
54236 * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
54237 with like-named macro in fnmatch.c.
54238 (EXT): Use an internal constant instead.
54240 Merge fnmatch patches from glibc.
54241 * lib/fnmatch.c (mbsinit): Remove define.
54242 Add libc_hidden_ver (__fnmatch, fnmatch).
54243 * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
54244 Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
54246 2004-01-14 Karl Berry <karl@gnu.org>
54248 * config/install-sh: update from automake.
54250 2004-01-13 Karl Berry <karl@gnu.org>
54252 * config/install-sh: update from automake.
54254 2004-01-09 Karl Berry <karl@gnu.org>
54256 * config/install-sh: update from automake.
54258 2004-01-05 Karl Berry <karl@gnu.org>
54260 * config/config.{sub,guess}: update from config.
54262 2003-12-31 Karl Berry <karl@gnu.org>
54264 * config/depcomp: update from automake.
54266 2003-12-14 Karl Berry <karl@gnu.org>
54268 * lib/config.charset: update from gettext-runtime.
54270 2003-12-03 Paul Eggert <eggert@twinsun.com>
54272 * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
54273 Bug reported by Alfred M. Szmidt.
54275 2003-12-03 Bruno Haible <bruno@clisp.org>
54277 * m4/gettext.m4: Upgrade from gettext-0.13.
54278 * m4/po.m4: Upgrade from gettext-0.13.
54279 * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
54280 * m4/intmax.m4: New file, from gettext-0.13.
54281 * m4/printf-posix.m4: New file, from gettext-0.13.
54283 2003-11-29 Karl Berry <karl@gnu.org>
54285 * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
54287 2003-11-25 Paul Eggert <eggert@twinsun.com>
54288 Bruno Haible <bruno@clisp.org>
54290 * lib/printf-parse.h: Don't include sys/types.h.
54291 (ARG_NONE): New macro.
54292 (char_directive): Change type of *arg_index fields to size_t.
54293 * lib/printf-parse.c: Don't include sys/types.h.
54294 (SSIZE_MAX): Remove macro.
54295 (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
54296 Remove unnecessary overflow check.
54297 * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
54300 2003-11-25 Bruno Haible <bruno@clisp.org>
54302 * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
54304 2003-11-25 Bruno Haible <bruno@clisp.org>
54306 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
54309 2003-11-24 Paul Eggert <eggert@twinsun.com>
54311 * modules/alloca: Remove dependency on xalloc.
54313 2003-11-24 Paul Eggert <eggert@twinsun.com>
54315 * lib/alloca.c: Remove dependency on xalloc module.
54316 (xalloc_die): Remove.
54317 (memory_full) [!defined emacs]: New macro.
54318 [!defined emacs]: Don't include xalloc.h.
54319 (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
54320 address arithmetic overflows. Change datatypes a bit to avoid
54323 2003-11-22 Jim Meyering <jim@meyering.net>
54325 * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
54328 2003-11-21 Karl Berry <karl@gnu.org>
54330 * config/config.{sub,guess}: update from config.
54332 2003-11-18 Karl Berry <karl@gnu.org>
54334 * config/config.{sub,guess}: update from config.
54336 * config/(printf-{parse,args}.[ch]): sync broken, sigh.
54338 2003-11-17 Paul Eggert <eggert@twinsun.com>
54340 * README: Mention that S+T cannot overflow if S is the size of
54341 an existing object and T is sufficiently small.
54343 2003-11-17 Jim Meyering <jim@meyering.net>
54345 On systems without utime and without a utimes function capable of
54346 dealing with a NULL struct utimbuf* argument, this utime replacement
54347 could -- in unusual circumstances -- leak a file descriptor.
54348 * lib/utime.c: Include <unistd.h> and <errno.h>.
54349 (utime_null): Be sure to close `fd' and to preserve errno.
54350 Reported by Geoff Collyer via Arnold Robbins.
54352 2003-11-17 Bruno Haible <bruno@clisp.org>
54354 * modules/vasnprintf (Files): Add m4/ssize_t.m4.
54355 (Depends-on): Add xsize.
54357 2003-11-17 Bruno Haible <bruno@clisp.org>
54359 * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
54361 2003-11-17 Bruno Haible <bruno@clisp.org>
54363 * lib/vasnprintf.c (alloca): Remove fallback definition.
54364 (freea): Remove definition.
54365 (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
54366 Reported by Paul Eggert.
54368 2003-11-16 Paul Eggert <eggert@twinsun.com>
54369 Bruno Haible <bruno@clisp.org>
54371 Protect against address arithmetic overflow.
54372 * lib/printf-args.h: Include stddef.h.
54373 (arguments): Change type of field 'count' to size_t.
54374 * lib/printf-args.c (printf_fetchargs): Use size_t instead of
54375 'unsigned int' where appropriate.
54376 * lib/printf-parse.h: Include sys/types.h.
54377 (char_directive): Change type of *arg_index fields to ssize_t.
54378 (char_directives): Change type of fields 'count', max_*_length to
54380 * lib/printf-parse.c: Include sys/types.h and xsize.h.
54381 (SSIZE_MAX): Define fallback value.
54382 (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
54383 instead of 'int' where appropriate. Check a_allocated, d_allocated
54384 against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
54385 * lib/vasnprintf.c: Include xsize.h.
54386 (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
54387 Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
54388 overflow. Avoid wraparound when converting a width or precision from
54391 2003-11-16 Bruno Haible <bruno@clisp.org>
54393 Update from GNU gettext.
54394 * lib/printf-parse.c: Generalize to it can be compiled for wide
54396 (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
54397 * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
54398 (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
54399 SNPRINTF): New macros.
54400 Don't include <alloca.h> if the file is used inside libintl.
54401 (local_wcslen): New function, for Solaris 2.5.1.
54402 (VASNPRINTF): Use it instead of wcslen.
54404 2003-11-16 Bruno Haible <bruno@clisp.org>
54406 * lib/xsize.h (xmax): New function.
54407 (xsum, xsum3, xsum4): Declare as "pure" functions.
54409 2003-11-12 Paul Eggert <eggert@twinsun.com>
54411 * modules/xalloc (Files): Undo latest change, since xalloc.h
54412 no longer needs SIZE_MAX or PTRDIFF_MAX.
54414 2003-11-12 Paul Eggert <eggert@twinsun.com>
54416 * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
54419 2003-11-12 Paul Eggert <eggert@twinsun.com>
54421 * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
54422 "return", to pacify some unknown compiler. Problem reported
54423 by Joerg Schilling.
54425 2003-11-12 Paul Eggert <eggert@twinsun.com>
54427 * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
54428 (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
54429 the heuristic, rather than PTRDIFF_MAX and SIZE_MAX. This
54430 heuristic is just as accurate as far as we know, and it removes a
54431 dependency on size_max.m4 and ptrdiff_max.m4.
54433 2003-11-11 Bruno Haible <bruno@clisp.org>
54435 * modules/xsize (Files): Add m4/size_max.m4.
54436 * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
54438 2003-11-11 Bruno Haible <bruno@clisp.org>
54440 * m4/size_max.m4: New file.
54441 * m4/ptrdiff_max.m4: New file.
54442 * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
54443 * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
54444 (gl_XALLOC): Invoke it.
54446 2003-11-11 Bruno Haible <bruno@clisp.org>
54448 * lib/xsize.h (SIZE_MAX): Remove fallback definition.
54449 * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
54452 2003-11-10 Paul Eggert <eggert@twinsun.com>
54454 * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
54455 PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
54456 rejected some allocations of exactly SIZE_MAX - 2 bytes.
54458 [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
54459 not (size_t) -1, since it's defined here.
54461 2003-11-09 Karl Berry <karl@gnu.org>
54463 * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
54465 2003-11-06 Paul Eggert <eggert@twinsun.com>
54467 * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
54468 (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
54469 Reject sizes of exactly SIZE_MAX bytes.
54470 * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
54471 is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
54473 2003-11-05 Bruno Haible <bruno@clisp.org>
54475 * lib/xsize.h: Include limits.h, to avoid a possible collision with
54476 SIZE_MAX defined in <limits.h> on Solaris.
54478 2003-11-04 Jim Meyering <jim@meyering.net>
54480 * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
54481 variable names, rather than @VAR@.
54482 * modules/poll: Likewise.
54484 2003-11-04 Bruno Haible <bruno@clisp.org>
54486 * modules/xsize: New file.
54487 * modules/linebreak: Depend on xsize.
54488 * MODULES.html.sh (func_all_modules): Add xsize.
54490 2003-11-04 Bruno Haible <bruno@clisp.org>
54492 * m4/xsize.m4: New file.
54494 2003-11-04 Bruno Haible <bruno@clisp.org>
54496 * lib/xsize.h: New file.
54497 * lib/linebreak.c: Include xsize.h.
54498 (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
54499 argument for overflow.
54500 Suggested by Paul Eggert.
54502 2003-11-03 Karl Berry <karl@gnu.org>
54504 * config/config.{guess,sub}: update from config.
54506 2003-11-03 Jim Meyering <jim@meyering.net>
54508 * modules/userspec (lib_SOURCES): Add userspec.h.
54509 (Include): Add "userspec.h".
54510 Improve description.
54512 2003-11-03 Jim Meyering <jim@meyering.net>
54514 * lib/userspec.c: Include "userspec.h".
54515 * lib/userspec.h: New file.
54517 2003-11-03 Bruno Haible <bruno@clisp.org>
54519 * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
54521 2003-11-03 Bruno Haible <bruno@clisp.org>
54523 * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
54524 available, to avoid (extremely rare) race condition.
54525 Suggested by Paul Eggert.
54527 2003-11-02 Karl Berry <karl@gnu.org>
54529 * config/srclist.txt (vasprintf.c): sync broken, sigh.
54531 2003-10-31 Paul Eggert <eggert@twinsun.com>
54533 * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
54534 * lib/mountlist.c (SIZE_MAX): Define if not defined already.
54535 (read_filesystem_list): Set and use me_type_malloced.
54536 Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
54537 whatever the type happens to be), for brevity and consistency.
54538 Check for size calculation overflow on Alphas running OSF/1.
54540 2003-10-31 Jim Meyering <jim@meyering.net>
54542 * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
54544 * lib/linebuffer.c: Include <string.h> for declaration of memset.
54546 2003-10-30 Paul Eggert <eggert@twinsun.com>
54547 Bruno Haible <bruno@clisp.org>
54549 * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
54550 (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
54552 2003-10-30 Paul Eggert <eggert@cs.ucla.edu>
54554 * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
54555 netbsd*-gnu*. Suggested by Robert Millan.
54557 2003-10-29 Paul Eggert <eggert@twinsun.com>
54559 * modules/group-member: Depend on stdbool.
54561 2003-10-29 Paul Eggert <eggert@twinsun.com>
54563 * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
54565 2003-10-29 Paul Eggert <eggert@twinsun.com>
54567 * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu. Add comments
54568 to it, and to knetbsd*-gnu and kfreebsd*-gnu. Remove the '*' from
54569 after the 'gnu' in these cases. This fixes some bugs in the
54570 previous change, and is based on suggestions by Robert Millan.
54572 2003-10-29 Paul Eggert <eggert@twinsun.com>
54574 * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
54575 so that it works even if SIZE_MAX < N. Do not include <stdbool.h>;
54577 * lib/quotearg.c (quotearg_n_options): Use it.
54578 * lib/group-member.c: Include <stdbool.h>.
54579 (free_group_info): Arg is now const *; don't free arg.
54580 (get_group_info): Now returns bool and accepts struct group_info *,
54581 rather than returning a malloc'ed struct group_info *.
54582 All uses changed. Check for overflow in internal size calculation.
54584 * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
54585 rather than xmalloc/xrealloc.
54586 * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
54587 using x2realloc rather than xmalloc/xrealloc. Also, fix a C
54588 conformance bug: the old code used a pointer after freeing the
54589 storage that it addressed.
54590 * lib/hash.c (hash_initialize): Simplify the code by using
54591 xalloc_oversized rather than doing it by hand.
54592 * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
54593 the buffer preserved. Use free and xmalloc instead.
54594 * lib/quotearg.c (quotearg_n_options): Likewise.
54595 Use a simpler test for size overflow. Don't use xalloc_oversized
54596 because unsigned int might be wider than size_t (!); this suggests
54597 that we should switch from unsigned int to size_t for slot numbers.
54599 2003-10-28 Paul Eggert <eggert@twinsun.com>
54601 * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
54602 GNU/KNetBSD. These implementations use glibc atop the FreeBSD and
54603 NetBSD kernels. Requested by Richard Stallman.
54605 2003-10-27 Paul Eggert <eggert@twinsun.com>
54607 * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
54608 to allocate the returned structure. Do not allocate a subarray,
54609 as x2nrealloc will do that.
54610 (add_exclude): Use x2nrealloc to reallocate ex->exclude,
54611 instead of xnrealloc.
54612 (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
54614 2003-10-27 Bruno Haible <bruno@clisp.org>
54616 * lib/stdbool_.h: Better support for BeOS.
54618 2003-10-26 Paul Eggert <eggert@twinsun.com>
54620 * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
54623 2003-10-26 Paul Eggert <eggert@twinsun.com>
54625 * lib/xalloc.h (xalloc_oversized): New static inline function, for
54626 callers that want to do their own size-overflow checking. Include
54627 <stdbool.h>, since xalloc_oversized returns bool.
54628 * lib/xalloc.c (array_size_overflow): Remove. All callers changed
54629 to use xalloc_oversized.
54631 Add two functions x2realloc, x2nrealloc, for programs that grow
54632 arrays dynamically by doubling their sizes.
54633 * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
54634 * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
54637 Port to C99 semantics for 'inline' of external functions.
54638 Bug reported by Bruno Haible.
54639 * lib/xmalloc.c (xnmalloc_inline): New static inline function,
54640 with the old contents of xnmalloc.
54641 (xnmalloc, xmalloc): Use it.
54642 (xnrealloc_inline): New static inline function,
54643 with the old contents of xnrealloc.
54644 (xnrealloc, xrealloc): Use it.
54646 * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
54649 2003-10-26 Karl Berry <karl@gnu.org>
54651 * config/srclist.txt (COPYING.DOC): no longer available from
54652 /gd/gnuorg; don't know where the ultimate source is.
54654 2003-10-25 Paul Eggert <eggert@twinsun.com>
54656 Fix several address-calculation bugs in the hash modules,
54657 plus some minor code cleanup.
54659 * lib/hash.h: Include <stdbool.h>, for bool.
54660 * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
54661 * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
54662 hash_get_n_entries, hash_get_max_bucket_length,
54663 hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
54664 hash_rehash): Use size_t rather than unsigned.
54665 * lib/hash.c (struct hash_table, hash_get_n_buckets,
54666 hash_get_n_buckets_used, hash_get_n_entries,
54667 hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
54668 hash_get_entries, hash_do_for_each, hash_string, is_prime,
54669 next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
54671 (SIZE_MAX): Define if not defined.
54672 (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
54673 hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
54675 Use const * when possible.
54676 (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
54677 (check_tuning): Fix bug: if tuning parameters were very close to
54678 0 or 1, rounding errors could have caused subscript violations.
54679 (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
54680 (hash_initialize): Add 'fail:' label
54681 to free table and return NULL, and use it to simplify code.
54682 Use calloc rather than clearing the storage ourself.
54683 (hash_initialize, hash_rehash): Check for arithmetic overflow in
54684 buffer size calculations.
54685 * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
54686 Include <stddef.h>, for size_t.
54687 * lib/hash-pjw.c (hash_pjw): Likewise.
54688 Switch to method described by Bruno Haible.
54689 Include <limits.h>, for CHAR_BIT.
54690 (SIZE_BITS): New macro.
54692 2003-10-23 Paul Eggert <eggert@twinsun.com>
54694 * m4/getline.m4 (AM_FUNC_GETLINE):
54695 Don't include getndelim2.o twice into LIBOBJS; this breaks on some
54696 hosts. Problem reported by Derek Robert Price in
54697 <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
54698 This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
54699 * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
54701 2003-10-21 Paul Eggert <eggert@twinsun.com>
54703 * lib/getndelim2.c (getndelim2): When size calculation overflows,
54704 ceiling the allocation at NMAX bytes rather than silently
54705 discarding input bytes before NMAX is reached. This makes
54706 a difference only if NMAX exceeds SIZE_MAX / 2.
54708 * lib/obstack.c: Merge from glibc.
54709 [defined _LIBC]: Include <obstack.h>, not "obstack.h".
54710 Add libc_hidden_def (_obstack_newchunk).
54711 (_obstack_free) [! defined _LIBC]: Remove.
54712 [defined _LIBC]: Make a strong alias from obstack_free, rather than
54713 a clone of the function body.
54714 (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
54715 [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
54717 * lib/obstack.h: Indenting cleanup, to make it easier to merge with
54719 (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
54722 * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
54723 (obstack_ptr_grow_fast, obstack_int_grow_fast):
54724 Don't use lvalue casts, as GCC plans to remove support for them
54725 in GCC 3.5. Reported by Joseph S. Myers. This bug
54726 was also present in the non-GCC version, indicating that this
54727 code had always been buggy and had never been widely used.
54728 (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
54729 Use the fast variant of each macro, rather than copying the
54730 definiens of the fast variant; that way, we'll be more likely to
54731 catch future bugs in the fast variants.
54733 2003-10-20 Bruno Haible <bruno@clisp.org>
54735 * modules/wait-process: New file.
54736 * MODULES.html.sh (func_all_modules): Add wait-process.
54738 2003-10-20 Bruno Haible <bruno@clisp.org>
54740 * m4/wait-process.m4: New file.
54742 2003-10-20 Bruno Haible <bruno@clisp.org>
54744 * lib/wait-process.h: New file, from GNU gettext.
54745 * lib/wait-process.c: New file, from GNU gettext.
54747 2003-10-19 Jim Meyering <jim@meyering.net>
54749 * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
54752 2003-10-18 Karl Berry <karl@gnu.org>
54754 * config/config.guess: update from config.
54756 2003-10-16 Paul Eggert <eggert@twinsun.com>
54758 * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
54759 (getgroups): First arg is int, not size_t.
54760 Don't let 'free' mangle errno.
54762 2003-10-16 Paul Eggert <eggert@twinsun.com>
54764 * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
54766 2003-10-16 Karl Berry <karl@gnu.org>
54768 * config/config.{guess,sub}: update from config.
54770 2003-10-16 Jim Meyering <jim@meyering.net>
54772 * lib/xmalloc.c: Include <string.h>, for declarations of memset and
54775 2003-10-15 Paul Eggert <eggert@twinsun.com>
54777 * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
54778 (SIZE_MAX): Remove.
54779 (new_exclude, add_exclude_file): Initial size no longer needs to
54781 (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
54782 our own address arithmetic overflow checking.
54784 * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
54785 (fnmatch): Do not alloca more than 2000 wide characters;
54786 instead, use malloc for large buffers.
54787 Check for address arithmetic overflow, and return -1
54788 with errno set to ENOMEM in that case.
54789 * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
54790 (NEW_PATTERN): Do not alloca more than 8000 bytes;
54791 instead, return -1. Check for address arithmetic overflow.
54793 2003-10-14 Paul Eggert <eggert@twinsun.com>
54795 Handle invalid suffixes and overflow independently, so that
54796 callers can treat them independently as needed. Fix some bugs in
54797 suffix handling, e.g., "100k@" was not diagnosed as an invalid
54798 suffix for a human-readable blocksize. The major caller-visible
54799 change is the addition of a new
54800 LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
54801 that both overflow and suffix chars were found.
54803 * lib/human.c (humblock): Don't check separately for invalid suffix
54804 char; that is xstrtoumax's job (now that its bug is fixed).
54805 * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
54806 INTMAX_MAX]: New macros.
54807 * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
54808 TYPE_MAXIMUM): New macros.
54809 (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
54810 (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
54811 if overflow occurs, as it's what __strtol does and it's more useful
54813 (__xstrtol): If __strtol reports some error other than ERANGE,
54814 reflect it to the caller as LONGINT_INVALID. If it reports
54815 ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
54816 | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
54817 * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
54819 (_STRTOL_ERROR): Handle it. Abort when given unknown error codes.
54820 * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
54821 * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
54822 [defined UINTMAX_MAX]: New macros.
54824 2003-10-14 Bruno Haible <bruno@clisp.org>
54826 * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
54828 2003-10-14 Bruno Haible <bruno@clisp.org>
54830 * m4/sig_atomic_t: New file, from GNU gettext.
54831 * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
54833 2003-10-14 Bruno Haible <bruno@clisp.org>
54835 * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
54836 * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
54837 Also use volatile where needed.
54839 2003-10-12 Paul Eggert <eggert@twinsun.com>
54841 * modules/xalloc: Do not depend on 'exit'. Depend on 'stdbool'.
54842 Change maintainer from Bruno Haible to 'all'.
54844 2003-10-12 Paul Eggert <eggert@twinsun.com>
54846 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
54848 2003-10-12 Paul Eggert <eggert@twinsun.com>
54850 * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
54851 (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
54852 and define in terms of the other primitives.
54853 * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
54854 (SIZE_MAX): Define if not already defined.
54855 (array_size_overflow): New function.
54856 (xalloc_die): Abort instead of exiting if 'error' returns.
54857 (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
54858 (xmalloc, xrealloc): Use them.
54859 (xcalloc): Check for address arithmetic overflow.
54860 * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
54861 a bit faster than strcpy.
54863 2003-10-10 Simon Josefsson <jas@extundo.com>
54865 * modules/argp (Depends-on): Add restrict and strcase.
54867 2003-10-10 Simon Josefsson <jas@extundo.com>
54869 * m4/argp.m4: Add AC_C_INLINE.
54871 2003-10-08 Paul Eggert <eggert@twinsun.com>
54873 Merge getpass from libc, plus a few fixes.
54875 * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
54876 Include <stdbool.h>.
54877 Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
54878 __fsetlocking to empty.
54879 [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
54880 do include <bits/libc-lock.h>.
54881 Do not include <fcntl.h>; not needed.
54882 [_LIBC]: Include <wchar.h>.
54883 (NOTCANCEL_MODE): New macro.
54884 (flockfile, funlockfile) [_LIBC]: New macros.
54885 (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
54886 [!_LIBC]: New macros.
54887 (call_fclose): New function.
54888 (getpass): Use it. Save tty stream separately; this simplifies the
54889 code and makes it more reliable if stdin happens to equal stdout.
54890 Invoke __fsetlocking on tty.
54891 Handle thread cancellation if needed.
54892 Namespace cleanup (use __tcgetattr, __getline).
54893 Use bool for Booleans.
54894 [USE_IN_LIBIO]: Handle wide streams.
54895 [!_LIBC]: Unconditionally do the fseek, since we don't know what
54896 stream might go where.
54898 * lib/unlocked-io.h: Include <stdio.h>, so that the caller
54899 doesn't have to include <stdio.h> before us.
54900 (clearerr_unlocked, feof_unlocked, ferror_unlocked,
54901 fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
54902 fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
54903 putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
54904 if not declared, so that we can use getpass.c code from libc without
54906 (flockfile, ftrylockfile, funlockfile): New macros.
54908 2003-10-08 Paul Eggert <eggert@twinsun.com>
54910 * modules/getpass: Depend on stdbool.
54912 2003-10-08 Paul Eggert <eggert@twinsun.com>
54914 * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
54916 2003-10-07 Karl Berry <karl@gnu.org>
54918 * config/config.{guess,sub}: update from config.
54920 2003-10-06 Jim Meyering <jim@meyering.net>
54921 Bruno Haible <bruno@clisp.org>
54923 This lets translators provide better translations for the
54924 "Written by ..." part of --version output.
54925 * lib/version-etc.h: Include stdarg.h.
54926 (version_etc_copyright): Declare as readonly.
54927 (version_etc): Make this function variadic with a NULL-terminated list
54928 of author name strings.
54929 (version_etc_va): New declaration.
54930 * lib/version-etc.c: Include stdarg.h, stdlib.h.
54931 (version_etc_copyright): Declare as readonly.
54932 (version_etc_va): New function. Provide a different translatable string
54933 for each possible number of authors < 10. Abbreviate when there are 10
54935 (version_etc): Make this function variadic. Call version_etc_va.
54936 Suggestion from Gary V. Vaughan.
54938 * lib/long-options.h (parse_long_options): Change prototype: the
54939 authors string is moved to the end and becomes variadic.
54940 * lib/long-options.c: Include stdarg.h.
54941 (parse_long_options): Make this function variadic, too.
54942 Call version_etc_va, not version_etc.
54944 2003-10-06 Bruno Haible <bruno@clisp.org>
54946 * modules/version-etc-2: Remove file.
54947 * MODULES.html.sh (func_all_modules): Remove version-etc-2.
54949 2003-10-06 Bruno Haible <bruno@clisp.org>
54951 * modules/fatal-signal: New file.
54952 * MODULES.html.sh (func_all_modules): Add fatal-signal.
54954 2003-10-06 Bruno Haible <bruno@clisp.org>
54956 * m4/fatal-signal.m4: New file.
54957 * m4/signalblocking.m4: New file, from GNU gettext.
54959 2003-10-06 Bruno Haible <bruno@clisp.org>
54961 * lib/version-etc-2.h: Remove file.
54962 * lib/version-etc-2.c: Remove file.
54964 2003-10-06 Bruno Haible <bruno@clisp.org>
54966 * lib/fatal-signal.h: New file, from GNU gettext.
54967 * lib/fatal-signal.c: New file, from GNU gettext.
54969 2003-10-05 Paul Eggert <eggert@twinsun.com>
54971 * README: Rework advice for preventing empty .o files.
54972 Don't recommend ELIDE constructs. Recommend <stddef.h>,
54975 2003-10-04 Karl Berry <karl@gnu.org>
54977 * lib/argp*: update from libc.
54979 2003-10-04 Karl Berry <karl@gnu.org>
54981 * config/config.{guess,sub}: update from config.
54983 2003-10-02 Bruno Haible <bruno@clisp.org>
54985 * modules/lchown (Include): Add lchown.h.
54986 * modules/time_r (Include): Use "..." syntax.
54987 * modules/xgetdomainname (Include): Add xgetdomainname.h.
54989 2003-10-01 Simon Josefsson <jas@extundo.com>
54991 * MODULES.html.sh (func_all_modules): Move gethostname from section
54992 'based on' to section 'lacking' POSIX:2001.
54994 2003-10-01 Larry Jones <lawrence.jones@eds.com>
54996 * lib/getpass.c (getpass): Use a no-op fseek when switching from input
54997 to output mode on the same stream.
54999 2003-09-29 Paul Eggert <eggert@twinsun.com>
55001 * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
55002 Fix arg typo in previous patch.
55004 2003-09-28 Jim Meyering <jim@meyering.net>
55006 * lib/error.c: Correct cpp indentation.
55008 2003-09-27 Paul Eggert <eggert@twinsun.com>
55010 * modules/free: New file.
55012 2003-09-27 Paul Eggert <eggert@twinsun.com>
55014 * m4/free.m4: New file.
55016 2003-09-27 Paul Eggert <eggert@twinsun.com>
55018 * lib/minmax.h (MIN, MAX)
55019 [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
55020 Omit the special code that used __typeof__, since we worry that
55021 it could be more trouble than it's worth. See:
55022 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
55023 http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
55025 * lib/free.c: New file.
55027 2003-09-27 Oskar Liljeblad <oskar@osk.mine.nu>
55029 Trivial fixes to Makefile.am parts of module listings.
55030 * modules/strstr: Append strstr.h to lib_SOURCES.
55031 * modules/strcase: Likewise, for strcase.h.
55033 2003-09-27 Karl Berry <karl@gnu.org>
55035 * config/mkinstalldirs: update from automake.
55037 2003-09-26 Paul Eggert <eggert@twinsun.com>
55039 * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
55040 (error_tail): Do not loop, reallocating temporary buffer, since
55041 the output cannot contain more wide characters than the input
55042 contains bytes, the size must be big enough already. This avoids
55043 one potential size overflow calculation. Check for size overflow
55044 when calculating temporary buffer size. Free temporary buffer
55045 when done, if it was allocated with malloc; this plugs a memory
55046 leak. Remove casts from void * to pointers, that are no longer
55047 needed now that we're assuming C89 or better.
55049 Merge error changes from glibc.
55051 * lib/error.c, error.h: Update copyright notice header to match glibc.
55052 * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
55053 (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
55054 Disable cancellation while printing error.
55055 * lib/error.h: Prepend __ to parameter names.
55057 2003-09-26 Jim Meyering <jim@meyering.net>
55059 * lib/error.c (error_tail): Move some declarations
55060 into inner scope where the local variables are used.
55062 2003-09-26 Bruno Haible <bruno@clisp.org>
55064 * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
55066 Don't define stpncpy through config.h; it's now done through stpncpy.h.
55068 2003-09-26 Bruno Haible <bruno@clisp.org>
55070 * lib/stpncpy.h (gnu_stpncpy): New declaration.
55071 (stpncpy): Define as alias for gnu_stpncpy.
55072 * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
55074 2003-09-25 Simon Josefsson <jas@extundo.com>
55076 * lib/xgetdomainname.h: New file.
55077 * lib/xgetdomainname.c: New file.
55079 2003-09-25 Simon Josefsson <jas@extundo.com>
55080 Bruno Haible <bruno@clisp.org>
55082 * modules/getdomainname: New file.
55083 * modules/xgetdomainname: New file.
55084 * MODULES.html.sh (func_all_modules): Add getdomainname,
55087 2003-09-25 Simon Josefsson <jas@extundo.com>
55088 Bruno Haible <bruno@clisp.org>
55090 * m4/getdomainname.m4: New file.
55092 2003-09-25 Simon Josefsson <jas@extundo.com>
55093 Bruno Haible <bruno@clisp.org>
55095 * lib/getdomainname.h: New file.
55096 * lib/getdomainname.c: New file.
55098 2003-09-25 Karl Berry <karl@gnu.org>
55100 * lib/argp-fmtstream.c, argp-help.c: update from libc.
55102 2003-09-25 Karl Berry <karl@gnu.org>
55104 * config/install-sh: update from automake.
55106 2003-09-25 Bruno Haible <bruno@clisp.org>
55108 * modules/version-etc-2: New file, from modules/version-etc with
55110 * MODULES.html.sh (func_all_modules): Add version-etc-2.
55112 2003-09-25 Bruno Haible <bruno@clisp.org>
55114 * lib/version-etc-2.h: New file, from version-etc.h with modifications.
55115 * lib/version-etc-2.c: New file, from version-etc.c with modifications.
55117 2003-09-24 Simon Josefsson <jas@extundo.com>
55119 * modules/xgethostname: Add xgethostname.h.
55121 2003-09-24 Paul Eggert <eggert@twinsun.com>
55123 * lib/linebuffer.c (freebuffer): Don't free the argument, just
55124 the buffer associated with the argument. Bug reported by
55127 2003-09-24 Paul Eggert <eggert@twinsun.com>
55129 * README: Document assumptions that 'int' is at least 32 bits
55130 wide, that integer arithmetic is 2's complement without overflow,
55131 that there are no holes in integer values, that adding sizes of
55132 two nonoverlapping objects can't overflow, and that all-bits-zero
55133 yields scalar zero. Fix spelling and capitalization typos.
55135 2003-09-19 Karl Berry <karl@gnu.org>
55137 * lib/argp.h: update from libc.
55139 2003-09-17 Paul Eggert <eggert@twinsun.com>
55141 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
55142 to avoid spurious warnings like "AC_RUN_IFELSE was called before
55143 gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
55145 2003-09-17 Paul Eggert <eggert@twinsun.com>
55147 * gnulib-tool: Use "test -h", not "test -L", for portability
55148 to Solaris 8 /bin/sh. (This bug is fixed in Solaris 9.)
55149 (tags_regexp): Remove, since \| doesn't conform to POSIX.
55150 (sed_extract_prog): Issue s commands one-by-one, rather than
55151 using \| in one s command.
55153 2003-09-16 Paul Eggert <eggert@twinsun.com>
55155 * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
55156 input error, instead of returning NULL the next time we are called
55157 (and therefore losing track of errno).
55159 2003-09-16 Bruno Haible <bruno@clisp.org>
55161 * gnulib-tool (func_create_testdir): Warn about duplicated
55164 2003-09-15 Paul Eggert <eggert@twinsun.com>
55166 * modules/argmatch, modules/fatal, modules/obstack,
55167 modules/xalloc, modules/xgethostname: Sort dependencies by
55168 importance, not alphabetically.
55170 2003-09-15 Paul Eggert <eggert@twinsun.com>
55172 * lib/getndelim2.c (getndelim2): Don't trash errno when a read
55173 fails, so that the caller gets the proper errno.
55175 * lib/readutmp.c (read_utmp): Likewise.
55176 Check for fstat error. Close stream and free storage
55179 2003-09-14 Karl Berry <karl@gnu.org>
55181 * config/srclist.txt (strdup.c): disable for c89 changes.
55183 2003-09-14 Jim Meyering <jim@meyering.net>
55185 * lib/getloadavg.c: Correct cpp indentation.
55186 * lib/strdup.c: Likewise.
55187 * lib/vasnprintf.c: Likewise.
55189 2003-09-14 Bruno Haible <bruno@clisp.org>
55191 * modules/fwriteerror: New file.
55192 * MODULES.html.sh (func_all_modules): Add fwriteerror.
55194 2003-09-14 Bruno Haible <bruno@clisp.org>
55196 * lib/fwriteerror.h: New file.
55197 * lib/fwriteerror.c: New file.
55199 2003-09-12 Paul Eggert <eggert@twinsun.com>
55201 * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
55202 modules/xgethostname, modules/xalloc: Depend on exit.
55204 2003-09-12 Paul Eggert <eggert@twinsun.com>
55206 * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
55208 * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
55209 and AC_MINIX, too, so that their extensions are available.
55211 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove. All uses removed.
55212 This macro has been superseded by gl_BACKUPFILE.
55214 More patches to assume C89 or better.
55216 * m4/error.m4 (gl_ERROR): Don't check for vprintf.
55218 * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
55220 * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
55221 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
55222 Include <string.h>, <stdlib.h> unconditionally.
55223 * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
55224 * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
55225 * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
55226 headers or for string.h.
55227 * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
55230 * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
55232 * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
55233 * m4/userspec.m4 (gl_USERSPEC): Likewise.
55234 * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
55235 * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
55236 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
55237 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
55239 (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
55240 * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
55241 * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
55243 * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
55244 * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
55245 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
55248 2003-09-12 Paul Eggert <eggert@twinsun.com>
55250 * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
55251 * lib/obstack.c [!defined _LIBC]: Likewise.
55252 * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
55253 * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
55254 * lib/exitfail.c: Don't include stdlib.h; no longer needed.
55256 More changes to assume C89 or better.
55258 * lib/error.c (error_tail): Assume vprintf.
55260 * lib/argmatch.c (getenv): Remove decl.
55261 * lib/progreloc.c (get_full_program_name): Define via prototype.
55262 * lib/setenv.c (clearenv): Likewise.
55263 * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
55265 * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
55266 (malloc, memcpy): Remove decls.
55267 * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
55268 (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
55269 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55270 (memcpy): Remove macro.
55271 (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
55272 (__P): Remove. All uses removed.
55273 (PTR): Remove. All uses changed to void *.
55274 (CHAR_BIT, NULL): Remove.
55275 (spaces, zeros, memset_space, memset_zero)
55276 [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
55278 (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
55279 (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
55280 Define with prototype.
55281 Remove now-unnecessary prototype decl.
55282 (extra_args_spec): Assume ANSI C. All uses changed.
55283 (extra_args_spec_iso): Remove.
55284 (my_strftime, emacs_strftimeu): Define via prototype.
55285 * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
55287 (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
55288 * lib/strtoimax.c: Include <stdlib.h> unconditionally.
55289 (strtoul, strtol): Remove decls.
55290 * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
55292 Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
55293 (LOCALE_PARAM_DECL): Remove. All uses changed to LOCALE_PARAM_PROTO.
55294 (LOCALE_PARAM_PROTO): New macro.
55295 (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
55296 (INTERNAL (strtol), strtol): Define with a prototype.
55297 (PARAMS): Remove. All uses removed.
55298 * lib/tempname.c: Include <string.h> unconditionally.
55299 * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
55300 * lib/xgethostname.c (main): Define with a prototype.
55301 * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
55302 Include <stdlib.h> unconditionally.
55303 (calloc, malloc, realloc, free): Remove decls.
55304 * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
55305 Include <stdlib.h> unconditionally. Sort include file names.
55307 (xstrtod): Define with a prototype.
55308 * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
55309 (strtol, strtoul): Remove decls.
55311 2003-09-11 Paul Eggert <eggert@twinsun.com>
55313 More patches to assume C89 or better.
55314 * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
55315 * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
55316 string.h, memchr, STDC_HEADERS.
55318 2003-09-11 Paul Eggert <eggert@twinsun.com>
55320 * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
55321 Include <stdlib.h>, <string.h> unconditionally.
55322 Remove now-unnecessary cast to char *.
55323 * lib/strnlen.c: Include <string.h> unconditionally.
55324 * lib/yesno.c (yesno): Define with a prototype.
55326 2003-09-11 Bruno Haible <bruno@clisp.org>
55328 * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
55330 2003-09-10 Jim Meyering <jim@meyering.net>
55332 * lib/error.c: Correct indentation of cpp directives.
55334 2003-09-10 Bruno Haible <bruno@clisp.org>
55336 * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
55337 * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
55338 * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
55339 * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
55340 * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
55341 <stdlib.h> and <string.h> checks.
55342 * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
55343 * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
55345 2003-09-10 Bruno Haible <bruno@clisp.org>
55347 * lib/strcspn.c: Include <string.h> unconditionally.
55348 * lib/strpbrk.c: Include <string.h> unconditionally.
55349 * lib/strstr.c: Include <string.h> unconditionally.
55350 * lib/unicodeio.c: Include <string.h> unconditionally.
55351 * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
55352 * lib/unsetenv.c: Likewise.
55353 * lib/xreadlink.c: Include <stdlib.h> unconditionally.
55354 * lib/yesno.c: Include <stdlib.h> unconditionally.
55355 (rpmatch): Add prototype.
55357 2003-09-09 Paul Eggert <eggert@twinsun.com>
55359 More patches to assume C89 or better.
55360 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
55361 * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
55362 * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
55364 * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
55366 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
55368 * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
55370 * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
55371 * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
55372 * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
55374 * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
55375 * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
55377 * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
55379 * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
55380 * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
55381 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
55382 * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
55383 * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
55384 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
55386 * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
55387 * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
55388 * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
55389 C headers, or for string.h.
55390 * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
55391 (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
55392 * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
55393 headers, memory.h, stdlib.h, string.h, strings.h.
55394 * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
55395 * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
55396 * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
55398 * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
55399 headers, memory.h, string.h.
55400 * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
55401 * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
55403 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
55405 * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
55406 * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
55407 * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
55408 * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
55409 * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
55411 2003-09-09 Paul Eggert <eggert@twinsun.com>
55415 * lib/acosl.c (main): Use a prototype.
55416 * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
55419 * lib/getloadavg.c (getloadavg, main): Define via prototypes.
55421 * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
55422 (getopt, etopt_long, getopt_long_only, _getopt_internal)
55423 [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
55425 * lib/getopt.c (const): Remove macro.
55426 Include <string.h> unconditionally.
55427 (my_index): Remove; all uses changed to strchr.
55428 (strlen): Remove decl.
55429 (exchange): Remove forward decl; no longer needed.
55430 (exchange, _getopt_initialize, _getopt_internal, getopt, main):
55431 Define with prototype.
55432 * lib/getopt1.c (const): Remove macro.
55433 (getopt_long, getopt_long_only, main): Define with prototype.
55435 * lib/getugroups.c: Include <string.h> unconditionally.
55437 * lib/getusershell.c: Include <stdlib.h> unconditionally.
55438 (getusershell, setusershell, endusershell, readname, main):
55439 Define with prototypes.
55441 * lib/group-member.c: Include group-member.h first.
55442 Include <stdlib.h> unconditionally.
55444 * lib/hard-locale.c: Include hard-locale.h first.
55445 Include <stdlib.h>, <string.h> unconditionally.
55447 * lib/hash.c (free, malloc): Remove decls.
55448 Include <stdlib.h> unconditionally.
55450 * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
55451 (getenv): Do not declare.
55453 * lib/idcache.c: Include <string.h> unconditionally.
55455 * lib/long-options.c: Include long-options.h first, to test interface.
55456 Include <stdlib.h> unconditionally.
55458 * lib/makepath.c: Include makepath.h first, to test interface.
55459 Include <stdlib.h> and <string.h> unconditionally.
55461 * lib/linebuffer.c: Include <stdlib.h>.
55462 (free): Remove decl.
55464 * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
55465 stddef.h. rpl_malloc returns void *, not char *.
55466 * lib/realloc.c (rpl_realloc): Likewise. Also, define with a
55469 * lib/md5.h: Include <limits.h> unconditionally.
55470 (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
55471 (__P): Remove; all uses removed.
55472 * lib/md5.c: Include "md5.h" first.
55473 (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
55474 md5_buffer, md5_process_bytes, md5_process_block):
55475 Define with prototypes.
55476 * lib/sha.h (__P): Remove all uses. (It wasn't defined??)
55477 * lib/sha.c: Include "sha.h" first.
55478 Include <stdlib.h>, <string.h> unconditionally.
55480 * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
55481 * lib/memcmp.c (__ptr_t): Likewise.
55482 * lib/memrchr.c (__ptr_t): Likewise.
55483 * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
55484 Include <string.h> unconditionally.
55485 * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
55486 * lib/memchr.c: Include <stdlib.h> unconditionally.
55487 * lib/memchr.c (LONG_MAX): Remove.
55488 * lib/memrchr.c (LONG_MAX): Likewise.
55489 * lib/memchr.c (__memchr): Define via a prototype.
55490 * lib/memrchr.c (__memrchr): Likewise.
55491 * lib/memcmp.c (__P): Remove, and remove all uses.
55492 (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
55493 Remove forward decls; no longer needed.
55494 * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
55495 Use types required by C89 in prototype.
55497 * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
55498 * lib/savedir.c: Likewise.
55499 * lib/mkdir.c (free): Remove decl.
55500 * lib/rmdir.c (rmdir): Define with a prototype.
55501 * lib/savedir.c: Include savedir.h first, to test interface.
55503 * lib/mktime.c (STDC_HEADERS): Remove.
55504 Include <stdlib.h>, <string.h> unconditionally.
55506 * lib/modechange.c: Include <stdlib.h> unconditionally.
55507 (malloc): Remove decl.
55509 * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
55510 (free): Remove decl.
55512 * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
55513 Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
55514 (This type really should be intptr_t, but that's a C99ism.)
55515 (_obstack_memcpy): Remove: all uses changed to memcpy.
55516 Include <string.h> unconditionally.
55517 (struct obstack): Assume __STDC__ for types of members
55518 chunkfun, freefun, extra_arg.
55519 (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
55520 _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
55521 obstack_begin, obstack_specify_allocation,
55522 obstack_specify_allocation_with_arg, obstack_chunkfun,
55523 obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
55524 Remove unprototyped decls and the macros that use them.
55525 * lib/obstack.c (POINTER): Remove. All uses changed to void *.
55526 (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
55527 _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
55528 (defined __STDC__ && __STDC__)]:
55529 Remove nonprototyped code.
55530 Include <stdlib.h> unconditionally.
55531 (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
55532 _obstack_allocated_p, _obstack_free, obstack_free,
55533 _obstack_memory_used, print_and_abort):
55534 Define using prototypes.
55535 (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
55536 obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
55537 obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
55538 obstack_next_free, obstack_object_size, obstack_room) [0]:
55539 Remove unused, unprototyped code.
55541 * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
55543 * lib/physmem.c (physmem_total, physmem_available, main): Define
55546 * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
55547 (main): Define with a prototype.
55549 * lib/posixver.c (getenv): Remove decl.
55551 * lib/putenv.c (malloc): Returns void *, not char *.
55552 Include <string.h> unconditionally.
55553 (strchr, memcpy, NULL): Do not define.
55555 * lib/readtokens.c: Include readtokens.h first, to test interface.
55556 Include <stdlib.h>, <string.h> unconditionally.
55557 (init_tokenbuffer): Define with a prototype.
55559 * lib/regex.c (PARAMS): Remove. All uses removed.
55560 All uses of _RE_ARGS removed, too.
55561 Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
55563 (bzero): Assume memset exists.
55564 (memcmp, memcpy, NULL): Remove.
55565 (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
55566 char, or assignments to local vars of type signed char.
55567 (init_syntax_once, PREFIX(extract_number_and_incr),
55568 PREFIX(print_partial_compiled_pattern),
55569 PREFIX(print_compiled_pattern), PREFIX(print_double_string),
55570 convert_mbs_to_wcs, print_fastmap, re_set_syntax,
55571 PREFIX(regex_grow_registers), PREFIX(regex_compile),
55572 PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
55573 PREFIX(insert_op2), PREFIX(at_begline_loc_p),
55574 PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
55575 wcs_compile_range, byte_compile_range, truncate_wchar,
55576 PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
55577 re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
55578 count_mbs_length, wcs_re_match_2_internal,
55579 byte_re_match_2_internal, PREFIX(group_match_null_string_p),
55580 PREFIX(alt_match_null_string_p),
55581 PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
55582 re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
55583 regfree, PREFIX(extract_number)): Define with prototype. Remove
55584 now-unnecessary declaration, if any.
55585 (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
55587 Remove now-unnecessary casts among pointer types.
55588 * lib/regex.h (_RE_ARGS): Remove. All uses removed.
55590 * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
55591 (free): Remove decl.
55593 * lib/rpmatch.c: Include <stdlib.h> unconditionally.
55595 * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
55596 (free): Remove decl.
55598 * lib/save-cwd.c: Include <stdlib.h> unconditionally.
55599 * lib/xgetcwd.c: Likewise.
55601 * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
55602 (free): Remove decl.
55604 * lib/strchrnul.c (strchrnul): Define with a prototype.
55605 Fix bug: c_in was not converted to char before searching.
55607 The following changes are not K&R related:
55609 * lib/group-member.h: Include <sys/types.h>, so that this file is
55611 * lib/makepath.h: Likewise.
55613 * lib/getusershell.c (readname, default_index, line_size, readname):
55614 Use size_t, not int, for sizes.
55615 (readname): If the size overflows, report an error instead of
55618 2003-09-09 Paul Eggert <eggert@twinsun.com>
55620 * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
55623 2003-09-09 Paul Eggert <eggert@twinsun.com>
55625 * README: New section: portability guidelines.
55627 2003-09-09 Derek Robert Price <derek@ximbiot.com>
55629 * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
55632 2003-09-09 Derek Robert Price <derek@ximbiot.com>
55634 * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
55636 2003-09-08 Paul Eggert <eggert@twinsun.com>
55638 Assume C89 or better; remove K&R cruft.
55639 A few of these changes were first proposed by Derek Robert Price
55640 in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
55642 * lib/addext.c: Include <string.h> unconditionally.
55643 * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
55644 Don't declare getenv or malloc.
55646 * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
55647 (POINTER_TYPE, pointer): Remove; all uses changed to void *.
55649 (find_stack_direction, alloca): Use prototypes.
55651 * lib/atexit.c (atexit): Define using a prototype.
55653 * lib/basename.c, dirname.c, stripslash.c:
55654 Include <string.h> unconditionally.
55656 * lib/bcopy.c: Include <stddef.h>.
55657 (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
55659 * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
55661 * lib/error.h (error, error_at_line, error_print_progname)
55662 [! (defined (__STDC__) && __STDC__)]: Remove decls.
55663 * lib/error.c: Include error.h first, to check interface.
55664 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55665 (VA_START): Remove; all uses changeed to va_start.
55666 (exit, strerror): Remove decls.
55667 (error_print_progname): Prototype uncondionally.
55668 Don't include <errno.h>; no longer needed.
55669 (private_strerror): Remove.
55670 (error_tail): Always define.
55671 (error, error_at_line): Assume C89 or better; always use prototypes.
55672 * lib/fatal.c: Include "fatal.h" first, to test interface.
55673 Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
55674 (VA_START): Remove; all uses changed to va_start.
55675 [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
55677 (exit): Remove decl.
55678 (fatal): Prototype unconditionally. Assume va_start works.
55679 Abort at end, to pacify gcc.
55681 * lib/euidaccess.c (main): Define with a prototype.
55683 * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
55685 * lib/exitfail.c: Include <stdlib.h> unconditionally.
55687 * lib/fnmatch_.h (__P): Remove. All uses changed to assume
55689 * lib/fnmatch.c: Include fnmatch.h first, to test interface.
55690 Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
55691 (getenv): Remove decl.
55692 (fnmatch): Define using a prototype.
55693 * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
55694 (FCT): Define using a prototype.
55696 * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
55698 * lib/gethostname.c: Include <stddef.h>.
55699 (gethostname): Define with prototype. Length is size_t, not int.
55701 2003-09-08 Paul Eggert <eggert@twinsun.com>
55703 Assume C89 or better; remove K&R cruft.
55704 * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
55705 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
55706 string.h, getenv, malloc.
55707 * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
55709 * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
55710 * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
55711 do not check for strerror.
55712 * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
55713 * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
55714 * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
55715 do not check for doprnt or vprintf.
55716 * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove. All uses removed.
55717 * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
55719 2003-09-08 Paul Eggert <eggert@twinsun.com>
55721 * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
55722 getversion.c should have been removed then, but was accidentally
55725 * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
55726 (utime_null): Fix typo: 'st' was sometimes called 'sb'.
55728 2003-09-08 Karl Berry <karl@gnu.org>
55730 * config/config.sub, config.guess, srclistvars.sh: update from savannah
55731 config, forget about prep.
55733 * config/depcomp, missing: update from automake.
55735 2003-09-07 Paul Eggert <eggert@twinsun.com>
55737 * modules/time_r: Depend on 'restrict'. Fix from Simon Josefsson in
55738 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55740 2003-09-07 Paul Eggert <eggert@twinsun.com>
55742 * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
55743 copy_tm_result. Bug reported by Simon Josefsson in
55744 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
55746 2003-09-06 Paul Eggert <eggert@twinsun.com>
55748 * m4/time_r.m4: New file.
55749 * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
55750 * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
55751 is. Check for timegm declaration.
55752 (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
55753 Do not check for gmtime_r.
55754 Replace mktime if __mktime_internal does not exist and if mktime
55755 hasn't been replaced already.
55757 2003-09-06 Paul Eggert <eggert@twinsun.com>
55759 * lib/time_r.c, lib/time_r.h: New files.
55761 * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
55763 (__localtime_r) [!defined _LIBC]: New macro. Include <time_r.h>.
55764 (__mktime_internal) [!defined _LIBC]: Now extern, not static.
55766 * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
55768 (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
55769 (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
55770 Include <time_r.h>.
55772 * lib/timegm.c: Switch to glibc implementation, with the following
55774 [defined HAVE_CONFIG_H]: Include <config.h>.
55775 [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
55776 (__mktime_internal) [!defined _LIBC]: New decl.
55777 (__gmtime_r) [!defined _LIBC]: New macro and function.
55778 (timegm): Use a prototype, since gnulib assumes C89.
55779 Do not bother declaring tmp to be const, as it's not really usefu.
55780 * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
55781 (timegm): Declare only if HAVE_DECL_TIMEGM.
55783 2003-09-06 Paul Eggert <eggert@twinsun.com>
55785 * MODULES.html.sh (func_all_modules): Add time_r.
55786 * modules/time_r: New file.
55787 * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
55788 * modules/timegm: Depend on mktime. Change maintainer to "all, glibc".
55790 2003-09-03 Paul Eggert <eggert@twinsun.com>
55792 * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
55793 Bug reported by Lute Kamstra in
55794 <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
55796 * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
55797 "yesterday", "today", and "now" rather than tMINUTE_UNIT. Of
55798 course with correspondingly smaller numbers for tomorrow and
55799 yesterday. From Tadayoshi Funaba. Originally installed into
55800 sh-utils on 1999-08-07, but the patch got lost (I guess during the
55803 2003-08-31 Simon Josefsson <jas@extundo.com>
55805 * modules/timegm: New file.
55806 * MODULES.html.sh (func_all_modules): Add timegm.
55808 2003-08-31 Simon Josefsson <jas@extundo.com>
55810 * m4/timegm.m4: New file.
55812 2003-08-31 Simon Josefsson <jas@extundo.com>
55814 * lib/timegm.h: New file.
55815 * lib/timegm.c: New file. Based on
55816 wget-1.8.2/src/http.c:mktime_from_utc.
55818 2003-08-31 Karl Berry <karl@gnu.org>
55820 * lib/argp.h: update from libc.
55822 2003-08-28 Bruno Haible <bruno@clisp.org>
55824 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
55825 This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
55826 followed by '#define fnmatch fnmatch_posix' gives an error.
55828 2003-08-28 Bruno Haible <bruno@clisp.org>
55830 * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
55831 warning on QNX, which defines O_BINARY to 000000.
55833 2003-08-27 Jim Meyering <jim@meyering.net>
55835 * m4/mkstemp.m4: Require that the system mkstemp be able to create
55836 70 temporary files, not just 30. Tru64 V4.0F's mkstemp function
55837 would fail after 32. Reported by Danny Levinson. Details here:
55838 http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
55840 2003-08-24 Bruno Haible <bruno@clisp.org>
55842 * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
55843 MSVC7 <stdio.h> is included later.
55845 2003-08-22 Simon Josefsson <jas@extundo.com>
55847 * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
55849 2003-08-20 Karl Berry <karl@gnu.org>
55851 * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
55853 2003-08-20 Bruno Haible <bruno@clisp.org>
55855 * modules/progname: New file.
55856 * MODULES.html.sh (func_all_modules): Add progname.
55858 2003-08-20 Bruno Haible <bruno@clisp.org>
55860 * lib/progname.h: New file, from GNU gettext.
55861 * lib/progname.c: New file, from GNU gettext.
55862 * lib/progreloc.c: New file, from GNU gettext.
55864 2003-08-19 Jim Meyering <jim@meyering.net>
55866 * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
55867 http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
55869 2003-08-19 Bruno Haible <bruno@clisp.org>
55871 * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
55874 2003-08-19 Bruno Haible <bruno@clisp.org>
55876 * lib/xstrdup.c: Assume <string.h> exists.
55878 2003-08-18 Paul Eggert <eggert@twinsun.com>
55880 * modules/stdbool: Add BUILT_SOURCES. Prefer $@ to target name
55883 2003-08-18 Jim Meyering <jim@meyering.net>
55885 * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
55886 * m4/lib-ld.m4: Likewise.
55888 2003-08-18 Jim Meyering <jim@meyering.net>
55890 * lib/setenv.h: Indent nested cpp directive.
55891 * lib/vasnprintf.c: Remove trailing blanks.
55893 2003-08-17 Simon Josefsson <jas@extundo.com>
55895 * modules/xstrndup: New file.
55896 * MODULES.html.sh (func_all_modules): Add xstrndup.
55898 2003-08-17 Simon Josefsson <jas@extundo.com>
55900 * modules/argp: Fix autoconf macro name. Add more dependencies.
55902 2003-08-17 Simon Josefsson <jas@extundo.com>
55904 * m4/xstrndup.m4: New file.
55906 2003-08-17 Simon Josefsson <jas@extundo.com>
55908 * m4/argp.m4: New file.
55910 2003-08-17 Simon Josefsson <jas@extundo.com>
55911 Bruno Haible <bruno@clisp.org>
55913 * lib/xstrndup.h: New file.
55914 * lib/xstrndup.c: New file.
55916 2003-08-17 Bruno Haible <bruno@clisp.org>
55918 * modules/strndup (Files, Include): Add lib/strndup.h.
55920 2003-08-17 Bruno Haible <bruno@clisp.org>
55922 * modules/euidaccess (Files): Add lib/euidaccess.h.
55924 2003-08-17 Bruno Haible <bruno@clisp.org>
55926 * lib/strndup.h: New file.
55928 2003-08-17 Bruno Haible <bruno@clisp.org>
55930 * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
55931 like AC_GNU_SOURCE.
55932 * modules/extensions (configure.ac): Comment out the invocation of
55933 gl_USE_SYSTEM_EXTENSIONS.
55935 2003-08-16 Paul Eggert <eggert@twinsun.com>
55937 Merges from coreutils, etc.
55938 * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
55939 error in gl_FUNC_MATCH. This fixes a bug I introduced on 2003-05-28.
55940 * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
55942 * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
55943 * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
55945 2003-08-16 Paul Eggert <eggert@twinsun.com>
55947 Document merge from coreutils.
55948 * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
55949 * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
55950 * modules/utime: Add m4/utimes-null.m4.
55952 2003-08-16 Paul Eggert <eggert@twinsun.com>
55954 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
55955 space, undoing this 2003-08-12 change:
55956 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55958 2003-08-16 Paul Eggert <eggert@twinsun.com>
55960 * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
55961 strtoul.c from libc, undoing this 2003-08-12 change:
55962 <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
55964 2003-08-16 Jim Meyering <jim@meyering.net>
55966 Merges from coreutils.
55967 * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
55968 prefix. Adjust cache variables similarly. Create 500 rather than
55969 just 300 files, to exercise bug on Darwin6.5, too.
55970 * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
55972 * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
55973 AM_SYS_POSIX_TERMIOS.
55974 Reported by mkc@mathdogs.com.
55975 Also change use of $am_cv_sys_posix_termios
55976 to $ac_cv_sys_posix_termios. Reported by Andreas Schwab.
55977 * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
55978 and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
55979 * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
55980 in /proc/mounts until it finds one with matching device number. This
55981 is unnecessary when the FILE argument *is* a mount point. No stat call
55982 is necessary in that case. So, disable the statvfs-testing code on
55983 systems with GNU libc. Reported by Andrei Gaponenko via Tim Waugh
55984 as RedHat bug# 84846.
55985 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
55986 to 1MB, so as not to render systems with no stack size limit (e.g.,
55987 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
55988 Include <unistd.h>. On some systems,
55989 it is required for the definition of _SC_PAGESIZE.
55991 2003-08-16 Jim Meyering <jim@meyering.net>
55993 Merge from coreutils.
55994 * lib/xstrtoimax.c: #else #if -> #elif.
55995 * lib/xstrtoumax.c: Likewise.
55997 2003-08-16 Jim Meyering <jim@meyering.net>
55999 * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
56000 * m4/utimes.m4: Removed.
56001 * m4/utimes-null.m4: Renamed from utimes.m4.
56003 * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
56004 to 1MB, so as not to render systems with no stack size limit (e.g.,
56005 linux-2.2.x) unusable. Suggestion and code from Bruno Haible.
56006 Include <unistd.h>. On some systems,
56007 it is required for the definition of _SC_PAGESIZE.
56009 2003-08-16 Jim Meyering <jim@meyering.net>
56010 and Paul Eggert <eggert@cs.ucla.edu>
56012 Merges from coreutils, etc.
56014 * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
56015 using the latest version from cvs. This avoids problems with #line
56016 directives using a vendor (Sun) compiler.
56017 (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
56018 Don't set GETGROUPS_LIB here; now it's
56019 done via getgroups.m4's wrapper function.
56020 AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
56021 rather than just in sh-util/configure.in, so that the
56022 now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
56024 Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
56025 AC_FUNC_GETLOADAVG where to find getloadavg.c.
56026 Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
56027 UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
56028 gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
56029 Remove code that is now done by the newly-required macros.
56030 Append $(EXEEXT) to DF_PROG.
56031 AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
56032 Do not invoke or require the following here,
56033 since prereq.m4 or some gnulib .m4 now does this for us:
56034 gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
56035 jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
56036 jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
56037 jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
56038 jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
56039 AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
56040 vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
56042 Do not replace the following functions, as this is now the job
56043 of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
56044 getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
56045 strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
56046 atexit getpass, strdup, getpagesize.
56048 Do not check for the following functions, as this is now the job
56049 of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
56050 getcwd, getmntinfo, resolvepath. But check for sysctl, setreuid,
56052 (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
56053 Check for sys/sysctl.h.
56054 (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
56055 jm_CHECK_TYPE_STRUCT_TIMESPEC. Invoke gt_TYPE_SSIZE_T instead
56056 of checking for ssize_t ourselves.
56058 * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
56059 Require every macro that gnulib/modules/* suggests for us.
56060 (jm_PREREQ_ADDEXT): New macro.
56061 (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
56062 Require jm_AC_TYPE_LONG_LONG instead of invoking it.
56064 * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
56065 (gl_PHYSMEM): Use it.
56066 Also check for `table' function.
56067 Check for new headers and functions.
56068 Add check for sys/sysmp.h.
56069 With suggestions from Kaveh Ghazi.
56070 Ignore headers that are present but cannot be compiled. This
56071 avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
56074 2003-08-15 Paul Eggert <eggert@twinsun.com>
56076 Document merge from coreutils.
56077 * modules/userspec: Depend on posixver.
56078 * modules/strftime: Depend on tzset.
56080 2003-08-15 Paul Eggert <eggert@twinsun.com>
56082 * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
56083 rather than tab, after '#' in shell-script copyright notices.
56084 Suggested by Bruno Haible.
56086 2003-08-15 Paul Eggert <eggert@twinsun.com>
56088 * config/srclist-update: Use three spaces, rather than tab, after '#'
56089 in shell-script copyright notices. Suggested by Bruno Haible.
56090 Remove unnecessary parenthesization in regular expression.
56092 2003-08-15 Jim Meyering <jim@meyering.net>
56094 Merge from coreutils.
56095 * lib/xgethostname.c: Include <stdlib.h>.
56096 (xghostname): Don't exit for anything other than memory-related
56097 failure; just return NULL.
56098 * lib/userspec.c: Include "posixver.h".
56099 (parse_user_spec): Accept `.' as a separator only
56100 in pre-POSIX-200112 mode.
56101 * lib/strtoimax.c: Use #elif rather than #else #if.
56102 * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
56103 Remove function, now that we can rely on a working tzset function.
56104 [!_LIBC]: Ensure that the required autoconf test has been run.
56105 [!defined _NL_CURRENT && HAVE_STRFTIME]:
56106 Use underlying_strftime for %r.
56107 * lib/sha.c: Merge in some clean-up and optimization changes from
56109 * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
56110 Ensure that it is a multiple of 64.
56111 Rearrange loop exit tests so as to avoid performing an
56112 additional fread after encountering an error or EOF.
56113 * lib/realloc.c: Update copyright date.
56115 2003-08-15 Jim Meyering <jim@meyering.net>
56116 and Paul Eggert <eggert@twinsun.com>
56118 Merge from coreutils.
56119 * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
56120 member but strut utmpx does not. Needed for AIX 4.3.3.
56121 (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
56123 2003-08-15 Jim Meyering <jim@meyering.net>
56124 and Paul Eggert <eggert@cs.ucla.edu>
56126 Merges from coreutils, etc.
56127 * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
56128 Require gl_FUNC_TZSET_CLOBBER.
56129 * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
56130 ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
56133 2003-08-14 Paul Eggert <eggert@twinsun.com>
56135 Help the merge from coreutils.
56136 * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
56137 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
56138 * m4/tzset.m4: Use it too.
56140 2003-08-14 Paul Eggert <eggert@twinsun.com>
56142 * modules/tzset: New file.
56144 2003-08-14 Jim Meyering <jim@meyering.net>
56146 Merges from coreutils.
56147 * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
56148 variable names, rather than @FNMATCH_H@.
56149 * modules/alloca: Likewise for $(ALLOCA_H).
56151 * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
56152 the three copies of the literal target, `fnmatch.h'.
56153 * modules/alloca (alloca.h): Likewise.
56155 2003-08-14 Jim Meyering <jim@meyering.net>
56157 Merge from coreutils.
56158 * m4/tzset.m4: New file.
56159 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
56160 MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
56161 otherwise, AIX 5.1 systems would end up using the latter.
56162 MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
56163 whether a file system is remote doesn't work 2) the MOUNTED_VMOUNT
56164 code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
56165 code reports merely /MOUNT_POINT. Reported by Mike Jetzer.
56167 2003-08-14 Jim Meyering <jim@meyering.net>
56169 Merge from coreutils.
56170 * lib/obstack.h: Whitespace changes.
56171 * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
56172 and xcalloc return values.
56173 (read_filesystem_list) [MOUNTED_GETFSSTAT]:
56174 Use MNT_NOWAIT, rather than MNT_WAIT. Otherwise, `df DIR' could
56175 hang on OSF/1 5.1 for DIR on both local and remote file systems.
56176 Reported by (and fix confirmed by) Nelson H. F. Beebe.
56177 (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
56179 Use mntctl's return value to drive the entry-processing loop, since
56180 we can't rely on the value of the vmt_length member in the last
56181 entry. On some systems doing so could result in exhausting
56182 virtual memory. Based in part on a patch from Mike Jetzer.
56184 2003-08-14 Jim Meyering <jim@meyering.net>
56185 and Paul Eggert <eggert@twinsun.com>
56187 Merges from coreutils, plus other fixes.
56188 * lib/physmem.c: Merge in portability changes from gcc/libiberty
56189 to support AIX, IRIX, Tru64, and Windows. See the ChangeLog there
56190 for credits and details. Thanks to Kaveh Ghazi for helping
56191 to keep these files in sync.
56192 (ARRAY_SIZE): Define it.
56193 (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
56194 * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
56195 (memcasecmp): Don't assume size_t fits in unsigned int.
56196 Remove casts and duplicate code.
56197 * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
56198 (memcpy): Remove definition.
56199 Merge in some clean-up and optimization changes from glibc.
56200 [BLOCKSIZE]: Move definition to top of file.
56201 Ensure that it is a multiple of 64.
56202 Rearrange loop exit tests so as to avoid performing an
56203 additional fread after encountering an error or EOF.
56204 * lib/md5.h (md5_uintptr): Define.
56205 * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
56206 return to the initial working directory. Preserve errno
56208 * lib/idcache.c: Include "xalloc.h".
56209 (xmalloc, xrealloc): Remove decls.
56210 (getuser): Remove casts no longer required in C89.
56211 * lib/human.c: Include stdio.h, for sprintf.
56212 * lib/group-member.c: Include "xalloc.h".
56213 (xmalloc, xrealloc): Remove decls.
56214 (get_group_info): Remove casts no longer required in C89.
56215 * lib/getusershell.c (readname): Remove casts no longer required in
56217 * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
56218 * lib/getline.c: Whitespace fix, from coreutils.
56220 2003-08-13 Paul Eggert <eggert@twinsun.com>
56222 * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
56225 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56226 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56227 Undo previous (whitespace-only) change.
56229 2003-08-13 Paul Eggert <eggert@twinsun.com>
56231 * lib/exclude.c: Include <ctype.h>
56232 (IN_CTYPE_DOMAIN): New macro.
56233 (is_space): New fn.
56234 (add_exclude_file): If LINE_END is a space, ignore trailing spaces
56237 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56238 Undo previous (whitespace-only) change.
56240 2003-08-13 Paul Eggert <eggert@twinsun.com>
56242 * config/srclist-update: Change update back to the old behavior,
56243 leaving whitespace alone. Use one 'sed' command rather than a
56245 (fixlicense): Now a variable, not a function.
56246 (remove_trailing_blanks): Remove.
56247 (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
56248 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56249 Undo previous (whitespace-only) change.
56251 2003-08-12 Paul Eggert <eggert@twinsun.com>
56253 Merge from coreutils.
56254 * modules/euidaccess: Add lib_SOURCES, include for new
56257 2003-08-12 Paul Eggert <eggert@twinsun.com>
56259 * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
56260 lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
56261 Normalize leading white space and remove trailing white space.
56263 Merge from coreutils
56264 * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
56266 * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
56267 0.12.1. These files are now being upgraded automatically by
56268 ../config/srclist-update.
56270 2003-08-12 Paul Eggert <eggert@twinsun.com>
56272 * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
56273 Normalize leading white space and remove trailing white space.
56274 * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
56275 notice, as per ../config/srclist-update.
56277 Merge from coreutils.
56278 * lib/euidaccess.h: New file.
56279 * lib/euidaccess.c: Include it.
56280 * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
56281 vasnprintf.h, vasprintf.h. Remove strdup.c, gettext.h.
56282 * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
56284 2003-08-12 Paul Eggert <eggert@twinsun.com>
56286 * config/srclist-update: Add copyright notice.
56287 (remove_id_lines, remove_trailing_blanks): New constants.
56288 (fixfile): Use them to normalize spacing a bit in copied files.
56289 * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
56290 Normalize leading white space and remove trailing white space.
56292 * config/texinfo.tex: Sync with texinfo.
56294 * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
56295 strtoul.c from libc, to merge coreutils whitespace changes.
56297 * config/srclist.txt: Get the following m4 files from gettext:
56298 codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
56299 inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
56300 longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
56303 2003-08-12 Karl Berry <karl@gnu.org>
56305 * config/srclist.txt: can't sync vasnprintf.c any more, changes have
56308 2003-08-11 Paul Eggert <eggert@twinsun.com>
56310 * modules/gnu-source, m4/gnu-source.m4:
56311 Remove; we're assuming Autoconf 2.54 or later now.
56312 Suggested by Bruno Haible.
56313 * MODULES.html.sh (func_all_modules): Remove gnu-source.
56315 2003-08-11 Bruno Haible <bruno@clisp.org>
56317 * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
56319 2003-08-11 Bruno Haible <bruno@clisp.org>
56321 * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
56322 (vasnprintf): Use it instead of wcslen.
56324 2003-08-11 Bruno Haible <bruno@clisp.org>
56326 * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
56327 value to ensure that _Bool promotes to int. Use #define for _Bool when
56328 using the Solaris C compiler. Adds comments suggested by Paul Eggert.
56330 2003-08-10 Karl Berry <karl@gnu.org>
56332 * lib/regex.h: update from libc (whitespace fix).
56334 2003-08-09 Paul Eggert <eggert@twinsun.com>
56336 Merge some files from coreutils. These changes were
56337 originally made by Jim Meyering.
56338 * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
56339 many older Unixes require this.
56340 * lib/alloca.c (alloca): Remove cast to argument of free;
56341 no longer needed in C89.
56342 * lib/alloca_.h, regex.h: Fix white space to match
56343 what GNU indent does.
56345 2003-08-09 Paul Eggert <eggert@twinsun.com>
56347 * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
56348 apparently Emacs's Unicode mode got confused before my 2003-08-05
56351 2003-08-08 Paul Eggert <eggert@twinsun.com>
56353 * m4/extensions.m4: New file.
56354 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
56355 Require gl_USE_SYSTEM_EXTENSIONS.
56356 * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
56357 Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
56359 2003-08-08 Paul Eggert <eggert@twinsun.com>
56361 * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
56362 * modules/extensions, modules/gnu-source: New files.
56363 * modules/timespec, modules/unlocked-io: Depend on extensions.
56365 2003-08-07 Paul Eggert <eggert@twinsun.com>
56367 * modules/restrict: New file.
56368 * MODULES.html.sh (func_all_modules): Add restrict.
56369 * modules/regex: Depend on restrict.
56371 2003-08-07 Paul Eggert <eggert@twinsun.com>
56373 * m4/restrict.m4: New file.
56374 * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
56376 2003-08-07 Bruno Haible <bruno@clisp.org>
56378 * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
56379 lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
56381 2003-08-07 Bruno Haible <bruno@clisp.org>
56383 * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
56384 makes the module 'getndelim2' compatible with the module 'getline'.
56386 2003-08-05 Paul Eggert <eggert@twinsun.com>
56388 * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
56389 byte with "\201" to avoid glitches when editing that source file
56390 with multi-gnome-terminal.
56392 2003-08-05 Paul Eggert <eggert@twinsun.com>
56394 * lib/bumpalloc.h: Remove.
56396 2003-08-05 Paul Eggert <eggert@twinsun.com>
56398 * MODULES.html.sh (func_all_modules): Remove bumpalloc.
56399 * modules/bumpalloc: Remove.
56401 2003-08-04 Paul Eggert <eggert@twinsun.com>
56403 * lib/getloadavg.c: Change copyright notice and spacing to conform to
56406 Merge from coreutils.
56407 * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
56409 * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
56410 from Karl Berry, implemented by Jim Meyering.
56411 * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
56412 from Dmitry V. Levin.
56413 Remove anachronistic cast of xrealloc.
56414 * lib/fnmatch_.h (__const): Remove. Use 'const'.
56415 * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
56416 type. Otherwise, it wouldn't compile with at least /bin/cc on
56417 ymp-cray-unicos9.0.2.X.
56418 Combine two mostly-identical uses of alloca into one.
56419 Thanks to the Cray-Cyber project for access to a Cray Y-MP.
56421 2003-08-04 Dave Love <d.love@dl.ac.uk>
56425 * lib/getloadavg.c: Check `__unix' as well as `unix'. Use #ifdef, not
56426 #if. Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE. Check
56427 F_SETFD, not FD_SETFD. Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
56428 obsolete NLIST_NAME_UNION.
56429 [__GNU__]: Undef BSD and FSCALE.
56430 [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
56432 2003-08-03 Paul Eggert <eggert@twinsun.com>
56434 * lib/stdbool_.h (_Bool): Make it signed char, instead of
56435 an enum type, so that it's guaranteed to promote to int. See:
56436 <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
56438 2003-08-03 Karl Berry <karl@gnu.org>
56440 * config/depcomp: update from automake.
56442 2003-07-31 Paul Eggert <eggert@twinsun.com>
56444 * lib/strerror.c: Include config.h, limits.h. Declare sprintf.
56445 (strerror): Don't assume that a printable int fits in 14 bytes.
56447 2003-07-31 Bruno Haible <bruno@clisp.org>
56449 * modules/getpass-gnu: New file.
56450 * MODULES.html.sh (func_all_modules): Add getpass-gnu.
56452 2003-07-31 Bruno Haible <bruno@clisp.org>
56454 * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
56456 2003-07-24 Karl Berry <karl@gnu.org>
56458 * config/missing: update from automake.
56460 2003-07-24 Derek Robert Price <derek@ximbiot.com>
56461 Bruno Haible <bruno@clisp.org>
56463 * lib/getline.h (getline, getdelim): Change return type to ssize_t.
56464 * lib/getline.c (getline, getdelim): Likewise.
56465 Remove _GNU_SOURCE define; now it's defined in config.h through
56468 2003-07-23 Karl Berry <karl@gnu.org>
56470 * config/config.sub: update from prep.
56472 2003-07-22 Paul Eggert <eggert@twinsun.com>
56474 * modules/xalloc (Depends-on): Add exitfail.
56475 * modules/xmemcoll: Likewise.
56477 2003-07-22 Paul Eggert <eggert@twinsun.com>
56479 * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
56480 over-parenthesization in macros.
56482 Sync with coreutils.
56484 * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
56487 Use `exit_failure' for xalloc and xmemcoll instead of their own
56488 private exit-failure variables.
56489 * lib/xalloc.h (xalloc_exit_failure): Remove.
56490 * lib/xmalloc.c: Likewise. Include exitfail.h.
56491 (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
56492 * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
56493 * lib/xmemcoll.c: Likewise. Include exitfail.h.
56494 (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
56496 2003-07-20 Jim Meyering <jim@meyering.net>
56498 * modules/closeout (Depends-on): Add exitfail.
56499 Suggestion from Bruno Haible.
56501 2003-07-19 Karl Berry <karl@gnu.org>
56503 * config/config.sub: update from prep.
56505 2003-07-18 Paul Eggert <eggert@twinsun.com>
56507 * lib/closeout.h (close_stdout_set_status, close_stdout_status):
56509 * lib/closeout.c: Likewise. Include "closeout.h" right after config.h,
56510 to test that it can stand by itself. Include "exitfail.h".
56511 Clients should set exit_failure instead.
56512 (EXIT_FAILURE): Remove; no longer needed. Do not include <stdlib.h>.
56514 2003-07-18 Bruno Haible <bruno@clisp.org>
56516 * modules/getndelim2: New file.
56517 * modules/getline: Share files with module getndelim2.
56518 * modules/getnline: Depend on getndelim2 instead of sharing files with
56519 it. Add getnline.c to lib_SOURCES.
56520 * MODULES.html.sh (func_all_modules): Add getndelim2.
56522 2003-07-18 Bruno Haible <bruno@clisp.org>
56524 * m4/getndelim2.m4: New file.
56525 * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
56526 invoke gl_PREREQ_GETNDELIM2.
56527 (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
56528 gl_PREREQ_GETNDELIM2.
56529 * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
56532 2003-07-18 Bruno Haible <bruno@clisp.org>
56534 * lib/getndelim2.h: New file.
56535 * lib/getndelim2.c: Make into a module of its own. Include config.h,
56537 (getndelim2): Make non-static. Change return type to ssize_t.
56538 * lib/getline.h: Change argument names.
56539 * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
56540 * lib/getnline.c: Include getndelim2.h.
56542 2003-07-18 Andreas Schwab <schwab@suse.de>
56544 * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
56546 2003-07-17 Karl Berry <karl@gnu.org>
56548 * config/config.sub: update from prep.
56550 2003-07-17 Bruno Haible <bruno@clisp.org>
56552 * modules/getnline: New file.
56553 * modules/getline: Add lib/getndelim2.c to source file list.
56554 * MODULES.html.sh (func_all_modules): Add getnline.
56556 2003-07-17 Bruno Haible <bruno@clisp.org>
56558 * m4/getnline.m4: New file.
56560 2003-07-17 Bruno Haible <bruno@clisp.org>
56562 * m4/Makefile.am.in: Remove file.
56563 * m4/Makefile.am: Remove file.
56564 * m4/Makefile.in: Remove file.
56566 2003-07-17 Bruno Haible <bruno@clisp.org>
56568 * lib/getnline.h: New file.
56569 * lib/getnline.c: New file.
56570 * lib/getndelim2.c: New file, extracted from getline.c.
56571 (getndelim2): Renamed from getdelim2, with added nmax argument.
56572 * lib/getline.c: Include getndelim2.c.
56573 (getdelim2): Moved out to getndelim2.c.
56574 (getline, getdelim): Update.
56576 2003-07-17 Bruno Haible <bruno@clisp.org>
56578 * lib/Makefile.am: Remove file.
56579 * lib/Makefile.in: Remove file.
56581 2003-07-17 Bruno Haible <bruno@clisp.org>
56583 * configure.in: Remove file.
56584 * Makefile.in: Remove file.
56586 2003-07-17 Bruno Haible <bruno@clisp.org>
56588 * MODULES.html.sh: Put the </BODY> right before </HTML>.
56590 2003-07-16 Karl Berry <karl@gnu.org>
56592 * config/srclist-update: was running fixlicense twice, which caused
56593 texinfo.tex to be nullified for some reason. Simplify,
56594 $gplsrc is no longer needed as far as I can see?
56596 2003-07-16 Jim Meyering <jim@meyering.net>
56598 * modules/save-cwd: Depend on xgetcwd. From Derek Price.
56600 2003-07-15 Paul Eggert <eggert@twinsun.com>
56602 * config/srclist.txt: Get the following files from gettext-runtime/intl
56603 instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
56604 ref-del.sin. From Bruno Haible.
56605 * config/srclist-update (fixfile): Change grep pattern again, since the
56606 previous fix didn't work (there was another trailing $). Use
56607 '[$]' to escape the $s.
56609 2003-07-15 Karl Berry <karl@gnu.org>
56611 * lib/vasnprintf.c: update from gettext.
56613 2003-07-15 Karl Berry <karl@gnu.org>
56615 * config/srclist-update (fixfile): Change grep pattern, since 'Id'
56616 gets expanded when surrounded by '$'.
56618 2003-07-15 Jim Meyering <jim@meyering.net>
56620 * modules/save-cwd: Don't depend on error. From Derek Price.
56622 2003-07-15 Jim Meyering <jim@meyering.net>
56624 * lib/makepath.c (make_path): Enclose diagnostic in _(...).
56626 2003-07-14 Simon Josefsson <jas@extundo.com>
56628 * modules/mempcpy: New file.
56629 * MODULES.html.sh (func_all_modules): Add mempcpy.
56631 2003-07-14 Simon Josefsson <jas@extundo.com>
56633 * m4/mempcpy.m4: New file.
56635 2003-07-14 Simon Josefsson <jas@extundo.com>
56637 * lib/mempcpy.h: New file.
56638 * lib/mempcpy.c: New file.
56640 2003-07-14 Paul Eggert <eggert@twinsun.com>
56642 * modules/getdate, modules/posixtm: Depend on mktime.
56644 2003-07-14 Paul Eggert <eggert@twinsun.com>
56646 * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
56647 sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
56648 unicodeio.c, unicodeio.h, unlocked-io.h:
56649 Switch from LGPL to GPL.
56651 2003-07-14 Paul Eggert <eggert@twinsun.com>
56653 * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
56654 localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
56655 printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
56656 ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
56657 vasprintf.c, vasprintf.h: Regenerate. These files are now being
56658 updated automatically by ../config/srclist-update. This changes
56659 their license from LPGL to GPL.
56661 2003-07-14 Paul Eggert <eggert@twinsun.com>
56663 * config/srclist.txt: Add tons more gettext files. $GETTEXT is now
56664 assumed to refer to the root of the most recent stable gettext version.
56665 * config/srclistvars.sh: Add defaults for eggert.
56666 * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
56667 Match "This program" as well as "The program". This is needed
56670 2003-07-14 Jim Meyering <jim@meyering.net>
56672 Don't emit diagnostics. Let callers do that.
56673 * lib/save-cwd.c: Don't include "error.h".
56674 (save_cwd): Don't call error. Ensure that errno is valid
56675 when returning nonzero.
56677 * lib/save-cwd.h (restore_cwd): Update prototype.
56678 * lib/save-cwd.c (restore_cwd): Remove two parameters.
56679 Simplify. Don't call error upon failure. Let callers do that.
56680 (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
56681 when auditing is enabled. But don't bother updating the #if.
56683 2003-07-11 Alexandre Duret-Lutz <adl@gnu.org>
56685 * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
56686 it breaks C++ compilation.
56687 [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
56689 2003-07-10 Simon Josefsson <jas@extundo.com>
56691 * modules/strchrnul (Makefile.am): Add strchrnul.h.
56693 2003-07-10 Jim Meyering <jim@meyering.net>
56695 * m4/clock_time.m4: Remove trailing blank.
56696 * m4/intmax_t.m4: Likewise.
56698 2003-07-10 Jim Meyering <jim@meyering.net>
56700 * lib/vasnprintf.c: Remove trailing blanks.
56701 Make cpp indentation consistent.
56703 2003-07-09 Paul Eggert <eggert@twinsun.com>
56705 * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
56706 posixver.c, strftime.c, strnlen.c, strverscmp.c:
56707 Switch from LGPL to GPL.
56709 2003-07-09 Paul Eggert <eggert@twinsun.com>
56711 * config/srclist.txt: Sort sublists. Add
56712 $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
56713 that differ from gnulib for one reason or another; we'd like this list
56714 to be smaller but for now let's document what we have.
56716 2003-07-08 Paul Eggert <eggert@twinsun.com>
56718 * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
56719 the use of GNU extensions. Change "x=`eval echo $x`" to the shorter
56720 and sweeter "eval x=$x".
56721 * config/srclist.txt: Get lib/argp* from glibc.
56723 2003-07-07 Paul Eggert <eggert@twinsun.com>
56725 * lib/mktime.c: Fix some boundary cases and remove need for floating
56728 Issue a compile-time diagnostic if time_t is floating point, or if
56729 two's complement arithmetic is not in effect, or if arithmetic
56730 right shift does not propagate the sign. These assumptions were
56731 all in the original code but they weren't checked.
56733 (TIME_T_MIDPOINT, verify): New macros.
56734 (__isleap): Remove; it has integer overflow problems.
56735 (leapyear): New function, without those problems.
56736 (ydhms_tm_diff): Remove; splitting into two parts.
56737 (ydhms_diff): New function, containing the arithmetic part of
56738 the old ydhms_tm_diff function. Issue a compile-time
56739 diagnostic if we are not using C99 integer division.
56740 Avoid casts when possible.
56741 (guess_time_tm): New function, containing the checking part of
56742 the old ydhms_tm_diff function. Return the new value, rather than
56743 the difference between it and the old. Accept a new argument T
56744 so that *T specifies the old value. Check for overflow in the result.
56746 (__mktime_internal): Use a time_t offset, not a long int offset.
56747 This undoes the 2003-06-04 change, which is no longer needed now
56748 that we have better overflow checking.
56749 (localtime_offset): Likewise.
56751 (__mktime_internal): Avoid harmful overflow on hosts where time_t
56752 and long are 64-bit but int is only 32-bit.
56753 (ydhms_diff): Use long int to store year1 and yday1.
56754 Issue a compile-time diagnostic if long int is not wide enough.
56756 (__mktime_internal): Use long int to store adjusted year and yday.
56757 Use plain C rather than preprocessor commands, if that doesn't
56759 Check for overflow (and try to repair) after each probe
56760 rather than checking only at the very end. This avoids some bugs
56761 (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
56762 does not equal GMT offset at maximum time).
56763 Use integer to check for overflow rather than floating point; this
56764 is more portable to non-IEEE hosts, and is a tad faster.
56765 When we detect that we are oscillating between two values,
56766 don't check whether tm_isdst has the requested value, since
56767 we already know the answer. When tm_isdst has the wrong value,
56768 use a different heuristic to find the right one, based on the
56769 extreme values actually observed in practice in tz2003a,
56770 rather than the (overly optimistic) "previous 3 calendar quarters".
56772 (not_equal_tm, print_tm, check_result): Use "const T" rather than
56773 "T const" to accommodate glibc style.
56774 (check_result): Use less-confusing report format. "long" -> "long int.
56776 Don't loop if the iteration overflows time_t.
56777 Allow a negative step in the iteration.
56779 2003-07-06 Karl Berry <karl@gnu.org>
56781 * config/depcomp: update from automake.
56782 * config/config.sub: update from prep.
56784 2003-07-03 Karl Berry <karl@gnu.org>
56786 * config/config.guess: update from prep.
56788 2003-07-01 Paul Eggert <eggert@twinsun.com>
56790 * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
56791 xreadlink.c now includes it unconditionally.
56793 2003-07-01 Paul Eggert <eggert@twinsun.com>
56795 * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
56796 having it depend on HAVE_SYS_TYPES_H.
56798 2003-07-01 Bruno Haible <bruno@clisp.org>
56800 * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
56801 <sys/types.h> should be sufficient.
56802 Reported by Paul Eggert.
56804 2003-06-26 Karl Berry <karl@gnu.org>
56806 * config/depcomp: update from automake.
56808 2003-06-26 Bruno Haible <bruno@clisp.org>
56810 * modules/human: Depend on module stdbool.
56812 2003-06-25 Bruno Haible <bruno@clisp.org>
56814 * modules/readlink: New file.
56815 * modules/xreadlink: Depend on it.
56816 * MODULES.html.sh (func_all_modules): Add readlink.
56818 2003-06-25 Bruno Haible <bruno@clisp.org>
56820 * m4/readlink.m4: New file.
56822 2003-06-25 Bruno Haible <bruno@clisp.org>
56824 * lib/readlink.c: New file.
56826 2003-06-22 Karl Berry <karl@gnu.org>
56828 * config/srclist.txt: update mkinstalldirs from automake.
56829 * config/mkinstalldirs: update.
56831 2003-06-22 Bruno Haible <bruno@clisp.org>
56833 Portability to mingw32.
56834 * m4/ssize_t.m4: New file, from GNU gettext.
56835 * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
56836 * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
56838 2003-06-22 Bruno Haible <bruno@clisp.org>
56840 * modules/safe-read: Add m4/ssize_t.m4.
56841 * modules/xreadlink: Add m4/ssize_t.m4.
56843 2003-06-20 Bruno Haible <bruno@clisp.org>
56845 Assume C89, so PARAMS isn't needed.
56846 * lib/unicodeio.h (PARAMS): Remove.
56847 * lib/unicodeio.c: Don't use PARAMS.
56849 2003-06-18 Karl Berry <karl@gnu.org>
56851 * config/config.{guess,sub}: update from prep.
56853 2003-06-18 Jim Meyering <jim@meyering.net>
56855 Merge changes from coreutils.
56856 * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
56857 Remove explicit declarations of xmalloc and realloc.
56859 (read_utmp): Remove anachronistic cast of xmalloc.
56861 2003-06-17 Paul Eggert <eggert@twinsun.com>
56863 Assume C89, so PARAMS isn't needed.
56864 * lib/backupfile.h (PARAMS): Remove. All uses removed.
56865 * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
56866 lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
56867 lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
56868 lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
56869 lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
56870 lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
56871 lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
56872 lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
56873 lib/xstrtod.h, lib/xstrtol.h: Likewise.
56874 * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
56875 lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
56876 no longer needed. Anyway, config.h should always be included before any
56879 2003-06-11 Simon Josefsson <jas@extundo.com>
56881 * modules/sysexits: New file.
56882 * MODULES.html.sh (func_all_modules): Add sysexits.
56884 2003-06-11 Simon Josefsson <jas@extundo.com>
56886 * lib/sysexit_.h: New file.
56888 2003-06-11 Derek Price <derek@ximbiot.com>
56890 * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
56893 2003-06-11 Bruno Haible <bruno@clisp.org>
56895 * m4/sysexits.m4: New file.
56897 2003-06-10 Simon Josefsson <jas@extundo.com>
56899 * lib/argp.h: New file, from glibc.
56900 * lib/argp-ba.c: New file, from glibc.
56901 * lib/argp-eexst.c: New file, from glibc.
56902 * lib/argp-fmtstream.c: New file, from glibc.
56903 * lib/argp-fmtstream.h: New file, from glibc.
56904 * lib/argp-fs-xinl.c: New file, from glibc.
56905 * lib/argp-help.c: New file, from glibc.
56906 * lib/argp-namefrob.h: New file, from glibc.
56907 * lib/argp-parse.c: New file, from glibc.
56908 * lib/argp-pv.c: New file, from glibc.
56909 * lib/argp-pvh.c: New file, from glibc.
56910 * lib/argp-xinl.c: New file, from glibc.
56912 2003-06-10 Simon Josefsson <jas@extundo.com>
56914 * modules/strchrnul: New file.
56916 2003-06-10 Simon Josefsson <jas@extundo.com>
56918 * modules/argp: New file.
56920 2003-06-10 Simon Josefsson <jas@extundo.com>
56922 * m4/strchrnul.m4: New file.
56924 2003-06-10 Simon Josefsson <jas@extundo.com>
56926 * lib/strchrnul.h: New file.
56927 * lib/strchrnul.c: New file.
56929 2003-06-10 Bruno Haible <bruno@clisp.org>
56931 * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
56933 2003-06-07 Karl Berry <karl@gnu.org>
56935 * config/config.{guess,sub}: update from prep.
56937 2003-06-07 Jim Meyering <jim@meyering.net>
56939 * modules/strtod: Use $(...) notation, not @...@ for
56940 AC_REPLACE'd variables.
56941 * modules/localcharset: Likewise.
56943 2003-06-07 Jim Meyering <jim@meyering.net>
56945 * lib/readtokens.h: Put `Free Software Foundation, Inc.'
56946 in place of my name in the copyright comment.
56947 Remove definition and uses of __P.
56950 * lib/stat.c: Don't declare xmalloc explicitly.
56951 Instead, include "xalloc.h".
56952 * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
56953 xrealloc, and xcalloc return values.
56954 * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
56956 * lib/xgetcwd.h: Remove definition/uses of PARAMS.
56958 2003-06-07 Bruno Haible <bruno@clisp.org>
56960 * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
56961 avoid AC_CONFIG_LINKS.
56962 * modules/fnmatch (Makefile.am): Use explicit creation rule for
56963 fnmatch.h, to avoid AC_CONFIG_LINKS.
56964 * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
56966 2003-06-07 Bruno Haible <bruno@clisp.org>
56968 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
56969 gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
56970 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56972 * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
56973 AC_CONFIG_LINKS. Needed to allow for a different name of the lib
56976 2003-06-06 Jim Meyering <jim@meyering.net>
56978 Merge from coreutils.
56979 * lib/same.c: (same_name): Declare *_basename locals to be `const'.
56980 Consolidate declarations and initializations of *_base* locals.
56982 Merge from coreutils.
56983 This avoids a core dump on systems without GNU putenv,
56984 when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
56985 * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
56986 (unsetenv): New static function, from GNU libc.
56987 (rpl_putenv): Use it.
56989 * lib/modechange.c: Remove trailing blanks.
56991 Merge from coreutils.
56992 * lib/fsusage.c: Remove declaration of statfs.
56993 It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
56995 * lib/posixtm.c: Include <stdbool.h> unconditionally.
56997 2003-06-06 Jim Meyering <jim@meyering.net>
56999 * lib/stdbool_.h: Renamed from stdbool.h.in.
57001 2003-06-06 Jim Meyering <jim@meyering.net>
57002 Bruno Haible <bruno@clisp.org>
57004 * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
57005 Adjust Makefile.am snippet not to redirect directly to target.
57006 Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
57008 2003-06-05 Paul Eggert <eggert@twinsun.com>
57010 * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
57011 mismatch, look in future quarters as well as past. This fixes a
57012 bug when processing fall-backwards gaps immediately after a long
57013 period of daylight-saving time.
57015 * lib/mktime.c: Assume freestanding C89 or better.
57016 (HAVE_LIMITS_H): Remove. Assume it's 1.
57017 (__P): Remove; not used.
57018 (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
57019 (mktime, not_equal_tm, print_tm, check_result,
57020 main): Use prototypes. Use const * where appropriate.
57021 (main): Fix typo in testing code that uncovered by above changes.
57022 (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
57024 2003-06-04 Paul Eggert <eggert@twinsun.com>
57026 * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H. Check for
57027 locale.h, localeconv. This merges changes from coreutils.
57029 * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
57030 It can be removed after the next Autoconf is released.
57031 * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
57034 2003-06-04 Paul Eggert <eggert@twinsun.com>
57036 * lib/mktime.c: Fix Debian bug 177940
57037 <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
57038 (localtime_offset): Now long int, not time_t, because we want it
57039 to be guaranteed to be signed. All uses changed.
57040 (__mktime_internal): If overflow would occur when adding offset,
57043 Merge 'human' changes from coreutils. Rewrite to support
57044 locale-specific notations like thousands separators.
57045 * lib/human.c: Simplify authorship notice.
57046 Include human.h immediately after config.h.
57047 <sys/types.h>, <stdio.h>: Do not include; no longer needed.
57048 <limits.h>: Do not include, since human.h does.
57049 (SIZE_MAX, UINTMAX_MAX): New macros.
57050 <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
57051 <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
57052 (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
57053 (power_letter): Renamed from suffixes.
57054 (generate_suffix_backwards): Remove.
57055 (adjust_value): Now takes int style (because of human.h changes)
57056 and long double value (for greater precision on some platforms).
57057 (group_number): New function.
57058 (human_readable): Use it. Use integer options, not enum.
57059 Put the options before the sizes in the arg list.
57060 Support all the new options.
57061 The old human_readable function has been removed;
57062 use inttostr.h instead.
57063 (human_readable, default_block_size, humblock):
57064 Use uintmax_t, not int, for block sizes.
57065 (human_readable_inexact, block_size_types): Remove.
57066 (block_size_opts): New constant.
57067 (human_options): Renamed from human_block_size, with new signature
57068 that allows block sizes up to UINTMAX_MAX. All callers changed.
57069 * lib/human.h: Add copyright and authorship notice.
57070 Include <limits.h> and <stdbool.h> unconditionally.
57071 (PARAMS): Remove. All uses removed.
57072 (LONGEST_HUMAN_READABLE): Add support for thousands separator.
57073 (enum human_inexact_style): Remove tag; now a nameless enum.
57074 (human_floor, human_ceiling, human_round_to_even): Now have
57075 values 2, 0, 1 rather than -1, 1, 0.
57076 (human_group_digits, human_suppress_point_zero, human_autoscale,
57077 human_base_1024, human_SI, human_B): New constants.
57078 (human_readable_inexact, human_block_size): Remove.
57079 (human_readable): Size args are now uintmax_t, not int.
57080 (human_options): New decl.
57082 * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
57083 unnecessary now that we assume C89 or better. This change
57084 imported from coreutils.
57086 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57087 arbitrarily. This is the same patch as 2003-05-28, but it got lost
57088 in the 2003-05-30 sync from glibc.
57090 .h files should stand alone, but we shouldn't include <sys/types.h>
57091 if we can get away with just <stddef.h>.
57093 * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
57094 malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
57095 rather than <sys/types.h>, as we merely need size_t.
57096 * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
57098 * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
57099 Include <stdio.h>, to get FILE.
57100 * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
57101 memcasecmp.h has included <stddef.h> and all we need is size_t.
57102 * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
57103 our interface, instead of including <sys/types.h>
57105 2003-06-04 Paul Eggert <eggert@twinsun.com>
57107 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
57108 now, as glibc mktime is buggy on non-glibc systems.
57110 2003-06-03 Karl Berry <karl@gnu.org>
57112 * config/config.sub: update from prep.
57114 2003-06-02 Paul Eggert <eggert@twinsun.com>
57117 Fix some minor time-related bugs with POSIX time arguments.
57118 Some valid time stamps were being rejected (notably -1, and
57119 time stamps before 1900 on 64-bit hosts). And some invalid
57120 time stamps were being accepted, e.g. September 31.
57122 * lib/posixtm.h (posixtime): Return bool instead of time_t, so
57123 that we can return (time_t) -1 successfully.
57124 * lib/posixtm.c: Likewise.
57125 [HAVE_STDBOOL_H]: Include <stdbool.h>.
57126 (bool, false, true) [!HAVE_STDBOOL_H]: New type.
57127 (t): Remove static var.
57128 (year, posix_time_parse): Now takes struct tm * arg to modify, instead
57129 of static var. All uses changed.
57130 (year): Do not reject years before 1900; they can occur with
57132 (posix_time_parse): Do not check for out-of-range components;
57133 that is now the caller's responsibility, since our checks were
57134 only approximations.
57135 (posixtime): Use mktime to check for out-of-range components,
57136 since it knows them exactly.
57137 If mktime returns (time_t) -1, check whether an error actually occurred
57138 by invoking localtime on -1.
57139 (main) [TEST_POSIXTIME]: Check for input data errors, and report
57140 posixtime failures better.
57141 Improve the test data (in comments only).
57143 2003-06-02 Karl Berry <karl@gnu.org>
57145 * config/mkinstalldirs (version): new variable.
57146 (--version): new option.
57147 (usage): improve message.
57149 2003-05-30 Karl Berry <karl@gnu.org>
57151 * lib/mktime.c: update from libc.
57153 2003-05-30 Bruno Haible <bruno@clisp.org>
57155 * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
57156 * config/config.rpath: Upgrade to gettext-0.12.1.
57158 2003-05-30 Bruno Haible <bruno@clisp.org>
57160 * m4/gettext.m4: Upgrade to gettext-0.12.1.
57161 * m4/nls.m4: New file, from gettext-0.12.1.
57162 * m4/po.m4: New file, from gettext-0.12.1.
57163 * m4/progtest.m4: Upgrade to gettext-0.12.1.
57165 2003-05-30 Bruno Haible <bruno@clisp.org>
57167 * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
57168 * lib/localcharset.h: Likewise.
57169 * lib/localcharset.c: Likewise.
57171 2003-05-29 Karl Berry <karl@gnu.org>
57173 * config/config.rpath: update from gettext.
57175 2003-05-28 Paul Eggert <eggert@twinsun.com>
57177 Assume the headers required for C89 freestanding compilers.
57178 * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
57179 * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
57180 * m4/human.m4 (gl_HUMAN): Likewise.
57181 * m4/pathmax.m4 (gl_PATHMAX): Likewise.
57182 * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
57183 * m4/userspec.m4 (gl_USERSPEC): Likewise.
57184 * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
57185 * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
57186 * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
57188 2003-05-28 Paul Eggert <eggert@twinsun.com>
57190 Assume the headers required for C89 freestanding compilers.
57191 * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
57192 lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
57193 lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
57194 * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
57195 lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
57196 define, since <limits.h> is guaranteed to do that.
57197 * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
57198 * lib/exclude.c: Include <stdbool.h> unconditionally.
57199 * lib/tempname.c: Include <stddef.h> unconditionally.
57200 * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
57201 * lib/modechange.c, rpmatch.c (NULL): Don't define, since
57202 <stddef.h> does that.
57203 * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
57204 * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
57205 * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
57207 * lib/xstrtol.c: Likewise.
57208 * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
57209 * lib/savedir.c: Include <stddef.h> instead of defining NULL.
57211 * lib/addext.c (addext): Use assignment rather than cast, to avoid
57212 warnings on some platforms.
57214 * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
57217 2003-05-26 Jim Meyering <jim@meyering.net>
57219 Merge in a change from coreutils:
57220 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
57221 that is guaranteed to be `no'. Use `no_such_member' to indicate
57222 that condition, rather than `-1' which is slightly misleading.
57223 Change the name of the cache variable to have the gl_ prefix.
57224 Prompted by a patch from Richard Dawe for DJGPP.
57226 2003-05-24 Karl Berry <karl@gnu.org>
57228 * config/config.guess: update from prep.
57230 2003-05-22 Karl Berry <karl@gnu.org>
57232 * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
57234 2003-05-20 Karl Berry <karl@gnu.org>
57236 * config/config.guess: update from prep.
57238 2003-05-18 Karl Berry <karl@gnu.org>
57240 * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
57241 might actually be set by the user.
57243 * config/depcomp, install-sh, mdate-sh: update from automake.
57245 2003-05-17 Bruno Haible <bruno@clisp.org>
57247 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
57248 invalid expansion for AC_EGREP_CPP.
57249 * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
57250 * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
57251 Suggested by Akim Demaille <akim@epita.fr> in
57252 http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
57254 2003-05-12 Jim Meyering <jim@meyering.net>
57256 * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
57257 the space-padded-by-default conversion specifiers, %e, %k, %l.
57259 2003-05-12 Bruno Haible <bruno@clisp.org>
57261 * lib/linebreak.c (iconv_string_length): Don't return -1 just because
57262 the string is longer than 4 KB.
57264 2003-05-11 Karl Berry <karl@gnu.org>
57266 * config/config.{guess,sub}: update from prep.
57268 2003-05-09 Bruno Haible <bruno@clisp.org>
57270 * modules/error: Add m4/strerror_r.m4 to file list.
57272 2003-05-03 Bruno Haible <bruno@clisp.org>
57274 Upgrade to Unicode-4.0.
57275 * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
57276 U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
57277 U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
57278 U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
57279 from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
57280 (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
57281 of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
57282 Change width of U+E0100..U+E01EF from 1 to 0.
57284 2003-04-25 Jim Meyering <jim@meyering.net>
57286 * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
57287 of type size_t, not int.
57289 2003-04-25 Bruno Haible <bruno@clisp.org>
57291 * lib/copy-file.c: Include <stddef.h>, for size_t.
57293 2003-04-21 Paul Eggert <eggert@twinsun.com>
57295 * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
57296 code which expansion is under static control. Patch imported from
57297 Akim Demaille's patch to Bison; see
57298 <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
57300 2003-04-14 Bruno Haible <bruno@clisp.org>
57302 * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
57304 2003-04-11 Jim Meyering <jim@meyering.net>
57306 Merge changes from Coreutils.
57308 2003-03-22 Jim Meyering <jim@meyering.net>
57310 * lib/strftime.c (widen): Cast alloca return value to proper type.
57312 2003-01-19 Ulrich Drepper <drepper@redhat.com>
57315 * lib/strftime.c (my_strftime): Handle very large width
57316 specifications for numeric values correctly. Improve checks for
57319 2003-01-19 Jim Meyering <jim@meyering.net>
57321 * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
57323 (nl_get_alt_digit) [! defined my_strftime]: Define.
57324 (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
57325 _nl_get_alt_digit and _nl_get_walt_digit.
57327 * lib/strftime.c (my_strftime): Merge in locale-related changes from
57328 libc. These changes have no effect outside of _LIBC.
57330 2003-04-10 Bruno Haible <bruno@clisp.org>
57332 * modules/findprog: New file.
57333 * MODULES.html.sh (func_all_modules): Add it.
57335 2003-04-10 Bruno Haible <bruno@clisp.org>
57337 * m4/findprog.m4: New file.
57338 * m4/eaccess.m4: New file.
57340 2003-04-10 Bruno Haible <bruno@clisp.org>
57342 * lib/findprog.h: New file, from GNU gettext.
57343 * lib/findprog.c: New file, from GNU gettext.
57345 2003-04-05 Jim Meyering <jim@meyering.net>
57347 Merge changes from Coreutils.
57349 * lib/exclude.h (PARAMS): Remove definition and uses.
57350 * lib/exclude.c: Remove uses of `PARAMS'.
57352 * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
57353 Add test-cases for DOS filenames. Declare program_name.
57354 (main): Set up program_name. Patch by Rich Dawe.
57356 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
57358 Use mntctl's return value to drive the entry-processing loop, since
57359 we can't rely on the value of the vmt_length member in the last
57360 entry. On some systems doing so could result in exhausting
57361 virtual memory. Based in part on a patch from Mike Jetzer.
57363 2003-04-04 Bruno Haible <bruno@clisp.org>
57365 * modules/linebreak: New file.
57366 * MODULES.html.sh (func_all_modules): Add it.
57368 2003-04-04 Bruno Haible <bruno@clisp.org>
57370 * m4/linebreak.m4: New file.
57372 2003-04-04 Bruno Haible <bruno@clisp.org>
57374 * lib/linebreak.h: New file, from GNU gettext.
57375 * lib/linebreak.c: New file, from GNU gettext with slight
57377 * lib/lbrkprop.h: New file, from GNU gettext.
57379 2003-04-03 Bruno Haible <bruno@clisp.org>
57381 * modules/utf8-ucs4: New file.
57382 * modules/utf16-ucs4: New file.
57383 * modules/ucs4-utf8: New file.
57384 * modules/ucs4-utf16: New file.
57385 * MODULES.html.sh (func_all_modules): Add them.
57387 2003-04-03 Bruno Haible <bruno@clisp.org>
57389 * m4/utf-ucs4.m4: New file.
57390 * m4/ucs4-utf.m4: New file.
57392 2003-04-03 Bruno Haible <bruno@clisp.org>
57394 * lib/utf8-ucs4.h: New file, from GNU gettext.
57395 * lib/utf16-ucs4.h: New file, from GNU gettext.
57396 * lib/ucs4-utf8.h: New file, from GNU gettext.
57397 * lib/ucs4-utf16.h: New file, from GNU gettext.
57399 2003-04-02 Bruno Haible <bruno@clisp.org>
57401 * modules/binary-io: New file.
57402 * MODULES.html.sh (func_all_modules): Add it.
57404 2003-04-02 Bruno Haible <bruno@clisp.org>
57406 * lib/binary-io.h: New file, from GNU gettext.
57408 2003-04-01 Bruno Haible <bruno@clisp.org>
57410 * modules/pathname: New file.
57411 * MODULES.html.sh (func_all_modules): Add it.
57413 2003-04-01 Bruno Haible <bruno@clisp.org>
57415 * lib/pathname.h: New file, from GNU gettext.
57416 * lib/concatpath.c: New file, from GNU gettext.
57418 2003-03-30 Bruno Haible <bruno@clisp.org>
57420 * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
57422 2003-03-30 Bruno Haible <bruno@clisp.org>
57424 * lib/copy-file.c (copy_file_preserving): Don't set owner if the
57425 function chown() doesn't exist.
57427 2003-03-28 Bruno Haible <bruno@clisp.org>
57429 * modules/copy-file: New file.
57430 * MODULES.html.sh (func_all_modules): Add it.
57432 2003-03-28 Bruno Haible <bruno@clisp.org>
57434 * m4/copy-file.m4: New file.
57436 2003-03-28 Bruno Haible <bruno@clisp.org>
57438 * lib/copy-file.h: New file, from GNU gettext.
57439 * lib/copy-file.c: New file, from GNU gettext.
57441 2003-03-18 Jim Meyering <jim@meyering.net>
57443 * lib/quote.c (quote_n): Fix typo in comment.
57445 2003-03-18 Bruno Haible <bruno@clisp.org>
57447 * m4/onceonly.m4: Use m4_defn instead of defn, for better error
57449 * m4/onceonly_2_57.m4: Likewise.
57451 2003-03-17 Bruno Haible <bruno@clisp.org>
57453 * m4/onceonly.m4: Require autoconf 2.54 or newer.
57454 (m4_quote): Remove macro.
57455 * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
57457 2003-03-14 Jim Meyering <jim@meyering.net>
57459 Merge changes from Coreutils.
57460 * lib/obstack.h (obstack_object_size): Declare temporary, __o,
57461 to be const, in order to avoid warnings.
57462 (obstack_room): Likewise.
57463 (obstack_empty_p): Likewise.
57465 2003-03-14 Bruno Haible <bruno@clisp.org>
57467 * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
57468 AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
57470 2003-03-13 Paul Eggert <eggert@twinsun.com>
57472 Merge changes from Bison.
57473 * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
57474 (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
57475 when compiling Bison 1.875's `bitset bset = obstack_alloc
57476 (bobstack, bytes);'. Problem reported by Nelson H. F. Beebe.
57477 * lib/hash.c: Include <stdbool.h> unconditionally.
57479 2003-03-13 Paul Eggert <eggert@twinsun.com>
57481 * m4/onceonly.m4 (m4_quote): New macro.
57482 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
57483 Quote AC_FOREACH variable-expansions properly.
57485 2003-03-13 Paul Eggert <eggert@twinsun.com>
57487 * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
57489 2003-03-09 Paul Eggert <eggert@twinsun.com>
57491 * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
57492 Reported by Bruce Becker; see:
57493 http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
57495 2003-03-03 Paul Eggert <eggert@twinsun.com>
57496 Bruno Haible <bruno@clisp.org>
57498 * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
57499 Reported by John Hughes, see
57500 http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
57502 2003-02-20 Bruno Haible <bruno@clisp.org>
57504 * MODULES.html.sh (func_all_modules): Add poll.
57506 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
57508 * modules/poll: New file.
57510 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
57512 * lib/poll_.h: New file.
57513 * lib/poll.c: New file.
57515 2003-02-19 Paolo Bonzini <bonzini@gnu.org>
57517 * m4/poll.m4: New file.
57519 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
57521 * modules/mathl: New file.
57523 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
57525 * lib/mathl.h: New file.
57526 * lib/acosl.c: New file.
57527 * lib/asinl.c: New file.
57528 * lib/atanl.c: New file.
57529 * lib/ceill.c: New file.
57530 * lib/cosl.c: New file.
57531 * lib/expl.c: New file.
57532 * lib/floorl.c: New file.
57533 * lib/frexpl.c: New file.
57534 * lib/ldexpl.c: New file.
57535 * lib/logl.c: New file.
57536 * lib/sincosl.c: New file.
57537 * lib/sinl.c: New file.
57538 * lib/sqrtl.c: New file.
57539 * lib/tanl.c: New file.
57540 * lib/trigl.c: New file.
57541 * lib/trigl.h: New file.
57543 2003-02-18 Paolo Bonzini <bonzini@gnu.org>
57545 * m4/mathl.m4: New file.
57547 2003-02-18 Bruno Haible <bruno@clisp.org>
57549 * MODULES.html.sh (func_all_modules): Add mathl.
57551 2003-02-17 Bruno Haible <bruno@clisp.org>
57553 * modules/mkdtemp: New module.
57554 * MODULES.html.sh (func_all_modules): Add it.
57556 2003-02-17 Bruno Haible <bruno@clisp.org>
57558 * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
57560 2003-02-17 Bruno Haible <bruno@clisp.org>
57562 * lib/mkdtemp.h: New file, from GNU gettext.
57563 * lib/mkdtemp.c: New file, from GNU gettext.
57565 2003-02-02 Jim Meyering <jim@meyering.net>
57567 * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
57570 2003-01-31 Bruno Haible <bruno@clisp.org>
57572 * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
57574 * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
57576 * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
57578 * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
57581 2003-01-31 Bruno Haible <bruno@clisp.org>
57583 * lib/rename.c: #undef rename before defining rpl_rename.
57584 * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
57586 2003-01-30 Bruno Haible <bruno@clisp.org>
57588 * modules/vasnprintf, modules/vasprintf: New modules.
57589 * MODULES.html.sh (func_all_modules): Add them.
57591 2003-01-30 Bruno Haible <bruno@clisp.org>
57593 * m4/signed.m4: New file, from GNU gettext.
57594 * m4/longdouble.m4: New file, from GNU gettext.
57595 * m4/wchar_t.m4: New file, from GNU gettext.
57596 * m4/wint_t.m4: New file, from GNU gettext.
57597 * m4/vasnprintf.m4: New file.
57598 * m4/vasprintf.m4: New file.
57600 2003-01-30 Bruno Haible <bruno@clisp.org>
57602 * lib/printf-args.h: New file, from GNU gettext.
57603 * lib/printf-args.c: New file, from GNU gettext.
57604 * lib/printf-parse.h: New file, from GNU gettext.
57605 * lib/printf-parse.c: New file, from GNU gettext.
57606 * lib/vasnprintf.h: New file, from GNU gettext.
57607 * lib/vasnprintf.c: New file, from GNU gettext.
57608 * lib/asnprintf.c: New file, from GNU gettext.
57609 * lib/vasprintf.h: New file, from GNU gettext with modifications.
57610 * lib/vasprintf.c: New file, from GNU gettext.
57611 * lib/asprintf.c: New file, from GNU gettext.
57613 2003-01-29 Bruno Haible <bruno@clisp.org>
57615 * modules/stpncpy: New module.
57616 * MODULES.html.sh (func_all_modules): Add it.
57618 2003-01-29 Bruno Haible <bruno@clisp.org>
57620 * m4/stpncpy.m4: New file.
57622 2003-01-29 Bruno Haible <bruno@clisp.org>
57624 * lib/stpncpy.h: New file, from GNU gettext with modifications.
57625 * lib/stpncpy.c: New file, from GNU gettext with modifications.
57627 2003-01-28 Bruno Haible <bruno@clisp.org>
57629 * modules/c-ctype: New module.
57630 * MODULES.html.sh (func_all_modules): Add it.
57632 2003-01-28 Bruno Haible <bruno@clisp.org>
57634 * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
57636 * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
57639 2003-01-27 Bruno Haible <bruno@clisp.org>
57641 * modules/xsetenv: New module.
57642 * MODULES.html.sh (func_all_modules): Add it.
57644 2003-01-27 Bruno Haible <bruno@clisp.org>
57646 * lib/xsetenv.h: New file, from GNU gettext.
57647 * lib/xsetenv.c: New file, from GNU gettext.
57649 2003-01-23 Jim Meyering <jim@meyering.net>
57651 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
57652 from working on systems without dirfd (at least Irix and OSF1/Tru64).
57654 2003-01-23 Bruno Haible <bruno@clisp.org>
57656 * modules/minmax: New module.
57657 * MODULES.html.sh (func_all_modules): Add it.
57659 2003-01-23 Bruno Haible <bruno@clisp.org>
57661 * lib/minmax.h: New file, from GNU gettext, with comments from Paul
57664 2003-01-22 Bruno Haible <bruno@clisp.org>
57666 * modules/exit: New module.
57667 * MODULES.html.sh (func_all_modules): Add it.
57669 2003-01-22 Bruno Haible <bruno@clisp.org>
57671 * lib/exit.h: New file, from GNU gettext.
57673 2003-01-19 Bruno Haible <bruno@clisp.org>
57675 * gnulib-tool: Recognize option --extract-maintainer.
57676 (func_get_maintainer): New function.
57677 * modules/*: Add Maintainer entry.
57679 2003-01-16 Jim Meyering <jim@meyering.net>
57681 * m4/regex.m4: The `regex' struct is both input and output.
57682 Initialize it before each use. Patch by Tim Waugh.
57684 2003-01-16 Bruno Haible <bruno@clisp.org>
57686 * MODULES.html.sh: Add a table of contents. Add the module name as
57687 leftmost column. Add hyperlinks.
57689 2003-01-15 Bruno Haible <bruno@clisp.org>
57691 * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
57693 2003-01-15 Bruno Haible <bruno@clisp.org>
57695 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
57696 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
57699 2003-01-15 Bruno Haible <bruno@clisp.org>
57701 * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
57703 2003-01-15 Bruno Haible <bruno@clisp.org>
57705 * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
57706 * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
57708 2003-01-14 Jim Meyering <jim@meyering.net>
57710 * lib/same.c (same_name): Tweak a comment.
57712 2003-01-14 Bruno Haible <bruno@clisp.org>
57714 * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
57715 when a string comparison is sufficient.
57717 2003-01-14 Bruno Haible <bruno@clisp.org>
57719 * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
57722 2003-01-14 Bruno Haible <bruno@clisp.org>
57724 * lib/hash-pjw.c: Add comment about low quality of this function.
57726 2003-01-13 Bruno Haible <bruno@clisp.org>
57728 * modules/stpcpy: Distribute lib/stpcpy.h.
57729 * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
57731 2003-01-13 Bruno Haible <bruno@clisp.org>
57733 * modules/*: Add a description.
57734 * modules/strpbrk: Fix Makefile.am snippet.
57735 * modules/strtoimax: Fix dependencies.
57736 * modules/strtoumax: Likewise.
57738 2003-01-13 Bruno Haible <bruno@clisp.org>
57740 * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
57741 * modules/alloca (Makefile.am): All object files depend on alloca.h.
57742 * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
57744 2003-01-13 Bruno Haible <bruno@clisp.org>
57746 * gnulib-tool (func_create_testdir): Store config/* files in the main
57748 * config.rpath: Move to ...
57749 * config/config.rpath: ... here.
57750 * modules/gettext: Contains config/config.rpath, not config.rpath.
57751 * modules/iconv: Likewise.
57753 2003-01-12 Paul Eggert <eggert@twinsun.com>
57755 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57756 to avoid collisions with libcurses and libreadline.
57758 * m4/getstr.m4: Remove.
57759 * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
57761 2003-01-12 Paul Eggert <eggert@twinsun.com>
57763 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57764 to avoid collisions with libcurses and libreadline.
57766 * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
57767 * lib/getstr.h, getstr.c: Remove.
57768 * lib/getline.c: Include "getline.h", to check interface.
57769 Move body of old getstr.c here: this defines MIN_CHUNK and
57770 declares getdelim2, which is renamed from getstr.
57771 (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
57773 * lib/linebuffer.c (readlinebuffer): Renamed from readline.
57775 * lib/linebuffer.h: Likewise.
57776 (readline): Remove backward-compatibility macro.
57778 2003-01-12 Paul Eggert <eggert@twinsun.com>
57780 Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
57781 to avoid collisions with libcurses and libreadline.
57783 * MODULES.html.sh: Remove getstr.
57784 * modules/getline: Depend on unlocked-io, not getstr.
57786 2003-01-12 Jim Meyering <jim@meyering.net>
57788 * lib/makepath.c: Don't test HAVE_ERRNO_H. It's not necessary.
57790 2003-01-10 Bruno Haible <bruno@clisp.org>
57792 * modules/alloca: Change Makefile.am requirements. Simplify Include
57793 requirements. Add lib/alloca_.h to file list.
57795 2003-01-10 Bruno Haible <bruno@clisp.org>
57797 * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
57799 2003-01-10 Bruno Haible <bruno@clisp.org>
57801 * lib/alloca_.h: New file.
57802 * lib/getdate.y: Unconditionally include alloca.h.
57803 * lib/makepath.c: Likewise.
57804 * lib/setenv.c: Likewise.
57805 * lib/userspec.c: Likewise.
57807 2003-01-09 Karl Berry <karl@gnu.org>
57809 * MODULES.html.sh: include `dirname $0` in PATH, to find
57812 2003-01-09 Bruno Haible <bruno@clisp.org>
57814 * modules/stdbool: Change configure.ac, Makefile.am requirements.
57815 Simplify Include requirements. Add lib/stdbool.h.in to file list.
57817 2003-01-09 Bruno Haible <bruno@clisp.org>
57819 * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
57821 2003-01-09 Bruno Haible <bruno@clisp.org>
57823 * lib/stdbool.h.in: New file.
57825 2003-01-09 Bruno Haible <bruno@clisp.org>
57827 * gnulib-tool (func_all_modules): Ignore files ending in ~.
57828 * MODULES.html.sh: Likewise.
57830 2003-01-08 Jim Meyering <jim@meyering.net>
57832 * lib/full-write.c: Undefine and define-away `const' after inclusion
57833 of errno.h, not before. Suggestion from Bruno Haible.
57835 2003-01-08 Bruno Haible <bruno@clisp.org>
57837 * modules/full-read: Depend on full-write.
57839 2003-01-08 Bruno Haible <bruno@clisp.org>
57841 * lib/safe-read.c: Include specification header first, to ensure its
57843 * lib/full-write.c: Likewise.
57845 2003-01-07 Jim Meyering <jim@meyering.net>
57847 * lib/full-write.c: Rework so that it may serve to define full_read,
57849 * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
57851 2003-01-07 Bruno Haible <bruno@clisp.org>
57853 * lib/strtoimax.c: Include <stdint.h> as an alternative to
57855 * lib/xstrtol.h: Likewise.
57856 * lib/xstrtoimax.c: Likewise.
57857 * lib/xstrtoumax.c: Likewise.
57858 * lib/human.h: Likewise.
57860 * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
57861 on systems that have <inttypes.h> but not <stdint.h>.
57863 2003-01-07 Bruno Haible <bruno@clisp.org>
57865 * MODULES.html.sh: Add copyright notice.
57866 (missed_files): Omit CVS directory entries.
57867 (func_module): Make it work with sed-3.02.
57868 * MODULES.txt: Remove file.
57870 2003-01-06 Jim Meyering <jim@meyering.net>
57872 * lib/version-etc.c: Update year in translatable copyright string.
57874 2003-01-03 Karl Berry <karl@gnu.org>
57876 * config/config.{guess,sub}: update from prep.
57878 2003-01-02 Karl Berry <karl@gnu.org>
57880 * doc/COPYING.DOC: belatedly updated to 1.2.
57882 2003-01-01 Karl Berry <karl@gnu.org>
57884 * gnulib-tool (func_verify_module): report module name $module in
57885 error message, not $1.
57886 * gnulib-tool (create-testdir): don't complain if destdir couldn't
57887 be created, only if it doesn't exist.
57888 * gnulib-tool (last_checkin_date): don't expand the $Date here.
57890 2002-12-31 Paul Eggert <eggert@twinsun.com>
57892 * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
57894 2002-12-31 Paul Eggert <eggert@twinsun.com>
57896 * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
57897 memcmp if strcoll doesn't work.
57899 2002-12-31 Bruno Haible <bruno@clisp.org>
57901 * lib/utime.c (utime_null): No need to call ftruncate if the file was
57904 2002-12-31 Bruno Haible <bruno@clisp.org>
57906 * lib/memcoll.c (STRCOLL): New macro.
57909 2002-12-31 Bruno Haible <bruno@clisp.org>
57911 * lib/localcharset.h: New file.
57912 * lib/localcharset.c: Include it.
57913 * lib/unicodeio.c: Likewise.
57915 2002-12-31 Bruno Haible <bruno@clisp.org>
57917 * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
57918 * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
57920 2002-12-31 Bruno Haible <bruno@clisp.org>
57922 * lib/getline.h: Include <stddef.h>, for size_t.
57924 * lib/unicodeio.h: Include <stddef.h>, for size_t.
57925 * lib/unicodeio.c: Don't include <stddef.h>.
57927 2002-12-31 Bruno Haible <bruno@clisp.org>
57929 * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
57932 2002-12-24 Karl Berry <karl@gnu.org>
57934 * config/config.guess: update from prep.
57936 2002-12-24 Bruno Haible <bruno@clisp.org>
57938 General infrasructure.
57939 * m4/README: Rewritten.
57940 * m4/onceonly.m4: New file.
57941 * m4/onceonly_2_57.m4: New file.
57944 * m4/atexit.m4: New file.
57947 * m4/strtod.m4: New file.
57950 * m4/strtol.m4: New file.
57953 * m4/strtoul.m4: New file.
57956 * m4/memchr.m4: New file.
57959 * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
57960 (jm_FUNC_MEMCMP): Invoke it.
57963 * m4/memcpy.m4: New file.
57966 * m4/memmove.m4: New file.
57969 * m4/memset.m4: New file.
57972 * m4/strcspn.m4: New file.
57975 * m4/strpbrk.m4: New file.
57978 * m4/strstr.m4: New file.
57981 * m4/strerror.m4: New file.
57984 * m4/mktime.m4: Renamed from jm-mktime.m4.
57985 (gl_PREREQ_MKTIME): New macro.
57986 (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
57989 * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
57990 (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
57991 Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
57994 * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
57995 (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
57996 Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
57999 * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
58000 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
58001 Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
58003 (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
58006 * m4/xalloc.m4: New file.
58009 * m4/alloca.m4: New file.
58012 * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
58013 (jm_FUNC_PUTENV): Invoke it.
58016 * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
58017 (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
58018 when invoked twice.
58019 (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
58023 * m4/memrchr.m4: New file.
58026 * m4/stpcpy.m4: New file.
58029 * m4/strcase.m4: New file.
58032 * m4/strdup.m4: New file.
58035 * m4/strnlen.m4: New file.
58038 * m4/strndup.m4: New file.
58041 * m4/xstrtod.m4: New file.
58044 * m4/xstrtol.m4: New file.
58047 * m4/getdate.m4: New file.
58049 Module unlocked-io.
58050 * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
58051 (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
58052 * m4/jm-glibc-io.m4n: Remove file.
58054 Module long-options.
58055 * m4/long-options.m4: New file.
58058 * m4/md5.m4: New file.
58061 * m4/sha.m4: New file.
58064 * m4/getstr.m4: New file.
58067 * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
58068 (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
58069 <sys/types.h>, for size_t. Use the function name gnu_getline, not
58070 simply getline. Infoke gl_PREREQ_GETLINE.
58073 * m4/obstack.m4: New file.
58076 * m4/hash.m4: New file.
58079 * m4/readtokens.m4: New file.
58082 * m4/strverscmp.m4: New file.
58085 * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
58089 * m4/strtoll.m4: New file.
58092 * m4/strtoull.m4: New file.
58095 * m4/strtoimax.m4: New file.
58098 * m4/strtoumax.m4: New file.
58101 * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
58102 jm_AC_PREREQ_XSTRTOIMAX.
58103 Moved the strtol prerequisites to strtol.m4.
58104 Moved the strtoll prerequisites to strtoll.m4.
58105 Moved the strtoimax prerequisites to strtoimax.m4.
58108 * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
58109 jm_AC_PREREQ_XSTRTOUMAX.
58110 Moved the strtoul prerequisites to strtoul.m4.
58111 Moved the strtoull prerequisites to strtoull.m4.
58112 Moved the strtoumax prerequisites to strtoumax.m4.
58115 * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
58116 (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
58119 * m4/dup2.m4: New file.
58122 * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
58123 (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
58126 * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
58127 (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
58129 Module gettimeofday.
58130 * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
58131 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
58132 gl_PREREQ_GETTIMEOFDAY.
58135 * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
58136 (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
58139 * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
58140 (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
58141 jm_AC_TYPE_UINTMAX_T.
58142 (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
58145 * m4/stat.m4 (gl_PREREQ_STAT): New macro.
58146 (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
58149 * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
58150 (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
58153 * m4/timespec.m4 (gl_TIMESPEC): New macro.
58154 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
58155 * m4/st_mtim.m4: Indentation.
58158 * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
58159 (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
58160 gl_PREREQ_NANOSLEEP.
58163 * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
58164 (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
58165 (gl_REGEX): New macro.
58168 * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
58169 (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
58172 * m4/rmdir.m4: New file.
58175 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
58176 * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
58177 (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
58180 * m4/dirname.m4: New file.
58183 * m4/getopt.m4: New file.
58185 Module unistd-safer.
58186 * m4/unistd-safer.m4: New file.
58189 * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
58191 (gl_PREREQ_FNMATCH_EXTRA): New macro.
58192 (gl_FUNC_FNMATCH_POSIX): New macro.
58193 (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
58194 gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
58198 * m4/exclude.m4: New file.
58201 * m4/human.m4: New file.
58207 * m4/backupfile.m4: New file.
58208 * m4/d-ino.m4: Indentation.
58211 * m4/fsusage.m4 (gl_FSUSAGE): New macro.
58212 (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
58213 (gl_PREREQ_FSUSAGE_EXTRA): New macro.
58216 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
58220 * m4/euidaccess.m4: New file.
58223 * m4/file-type.m4: New file.
58226 * m4/fileblocks.m4: New file.
58229 * m4/filemode.m4: New file.
58232 * m4/isdir.m4: New file.
58235 * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
58236 (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
58239 * m4/makepath.m4: New file.
58242 * m4/modechange.m4: New file.
58245 * m4/mountlist.m4: New file.
58246 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
58249 Module path-concat.
58250 * m4/path-concat.m4: New file.
58253 * m4/pathmax.m4: New file.
58256 * m4/same.m4: New file.
58259 * m4/save-cwd.m4: New file.
58262 * m4/savedir.m4: New file.
58265 * m4/xgetcwd.m4: New file.
58266 * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
58269 * m4/xreadlink.m4: New file.
58272 * m4/safe-read.m4: New file.
58275 * m4/safe-write.m4: New file.
58278 * m4/closeout.m4: New file.
58280 Module stdio-safer.
58281 * m4/stdio-safer.m4: New file.
58284 * m4/getpass.m4: New file.
58287 * m4/getugroups.m4: New file.
58289 Module group-member.
58290 * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
58291 (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
58294 * m4/idcache.m4: New file.
58297 * m4/userspec.m4: New file.
58300 * m4/clock_time.m4: New file.
58301 * m4/gettime.m4: New file.
58304 * m4/settime.m4: New file.
58307 * m4/posixtm.m4: New file.
58309 Module gethostname.
58310 * m4/gethostname.m4: New file.
58313 * m4/canon-host.m4: New file.
58316 * m4/codeset.m4: New file, from gettext-0.11.5.
58317 * m4/gettext.m4: New file, from gettext-0.11.5.
58318 * m4/glibc21.m4: New file, from gettext-0.11.5.
58319 * m4/iconv.m4: New file, from gettext-0.11.5.
58320 * m4/intdiv0.m4: New file, from gettext-0.11.5.
58321 * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
58322 * m4/inttypes.m4: New file, from gettext-0.11.5.
58323 * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
58324 * m4/isc-posix.m4: New file, from gettext-0.11.5.
58325 * m4/lcmessage.m4: New file, from gettext-0.11.5.
58326 * m4/lib-ld.m4: New file, from gettext-0.11.5.
58327 * m4/lib-link.m4: New file, from gettext-0.11.5.
58328 * m4/lib-prefix.m4: New file, from gettext-0.11.5.
58329 * m4/progtest.m4: New file, from gettext-0.11.5.
58330 * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
58331 * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
58332 * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
58334 Module localcharset.
58335 * m4/localcharset.m4: New file.
58337 Module hard-locale.
58338 * m4/hard-locale.m4: New file.
58341 * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
58343 * m4/mbrtowc.m4: Add comment.
58346 * m4/memcasecmp.m4: New file.
58349 * m4/memcoll.m4: New file.
58352 * m4/unicodeio.m4: New file.
58355 * m4/rpmatch.m4: New file.
58358 * m4/yesno.m4: New file.
58361 * m4/exitfail.m4: New file.
58364 * m4/c-stack.m4 (gl_C_STACK): New macro.
58365 (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
58368 * m4/error.m4 (gl_ERROR): New macro.
58369 (jm_PREREQ_ERROR): Use onceonly macros.
58372 * m4/fatal.m4: New file.
58375 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
58376 (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
58378 Module getpagesize.
58379 * m4/getpagesize.m4: New file.
58381 Module getusershell.
58382 * m4/getusershell.m4: New file.
58385 * m4/physmem.m4: New file.
58388 * m4/posixver.m4: New file.
58391 * m4/quotearg.m4: New file.
58394 * m4/quote.m4: New file.
58397 * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
58400 * m4/sig2str.m4: New file.
58403 * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
58405 * m4/intmax_t.m4: New file.
58406 * m4/d-type.m4: Indentation.
58407 * m4/jm-macros.m4: Update.
58408 * m4/prereq.m4 (jm_PREREQ): Update.
58409 (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
58410 (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
58411 (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
58412 (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
58413 (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
58414 (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
58415 (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
58416 (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
58417 (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
58418 (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
58419 (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
58420 (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
58421 (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
58422 (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
58423 (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
58424 (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
58425 (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
58426 (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
58427 * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
58429 2002-12-24 Bruno Haible <bruno@clisp.org>
58431 * MODULES.txt: Update according to m4/ changes.
58434 * config.rpath: New file, from gettext-0.11.5.
58436 * modules/*: New module descriptions.
58437 * gnulib-tool: New file.
58438 * MODULES.html.sh: New file.
58440 2002-12-21 Karl Berry <karl@gnu.org>
58442 * doc/fdl.texi: update to version 1.2.
58444 2002-12-19 Karl Berry <karl@gnu.org>
58446 * config/config.guess: update from prep.
58448 2002-12-18 Bruno Haible <bruno@clisp.org>
58450 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
58451 * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
58453 2002-12-17 Bruno Haible <bruno@clisp.org>
58455 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
58456 stdlib.h, string.h.
58458 2002-12-17 Bruno Haible <bruno@clisp.org>
58460 * lib/canon-host.c (strdup): Remove unused declaration.
58462 * lib/fsusage.c: Include full_read.h.
58463 (get_fs_usage): Use full_read instead of safe_read.
58465 * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
58467 2002-12-12 Karl Berry <karl@gnu.org>
58469 * config/config.guess: update from prep.
58471 2002-12-11 Bruno Haible <bruno@clisp.org>
58473 * m4/setenv.m4: New file, from gettext-0.11.5.
58475 2002-12-11 Bruno Haible <bruno@clisp.org>
58477 * lib/setenv.h: Rewritten to cope with systems that have setenv() but
58479 * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
58482 2002-12-11 Bruno Haible <bruno@clisp.org>
58484 * setenv.c (alloca): Fall back to malloc.
58485 (freea): New macro.
58486 (setenv): Use freea() to free memory allocated with alloca().
58488 2002-11-13 Bruno Haible <bruno@clisp.org>
58490 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
58491 function declarations.
58492 * unsetenv.c (unsetenv): Likewise.
58494 2002-03-04 Bruno Haible <bruno@clisp.org>
58496 Portability to AIX 4.3.3.
58497 * unsetenv.c: New file, extracted from setenv.c.
58498 * setenv.c: Move the unsetenv() function to unsetenv.c.
58500 2001-12-20 Bruno Haible <bruno@clisp.org>
58502 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
58503 use malloc instead. For SunOS 4.
58505 2001-12-11 Bruno Haible <bruno@clisp.org>
58507 * setenv.c: Declare alloca.
58508 (compar_fn_t): New typedef.
58509 (KNOWN_VALUE, STORE_VALUE): Use it.
58511 * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
58514 2002-12-10 Paul Eggert <eggert@twinsun.com>
58516 Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
58517 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
58518 Choose values that are less likely to collide with system fnmatch
58520 * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
58521 defined (e.g., a pure POSIX system).
58522 (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
58523 instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
58525 2002-12-06 Paul Eggert <eggert@twinsun.com>
58527 Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
58528 a pain in practice to deal with generated m4 files. This change
58529 goes together with the 2002-12-04 unlocked-io.h change in ../lib.
58531 * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
58532 and jm-glibc-io.m4, as they are no longer a special case.
58533 * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
58534 kludge and the auto-generation stuff. Check only whether the
58535 functions are declared, not whether they exist, since older hosts
58536 that don't declare the functions can't use the optimization anyway.
58538 2002-12-06 Jim Meyering <jim@meyering.net>
58540 * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
58542 Merge in changes from libc's misc/error.c, in preparation
58543 for the merge of gnulib's changes back into libc.
58545 * lib/error.c (_): Define only if not already defined.
58546 Move definition to follow all #include directives.
58547 Include unlocked-io.h only if !_LIBC.
58548 [_LIBC]: Include <libio/libioP.h>.
58549 [USE_IN_LIBIO]: Include <libio/iolibio.h>
58550 (fflush): Tweak definition to use INTUSE.
58553 2002-12-05 Paul Eggert <eggert@twinsun.com>
58555 * lib/alloca.c [defined emacs]: Include "lisp.h".
58556 (xalloc_die) [defined emacs]: New macro.
58557 (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
58558 [! defined emacs]: Include <xalloc.h>.
58559 (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
58560 (pointer): Typedef to POINTER_TYPE *.
58561 (malloc): Remove decl; we now always use xmalloc.
58562 (alloca): Use old-style definition, since Emacs needs this.
58563 Check for arithmetic overflow when computing combined size.
58565 2002-12-04 Paul Eggert <eggert@twinsun.com>
58567 Do not generate unlocked-io.h automatically, since it's easier to
58568 maintain it by hand.
58570 * lib/unlocked-io.h: New file, from GNU diffutils,
58571 but with proper copyright notice and attribution.
58572 * lib/gen-uio: Remove.
58573 * lib/Makefile.am: Add copyright notice.
58574 (libfetish_a_SOURCES): Add unlocked-io.h.
58575 (BUILT_SOURCES, all-local): Remove unlocked-io.h.
58576 (DISTCLEANFILES, io_functions): Remove macros.
58577 (EXTRA_DIST): Remove gen_uio.
58578 (unlocked-io.h): Remove rule.
58580 2002-12-04 Jim Meyering <jim@meyering.net>
58582 Reflect the fact that stat.c and lstat.c are no longer generated.
58583 * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
58584 (DISTCLEANFILES): Likewise.
58585 (EXTRA_DIST): Likewise.
58586 (all_local): Don't depend on stat.c or lstat.c.
58587 (stat.c, lstat.c): Remove rules.
58588 (EXTRA_DIST): Remove xstat.in.
58590 * lib/xstat.in: Remove file. Contents moved into stat.c.
58591 * lib/stat.c: New file. Contents mostly from xstat.in.
58592 * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
58593 * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
58595 * lib/safe-read.c: Rework so that it may serve to define safe_write,
58597 * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
58599 2002-12-03 Jim Meyering <jim@meyering.net>
58601 * lib/safe-read.c, safe-write.c: Change variable names and comments,
58602 but not semantics, to minimize the differences between these two files.
58603 (safe_read): Change comment to mention SAFE_READ_ERROR.
58605 * lib/safe-read.c (IS_EINTR): Define.
58606 (safe_read): Use IS_EINTR in place of in-function cpp directives.
58608 2002-12-02 Jim Meyering <jim@meyering.net>
58610 * lib/safe-read.c (EINTR): Define.
58611 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
58612 (INT_MAX): Provide fallback.
58613 (safe_read): Rewrite to iterate IFF the read fails with EINTR.
58615 * lib/safe-read.h (SAFE_READ_ERROR): Define.
58617 2002-12-02 Bruno Haible <bruno@clisp.org>
58619 * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
58620 Define, taken from safe-read.c.
58621 (INT_MAX): Provide fallback.
58622 (safe_write): Rewrite to iterate IFF the write fails with EINTR.
58623 * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
58625 * lib/safe-read.c (EINTR): Remove definition.
58626 (safe_read): Don't use EINTR if it is absent.
58628 2002-12-01 Jim Meyering <jim@meyering.net>
58630 * lib/safe-read.c: (safe_read): Also exit the loop when read returns
58632 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
58634 2002-11-27 Paul Eggert <eggert@twinsun.com>
58636 * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
58637 hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
58638 with `if (! (value < limit)) abort ();', for readability.
58640 2002-11-26 Karl Berry <karl@gnu.org>
58642 * lib/strdup.c: copy from libc again, with jim's ok.
58643 * lib/.cppi-disable: re-add strdup.c
58645 2002-11-25 Karl Berry <karl@gnu.org>
58647 * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
58648 instead of "strtol.c".
58650 2002-11-25 Karl Berry <karl@gnu.org>
58652 * config/install-sh: update from automake for variable quoting, $0 in
58655 * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
58656 * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
58659 2002-11-25 Jim Meyering <jim@meyering.net>
58661 * lib/mktime.c: Sync from libc, now that it has the latest fix.
58663 2002-11-24 Karl Berry <karl@gnu.org>
58665 * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
58666 regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
58668 2002-11-24 Jim Meyering <jim@meyering.net>
58670 Update from coreutils:
58672 * lib/mktime.c: Merge in changes from libc.
58674 Avoid a link-time failure on some Linux systems.
58675 * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
58677 (__mon_yday): Declare with the STATIC attribute.
58678 (__mktime_internal): Likewise.
58679 Based on a report from Greg Schafer.
58681 2002-11-23 Jim Meyering <jim@meyering.net>
58683 * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
58684 Use `unsigned', not `int', as type of index.
58686 * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
58688 * lib/fsusage.c: Remove unneeded parentheses around operands of
58691 2002-11-22 Paul Eggert <eggert@twinsun.com>
58693 * lib/quotearg.h: Allow multiple inclusion by surrounding with
58694 "#ifndef QUOTEARG_H_". Include <stddef.h>, for size_t,
58695 so that we can be included first.
58696 (PARAMS): Remove; we now assume C89 or later. All uses removed.
58697 * lib/quotearg.c: Include quotearg.h immediately after config.h.
58698 No need to include stddef.h or sys/types.h any more.
58699 Surround local include files with "", not "<>".
58700 Assume HAVE_LIMITS_H unconditionally, as we assume C89.
58701 Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
58702 HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
58703 (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
58704 (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
58705 (ISPRINT): Remove; no longer needed now that we assume C89.
58707 (clone_quoting_options, quotearg_buffer, quotearg_n_options):
58710 (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
58711 quotearg_char): Use SIZE_MAX rather than
58712 (size_t) -1 when we are talking about "infinity".
58714 (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
58716 2002-11-22 Paul Eggert <eggert@twinsun.com>
58718 * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
58719 hint that one should use `if (! x) abort ();' rather than `assert
58720 (x);', and anyway it's one less thing to worry about configuring.
58721 (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
58722 hash_rehash, hash_insert): Use abort rather than assert.
58724 2002-11-22 Bruno Haible <bruno@clisp.org>
58726 * lib/safe-read.h: Assume C89. Add comments.
58727 (safe_read): Change return type to size_t.
58728 * lib/safe-read.c (safe_read): Change return type to size_t. Handle
58729 byte counts > SSIZE_MAX correctly.
58730 * lib/safe-write.h: New file.
58731 * lib/safe-write.c: New file.
58732 * lib/full-read.h: New file.
58733 * lib/full-read.c: New file.
58734 * lib/full-write.h: Assume C89. Add comments.
58735 * lib/full-write.c: Include safe-write.h.
58736 (full_write): Rewritten to use safe_write.
58737 Suggested by Jim Meyering and Paul Eggert.
58739 2002-11-21 Jim Meyering <jim@meyering.net>
58741 * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
58743 Merge in changes from the coreutils.
58745 2002-09-25 Paul Eggert <eggert@twinsun.com>
58746 * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
58748 (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
58749 (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
58750 int. Work more efficiently if X is the same width as uintmax_t.
58751 Do not compare X to -1, to avoid bogus compiler warning.
58752 (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
58753 Don't assume that f_frsize and f_bsize are the same type.
58755 * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
58756 warning on FreeBSD.
58758 * lib/makepath.c (make_path): Restore umask *before* creating the final
58760 (make_path): Minor reformatting.
58762 * lib/xmalloc.c: Adjust to work with new autoconf macros,
58763 AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
58764 HAVE_MALLOC/HAVE_REALLOC.
58766 * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
58767 dummy ones. At least on GNU/Linux systems, `auto' means something
58769 From Michael Stone.
58771 2002-11-21 Bruno Haible <bruno@clisp.org>
58773 Remove case insensitive option matching.
58774 * lib/argmatch.h (argcasematch): Remove declaration.
58775 (ARGCASEMATCH): Remove macro.
58776 (__xargmatch_internal): Remove case_sensitive argument.
58777 (XARGMATCH): Update.
58778 (XARGCASEMATCH): Remove macro.
58779 * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
58780 case_sensitive argument.
58781 (argcasematch): Remove function.
58782 (__xargmatch_internal): Remove case_sensitive argument.
58783 (main): Use XARGMATCH instead of XARGCASEMATCH.
58785 * lib/xmalloc.c: Change compile-time error message. Add comment about
58786 required autoconf version.
58788 2002-11-20 Paul Eggert <eggert@twinsun.com>
58790 Merge argmatch cleanups from Bison. Assume C89.
58792 * lib/argmatch.c: Include config.h here, not in argmatch.h.
58793 Include stdlib.h, for EXIT_FAILURE.
58794 Always include <string.h>, since we assume C89.
58795 (EXIT_FAILURE): Remove pre-C89 bug workaround.
58796 * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
58797 Include <stddef.h> instead, since it's all we need for size_t.
58798 (PARAMS): Remove. All uses removed.
58799 (ARRAY_CARDINALITY): Do not bother to #undef.
58800 (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
58801 ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58802 Remove unnecessary parentheses.
58803 (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
58804 Insert necessary parentheses.
58805 (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
58806 (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
58808 2002-11-19 Bruno Haible <bruno@clisp.org>
58810 * lib/mbswidth.c: Include mbswidth.h right at the beginning.
58811 * lib/mbswidth.h: Include <stddef.h>, for size_t.
58813 * lib/mbswidth.h (PARAMS): Remove macro.
58814 (mbswidth, mbsnwidth): Use ANSI C function declarations.
58815 * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
58817 * lib/gcd.h (PARAMS): Remove macro.
58818 (gcd): Use ANSI C function declarations.
58819 * lib/gcd.c (gcd): Likewise.
58821 2002-11-15 Bruno Haible <bruno@clisp.org>
58823 * lib/strcspn.c: Include <stddef.h>.
58824 (strcspn): Use ANSI C function declaration. Change return type to
58826 * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
58827 (strpbrk): Use NULL.
58828 * lib/strpbrk.h (PARAMS): Remove macro.
58829 (strpbrk): Use ANSI C function declaration.
58830 * lib/strstr.c: Don't include <sys/types.h>.
58831 * lib/strstr.h (PARAMS): Remove macro.
58832 (strstr): Use ANSI C function declarations.
58834 2002-11-14 Karl Berry <karl@gnu.org>
58836 * config/mkinstalldirs: `do' on separate line, instead of
58839 2002-11-06 Bruno Haible <bruno@clisp.org>
58841 * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
58842 * lib/gcd.c (gcd): Likewise.
58844 2002-11-05 Bruno Haible <bruno@clisp.org>
58846 * lib/gcd.h: New file, from gettext-0.11.5.
58847 * lib/gcd.c: New file, from gettext-0.11.5.
58849 2002-11-05 Bruno Haible <bruno@clisp.org>
58851 * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58852 * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58853 * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58854 * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
58856 * lib/argmatch.c: Include gettext.h instead of <locale.h> and
58858 * lib/makepath.c: Include gettext.h instead of <locale.h> and
58861 * lib/closeout.c: Include gettext.h instead of <libintl.h>.
58862 * lib/human.c: Include gettext.h instead of <libintl.h>.
58863 * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
58864 * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
58865 * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
58866 * lib/userspec.c: Include gettext.h instead of <libintl.h>.
58867 * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
58868 * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
58869 (textdomain): Remove definition.
58870 * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
58872 * lib/long-options.c: Remove include of <libintl.h> and definition of
58874 * lib/same.c: Remove include of <libintl.h> and definition of _.
58876 2002-11-04 Owen Taylor <otaylor@redhat.com>
58878 * lib/config.charset: A few additions for Solaris.
58880 2002-11-04 Bruno Haible <haible@clisp.cons.org>
58882 Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
58883 * lib/localcharset.c (locale_charset): Declare as extern "C".
58885 2002-11-04 Bruno Haible <haible@clisp.cons.org>
58887 * lib/config.charset: msdos in uk_UA uses CP1125.
58889 2002-11-04 Bruno Haible <bruno@clisp.org>
58891 * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
58892 * lib/strcase.h: New file, from GNU gettext-0.11.5.
58893 * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
58894 * lib/strstr.h: New file, from GNU gettext-0.11.5.
58895 * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
58897 2002-11-04 Bruno Haible <bruno@clisp.org>
58899 * lib/localcharset.c (locale_charset): Don't return an empty string.
58901 2002-11-04 Bruno Haible <bruno@clisp.org>
58903 * lib/localcharset.c (get_charset_aliases): Add more Windows specific
58906 2002-11-04 Bruno Haible <bruno@clisp.org>
58908 * lib/config.charset: Update for newest glibc. Add canonical names
58909 ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
58911 2002-11-04 Bruno Haible <bruno@clisp.org>
58913 * lib/config.charset: Add support for NetBSD.
58915 2002-11-04 Bruno Haible <bruno@clisp.org>
58917 * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
58919 2002-11-01 Bruno Haible <bruno@clisp.org>
58921 * configure.in: Add AC_CONFIG_AUX_DIR call.
58922 (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
58924 * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
58926 2002-09-28 Karl Berry <karl@gnu.org>
58928 * config/srclist.txt: can't copy install-sh/mkinstalldirs from
58929 installed automake until the next release, since changes have been
58932 2002-09-25 Karl Berry <karl@gnu.org>
58934 * lib/strdup.c: copy from libc/string (via ../config/srclist*).
58935 * lib/getopt*: copy from libc/posix.
58936 * lib/gettext.h: copy from gettext.
58937 * lib/.cppi-disable: add strdup.c, gettext.h.
58939 2002-09-25 Karl Berry <karl@gnu.org>
58941 * config/srclist.txt: enable gettext.h check.
58942 * config/config.{guess,sub}: update from prep.
58943 * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
58944 from automake 1.6.3.
58947 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
58949 * regex.c (PATFETCH): Remove the translating fetch.
58950 (PATFETCH_RAW): Rename to PATFETCH.
58951 (set_image_of_range): New fun.
58952 (SET_RANGE_TABLE_WORK_AREA): Use it.
58953 (regex_compile): Don't translate the pattern chars so eagerly.
58954 Only do it when inserting an `exactn' bytecode or when handling
58956 (mutually_exclusive_p): Avoid empty statement.
58958 2002-07-06 Jim Meyering <meyering@lucent.com>
58960 * m4/README: Don't mention Makefile.am.in.
58961 Outline how I've tested changes to .m4 files. Yep, it's a pain.
58963 2002-07-01 Jim Meyering <meyering@lucent.com>
58965 * lib/c-stack.c: Include sys/time.h.
58966 From Volker Borchert.
58968 2002-06-26 Paul Eggert <eggert@twinsun.com>
58970 * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
58972 2002-06-26 Paul Eggert <eggert@twinsun.com>
58974 * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
58975 New macro. Use it uniformly instead of
58976 (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
58977 It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
58978 reported by Vin Shelton.
58980 2002-06-22 Paul Eggert <eggert@twinsun.com>
58982 * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
58983 Do not assume SA_SIGINFO behavior.
58984 Bug reported by Jim Meyering on NetBSD 1.5.2.
58986 2002-06-22 Jim Meyering <meyering@lucent.com>
58988 * m4/c-stack.m4: New file, from diffutils-2.8.2.
58989 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
58991 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
58992 now that configure.ac uses AC_GNU_SOURCE.
58993 (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
58994 * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
58996 Update to latest tools. Suggestions from Paul Eggert.
58997 * m4/stdbool.m4: New file, from diffutils-2.8.2.
58998 * m4/gnu-source.m4: Update from diffutils-2.8.2.
58999 * m4/fnmatch.m4: Likewise.
59000 * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
59001 to AC_HEADER_STDBOOL
59003 2002-06-22 Jim Meyering <meyering@lucent.com>
59005 * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
59006 redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
59008 2002-06-22 Jim Meyering <meyering@lucent.com>
59010 * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
59012 * lib/exitfail.c, exitfail.h: Likewise.
59013 * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
59015 * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
59017 (EXTRA_DIST): Add fnmatch_loop.c.
59018 (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
59020 * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
59021 * lib/fnmatch.c: Update from diffutils-2.8.2.
59022 * lib/fnmatch_.h: New file. From diffutils-2.8.2.
59023 * lib/fnmatch.h: Remove file.
59025 2002-06-21 Jim Meyering <meyering@lucent.com>
59027 * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
59028 * m4/mbrtowc.m4: Likewise.
59030 * m4/mbstate_t.m4: Update from diffutils-2.8.2.
59031 * m4/mbswidth.m4: Reflect name change:
59032 s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
59033 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
59035 * m4/lib-link.m4: Update from gettext-0.11.2.
59036 * m4/gettext.m4: Likewise.
59038 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
59039 From Alfred M. Szmidt.
59041 2002-06-18 Paul Eggert <eggert@twinsun.com>
59043 * lib/file-type.h: Report an error if neither S_ISREG nor
59044 S_IFREG is defined, instead of using a test specific to glibc
59045 2.2. This should be safe, since POSIX requires S_ISREG and
59046 Unix Version 7 had S_IFREG. We don't need to check for
59047 <sys/types.h> since we don't use any symbols that it defines.
59049 2002-06-15 Richard Dawe <richdawe@bigfoot.com>
59051 * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
59052 $@-t, so that each temporary file name is unique and valid in the first
59053 8 characters, for operation under DOS.
59055 2002-06-15 Paul Eggert <eggert@twinsun.com>
59057 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
59059 2002-06-15 Jim Meyering <meyering@lucent.com>
59061 Work even with DJGPP 2.03, which lacks support for symlinks.
59063 * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
59065 * lib/lchown.c (S_ISLNK): Likewise.
59067 2002-06-15 Jim Meyering <meyering@lucent.com>
59069 * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
59070 For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
59071 have been included before this file.
59073 2002-06-14 Jim Meyering <meyering@lucent.com>
59075 * lib/file-type.h: Use the version from diffutils-2.8.2.
59076 * lib/file-type.c: Likewise.
59078 2002-06-07 Jim Meyering <meyering@lucent.com>
59080 * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
59081 They're needed at least for NetBSD 1.5.2.
59082 ($statxfs_includes): Include those same headers.
59083 ($statxfs_includes): Include sys/vfs.h if available.
59084 ($statxfs_includes): Likewise for sys/statvfs.h.
59085 Check for the following members in both structs statfs and statvfs:
59086 f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
59088 2002-06-01 Jim Meyering <meyering@lucent.com>
59090 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
59091 s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
59093 2002-05-28 Jim Meyering <meyering@lucent.com>
59095 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
59096 Reported by Volker Borchert.
59098 2002-05-27 Jim Meyering <meyering@lucent.com>
59100 Fix a problem seen only on nonconforming systems whereby ls.c's
59101 use of localtime, and then of gettimeofday would cause trouble:
59102 the localtime call used to initialize rpl_gettimeofday's save
59103 mechanism would clobber ls's current local time information so
59104 that in any long listing the first file would always be listed
59105 with date 1970-01-01. Analysis by Volker Borchert.
59107 * lib/gettimeofday.c (localtime): Undefine.
59108 (rpl_localtime): New function.
59110 2002-05-27 Jim Meyering <meyering@lucent.com>
59112 * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
59115 * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
59116 use the replacement function; it wouldn't resolve at link time.
59117 Reported by Volker Borchert.
59119 2002-05-22 Jim Meyering <meyering@lucent.com>
59121 * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
59123 * lib/file-type.h: New file.
59124 * lib/file-type.c (file_type): New file/function. Extracted from
59127 2002-04-30 Jim Meyering <meyering@lucent.com>
59129 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
59131 2002-04-29 Paul Eggert <eggert@twinsun.com>
59133 * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
59135 2002-04-29 Paul Eggert <eggert@twinsun.com>
59137 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
59138 Do not check for alloca.h (no longer used) or stdbool.h (was never
59139 used?). Add AM_C_PROTOTYPES since hard-locale.h uses it.
59141 2002-04-29 Paul Eggert <eggert@twinsun.com>
59143 * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
59145 2002-04-29 Jim Meyering <meyering@lucent.com>
59147 * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
59148 * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
59149 Use AC_FUNC_STRNLEN here instead.
59151 * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
59152 With autoconf-2.53a, it's part of AC_PROG_CC.
59154 2002-04-28 Paul Eggert <eggert@twinsun.com>
59156 * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
59157 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
59159 2002-04-28 Paul Eggert <eggert@twinsun.com>
59161 * lib/sig2str.h, lib/sig2str.c: New files.
59162 * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
59164 2002-04-28 Paul Eggert <eggert@twinsun.com>
59166 * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
59167 depending on <sys/wait.h> and WTERMSIG. Default to 64 instead
59168 of 127, since 64 is the largest conceivable number for ancient
59170 * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
59172 2002-04-28 Jim Meyering <meyering@lucent.com>
59174 * lib/sig2str.c (WTERMSIG): Remove definition (unused).
59176 2002-04-24 Jim Meyering <meyering@lucent.com>
59178 * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
59179 (jm_PREREQ): Use it.
59181 * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
59182 mach/mach.h fcntl.h.
59183 Check for this function: setlocale.
59185 2002-04-24 Jim Meyering <meyering@lucent.com>
59187 * lib/gettext.h: New file, from Gettext.
59188 * lib/Makefile.am (INCLUDES): Remove -I../intl.
59189 (libfetish_a_SOURCES): Add gettext.h.
59191 2002-04-16 Jim Meyering <meyering@lucent.com>
59193 * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
59194 ut_pid, ut_id, ut_exit.
59196 2002-04-16 Jim Meyering <meyering@lucent.com>
59198 * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
59199 (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
59200 (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
59202 2002-04-12 Jim Meyering <meyering@lucent.com>
59204 * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
59205 now-bogus check for f_type in sys/mount.h. Instead, just test for the
59206 existence of the getmntinfo function. Needed for Darwin 5.3.
59208 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
59209 This is necessary at least on Darwin 5.3.
59211 * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
59212 AC_FUNC_STRNLEN. Otherwise, we'd end up putting two copies of
59213 strnlen.o in the library, and that makes some versions of ranlib
59216 2002-04-12 Jim Meyering <meyering@lucent.com>
59218 * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
59220 2002-04-09 Jim Meyering <meyering@lucent.com>
59222 * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
59223 to be more precise. Rather than saying we're checking whether the
59224 function `works', say what we're testing.
59225 * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
59226 Reported by Bruno Haible.
59228 2002-03-10 Jim Meyering <meyering@lucent.com>
59230 * lib/makepath.c (make_path): Remove a comma from a diagnostic.
59231 Suggestion from Santiago Vila.
59233 2002-03-08 Jim Meyering <meyering@lucent.com>
59235 * lib/rename.c: Mention that this wrapper is needed also on
59236 mips-dec-ultrix4.4 systems.
59238 2002-03-02 Jim Meyering <meyering@lucent.com>
59240 * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
59241 not HAVE_CLOCK_SETTIME.
59243 2002-02-27 Paul Eggert <eggert@twinsun.com>
59245 * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
59246 Check for clock_settime.
59248 2002-02-27 Paul Eggert <eggert@twinsun.com>
59250 * lib/nanosleep.h: Rename to....
59251 * lib/timespec.h: New name for nanosleep.h. All uses changed.
59253 * lib/gettime.c: New file.
59254 * lib/settime.c: New file.
59255 * lib/stime.c: Remove.
59257 * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
59258 timespec.h. Remove nanosleep.h.
59260 2002-02-25 Paul Eggert <eggert@twinsun.com>
59262 * m4/acl.m4: New file.
59263 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
59264 Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
59266 2002-02-25 Paul Eggert <eggert@twinsun.com>
59268 * lib/acl.c, lib/acl.h: New files.
59269 * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
59271 2002-02-24 Jim Meyering <meyering@lucent.com>
59273 * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
59274 prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
59275 cause trouble. Reported by Nelson Beebe.
59277 2002-02-23 Paul Eggert <eggert@twinsun.com>
59279 * lib/path-concat.c (xpath_concat): Reorder code to pacify
59280 compilers that don't know that xalloc_die never returns.
59282 2002-02-20 Jim Meyering <meyering@lucent.com>
59284 * lib/getdate.c: Regenerate using bison-1.33.
59286 2002-02-17 Jim Meyering <meyering@lucent.com>
59288 * config/config.guess (main): Don't use `head -1'; it's no longer
59289 portable. Use `sed 1q' instead.
59291 2002-02-16 gettextize <bug-gnu-gettext@gnu.org>
59293 * m4/codeset.m4: Upgrade to gettext-0.11.
59294 * m4/gettext.m4: Upgrade to gettext-0.11.
59295 * m4/glibc21.m4: Upgrade to gettext-0.11.
59296 * m4/iconv.m4: Upgrade to gettext-0.11.
59297 * m4/isc-posix.m4: Upgrade to gettext-0.11.
59298 * m4/lcmessage.m4: Upgrade to gettext-0.11.
59299 * m4/lib-ld.m4: New file, from gettext-0.11.
59300 * m4/lib-link.m4: New file, from gettext-0.11.
59301 * m4/lib-prefix.m4: New file, from gettext-0.11.
59302 * m4/progtest.m4: Upgrade to gettext-0.11.
59304 2002-02-15 Paul Eggert <eggert@twinsun.com>
59306 * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
59307 (jm_PREREQ): Use it.
59309 2002-02-15 Paul Eggert <eggert@twinsun.com>
59311 * lib/posixver.c, lib/posixver.h: New files.
59312 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59314 2002-02-02 Paul Eggert <eggert@twinsun.com>
59315 Bruno Haible <bruno@clisp.org>
59317 * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
59318 (fwrite_success_callback): New declaration.
59319 * lib/unicodeio.c (unicode_to_mb): New function, extracted from
59320 print_unicode_char. Call failure callback instead of error.
59321 (fwrite_success_callback): New function.
59322 (exit_failure_callback): New function.
59323 (fallback_failure_callback): New function.
59324 (print_unicode_char): Call unicode_to_mb.
59326 2002-01-26 Jim Meyering <meyering@lucent.com>
59328 * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
59329 * m4/strnlen.m4: Remove file, now that it's part of autoconf.
59331 2002-01-26 Jim Meyering <meyering@lucent.com>
59333 * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
59335 2002-01-22 Paul Eggert <eggert@twinsun.com>
59337 * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
59339 2002-01-22 Jim Meyering <meyering@lucent.com>
59341 * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
59342 Otherwise, some versions of automake would omit the rule that makes
59343 Makefile from Makefile.in.
59345 2002-01-21 Paul Eggert <eggert@twinsun.com>
59347 * lib/xmemcoll.h, lib/xmemcoll.c: New files.
59348 * lib/Makefile.am (libfetish_a_SOURCES): Add them.
59349 * lib/memcoll.c: Include errno.h, and declare errno if not defined.
59350 (memcoll): Set errno to zero if there is no error.
59352 * lib/quotearg.c (quotearg_buffer_restyled):
59353 Fix bug with quoting buffers containing NUL when backslashing escapes.
59354 This bug was exposed by the other changes in this patch.
59355 (quotearg_n_options): New arg ARGSIZE.
59356 All callers changed.
59357 (quoting_options_from_style): New function.
59358 (quotearg_n_style): Use it.
59359 (quotearg_n_style_mem): New function.
59361 * lib/quotearg.h (quotearg_n_style_mem): New function.
59363 2002-01-19 Jim Meyering <meyering@lucent.com>
59365 * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
59366 Remove useless quotes: DF_PROG="df".
59367 * m4/strnlen.m4: New file.
59369 2002-01-16 Paul Eggert <eggert@twinsun.com>
59371 * lib/backupfile.c (ISDIGIT): Comment fix.
59372 * lib/getdate.y (ISDIGIT): Likewise.
59373 * lib/posixtm.c (ISDIGIT, year): Likewise.
59374 * lib/strverscmp.c (ISDIGIT): Likewise.
59375 * lib/userspec.c (ISDIGIT): Likewise.
59377 2002-01-16 Jim Meyering <meyering@lucent.com>
59379 * lib/getdate.y: Add three semicolons, each just before a closing
59380 brace. Bison (as of version 1.31) no longer papers over that mistake.
59382 2002-01-05 Jim Meyering <meyering@lucent.com>
59384 * lib/version-etc.c (version_etc_copyright): Update copyright year.
59386 2001-12-19 Paul Eggert <eggert@twinsun.com>
59388 * lib/closeout.c (close_stdout_status): If ferror (stdout), do
59389 not silently exit merely because the output buffer happens to
59390 have nothing pending.
59392 2001-12-18 Paul Eggert <eggert@twinsun.com>
59394 See the big note in ../ChangeLog.
59395 * lib/human.c (suffixes): Prefer K to k for 1024.
59396 (generate_suffix_backwards): New function.
59397 (human_readable_inexact): Use it.
59398 * lib/xstrtol.c (__xstrtol): If there is no number but there
59399 is a valid suffix, assume 1. "MB" now means decimal, "MiB" binary.
59400 Accept 'K' as well as 'k'.
59402 2001-12-15 Jim Meyering <meyering@lucent.com>
59404 * lib/regex.h (__restrict_arr): Update from libc.
59406 * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
59407 as `remote' if the name starts with `//'. Suggested by Michael Stone.
59410 2001-12-14 Jim Meyering <meyering@lucent.com>
59412 * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
59413 Suggestion from Bruno Haible.
59415 2001-12-10 Jim Meyering <meyering@lucent.com>
59417 * lib/linebuffer.c: Remove explicit declarations of xmalloc and
59418 xrealloc, Instead, include "xalloc.h".
59419 (initbuffer): Don't cast xmalloc return value to char*.
59420 (readline): Reword comment.
59421 Don't cast xrealloc return value to char*
59422 Return NULL, not 0.
59424 2001-12-09 Jim Meyering <meyering@lucent.com>
59426 * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
59427 about `signed and unsigned type in conditional expression'.
59428 * lib/posixtm.c (posix_time_parse): Likewise.
59430 * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
59432 * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
59433 to avoid a pedantic warning.
59435 * lib/getstr.c: Don't include assert.h.
59436 (getstr): Remove warning-evoking assertions.
59437 Return -1 if offset parameter is out of bounds.
59438 Change the type of a local from int to size_t.
59440 * lib/strftime.c (my_strftime_localtime_r): Include this function
59441 definition in the `#if ! HAVE_TM_GMTOFF' block.
59443 * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
59444 Include xalloc.h instead.
59446 2001-12-02 Jim Meyering <meyering@lucent.com>
59448 * lib/tempname.c: Don't declare getenv, thus reverting the change of
59449 2001-11-18. It's no longer necessary, now that stdlib.h is always
59452 * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
59453 __unbounded, and __ptrvalue. Reported by Uwe H. Steinfeld.
59455 2001-11-30 Akim Demaille <akim@epita.fr>
59457 * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
59458 before being defined.
59460 2001-11-27 Paul Eggert <eggert@twinsun.com>
59462 * lib/quotearg.h (quotearg_n, quotearg_n_style):
59463 First arg is int, not unsigned.
59464 * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
59465 (SIZE_MAX, UINT_MAX): New macros.
59466 (quotearg_n_options): Abort if N is negative.
59467 Avoid overflow check on hosts where size_t is 64 bits and int
59468 is 32 bits, as overflow is impossible there.
59469 Fix off-by-one typo that caused unnecessary reallocation.
59471 2001-11-27 Jim Meyering <meyering@lucent.com>
59473 * lib/tempname.c: Merge with version from libc.
59474 * lib/regex.c: Likewise.
59476 * lib/tempname.c: Include stdlib.h unconditionally. On some old
59477 systems for which STDC_HEADERS is 0, it was not included, resulting in
59478 a warning about an integer-to-pointer conversion problem with getenv.
59479 Reported by Volker Borchert.
59481 2001-11-26 Jim Meyering <meyering@lucent.com>
59483 * lib/gtod.h: Remove file.
59484 * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
59485 * lib/gettimeofday.c: Don't include gtod.h.
59486 (GTOD_init): Remove function.
59487 (rpl_gettimeofday): Do its job here instead, rather than aborting.
59488 Suggestion from Volker Borchert.
59490 2001-11-23 Jim Meyering <meyering@lucent.com>
59492 * lib/hash.h (struct hash_table): Don't define here. Merely declare
59494 * lib/hash.c (struct hash_table): Define it here instead.
59496 2001-11-22 Jim Meyering <meyering@lucent.com>
59498 * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
59500 2001-11-20 Jim Meyering <meyering@lucent.com>
59502 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
59503 SunOS 4.1.4 and Solaris 2.5.1 lose, too.
59505 2001-11-19 Jim Meyering <meyering@lucent.com>
59507 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
59508 directory. Use "conftestXXXXXX" as the template.
59509 Suggestion from Paul Eggert.
59511 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
59512 immediately, so the test doesn't mistakenly hit the max-open-files
59515 2001-11-18 Paul Eggert <eggert@twinsun.com>
59517 * lib/tempname.c (TMP_MAX): Remove; no longer needed.
59518 (TEMPORARIES): New macro.
59519 (__gen_tempname): Use TEMPORARIES rather than TMP_MAX. This
59520 removes an artificial limitation (e.g. HP-UX 10.20, where
59523 2001-11-18 Jim Meyering <meyering@lucent.com>
59525 * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
59527 2001-11-18 Jim Meyering <meyering@lucent.com>
59529 * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
59532 * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
59533 files will be created before anything else.
59535 2001-11-17 Paul Eggert <eggert@twinsun.com>
59537 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
59538 WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
59540 2001-11-17 Jim Meyering <meyering@lucent.com>
59542 * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
59543 Prompted by a report from Bob Proulx.
59545 * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
59546 Instead, require UTILS_FUNC_MKSTEMP.
59548 2001-11-17 Jim Meyering <meyering@lucent.com>
59550 * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
59551 Now, that's done as part of AC_FUNC_STRTOD.
59553 2001-11-17 Jim Meyering <meyering@lucent.com>
59555 * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
59556 that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
59557 rather than group writable. Patch by Juan F. Codagnone.
59559 * lib/readtokens.c: Remove explicit declarations of xmalloc and
59560 xrealloc, Instead, include "xalloc.h".
59562 * lib/mountlist.c: Include unlocked-io.h after all system headers.
59563 Remove explicit declarations of xmalloc, xrealloc,
59564 and xstrdup. Instead, include "xalloc.h".
59566 * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
59568 * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
59570 * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
59572 * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
59573 Reported by Padraig Brady.
59575 * lib/mkstemp.c: #undef mkstemp.
59577 (rpl_mkstemp): Rename from mkstemp.
59580 2001-11-16 Jim Meyering <meyering@lucent.com>
59582 * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
59583 (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
59584 determine the amount of total physical memory, use pstat_getstatic.
59585 HPUX-11 doesn't define _SC_PHYS_PAGES.
59586 (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
59587 If sysconf couldn't be used to determine the amount of available
59588 physical memory, use both pstat_getstatic and pstat_getdynamic.
59589 Based on a patch from Bob Proulx.
59591 2001-11-10 Jim Meyering <meyering@lucent.com>
59593 * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
59594 (jm_PREREQ): Use it.
59596 2001-11-09 Jim Meyering <meyering@lucent.com>
59598 * m4/jm-macros.m4: Require autoconf-2.52f.
59599 (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
59600 Use these AC_-prefixed names, not the AM_-prefixed ones.
59602 * m4/afs.m4 (jm_AFS): Quote the body. Patch by Akim Demaille.
59604 2001-11-05 Jim Meyering <meyering@lucent.com>
59606 * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
59608 2001-11-04 Jim Meyering <meyering@lucent.com>
59610 * m4/fpending.m4: Remove unused cruft that saved, set, and restored
59613 2001-11-03 Jim Meyering <meyering@lucent.com>
59615 * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
59618 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
59619 know the name of the variable in the macro definition.
59621 2001-11-03 Jim Meyering <meyering@lucent.com>
59623 * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
59624 in argmatch_to_argument call.
59626 * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
59629 * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
59630 e.g., a fault due to an attempt to free a NULL pointer.
59632 2001-11-01 Jim Meyering <meyering@lucent.com>
59634 * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
59635 * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
59637 2001-11-01 Jim Meyering <meyering@lucent.com>
59639 * lib/dirfd.c, lib/dirfd.h: New files.
59640 * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
59642 * lib/hash.c (hash_print) [TESTING]: Clean up.
59644 2001-10-22 Paul Eggert <eggert@twinsun.com>
59646 * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
59647 to avoid a warning if -Wall.
59649 2001-10-22 Jeff Bailey <jbailey@outpost.dnsalias.org>
59652 * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
59653 (per RMS's instructions, this is now the canonical source)
59654 * lgpl/, gpl/: New directories.
59656 2001-10-21 Paul Eggert <eggert@twinsun.com>
59658 * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
59660 2001-10-21 Jim Meyering <meyering@lucent.com>
59662 * lib/obstack.c (_): Honor the setting of ENABLE_NLS. Otherwise,
59663 this code would end up calling gettext even in packages built
59664 with --disable-nls.
59665 * lib/getopt.c (_): Likewise.
59666 * lib/regex.c (_): Likewise.
59668 2001-10-20 Paul Eggert <eggert@twinsun.com>
59670 * m4/error.m4 (jm_PREREQ_ERROR):
59671 Do not invoke AC_CHECK_FUNCS with strerror_r, as
59672 AC_FUNC_STRERROR_R does that.
59673 Check for strerror declaration.
59675 * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
59676 are supposed to have them these days.
59677 (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
59678 Merge changes from latest Autoconf CVS.
59679 Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
59680 and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
59681 POSIX decided to standardize on the int flavor of strerror_r.
59683 2001-10-20 Paul Eggert <eggert@twinsun.com>
59685 * lib/error.c (strerror_r): Do not declare unless !_LIBC.
59686 Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
59687 Use strerror_r that is only a macro, even if it is not a function.
59688 (strerror): Check for HAVE_DECL_STRERROR before declaring.
59689 (private_strerror): Use prototypes, not old-style function definition.
59690 (print_errno_message): New function.
59691 Support the POSIX 'int'-flavored strerror_r, as well as the traditional
59692 char*-flavored one.
59693 (error_tail, error, error_at_line): Use it.
59695 2001-10-11 Jim Meyering <meyering@lucent.com>
59697 * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
59698 and quote_n (1, ... to avoid clobbering a buffer.
59700 2001-10-05 Jim Meyering <meyering@lucent.com>
59702 * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
59704 * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
59705 * lib/hash-pjw.h: New file.
59707 2001-09-30 Jim Meyering <meyering@lucent.com>
59709 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
59710 `struct fsstat' has the `f_fstypename' member.
59711 Use that to define FS_TYPE, which is now used to make
59712 the getfsstat link test tighter.
59714 2001-09-30 Jim Meyering <meyering@lucent.com>
59716 * lib/mountlist.c [MOUNTED_GETFSSTAT]:
59717 Include <sys/ucred.h>, for Apple Darwin.
59718 Include sys/mount.h and sys/fs_types.h only if available.
59720 (read_filesystem_list): Use FS_TYPE.
59722 2001-09-29 Paul Eggert <eggert@twinsun.com>
59724 * lib/exclude.c (excluded_filename): 0 -> false, since it's
59727 2001-09-29 Jim Meyering <meyering@lucent.com>
59729 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59730 [one-argument getmntent function]): Include stdio.h before mntent.h.
59731 SunOS 4.1.x needs it for the declaration of `FILE'.
59732 Patch by Volker Borchert.
59734 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
59735 Check for these headers: sys/param.h sys/ucred.h sys/mount.h
59736 sys/fs_types.h, and make the link-test for getfsstat guard #include
59737 directives with appropriate #if HAVE_*_H tests so that we can
59738 detect getfsstat on Apple Darwin1.3.7 systems.
59739 Reported by Nelson Beebe.
59740 Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
59742 2001-09-28 Paul Eggert <eggert@twinsun.com>
59744 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59745 #defines strtoimax. Also treat the other strto* functions
59748 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
59749 Check for strtoul and strtoumax,
59750 as those declarations are made even in the signed case.
59751 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
59752 Likewise, for strtol and strtoimax.
59754 2001-09-28 Paul Eggert <eggert@twinsun.com>
59756 Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
59757 #defines strtoimax. Also treat the other strto* functions
59760 * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
59761 (strtoul): Do not declare if HAVE_DECL_STRTOUL.
59762 (strtoimax, strtoumax): Do not declare if already defined as a macro.
59764 2001-09-26 Jim Meyering <meyering@lucent.com>
59766 Most macros in unlocked-io.h had the wrong number of arguments.
59767 * lib/gen-uio: New script.
59768 (USE_UNLOCKED_IO): Define to 1 if not already defined.
59769 * lib/unlocked-io.hin: Remove file.
59770 * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
59771 rather than trying to embed it here.
59772 (EXTRA_DIST): Add gen-uio. Remove unlocked-io.hin
59773 Reported by Padraig Brady.
59775 2001-09-25 Volker Borchert <bt@teknon.de>
59777 * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
59780 2001-09-24 Jim Meyering <meyering@lucent.com>
59782 * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
59784 2001-09-23 Jim Meyering <meyering@lucent.com>
59786 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
59787 instead of the mere test for existence of mntent.h. The latter
59788 would get a false-positive on AIX 3.4 systems.
59789 In the outer getmntent if-block, don't die if neither of the getmntent
59790 tests succeeds. Instead, just fall through and continue with the
59793 2001-09-23 Jim Meyering <meyering@lucent.com>
59795 * lib/mountlist.c: Remove useless parentheses in #if directives.
59796 (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
59797 the deprecated MOUNTED symbol is no longer defined in mntent.h.
59799 2001-09-22 Jim Meyering <meyering@lucent.com>
59801 * m4/gettext.m4: New file. From gettext.
59802 * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
59803 * m4/progtest.m4: Likewise
59804 * m4/isc-posix.m4: Decrement serial number to sync with gettext.
59805 * m4/glibc21.m4: Likewise.
59807 * m4/libintl.m4: Remove. No longer used.
59809 2001-09-22 Jim Meyering <meyering@lucent.com>
59811 * lib/localcharset.c: Update from latest gettext.
59812 * lib/config.charset: Likewise.
59814 2001-09-20 Jim Meyering <meyering@lucent.com>
59816 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
59818 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
59821 2001-09-20 Jim Meyering <meyering@lucent.com>
59823 * lib/xstrtol.c (strtoimax): Guard declaration with
59824 `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
59825 The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
59826 have their own, conflicting declaration of strtoimax in sys/inttypes.h.
59827 (strtoumax): Likewise, for completeness (it wasn't necessary).
59829 2001-09-17 Paul Eggert <eggert@twinsun.com>
59831 * lib/strtoimax.c (HAVE_LONG_LONG):
59832 Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
59833 (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
59834 to work around bug in IBM C compiler.
59836 2001-09-17 Jim Meyering <meyering@lucent.com>
59838 * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
59839 * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
59840 * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
59841 * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
59842 * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
59843 whenever the right hand side need not be expanded by the shell.
59845 2001-09-16 Paul Eggert <eggert@twinsun.com>
59847 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
59848 library. It's not correct, as some older glibcs are buggy.
59849 fnmatch wasn't fixed until glibc 2.2.
59851 Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
59852 special shell magic here.
59854 2001-09-16 Jim Meyering <meyering@lucent.com>
59856 * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
59857 * m4/jm-macros.m4: Require it.
59859 2001-09-16 Jim Meyering <meyering@lucent.com>
59861 * lib/mkdir.c: New file.
59863 2001-09-15 Jim Meyering <meyering@lucent.com>
59865 * m4/jm-macros.m4: Check for help2man.
59867 2001-09-11 Jim Meyering <meyering@lucent.com>
59869 * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
59870 The body, by Paul Eggert, was moved here from configure.in.
59871 * m4/jm-macros.m4: Require UTILS_HOST_OS.
59873 2001-09-04 Paul Eggert <eggert@twinsun.com>
59875 * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
59876 (jm_PREREQ): Use it.
59878 2001-09-04 Paul Eggert <eggert@twinsun.com>
59880 * lib/xreadlink.c (xreadlink): Omit size_t* arg. All uses changed.
59881 Use ssize_t, not int, to store result of readlink.
59882 Check for ssize_t overflow as well as size_t overflow,
59883 as POSIX says the result of readlink is implementation-defined
59884 when ssize_t overflows.
59885 Remove unnecessary cast to char*.
59886 Use free+malloc instead of realloc, as the storage doesn't need
59887 to be preserved and it's clearer and can be more efficient that way.
59888 (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
59889 * lib/xreadlink.h (xreadlink): Update prototype.
59891 2001-09-04 Paul Eggert <eggert@twinsun.com>
59893 * lib/xgetcwd.c: Revert some of the previous change; intead,
59894 fix the HAVE_GETCWD_NULL code to behave more like the
59895 !HAVE_GETCWD_NULL code used to.
59897 Include "xalloc.h".
59898 (xgetcwd): Do not return NULL when memory is exhausted; instead,
59901 2001-09-03 Paul Eggert <eggert@twinsun.com>
59903 * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
59904 sys/param.h, as pathmax.h includes them.
59906 2001-09-03 Paul Eggert <eggert@twinsun.com>
59908 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
59909 (jm_PREREQ_XGETCWD): New macro.
59911 * m4/getcwd.m4: New file.
59913 2001-09-03 Paul Eggert <eggert@twinsun.com>
59915 * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
59916 like the HAVE_GETCWD_NULL code.
59917 Include pathmax.h if not HAVE_GETCWD.
59918 Do not include xalloc.h.
59919 (INITIAL_BUFFER_SIZE): New symbol.
59920 Do not use xmalloc / xrealloc, since the caller is responsible for
59921 handling errors. Preserve errno around `free' during failure.
59922 Do not overrun buffer when using getwd.
59924 2001-09-03 Paul Eggert <eggert@twinsun.com>
59926 * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
59927 __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
59930 2001-09-03 Paul Eggert <eggert@twinsun.com>
59932 * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
59933 usage of FNM_CASEFOLD and FNM_LEADING_DIR. The bug was
59934 spotted by Jim Meyering.
59936 2001-09-03 Jim Meyering <meyering@lucent.com>
59938 * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
59941 2001-09-02 Jim Meyering <meyering@lucent.com>
59943 * lib/error.c: Update from GNU libc.
59945 2001-09-01 Jim Meyering <meyering@lucent.com>
59947 * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
59950 2001-09-01 Jim Meyering <meyering@lucent.com>
59952 * lib/xreadlink.c: New file.
59953 * lib/xreadlink.h: New file.
59954 * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
59957 * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
59958 doesn't conflict with sparc Solaris 7's definition in
59959 /usr/include/sys/int_types.h.
59961 * lib/exclude.c: Use `""', not `<>' to #include non-system header
59963 (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
59964 and strncasecmp as r-values. Unixware didn't have declarations.
59966 2001-08-31 Paul Eggert <eggert@twinsun.com>
59968 * lib/xstrtol.h: Add copyright notice.
59969 (_DECLARE_XSTRTOL): Improve quality of diagnostic for
59970 LONGINT_INVALID_SUFFIX_CHAR.
59972 2001-08-31 Paul Eggert <eggert@twinsun.com>
59974 * lib/xstrtol.c (strtoimax): New decl.
59976 2001-08-31 Paul Eggert <eggert@twinsun.com>
59978 * lib/xgetcwd.c: Don't include pathmax.h.
59979 Include stdlib.h and unistd.h if available.
59981 (xmalloc, xstrdup, free): Remove decls.
59982 (xgetcwd): Don't assume sizes fit in unsigned.
59983 Check for overflow when computing sizes.
59984 Simplify reallocation code.
59986 2001-08-31 Paul Eggert <eggert@twinsun.com>
59988 * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
59989 a directory's st_size can have an arbitrary value, so the old
59990 usage could waste an arbitrary amount of memory. All uses
59992 * lib/savedir.h: Update prototype.
59994 2001-08-31 Paul Eggert <eggert@twinsun.com>
59996 * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
59998 * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
60001 Also, make the following further changes to make this file's
60002 configuration more similar to that of strtol.c:
60003 (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED. All uses changed.
60004 (strtoumax, uintmax_t, strtoull, strtol): Remove.
60005 (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
60006 (strtoimax): Renamed from strtoumax. All uses of unsigned values
60007 changed to signed values.
60009 And make the following changes as well:
60010 Fix copyright notice, as 1999 was missing.
60011 (verify): New macro.
60012 (strtoimax): Check sizes at compile-time, not run-time.
60013 Prefer strtol to strtoll if both work.
60014 (main): Remove; it was not that useful and was a pain to maintain.
60016 * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
60018 2001-08-31 Jim Meyering <meyering@lucent.com>
60020 * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
60021 Use an initial, malloc'd, buffer of length 128 rather than
60022 a statically allocated one of length 1024.
60024 2001-08-30 Paul Eggert <eggert@twinsun.com>
60026 Simplify code, partly by assuming autoconf 2.52 semantics.
60028 * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
60030 * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
60031 (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
60033 (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
60034 Move AC_REQUIRE to next-to-top level, to avoid confusion.
60035 Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
60036 * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
60037 jm_AC_HEADER_INTTYPES_H.
60038 * m4/jm-macros.m4 (jm_MACROS): Likewise.
60040 * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
60042 * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
60043 Quote first arg of AC_DEFUN.
60044 Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
60045 since they are needed to parse the include file even if we need
60046 only xstrtoimax. Simplify logic behind the args to AC_REPLACE.
60047 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
60048 but with opposite signedness.
60050 2001-08-30 Paul Eggert <eggert@twinsun.com>
60052 Merge 'exclude' changes from tar 1.13.22.
60053 This fixes one or two unlikely storage allocation overflow bugs,
60054 but doesn't change user-visible behavior otherwise.
60056 2001-08-30 Paul Eggert <eggert@twinsun.com>
60058 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
60059 (jm_PREREQ_EXCLUDE): New macro.
60061 2001-08-30 Paul Eggert <eggert@twinsun.com>
60063 * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
60066 2001-08-30 Paul Eggert <eggert@twinsun.com>
60068 * lib/hash.c: Remove '2001' from copyright notice.
60070 2001-08-30 Paul Eggert <eggert@twinsun.com>
60072 * lib/full-write.h: New file.
60073 * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
60074 * lib/full-write.c: Correct credits, as cccp.c no longer
60075 exists and anyway it was so heavily changed from the old cccp
60076 code as to be unrecognizable. Include full-write.h.
60077 (full_write) Return size_t, with short writes meaning failure.
60078 All callers changed. This fixes a bug with large buffers
60080 * lib/utime.c: Include full-write.h.
60082 2001-08-30 Paul Eggert <eggert@twinsun.com>
60084 * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
60085 (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
60086 (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
60087 Include if available.
60088 (<xalloc.h>): Include
60089 (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
60090 (verify): New macro. Use it to verify that EXCLUDE macros do not
60091 collide with FNM macros.
60092 (struct patopts): New struct.
60093 (struct exclude): Use it, as exclude patterns now come with options.
60094 (new_exclude): Support above changes.
60095 (new_exclude, add_exclude_file):
60096 Initial size must now be a power of two to simplify overflow checking.
60097 (free_exclude, fnmatch_no_wildcards): New function.
60098 (excluded_filename): No longer requires options arg, as the options
60099 are determined by add_exclude. Now returns bool, not int.
60100 (excluded_filename, add_exclude):
60101 Add support for the fancy new exclusion options.
60102 (add_exclude, add_exclude_file): Now takes int options arg.
60103 Check for arithmetic overflow when computing sizes.
60104 (add_exclude_file): xrealloc might modify errno, so don't
60105 realloc until after errno might be used.
60107 * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
60109 (free_exclude): New decl.
60110 (add_exclude, add_exclude_file): Now takes int options arg.
60111 (excluded_filename): No longer requires options arg, as the options
60112 are determined by add_exclude. Now returns bool, not int.
60114 2001-08-30 Paul Eggert <eggert@twinsun.com>
60116 * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
60118 2001-08-27 Jim Meyering <meyering@lucent.com>
60120 * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
60122 * lib/version-etc.c (N_): Remove definition.
60123 Revert most of last change.
60124 Instead, simply don't mark the `Copyright...' string for translation.
60125 Based on advice from Paul Eggert.
60127 * lib/strtoxmax.c: Tweak comment.
60129 2001-08-26 Jim Meyering <meyering@lucent.com>
60131 * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
60133 * m4/xstrtoimax.m4: New file.
60134 * m4/xstrtoumax.m4: Add comments explaining why we
60135 AC_REPLACE_FUNCS(strtol).
60137 2001-08-26 Jim Meyering <meyering@lucent.com>
60139 * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
60140 of copyright with `%s' so translators don't get an untranslated
60142 (COPYRIGHT_YEAR): Define.
60143 (version_etc): Use fprintf rather than fputs.
60144 Suggestion from Ulrich Drepper.
60146 * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
60148 * lib/strtoll.c: New file, from GNU libc.
60149 * lib/xstrtoimax.c: New file.
60151 * lib/xstrtol.h: Add xstrtoimax.
60152 * lib/strtoumax.c: New file. Simply include "strtoumax.c".
60153 * lib/strtoimax.c: New file. Likewise, but first define
60156 * lib/strtoumax.c: Factor to work both for unsigned and signed types,
60158 * lib/strtoxmax.c: ... then renamed to this.
60160 2001-08-18 Paul Eggert <eggert@twinsun.com>
60162 * m4/inttypes.m4: Add AC_PREREQ(2.13).
60163 (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
60164 (jm_AC_TYPE_INTMAX_T): New macro.
60165 (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
60167 * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
60169 * m4/longlong.m4: Renamed from ulonglong.m4.
60170 * m4/inttypes.m4: Renamed from inttypes_h.m4.
60171 * m4/uintmax_t.m4: Removed.
60173 2001-08-13 Paul Eggert <eggert@twinsun.com>
60175 * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
60176 Port to Solaris 8, where 'sed' requires a space after the 'r'
60177 command, and where sh dislikes "$/". Clean up the spacing a bit.
60178 Redirect output to $tmp just once.
60180 2001-08-12 Paul Eggert <eggert@sic.twinsun.com>
60182 * lib/addext.c (<errno.h>): Include.
60183 (errno): Declare if not defined.
60184 (addext): Work correctly when pathconf returns -1 and leaves
60185 errno alone because there is no limit. Also, work even if
60186 pathconf returns a value greater than SIZE_MAX.
60188 2001-08-12 Jim Meyering <meyering@lucent.com>
60190 * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
60191 d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
60192 fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
60193 group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
60194 jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
60195 link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
60196 mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
60197 prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
60198 rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
60199 strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
60200 utime.m4, utimes.m4, xstrtoumax.m4:
60201 Quote the first argument in each use of AC_DEFUN.
60203 2001-08-12 Jim Meyering <meyering@lucent.com>
60205 * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
60206 Simply `return getcwd (NULL, 0);'.
60207 [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
60208 Use 1300 as initial value for length, not PATH_MAX.
60210 * lib/pathmax.h: Clean up cpp syntax.
60212 2001-08-12 Jim Meyering <meyering@lucent.com>
60214 * lib/gettimeofday.c: New file.
60215 * lib/gtod.h: New file.
60216 * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
60218 2001-08-05 Jim Meyering <meyering@lucent.com>
60220 * m4/jm-macros.m4: Require autoconf-2.52.
60222 2001-08-04 Jim Meyering <meyering@lucent.com>
60224 * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
60225 stmt, to get in sync with glibc.
60227 2001-08-03 Paul Eggert <eggert@twinsun.com>
60229 The following changes are from gettext 0.10.39 as maintained by
60232 * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
60233 Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
60234 with inverted sense. All uses changed.
60236 * lib/mbswidth.c: Don't include <limits.h>.
60237 Include <stdlib.h> and <string.h> unconditionally.
60238 (iswcntrl, mbsinit, ISCNTRL): New macros.
60239 (mbsnwidth): Use K&R style function declarations.
60240 Don't bother checking for MB_LEN_MAX == 1, since the compiler
60241 can optimize it when MB_CUR_MAX == 1.
60242 The width of control characters is zero, not 1.
60244 2001-08-03 Paul Eggert <eggert@twinsun.com>
60246 The following changes are from gettext 0.10.39 as maintained by
60247 Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
60249 * m4/codeset.m4: Upgrade to serial AM1.
60250 (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
60251 all uses changed. Quote first arg of AC_DEFUN.
60252 (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
60254 * m4/iconv.m4: Upgrade to serial AM2.
60255 (AM_ICONV): Renamed from jm_ICONV; all uses changed.
60256 Add --with-libconv-prefix.
60257 Quote first arg of AC_DEFUN. Add description for ICONV_CONST.
60258 (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
60259 (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
60260 (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
60261 * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
60263 * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
60264 * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
60265 * m4/glibc21.m4 (jm_GLIBC21): Likewise.
60266 * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
60267 * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
60268 * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
60269 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
60270 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
60271 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
60273 * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
60276 * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
60277 not the default value.
60279 2001-06-25 Bruno Haible <haible@clisp.cons.org>
60280 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
60281 Also check for mbsinit. Needed for SCO 3.2v5.0.2.
60282 Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
60283 Also check for iswcntrl, used for wcwidth fallback.
60284 Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
60287 2001-08-03 Jim Meyering <meyering@lucent.com>
60289 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
60290 as it was in the original. Reported by Paul Eggert.
60292 2001-07-16 Jim Meyering <meyering@lucent.com>
60294 * m4/gettimeofday.m4: New file.
60295 Prompted by a report from Bernhard Baehr.
60297 2001-07-15 Jim Meyering <meyering@lucent.com>
60299 * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
60300 stuff. Now it's in ../Makefile.cfg.
60302 2001-07-15 Jim Meyering <meyering@lucent.com>
60304 * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
60305 (BUILT_SOURCES): Add unlocked-io.h.
60306 (io_functions): Define.
60307 (unlocked-io.h): New rule.
60308 (DISTCLEANFILES): Add unlocked-io.h.
60309 (all-local): Depend on unlocked-io.h, to ensure it is created.
60311 * lib/unlocked-io.hin: New file
60313 * lib/regex.c: Update from glibc.
60315 2001-07-05 Jim Meyering <meyering@lucent.com>
60317 * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
60319 (libfetish_a_SOURCES): Put all .h files here instead.
60320 Remove a thus-exposed (better checks in automake) duplicate and
60321 two unnecessary .h files.
60323 2001-07-04 Jim Meyering <meyering@lucent.com>
60325 * m4/Makefile.am.in (glibc-io.struct): New target. Rework the code
60326 that generates jm-glibc-io.m4 so that it doesn't trigger any make
60329 2001-07-02 Jim Meyering <meyering@lucent.com>
60331 The following changes were prompted by suggestions from Bruno Haible.
60333 * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
60335 * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
60336 definition of EXTRA_DIST.
60337 (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
60338 ensure that the generated file is created/updated whenever the list
60339 of $(unlocked_functions) is changed.
60340 (jm-glibc-io.m4): New rule.
60341 (unlocked-io.h): New rule -- currently unused.
60343 2001-06-24 Jim Meyering <meyering@lucent.com>
60345 * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
60346 unmatched right bracket, rather than kludging it with an extra,
60347 falsely-matching quote in a comment. Patch by Akim Demaille.
60349 2001-06-11 Jim Meyering <meyering@lucent.com>
60351 * lib/regex.c: Update from GNU libc.
60353 2001-05-27 Jim Meyering <meyering@lucent.com>
60355 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
60356 Check for ut_type in struct utmp.
60358 2001-05-27 Jim Meyering <meyering@lucent.com>
60360 * lib/readutmp.h (UT_TYPE): Define.
60362 2001-05-24 Jim Meyering <meyering@lucent.com>
60364 * lib/argmatch.c: Include "quote.h".
60365 (argmatch_invalid): Remove explicit `' quotes. Instead, use the
60366 quote function. Reported by Göran Uddeborg.
60368 2001-05-22 Jim Meyering <meyering@lucent.com>
60370 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
60371 now that we use the package-supplied version unconditionally.
60372 (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
60374 2001-05-21 Jim Meyering <meyering@lucent.com>
60376 * m4/regex.m4: Change a couple backticks to single quotes to avoid
60377 shell syntax errors.
60379 2001-05-21 Alexandre Duret-Lutz <duret_g@epita.fr>
60381 * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
60383 2001-05-20 Paul Eggert <eggert@twinsun.com>
60385 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
60386 Don't bother to check library strftime, since
60387 we'll be using our own my_strftime function anyway.
60388 Define my_strftime instead of strftime.
60390 2001-05-20 Alexandre Duret-Lutz <duret_g@epita.fr>
60392 * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
60393 which is not yet declared.
60395 2001-05-15 Jim Meyering <meyering@lucent.com>
60397 * m4/regex.m4: Use proper quoting so brackets appear in the test
60399 Reported by, and with help from, Bruno Haible.
60401 2001-05-13 Jim Meyering <meyering@lucent.com>
60403 * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
60406 2001-05-11 Paul Eggert <eggert@twinsun.com>
60408 dirname code cleanup. base_name now behaves more compatibly
60409 with POSIX basename when given file names that have trailing
60410 slashes, and similarly for dir_name. Add new primitives
60411 base_len and dir_len. Put the directory-name-related decls
60414 * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
60415 * lib/backupfile.c (base_name): Likewise.
60416 * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
60417 * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
60418 * lib/makepath.c (strip_trailing_slashes): Likewise.
60419 * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
60420 ISSLASH): Likewise.
60421 * lib/rename.c (strip_trailing_slashes): Likewise.
60422 * lib/same.c (base_name): Likewise.
60423 * lib/stripslash.c (ISSLASH): Likewise.
60425 * lib/addext.c: Include <dirname.h> after size_t is defined.
60426 * lib/backupfile.c: Likewise.
60428 * lib/addext.c (addext): Use base_len to trim redundant
60429 trailing slashes instead of doing it ourselves.
60430 But do not trim the last slash if it is not redundant.
60432 * lib/backupfile.c (find_backup_file_name,
60433 max_backup_version): Use base_len instead of rolling it ourselves.
60434 Handle the case of "" and (on DOS) "C:" correctly.
60436 * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
60437 needed. Include <string.h>, <dirname.h>.
60438 (base_name): Allow file names ending in slashes, other than names
60439 that are all slashes. In this case, return the basename followed
60440 by the slashes. This is more general, and can be used in places
60441 where the original base_name purposely had an assertion failure.
60442 (base_len): New function.
60444 * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
60445 Do not include <assert.h>; no longer needed.
60447 (memrchr): Remove decl.
60448 (dir_name_r): Remove.
60449 (dir_len): Renamed from dirlen. All callers changed.
60450 Rewrite in terms of base_name, for simplicity and consistency.
60451 (dir_name): Never return NULL. All callers changed.
60452 Do not include <stdlib.h> in test program; no longer needed.
60453 return 0; is fine for test program.
60455 * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
60457 (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
60459 * lib/path-concat.c (path_concat): Use base_len to compute
60460 base length, not strlen; this means we cannot rely on memcpy
60463 * lib/same.c (STREQ): Remove.
60464 (same_name): Handle the case where the basename ends in trailing '/'.
60466 * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
60467 a slash was stripped. Do not strip the last slash after a
60468 file system prefix.
60470 2001-05-11 Paul Eggert <eggert@twinsun.com>
60472 * lib/Makefile.am (libfetish_a_SOURCES):
60473 Add strftime.c, since we now compile it on all hosts.
60475 * lib/strftime.c (my_strftime):
60476 Define to nstrftime if emacs, but only if my_strftime is not defined.
60477 (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
60478 ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
60479 Add one more extra argument: a nanoseconds value.
60482 (my_strftime function): Add %N format.
60483 (emacs_strftimeu): Renamed from emacs_strftime,
60484 with extra ut argument.
60486 2001-05-09 Paul Eggert <eggert@twinsun.com>
60488 * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
60490 2001-04-21 Jim Meyering <meyering@lucent.com>
60492 * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
60495 2001-04-21 Alexandre Duret-Lutz <duret_g@epita.fr>
60497 * m4/ftruncate.m4: Check for chsize.
60498 Link with ftruncate.o unconditionally if ftruncate is missing.
60499 This was required when cross-compiling to i586-mingw32msvc.
60501 2001-04-08 Jim Meyering <meyering@lucent.com>
60503 * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
60504 recomputed; that's necessary when the offset spans a DST transition.
60505 Patch by David J. MacKenzie. Reported by Hon-Yin Kok.
60507 2001-04-02 Jim Meyering <meyering@lucent.com>
60509 * lib/regex.h, regex.c: Update from GNU libc.
60511 2001-03-24 Jim Meyering <meyering@lucent.com>
60513 * m4/jm-macros.m4: Require autoconf-2.49d.
60515 2001-03-20 Bruno Haible <haible@clisp.cons.org>
60517 * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
60519 2001-03-19 Paul Eggert <eggert@twinsun.com>
60521 * lib/version-etc.c (version_etc_copyright): Update to 2001.
60523 2001-03-17 Jim Meyering <meyering@lucent.com>
60525 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
60526 now that the version in autoconf is equivalent.
60527 (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
60529 * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
60530 Suggestion from Akim Demaille.
60532 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
60533 (jm_PREREQ_TEMPNAME): New function.
60535 2001-03-16 Paul Eggert <eggert@twinsun.com>
60537 * lib/tempname.c (uint64_t): Define to uintmax_t if
60538 not defined, and if UINT64_MAX is not defined.
60539 Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
60540 Reported by John David Anglin.
60542 2001-03-15 Bruno Haible <haible@clisp.cons.org>
60544 * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
60545 resolve alias if codeset is empty.
60546 * lib/config.charset (BeOS): Use wildcard syntax.
60548 2001-03-13 Jim Meyering <meyering@lucent.com>
60550 * lib/path-concat.c (path_concat)
60551 [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
60552 concatenating e.g., `C:' and `foo'.
60555 2001-03-06 Bruno Haible <haible@clisp.cons.org>
60557 * lib/localcharset.c (locale_charset): Don't use
60558 setlocale(LC_CTYPE,NULL). Don't return NULL.
60559 * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
60561 2001-03-06 Bruno Haible <haible@clisp.cons.org>
60563 * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
60564 support for DOS/DJGPP.
60566 2001-03-01 Paul Eggert <eggert@twinsun.com>
60568 * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
60569 lacks mkstemp. Compile our own tempname.c if we compile our own
60570 mkstemp.c, as mkstemp relies on tempname.
60572 2001-03-01 Jim Meyering <meyering@lucent.com>
60574 * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
60575 AH_VERBATIM really does output its argument verbatim.
60577 2001-02-28 Paul Eggert <eggert@twinsun.com>
60579 * lib/Makefile.am (libfetish_a_SOURCES):
60580 Add dup-safer.c, fopen-safer.c.
60581 (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
60583 * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
60584 * lib/unistd-safer.h: New files.
60586 2001-02-25 Paul Eggert <eggert@twinsun.com>
60588 The mkstemp replacement is taken from glibc 2.2.2, with some
60589 portability fixes for use outside glibc, as follows:
60591 * lib/tempname.c (struct_stat64): New macro.
60592 (direxists, __gen_tempname): Use it.
60593 This avoids a portability problem with Solaris 8.
60595 * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
60596 (<stddef.h>, <stdint.h>, <string.h>):
60597 Include only if STDC_HEADERS || _LIBC.
60598 (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
60599 (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
60600 (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
60601 (__set_errno): Define this macro if <errno.h> doesn't.
60602 (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
60603 Define these macros if <stdio.h> doesn't.
60604 (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
60605 Define these macros if <sys/stat.h>
60606 doesn't. Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
60607 (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
60608 __xstat64): Define if not _LIBC.
60609 (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
60610 (__gen_tempname): Invoke gettimeofday only if
60611 HAVE_GETTIMEOFDAY || _LIBC;
60612 otherwise, fall back on plain "time".
60613 Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
60615 * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
60617 * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
60619 2001-02-18 Paul Eggert <eggert@twinsun.com>
60621 * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
60623 2001-02-17 Paul Eggert <eggert@twinsun.com>
60625 * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
60626 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
60627 Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
60628 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
60630 2001-02-17 Paul Eggert <eggert@twinsun.com>
60632 * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
60633 Remove workaround macros for hosts that have mbrtowc but not
60634 mbstate_t, as we now insist on proper declarations for both
60635 before using mbrtowc.
60637 2001-02-17 Jim Meyering <meyering@lucent.com>
60639 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
60640 getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
60641 further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
60644 * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
60645 rather than AC_CACHE_VAL.
60647 2001-02-17 Jim Meyering <meyering@lucent.com>
60649 * lib/strtoul.c: Sync from GNU libc. Use double quotes, not <...>
60650 around included file name.
60652 * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
60654 * lib/strftime.c: Update from GNU libc (the only changes were to
60657 2001-02-17 Jim Meyering <meyering@lucent.com>
60659 * lib/regex.c: Update from libc.
60661 2001-02-17 Bruno Haible <haible@clisp.cons.org>
60663 * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
60666 2001-02-16 Paul Eggert <eggert@twinsun.com>
60668 * lib/alloca.c (malloc): Undef before defining, since stdlib.h
60669 may have defined it. Needed for Encore Umax-3.0.9.16b systems.
60670 Reported by Mark Hounschell via Paul Eggert.
60672 2001-02-07 Jim Meyering <meyering@lucent.com>
60674 * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
60676 2001-02-05 Jim Meyering <meyering@lucent.com>
60678 * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
60679 it includes the patch required for `large file' support with at least
60680 HP-UX's 10.20 /bin/cc.
60682 2001-02-03 Jim Meyering <meyering@lucent.com>
60684 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
60685 AS_IF, now that it works once again (mysteriously).
60686 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60688 2001-01-30 Jim Meyering <meyering@lucent.com>
60690 Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
60691 * m4/chown.m4: Rename conftestchown to conftest.chown.
60692 * m4/rename.m4: s/conftestdir/conftest.d1/ and
60693 s/conftestdir2/conftest.d2/.
60694 * m4/utimes.m4: s/conftestdata/conftest.data/
60695 Inspired by Pavel Roskin's change in autoconf.
60697 2001-01-30 Bruno Haible <haible@clisp.cons.org>
60699 * lib/config.charset: Update for FreeBSD 4.2.
60701 2001-01-27 Jim Meyering <meyering@lucent.com>
60703 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
60705 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
60707 2001-01-26 Jim Meyering <meyering@lucent.com>
60709 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
60710 quotearg.c includes it.
60712 2001-01-26 Jim Meyering <meyering@lucent.com>
60714 * lib/quotearg.c: Include stddef.h.
60715 * lib/quote.c: Include stddef.h.
60716 Reported by Axel Kittenberger.
60718 * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
60719 line in double quotes so that it evokes a better diagnostic.
60720 [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
60721 Reported by Axel Kittenberger.
60723 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
60725 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
60726 as if it was a `charset'.
60728 2001-01-21 Bruno Haible <haible@clisp.cons.org>
60730 * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
60733 2001-01-21 Bruno Haible <haible@clisp.cons.org>
60735 * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
60736 to avoid a warning. Add back 'const' to inptr.
60738 2001-01-20 Jim Meyering <meyering@lucent.com>
60740 Be sure that headers are checked before used in code compiled
60741 for the type checks.
60742 * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
60743 In place of that, invoke jm_CHECK_ALL_TYPES.
60744 (jm_CHECK_ALL_HEADERS): New functions with the above checks.
60745 (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
60746 Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
60747 The check for ssize_t was mistakenly run before the test for unistd.h.
60749 The configure-time check for stdbool.h was missing.
60750 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
60751 (jm_PREREQ_HASH): New function.
60753 2001-01-17 Jim Meyering <meyering@lucent.com>
60755 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
60756 for autoconf-2.49c.
60757 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
60759 2001-01-16 Jim Meyering <meyering@lucent.com>
60761 * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
60764 2001-01-14 Jim Meyering <meyering@lucent.com>
60766 * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
60767 foo and bar. Create conftestdir/ in the script, not in the C code.
60768 Remove directories in the script, not in the C code.
60769 Remove conftestdir{,2} before trying to create the directory.
60770 Make the entire configure script fail if the mkdir fails.
60772 2001-01-14 Jim Meyering <meyering@lucent.com>
60774 * lib/rename.c: New file. From Volker Borchert.
60775 Include stdlib.h, string.h or strings.h, and xalloc.h.
60776 Use strip_trailing_slashes rather than open-coding it.
60778 2001-01-03 Paul Eggert <eggert@twinsun.com>
60780 * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
60782 2001-01-03 Jim Meyering <meyering@lucent.com>
60784 * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
60785 of local `inptr' to avoid warning with some system declarations of
60788 2001-01-02 Volker Borchert <bt@teknon.de>
60790 * m4/rename.m4: New file.
60791 * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
60793 2001-01-01 Jim Meyering <meyering@lucent.com>
60795 * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
60796 even on systems with utmpx.h. It's necessary for the declaration of
60797 utmp's ut_user member. Reported by Andreas Jaeger.
60799 * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
60800 available. They are required for the declarations of getgrgid and
60802 (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
60803 Reported by Andreas Jaeger.
60805 2001-01-01 Alexandre Duret-Lutz <duret_g@epita.fr>
60807 * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
60808 expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
60809 so `make install' also works in VPATH builds.
60811 2000-12-31 Alexandre Duret-Lutz <duret_g@epita.fr>
60813 * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
60814 prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
60815 can be used in subdirectories.
60817 2000-12-29 Paul Eggert <eggert@twinsun.com>
60819 * lib/modechange.c: Do not assume that mode_t uses the
60820 traditional octal encoding. E.g. "chmod 1 FOO" should set
60821 the other-execute bit of FOO even if S_IXOTH != 1.
60823 (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
60824 WOTH, XOTH, ALLM): New macros.
60825 (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
60826 S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
60828 (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
60829 (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
60831 No need to use uintmax_t; unsigned long is long enough.
60832 Don't bother to get suffix since we don't use it.
60834 2000-12-26 Jim Meyering <meyering@lucent.com>
60836 * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
60837 better with autoheader.
60839 2000-12-24 Jim Meyering <meyering@lucent.com>
60841 * lib/hash.c (is_prime): Return explicit boolean values.
60842 (hash_get_first): Return NULL to appease Irix5.6's 89.
60843 Reported by Nelson Beebe.
60845 2000-12-19 Bruno Haible <haible@clisp.cons.org>
60847 * lib/localcharset.c (locale_charset): Add support for Win32.
60849 2000-12-18 Paul Eggert <eggert@twinsun.com>
60851 * lib/physmem.h, lib/physmem.c: New files.
60853 * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
60854 (noinst_HEADERS): Add physmem.h.
60856 * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
60857 't' for compatibility with Solaris 8 sort.
60859 2000-12-18 Bruno Haible <haible@clisp.cons.org>
60861 * lib/config.charset: Add support for BeOS.
60863 2000-12-17 Jim Meyering <meyering@lucent.com>
60865 * m4/dos.m4 (jm_AC_DOS): New file and macro.
60866 * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
60868 2000-12-16 Jim Meyering <meyering@lucent.com>
60870 This bug had a serious impact on chown: `chown N:M FILE' (for integer
60871 N and M) would have treated it like `chown N:N FILE'.
60873 * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
60875 2000-12-16 Jim Meyering <meyering@lucent.com>
60877 * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
60878 SHELLS_FILE to a file name that's useful on djgpp systems.
60880 (ADDITIONAL_DEFAULT_SHELLS): Define.
60881 (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
60882 Based mostly on a patch from Prashant TR.
60884 2000-12-16 Bruno Haible <haible@clisp.cons.org>
60886 * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
60887 VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
60888 CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
60890 2000-12-08 Andreas Schwab <schwab@suse.de>
60892 * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
60893 invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
60895 2000-12-07 Jim Meyering <meyering@lucent.com>
60897 * lib/stripslash.c (ISSLASH): Define.
60898 (strip_trailing_slashes): Use ISSLASH rather than comparing against
60902 * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
60903 (dir_name_r): Declare this function as static.
60904 [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
60905 manifest itself on a name containing a mix of slashes and
60907 Make this function work with names starting with a DOS-style
60908 drive letter and colon prefix.
60909 (dir_name): Append `.' if necessary.
60910 Based mostly on patches from Prashant TR and Eli Zaretskii.
60912 * lib/dirname.h (dir_name_r): Remove prototype.
60914 2000-12-06 Paul Eggert <eggert@twinsun.com>
60916 * m4/off_t-format.m4: Remove this file.
60917 * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
60919 2000-12-06 Jim Meyering <meyering@lucent.com>
60921 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
60922 replacement strtoull, we may well need the replacement strtoul, too.
60923 Check for declarations of strtoul and strtoull.
60924 Check for strtol. Mainly as a cue to cause automake to include
60925 strtol.c -- that file is included by each of strtoul.c and strtoull.c.
60926 Check for limits.h -- strtol.c needs it.
60928 2000-12-05 Jim Meyering <meyering@lucent.com>
60930 * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
60932 2000-12-04 Jim Meyering <meyering@lucent.com>
60934 * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
60935 Also include memory.h, stdlib.h, unistd.h if appropriate.
60936 Reported by Andreas Jaeger (conflicting declaration of malloc).
60938 2000-12-02 Jim Meyering <meyering@lucent.com>
60940 * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
60941 * m4/jm-macros.m4 (jm_MACROS): require it.
60943 2000-12-02 Jim Meyering <meyering@lucent.com>
60945 * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
60947 2000-12-01 Paul Eggert <eggert@twinsun.com>
60949 * lib/memrchr.c: Include <config.h> before any system include file.
60951 2000-11-30 Jim Meyering <meyering@lucent.com>
60953 * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
60955 2000-11-30 Jim Meyering <meyering@lucent.com>
60957 * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
60959 2000-11-29 Paul Eggert <eggert@twinsun.com>
60961 * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
60963 2000-11-26 Jim Meyering <meyering@lucent.com>
60965 * lib/memcoll.c: Include sys/types.h. From Werner Almesberger.
60967 2000-11-22 Paul Eggert <eggert@twinsun.com>
60969 * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
60970 size of (size_t) -1; it's not portable.
60972 2000-11-17 Jim Meyering <meyering@lucent.com>
60974 * lib/strstr.c: Update from GNU libc.
60976 2000-11-17 Akim Demaille <akim@epita.fr>
60978 * lib/obstack.h: Formatting changes.
60979 (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
60980 prevent type checking.
60981 (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
60982 cast the value to (void *): assigning a `foo *' to a `void *'
60984 (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
60986 2000-11-16 Jim Meyering <meyering@lucent.com>
60988 * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
60990 2000-11-11 Jim Meyering <meyering@lucent.com>
60992 * lib/error.c: Add a couple #includes, merging from GNU libc version.
60994 2000-11-10 Jim Meyering <meyering@lucent.com>
60996 * lib/obstack.h: Update from GNU libc.
60997 * lib/obstack.c: Likewise.
60999 2000-11-08 Bruno Haible <haible@clisp.cons.org>
61001 * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
61003 2000-11-06 Paul Eggert <eggert@twinsun.com>
61005 * lib/getusershell.c (setusershell): Use rewind rather than
61006 fseek/fseeko, to avoid configuration hassles with fseeko.
61007 Don't bother opening SHELLS_FILE if shellstream is NULL;
61008 it's not necessary.
61010 2000-11-05 Jim Meyering <meyering@lucent.com>
61012 * lib/makepath.h (make_dir): Declare.
61013 * lib/makepath.c (make_dir): Remove `static' attribute.
61016 2000-11-04 Jim Meyering <meyering@lucent.com>
61018 * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
61020 2000-11-04 Alexandre Duret-Lutz <duret_g@epita.fr>
61022 * lib/hash.c (hash_get_next): Fix a thinko: when ENTRY is the
61023 last one in a bucket, advance to the next bucket.
61025 2000-11-02 Vesselin Atanasov <vesselin@bgnet.bg>
61027 * lib/fnmatch.c: Do not comment out all the code if we are using
61028 the GNU C library, because in some cases we are replacing buggy
61029 code in the GNU C library itself.
61031 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
61033 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
61034 (regex_compile): Catch bogus \(\1\).
61036 2000-10-30 Paul Eggert <eggert@twinsun.com>
61038 * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
61039 (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
61040 e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
61042 2000-10-30 Paul Eggert <eggert@twinsun.com>
61044 * lib/error.h, getline.h, modechange.h:
61045 Remove "2000" from Copyright line, as the file hasn't been
61046 changed this year other than in the copyright notice.
61048 * lib/xalloc.h: Add "2000" to Copyright line, as this file
61049 was changed this year.
61051 2000-10-29 Jim Meyering <meyering@lucent.com>
61053 * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
61055 * m4/ls-mntd-fs.m4: Likewise
61057 2000-10-29 Jim Meyering <meyering@lucent.com>
61059 * lib/xstat.in: Fix grammar in comment.
61061 2000-10-29 Greg Louis <glouis@dynamicro.on.ca>
61063 * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
61064 Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
61065 doesn't define __restrict_arr.
61067 2000-10-28 Jim Meyering <meyering@lucent.com>
61069 * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
61070 (jm_PREREQ_MEMCHR): New function.
61072 2000-10-28 Jim Meyering <meyering@lucent.com>
61074 * lib/memchr.c: Update from libc.
61075 Adjust for portability:
61076 [HAVE_STDLIB_H]: Include stdlib.h.
61077 [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
61078 Undef __memchr, too.
61079 [!weak_alias]: Define __memchr to memchr.
61081 * lib/regex.c: Update from libc.
61082 * lib/regex.h: Likewise.
61083 * lib/getopt1.c: Likewise.
61084 * lib/memcmp.c: Likewise.
61086 * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
61087 Avoid using fseek, when possible -- it's broken by design.
61088 Patch by Ulrich Drepper.
61090 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
61092 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
61093 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
61094 Giving in to popular pressure to shut up the compiler with casts.
61096 2000-10-26 Jim Meyering <meyering@lucent.com>
61098 * lib/strftime.c: Update from libc.
61100 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
61102 * regex.c: More `unsigned char' -> `re_char' changes.
61103 Also change several `int' into `re_wchar_t'.
61104 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
61105 (PUSH_FAILURE_POINTER): Don't cast any more.
61106 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
61107 We want GCC to complain, since this piece of code makes
61108 re_match non-reentrant, which *should* be fixed.
61109 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
61110 (EXTEND_BUFFER): Use RETALLOC.
61111 (SET_LIST_BIT): Don't cast.
61112 (re_wchar_t): New type.
61113 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
61114 that those two functions will always properly return.
61115 (IMMEDIATE_QUIT_CHECK): Cast to void.
61116 (analyse_first): Use recursion rather than an explicit stack.
61117 (re_compile_fastmap): Can't fail anymore.
61118 (re_search_2): Don't check re_compile_fastmap for failure.
61119 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
61120 Now also sets the new value (passed in a new argument).
61121 (re_match_2_internal): Use it.
61122 Also, use a new var `reg' of type size_t when looping through regs
61123 rather than reuse the inappropriate `mcnt'.
61125 2000-10-25 Jim Meyering <meyering@lucent.com>
61127 * lib/obstack.c: Update from libc.
61129 2000-10-24 Kenichi Handa <handa@etl.go.jp>
61131 * regex.c (regex_compile): Change the way of handling a range from
61132 a char less than 256 to a char not less than 256.
61134 2000-10-24 Andrew Innes <andrewi@gnu.org>
61136 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
61138 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
61139 so that re_search functions only quit when callers expect them to.
61141 2000-10-23 Jim Meyering <meyering@lucent.com>
61143 * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
61144 wrong. That set_locale call must not have any side effects.
61147 2000-10-22 Jim Meyering <meyering@lucent.com>
61149 * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
61150 [CYCLIC]: Remove now-unused definition.
61152 * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
61153 (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
61154 Suggestion from Ulrich Drepper.
61156 2000-10-21 Jim Meyering <meyering@lucent.com>
61158 * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
61159 * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
61160 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
61162 2000-10-21 Jim Meyering <meyering@lucent.com>
61164 * lib/dirname.c (memrchr): Declare if necessary.
61165 (dir_name): Remove the restriction that there be no
61166 trailing slashes. Now, this code skips past them, effectively
61168 [TEST_DIRNAME] (main): New unit tests.
61170 * lib/memrchr.c: New file from GNU libc.
61171 Undef __memrchr, too.
61172 [!weak_alias]: Define __memrchr to memrchr.
61173 Guard weak_alias use with `#ifdef weak_alias'.
61175 2000-10-21 Jim Meyering <meyering@lucent.com>
61177 * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
61178 (dir_name): Use dir_name_r.
61179 * lib/dirname.h (dir_name_r): Declare it.
61181 2000-10-17 Jim Meyering <meyering@lucent.com>
61183 * lib/quote.h (PARAMS): Define and use.
61184 Reported by Akim Demaille.
61186 * lib/getopt.c: Update from libc.
61188 2000-10-16 Jim Meyering <meyering@lucent.com>
61190 * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
61194 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
61196 * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
61198 2000-09-25 Jim Meyering <meyering@lucent.com>
61200 * lib/md5.h (rol): Define (from GnuPG).
61202 * lib/sha.c: Give credit (GnuPG) where due.
61203 (M): Use rol rather than open-coding it.
61204 Add a FIXME comment.
61206 2000-09-21 Jim Meyering <meyering@lucent.com>
61208 * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
61209 Reported by Michael Stone.
61211 2000-09-20 Jim Meyering <meyering@lucent.com>
61213 * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
61214 (noinst_HEADERS): Add sha.h.
61215 Based on code from Scott G. Miller and from GnuPG.
61217 2000-09-18 Jim Meyering <meyering@lucent.com>
61219 * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
61220 LIBS. Otherwise, everyone ends up linking with -lelf for some
61222 Reported by Mike Stone.
61224 2000-09-15 Jim Meyering <meyering@lucent.com>
61226 * lib/regex.c: Update from libc.
61228 2000-09-10 Jim Meyering <meyering@lucent.com>
61230 * lib/getopt.c (_getopt_internal): Update from glibc.
61232 2000-09-09 Jim Meyering <meyering@lucent.com>
61234 * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
61235 think it should be used as a general replacement for isascii.
61236 * lib/fnmatch.c: Likewise.
61237 * lib/mbswidth.c: Likewise
61238 * lib/regex.c: Likewise.
61241 * lib/userspec.c: Include sys/param.h and limits.h.
61243 (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
61244 (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
61245 (parse_user_spec): Use xstrtoul, not atoi when converting numeric
61246 UID, GID. Check range.
61248 2000-09-06 Jim Meyering <meyering@lucent.com>
61250 * lib/getopt.c (_getopt_internal): Update from glibc.
61252 2000-08-30 Jim Meyering <meyering@lucent.com>
61254 * lib/strftime.c: Merge in changes from GNU libc.
61256 2000-08-26 Jim Meyering <meyering@lucent.com>
61258 * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
61259 * m4/fpending.m4: New file.
61261 2000-08-26 Jim Meyering <meyering@lucent.com>
61263 * lib/closeout.c: Include "__fpending.h".
61264 (close_stdout_status): Return right away if there's nothing to flush.
61266 * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
61267 * lib/__fpending.c: New file.
61268 * lib/__fpending.h: New file.
61270 2000-08-20 Jim Meyering <meyering@lucent.com>
61272 * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
61273 `#if !HAVE_UTMPX_H'. The latter would lose on systems with neither
61274 utmp.h nor utmpx.h. Reported by Eli Zaretskii.
61276 2000-08-11 J. David Anglin <dave@hiauly1.hia.nrc.ca>
61278 Improve fileutils installation on systems where running
61279 programs (like install) can't be unlinked.
61280 * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
61281 * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
61283 2000-08-07 Paul Eggert <eggert@twinsun.com>
61285 Standardize on "memory exhausted" instead of "Memory exhausted"
61286 or "virtual memory exhausted".
61287 * lib/obstack.c (print_and_abort): Use "memory exhausted", not
61288 "virtual memory exhausted".
61289 * lib/same.c (same_name): Invoke xalloc_die instead of printing
61291 * lib/userspec.c (parse_user_spec): Likewise.
61292 * lib/bumpalloc.h: comment fix
61293 * lib/same.c, userspec.c: Include xalloc.h.
61295 * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
61296 not char *const and pointing to a constant array.
61297 * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
61298 (xrealloc): Comment fix.
61300 * lib/userspec.c (parse_user_spec):
61301 Don't translate a message until just before returning,
61302 to avoid unnecessary translation.
61304 2000-08-07 Jim Meyering <meyering@lucent.com>
61306 * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
61307 chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
61308 fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
61309 getgroups.c, gethostname.c, getopt.h, group-member.c,
61310 hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
61311 linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
61312 memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
61313 pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
61314 stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
61315 strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
61316 utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
61317 yesno.c: Back out Copyright date changes for each file with no change
61318 this year. This eases coordination with other programs using the same
61319 source code modules. From Paul Eggert.
61321 2000-08-06 Paul Eggert <eggert@twinsun.com>
61323 * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
61324 not char, for compatibility with glibc 2.1.3 strftime.c.
61326 2000-08-03 Greg McGary <greg@mcgary.org>
61328 * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
61329 ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
61330 (EXTEND_BUFFER): Use them.
61332 2000-08-01 Jim Meyering <meyering@lucent.com>
61334 * lib/dirname.c (ISSLASH): Define.
61335 (BACKSLASH_IS_PATH_SEPARATOR): Define.
61336 (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
61337 both `\' and `/' may be use as path separators.
61338 Based on a patch from Prashant TR.
61340 2000-07-31 Paul Eggert <eggert@twinsun.com>
61342 * lib/quotearg.c (quotearg_n_options): Don't make the initial
61343 slot vector a constant, since it might get modified.
61345 2000-07-31 Jim Meyering <meyering@lucent.com>
61347 * lib/xmalloc.c: Use `virtual memory exhausted', not
61348 `Memory exhausted'.
61349 * lib/obstack.c (print_and_abort): Likewise.
61351 2000-07-30 Paul Eggert <eggert@twinsun.com>
61353 * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
61354 buffer, so that the caller can always quote one small
61355 component of a "memory exhausted" message in slot 0.
61356 From a suggestion by Jim Meyering.
61358 2000-07-30 Jim Meyering <meyering@lucent.com>
61360 * lib/makepath.c (make_path): Quote the other instance, too.
61362 * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
61363 (STATIC_BUF_SIZE): Define.
61364 (quotearg_n_options): Use only statically allocated storage when
61365 N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
61366 than STATIC_BUF_SIZE.
61368 2000-07-29 Jim Meyering <meyering@lucent.com>
61370 * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
61371 * lib/dirname.c (dir_name): Likewise.
61373 * lib/basename.c (base_name): Use ISSLASH rather than comparing against
61376 * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
61377 (dir_name): Assert that there are no trailing slashes.
61379 2000-07-29 Bruno Haible <haible@clisp.cons.org>
61381 * lib/mbswidth.h (mbswidth): Add a flags argument.
61382 (mbswidth): New declaration.
61383 (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
61384 * lib/mbswidth.c (mbswidth): Add a flags argument.
61385 (mbsnwidth): New function.
61387 2000-07-24 Jim Meyering <meyering@lucent.com>
61389 * lib/mbswidth.c: Remove useless #else. From Bruno Haible.
61391 2000-07-23 Paul Eggert <eggert@twinsun.com>
61393 * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
61395 2000-07-23 Paul Eggert <eggert@twinsun.com>
61397 * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
61398 <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
61399 (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
61400 (quotearg_buffer_restyled): If a unibyte locale, don't bother to
61401 invoke multibyte primitives.
61403 2000-07-23 Paul Eggert <eggert@twinsun.com>
61406 Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
61407 so that mbstate_t is always defined.
61409 Do not inspect MB_LEN_MAX, since it's incorrectly defined to
61410 be 1 in at least one GCC installation, and this configuration
61411 error is likely to be common. Ignoring MB_LEN_MAX hurts
61412 performance on hosts that have mbrtowc but have only unibyte
61413 locales, but I assume these hosts are rare.
61415 2000-07-23 Paul Eggert <eggert@twinsun.com>
61417 * lib/mbswidth.c (_XOPEN_SOURCE):
61418 Don't define; this causes problems on Solaris 7.
61419 (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
61421 2000-07-23 Jim Meyering <meyering@lucent.com>
61423 * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
61424 too: getgrgid, getpwuid, getuid.
61426 2000-07-23 Jim Meyering <meyering@lucent.com>
61428 * lib/basename.c (base_name): Add an assertion.
61430 2000-07-23 Bruno Haible <haible@clisp.cons.org>
61432 * lib/quotearg.c: When the system forces us to redefine mbstate_t,
61433 shadow its mbsinit function.
61435 2000-07-17 Bruno Haible <haible@clisp.cons.org>
61437 * lib/mbswidth.h: New file.
61438 * lib/mbswidth.c: New file.
61439 * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
61440 (noinst_HEADERS): Add mbswidth.h.
61442 2000-07-17 Bruno Haible <haible@clisp.cons.org>
61444 * lib/config.charset: Add support for FreeBSD. Improve support for
61447 2000-07-16 Bruno Haible <haible@clisp.cons.org>
61449 * m4/mbswidth.m4: New file.
61450 * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
61452 2000-07-15 Jim Meyering <meyering@lucent.com>
61454 * lib/makepath.c: Include quote.h.
61455 (make_path): Convert "`%s'" in format strings to "%s", and wrap each
61456 corresponding argument in a `quote (...)' call.
61457 Give better diagnostics.
61459 * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
61460 (noinst_HEADERS): Add quote.h.
61462 * lib/quote.c (quote, quote_n): New file. Two functions taken verbatim
61463 from tar's src/misc.c.
61464 * lib/quote.h: New file. Prototypes for same.
61466 2000-07-14 Paul Eggert <eggert@twinsun.com>
61468 From a suggestion by Bruno Haible.
61469 * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
61470 Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
61471 to decide whether to define the BeOS workaround macro;
61472 this adjusts to the change to AC_MBSTATE_T.
61474 2000-07-14 Jim Meyering <meyering@lucent.com>
61476 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
61477 jm_AC_TYPE_UINTMAX_T.
61479 2000-07-13 Paul Eggert <eggert@twinsun.com>
61481 * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
61483 * lib/quotearg.c (quoting_style_args, quoting_style_vals,
61484 quotearg_buffer_restyled): Add support for
61485 clocale_quoting_style. Undo previous change to
61486 locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
61487 and "{RIGHT QUOTATION MARK}" msgids.
61489 2000-07-10 Paul Eggert <eggert@twinsun.com>
61491 From a suggestion by Bruno Haible.
61492 * m4/mbstate_t.m4 (AC_MBSTATE_T):
61493 Renamed from AC_MBSTATE_T_OBJECT. All uses changed.
61494 Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
61495 and mbstate_t, to a single-part test that simply defines mbstate_t.
61496 * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
61497 s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
61499 2000-07-10 Jim Meyering <meyering@lucent.com>
61501 * m4/strerror_r.m4: Mirror the correction made in autoconf.
61503 * m4/gnu-source.m4: Output to confdefs.h directly.
61504 Suggestion from Akim Demaille.
61506 2000-07-09 Paul Eggert <eggert@twinsun.com>
61508 The old behavior of quoting `like this' doesn't look good with
61509 newer, ISO-style fonts. See:
61510 http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
61512 Instead, quote "like this" by default. Let the translator
61513 tailor the locale-specific quoting behavior by providing
61514 translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
61516 * lib/quotearg.c (N_): New macro.
61517 (gettext_default): New function.
61518 (quotearg_buffer_restyled): Use
61519 gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
61520 gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
61522 2000-07-09 Jim Meyering <meyering@lucent.com>
61524 * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
61525 to link seq. If so, set SEQ_LIBM to -lm. From Bruno Haible.
61527 * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
61528 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
61530 2000-07-09 Jim Meyering <meyering@lucent.com>
61532 * lib/Most files: Update copyright dates to include 2000.
61534 2000-07-08 Jim Meyering <meyering@lucent.com>
61536 * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
61538 (xgethostname): Remove now-unnecessary #ifdef.
61539 Move declaration of `err' into loop where it's used.
61541 2000-07-05 Paul Eggert <eggert@twinsun.com>
61542 and Bruno Haible <haible@clisp.cons.org>
61544 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
61545 only if the test for an object-type mbstate_t fails. This
61546 prevents us from mistakenly reporting that mbstate_t is a
61547 system object type after we "#define mbstate_t int" to work
61550 2000-07-05 Paul Eggert <eggert@twinsun.com>
61551 and Bruno Haible <haible@clisp.cons.org>
61553 * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
61555 2000-07-05 Bruno Haible <haible@clisp.cons.org>
61557 * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
61559 Include <ctype.h> for use of isalpha.
61561 2000-07-05 Bruno Haible <haible@clisp.cons.org>
61563 * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
61564 by allocating a larger buffer. Test the gethostname return value for
61565 being >= 0, not == 0, for BeOS. Don't exhaust memory if gethostname
61566 returns an error and ENAMETOOLONG isn't defined.
61568 2000-07-05 Bruno Haible <haible@clisp.cons.org>
61570 * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
61573 2000-07-04 Jim Meyering <meyering@lucent.com>
61575 * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
61576 of the deprecated AC_CHECKING.
61578 2000-07-04 Jim Meyering <meyering@lucent.com>
61580 * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
61581 Reported by Bruno Haible.
61583 2000-07-04 Jim Meyering <meyering@lucent.com>
61585 * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
61586 HAVE_MBRTOWC is set. Required at least for irix-5.6, which
61589 2000-07-03 Paul Eggert <eggert@twinsun.com>
61591 * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
61592 Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
61594 2000-07-03 Paul Eggert <eggert@twinsun.com>
61595 and Bruno Haible <haible@clisp.cons.org>
61597 * lib/quotearg.c (mbrtowc):
61598 Assign to *pwc, and return 1 only if result is nonzero.
61599 (iswprint): Use ISPRINT when substituting our own mbrtowc.
61601 2000-07-03 Jim Meyering <meyering@lucent.com>
61603 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
61605 2000-07-03 Jim Meyering <meyering@lucent.com>
61607 * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
61608 This is necessary to get a definition of e.g., UTMP_FILE on
61612 2000-07-02 Jim Meyering <meyering@lucent.com>
61614 * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
61616 * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
61617 AC_LIBOBJ(function_name).
61618 * m4/chown.m4: Likewise.
61619 * m4/fnmatch.m4: Likewise.
61620 * m4/ftruncate.m4: Likewise.
61621 * m4/getgroups.m4: Likewise.
61622 * m4/getline.m4: Likewise.
61623 * m4/group-member.m4: Likewise.
61624 * m4/jm-macros.m4: Likewise.
61625 * m4/lstat.m4: Likewise.
61626 * m4/malloc.m4: Likewise.
61627 * m4/memcmp.m4: Likewise.
61628 * m4/nanosleep.m4: Likewise.
61629 * m4/putenv.m4: Likewise.
61630 * m4/realloc.m4: Likewise.
61631 * m4/regex.m4: Likewise.
61632 * m4/stat.m4: Likewise.
61633 * m4/strftime.m4: Likewise.
61635 2000-07-02 Jim Meyering <meyering@lucent.com>
61637 * lib/quotearg.c (mbstate_t): Don't define here.
61639 2000-07-02 Jim Meyering <meyering@lucent.com>
61641 * lib/nanosleep.c (SIGCONT): Define if not already defined.
61643 2000-07-01 Jim Meyering <meyering@lucent.com>
61645 * m4/uptime.m4: Put double quotes around use of $cross_compiling.
61647 2000-07-01 Jim Meyering <meyering@lucent.com>
61649 * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
61652 2000-07-01 Bruno Haible <haible@clisp.cons.org>
61654 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
61655 macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
61657 2000-07-01 Bruno Haible <haible@clisp.cons.org>
61659 * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
61660 per change in ../m4/ls-mntd-fs.m4.
61661 (read_filesystem_list): Ignore symbolic links.
61663 2000-06-29 Jim Meyering <meyering@lucent.com>
61665 * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
61666 for declaration of strcmp.
61668 * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
61670 * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
61671 Avoid warning by casting result to `char *' to remove `const'.
61673 2000-06-28 Jim Meyering <meyering@lucent.com>
61675 * m4/mbstate_t.m4: Use stdlib.h, not stdio.h. The latter is not
61676 included by quotearg.c, for which we perform this test. From
61679 2000-06-27 Bruno Haible <haible@clisp.cons.org>
61681 * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
61682 * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
61683 <utmpx.h> exists, put readutmp.o into LIBOBJS.
61685 2000-06-27 Bruno Haible <haible@clisp.cons.org>
61687 * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
61689 2000-06-26 Paul Eggert <eggert@twinsun.com>
61691 savedir now sets errno on failure and invokes xmalloc to get memory.
61692 Fix a couple of other minor bugs while we're at it.
61694 * lib/savedir.c (<unistd.h>): Do not include; there's no need.
61695 (NAMLEN): Remove macro.
61696 (malloc, realloc): Remove decls.
61697 (stpcpy): Likewise.
61698 ("xalloc.h"): Include.
61699 (NAME_SIZE_DEFAULT): New macro.
61700 (savedir): Use xmalloc / xrealloc to allocate memory.
61701 Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
61702 Skip "" directory entries.
61703 Use strlen to calculate directory entry length, since the old method
61704 is rarely used these days and isn't worth supporting.
61705 Don't use a pointer after freeing it.
61706 Check for integer overflow when calculating allocation size.
61707 Use memcpy to copy entries, instead of stpcpy.
61708 Set errno properly when returning NULL.
61709 Check for readdir error.
61711 2000-06-26 Jim Meyering <meyering@lucent.com>
61713 * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
61715 2000-06-25 Jim Meyering <meyering@lucent.com>
61717 * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
61718 Linux header bug when _XOPEN_SOURCE is defined to 500.
61720 2000-06-25 Bruno Haible <haible@clisp.cons.org>
61722 * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
61725 2000-06-25 Bruno Haible <haible@clisp.cons.org>
61727 * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
61729 Don't include <stdlib.h>. Don't declare malloc, realloc.
61731 2000-06-24 Jim Meyering <meyering@lucent.com>
61733 * m4/strerror_r.m4: Revive this file -- to try out an experimental
61734 version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
61735 for which strerror does return char*, but which lacks a conveniently
61736 accessible declaration of the function. If the compile-test says
61737 strerror_r doesn't work, then resort to a `run'-test that works on
61738 BeOS and segfaults on DEC Unix.
61740 2000-06-24 Jim Meyering <meyering@lucent.com>
61742 * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
61744 2000-06-23 Paul Eggert <eggert@twinsun.com>
61746 * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
61747 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it. Add check for iswprint.
61749 2000-06-23 Paul Eggert <eggert@twinsun.com>
61751 * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
61752 (mbrtowc, mbstate_t): Define substitutes if
61753 HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
61754 (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
61755 not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
61757 2000-06-23 Jim Meyering <meyering@lucent.com>
61759 * m4/afs.m4: Add missing AC_MSG_RESULT.
61760 Reported by Bruno Haible.
61762 * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
61763 Suggestion from Bruno Haible.
61765 2000-06-23 Jim Meyering <meyering@lucent.com>
61767 * lib/getpass.c: New file, from Bruno Haible. Required for BeOS.
61769 2000-06-21 Jim Meyering <meyering@lucent.com>
61771 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
61773 2000-06-21 Jim Meyering <meyering@lucent.com>
61775 * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
61776 (noinst_HEADERS): Add getstr.h.
61778 * lib/getline.c (getstr): Move into a separate file.
61779 * lib/getstr.c (getstr): New file, extracted from getline.c, with
61780 the following changes: new parameter, delim2; both delim[12]
61781 parameters have type `int', not `char'. The latter would lose
61782 with 8-bit delimiters.
61783 * lib/getstr.h: New file.
61785 2000-06-21 Bruno Haible <haible@clisp.cons.org>
61787 * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
61788 than 1024, return a memory chunk of least possible size, instead
61789 of size PATH_MAX + 2. In the loop, increment the size proportionally.
61790 Use free/xmalloc instead of xrealloc to avoid copying for very long
61793 2000-06-21 Bruno Haible <haible@clisp.cons.org>
61795 * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
61798 2000-06-21 Bruno Haible <haible@clisp.cons.org>
61800 * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
61801 address, not strdup. Include <stdlib.h> and don't declare free().
61803 2000-06-19 Jim Meyering <meyering@lucent.com>
61805 * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
61807 2000-06-18 Jim Meyering <meyering@lucent.com>
61809 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
61811 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
61812 `checking whether...' message to be consistent with that of the
61815 2000-06-18 Jim Meyering <meyering@lucent.com>
61817 * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
61818 Besides, these days every porting target provides a mkdir function.
61820 * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
61821 needed. (this snippet comes from src/system.h).
61823 2000-06-16 Bruno Haible <haible@clisp.cons.org>
61825 * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
61827 2000-06-15 Paul Eggert <eggert@twinsun.com>
61829 * lib/human.c (adjust_value): New function.
61830 (human_readable_inexact): Apply rounding style even when
61831 printing approximate values.
61833 2000-06-14 Paul Eggert <eggert@twinsun.com>
61835 * lib/human.c (human_readable_inexact): Allow an input block
61836 size that is not a multiple of the output block size, and vice versa.
61837 Reported by Piergiorgio Sartor.
61839 2000-06-14 Paul Eggert <eggert@twinsun.com>
61841 * lib/getdate.y (get_date): Apply relative times after time
61842 zone indicator, not before. Reported by Todd A. Jacobs.
61844 2000-06-13 Jim Meyering <meyering@lucent.com>
61846 * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
61848 * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
61850 2000-06-12 Paul Eggert <eggert@twinsun.com>
61852 * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
61854 2000-06-12 Jim Meyering <meyering@lucent.com>
61856 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
61857 AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
61859 * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
61860 the optional argument, `lib'.
61862 2000-06-08 Jim Meyering <meyering@lucent.com>
61864 * m4/largefile.m4: Remove file (now that it's part of autoconf).
61866 2000-06-04 Paul Eggert <eggert@twinsun.com>
61868 Rewrite largefile configuration so that we don't need to run
61869 getconf and don't need AC_CANONICAL_HOST. [I'm leaving the use of
61870 AC_CANONICAL_HOST in configure.in -- jmm]
61872 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
61873 AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
61874 (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
61875 (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
61876 CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
61878 Instead of inspecting the output of getconf, try to compile the
61879 test program without and with the macro definition.
61880 (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
61881 for getconf. Instead, check for the needed flags by compiling
61884 2000-06-04 Paul Eggert <eggert@twinsun.com>
61886 * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
61888 2000-06-04 Jim Meyering <meyering@lucent.com>
61890 * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
61891 SunOS 4.1.4 for which gid_t is an unsigned type.
61893 2000-06-03 Jim Meyering <meyering@lucent.com>
61895 * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
61896 now that autoconf requires that.
61898 * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
61899 #undefs. E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
61900 Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
61902 2000-06-03 Jim Meyering <meyering@lucent.com>
61904 * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
61906 2000-06-03 Bruno Haible <haible@clisp.cons.org>
61908 * m4/glibc21.m4: New file.
61909 * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
61911 2000-06-03 Bruno Haible <haible@clisp.cons.org>
61913 * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
61914 newer, don't install charset.alias.
61915 * lib/config.charset: Change the Linux/glibc rules so they become empty
61916 on glibc-2.1 or newer.
61918 2000-06-02 Jim Meyering <meyering@lucent.com>
61920 * lib/mountlist.c: Back out last change. Instead, do this...
61921 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
61922 me_dummy member using the same `ignore'-testing code.
61923 * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
61927 2000-05-29 Jim Meyering <meyering@lucent.com>
61929 * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
61930 mounts with the `ignore' attribute. Based on a patch from
61933 2000-05-28 Jim Meyering <meyering@lucent.com>
61935 * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
61936 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61937 * m4/stat.m4: Likewise.
61938 * m4/lstat.m4: Likewise.
61939 * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
61941 * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
61942 * m4/strerror_r.m4: Remove file (absorbed into autoconf).
61944 2000-05-26 Jim Meyering <meyering@lucent.com>
61946 * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
61948 2000-05-24 Jim Meyering <meyering@lucent.com>
61950 * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
61951 autoconf requires that.
61952 * m4/lib-check.m4: Likewise.
61953 * m4/jm-macros.m4: Likewise.
61954 * m4/strftime.m4: Likewise.
61956 * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
61957 AC_CHECK_DECLS, now that autoconf requires that.
61959 2000-05-22 Jim Meyering <meyering@lucent.com>
61961 * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
61962 * m4/lstat.m4: Likewise.
61964 2000-05-22 Jim Meyering <meyering@lucent.com>
61966 * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
61968 2000-05-20 Jim Meyering <meyering@lucent.com>
61970 * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
61971 (jm_PREREQ): Use it.
61973 2000-05-18 Jim Meyering <meyering@lucent.com>
61975 * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
61976 back, too, since it may have been modified by allocate_entry.
61977 (hash_delete): Rewrite to use neither the assignment operator
61978 nor the comma operator in an if-expression.
61980 2000-05-15 Paul Eggert <eggert@twinsun.com>
61983 <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
61984 Remove; no longer needed.
61985 "quotearg.h": Add include.
61986 (file_name): Do not bother to explicitly initialize to NULL; it's less
61987 efficient on some hosts.
61988 (close_stdout_status): Remove test as to whether stdout was already
61989 closed; it breaks for the case "echo x | sort >&-".
61990 Quote file name colons.
61991 Do not assume that _("write error") lacks format strings.
61993 2000-05-15 Jim Meyering <meyering@lucent.com>
61995 * lib/version-etc.c (version_etc_copyright): Update the copyright
61996 string used in all --version output.
61998 2000-05-14 Jim Meyering <meyering@lucent.com>
62000 * lib/closeout.c (close_stdout_set_file_name): New function.
62001 (close_stdout_status): Use new file-scoped global.
62002 Return right away if fstat says the stdout file descriptor is invalid.
62003 * lib/closeout.h (close_stdout_set_file_name): Declare.
62005 2000-05-10 Jim Meyering <meyering@lucent.com>
62007 * lib/closeout.c [default_exit_status]: New file-scoped variable.
62008 (close_stdout_set_status): New function.
62009 * lib/closeout.h (close_stdout_set_status): Declare.
62011 2000-05-09 Jim Meyering <meyering@lucent.com>
62013 * m4/gettext.m4: Rename this...
62014 * m4/libintl.m4: ...to this.
62016 2000-05-08 Jim Meyering <meyering@lucent.com>
62018 * lib/long-options.c: Don't include closeout.h.
62019 (parse_long_options): Don't call close_stdout for --version.
62021 2000-05-06 Paul Eggert <eggert@twinsun.com>
62023 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
62024 be 500, instead of _GNU_SOURCE to be 1, to work around glibc
62025 2.1.3 bug. This avoids a clash when files like regex.c define
62028 2000-05-06 Jim Meyering <meyering@lucent.com>
62030 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
62031 (AC_REPLACE_FUNCS): Add strnlen.
62033 * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
62034 * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
62036 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
62037 AC_SEARCH_LIBS call for nanosleep.
62038 (LIB_NANOSLEEP): Set and AC_SUBST.
62040 2000-05-06 Jim Meyering <meyering@lucent.com>
62042 * lib/strnlen.c: Undefine __strnlen and strnlen.
62043 [!weak_alias]: Define __strnlen to strnlen.
62045 * lib/atexit.c: New file, from libiberty.
62047 2000-05-06 Jim Meyering <meyering@lucent.com>
62049 * lib/closeout.c (close_stdout_status): Also check for errors on the
62052 2000-05-05 Jim Meyering <meyering@lucent.com>
62054 * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
62055 AC_SEARCH_LIBS call for clock_gettime.
62056 (LIB_CLOCK_GETTIME): Set and AC_SUBST.
62058 * m4/search-libs.m4: Update from autoconf.
62060 su doesn't work on Solaris 2.6.
62061 * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
62062 <shadow.h>. Reported by Dragos Harabor.
62064 2000-05-05 Bruno Haible <haible@clisp.cons.org>
62066 * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
62067 memcpy instead of xmalloc, xrealloc, path_concat.
62068 (locale_charset): Treat empty environment variables as absent.
62069 (DIRECTORY_SEPARATOR, ISSLASH): New macros.
62071 2000-05-04 Jim Meyering <meyering@lucent.com>
62073 * lib/getopt.c: Update from glibc.
62074 * lib/obstack.c: Likewise.
62075 * lib/obstack.h: Likewise.
62076 * lib/regex.c: Likewise. NB: K&R compiler support is dropped for this
62079 * lib/regex.h: Likewise.
62080 * lib/strndup.c: Likewise.
62081 * lib/strnlen.c: New file, from glibc.
62083 2000-05-03 Jim Meyering <meyering@lucent.com>
62085 * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
62087 2000-05-02 Paul Eggert <eggert@twinsun.com>
62089 * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
62090 this is needed to make ftello visible (e.g. glibc 2.1.3). Use
62091 compile-time test, rather than inspecting host and OS, to
62092 decide whether to define _LARGEFILE_SOURCE.
62094 2000-05-01 Jim Meyering <meyering@lucent.com>
62096 * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
62098 * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
62099 Based on a patch from Bruno Haible.
62101 2000-05-01 Jim Meyering <meyering@lucent.com>
62103 * lib/full-write.c (full_write): Remove `FIXME' part of comment.
62105 2000-04-29 Jim Meyering <meyering@lucent.com>
62107 * lib/path-concat.c: Declare strdup only if it's not defined.
62108 * lib/canon-host.c: Likewise.
62110 2000-04-28 Jim Meyering <meyering@lucent.com>
62112 * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
62113 avoid redefinition warning on some systems (HPUX). Otherwise, regex.h
62114 is included first, then limits.h is included by locale.h by libintl.h.
62115 From John David Anglin.
62117 2000-04-25 Jim Meyering <meyering@lucent.com>
62119 * lib/makepath.c (S_IRWXUGO): Define.
62120 (make_path): Always perform explicit chmod if MODE specifies any
62121 of the `special' permission bits. Prompted by a bug report against
62122 install from Mate Wierdl and Joost van Baal.
62124 2000-04-18 Jim Meyering <meyering@lucent.com>
62126 * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
62127 (jm_PREREQ): Use it.
62129 2000-04-18 Jim Meyering <meyering@lucent.com>
62131 * lib/README: New file.
62133 * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
62134 getpagesize. For BeOS. Based on a patch from Bruno Haible.
62136 2000-04-17 Jim Meyering <meyering@lucent.com>
62139 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
62140 actual #define via AH_VERBATIM. Don't need separate AC_DEFINE.
62141 Suggestion from Akim Demaille.
62143 2000-04-17 Jim Meyering <meyering@lucent.com>
62145 * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
62146 the definition of it to rpl_strftime also defined-away the system's
62149 2000-04-15 Jim Meyering <meyering@lucent.com>
62151 Use `C' to denote so-called `contiguous' files, the same way
62153 * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
62154 (ftypelet): Use S_ISCTG.
62155 From Michael Deutschmann.
62157 2000-04-14 Jim Meyering <meyering@lucent.com>
62159 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
62160 form of AC_DEFINE. Otherwise, the #ifndef in AH_VERBATIM gets
62163 2000-04-14 Jim Meyering <meyering@lucent.com>
62165 * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
62167 2000-04-13 Jim Meyering <meyering@lucent.com>
62169 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
62170 AH_VERBATIM to insert required #ifndef into config.h.in.
62171 Suggestion from Akim Demaille.
62173 2000-04-12 Jim Meyering <meyering@lucent.com>
62175 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
62176 `AC_CHECK_HEADER' to check for locale.h. Thanks to a report from
62177 Christian Krackowizer.
62179 More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
62180 * m4/jm-macros.m4 (_GNU_SOURCE): Define.
62181 (AC_SYS_LARGEFILE): Require.
62182 (AM_C_PROTOTYPES): Require.
62184 2000-04-08 Jim Meyering <meyering@lucent.com>
62186 * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
62187 names don't conflict. Reported by Eli Zaretskii.
62189 2000-04-07 Jim Meyering <meyering@lucent.com>
62191 * lib/putenv.c: Move inclusion of errno.h so it follows that of
62192 sys/types.h, to work around system header problems on AIX 3.2.5.
62195 2000-04-07 Bruno Haible <haible@clisp.cons.org>
62197 * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
62198 bug. Deal with the different error behavior of Irix iconv.
62200 2000-04-05 Paul Eggert <eggert@twinsun.com>
62202 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
62203 IRIX if the installer said otherwise.
62205 2000-04-05 Jim Meyering <meyering@lucent.com>
62207 Portability tweaks required for ultrix4.3.
62208 * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
62209 (jm_CHECK_DECLS): Add getutent to the list of functions.
62210 (_jm_DECL_HEADERS): Add utmpx.h.
62211 From John David Anglin.
62213 * m4/strftime.m4: Back out the 2000-04-02 change.
62214 Instead of that change, simply undefine putenv in the test program.
62216 2000-04-05 Jim Meyering <meyering@lucent.com>
62218 Portability tweaks required for ultrix4.3.
62219 * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
62221 * lib/readutmp.c: Include sys/types.h before sys/stat.h.
62222 * lib/canon-host.c: Declare strdup.
62223 * lib/path-concat.c: Likewise.
62224 From John David Anglin.
62226 2000-04-04 Jim Meyering <meyering@lucent.com>
62228 Be more DOS 8.3-friendly.
62229 * lib/ref-add.sin: Renamed from ref-add.sed.in.
62230 * lib/ref-del.sin: Renamed from ref-del.sed.in.
62231 * lib/Makefile.am: Reflect renaming.
62232 Reported by Eli Zaretskii.
62234 Use a temporary file name that won't clash with `charset.alias'
62235 in the DOS 8.3 name space.
62236 * lib/Makefile.am (charset_tmp): Define.
62237 (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
62238 (uninstall-local): Likewise.
62239 Reported by Eli Zaretskii.
62241 2000-04-03 Jim Meyering <meyering@lucent.com>
62243 * m4/gettext.m4: Fix typo in comment.
62245 * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
62246 textutils/configure.in). Suggestion from Paul Eggert.
62247 (AC_CHECK_FUNCS): Add nl_langinfo. (also from textutils/configure.in)
62249 2000-04-02 Paul Eggert <eggert@twinsun.com>
62251 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
62252 variable in the shell rather than using putenv, which isn't
62253 portable. This avoids the configure-time inter-test dependency
62254 on the potentially-renamed putenv function.
62256 2000-03-30 Paul Eggert <eggert@twinsun.com>
62258 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
62259 before checking struct stat.st_blksize, so that
62260 HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
62262 2000-03-29 Paul Eggert <eggert@twinsun.com>
62264 * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
62265 since strftime.c uses HAVE_STRFTIME to decide whether to use
62266 the underlying strftime.
62268 2000-03-29 Paul Eggert <eggert@twinsun.com>
62270 * lib/time/strftime.c (my_strftime): Make sure we call the system
62271 strftime, not ourselves, when invoking the underlying strftime.
62273 2000-03-24 Jim Meyering <meyering@lucent.com>
62275 * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
62276 (charset_alias): Define.
62277 (install-exec-local): Factor out common code.
62278 (uninstall-local): Split lines longer than 80.
62279 (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
62280 (SUFFIXES): Define.
62281 (.sed.in.sed): New rule. Don't redirect directly to $@.
62282 (CLEANFILES): Add ref-add.sed and ref-del.sed.
62284 2000-03-19 Bruno Haible <haible@clisp.cons.org>
62286 * lib/config.charset: Output a line containing "Packages using this
62288 * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
62289 * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
62290 ref-del.sed): New rules.
62292 2000-03-17 Jim Meyering <meyering@lucent.com>
62294 * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
62295 Otherwise, include <strings.h>
62297 2000-03-17 Bruno Haible <haible@clisp.cons.org>
62299 * lib/unicodeio.c (utf8_wctomb): New function.
62300 (print_unicode_char): Pass the Unicode character to iconv in UTF-8
62301 format instead of in UCS-4 with platform dependent endianness.
62303 2000-03-10 Jim Meyering <meyering@lucent.com>
62305 * m4/lib-check.m4: Look for getspnam in -lgen, too.
62306 From Marco Franzen.
62308 2000-03-07 Paul Eggert <eggert@twinsun.com>
62310 * lib/savedir.c (savedir): Work even if directory size is
62311 negative; this can happen with some screwy NFS configurations.
62313 2000-03-06 Jim Meyering <meyering@lucent.com>
62315 * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
62316 if it's NULL (because we ran out of memory). From Bruno Haible.
62318 2000-03-05 Jim Meyering <meyering@lucent.com>
62320 * lib/localcharset.c ("path-concat.h"): Include.
62321 (get_charset_aliases): Use path_concat instead of ANSI string
62324 * lib/unicodeio.h (PARAMS): Define.
62325 Use it to guard prototype.
62327 2000-03-04 Jim Meyering <meyering@lucent.com>
62329 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
62330 for lib/localcharset.c.
62332 2000-03-04 Jim Meyering <meyering@lucent.com>
62334 * lib/Makefile.am (install-exec-local): Create $(libdir) before
62335 installing into it.
62336 (uninstall-local): Uncomment this rule so `make distcheck' works
62339 * lib/unicodeio.c (<errno.h>): Include it.
62340 (errno): Declare if not defined.
62342 * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
62344 * lib/config.charset: New version, incorporating remarks from a linux
62345 i18n mailing list. From Bruno Haible.
62347 2000-03-04 Bruno Haible <haible@clisp.cons.org>
62349 * m4/codeset.m4: New file.
62350 * m4/iconv.m4: New file.
62351 * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
62353 2000-03-03 Jim Meyering <meyering@lucent.com>
62355 * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
62357 2000-03-02 Jim Meyering <meyering@lucent.com>
62359 * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
62360 the messages come out on separate lines.
62362 * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
62363 rather than jm_CHECK_DECLARATIONS.
62364 * m4/decl.m4: Remove now-unused file.
62366 * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
62369 2000-03-02 Jim Meyering <meyering@lucent.com>
62371 * lib/Makefile.am (EXTRA_DIST): Add config.charset.
62373 2000-03-01 Jim Meyering <meyering@lucent.com>
62375 * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
62376 * lib/unicodeio.c: Likewise.
62378 2000-03-01 Bruno Haible <haible@clisp.cons.org>
62380 * lib/config.charset: New file.
62381 * lib/localcharset.c: New file.
62382 * lib/unicodeio.h, lib/unicodeio.c: New files.
62383 * lib/Makefile.am (DEFS): Add -DLIBDIR=...
62384 (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
62385 (noinst_HEADERS): Add unicodeio.h.
62386 (all-local, install-exec-local, charset.alias): New targets.
62388 2000-02-28 Paul Eggert <eggert@twinsun.com>
62390 * lib/quotearg.c (ALERT_CHAR): New macro.
62391 (quotearg_buffer_restyled): Use it.
62393 2000-02-27 Jim Meyering <meyering@lucent.com>
62395 * m4/check-decl.m4: Add getenv to the list.
62397 2000-02-27 Jim Meyering <meyering@lucent.com>
62399 * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
62400 Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
62402 * lib/backupfile.c: Guard inclusion of stdlib.h with
62403 `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
62404 Declare malloc if needed.
62406 * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
62407 `#ifndef HAVE_DECL..'
62408 now that autoconf always defines the HAVE_DECL_ symbols.
62409 * lib/human.c: Likewise.
62410 * lib/same.c: Likewise.
62411 * lib/strtoumax.c: Likewise.
62413 * lib/backupfile.c: Arrange for cpp to fail if the configure-time
62414 declaration check was not run.
62415 * lib/hash.c: Likewise.
62416 * lib/human.c: Likewise.
62417 * lib/same.c: Likewise.
62418 * lib/strtoumax.c: Likewise.
62420 * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
62421 `.', then first look up the entire `.'-containing string as a login
62424 2000-02-23 Jim Meyering <meyering@lucent.com>
62426 * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
62427 in place of my hack.
62429 2000-02-18 Paul Eggert <eggert@twinsun.com>
62431 * lib/getdate.y: Handle two-digit years with leading zeros correctly.
62432 (textint): New typedef.
62433 (parser_control): Member year changed from int to textint.
62435 (YYSTYPE): Removed; replaced by %union with int and textint members.
62436 (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
62437 tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
62438 tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
62439 (tSNUMBER, tUNUMBER): Now of type <textintval>.
62440 (date, number, to_year): Use width of number in digits, not its value,
62441 to determine whether it's a 2-digit year, or a 2-digit time.
62442 (yylex): Store number of digits of numeric tokens.
62443 Reported by John Kendall.
62445 (parser_control): Changed from struct parser_control to typedef (for
62446 consistency). All uses changed.
62448 (tID): Removed; not used.
62449 (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
62451 2000-02-14 Paul Eggert <eggert@twinsun.com>
62453 * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
62454 adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
62456 2000-02-12 Jim Meyering <meyering@lucent.com>
62458 * lib/userspec.c (ISDIGIT): Define it.
62459 (isdigit): Remove definition.
62460 (is_number): Use ISDIGIT, not isdigit.
62461 <libintl.h>: Include.
62462 (_ and N_): Define.
62463 (parse_user_spec): Mark translatable strings.
62465 2000-02-10 Jim Meyering <meyering@lucent.com>
62467 With these changes, nanosleep.[ch] are finally enough like the other
62468 lib/* replacement files to compile on a few more losing systems.
62470 * lib/nanosleep.h: Don't include config.h.
62471 Remove prototype from declaration of nanosleep.
62472 (PARAMS): Remove now-unneeded definition.
62473 * lib/nanosleep.c: #undef nanosleep.
62474 (rpl_nanosleep): Rename from nanosleep.
62476 2000-02-10 Jim Meyering <meyering@lucent.com>
62478 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
62479 gnu_nanosleep to rpl_nanosleep.
62481 2000-02-09 Jim Meyering <meyering@lucent.com>
62483 * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
62484 struct spwd, rather than in struct passwd. Reported by Gaël Quéri.
62486 2000-02-08 Akim Demaille <akim@epita.fr>
62488 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
62489 `[' and `]' and remove uses of `changequote'.
62490 (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
62491 (AC_SYS_LARGEFILE): Likewise.
62492 * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
62493 * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
62495 * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
62496 * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
62497 * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
62498 * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
62500 2000-02-05 Jim Meyering <meyering@lucent.com>
62502 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
62503 Remove explicit use of AC_HEADER_TIME. It is required by
62504 jm_CHECK_TYPE_STRUCT_TIMESPEC. Using AC_HEADER_TIME and
62505 `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
62506 in autoconf whereby the expansion of the latter ended up preceding
62507 the expansion of its prerequisite, AC_HEADER_TIME.
62508 Reported by Volker Borchert.
62510 2000-02-03 Jim Meyering <meyering@lucent.com>
62512 * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
62514 2000-02-03 Jim Meyering <meyering@lucent.com>
62516 * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
62517 rather than with `#if HAVE_UTMPNAME'.
62519 2000-02-02 Jim Meyering <meyering@lucent.com>
62521 * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
62522 definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
62523 Reported by Eli Zaretskii.
62525 2000-02-01 Jim Meyering <meyering@lucent.com>
62527 * lib/readutmp.h (UT_USER): Add parens. From Andreas Schwab.
62529 2000-01-31 Jim Meyering <meyering@lucent.com>
62531 * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
62532 functions. Add the time.h and sys/time.h headers along with the
62533 AC_REQUIRE'ment of AC_HEADER_TIME.
62535 2000-01-31 Jim Meyering <meyering@lucent.com>
62537 * lib/nanosleep.h (nanosleep): Guard declaration with
62538 `#if ! HAVE_DECL_NANOSLEEP'.
62539 Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
62540 the declaration in that vendor's sys/timers.h.
62541 Reported by Christian Krackowizer.
62543 * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
62544 inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
62545 (ISPRINT): Likewise.
62546 Reported by Tom Tromey.
62548 2000-01-30 Jim Meyering <meyering@lucent.com>
62550 * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
62552 * m4/prereq.m4 (utmp_includes): Define.
62553 Check for ut_user and ut_name members in both struct utmpx
62556 2000-01-30 Jim Meyering <meyering@lucent.com>
62558 * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
62559 hard-coding uses of ->ut_name. The latter doesn't work with new Linux
62560 header files where only utmpx.ut_user is declared.
62562 * lib/readutmp.h (UT_USER): Define.
62564 2000-01-29 Jim Meyering <meyering@lucent.com>
62566 * m4/lib-check.m4: New file containing library-related checks from
62567 fileutils and sh-utils (textutils had none).
62569 2000-01-28 Jim Meyering <meyering@lucent.com>
62571 * m4/perl.m4: Change format of warning message to look more like that
62572 from the missing script. Suggestion from François Pinard.
62574 2000-01-25 Jim Meyering <meyering@lucent.com>
62576 * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
62577 well as time.h in the compile check.
62578 * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
62579 Fix typo in cross-compiling case: s/yes/no/.
62581 2000-01-23 Jim Meyering <meyering@lucent.com>
62583 * m4/jm-macros.m4: Move df-related tests here from
62584 fileutils/configure.in
62586 * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
62587 (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
62589 * m4/fsusage.m4: New file. Extracted from fileutils/configure.in.
62590 s/space/ac_fsusage_space/.
62591 (jm_FILE_SYSTEM_USAGE): Take two parameters.
62593 * m4/ftruncate.m4: New file (derived from part of
62594 fileutils/configure.in).
62595 * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
62596 (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
62598 * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
62599 AC_SUBST these here, rather than just in sh-util/configure.in, so
62600 that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
62602 (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
62603 (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
62604 (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
62605 (AC_SUBST(POW_LIBM)): Likewise.
62606 (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
62608 2000-01-23 Jim Meyering <meyering@lucent.com>
62610 * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
62613 2000-01-22 Jim Meyering <meyering@lucent.com>
62615 * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
62617 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
62619 * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
62621 (AC_CHECK_HEADERS): Likewise for sh-utils.
62622 (AC_CHECK_HEADERS): Likewise for textutils.
62623 Merge the three lists of headers.
62625 * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro. Parts moved here
62626 from fileutils' configure.in.
62628 * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
62629 code. Moved tests into their own function (_jm_DECL_HEADERS) in
62632 * m4/check-decl.m4: Use #if rather than #ifdef.
62633 Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
62634 (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
62635 (_jm_DECL_HEADERS): Define new function.
62636 (jm_CHECK_DECLARATIONS): Require it.
62638 2000-01-22 Jim Meyering <meyering@lucent.com>
62640 * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
62641 [! HAVE_DECL_STRTOULL]: Declare strtoull.
62642 Required for some AIX systems. Reported by Christian Krackowizer.
62643 [TESTING] (main): New function.
62645 1997-10-17 Eli Zaretskii <eliz@is.elta.co.il>
62646 * lib/dirname.c (dir_name): Support for DOS-style file names with drive
62649 * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
62652 * lib/strverscmp.c (ISDIGIT): Define.
62653 (strverscmp): Use ISDIGIT, not isdigit.
62655 2000-01-19 Jim Meyering <meyering@lucent.com>
62657 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
62658 Use AC_HEADER_TIME. Volker Borchert reported that OpenBSD-2.3/sparc
62659 defines `struct timespec' in <sys/time.h>
62661 * m4/c-bs-a.m4: Remove uses of changequote altogether.
62662 Thanks to Akim for explaining.
62664 2000-01-17 Paul Eggert <eggert@twinsun.com>
62666 * lib/nanosleep.c (nanosleep):
62667 Don't use SA_INTERRUPT to decide whether to call sigaction, as
62668 POSIX.1 doesn't require SA_INTERRUPT and some systems
62669 (e.g. Solaris 7) don't define it. Use SA_NOCLDSTOP instead;
62670 it's been part of POSIX.1 since day 1 (in 1988).
62672 2000-01-17 Jim Meyering <meyering@lucent.com>
62674 * lib/interlock: Remove unused file. Reported by François Pinard.
62676 2000-01-16 Paul Eggert <eggert@twinsun.com>
62678 * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
62679 alert, backslash, formfeed, and vertical tab unnecessarily in
62680 shell quoting style.
62682 2000-01-16 Jim Meyering <meyering@lucent.com>
62684 * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
62685 AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
62686 jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
62687 AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
62689 2000-01-16 Jim Meyering <meyering@lucent.com>
62691 * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
62692 because the latter didn't work.
62694 2000-01-15 Jim Meyering <meyering@lucent.com>
62696 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
62697 (AC_REPLACE_FUNCS): Add memcpy and memset.
62698 Add these, too: stime strcspn stpcpy strstr strtol strtoul.
62700 Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
62702 2000-01-12 Jim Meyering <meyering@lucent.com>
62704 * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
62705 (jm_PREREQ): Use it.
62706 (jm_PREREQ_READUTMP): New macro.
62707 (jm_PREREQ): Use it.
62709 2000-01-11 Paul Eggert <eggert@twinsun.com>
62711 Quote multibyte characters correctly.
62712 * m4/c-bs-a.m4: New file.
62713 * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
62714 (jm_PREREQ): Use it.
62716 2000-01-11 Paul Eggert <eggert@twinsun.com>
62718 * m4/uintmax_t.m4: Port to autoconf 2.13.
62720 2000-01-08 Jim Meyering <meyering@ascend.com>
62722 * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
62723 * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
62725 2000-01-04 Jim Meyering <meyering@ascend.com>
62727 * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
62728 jm_STRUCT_DIRENT_D_TYPE.
62729 * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
62730 jm_STRUCT_DIRENT_D_INO.
62731 * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
62733 * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
62735 * m4/utime.m4: Likewise.
62737 * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
62738 * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
62740 2000-01-03 Paul Eggert <eggert@twinsun.com>
62742 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
62743 (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
62745 2000-01-02 Jim Meyering <meyering@ascend.com>
62747 * m4/search-libs.m4: Escape `$' in $3 of dnl comment. I no longer
62748 remember if this is necessary.
62750 1999-12-26 Jim Meyering <meyering@ascend.com>
62752 * m4/jm-macros.m4: Use it here.
62753 * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
62755 1999-12-23 Jim Meyering <meyering@ascend.com>
62757 * m4/jm-macros.m4: Check for clock_gettime (moved from
62758 fileutils/configure.in)
62759 Check for gettimeofday.
62761 1999-12-20 Jim Meyering <meyering@ascend.com>
62763 * m4/strftime.m4: Remove kludge, now that I'm using the fixed
62764 autoconf-2.14a-1999-12-20.
62766 1999-12-19 Jim Meyering <meyering@ascend.com>
62768 * m4/lstat-slash.m4: New file.
62769 * m4/jm-macros.m4: Use the new macro:
62770 jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
62772 1999-12-07 Jim Meyering <meyering@ascend.com>
62774 * m4/perl.m4: Require that File::Compare be available, too.
62775 Too many systems seem to lack it.
62777 * m4/strftime.m4: Add checks for most of the cpp macros tested in
62778 GNU's strftime.c. Prompted by a patch from Paul Eggert.
62780 1999-11-18 Paul Eggert <eggert@twinsun.com>
62782 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
62783 problem with the QNX 4.25 shell, which doesn't propagate exit
62784 status of failed commands inside shell assignments.
62786 1999-11-17 Jim Meyering <meyering@ascend.com>
62788 * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
62790 1999-11-07 Jim Meyering <meyering@ascend.com>
62792 * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
62794 1999-11-06 Jim Meyering <meyering@ascend.com>
62796 * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
62797 * m4/jm-macros.m4 (jm_MACROS): Use it here.
62799 1999-11-05 Jim Meyering <meyering@ascend.com>
62801 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
62802 configure.in of textutils, fileutils, and sh-utils into this one
62803 (shared between those packages) file.
62804 Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
62805 AC_STRUCT_ST_BLKSIZE.
62807 1999-11-03 Jim Meyering <meyering@ascend.com>
62809 * m4/ssize_t.m4: Remove file. No longer needed since the new version
62810 of AC_CHECK_TYPE checks includes unistd.h.
62811 * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
62812 Suggestion from Akim Demaille.
62814 1999-10-30 Jim Meyering <meyering@ascend.com>
62816 * m4/uintmax_t.m4: Require 2.14a. Remove backslash before backtick in
62818 * m4/ls-mntd-fs.m4: Likewise.
62819 * m4/jm-macros.m4: Likewise. Also, use AC_TYPE_SSIZE_T instead
62820 * m4/jm-winsz1.m4: Likewise.
62822 * m4/const.m4: Remove file, since the fix made it into the experimental
62823 version of autoconf.
62824 * m4/mktime.m4: Likewise.
62826 * m4/check-type.m4: Remove file, now that the latest version of
62827 AC_CHECK_TYPE takes a third arg to specify additional #includes.
62829 * m4/ssize_t.m4: New file, requires experimental version of autoconf.
62830 * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
62833 1999-10-04 Jim Meyering <meyering@ascend.com>
62835 * m4/jm-macros.m4: Don't require autoconf-2.14.1.
62837 1999-09-22 Paul Eggert <eggert@twinsun.com>
62839 * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
62840 2.95.1 bug with HP-UX 10.20.
62842 1999-09-17 Jim Meyering <meyering@ascend.com>
62844 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
62845 Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
62846 due to missing strdup (against sh-utils-2.0).
62848 1999-08-29 Jim Meyering <meyering@ascend.com>
62850 * m4/jm-macros.m4: Require jm_BISON.
62851 * m4/bison.m4: New file.
62853 1999-08-17 Paul Eggert <eggert@twinsun.com>
62855 * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
62856 in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
62858 1999-08-05 Jim Meyering <meyering@ascend.com>
62860 * m4/getline.m4: Rename test file from conftestdata to conftest.data
62861 to avoid conflicts with `conftest' on 8+3 filesystems.
62862 Suggestion from Eli Zaretskii.
62864 1999-08-04 Jim Meyering <meyering@ascend.com>
62866 * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
62867 fileutils and sh-utils (textutils's getline test was inadequate).
62868 (AM_FUNC_GETLINE): Run this test.
62869 (AC_CHECK_FUNCS): Check for getdelim.
62870 Reported by Bob Proulx.
62872 1999-08-02 Jim Meyering <meyering@ascend.com>
62874 * m4/jm-macros.m4: Add a comment.
62876 1999-08-01 Paul Eggert <eggert@twinsun.com>
62878 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
62879 <inttypes.h> defines strtoumax as a macro (and not as a
62882 1999-08-01 Paul Eggert <eggert@twinsun.com>
62884 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
62885 that we can shift, multiply and divide unsigned long long
62886 values; Ultrix cc can't do it.
62888 1999-08-01 Paul Eggert <eggert@twinsun.com>
62890 * m4/mktime.m4: New file, which is a preview of what should appear
62891 in the next public autoconf release.
62893 1999-08-01 Paul Eggert <eggert@twinsun.com>
62895 * m4/lfs.m4: Remove this file.
62896 * m4/largefile.m4: New file. It contains the old contents of
62897 lfs.m4, except that all names with prefix AC_LFS have been
62898 changed to use the prefix AC_SYS_LARGEFILE instead, to be
62899 compatible with future autoconf versions. Also, some minor m4
62900 quoting problems have been fixed.
62902 1999-08-01 Paul Eggert <eggert@twinsun.com>
62904 * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
62905 Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
62906 (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
62907 and simplify the shell code.
62909 1999-08-01 Jim Meyering <meyering@ascend.com>
62911 * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
62914 1999-07-20 Jim Meyering <meyering@ascend.com>
62916 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
62918 1999-07-15 Jim Meyering <meyering@ascend.com>
62920 * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
62922 1999-05-22 Jim Meyering <meyering@ascend.com>
62924 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
62926 1999-05-20 Jim Meyering <meyering@ascend.com>
62928 * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
62929 Add a colon after each `then' in case $4 is empty.
62931 1999-05-16 Jim Meyering <meyering@ascend.com>
62933 * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
62935 1999-05-10 Jim Meyering <meyering@ascend.com>
62937 * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
62939 * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
62942 1999-05-10 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
62944 * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
62946 1999-05-04 Paul Eggert <eggert@twinsun.com>
62948 * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
62949 not CPPFLAGS, so that linking works correctly in IRIX.
62951 1999-04-30 Paul Eggert <eggert@twinsun.com>
62953 * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
62955 1999-04-20 Paul Eggert <eggert@twinsun.com>
62957 * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
62958 long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
62959 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
62960 jm_AC_TYPE_UNSIGNED_LONG_LONG.
62961 * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
62963 * m4/lfs.m4: Port to AIX and HP-UX. Support cross-compilation.
62965 1999-04-20 Jim Meyering <meyering@ascend.com>
62967 * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
62968 AC_REPLACE xstroull if necessary. From Paul Eggert.
62969 (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
62971 1999-04-18 Jim Meyering <meyering@ascend.com>
62973 * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
62974 * m4/jm-macros.m4: Use it.
62976 1999-04-06 Jim Meyering <meyering@ascend.com>
62978 * m4/strftime.m4: Remove test for %f.
62980 1999-03-29 Jim Meyering <meyering@ascend.com>
62982 * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
62983 superset of the AC_TYPE_* checks in the textutils, fileutils,
62984 and sh-utils, plus AC_TYPE_PID_T. Paul Eggert suggested adding
62987 1999-03-28 Jim Meyering <meyering@ascend.com>
62989 * m4/jm-macros.m4: Define GNU_PACKAGE here.
62990 Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
62991 replaced e.g., in the *.sh files of the sh-utils.
62993 1999-03-20 Jim Meyering <meyering@ascend.com>
62995 * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
62996 * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
62997 Don't depend on AM_GLIBC. Suggestions from Alain Magloire.
62999 1999-03-19 Jim Meyering <meyering@ascend.com>
63001 * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
63003 1999-03-12 Jim Meyering <meyering@ascend.com>
63005 * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
63007 1999-03-07 Jim Meyering <meyering@ascend.com>
63009 * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
63012 1999-02-17 Jim Meyering <meyering@ascend.com>
63014 * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
63015 brackets in macro definition. From Eli Zaretskii and Alain Magloire.
63017 1999-02-07 Jim Meyering <meyering@ascend.com>
63019 * m4/group-member.m4: New file -- extracted from sh-utils'
63022 1999-02-05 Eli Zaretskii <eliz@is.elta.co.il>
63023 * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
63025 1999-02-06 Jim Meyering <meyering@ascend.com>
63027 * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
63028 * m4/fnmatch.m4: Likewise.
63029 * m4/getgroups.m4: Likewise.
63030 * m4/lstat.m4: Likewise.
63031 * m4/malloc.m4: Likewise.
63032 * m4/putenv.m4: Likewise.
63033 * m4/realloc.m4: Likewise.
63034 * m4/regex.m4: Likewise.
63035 * m4/stat.m4: Likewise.
63036 * m4/strftime.m4: Likewise.
63037 Suggestion from Alain Magloire.
63039 * m4/chown.m4: Use `.$ac_objext', not `.o'.
63040 * m4/fnmatch.m4: Likewise.
63041 * m4/getgroups.m4: Likewise.
63042 * m4/getline.m4: Likewise.
63043 * m4/lstat.m4: Likewise.
63044 * m4/malloc.m4: Likewise.
63045 * m4/memcmp.m4: Likewise.
63046 * m4/putenv.m4: Likewise.
63047 * m4/realloc.m4: Likewise.
63048 * m4/regex.m4: Likewise.
63049 * m4/stat.m4: Likewise.
63050 * m4/strftime.m4: Likewise.
63051 Suggestion from Alain Magloire.
63053 * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
63056 * m4/regex.m4: Add a run-time Test for proper operation of
63057 re_compile_pattern.
63059 1999-01-31 Jim Meyering <meyering@ascend.com>
63061 * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
63063 1999-01-30 Jim Meyering <meyering@ascend.com>
63065 * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
63067 * m4/jm-mktime.m4: Make this a wrapper around the official
63068 AM_FUNC_MKTIME rather than my private copy, now that the official one
63070 * m4/mktime.m4: Remove file.
63072 * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
63073 * m4/uptime.m4: Likewise.
63074 * m4/uintmax_t.m4: Likewise.
63076 1999-01-28 Jim Meyering <meyering@ascend.com>
63078 * m4/jm-macros.m4: Use jm_AFS.
63079 * m4/afs.m4: New file (from fileutils' configure.in).
63081 * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
63082 * m4/chown.m4: Likewise.
63083 * m4/d-ino.m4: Likewise.
63084 * m4/d-type.m4: Likewise.
63085 * m4/fnmatch.m4: Likewise.
63086 * m4/getgroups.m4: Likewise.
63087 * m4/gettext.m4: Likewise.
63088 * m4/jm-mktime.m4: Likewise.
63089 * m4/jm-winsz2.m4: Likewise.
63090 * m4/lcmessage.m4: Likewise.
63091 * m4/ls-mntd-fs.m4: Likewise.
63092 * m4/malloc.m4: Likewise.
63093 * m4/memcmp.m4: Likewise.
63094 * m4/putenv.m4: Likewise.
63095 * m4/realloc.m4: Likewise.
63096 * m4/st_mtim.m4: Likewise.
63097 * m4/strftime.m4: Likewise.
63099 1999-01-16 Jim Meyering <meyering@ascend.com>
63101 * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
63102 (ARGMATCH_DIE_DECL): Define.
63104 1999-01-12 Jim Meyering <meyering@ascend.com>
63106 * m4/Makefile.am.in: Rewrite to avoid using fmt.
63107 Reported by Lars Hecking.
63109 1999-01-10 Jim Meyering <meyering@ascend.com>
63111 * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
63113 * m4/inttypes_h.m4: Likewise.
63114 * m4/lstat.m4: Likewise.
63115 * m4/malloc.m4: Likewise.
63116 * m4/readdir.m4: Likewise.
63117 * m4/realloc.m4: Likewise.
63118 * m4/st_dm_mode.m4: Likewise.
63119 * m4/stat.m4: Likewise.
63120 * m4/utimbuf.m4: Likewise.
63121 * m4/utimes.m4: Likewise.
63123 * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
63124 AC_CHECK_FUNCS hack. Now, it's still a hack, but at least the
63125 comments in config.h.in are meaningful.
63127 * m4/jm-macros.m4: Require autoconf-2.13 here.
63129 * m4/regex.m4: By default, don't use the included regex.c on systems
63130 with glibc 2. Suggestion from Uli Drepper.
63132 1999-01-02 Jim Meyering <meyering@ascend.com>
63134 * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
63136 1998-12-18 Jim Meyering <meyering@ascend.com>
63138 * m4/Makefile.am.in (Makefile.am): Simplify rule.
63139 Based on a suggestion from Lars Hecking.
63141 1998-11-16 Paul Eggert <eggert@twinsun.com>
63143 * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
63145 1998-11-16 Jim Meyering <meyering@ascend.com>
63147 * m4/lfs.m4: Double-quote the `uname...` expression.
63149 1998-11-14 Jim Meyering <meyering@ascend.com>
63151 * m4/lstat.m4: Correct comment. POSIX does not permit it to succeed.
63152 * m4/stat.m4: Likewise.
63154 1998-11-03 Jim Meyering <meyering@ascend.com>
63156 * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
63157 * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
63159 1998-10-18 Jim Meyering <meyering@ascend.com>
63161 * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
63163 1998-10-17 Jim Meyering <meyering@ascend.com>
63165 * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
63166 include, though we still hard-code the `require'-like AC_CHECK_HEADERS
63167 calls for those previously hard-coded headers. Instead, take a new
63169 (jm_CHECK_DECLARATIONS): Reflect interface change.
63170 * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
63171 (jm_CHECK_DECL_LOCALTIME_R): New macro.
63173 * m4/mktime.m4: Test for spring-forward gap before long-running test.
63175 1998-10-14 Jim Meyering <meyering@ascend.com>
63177 * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
63178 instead of "TZ=America/Vancouver". From Paul Eggert.
63180 1998-10-11 Jim Meyering <meyering@ascend.com>
63182 * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
63183 This adds a test for a recently added compatibility fix for mktime.c.
63184 * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
63186 1998-09-27 Jim Meyering <meyering@ascend.com>
63188 * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
63190 * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro. Extracted from
63191 ../configure.in, including a change from Gordon Matzigkeit to allow
63192 cross-compiling for the Hurd.
63194 * m4/glibc.m4: New file/macro to test for the GNU C Library
63195 versions 1 and 2. From Gordon Matzigkeit.
63198 1998-09-21 Jim Meyering <meyering@ascend.com>
63200 * m4/chown.m4: Declare locals: before, after. From Andries Brouwer.
63202 1998-08-18 Paul Eggert <eggert@twinsun.com>
63204 Port nanosecond-resolution times to UnixWare 2.1.2 and
63205 pedantic Solaris 2.6.
63207 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
63209 * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
63210 Generate name of ns member, instead of just 1 or undef.
63211 Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
63213 1998-08-15 Jim Meyering <meyering@ascend.com>
63215 * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
63216 * m4/check-type.m4: New file. Replacement for AC_CHECK_TYPE.
63217 * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
63218 instead of jm_TYPE_SSIZE_T.
63220 1998-08-12 Jim Meyering <meyering@ascend.com>
63222 * m4/st_dm_mode.m4: New file. From Johan Danielsson.
63224 1998-08-02 Jim Meyering <meyering@ascend.com>
63226 * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
63227 in acconfig.h manually.
63229 1998-07-31 Paul Eggert <eggert@twinsun.com>
63231 * m4/st_mtim.m4: New file.
63233 1998-07-28 Jim Meyering <meyering@ascend.com>
63235 * m4/utimes.m4: Undef stat.
63237 1998-07-25 Jim Meyering <meyering@ascend.com>
63239 * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
63240 * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
63242 1998-07-09 Manfred Hollstein <manfred@s-direktnet.de>
63244 * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
63245 uid and gid actually remain unchanged.
63247 1998-07-07 Jim Meyering <meyering@ascend.com>
63249 * m4/jm-glibc-io.m4: Remove fclose_unlocked.
63251 1998-07-04 Jim Meyering <meyering@ascend.com>
63253 * m4/regex.m4: Use syscmd, ifelse, and sysval. Mainly as an exercise
63254 to prove that this macro can be used in packages without regex.c.
63256 1998-07-04 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
63258 * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
63261 1998-07-03 Jim Meyering <meyering@ascend.com>
63263 * m4/gettext.m4: Add -lintl if it's found to be necessary.
63265 * m4/gettext.m4: New file -- from gettext-0.10.35.
63266 * m4/lcmessage.m4: Likewise.
63267 * m4/progtest.m4: Likewise.
63269 * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
63270 * m4/jm-macros.m4: Require the new macro.
63272 1998-06-29 Jim Meyering <meyering@ascend.com>
63274 * m4/fstypename.m4: Include sys/param.h. NetBSD 1.3.1 requires this
63275 for the definition of NGROUPS (used in a system header included
63278 1998-06-28 Jim Meyering <meyering@ascend.com>
63280 * m4/ls-mntd-fs.m4: New file.
63281 * m4/fstypename.m4: New file.
63283 * m4/jm-macros.m4: Require the new macro.
63284 * m4/jm-glibc-io.m4: New file.
63286 1998-05-19 Jim Meyering <meyering@ascend.com>
63288 * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
63289 * m4/lchown.m4: New file.
63291 * m4/Makefile.am.in: New file.
63292 * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
63294 1998-05-14 Jim Meyering <meyering@ascend.com>
63296 * m4/Makefile.am (EXTRA_DIST): Add them.
63297 * m4/jm-macros.m4: New file.
63298 * m4/utimbuf.m4: New file.
63300 1998-05-12 Jim Meyering <meyering@ascend.com>
63302 * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
63304 1998-05-11 Jim Meyering <meyering@ascend.com>
63306 * m4/isc-posix.m4: New file.
63308 1998-05-10 Jim Meyering <meyering@ascend.com>
63310 * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
63312 1998-05-09 Jim Meyering <meyering@ascend.com>
63314 * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
63315 (EXTRA_DIST): Remove mktime.m4, now that the new version is included
63318 * m4/ssize_t.m4: New file.
63319 * m4/mktime.m4: Remove file -- the new automake has this now.
63321 1998-04-26 Jim Meyering <meyering@ascend.com>
63323 * m4/assert.m4: New file.
63324 * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
63326 1998-04-05 Jim Meyering <meyering@ascend.com>
63328 * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
63329 (jm_PREREQ): Use it here.
63331 1998-03-23 Jim Meyering <meyering@eng.ascend.com>
63333 * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
63336 1998-03-15 Jim Meyering <meyering@eng.ascend.com>
63338 * m4/prereq.m4: New file.
63339 * m4/error.m4: New file.
63340 * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
63342 1998-02-07 Jim Meyering <meyering@eng.ascend.com>
63344 * m4/getline.m4: Don't set am_cv_func_working_getline before the
63345 cache-check for the same variable -- that defeated the purpose of
63346 the test; the test program was never run. This was a problem only
63347 on systems with losing getline functions -- HP-UX 10.20 is one.
63348 Reported by Bjorn Helgaas.
63350 1998-02-06 Jim Meyering <meyering@eng.ascend.com>
63352 * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
63354 1998-01-10 Jim Meyering <meyering@na-net.ornl.gov>
63356 * m4/Makefile.am (EXTRA_DIST): Add const.m4.
63358 * m4/const.m4: New file. Use an initializer in this declaration
63359 typedef int charset[2]; const charset x;
63360 Reported by Bob Glickstein.
63362 1997-12-21 Jim Meyering <meyering@na-net.ornl.gov>
63364 * m4/chown.m4: Fix reversed types on -1 args to chown.
63367 1997-12-14 Jim Meyering <meyering@na-net.ornl.gov>
63369 * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
63370 Add lseek and memchr.
63372 * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
63373 T.E.Dickey <dickey@clark.net> said that some older preprocessors
63374 have a 20-character limit on names.
63376 1997-11-30 Jim Meyering <meyering@na-net.ornl.gov>
63378 * m4/inttypes_h.m4: New file.
63379 * m4/uintmax_t.m4: New file.
63380 * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
63389 Copyright (C) 1997-2010 Free Software Foundation, Inc.
63391 Copying and distribution of this file, with or without
63392 modification, are permitted provided the copyright notice
63393 and this notice are preserved.