ChangeLog 2.21 MB
Newer Older
Bruno Haible's avatar
Bruno Haible committed
1 2
2010-03-07  Bruno Haible  <bruno@clisp.org>

3 4 5 6 7 8 9 10
	search: Avoid #define replacements in C++ mode.
	* lib/search.in.h: Include c++defs.h.
	(_gl_search_compar_fn, _gl_search_action_fn): New types.
	(tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
	symbol.
	* modules/search (Depends-on): Add c++defs.
	(Makefile.am): Update search.h rule.

11 12 13 14 15 16 17 18
	math: Avoid #define replacements in C++ mode.
	* lib/math.in.h: Include c++defs.h.
	(frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
	frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
	trunc, truncl): In C++, define a namespaced alias symbol.
	* modules/math (Depends-on): Add c++defs.
	(Makefile.am): Update math.h rule.

19 20 21 22 23 24 25 26
	locale: Avoid #define replacements in C++ mode.
	* lib/locale.in.h: Include c++defs.h.
	(duplocale): In C++, define a namespaced alias symbol.
	* m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
	* m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
	* modules/locale (Depends-on): Add c++defs.
	(Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.

27 28 29 30 31 32
	langinfo: Avoid #define replacements in C++ mode.
	* lib/langinfo.in.h: Include c++defs.h.
	(nl_langinfo): In C++, define a namespaced alias symbol.
	* modules/langinfo (Depends-on): Add c++defs.
	(Makefile.am): Update langinfo.h rule.

33 34 35 36 37 38 39 40 41
	iconv-h: Avoid #define replacements in C++ mode.
	* lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
	(iconv_open, iconv, iconv_close): In C++, define a namespaced alias
	symbol.
	* m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
	whenever iconv is present.
	* modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
	(Makefile.am): Update iconv.h rule.

42 43 44 45 46 47 48 49
	glob: Avoid #define replacements in C++ mode.
	* lib/glob.in.h: Include c++defs.h, warn-on-use.h.
	(_gl_glob_errfunc_fn): New type.
	(glob, globfree, glob_pattern_p): In C++, define a namespaced alias
	symbol.
	* modules/glob (Depends-on): Add c++defs, warn-on-use.
	(Makefile.am): Update glob.h rule.

50 51 52 53 54 55
	fcntl-h: Avoid #define replacements in C++ mode.
	* lib/fcntl.in.h: Include c++defs.h.
	(fcntl, open, openat): In C++, define a namespaced alias symbol.
	* modules/fcntl-h (Depends-on): Add c++defs.
	(Makefile.am): Update fcntl.h rule.

56 57 58 59 60 61 62 63
	dirent: Avoid #define replacements in C++ mode.
	* lib/dirent.in.h: Include c++defs.h.
	(closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
	namespaced alias symbol.
	(dirfd): Update declaration.
	* modules/dirent (Depends-on): Add c++defs.
	(Makefile.am): Update dirent.h rule.

64 65 66 67 68 69
	ctype: Make it usable in C++ code.
	* lib/ctype.in.h: Include c++defs.h.
	(isblank): Declare as extern "C".
	* modules/ctype (Depends-on): Add c++defs.
	(Makefile.am): Update ctype.h rule.

Bruno Haible's avatar
Bruno Haible committed
70 71 72 73 74
	New module 'c++defs'.
	* modules/c++defs: New file.
	* build-aux/c++defs.h: New file.
	Reported by John W. Eaton <jwe@gnu.org>.

75 76 77 78 79 80 81 82 83 84 85 86 87
2010-03-07  Bruno Haible  <bruno@clisp.org>

	logb: Provide missing declaration for Cygwin.
	* lib/math.in.h (logb): New declaration.
	* m4/logb.m4: New file.
	* modules/logb (Files): Add m4/logb.m4.
	(Depends-on): Add math.
	(configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
	* m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
	(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
	* modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
	* doc/posix-functions/logb.texi: Mention the Cygwin bug.

Bruno Haible's avatar
Bruno Haible committed
88 89 90 91 92
2010-03-07  Bruno Haible  <bruno@clisp.org>

	Fix test-cond link error.
	* tests/test-cond.c: Include <stdio.h>.

93 94
2010-03-07  Bruno Haible  <bruno@clisp.org>

95 96 97
	Fix test-dirent-safer link error.
	* modules/dirent-safer-tests (Makefile.am): Define
	test_dirent_safer_LDADD.
98

99 100 101 102 103
2010-03-07  Bruno Haible  <bruno@clisp.org>

	* gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
	among default module list.

104 105 106 107 108 109 110 111 112 113
2010-03-07  Bruno Haible  <bruno@clisp.org>

	Fix link error on platforms with GNU libiconv.
	* modules/unistr/u8-strcoll-tests (Makefile): Define
	test_u8_strcoll_LDADD.
	* modules/unistr/u16-strcoll-tests (Makefile): Define
	test_u16_strcoll_LDADD.
	* modules/unistr/u32-strcoll-tests (Makefile): Define
	test_u32_strcoll_LDADD.

114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129
2010-03-07  Bruno Haible  <bruno@clisp.org>

	Use POSIX declarations for socket functions.
	* lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
	rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
	rpl_sendto): Change declaration to match POSIX.
	* lib/connect.c (rpl_connect): Likewise.
	* lib/accept.c (rpl_accept): Likewise.
	* lib/bind.c (rpl_bind): Likewise.
	* lib/getpeername.c (rpl_getpeername): Likewise.
	* lib/getsockname.c (rpl_getsockname): Likewise.
	* lib/recv.c (rpl_recv): Likewise.
	* lib/send.c (rpl_send): Likewise.
	* lib/recvfrom.c (rpl_recvfrom): Likewise.
	* lib/sendto.c (rpl_sendto): Likewise.

130 131 132 133 134 135 136 137 138 139 140
2010-03-06  Bruno Haible  <bruno@clisp.org>

	Clarify access, euidaccess, faccessat.
	* doc/posix-functions/faccessat.texi: Mention security problem under
	"Other problems", not "Portability problems".
	* doc/posix-functions/access.texi: Likewise. Mention a related security
	problem.
	* doc/glibc-functions/euidaccess.texi: Mention security problems.
	* lib/euidaccess.c: Add comments about platforms.
	* lib/unistd.in.h (access, euidaccess): Add warnings.

141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170
2010-03-07  Bruno Haible  <bruno@clisp.org>

	Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
	* lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
	(POSIX_SPAWN_SETSCHEDULER): Likewise.
	(POSIX_SPAWN_USEVFORK): Define in a way that works when
	POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
	(posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
	declare when POSIX_SPAWN_SETSCHEDULER is zero.
	(posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
	declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
	* m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
	POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
	* modules/posix_spawnattr_getschedparam (configure.ac): Enable the
	replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
	* modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
	* modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
	replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
	* modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
	* lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
	nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
	* lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
	Likewise.
	* lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
	nothing if POSIX_SPAWN_SETSCHEDULER is zero.
	* lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
	Likewise.
	* tests/test-spawn.c (main): Make it work when
	POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.

171 172 173 174 175 176
2010-03-07  Bruno Haible  <bruno@clisp.org>

	Fix incorrect Makefile.am generation in German locale.
	* gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
	Execute sed command with character range in C locale.

Bruno Haible's avatar
Bruno Haible committed
177 178
2010-03-06  Bruno Haible  <bruno@clisp.org>

179 180 181 182
	Tests for module 'iconv-h'.
	* modules/iconv-h-tests: New file.
	* tests/test-iconv-h.c: New file.

Bruno Haible's avatar
Bruno Haible committed
183 184 185 186 187 188 189
	New module 'iconv-h'.
	* modules/iconv-h: New file.
	* modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
	(Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
	(configure.ac): Remove gl_ICONV_H.
	(Makefile.am): Remove rule for iconv.h.

190 191
2010-03-06  Bruno Haible  <bruno@clisp.org>

192 193 194 195
	More consistent naming of *.m4 files.
	* m4/wctype_h.m4: Renamed from m4/wctype.m4.
	* modules/wctype (Files): Update.

196 197 198 199
	More consistent naming of *.m4 files.
	* m4/wchar_h.m4: Renamed from m4/wchar.m4.
	* modules/wchar (Files): Update.

200 201 202 203 204
2010-03-06  Jim Meyering  <meyering@redhat.com>

	euidaccess: relax license to LGPLv2+
	* modules/euidaccess (License): Relax to LGPLv2+.

205 206 207 208 209 210
2010-03-06  Bruno Haible  <bruno@clisp.org>

	Prefer lib_SOURCES over unconditional AC_LIBOBJ.
	* modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
	(Makefile.am): Augment lib_SOURCES instead.

211 212 213 214 215 216 217 218 219 220 221 222 223 224
2010-03-04  Jim Meyering  <meyering@redhat.com>

	utime: remove obsolete module
	This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
	unnecessary for years, and has been marked as obsolete for 10 months.
	* modules/utime: Remove file.
	* lib/utime.c: Remove file.
	* m4/utime.m4: Remove file.
	* m4/utimes-null.m4: Remove file.
	* doc/posix-functions/utime.texi (utime): Remove reference to
	the module.  Move the sole "fixed by gnulib" item into the
	"problems not fixed by Gnulib" list.
	* MODULES.html.sh (func_all_modules): Remove reference to "utime".

225 226 227 228 229 230 231 232
2010-03-05  Simon Josefsson  <simon@josefsson.org>

	* modules/exit (License): Relax license to LGPLv2+.
	(Status): Mark as obsolete.
	* NEWS: Mention deprecated 'exit' module.
	* doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
	of now obsolete 'exit'.

233 234 235 236 237 238 239 240
2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	fts-lgpl: remove unused module
	* modules/fts-lgpl: Remove.
	* MODULES.html.sh (func_all_modules): Adjust.
	* check-module (find_included_lib_files): Adjust.
	* m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.

241 242 243 244 245 246
2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)

	copy-acl: enhance Solaris ACL error handling
	* lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
	* lib/set-mode-acl.c (qset_acl): Likewise.

247 248 249 250 251 252 253 254 255
2010-03-02  Bruno Haible  <bruno@clisp.org>

	spawn: Don't override the system defined values on FreeBSD 8.
	* lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
	POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
	POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
	if HAVE_POSIX_SPAWN is 1.
	Reported by Johan van Selst <johans@stack.nl> via Eric Blake.

Bruno Haible's avatar
Bruno Haible committed
256 257 258 259 260
2010-03-01  Bruno Haible  <bruno@clisp.org>

	* doc/gnulib-tool.texi (Initial import): Clarify the requirements
	regarding Automake.

261 262 263 264 265 266 267
2010-02-25  Bruno Haible  <bruno@clisp.org>

	Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
	* gnulib-tool: Define 'echo' as a function only before the ksh alias
	setting, not afterwards.
	Reported by Ben Walton <bwalton@artsci.utoronto.ca>.

Eric Blake's avatar
Eric Blake committed
268 269
2010-02-24  Eric Blake  <eblake@redhat.com>

270 271 272 273
	bootstrap, git-version-gen: use timestamp
	* build-aux/git-version-gen (scriptversion): Force UTC.
	* build-aux/bootstrap (scriptversion): New variable.

Eric Blake's avatar
Eric Blake committed
274 275 276 277
	bootstrap: allow older git
	* build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
	older than 1.6.4.  Requested by the libvirt project.

278 279
2010-02-23  Eric Blake  <eblake@redhat.com>

280 281 282 283 284
	warn-on-use: work with old autoconf
	* m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
	AS_VAR semantics of autoconf 2.60.
	Reported by Bruno Haible.

285 286 287 288
	bootstrap: improve some comments
	* build-aux/bootstrap: Drop unneeded emacs hint.  Add some
	clarification comments.

289 290 291 292 293
	gettimeofday: provide correct function
	* lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
	when replacement is declared, otherwise provide gettimeofday.
	Reported by Michael Goffioul.

294 295 296 297 298
2010-02-23  Jim Meyering  <meyering@redhat.com>

	lib-ignore: relax license to "unlimited", not LGPLv2+
	* modules/lib-ignore (License): Relax to "unlimited".

299 300 301 302 303
2010-02-23  Jim Meyering  <meyering@redhat.com>

	lib-ignore: relax license to LGPLv2+
	* modules/lib-ignore (License): Relax to LGPLv2+.

304 305
2010-02-22  Eric Blake  <eblake@redhat.com>

306 307 308 309 310
	lseek: avoid bash 3.2 broken pipe bug
	* m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
	warning from bash 3.2.
	Reported by Ben Pfaff, with analysis from Bruno Haible.

311 312 313 314 315
	bootstrap: support non-FSF copyright holder
	* build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
	bootstrap.conf override of COPYRIGHT_HOLDER.
	(MSGID_BUGS_ADDRESS): Allow URL rather than email.

316 317 318
	bootstrap: interoperate with gettext 0.14.1
	* build-aux/bootstrap (slurp): Fix typo when using older gettext.

319 320 321 322 323
	bootstrap: allow for alternate submodule location
	* build-aux/bootstrap (gnulib_path): New variable; use instead of
	hardcoding submodule location.
	(gnulib_mk): Allow direct use of Makefile.am.

324 325 326 327
	bootstrap: use GNULIB_SRCDIR to reduce disk usage
	* build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
	rather than reconfiguring where the submodule points.

328 329 330 331 332 333 334 335
	gettimeofday: restore support for platforms that lack function
	* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
	replacement if function is missing.
	* m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
	* modules/sys_time (Makefile.am): Substitute it.
	* lib/sys_time.in.h (gettimeofday): Check it.
	Reported by Michael Goffioul.

Bruno Haible's avatar
Bruno Haible committed
336 337 338 339
2010-02-21  Bruno Haible  <bruno@clisp.org>

	* lib/stdio.in.h (obstack_printf): Fix typo.

340 341 342 343 344 345
2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>

	vc-list-files: use bzr ls's -R option
	* build-aux/vc-list-files: Invoke bazaar to generate a recursive
	list of versioned files based on 'dir' (usage of -R in 'bzr ls').

346 347 348 349 350 351 352 353 354 355
2010-02-21  Jim Meyering  <meyering@redhat.com>

	init.sh: fix EXEEXT shims to work also for names like test-prog
	* tests/init.sh: Re-exec a better shell, when needed.
	If the current shell lacks support for posix $(...), an init.sh-using
	test will now try to find a shell that supports that.  If EXEEXT is
	nonempty, we also require support for hyphen-in-alias-name and shell
	substitutions like ${var#glob}.  Failure to find such a shell results
	in a skipped test.

356 357 358 359 360 361 362
2010-02-21  Bruno Haible  <bruno@clisp.org>

	Really work around around "broken pipe" error message from bash 3.2.
	* gnulib-tool (func_reset_sigpipe): Remove function.
	(echo): In bash 3.2, define to a function that uses printf.
	Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.

363 364 365 366 367 368
2010-02-20  Bruno Haible  <bruno@clisp.org>

	Restore support for automake 1.9.6 with autoconf 2.61.
	* m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
	Reported by James Youngman <jay@gnu.org>.

369 370 371 372 373 374 375
2010-02-20  Bruno Haible  <bruno@clisp.org>

	Improve *printf warning condition.
	* lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
	also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
	and the function is overridden due to SIGPIPE emulation.

Bruno Haible's avatar
Bruno Haible committed
376 377 378 379
2010-02-20  Bruno Haible  <bruno@clisp.org>

	* lib/stdio.in.h: Tweak comments.

380 381 382 383 384 385 386 387 388 389
2010-02-19  Bruno Haible  <bruno@clisp.org>

	Make it easier to find modules. New gnulib-tool option '--find'.
	* gnulib-tool: New option --find.
	(func_usage): Document it.
	(func_sanitize_modulelist): New function, extracted from
	func_all_modules.
	(func_all_modules): Invoke it.
	* doc/gnulib-tool.texi (Which modules?): New node.

390 391 392 393 394
2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)

	* lib/sys_select.in.h: Provide select replacement even if
	sys/select.h exists on a system, for Interix.

395 396 397 398 399 400
2010-02-18  Jim Meyering  <meyering@redhat.com>

	init.sh: don't use $(...) just yet
	* tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
	to accommodate e.g., Solaris' /bin/sh.

401 402 403 404 405
2010-02-17  Bruno Haible  <bruno@clisp.org>

	* doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
	Reported by Ludovic Courtès <ludo@gnu.org>.

406 407 408 409 410
2010-02-16  Simon Josefsson  <simon@josefsson.org>

	* modules/userspec-tests (test_userspec_LDADD): Add variable, for
	linking with -lintl.

411 412 413 414 415 416
2010-02-17  Simon Josefsson  <simon@josefsson.org>

	* lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
	if not provided by the system's netdb.h.  Reported by
	ludo@gnu.org (Ludovic Courtès).

417 418
2010-02-15  Jim Meyering  <meyering@redhat.com>

419 420 421 422 423 424 425 426
	init.sh: improve portability and efficiency
	* tests/init.sh (find_exe_basenames_): Remove unnecessary use of
	"dummy" in a for loop.
	Use '!', not '^' to select the complement of a character set used
	in a "case" statement.
	Use shell variable manipulation, a la ${...%.exe}, rather than sed.
	Suggestions from Eric Blake.

427 428 429 430 431 432 433 434 435 436 437
	init.sh: automatically accommodate programs with the .exe suffix
	Automatically arrange for an invocation of "prog" to execute the
	program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
	may use the simpler "prog", yet still work when built on a system
	that requires specifying the added suffix.
	Do this by constructing a function named "prog" that invokes
	"prog.exe" for each .exe file in selected directories.
	* tests/init.sh (find_exe_basenames_): New function.
	(create_exe_shim_functions_): New function.
	(path_prepend_): Use it.

438 439 440 441
	maint.mk: mark syntax-check sc_*.m rules as .PHONY
	* top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
	"make -t syntax-check" doesn't create a ton of sc_*.m files.

442 443
2010-02-14  Jim Meyering  <meyering@redhat.com>

444 445 446 447
	maint.mk: prohibit inclusion of "hash-pjw.h" without_use
	* top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
	(sc_prohibit_hash_pjw_without_use): New rule.

448 449 450 451 452 453
	maint.mk: allow the default upload destination dir to be overridden
	* top/maint.mk (upload_dest_dir_): Define with a default that
	preserves the status quo.
	(emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
	Reported by Peter Simons.

454 455 456
	maint.mk: prohibit inclusion of "hash.h" without_use
	* top/maint.mk (sc_prohibit_hash_without_use): New rule.

457 458 459 460 461
2010-02-10  Jim Meyering  <meyering@redhat.com>

	maint.mk: prohibit inclusion of "ignore-value.h" without_use
	* top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.

462 463 464 465 466 467 468 469 470 471 472 473 474
2010-02-09  Eric Blake  <ebb9@byu.net>
	and Bruno Haible  <bruno@clisp.org>

	obstack-printf-posix: ensure declaration
	* m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
	extracted from gl_FUNC_OBSTACK_PRINTF.
	(gl_FUNC_OBSTACK_PRINTF): Invoke it.
	* m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
	Likewise.
	* lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
	if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
	0.

475 476 477 478 479 480 481
2010-02-08  Bruno Haible  <bruno@clisp.org>

	gnulib-tool: Fix typo in 2010-02-07 commit.
	* gnulib-tool (func_get_dependencies): Fix typo in last commit.
	Reported by Eric Blake.

2010-02-07  Bruno Haible  <bruno@clisp.org>
482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514

	gnulib-tool: Fix up caching patches.
	* gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
	option --no-cache. Use associative arrays when supported by the shell.
	(sed_comments): New variable.
	(modcache): Renamed from do_cache.
	(sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
	abbreviate unnecessarily.
	(have_associative): New variable.
	(func_cache_var): Define correctly for bash 1.x. Define in an optimized
	way also for ksh and zsh.
	(func_init_sed_convert_to_cache_statements): New function, extracted
	from func_cache_lookup_module. Add support for associative arrays.
	Don't set the c_MODULE_cached variable here. Ignore all lines before
	the first field header. Remove only the final newline, not all trailing
	newlines. Support empty fields correctly. Limit the use of 'eval' to
	assignments.
	(func_get_description, func_get_status, func_get_notice,
	func_get_applicability, func_get_filelist, func_get_dependencies,
	func_get_autoconf_early_snippet, func_get_autoconf_snippet,
	func_get_automake_snippet, func_get_include_directive,
	func_get_link_directive, func_get_license, func_get_maintainer):
	Update documentation. List the unoptimized code first. Add support for
	associative arrays. Limit the use of 'eval' to assignments.
	(func_get_applicability): Undo stylistic pessimisations.
	(func_get_automake_snippet, func_get_include_directive): Reduce code
	duplication.
	(func_modules_transitive_closure, func_modules_add_dummy,
	func_modules_notice, func_modules_to_filelist, func_add_file,
	func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
	func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
	func_create_testdir, func_create_megatestdir): Update documentation.

515 516 517 518 519 520
2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	* gnulib-tool (func_cache_lookup_module): Store the module name
	belonging to the cache variable; error out if two different
	module names map to the same cache variable name.

521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537
2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	gnulib-tool: Make caching optional.
	* gnulib-tool: Accept option --no-cache, turning off $do_cache.
	Update matching short versions of --no-changelog.
	(func_usage): Update.
	(sed_extract_cache_prog): Renamed from ...
	(sed_extract_prog): ... this; revert to old extraction script.
	(func_get_description, func_get_status)
	(func_get_notice, func_get_applicability, func_get_filelist)
	(func_get_dependencies, func_get_autoconf_early_snippet)
	(func_get_autoconf_snippet, func_get_automake_snippet)
	(func_get_include_directive, func_get_link_directive)
	(func_get_license, func_get_maintainer): If $do_cache is false,
	use old, non-caching extraction scripts.
	Suggestion by Bruno Haible.

538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553
2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	gnulib-tool: cache module metainformation.
	* gnulib-tool (sed_extract_prog): Match newline before each
	header, and rewrite header to a shell variable suffix.
	(func_cache_var, func_cache_lookup_module): New functions,
	to turn a module name into a cache variable prefix, and to
	look up and cache module metainformation.
	(func_get_description, func_get_status)
	(func_get_notice, func_get_applicability, func_get_filelist)
	(func_get_dependencies, func_get_autoconf_early_snippet)
	(func_get_autoconf_snippet, func_get_automake_snippet)
	(func_get_include_directive, func_get_link_directive)
	(func_get_license, func_get_maintainer): Use
	func_cache_lookup_module.

554 555 556 557 558 559
2010-02-07  Bruno Haible  <bruno@clisp.org>

	fnctl: Fix missing dependency.
	* modules/fcntl (Depends-on): Add getdtablesize.
	Reported by John W. Eaton <jwe@gnu.org>.

560 561 562 563 564 565 566 567 568 569 570 571 572 573
2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	Argp: fix recognition of short alias options.

	* lib/argp-parse.c (convert_options): Fix improper use of
	`|' between character values.
	* tests/test-argp.c (group1_option): New alias option
	--read (-r).
	(group1_parser): Special handling for 'r'.
	(test15): New test case.
	(test_fun): Add test15.
	* tests/test-argp-2.sh: Update expected --help and --usage
	outputs.

Sergey Poznyakoff's avatar
Sergey Poznyakoff committed
574 575 576 577
2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>

	* tests/test-argp.c: Fix indentation.

578 579 580 581 582 583 584 585 586
2010-02-04  Eric Blake  <ebb9@byu.net>

	gettimeofday: expose type of second argument
	* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
	of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
	* tests/test-gettimeofday.c: Use it to silence warning.
	* doc/posix-functions/gettimeofday.texi (gettimeofday): Document
	the issue.

587 588
2010-02-03  Jim Meyering  <meyering@redhat.com>

589 590 591 592
	regcomp.c: avoid the sole warning from gcc's -Wtype-limits
	* lib/regcomp.c (TYPE_SIGNED): Define.
	(parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.

593 594 595
	regcomp.c: avoid a new -Wshadow warning
	* lib/regcomp.c (create_initial_state): Do not shadow local "err".

596 597 598 599 600 601 602 603 604
2010-02-01  Jim Meyering  <meyering@redhat.com>

	removing useless parentheses in cpp #define directives
	For motivation, see commit c0221df4, "define STREQ(a,b)
	consistently, removing useless parentheses"
	* lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
	* lib/mountlist.c (MNT_IGNORE): Likewise.
	* lib/trim.h (trim, trim_trailing, trim_leading): Likewise.

605 606
2010-02-01  Eric Blake  <ebb9@byu.net>

Eric Blake's avatar
Eric Blake committed
607 608 609 610 611 612 613 614 615 616 617 618 619 620
	sys_time: use link-warning
	* m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
	(gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
	(gl_SYS_TIME_MODULE_INDICATOR): New macro.
	* modules/sys_time (Depends-on): Add warn-on-use.
	(Makefile.am): Always build replacement.
	(configure.ac): Update substitutions.
	* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
	(gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
	bother with SYS_TIME_H.
	* modules/gettimeofday (configure.ac): Declare indicator.
	* lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
	in use.

621 622 623 624
	closein-tests: silence compiler warning
	* tests/test-closein.c (main): Ignore fread result.
	* modules/closein-tests (Depends-on): Add ignore-value.

625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685
	tests: silence warning about system return
	* tests/test-areadlink-with-size.c (main): Ignore system result.
	* tests/test-areadlink.c (main): Likewise.
	* tests/test-areadlinkat-with-size.c (main): Likewise.
	* tests/test-areadlinkat.c (main): Likewise.
	* tests/test-canonicalize-lgpl.c (main): Likewise.
	* tests/test-canonicalize.c (main): Likewise.
	* tests/test-chown.c (main): Likewise.
	* tests/test-fchownat.c (main): Likewise.
	* tests/test-fdutimensat.c (main): Likewise.
	* tests/test-fstatat.c (main): Likewise.
	* tests/test-futimens.c (main): Likewise.
	* tests/test-lchown.c (main): Likewise.
	* tests/test-link.c (main): Likewise.
	* tests/test-linkat.c (main): Likewise.
	* tests/test-lstat.c (main): Likewise.
	* tests/test-mkdir.c (main): Likewise.
	* tests/test-mkdirat.c (main): Likewise.
	* tests/test-mkfifo.c (main): Likewise.
	* tests/test-mkfifoat.c (main): Likewise.
	* tests/test-mknod.c (main): Likewise.
	* tests/test-readlink.c (main): Likewise.
	* tests/test-remove.c (main): Likewise.
	* tests/test-rename.c (main): Likewise.
	* tests/test-renameat.c (main): Likewise.
	* tests/test-rmdir.c (main): Likewise.
	* tests/test-symlink.c (main): Likewise.
	* tests/test-symlinkat.c (main): Likewise.
	* tests/test-unlink.c (main): Likewise.
	* tests/test-unlinkat.c (main): Likewise.
	* tests/test-utimens.c (main): Likewise.
	* tests/test-utimensat.c (main): Likewise.
	* modules/areadlink-tests (Depends-on): Add ignore-value.
	* modules/areadlink-with-size-tests (Depends-on): Likewise.
	* modules/areadlinkat-tests (Depends-on): Likewise.
	* modules/areadlinkat-with-size-tests (Depends-on): Likewise.
	* modules/canonicalize-lgpl-tests (Depends-on): Likewise.
	* modules/canonicalize-tests (Depends-on): Likewise.
	* modules/chown-tests (Depends-on): Likewise.
	* modules/fdutimensat-tests (Depends-on): Likewise.
	* modules/futimens-tests (Depends-on): Likewise.
	* modules/lchown-tests (Depends-on): Likewise.
	* modules/link-tests (Depends-on): Likewise.
	* modules/linkat-tests (Depends-on): Likewise.
	* modules/lstat-tests (Depends-on): Likewise.
	* modules/mkdir-tests (Depends-on): Likewise.
	* modules/mkfifo-tests (Depends-on): Likewise.
	* modules/mkfifoat-tests (Depends-on): Likewise.
	* modules/mknod-tests (Depends-on): Likewise.
	* modules/openat-tests (Depends-on): Likewise.
	* modules/readlink-tests (Depends-on): Likewise.
	* modules/remove-tests (Depends-on): Likewise.
	* modules/rename-tests (Depends-on): Likewise.
	* modules/renameat-tests (Depends-on): Likewise.
	* modules/rmdir-tests (Depends-on): Likewise.
	* modules/symlink-tests (Depends-on): Likewise.
	* modules/symlinkat-tests (Depends-on): Likewise.
	* modules/unlink-tests (Depends-on): Likewise.
	* modules/utimens-tests (Depends-on): Likewise.
	* modules/utimensat-tests (Depends-on): Likewise.

686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723
2010-01-31  Bruno Haible  <bruno@clisp.org>

	Perform the same test for many <math.h> functions.
	* m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
	gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
	* m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
	of gl_MATHFUNC.
	* modules/acos (configure.ac): Likewise.
	* modules/asin (configure.ac): Likewise.
	* modules/atan (configure.ac): Likewise.
	* modules/atan2 (configure.ac): Likewise.
	* modules/cbrt (configure.ac): Likewise.
	* modules/copysign (configure.ac): Likewise.
	* modules/cos (configure.ac): Likewise.
	* modules/cosh (configure.ac): Likewise.
	* modules/erf (configure.ac): Likewise.
	* modules/erfc (configure.ac): Likewise.
	* modules/exp (configure.ac): Likewise.
	* modules/fmod (configure.ac): Likewise.
	* modules/hypot (configure.ac): Likewise.
	* modules/j0 (configure.ac): Likewise.
	* modules/j1 (configure.ac): Likewise.
	* modules/jn (configure.ac): Likewise.
	* modules/lgamma (configure.ac): Likewise.
	* modules/log (configure.ac): Likewise.
	* modules/log10 (configure.ac): Likewise.
	* modules/log1p (configure.ac): Likewise.
	* modules/pow (configure.ac): Likewise.
	* modules/remainder (configure.ac): Likewise.
	* modules/sin (configure.ac): Likewise.
	* modules/sinh (configure.ac): Likewise.
	* modules/tan (configure.ac): Likewise.
	* modules/tanh (configure.ac): Likewise.
	* modules/y0 (configure.ac): Likewise.
	* modules/y1 (configure.ac): Likewise.
	* modules/yn (configure.ac): Likewise.
	Suggested by Paolo Bonzini.

724 725 726 727
2010-01-31  Bruno Haible  <bruno@clisp.org>

	* m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.

728 729 730 731 732 733 734 735 736 737 738 739 740 741
2010-01-31  Bruno Haible  <bruno@clisp.org>

	Work around getdelim() bug on FreeBSD 8.0.
	* m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
	initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
	not work.
	* lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
	is 1.
	* m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
	* modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
	* tests/test-getdelim.c (main): Also test result for a NULL buffer and
	a non-zero size.
	* doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.

742 743 744 745 746 747 748 749 750
2010-01-31  Bruno Haible  <bruno@clisp.org>

	Work around getline() bug on FreeBSD 8.0.
	* m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
	and a non-zero size.
	* tests/test-getline.c (main): Likewise.
	* doc/posix-functions/getline.texi: Mention the FreeBSD bug.
	Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.

Eric Blake's avatar
Eric Blake committed
751 752 753 754 755 756
2010-01-28  Eric Blake  <ebb9@byu.net>

	regex: fix build failure
	* lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
	platforms.

757 758
2010-01-28  Jim Meyering  <meyering@redhat.com>

759 760 761 762 763
	regex: do not ignore memory allocation failure
	* lib/regex_internal.c (create_cd_newstate): Detect
	re_node_set_init_copy failure.   Extracted from glibc commit
	2da42bc06566bc89785e580fa1ac89b4c9f2a63c.

764 765 766 767
	regex: sync more white-space changes from libc
	* lib/regex_internal.c: White-space only changes.
	* lib/regexec.c: Likewise.

768 769 770 771 772
	regex: add many uses of __attribute_warn_unused_result__
	* lib/regex_internal.c: Use __attribute_warn_unused_result__.
	* lib/regexec.c: Likewise.
	Extracted from a messy glibc commit.

773 774 775 776
	regcomp.c: spelling and merge-artifact from glibc
	* lib/regcomp.c: Merge remainder of glibc's
	2da42bc06566bc89785e580fa1ac89b4c9f2a63c.

777 778 779 780
	regcomp.c: sync white-space changes from glibc
	* lib/regcomp.c: Merge to accommodate white space
	changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.

781 782 783 784 785
	regcomp.c: do not ignore internal return values
	* lib/regcomp.c: Do not ignore internal return values.
	This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
	but without its white-space changes and spelling fixes.

786 787 788
	regex_internal.h: define __attribute_warn_unused_result__
	* lib/regex_internal.h (__attribute_warn_unused_result__): Define.

789 790 791
	maint: add a syntax-check rule to check for vulnerable Makefile.in
	* top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.

792 793 794 795 796 797
2010-01-27  Jim Meyering  <meyering@redhat.com>

	ncftpput-ftp: clean up spaces
	* build-aux/ncftpput-ftp: Make Copyright line consistent.
	Remove trailing blanks.

798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838
2010-01-27  Simon Josefsson  <simon@josefsson.org>

	* build-aux/git-version-gen: Fix copyright statement.
	* build-aux/gnupload: Likewise.
	* tests/test-arcfour.c: Likewise.
	* tests/test-arctwo.c: Likewise.
	* tests/test-count-one-bits.c: Likewise.
	* tests/test-crc.c: Likewise.
	* tests/test-des.c: Likewise.
	* tests/test-gc-arcfour.c: Likewise.
	* tests/test-gc-arctwo.c: Likewise.
	* tests/test-gc-des.c: Likewise.
	* tests/test-gc-hmac-md5.c: Likewise.
	* tests/test-gc-hmac-sha1.c: Likewise.
	* tests/test-gc-md2.c: Likewise.
	* tests/test-gc-md4.c: Likewise.
	* tests/test-gc-md5.c: Likewise.
	* tests/test-gc-pbkdf2-sha1.c: Likewise.
	* tests/test-gc-rijndael.c: Likewise.
	* tests/test-gc-sha1.c: Likewise.
	* tests/test-gc.c: Likewise.
	* tests/test-gethostname.c: Likewise.
	* tests/test-gettimeofday.c: Likewise.
	* tests/test-hash.c: Likewise.
	* tests/test-hmac-md5.c: Likewise.
	* tests/test-hmac-sha1.c: Likewise.
	* tests/test-md2.c: Likewise.
	* tests/test-md4.c: Likewise.
	* tests/test-md5.c: Likewise.
	* tests/test-memchr.c: Likewise.
	* tests/test-memchr2.c: Likewise.
	* tests/test-memcmp.c: Likewise.
	* tests/test-memmem.c: Likewise.
	* tests/test-memrchr.c: Likewise.
	* tests/test-rawmemchr.c: Likewise.
	* tests/test-read-file.c: Likewise.
	* tests/test-rijndael.c: Likewise.
	* tests/test-sockets.c: Likewise.
	* tests/test-strchrnul.c: Likewise.
	* tests/test-strstr.c: Likewise.
	* tests/test-strtod.c: Likewise.
839
	* build-aux/ncftpput-ftp: Likewise.
840

841 842 843 844 845 846
2010-01-26  Eric Blake  <ebb9@byu.net>

	ignore-value: update recommended header name
	* modules/ignore-value (Include): Only use <> for headers that
	exist in glibc.

847 848 849 850 851 852 853
2010-01-26  Jim Meyering  <meyering@redhat.com>

	test-userspec.c: avoid compiler warnings
	* tests/test-userspec.c (main): Avoid shadowing ("uid"),
	and "initialization discards qualifiers..." warnings.
	Put the first "uid" in its own scope, and make char* members "const".

854 855 856 857 858 859 860
2010-01-25  Bruno Haible  <bruno@clisp.org>

	gnulib-tool: Make warning diagnostics consistent.
	* gnulib-tool (func_warning): New function.
	Use it everywhere where gnulib-tool produces output to stderr and it is
	not a fatal error.

Bruno Haible's avatar
Bruno Haible committed
861 862 863 864 865 866
2010-01-25  Bruno Haible  <bruno@clisp.org>

	Fix test dependencies.
	* modules/xstrtol-tests (Depends-on): Add inttypes.
	* modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.

867 868 869 870 871 872 873 874 875 876
2010-01-25 Pádraig Brady <P@draigBrady.com>

	syntax-check: detect incorrect boolean macro values in config.h
	* modules/maintainer-makefile (configure.ac): Parameterize the location
	of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
	The logic is from Eric Blake and the location indicated by Jim Meyering.
	Note the more natural CONFIG_HEADER name is prohibited by automake
	for backwards compatibility reasons.
	* top/maint.mk (sc_Wundef_boolean): New rule.

877 878 879 880 881 882
2010-01-25  Jim Meyering  <meyering@redhat.com>

	bootstrap: detect MacOS 10.6's shasum, too
	* build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
	Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.

Jim Meyering's avatar
Jim Meyering committed
883 884 885 886 887 888 889 890 891 892 893 894 895
2010-01-23  Jim Meyering  <meyering@redhat.com>

	xstrtoll: new module
	* modules/xstrtoll: New file.
	* MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
	* lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
	* lib/xstrtoll.c, lib/xstrtoull.c: New files.
	./configure fails if you use this module and lack "long long".
	* modules/xstrtoll-tests: New module.
	* tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
	* tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
	new init.sh-based test framework.

Bruno Haible's avatar
Bruno Haible committed
896 897
2010-01-24  Bruno Haible  <bruno@clisp.org>

Bruno Haible's avatar
Bruno Haible committed
898 899 900 901
	Tests for module 'yn'.
	* modules/yn-tests: New file.
	* tests/test-yn.c: New file.

Bruno Haible's avatar
Bruno Haible committed
902 903 904 905
	Tests for module 'y1'.
	* modules/y1-tests: New file.
	* tests/test-y1.c: New file.

Bruno Haible's avatar
Bruno Haible committed
906 907 908 909
	Tests for module 'y0'.
	* modules/y0-tests: New file.
	* tests/test-y0.c: New file.

Bruno Haible's avatar
Bruno Haible committed
910 911 912 913
	Tests for module 'tanh'.
	* modules/tanh-tests: New file.
	* tests/test-tanh.c: New file.

Bruno Haible's avatar
Bruno Haible committed
914 915 916 917
	Tests for module 'tan'.
	* modules/tan-tests: New file.
	* tests/test-tan.c: New file.

Bruno Haible's avatar
Bruno Haible committed
918 919 920 921
	Tests for module 'sqrt'.
	* modules/sqrt-tests: New file.
	* tests/test-sqrt.c: New file.

Bruno Haible's avatar
Bruno Haible committed
922 923 924 925
	Tests for module 'sinh'.
	* modules/sinh-tests: New file.
	* tests/test-sinh.c: New file.

Bruno Haible's avatar
Bruno Haible committed
926 927 928 929
	Tests for module 'sin'.
	* modules/sin-tests: New file.
	* tests/test-sin.c: New file.

Bruno Haible's avatar
Bruno Haible committed
930 931 932 933
	Tests for module 'rint'.
	* modules/rint-tests: New file.
	* tests/test-rint.c: New file.

934 935 936 937
	Tests for module 'remainder'.
	* modules/remainder-tests: New file.
	* tests/test-remainder.c: New file.

Bruno Haible's avatar
Bruno Haible committed
938 939 940 941
	Tests for module 'pow'.
	* modules/pow-tests: New file.
	* tests/test-pow.c: New file.

942 943 944 945
	Tests for module 'nextafter'.
	* modules/nextafter-tests: New file.
	* tests/test-nextafter.c: New file.

Bruno Haible's avatar
Bruno Haible committed
946 947 948 949
	Tests for module 'modf'.
	* modules/modf-tests: New file.
	* tests/test-modf.c: New file.

Bruno Haible's avatar
Bruno Haible committed
950 951 952 953
	Tests for module 'logb'.
	* modules/logb-tests: New file.
	* tests/test-logb.c: New file.

Bruno Haible's avatar
Bruno Haible committed
954 955 956 957
	Tests for module 'log1p'.
	* modules/log1p-tests: New file.
	* tests/test-log1p.c: New file.

Bruno Haible's avatar
Bruno Haible committed
958 959 960 961
	Tests for module 'log10'.
	* modules/log10-tests: New file.
	* tests/test-log10.c: New file.

Bruno Haible's avatar
Bruno Haible committed
962 963 964 965
	Tests for module 'log'.
	* modules/log-tests: New file.
	* tests/test-log.c: New file.

966 967 968 969
	Tests for module 'lgamma'.
	* modules/lgamma-tests: New file.
	* tests/test-lgamma.c: New file.

Bruno Haible's avatar
Bruno Haible committed
970 971 972 973
	Tests for module 'ldexp'.
	* modules/ldexp-tests: New file.
	* tests/test-ldexp.c: New file.

Bruno Haible's avatar
Bruno Haible committed
974 975 976 977
	Tests for module 'jn'.
	* modules/jn-tests: New file.
	* tests/test-jn.c: New file.

Bruno Haible's avatar
Bruno Haible committed
978 979 980 981
	Tests for module 'j1'.
	* modules/j1-tests: New file.
	* tests/test-j1.c: New file.

Bruno Haible's avatar
Bruno Haible committed
982 983 984 985
	Tests for module 'j0'.
	* modules/j0-tests: New file.
	* tests/test-j0.c: New file.

Bruno Haible's avatar
Bruno Haible committed
986 987 988 989
	Tests for module 'hypot'.
	* modules/hypot-tests: New file.
	* tests/test-hypot.c: New file.

Bruno Haible's avatar
Bruno Haible committed
990 991 992 993
	Tests for module 'fmod'.
	* modules/fmod-tests: New file.
	* tests/test-fmod.c: New file.

Bruno Haible's avatar
Bruno Haible committed
994 995 996 997
	Tests for module 'fabs'.
	* modules/fabs-tests: New file.
	* tests/test-fabs.c: New file.

Bruno Haible's avatar
Bruno Haible committed
998 999 1000 1001
	Tests for module 'exp'.
	* modules/exp-tests: New file.
	* tests/test-exp.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1002 1003 1004 1005
	Tests for module 'erfc'.
	* modules/erfc-tests: New file.
	* tests/test-erfc.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1006 1007 1008 1009
	Tests for module 'erf'.
	* modules/erf-tests: New file.
	* tests/test-erf.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1010 1011 1012 1013
	Tests for module 'cosh'.
	* modules/cosh-tests: New file.
	* tests/test-cosh.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1014 1015 1016 1017
	Tests for module 'cos'.
	* modules/cos-tests: New file.
	* tests/test-cos.c: New file.

1018 1019 1020 1021
	Tests for module 'copysign'.
	* modules/copysign-tests: New file.
	* tests/test-copysign.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1022 1023 1024 1025
	Tests for module 'cbrt'.
	* modules/cbrt-tests: New file.
	* tests/test-cbrt.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1026 1027 1028 1029
	Tests for module 'atan2'.
	* modules/atan2-tests: New file.
	* tests/test-atan2.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1030 1031 1032 1033
	Tests for module 'atan'.
	* modules/atan-tests: New file.
	* tests/test-atan.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1034 1035 1036 1037
	Tests for module 'asin'.
	* modules/asin-tests: New file.
	* tests/test-asin.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1038 1039 1040 1041
	Tests for module 'acos'.
	* modules/acos-tests: New file.
	* tests/test-acos.c: New file.

1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084
2010-01-24  Bruno Haible  <bruno@clisp.org>

	Fix tests for common <math.h> functions.
	* m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
	code snippet that references the function pointer, rather than merely
	calling the function. Substitute the FUNC_LIBM variable.
	* m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
	* modules/acos (configure.ac): Likewise.
	* modules/asin (configure.ac): Likewise.
	* modules/atan (configure.ac): Likewise.
	* modules/atan2 (configure.ac): Likewise.
	* modules/cbrt (configure.ac): Likewise.
	* modules/copysign (configure.ac): Likewise.
	* modules/cos (configure.ac): Likewise.
	* modules/cosh (configure.ac): Likewise.
	* modules/erf (configure.ac): Likewise.
	* modules/erfc (configure.ac): Likewise.
	* modules/exp (configure.ac): Likewise.
	* modules/fabs (configure.ac): Likewise.
	* modules/fmod (configure.ac): Likewise.
	* modules/hypot (configure.ac): Likewise.
	* modules/j0 (configure.ac): Likewise.
	* modules/j1 (configure.ac): Likewise.
	* modules/jn (configure.ac): Likewise.
	* modules/ldexp (configure.ac): Likewise.
	* modules/lgamma (configure.ac): Likewise.
	* modules/log (configure.ac): Likewise.
	* modules/log10 (configure.ac): Likewise.
	* modules/log1p (configure.ac): Likewise.
	* modules/logb (configure.ac): Likewise.
	* modules/modf (configure.ac): Likewise.
	* modules/nextafter (configure.ac): Likewise.
	* modules/pow (configure.ac): Likewise.
	* modules/remainder (configure.ac): Likewise.
	* modules/rint (configure.ac): Likewise.
	* modules/sin (configure.ac): Likewise.
	* modules/sinh (configure.ac): Likewise.
	* modules/tan (configure.ac): Likewise.
	* modules/tanh (configure.ac): Likewise.
	* modules/y0 (configure.ac): Likewise.
	* modules/y1 (configure.ac): Likewise.
	* modules/yn (configure.ac): Likewise.

1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106
2010-01-24  Bruno Haible  <bruno@clisp.org>

	Tests: Defeat inlining of math functions by GCC >= 4.3.0.
	* tests/test-acosl.c (x): New variable.
	(main): Store argument in x and fetch it from x.
	* tests/test-asinl.c (x): New variable.
	(main): Store argument in x and fetch it from x.
	* tests/test-atanl.c (x): New variable.
	(main): Store argument in x and fetch it from x.
	* tests/test-cosl.c (x): New variable.
	(main): Store argument in x and fetch it from x.
	* tests/test-expl.c (x): New variable.
	(main): Store argument in x and fetch it from x.
	* tests/test-logl.c (x): New variable.
	(main): Store argument in x and fetch it from x.
	* tests/test-sinl.c (x): New variable.
	(main): Store argument in x and fetch it from x.
	* tests/test-sqrtl.c (x): New variable.
	(main): Store argument in x and fetch it from x.
	* tests/test-tanl.c (x): New variable.
	(main): Store argument in x and fetch it from x.

1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194
2010-01-24  Bruno Haible  <bruno@clisp.org>

	Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
	* gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
	assignments to the initial TESTS_ENVIRONMENT.
	* doc/gnulib.texi (Unit test modules): Document it.
	* modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
	TESTS_ENVIRONMENT.
	* modules/btowc-tests (Makefile.am): Likewise.
	* modules/c-stack-tests (Makefile.am): Likewise.
	* modules/c-strcase-tests (Makefile.am): Likewise.
	* modules/copy-file-tests (Makefile.am): Likewise.
	* modules/mbmemcasecmp-tests (Makefile.am): Likewise.
	* modules/mbmemcasecoll-tests (Makefile.am): Likewise.
	* modules/mbrtowc-tests (Makefile.am): Likewise.
	* modules/mbscasecmp-tests (Makefile.am): Likewise.
	* modules/mbscasestr-tests (Makefile.am): Likewise.
	* modules/mbschr-tests (Makefile.am): Likewise.
	* modules/mbscspn-tests (Makefile.am): Likewise.
	* modules/mbsinit-tests (Makefile.am): Likewise.
	* modules/mbsncasecmp-tests (Makefile.am): Likewise.
	* modules/mbsnrtowcs-tests (Makefile.am): Likewise.
	* modules/mbspbrk-tests (Makefile.am): Likewise.
	* modules/mbspcasecmp-tests (Makefile.am): Likewise.
	* modules/mbsrchr-tests (Makefile.am): Likewise.
	* modules/mbsrtowcs-tests (Makefile.am): Likewise.
	* modules/mbsspn-tests (Makefile.am): Likewise.
	* modules/mbsstr-tests (Makefile.am): Likewise.
	* modules/nl_langinfo-tests (Makefile.am): Likewise.
	* modules/unicase/locale-language-tests (Makefile.am): Likewise.
	* modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
	* modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
	* modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
	* modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
	* modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
	* modules/vasnprintf-posix-tests (Makefile.am): Likewise.
	* modules/wcrtomb-tests (Makefile.am): Likewise.
	* modules/wcsnrtombs-tests (Makefile.am): Likewise.
	* modules/wcsrtombs-tests (Makefile.am): Likewise.
	* modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
	assignments from TESTS_ENVIRONMENT.
	* modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
	augmentation.
	* modules/argp-version-etc-tests (Makefile.am): Likewise.
	* modules/atexit-tests (Makefile.am): Likewise.
	* modules/binary-io-tests (Makefile.am): Likewise.
	* modules/closein-tests (Makefile.am): Likewise.
	* modules/dprintf-posix-tests (Makefile.am): Likewise.
	* modules/exclude-tests (Makefile.am): Likewise.
	* modules/fflush-tests (Makefile.am): Likewise.
	* modules/fpending-tests (Makefile.am): Likewise.
	* modules/fprintf-posix-tests (Makefile.am): Likewise.
	* modules/freadahead-tests (Makefile.am): Likewise.
	* modules/freadptr-tests (Makefile.am): Likewise.
	* modules/freadseek-tests (Makefile.am): Likewise.
	* modules/fseek-tests (Makefile.am): Likewise.
	* modules/fseeko-tests (Makefile.am): Likewise.
	* modules/ftell-tests (Makefile.am): Likewise.
	* modules/ftello-tests (Makefile.am): Likewise.
	* modules/idpriv-drop-tests (Makefile.am): Likewise.
	* modules/idpriv-droptemp-tests (Makefile.am): Likewise.
	* modules/lseek-tests (Makefile.am): Likewise.
	* modules/parse-duration-tests (Makefile.am): Likewise.
	* modules/perror-tests (Makefile.am): Likewise.
	* modules/pipe-filter-gi-tests (Makefile.am): Likewise.
	* modules/pipe-filter-ii-tests (Makefile.am): Likewise.
	* modules/pipe-tests (Makefile.am): Likewise.
	* modules/pread-tests (Makefile.am): Likewise.
	* modules/printf-posix-tests (Makefile.am): Likewise.
	* modules/select-tests (Makefile.am): Likewise.
	* modules/sigpipe-tests (Makefile.am): Likewise.
	* modules/tsearch-tests (Makefile.am): Likewise.
	* modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
	* modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
	* modules/uniname/uniname-tests (Makefile.am): Likewise.
	* modules/uniwidth/width-tests (Makefile.am): Likewise.
	* modules/vdprintf-posix-tests (Makefile.am): Likewise.
	* modules/version-etc-tests (Makefile.am): Likewise.
	* modules/vfprintf-posix-tests (Makefile.am): Likewise.
	* modules/vprintf-posix-tests (Makefile.am): Likewise.
	* modules/xalloc-die-tests (Makefile.am): Likewise.
	* modules/xprintf-posix-tests (Makefile.am): Likewise.
	* modules/xstrtoimax-tests (Makefile.am): Likewise.
	* modules/xstrtol-tests (Makefile.am): Likewise.
	* modules/xstrtoumax-tests (Makefile.am): Likewise.
	* modules/yesno-tests (Makefile.am): Likewise.
	Suggested by Jim Meyering.

Bruno Haible's avatar
Bruno Haible committed
1195 1196 1197 1198 1199 1200 1201
2010-01-24  Bruno Haible  <bruno@clisp.org>

	More documentation.
	* doc/gnulib.texi (Writing modules): New chapter.
	(Miscellaneous Notes): Move sections "Comments" and "Header files" to
	the new chapter.

1202 1203
2010-01-24  Jim Meyering  <meyering@redhat.com>

1204 1205 1206 1207 1208
	maint.mk: do not prepend "./" after filtering
	* top/maint.mk (_prepend_srcdir_prefix): New variable
	(VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
	"./" when $(srcdir) is ".".

1209 1210 1211 1212 1213 1214 1215 1216 1217 1218
	define STREQ(a,b) consistently, removing useless parentheses
	#define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
	since the only risk is that "a" or "b" contains an unparenthesized
	comma, but if either did that, STREQ would have 3 or more arguments.
	Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
	* lib/fts.c (STREQ): Remove unnecessary parentheses.
	* lib/hash-triple.c (STREQ): Likewise.
	* tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
	* lib/getugroups.c (STREQ): Likewise.

1219 1220 1221 1222 1223 1224
2010-01-23  Jim Meyering  <meyering@redhat.com>

	maint.mk: fix syntax-check in a non-srcdir build directory
	* top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
	introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.

1225 1226 1227 1228 1229 1230
2010-01-22  Jim Meyering  <meyering@redhat.com>

	userspec: add unit tests
	* tests/test-userspec.c: New file.
	* modules/userspec-tests: Likewise.

1231 1232 1233 1234 1235 1236
2010-01-21  Jim Meyering  <meyering@redhat.com>

	maint.mk: handle source file names containing "." robustly
	* top/maint.mk (_dot_escaped_srcdir): Define.
	(VC_LIST): Use it in LHS of sed substitution.

1237 1238 1239 1240 1241 1242 1243
2010-01-21  Jiri Denemark  <jdenemar@redhat.com>

	maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
	* top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
	$(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
	from a non-srcdir build.

1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323
2010-01-20  Eric Blake  <ebb9@byu.net>

	warn-on-use: use instead of link-warning
	* modules/stdio (Depends-on, Makefile.am): Drop link-warning.
	* modules/unistd (Depends-on, Makefile.am): Likewise.
	* modules/arpa_inet (Depends-on): Replace link-warning with
	warn-on-use.
	(Makefile.am): Update rules accordingly.
	* modules/ctype (Depends-on, Makefile.am): Likewise.
	* modules/dirent (Depends-on, Makefile.am): Likewise.
	* modules/fcntl-h (Depends-on, Makefile.am): Likewise.
	* modules/inttypes (Depends-on, Makefile.am): Likewise.
	* modules/langinfo (Depends-on, Makefile.am): Likewise.
	* modules/locale (Depends-on, Makefile.am): Likewise.
	* modules/math (Depends-on, Makefile.am): Likewise.
	* modules/search (Depends-on, Makefile.am): Likewise.
	* modules/signal (Depends-on, Makefile.am): Likewise.
	* modules/spawn (Depends-on, Makefile.am): Likewise.
	* modules/stdlib (Depends-on, Makefile.am): Likewise.
	* modules/string (Depends-on, Makefile.am): Likewise.
	* modules/strings (Depends-on, Makefile.am): Likewise.
	* modules/sys_file (Depends-on, Makefile.am): Likewise.
	* modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
	* modules/sys_select (Depends-on, Makefile.am): Likewise.
	* modules/sys_socket (Depends-on, Makefile.am): Likewise.
	* modules/sys_stat (Depends-on, Makefile.am): Likewise.
	* modules/sys_times (Depends-on, Makefile.am): Likewise.
	* modules/sys_utsname (Depends-on, Makefile.am): Likewise.
	* modules/wchar (Depends-on, Makefile.am): Likewise.
	* m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
	should be poisoned.
	* m4/ctype.m4 (gl_CTYPE_H): Likewise.
	* m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
	* m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
	* m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
	* m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
	* m4/locale_h.m4 (gl_LOCALE_H): Likewise.
	* m4/math_h.m4 (gl_MATH_H): Likewise.
	* m4/search_h.m4 (gl_SEARCH_H): Likewise.
	* m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
	* m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
	* m4/stdio_h.m4 (gl_STDIO_H): Likewise.
	* m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
	* m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
	* m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
	* m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
	* m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
	* m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
	* m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
	* m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
	* m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
	* m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
	* m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
	* m4/wchar.m4 (gl_WCHAR_H): Likewise.
	* lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
	GL_LINK_WARNING.
	* lib/ctype.in.h: Likewise.
	* lib/dirent.in.h: Likewise.
	* lib/fcntl.in.h: Likewise.
	* lib/inttypes.in.h: Likewise.
	* lib/langinfo.in.h: Likewise.
	* lib/locale.in.h: Likewise.
	* lib/math.in.h: Likewise.
	* lib/search.in.h: Likewise.
	* lib/signal.in.h: Likewise.
	* lib/spawn.in.h: Likewise.
	* lib/stdio.in.h: Likewise.
	* lib/stdlib.in.h: Likewise.
	* lib/string.in.h: Likewise.
	* lib/strings.in.h: Likewise.
	* lib/sys_file.in.h: Likewise.
	* lib/sys_ioctl.in.h: Likewise.
	* lib/sys_select.in.h: Likewise.
	* lib/sys_socket.in.h: Likewise.
	* lib/sys_stat.in.h: Likewise.
	* lib/sys_times.in.h: Likewise.
	* lib/sys_utsname.in.h: Likewise.
	* lib/unistd.in.h: Likewise.
	* lib/wchar.in.h: Likewise.

Bruno Haible's avatar
Bruno Haible committed
1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340
2010-01-20  Bruno Haible  <bruno@clisp.org>

	Avoid duplicate -lm.
	* m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
	* m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
	* m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
	* m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
	* m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
	* m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
	* m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
	* m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
	* m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
	* m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
	* m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
	* m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
	Reported by Paolo Bonzini.

1341 1342 1343 1344 1345 1346 1347
2010-01-19  Bruno Haible  <bruno@clisp.org>

	langinfo, nl_langinfo: Relicense under LGPLv2+.
	* modules/langinfo (License): Change to LGPLv2+.
	* modules/nl_langinfo (License): Likewise.
	Patch by David Lutterkort <lutter@redhat.com>.

1348 1349 1350 1351 1352 1353 1354
2010-01-19  Bruno Haible  <bruno@clisp.org>

	Avoid compilation error with cc on OSF/1 5.1.
	* lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
	statement, not before.
	Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.

1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368
2010-01-18  Bruno Haible  <bruno@clisp.org>

	Avoid a link error due to the __printf__ symbol.
	* lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
	and 2.6.x.
	(__format__, __printf__): Remove definitions.
	* lib/argp-fmtstream.h: Likewise.
	* lib/argp.h: Likewise.
	* lib/error.h: Likewise.
	* lib/vasnprintf.h: Likewise.
	* lib/xprintf.h: Likewise.
	* lib/xvasprintf.h: Likewise.
	Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.

1369 1370
2010-01-18  Bruno Haible  <bruno@clisp.org>

Bruno Haible's avatar
Bruno Haible committed
1371 1372 1373 1374
	Tests for module 'tanl'.
	* modules/tanl-tests: New file.
	* tests/test-tanl.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1375 1376 1377 1378
	Tests for module 'sqrtl'.
	* modules/sqrtl-tests: New file.
	* tests/test-sqrtl.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1379 1380 1381 1382
	Tests for module 'sinl'.
	* modules/sinl-tests: New file.
	* tests/test-sinl.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1383 1384 1385 1386
	Tests for module 'logl'.
	* modules/logl-tests: New file.
	* tests/test-logl.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1387 1388 1389 1390
	Tests for module 'expl'.
	* modules/expl-tests: New file.
	* tests/test-expl.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1391 1392 1393 1394
	Tests for module 'cosl'.
	* modules/cosl-tests: New file.
	* tests/test-cosl.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1395 1396 1397 1398
	Tests for module 'atanl'.
	* modules/atanl-tests: New file.
	* tests/test-atanl.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1399 1400 1401 1402
	Tests for module 'asinl'.
	* modules/asinl-tests: New file.
	* tests/test-asinl.c: New file.

Bruno Haible's avatar
Bruno Haible committed
1403 1404 1405 1406
	Tests for module 'acosl'.
	* modules/acosl-tests: New file.
	* tests/test-acosl.c: New file.

1407 1408 1409 1410 1411 1412 1413
	New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
	* lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
	tanl): Use the standard gnulib idiom.
	* lib/cosl.c: Don't include trigl.c and sincosl.c.
	* lib/sinl.c: Likewise.
	* lib/tanl.c: Don't include trigl.c.
	(kernel_tanl): Make static.
Bruno Haible's avatar
Bruno Haible committed
1414
	* lib/sincosl.c: Include trigl.h first.
1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451
	* lib/trigl.c: Likewise.
	* m4/acosl.m4: New file.
	* m4/asinl.m4: New file.
	* m4/atanl.m4: New file.
	* m4/cosl.m4: New file.
	* m4/expl.m4: New file.
	* m4/logl.m4: New file.
	* m4/sinl.m4: New file.
	* m4/sqrtl.m4: New file.
	* m4/tanl.m4: New file.
	* m4/mathl.m4: Remove file.
	* m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
	variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
	Don't initialize GNULIB_MATHL.
	* modules/acosl: New file.
	* modules/asinl: New file.
	* modules/atanl: New file.
	* modules/cosl: New file.
	* modules/expl: New file.
	* modules/logl: New file.
	* modules/sinl: New file.
	* modules/sqrtl: New file.
	* modules/tanl: New file.
	* modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
	for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
	substitute GNULIB_MATHL.
	* modules/mathl: Rewritten.
	* doc/posix-functions/acosl.texi: Mention the 'acosl' module.
	* doc/posix-functions/asinl.texi: Mention the 'asinl' module.
	* doc/posix-functions/atanl.texi: Mention the 'atanl' module.
	* doc/posix-functions/cosl.texi: Mention the 'cosl' module.
	* doc/posix-functions/expl.texi: Mention the 'expl' module.
	* doc/posix-functions/logl.texi: Mention the 'logl' module.
	* doc/posix-functions/sinl.texi: Mention the 'sinl' module.
	* doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
	* doc/posix-functions/tanl.texi: Mention the 'tanl' module.

1452 1453 1454 1455 1456 1457 1458
2010-01-18  Bruno Haible  <bruno@clisp.org>

	sqrt: Make gl_FUNC_SQRT requirable.
	* m4/sqrt.m4: New file.
	* modules/sqrt (Files): Add it.
	(configure.ac): Invoke gl_FUNC_SQRT.

1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535
2010-01-18  Bruno Haible  <bruno@clisp.org>

	New modules for common <math.h> functions.
	* m4/mathfunc.m4: New file.
	* modules/acos: New file.
	* modules/asin: New file.
	* modules/atan: New file.
	* modules/atan2: New file.
	* modules/cbrt: New file.
	* modules/copysign: New file.
	* modules/cos: New file.
	* modules/cosh: New file.
	* modules/erf: New file.
	* modules/erfc: New file.
	* modules/exp: New file.
	* modules/fabs: New file.
	* modules/fmod: New file.
	* modules/hypot: New file.
	* modules/j0: New file.
	* modules/j1: New file.
	* modules/jn: New file.
	* modules/ldexp: New file.
	* modules/lgamma: New file.
	* modules/log: New file.
	* modules/log10: New file.
	* modules/log1p: New file.
	* modules/logb: New file.
	* modules/modf: New file.
	* modules/nextafter: New file.
	* modules/pow: New file.
	* modules/remainder: New file.
	* modules/rint: New file.
	* modules/sin: New file.
	* modules/sinh: New file.
	* modules/sqrt: New file.
	* modules/tan: New file.
	* modules/tanh: New file.
	* modules/y0: New file.
	* modules/y1: New file.
	* modules/yn: New file.
	* doc/posix-functions/acos.texi: Mention the 'acos' module.
	* doc/posix-functions/asin.texi: Mention the 'asin' module.
	* doc/posix-functions/atan.texi: Mention the 'atan' module.
	* doc/posix-functions/atan2.texi: Mention the 'atan2' module.
	* doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
	* doc/posix-functions/copysign.texi: Mention the 'copysign' module.
	* doc/posix-functions/cos.texi: Mention the 'cos' module.
	* doc/posix-functions/cosh.texi: Mention the 'cosh' module.
	* doc/posix-functions/erf.texi: Mention the 'erf' module.
	* doc/posix-functions/erfc.texi: Mention the 'erfc' module.
	* doc/posix-functions/exp.texi: Mention the 'exp' module.
	* doc/posix-functions/fabs.texi: Mention the 'fabs' module.
	* doc/posix-functions/fmod.texi: Mention the 'fmod' module.
	* doc/posix-functions/hypot.texi: Mention the 'hypot' module.
	* doc/posix-functions/j0.texi: Mention the 'j0' module.
	* doc/posix-functions/j1.texi: Mention the 'j1' module.
	* doc/posix-functions/jn.texi: Mention the 'jn' module.
	* doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
	* doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
	* doc/posix-functions/log.texi: Mention the 'log' module.
	* doc/posix-functions/log10.texi: Mention the 'log10' module.
	* doc/posix-functions/log1p.texi: Mention the 'log1p' module.
	* doc/posix-functions/logb.texi: Mention the 'logb' module.
	* doc/posix-functions/modf.texi: Mention the 'modf' module.
	* doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
	* doc/posix-functions/pow.texi: Mention the 'pow' module.
	* doc/posix-functions/remainder.texi: Mention the 'remainder' module.
	* doc/posix-functions/rint.texi: Mention the 'rint' module.
	* doc/posix-functions/sin.texi: Mention the 'sin' module.
	* doc/posix-functions/sinh.texi: Mention the 'sinh' module.
	* doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
	* doc/posix-functions/tan.texi: Mention the 'tan' module.
	* doc/posix-functions/tanh.texi: Mention the 'tanh' module.
	* doc/posix-functions/y0.texi: Mention the 'y0' module.
	* doc/posix-functions/y1.texi: Mention the 'y1' module.
	* doc/posix-functions/yn.texi: Mention the 'yn' module.

1536 1537
2010-01-18  Jim Meyering  <meyering@redhat.com>

1538 1539 1540
	ignore-value: relax license to LGPLv2+
	* modules/ignore-value (License): Relax to LGPLv2+.

1541 1542 1543 1544
	getdate: don't leak when TZ contains two or more '"'s
	* lib/getdate.y (get_date): Don't leak a copy of TZ for each
	double quote in TZ after the first one.

1545 1546 1547 1548
	readtokens: do not leak internal token_lengths buffer
	* lib/readtokens.c (readtokens): Free the local, lengths,
	when the supplied "token_lengths" parameter is NULL.

1549 1550
2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

1551 1552 1553 1554 1555
	Fix a couple of missing LIBTHREAD link failures on AIX.
	* modules/git-merge-changelog (git_merge_changelog_LDADD): Add
	$(LIBTHREAD).
	* modules/strsignal-tests (test_strsignal_LDADD): Likewise.

1556 1557 1558 1559
	Link test-poll against INET_PTON_LIB.
	* modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
	for inet_pton on Solaris 10.

1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571
2010-01-17  Bruno Haible  <bruno@clisp.org>

	unistdio/*-sprintf: Fix typo in module description.
	* modules/unistdio/u8-sprintf (Depends-on): Fix typo.
	* modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
	* modules/unistdio/u16-sprintf (Depends-on): Likewise.
	* modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
	* modules/unistdio/u32-sprintf (Depends-on): Likewise.
	* modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
	* modules/unistdio/ulc-sprintf (Depends-on): Likewise.
	Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.

1572 1573
2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

1574 1575 1576 1577
	gnulib-tool: fix filelist for AIX, HP-UX ksh.
	* gnulib-tool (func_filter_filelist): Do not quote possibly-empty
	variables in shell case patterns, for AIX and HP-UX ksh.

1578 1579 1580 1581 1582 1583
	Split large sed scripts, for HP-UX sed.
	* modules/stdio: Split sed scripts around 50 sed commands,
	to avoid HP-UX limit of 99 commands, in the near future.
	* modules/string: Likewise.
	* modules/unistd: Likewise.

1584 1585 1586 1587 1588 1589
	gnulib-tool: avoid writing in the current directory.
	* gnulib-tool (func_emit_lib_Makefile_am)
	(func_emit_tests_Makefile_am): Put temporary files in $tmp,
	not in the current directory, so concurrent gnulib-tool
	instances do not interfere.

Jim Meyering's avatar
Jim Meyering committed
1590 1591 1592 1593 1594 1595
2010-01-16  Jim Meyering  <meyering@redhat.com>

	doc: update users.txt
	* users.txt: Add grep.
	(diffutils, gzip): Update URLs.

1596 1597 1598 1599 1600 1601 1602
2010-01-12  Bruno Haible  <bruno@clisp.org>

	posix_spawn: Avoid test failure on Cygwin.
	* tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
	characters.
	Reported by Simon Josefsson.

1603 1604 1605 1606
2010-01-12  Bruno Haible  <bruno@clisp.org>

	* tests/test-cond.c (main): When skipping the test, show the reason.

1607 1608 1609 1610
2010-01-12  Simon Josefsson  <simon@josefsson.org>

	* lib/striconv.c (str_cd_iconv): Avoid if before free.

1611 1612 1613 1614 1615
2010-01-12  Simon Josefsson  <simon@josefsson.org>

	* top/maint.mk (VC_LIST_EXCEPT): Filter list through
	VC_LIST_ALWAYS_EXCLUDE_REGEX.

1616 1617 1618 1619 1620 1621 1622 1623
2010-01-12  Eric Blake  <ebb9@byu.net>

	build: guarantee AS_VAR_IF
	* m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
	(gl_AS_VAR_IF): Move...
	* m4/gnulib-common.m4 (AS_VAR_IF): ...here.
	Reported by Simon Josefsson.

1624 1625 1626 1627
2010-01-12  Simon Josefsson  <simon@josefsson.org>

	* lib/stdio.in.h: Fix typo.

1628 1629 1630 1631 1632
2010-01-12  Simon Josefsson  <simon@josefsson.org>

	* m4/gc.m4: Check if linking to libgcrypt also needs linking to
	libgpg-error.

1633 1634 1635 1636
2010-01-12  Simon Josefsson  <simon@josefsson.org>

	* tests/test-xalloc-die.sh: Use $EXEEXT.

1637
2010-01-12  Simon Josefsson  <simon@josefsson.org>
1638
	    Bruno Haible  <bruno@clisp.org>
1639 1640 1641 1642 1643 1644 1645 1646 1647

	getlogin, getlogin_r: Avoid test failure.
	* tests/test-getlogin.c: Include <stdio.h>.
	(main): Skip the test when the function fails because stdin is not a
	tty.
	* tests/test-getlogin_r.c: Include <stdio.h>.
	(main): Skip the test when the function fails because stdin is not a
	tty.

1648 1649 1650 1651 1652 1653
2010-01-11  Eric Blake  <ebb9@byu.net>

	tests: avoid more large file warnings
	* tests/test-fflush.c: Avoid warning about ftell use.
	* tests/test-fseek.c: Avoid warning about fseek use.

Bruno Haible's avatar
Bruno Haible committed
1654 1655
2010-01-10  Bruno Haible  <bruno@clisp.org>

1656 1657 1658 1659 1660 1661 1662
	nproc: Work better on Linux when /proc and /sys are not mounted.
	* lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
	as lower bound when, on glibc/Linux systems,
	sysconf (_SC_NPROCESSORS_CONF) returns 1.
	Suggested by Pádraig Brady <P@draigbrady.com>.
	Reported by Dmitry V. Levin <ldv@altlinux.org>.

Bruno Haible's avatar
Bruno Haible committed
1663 1664 1665 1666 1667
	nproc: Refactor.
	* lib/nproc.c (num_processors_via_affinity_mask): New function,
	extracted from num_processors.
	(num_processors): Call it.

1668 1669 1670 1671 1672 1673
2010-01-11  Jim Meyering  <meyering@redhat.com>

	utimecmp: avoid new warning from upcoming gcc-4.5.0
	* lib/utimecmp.c (BILLION): Define using #define rather than an
	anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.

Eric Blake's avatar
Eric Blake committed
1674 1675
2010-01-11  Eric Blake  <ebb9@byu.net>

1676 1677 1678 1679 1680 1681 1682 1683 1684
	math: add portability warnings for classification macros
	* modules/math (Depends-on): Add warn-on-use.
	(Makefile.am): Provide new substitutions.
	* m4/math_h.m4 (gl_MATH_H): Require inline.
	* lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
	(_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
	(isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
	implement warnings.

1685 1686 1687 1688 1689 1690
	unistd: warn on use of environ without module
	* modules/unistd (Depends-on): Add warn-on-use.
	(Makefile.am): Provide new substitutions.
	* m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
	* lib/unistd.in.h (environ): Wrap with a warning helper function.

1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709
	stdio: warn on suspicious uses
	* modules/stdio (Depends-on): Add warn-on-use.
	(Makefile.am): Provide new substitutions.
	* m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
	fseeko.
	* lib/stdio.in.h (gets): Always warn on use.
	(fseek, ftell): Adjust when warnings are issued, and honor
	_GL_NO_LARGE_FILES as a way to silence the warning.
	* tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
	any warning about large file offsets.
	* tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
	* tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
	* tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
	* tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
	* tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
	* tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
	* tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
	* tests/test-getopt.c [!GNULIB_FTELL]: Likewise.

Eric Blake's avatar
Eric Blake committed
1710 1711 1712 1713 1714 1715
	warn-on-use: new module
	* modules/warn-on-use: New file.
	* build-aux/warn-on-use.h: Likewise.
	* m4/warn-on-use.m4: Likewise.
	* MODULES.html.sh (Support for building): Mention it.

1716 1717
2010-01-10  Bruno Haible  <bruno@clisp.org>

1718 1719 1720 1721
	Tests for module 'unistr/u32-strdup'.
	* modules/unistr/u32-strdup-tests: New file.
	* tests/unistr/test-u32-strdup.c: New file.

1722 1723 1724 1725
	Tests for module 'unistr/u16-strdup'.
	* modules/unistr/u16-strdup-tests: New file.
	* tests/unistr/test-u16-strdup.c: New file.

1726 1727 1728 1729 1730
	Tests for module 'unistr/u8-strdup'.
	* modules/unistr/u8-strdup-tests: New file.
	* tests/unistr/test-u8-strdup.c: New file.
	* tests/unistr/test-strdup.h: New file.

1731 1732 1733 1734
	Tests for module 'unistr/u32-strncmp'.
	* modules/unistr/u32-strncmp-tests: New file.
	* tests/unistr/test-u32-strncmp.c: New file.

1735 1736 1737 1738
	Tests for module 'unistr/u16-strncmp'.
	* modules/unistr/u16-strncmp-tests: New file.
	* tests/unistr/test-u16-strncmp.c: New file.

1739 1740 1741 1742 1743
	Tests for module 'unistr/u8-strncmp'.
	* modules/unistr/u8-strncmp-tests: New file.
	* tests/unistr/test-u8-strncmp.c: New file.
	* tests/unistr/test-strncmp.h: New file.

1744 1745 1746 1747
	Tests for module 'unistr/u32-strcoll'.
	* modules/unistr/u32-strcoll-tests: New file.
	* tests/unistr/test-u32-strcoll.c: New file.

1748 1749 1750 1751
	Tests for module 'unistr/u16-strcoll'.
	* modules/unistr/u16-strcoll-tests: New file.
	* tests/unistr/test-u16-strcoll.c: New file.

1752 1753 1754 1755
	Tests for module 'unistr/u8-strcoll'.
	* modules/unistr/u8-strcoll-tests: New file.
	* tests/unistr/test-u8-strcoll.c: New file.

1756 1757 1758 1759 1760
	Tests for module 'unistr/u32-strcmp'.
	* modules/unistr/u32-strcmp-tests: New file.
	* tests/unistr/test-u32-strcmp.c: New file.
	* tests/unistr/test-u32-strcmp.h: New file.

1761 1762 1763 1764 1765
	Tests for module 'unistr/u16-strcmp'.
	* modules/unistr/u16-strcmp-tests: New file.
	* tests/unistr/test-u16-strcmp.c: New file.
	* tests/unistr/test-u16-strcmp.h: New file.

1766 1767 1768 1769 1770 1771
	Tests for module 'unistr/u8-strcmp'.
	* modules/unistr/u8-strcmp-tests: New file.
	* tests/unistr/test-u8-strcmp.c: New file.
	* tests/unistr/test-u8-strcmp.h: New file.
	* tests/unistr/test-strcmp.h: New file.

1772 1773 1774 1775
	Tests for module 'unistr/u32-strncat'.
	* modules/unistr/u32-strncat-tests: New file.
	* tests/unistr/test-u32-strncat.c: New file.

1776 1777 1778 1779
	Tests for module 'unistr/u16-strncat'.
	* modules/unistr/u16-strncat-tests: New file.
	* tests/unistr/test-u16-strncat.c: New file.

1780 1781 1782 1783 1784
	Tests for module 'unistr/u8-strncat'.
	* modules/unistr/u8-strncat-tests: New file.
	* tests/unistr/test-u8-strncat.c: New file.
	* tests/unistr/test-strncat.h: New file.

1785 1786 1787 1788
	Tests for module 'unistr/u32-strcat'.
	* modules/unistr/u32-strcat-tests: New file.
	* tests/unistr/test-u32-strcat.c: New file.

1789 1790 1791 1792
	Tests for module 'unistr/u16-strcat'.
	* modules/unistr/u16-strcat-tests: New file.
	* tests/unistr/test-u16-strcat.c: New file.

1793 1794 1795 1796 1797
	Tests for module 'unistr/u8-strcat'.
	* modules/unistr/u8-strcat-tests: New file.
	* tests/unistr/test-u8-strcat.c: New file.
	* tests/unistr/test-strcat.h: New file.

1798 1799 1800 1801
	Tests for module 'unistr/u32-stpncpy'.
	* modules/unistr/u32-stpncpy-tests: New file.
	* tests/unistr/test-u32-stpncpy.c: New file.

1802 1803 1804 1805
	Tests for module 'unistr/u16-stpncpy'.
	* modules/unistr/u16-stpncpy-tests: New file.
	* tests/unistr/test-u16-stpncpy.c: New file.

1806 1807 1808 1809 1810
	Tests for module 'unistr/u8-stpncpy'.
	* modules/unistr/u8-stpncpy-tests: New file.
	* tests/unistr/test-u8-stpncpy.c: New file.
	* tests/unistr/test-stpncpy.h: New file.

1811 1812 1813 1814
	Tests for module 'unistr/u32-strncpy'.
	* modules/unistr/u32-strncpy-tests: New file.
	* tests/unistr/test-u32-strncpy.c: New file.

1815 1816 1817 1818
	Tests for module 'unistr/u16-strncpy'.
	* modules/unistr/u16-strncpy-tests: New file.
	* tests/unistr/test-u16-strncpy.c: New file.

1819 1820 1821 1822 1823
	Tests for module 'unistr/u8-strncpy'.
	* modules/unistr/u8-strncpy-tests: New file.
	* tests/unistr/test-u8-strncpy.c: New file.
	* tests/unistr/test-strncpy.h: New file.

1824 1825 1826 1827
	Tests for module 'unistr/u32-stpcpy'.
	* modules/unistr/u32-stpcpy-tests: New file.
	* tests/unistr/test-u32-stpcpy.c: New file.

1828 1829 1830 1831
	Tests for module 'unistr/u16-stpcpy'.
	* modules/unistr/u16-stpcpy-tests: New file.
	* tests/unistr/test-u16-stpcpy.c: New file.

1832 1833 1834 1835 1836
	Tests for module 'unistr/u8-stpcpy'.
	* modules/unistr/u8-stpcpy-tests: New file.
	* tests/unistr/test-u8-stpcpy.c: New file.
	* tests/unistr/test-stpcpy.h: New file.

1837 1838 1839 1840
	Tests for module 'unistr/u32-strcpy'.
	* modules/unistr/u32-strcpy-tests: New file.
	* tests/unistr/test-u32-strcpy.c: New file.

1841 1842 1843 1844
	Tests for module 'unistr/u16-strcpy'.
	* modules/unistr/u16-strcpy-tests: New file.
	* tests/unistr/test-u16-strcpy.c: New file.

1845 1846 1847 1848 1849
	Tests for module 'unistr/u8-strcpy'.
	* modules/unistr/u8-strcpy-tests: New file.
	* tests/unistr/test-u8-strcpy.c: New file.
	* tests/unistr/test-strcpy.h: New file.

1850 1851 1852 1853
	Tests for module 'unistr/u32-strnlen'.
	* modules/unistr/u32-strnlen-tests: New file.
	* tests/unistr/test-u32-strnlen.c: New file.

1854 1855 1856 1857
	Tests for module 'unistr/u16-strnlen'.
	* modules/unistr/u16-strnlen-tests: New file.
	* tests/unistr/test-u16-strnlen.c: New file.

1858 1859 1860 1861 1862
	Tests for module 'unistr/u8-strnlen'.
	* modules/unistr/u8-strnlen-tests: New file.
	* tests/unistr/test-u8-strnlen.c: New file.
	* tests/unistr/test-strnlen.h: New file.

1863 1864 1865 1866
	Tests for module 'unistr/u32-strlen'.
	* modules/unistr/u32-strlen-tests: New file.
	* tests/unistr/test-u32-strlen.c: New file.

1867 1868 1869 1870
	Tests for module 'unistr/u16-strlen'.
	* modules/unistr/u16-strlen-tests: New file.
	* tests/unistr/test-u16-strlen.c: New file.

1871 1872 1873 1874
	Tests for module 'unistr/u8-strlen'.
	* modules/unistr/u8-strlen-tests: New file.
	* tests/unistr/test-u8-strlen.c: New file.

1875 1876 1877 1878
	Tests for module 'unistr/u32-prev'.
	* modules/unistr/u32-prev-tests: New file.
	* tests/unistr/test-u32-prev.c: New file.

1879 1880 1881 1882
	Tests for module 'unistr/u16-prev'.
	* modules/unistr/u16-prev-tests: New file.
	* tests/unistr/test-u16-prev.c: New file.

1883 1884 1885 1886
	Tests for module 'unistr/u8-prev'.
	* modules/unistr/u8-prev-tests: New file.
	* tests/unistr/test-u8-prev.c: New file.

1887 1888 1889 1890
	Tests for module 'unistr/u32-next'.
	* modules/unistr/u32-next-tests: New file.
	* tests/unistr/test-u32-next.c: New file.

1891 1892 1893 1894
	Tests for module 'unistr/u16-next'.
	* modules/unistr/u16-next-tests: New file.
	* tests/unistr/test-u16-next.c: New file.

1895 1896 1897 1898
	Tests for module 'unistr/u8-next'.
	* modules/unistr/u8-next-tests: New file.
	* tests/unistr/test-u8-next.c: New file.

1899 1900 1901 1902
	Tests for module 'unistr/u32-strmbtouc'.
	* modules/unistr/u32-strmbtouc-tests: New file.
	* tests/unistr/test-u32-strmbtouc.c: New file.

1903 1904 1905 1906
	Tests for module 'unistr/u16-strmbtouc'.
	* modules/unistr/u16-strmbtouc-tests: New file.
	* tests/unistr/test-u16-strmbtouc.c: New file.

1907 1908 1909 1910
	Tests for module 'unistr/u8-strmbtouc'.
	* modules/unistr/u8-strmbtouc-tests: New file.
	* tests/unistr/test-u8-strmbtouc.c: New file.

1911 1912 1913 1914
	Tests for module 'unistr/u32-strmblen'.
	* modules/unistr/u32-strmblen-tests: New file.
	* tests/unistr/test-u32-strmblen.c: New file.

1915 1916 1917 1918
	Tests for module 'unistr/u16-strmblen'.
	* modules/unistr/u16-strmblen-tests: New file.
	* tests/unistr/test-u16-strmblen.c: New file.

1919 1920 1921 1922
	Tests for module 'unistr/u8-strmblen'.
	* modules/unistr/u8-strmblen-tests: New file.
	* tests/unistr/test-u8-strmblen.c: New file.

1923 1924 1925 1926
	Tests for module 'unistr/u32-cpy-alloc'.
	* modules/unistr/u32-cpy-alloc-tests: New file.
	* tests/unistr/test-u32-cpy-alloc.c: New file.

1927 1928 1929 1930
	Tests for module 'unistr/u16-cpy-alloc'.
	* modules/unistr/u16-cpy-alloc-tests: New file.
	* tests/unistr/test-u16-cpy-alloc.c: New file.

1931 1932 1933 1934 1935
	Tests for module 'unistr/u8-cpy-alloc'.
	* modules/unistr/u8-cpy-alloc-tests: New file.
	* tests/unistr/test-u8-cpy-alloc.c: New file.
	* tests/unistr/test-cpy-alloc.h: New file.

1936 1937 1938 1939
	Tests for module 'unistr/u32-mbsnlen'.
	* modules/unistr/u32-mbsnlen-tests: New file.
	* tests/unistr/test-u32-mbsnlen.c: New file.

1940 1941 1942 1943
	Tests for module 'unistr/u16-mbsnlen'.
	* modules/unistr/u16-mbsnlen-tests: New file.
	* tests/unistr/test-u16-mbsnlen.c: New file.

1944 1945 1946 1947
	Tests for module 'unistr/u8-mbsnlen'.
	* modules/unistr/u8-mbsnlen-tests: New file.
	* tests/unistr/test-u8-mbsnlen.c: New file.

1948 1949 1950 1951
	Tests for module 'unistr/u32-chr'.
	* modules/unistr/u32-chr-tests: New file.
	* tests/unistr/test-u32-chr.c: New file.

1952 1953 1954 1955
	Tests for module 'unistr/u16-chr'.
	* modules/unistr/u16-chr-tests: New file.
	* tests/unistr/test-u16-chr.c: New file.

1956 1957 1958 1959 1960
	Tests for module 'unistr/u8-chr'.
	* modules/unistr/u8-chr-tests: New file.
	* tests/unistr/test-u8-chr.c: New file.
	* tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.

1961 1962 1963 1964
	Tests for module 'unistr/u32-cmp2'.
	* modules/unistr/u32-cmp2-tests: New file.
	* tests/unistr/test-u32-cmp2.c: New file.

1965 1966 1967 1968
	Tests for module 'unistr/u16-cmp2'.
	* modules/unistr/u16-cmp2-tests: New file.
	* tests/unistr/test-u16-cmp2.c: New file.

1969 1970 1971 1972 1973
	Tests for module 'unistr/u8-cmp2'.
	* modules/unistr/u8-cmp2-tests: New file.
	* tests/unistr/test-u8-cmp2.c: New file.
	* tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.

1974 1975 1976 1977
	Tests for module 'unistr/u32-cmp'.
	* modules/unistr/u32-cmp-tests: New file.
	* tests/unistr/test-u32-cmp.c: New file.

1978 1979 1980 1981
	Tests for module 'unistr/u16-cmp'.
	* modules/unistr/u16-cmp-tests: New file.
	* tests/unistr/test-u16-cmp.c: New file.

1982 1983 1984 1985 1986
	Tests for module 'unistr/u8-cmp'.
	* modules/unistr/u8-cmp-tests: New file.
	* tests/unistr/test-u8-cmp.c: New file.
	* tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.

1987 1988 1989 1990
	Tests for module 'unistr/u32-set'.
	* modules/unistr/u32-set-tests: New file.
	* tests/unistr/test-u32-set.c: New file.

1991 1992 1993 1994
	Tests for module 'unistr/u16-set'.
	* modules/unistr/u16-set-tests: New file.
	* tests/unistr/test-u16-set.c: New file.

1995 1996 1997 1998 1999
	Tests for module 'unistr/u8-set'.
	* modules/unistr/u8-set-tests: New file.
	* tests/unistr/test-u8-set.c: New file.
	* tests/unistr/test-set.h: New file.

2000 2001 2002 2003
	Tests for module 'unistr/u32-move'.
	* modules/unistr/u32-move-tests: New file.
	* tests/unistr/test-u32-move.c: New file.

2004 2005 2006 2007
	Tests for module 'unistr/u16-move'.
	* modules/unistr/u16-move-tests: New file.
	* tests/unistr/test-u16-move.c: New file.

2008 2009 2010 2011 2012
	Tests for module 'unistr/u8-move'.
	* modules/unistr/u8-move-tests: New file.
	* tests/unistr/test-u8-move.c: New file.
	* tests/unistr/test-move.h: New file.

2013 2014 2015 2016
	Tests for module 'unistr/u32-cpy'.
	* modules/unistr/u32-cpy-tests: New file.
	* tests/unistr/test-u32-cpy.c: New file.

2017 2018 2019 2020
	Tests for module 'unistr/u16-cpy'.
	* modules/unistr/u16-cpy-tests: New file.
	* tests/unistr/test-u16-cpy.c: New file.

2021 2022 2023 2024 2025
	Tests for module 'unistr/u8-cpy'.
	* modules/unistr/u8-cpy-tests: New file.
	* tests/unistr/test-u8-cpy.c: New file.
	* tests/unistr/test-cpy.h: New file.

Bruno Haible's avatar
Bruno Haible committed
2026 2027
2010-01-09  Bruno Haible  <bruno@clisp.org>

2028 2029 2030 2031
	Tests for module 'unistr/u32-uctomb'.
	* modules/unistr/u32-uctomb-tests: New file.
	* tests/unistr/test-u32-uctomb.c: New file.

2032 2033 2034 2035
	Tests for module 'unistr/u16-uctomb'.
	* modules/unistr/u16-uctomb-tests: New file.
	* tests/unistr/test-u16-uctomb.c: New file.

2036 2037 2038 2039
	Tests for module 'unistr/u8-uctomb'.
	* modules/unistr/u8-uctomb-tests: New file.
	* tests/unistr/test-u8-uctomb.c: New file.

2040 2041 2042 2043
	Tests for module 'unistr/u32-mbtoucr'.
	* modules/unistr/u32-mbtoucr-tests: New file.
	* tests/unistr/test-u32-mbtoucr.c: New file.

2044 2045 2046 2047
	Tests for module 'unistr/u16-mbtoucr'.
	* modules/unistr/u16-mbtoucr-tests: New file.
	* tests/unistr/test-u16-mbtoucr.c: New file.

2048 2049 2050 2051
	Tests for module 'unistr/u8-mbtoucr'.
	* modules/unistr/u8-mbtoucr-tests: New file.
	* tests/unistr/test-u8-mbtoucr.c: New file.

2052 2053 2054 2055
	Tests for module 'unistr/u32-mbtouc'.
	* modules/unistr/u32-mbtouc-tests: New file.
	* tests/unistr/test-u32-mbtouc.c: New file.

2056 2057 2058 2059
	Tests for module 'unistr/u16-mbtouc'.
	* modules/unistr/u16-mbtouc-tests: New file.
	* tests/unistr/test-u16-mbtouc.c: New file.

2060 2061 2062 2063
	Tests for module 'unistr/u8-mbtouc'.
	* modules/unistr/u8-mbtouc-tests: New file.
	* tests/unistr/test-u8-mbtouc.c: New file.

2064 2065 2066 2067 2068
	Tests for module 'unistr/u32-mbtouc-unsafe'.
	* modules/unistr/u32-mbtouc-unsafe-tests: New file.
	* tests/unistr/test-u32-mbtouc-unsafe.c: New file.
	* tests/unistr/test-u32-mbtouc.h: New file.

2069 2070 2071 2072 2073
	Tests for module 'unistr/u16-mbtouc-unsafe'.
	* modules/unistr/u16-mbtouc-unsafe-tests: New file.
	* tests/unistr/test-u16-mbtouc-unsafe.c: New file.
	* tests/unistr/test-u16-mbtouc.h: New file.

2074 2075 2076 2077 2078
	Tests for module 'unistr/u8-mbtouc-unsafe'.
	* modules/unistr/u8-mbtouc-unsafe-tests: New file.
	* tests/unistr/test-u8-mbtouc-unsafe.c: New file.
	* tests/unistr/test-u8-mbtouc.h: New file.

2079 2080 2081 2082
	Tests for module 'unistr/u32-mblen'.
	* modules/unistr/u32-mblen-tests: New file.
	* tests/unistr/test-u32-mblen.c: New file.

2083 2084 2085 2086
	Tests for module 'unistr/u16-mblen'.
	* modules/unistr/u16-mblen-tests: New file.
	* tests/unistr/test-u16-mblen.c: New file.

2087 2088 2089 2090
	Tests for module 'unistr/u8-mblen'.
	* modules/unistr/u8-mblen-tests: New file.
	* tests/unistr/test-u8-mblen.c: New file.

2091 2092 2093 2094
	Tests for module 'unistr/u32-to-u16'.
	* modules/unistr/u32-to-u16-tests: New file.
	* tests/unistr/test-u32-to-u16.c: New file.

2095 2096 2097 2098
	Tests for module 'unistr/u32-to-u8'.
	* modules/unistr/u32-to-u8-tests: New file.
	* tests/unistr/test-u32-to-u8.c: New file.

2099 2100 2101 2102
	Tests for module 'unistr/u16-to-u32'.
	* modules/unistr/u16-to-u32-tests: New file.
	* tests/unistr/test-u16-to-u32.c: New file.

2103 2104 2105 2106
	Tests for module 'unistr/u16-to-u8'.
	* modules/unistr/u16-to-u8-tests: New file.
	* tests/unistr/test-u16-to-u8.c: New file.

2107 2108 2109 2110
	Tests for module 'unistr/u8-to-u32'.
	* modules/unistr/u8-to-u32-tests: New file.
	* tests/unistr/test-u8-to-u32.c: New file.

2111 2112 2113 2114
	Tests for module 'unistr/u8-to-u16'.
	* modules/unistr/u8-to-u16-tests: New file.
	* tests/unistr/test-u8-to-u16.c: New file.

2115 2116 2117 2118
	Tests for module 'unistr/u32-check'.
	* modules/unistr/u32-check-tests: New file.
	* tests/unistr/test-u32-check.c: New file.

2119 2120 2121 2122
	Tests for module 'unistr/u16-check'.
	* modules/unistr/u16-check-tests: New file.
	* tests/unistr/test-u16-check.c: New file.

2123 2124 2125 2126
	Tests for module 'unistr/u8-check'.
	* modules/unistr/u8-check-tests: New file.
	* tests/unistr/test-u8-check.c: New file.

Bruno Haible's avatar
Bruno Haible committed
2127 2128 2129 2130 2131
	* tests/unictype/test-categ_byname.c: Include <stdbool.h>.
	(category_equals): New function.
	(main): Add more tests.
	* modules/unictype/category-byname-tests (Depends-on): Add stdbool.

Bruno Haible's avatar
Bruno Haible committed
2132 2133
	* tests/unictype/test-bidi_byname.c (main): Add more tests.

2134 2135 2136 2137 2138 2139
2010-01-10  Bruno Haible  <bruno@clisp.org>

	unistr/u*-strcoll: Try harder to distinguish different strings.
	* lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
	compare s1 and s2 to see if they are different.

2140 2141 2142 2143 2144 2145 2146 2147
2010-01-10  Bruno Haible  <bruno@clisp.org>

	unistr/u*-stpncpy: Fix the return value.
	* lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
	description of the return value consistent with stpncpy in glibc.
	* lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
	written non-NUL unit.

2148 2149 2150 2151 2152 2153 2154
2010-01-10  Bruno Haible  <bruno@clisp.org>

	unistr/u*-next: Add missing dependencies.
	* modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
	* modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
	* modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.

2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166
2010-01-10  Bruno Haible  <bruno@clisp.org>

	unistr/u8-mbsnlen: Fix return value for incomplete character.
	* lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
	u8_mblen.
	* modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
	Remove unistr/u8-mblen.
	* lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
	u16_mblen.
	* modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
	Remove unistr/u16-mblen.

2167 2168 2169 2170 2171 2172 2173 2174
2010-01-10  Bruno Haible  <bruno@clisp.org>

	wchar: Fix compilation error when <wchar.h> is used from coreutils.
	* lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
	Reported by Brian Gough <bjg@gnu.org> and
	Chris Clayton <chris2553@googlemail.com> via
	Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.

2175 2176
2010-01-09  Bruno Haible  <bruno@clisp.org>

2177 2178 2179 2180 2181 2182
	unistr/u16-to-u32: Reject invalid input.
	* lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
	u16_mbtouc.
	* modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
	Remove unistr/u16-mbtouc.

2183 2184 2185 2186 2187 2188
	unistr/u16-to-u8: Reject invalid input.
	* lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
	u16_mbtouc.
	* modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
	Remove unistr/u16-mbtouc.

2189 2190 2191 2192 2193 2194
	unistr/u8-to-u32: Reject invalid input.
	* lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
	u8_mbtouc.
	* modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
	Remove unistr/u8-mbtouc.

2195 2196 2197 2198 2199 2200
	unistr/u8-to-u16: Reject invalid input.
	* lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
	u8_mbtouc.
	* modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
	Remove unistr/u8-mbtouc.

Bruno Haible's avatar
Bruno Haible committed
2201 2202
2010-01-09  Bruno Haible  <bruno@clisp.org>

2203 2204 2205 2206
	Tests for module 'getlogin'.
	* modules/getlogin-tests: New file.
	* tests/test-getlogin.c: New file.

Bruno Haible's avatar
Bruno Haible committed
2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218
	New module 'getlogin'.
	* lib/unistd.in.h (getlogin): New declaration.
	* lib/getlogin.c: New file.
	* m4/getlogin.m4: New file.
	* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
	HAVE_GETLOGIN.
	* modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
	HAVE_GETLOGIN.
	* modules/getlogin: New file.
	* doc/posix-functions/getlogin.texi: Mention the new module.
	Reported by John W. Eaton <jwe@gnu.org>.

2219 2220 2221 2222 2223 2224
2010-01-09  Bruno Haible  <bruno@clisp.org>

	getlogin_r: Support for native Windows.
	* lib/getlogin_r.c: Include <windows.h>
	(getlogin_r): Implement for native Windows.
	* tests/test-getlogin_r.c (main): Also test with a huge buffer.
2225 2226
	Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
	via John W. Eaton <jwe@gnu.org>.
2227

Bruno Haible's avatar
Bruno Haible committed
2228 2229 2230 2231 2232 2233 2234 2235 2236 2237
2010-01-09  Bruno Haible  <bruno@clisp.org>

	getlogin_r: Small fixes.
	* lib/getlogin_r.c (getlogin_r): Don't set errno if the function
	succeeds.
	* m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
	before testing whether getlogin_r is declared. No need to set
	HAVE_DECL_GETLOGIN_R to 1.
	(gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.

Bruno Haible's avatar
Bruno Haible committed
2238 2239 2240 2241
2010-01-09  Bruno Haible  <bruno@clisp.org>

	* lib/unistd.in.h (getlogin_r): Add comment.

2242 2243 2244 2245 2246 2247
2010-01-09  Bruno Haible  <bruno@clisp.org>

	Tests for module 'getlogin_r'.
	* modules/getlogin_r-tests: New file.
	* tests/test-getlogin_r.c: New file.

2248 2249 2250 2251 2252 2253
2010-01-09  Jim Meyering  <meyering@redhat.com>

	maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
	* top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
	also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.

2254 2255 2256 2257
2010-01-08  Simon Josefsson  <simon@josefsson.org>

	* lib/dup2.c (rpl_dup2): Improve comment.

Eric Blake's avatar
Eric Blake committed
2258 2259
2010-01-08  Eric Blake  <ebb9@byu.net>

2260 2261 2262 2263 2264
	maint.mk: allow packages to add makefile @@ exceptions
	* top/maint.mk (_makefile_at_at_check_exceptions): New hook.
	(sc_makefile_check): Rename...
	(sc_makefile_at_at_check): ...to this, and use hook.

Eric Blake's avatar
Eric Blake committed
2265 2266 2267 2268
	dup2: work around mingw bug
	* lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
	Reported by Simon Josefsson.

2269 2270 2271 2272 2273 2274
2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)

	glob: Fix C++ compilation.
	* lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
	C++.

2275 2276 2277 2278 2279
2010-01-07  Bruno Haible  <bruno@clisp.org>

	Fix indentation of wctype.in.h, broken since 2007-01-06.
	* lib/wctype.in.h: Fix indentation of preprocessor directives.

2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292
2010-01-07  Bruno Haible  <bruno@clisp.org>

	mbslen: Avoid collision with system function.
	* lib/string.in.h [MirBSD]: Include <wchar.h>.
	(mbslen): Undefine first. Alias mbslen to rpl_mbslen.
	* m4/mbslen.m4: New file.
	* modules/mbslen (Files): Add it.
	(configure.ac): Invoke gl_MBSLEN.
	* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
	* modules/string (Makefile.am): Substitute HAVE_MBSLEN.
	Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
	via Ian Beckwith <ianb@erislabs.net>.

2293 2294 2295 2296 2297
2010-01-07  Bruno Haible  <bruno@clisp.org>

	dirent: Document the last fix.
	* doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.

2298 2299 2300 2301 2302 2303 2304 2305 2306
2010-01-07  Bruno Haible  <bruno@clisp.org>

	stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
	* lib/stdio.in.h: Include <sys/types.h> unconditionally.
	* tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
	va_list are defined.
	* doc/posix-headers/stdio.texi: Document the bug of missing types.
	Reported by Eric Blake.

2307 2308 2309 2310 2311 2312 2313
2010-01-07  Bruno Haible  <bruno@clisp.org>

	xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
	* modules/xlist (Depends-on): Add 'list',
	* modules/xoset (Depends-on): Add 'oset'.
	Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.

2314 2315 2316 2317 2318
2010-01-07  Bruno Haible  <bruno@clisp.org>

	* doc/posix-functions/strcasecmp.texi: Clarify the platforms.
	* doc/posix-functions/strncasecmp.texi: Likewise.

2319 2320 2321 2322
2010-01-07  Bruno Haible  <bruno@clisp.org>

	* m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.

John W. Eaton's avatar
John W. Eaton committed
2323 2324 2325 2326 2327
2010-01-07  John W. Eaton  <jwe@octave.org>

	wctype: allow C++ use
	* lib/wctype.in.h: Add extern "C" block for C++.

2328 2329 2330 2331 2332
2010-01-06  Eric Blake  <ebb9@byu.net>

	maint.mk: detect incorrect GFDL usage
	* top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.

2333 2334 2335 2336 2337 2338
2010-01-06  Jim Meyering  <meyering@redhat.com>
	and Eric Blake  <ebb9@byu.net>

	maint.mk: ignore multi-line copyright in NEWS
	* top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.

Eric Blake's avatar
Eric Blake committed
2339 2340
2010-01-06  Eric Blake  <ebb9@byu.net>

2341 2342 2343 2344 2345
	select: add missing dependency
	* modules/select-tests (Depends-on): Move sockets dependency...
	* modules/select (Depends-on): ...here.
	Reported by Ian Beckwith.

Eric Blake's avatar
Eric Blake committed
2346 2347 2348 2349 2350
	doc: regenerate INSTALL
	* doc/INSTALL: Reflect recent autoconf update.
	* doc/INSTALL.ISO: Likewise.
	* doc/INSTALL.UTF-8: Likewise.

2351 2352 2353 2354
	pread: fix compilation on glibc
	* m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
	Reported by Ralf Wildenhues.

Eric Blake's avatar
Eric Blake committed
2355 2356 2357 2358
	dirent: fix test failure
	* lib/dirent.in.h (includes): Guarantee ino_t.
	Reported by Ralf Wildenhues.

2359 2360 2361 2362 2363 2364
2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)

	linkat, renameat: avoid bad free
	* lib/at-func2.c (at_func2): Fix typo.
	Reported via Ian Beckwith, from http://bugs.debian.org/561117.

2365 2366 2367 2368 2369 2370
2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
	* m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
	to avoid failure of symlink test later.

2371 2372 2373 2374 2375 2376 2377 2378
2010-01-06  Eric Blake  <ebb9@byu.net>

	stdio, unistd: guarantee ssize_t
	* lib/unistd.in.h (includes): Ensure that types required by POSIX
	2008 are exposed when needed.
	* lib/stdio.in.h (includes): Likewise.
	Reported by Ralf Wildenhues.

2379 2380 2381 2382 2383 2384
2010-01-06  Paolo Bonzini  <bonzini@gnu.org>

	nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
	* m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
	AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.

2385 2386 2387 2388 2389 2390 2391 2392
2010-01-06  Jim Meyering  <meyering@redhat.com>

	readtokens: this module *does* require xalloc.h
	It uses only functions that were omitted by the old syntax-check rule.
	* lib/readtokens.c: Include "xalloc.h" once again.
	* modules/readtokens (Depends-on): Add xalloc.
	This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.

2393 2394 2395 2396 2397
2010-01-05  Eric Blake  <ebb9@byu.net>

	maint: support 'make announcement' from a VPATH build
	* top/maint.mk (announcement): Look for correct NEWS file.

2398 2399 2400 2401 2402 2403 2404 2405 2406 2407
2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)

	utimens (fdutimens): ignore a negative FD, per contract
	* lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
	when we have a valid file descriptor.  Otherwise, using a brand
	new glibc (with just-patched futimens that now fails with EBADF)
	would cause this function to fail with ENOSYS.
	Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
	See also http://bugzilla.redhat.com/552320.

2408 2409 2410 2411 2412 2413 2414 2415
2010-01-05  Eric Blake  <ebb9@byu.net>

	strcase: document what it provides
	* doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
	gnulib module.
	* doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
	Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.

2416 2417
2010-01-05  Jim Meyering  <meyering@redhat.com>

2418 2419
	maint: remove useless inclusions of "xalloc.h"
	* lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
2420 2421
	* lib/readtokens.c: Likewise.
	* lib/same.c: Likewise.
2422
	* modules/getloadavg (Depends-on): Remove xalloc.
2423 2424 2425
	* modules/readtokens: Likewise.
	* modules/same: Likewise.

2426 2427 2428 2429 2430
	maint.mk: include 4 more function names in alloca.h-checking regexp
	* top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
	regexp.  Before, we would give a false-positive (saying alloca.h
	is included unnecessarily) when the only uses involved omitted symbols.

2431 2432 2433
	xalloc.h: use consistent formatting
	* lib/xalloc.h: Move declarations to start in the first column.

Eric Blake's avatar
Eric Blake committed
2434 2435 2436 2437 2438 2439
2010-01-05  Eric Blake  <ebb9@byu.net>

	mkdir: avoid xalloc
	* lib/mkdir.c (includes): Drop unused header.
	Reported by John W. Eaton.

2440 2441
2010-01-04  Jim Meyering  <meyering@redhat.com>

2442 2443 2444 2445 2446
	nl_langinfo: avoid configure-time syntax error
	* m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
	for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
	the empty string.  Don't let that provoke a shell syntax error.

2447 2448 2449 2450 2451 2452 2453 2454
	regcomp, regexec, fnmatch: avoid array bounds read error
	* lib/regcomp.c (build_equiv_class): From glibc:
	Use only the low 24 bits of a findidx return value as an index
	into the weights array.  Patch by Ulrich Drepper:
	http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
	* lib/regexec.c (check_node_accept_bytes): Likewise.
	* lib/fnmatch_loop.c (FCT): Likewise.

2455 2456 2457 2458
	regcomp: skip collseq lookup when there are no rules
	* lib/regcomp.c (lookup_collation_sequence_value): From glibc:
	http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58

2459 2460 2461 2462
	regcomp: recognize ill-formed { } expressions
	* lib/regcomp.c (parse_dup_op): From glibc:
	http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb

2463 2464 2465 2466
	regcomp: fix typo in comment
	* lib/regcomp.c (duplicate_node_closure): Sync from glibc.
	s/satisfy/satisfies/.

2467 2468 2469 2470
	regcomp: sync from glibc: remove dead store
	* lib/regcomp.c (duplicate_node_closure): Remove useless
	search_duplicated_node call and dead store.

2471 2472 2473 2474 2475
	regcomp: sync from glibc; always use nl_langinfo
	* lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
	now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
	* modules/regex (Depends-on): Add nl_langinfo.

2476 2477 2478 2479 2480
2010-01-04  Eric Blake  <ebb9@byu.net>

	fdopendir: fix configure test
	* m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.

2481 2482 2483 2484 2485
2010-01-01  Bruno Haible  <bruno@clisp.org>

	wchar: Remove unused configure check.
	* m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.

2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500
2010-01-01  Eric Blake  <ebb9@byu.net>

	headers: make check of system header explicit
	* m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
	gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
	ourselves.
	* m4/search_h.m4 (gl_SEARCH_H): Likewise.
	* m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
	* m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
	* m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
	internals.
	* m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
	missing.
	Suggested by Bruno Haible.