gnulib.git
14 years agomaint.mk: print the elapsed time for each syntax-check rule
Jim Meyering [Sun, 11 Apr 2010 08:26:52 +0000 (10:26 +0200)]
maint.mk: print the elapsed time for each syntax-check rule

* top/maint.mk (sc_m_rules_): Save start time in a file.
(sc_z_rules_): New rules: remove temp file and print elapsed time.
(local-check): Interpose the .z rules

14 years agomaint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
Jim Meyering [Sun, 11 Apr 2010 08:37:31 +0000 (10:37 +0200)]
maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file

* top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
empty file with one that ends in an empty line.

14 years agoUpdate comment.
Bruno Haible [Sat, 10 Apr 2010 23:55:23 +0000 (01:55 +0200)]
Update comment.

14 years agomkdir: Make it work on mingw64.
Bruno Haible [Sat, 10 Apr 2010 22:25:21 +0000 (00:25 +0200)]
mkdir: Make it work on mingw64.

14 years agoDon't override improved macro from newer autoconf.
Bruno Haible [Sat, 10 Apr 2010 20:40:52 +0000 (22:40 +0200)]
Don't override improved macro from newer autoconf.

14 years agomaint.mk: new syntax-check rule: prohibit empty lines at end of file
Jim Meyering [Sat, 10 Apr 2010 20:36:37 +0000 (22:36 +0200)]
maint.mk: new syntax-check rule: prohibit empty lines at end of file

* top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.

14 years agomaint.mk: correct a diagnostic
Jim Meyering [Sat, 10 Apr 2010 20:30:46 +0000 (22:30 +0200)]
maint.mk: correct a diagnostic

* top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
in diagnostic; now use $prohibit.

14 years agofchownat: Fix a C++ test error on Solaris 8.
Bruno Haible [Sat, 10 Apr 2010 20:30:16 +0000 (22:30 +0200)]
fchownat: Fix a C++ test error on Solaris 8.

14 years agovasnprintf: Add more tests.
Bruno Haible [Sat, 10 Apr 2010 20:26:56 +0000 (22:26 +0200)]
vasnprintf: Add more tests.

14 years agovasnprintf: Correct handling of unconvertible wide string arguments.
Bruno Haible [Sat, 10 Apr 2010 20:25:31 +0000 (22:25 +0200)]
vasnprintf: Correct handling of unconvertible wide string arguments.

14 years agovasnprintf: Fix crash in %ls directive.
Bruno Haible [Sat, 10 Apr 2010 20:17:02 +0000 (22:17 +0200)]
vasnprintf: Fix crash in %ls directive.

14 years agovasnprintf: Fix multiple test failures on mingw.
Bruno Haible [Sat, 10 Apr 2010 19:40:23 +0000 (21:40 +0200)]
vasnprintf: Fix multiple test failures on mingw.

14 years agowrite: Fix a C++ test error on mingw.
Bruno Haible [Sat, 10 Apr 2010 19:11:00 +0000 (21:11 +0200)]
write: Fix a C++ test error on mingw.

14 years agovasnprintf test: Reduce code duplication.
Bruno Haible [Sat, 10 Apr 2010 16:41:20 +0000 (18:41 +0200)]
vasnprintf test: Reduce code duplication.

14 years agostrnlen: Fix warning in C++ mode on MacOS X.
Bruno Haible [Sat, 10 Apr 2010 09:29:14 +0000 (11:29 +0200)]
strnlen: Fix warning in C++ mode on MacOS X.

14 years agoAdd missing parenthesis in manywarnings example
James Youngman [Thu, 8 Apr 2010 02:02:12 +0000 (03:02 +0100)]
Add missing parenthesis in manywarnings example

14 years agomaint.mk: print better diagnostic when there is no $(_hv_file)
Jim Meyering [Fri, 9 Apr 2010 20:36:26 +0000 (22:36 +0200)]
maint.mk: print better diagnostic when there is no $(_hv_file)

* top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
announce that when $(_hv_file) (aka help-version) does not exist.

14 years agoinit.sh: run tr in the "C" locale to avoid multibyte interpretation
Jim Meyering [Fri, 9 Apr 2010 18:53:49 +0000 (20:53 +0200)]
init.sh: run tr in the "C" locale to avoid multibyte interpretation

* tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
not try to interpret its random input bytes.  Jarno Rajahalme reported
that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence"
on Darwin 10.3.0 with LC_CTYPE=UTF-8.
(mktempd_): Likewise, just in case.

14 years agoftruncate: add two years to projected module removal date: 2012
Jim Meyering [Fri, 9 Apr 2010 17:14:37 +0000 (19:14 +0200)]
ftruncate: add two years to projected module removal date: 2012

* m4/ftruncate.m4: Adjust comments.

14 years agoAdd attribution to a ChangeLog entry.
Bruno Haible [Fri, 9 Apr 2010 09:08:15 +0000 (11:08 +0200)]
Add attribution to a ChangeLog entry.

14 years agoftruncate: mark module as obsolete; even MinGW provides it, now
Jim Meyering [Fri, 9 Apr 2010 08:44:23 +0000 (10:44 +0200)]
ftruncate: mark module as obsolete; even MinGW provides it, now

* modules/ftruncate (Status): Obsolete.
(Notice): Say that.
* doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203

14 years agoFix side effects from tests-related modules.
Bruno Haible [Fri, 9 Apr 2010 00:02:15 +0000 (02:02 +0200)]
Fix side effects from tests-related modules.

14 years agodoc fixes to srclist*
Karl Berry [Wed, 7 Apr 2010 23:02:50 +0000 (16:02 -0700)]
doc fixes to srclist*

14 years agomaint.mk: add a PATH crosschecking syntax-check rule
Jim Meyering [Wed, 7 Apr 2010 11:45:59 +0000 (13:45 +0200)]
maint.mk: add a PATH crosschecking syntax-check rule

* top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
Useful if you use a test like the one in help-version (coreutils,
diffutils, grep, gzip) that ensures $(VERSION) matches what is
printed by prog --version.

14 years agoFix link error on mingw.
Bruno Haible [Tue, 6 Apr 2010 22:26:31 +0000 (00:26 +0200)]
Fix link error on mingw.

14 years agoAssume rmdir exists.
Bruno Haible [Tue, 6 Apr 2010 21:23:00 +0000 (23:23 +0200)]
Assume rmdir exists.

14 years agodoc: update users.txt
Giuseppe Scrivano [Tue, 6 Apr 2010 19:26:32 +0000 (21:26 +0200)]
doc: update users.txt

* users.txt: Add gcal.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoinit.sh: simply unset TMPDIR rather than risking env -i
Jim Meyering [Tue, 6 Apr 2010 17:24:57 +0000 (19:24 +0200)]
init.sh: simply unset TMPDIR rather than risking env -i

* tests/init.sh (mktempd_): Using env -i is rather harsh, and
although it probably works fine on all Unix-based systems, some
systems (Cygwin?) cannot tolerate a totally cleared environment.
Suggestion from Eric Blake.

2010-04-06  Jim Meyering  <meyering@redhat.com>

14 years agoinit.sh: portability fix: use env's POSIX-specified -i option not -u
Jim Meyering [Tue, 6 Apr 2010 15:33:51 +0000 (17:33 +0200)]
init.sh: portability fix: use env's POSIX-specified -i option not -u

* tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
than unportable env -u.  Solaris 5.11's env lacks support for -u.

14 years agobtowc: Work around Cygwin 1.7.2 bug.
Bruno Haible [Mon, 5 Apr 2010 22:30:28 +0000 (00:30 +0200)]
btowc: Work around Cygwin 1.7.2 bug.

14 years agoMake the multithread modules work on Cygwin 1.7.2.
Bruno Haible [Mon, 5 Apr 2010 21:46:02 +0000 (23:46 +0200)]
Make the multithread modules work on Cygwin 1.7.2.

14 years agoUse the module 'strncat'.
Bruno Haible [Mon, 5 Apr 2010 19:17:47 +0000 (21:17 +0200)]
Use the module 'strncat'.

14 years agoTests for module 'strncat'.
Bruno Haible [Mon, 5 Apr 2010 19:17:09 +0000 (21:17 +0200)]
Tests for module 'strncat'.

14 years agoNew module 'strncat'.
Bruno Haible [Mon, 5 Apr 2010 19:14:58 +0000 (21:14 +0200)]
New module 'strncat'.

14 years agoxstrtoumax-tests: convert to use init.sh
Jim Meyering [Mon, 5 Apr 2010 17:30:38 +0000 (19:30 +0200)]
xstrtoumax-tests: convert to use init.sh

* modules/xstrtoumax-tests (Files): Add tests/init.sh.
* tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
Use Exit, not exit.
Remove uses of $EXEEXT and "./" to run a program in the current dir.

14 years agoxstrtoimax-tests: convert to use init.sh
Jim Meyering [Mon, 5 Apr 2010 16:27:15 +0000 (18:27 +0200)]
xstrtoimax-tests: convert to use init.sh

* modules/xstrtoimax-tests (Files): Add tests/init.sh.
* tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
Use Exit, not exit.
Remove uses of $EXEEXT and "./" to run a program in the current dir.

14 years agoxstrtol-tests: convert to use init.sh
Jim Meyering [Mon, 5 Apr 2010 14:32:41 +0000 (16:32 +0200)]
xstrtol-tests: convert to use init.sh

* modules/xstrtol-tests (Files): Add tests/init.sh.
* tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
Use Exit, not exit.
Remove uses of $EXEEXT and "./" to run a program in the current dir.

14 years agoatexit-tests: convert to use init.sh
Jim Meyering [Mon, 5 Apr 2010 14:12:55 +0000 (16:12 +0200)]
atexit-tests: convert to use init.sh

* modules/atexit-tests (Files): Add tests/init.sh.
* tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
Use Exit, not exit.
Remove uses of $EXEEXT and "./" to run a program in the current dir.

14 years agosys_socket: Avoid #define replacements in C++ mode.
Bruno Haible [Mon, 5 Apr 2010 16:34:08 +0000 (18:34 +0200)]
sys_socket: Avoid #define replacements in C++ mode.

14 years agofseeko: Fix C++ test error on mingw.
Bruno Haible [Mon, 5 Apr 2010 16:18:11 +0000 (18:18 +0200)]
fseeko: Fix C++ test error on mingw.

14 years agoduplocale: Improve test output.
Bruno Haible [Mon, 5 Apr 2010 15:26:55 +0000 (17:26 +0200)]
duplocale: Improve test output.

14 years agoAssume rmdir exists.
Bruno Haible [Mon, 5 Apr 2010 15:27:26 +0000 (17:27 +0200)]
Assume rmdir exists.

14 years agoAssume rmdir exists.
Bruno Haible [Mon, 5 Apr 2010 14:58:01 +0000 (16:58 +0200)]
Assume rmdir exists.

14 years agoFix link error on Solaris 8 with cc.
Bruno Haible [Mon, 5 Apr 2010 14:14:47 +0000 (16:14 +0200)]
Fix link error on Solaris 8 with cc.

14 years agofrexpl: Fix a C++ test error on Solaris 8 and Cygwin.
Bruno Haible [Mon, 5 Apr 2010 13:58:34 +0000 (15:58 +0200)]
frexpl: Fix a C++ test error on Solaris 8 and Cygwin.

14 years agovasprintf: Update documentation.
Bruno Haible [Mon, 5 Apr 2010 13:27:34 +0000 (15:27 +0200)]
vasprintf: Update documentation.

14 years agoptsname: Improve test.
Bruno Haible [Mon, 5 Apr 2010 11:15:11 +0000 (13:15 +0200)]
ptsname: Improve test.

14 years agomemchr: Avoid a possible C++ test error.
Bruno Haible [Mon, 5 Apr 2010 11:12:59 +0000 (13:12 +0200)]
memchr: Avoid a possible C++ test error.

14 years agostrtok_r: Improve idiom.
Bruno Haible [Mon, 5 Apr 2010 10:53:27 +0000 (12:53 +0200)]
strtok_r: Improve idiom.

14 years agostrdup: Improve idiom.
Bruno Haible [Mon, 5 Apr 2010 10:51:03 +0000 (12:51 +0200)]
strdup: Improve idiom.

14 years agombsinit, mbrtowc, wcrtomb: Improve idioms.
Bruno Haible [Mon, 5 Apr 2010 10:24:52 +0000 (12:24 +0200)]
mbsinit, mbrtowc, wcrtomb: Improve idioms.

14 years agoldexpl: Improve idiom.
Bruno Haible [Mon, 5 Apr 2010 09:55:38 +0000 (11:55 +0200)]
ldexpl: Improve idiom.

14 years agoinit.sh: fix typo
Jim Meyering [Mon, 5 Apr 2010 14:10:05 +0000 (16:10 +0200)]
init.sh: fix typo

* tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.

14 years agoupdate from texinfo
Karl Berry [Mon, 5 Apr 2010 13:42:37 +0000 (06:42 -0700)]
update from texinfo

14 years agoinit.sh: make it easier for a test script to write to the tty, ...
Jim Meyering [Mon, 5 Apr 2010 08:01:07 +0000 (10:01 +0200)]
init.sh: make it easier for a test script to write to the tty, ...

when using automake's parallel-tests mode.
* tests/init.sh (stderr_fileno_): Define overridable variable.
(warn_): New function, to use it.
(fail_, skip_, framework_failure_): Use warn_.

14 years agobtowc: Avoid warning.
Bruno Haible [Sun, 4 Apr 2010 23:37:37 +0000 (01:37 +0200)]
btowc: Avoid warning.

14 years agowchar: Port to NetBSD 1.5.
Hauke Fath [Sun, 4 Apr 2010 23:33:24 +0000 (01:33 +0200)]
wchar: Port to NetBSD 1.5.

14 years agoPort extended stdio to NetBSD 1.5.
Hauke Fath [Sun, 4 Apr 2010 23:13:18 +0000 (01:13 +0200)]
Port extended stdio to NetBSD 1.5.

14 years agostring: Remove unused substitution.
Bruno Haible [Sun, 4 Apr 2010 21:41:29 +0000 (23:41 +0200)]
string: Remove unused substitution.

14 years agostrtod: Avoid a possible C++ test error.
Bruno Haible [Sun, 4 Apr 2010 21:13:31 +0000 (23:13 +0200)]
strtod: Avoid a possible C++ test error.

14 years agostrerror: Update documentation.
Bruno Haible [Sun, 4 Apr 2010 21:07:50 +0000 (23:07 +0200)]
strerror: Update documentation.

14 years agostdio: Fix some C++ test errors on Solaris 8 with GCC.
Bruno Haible [Sun, 4 Apr 2010 20:42:59 +0000 (22:42 +0200)]
stdio: Fix some C++ test errors on Solaris 8 with GCC.

14 years agofrexpl: Fix a C++ test error on Solaris 8 and Cygwin.
Bruno Haible [Sun, 4 Apr 2010 20:13:20 +0000 (22:13 +0200)]
frexpl: Fix a C++ test error on Solaris 8 and Cygwin.

14 years agomath: Fix some C++ test errors on Solaris 8 and Cygwin.
Bruno Haible [Sun, 4 Apr 2010 19:18:03 +0000 (21:18 +0200)]
math: Fix some C++ test errors on Solaris 8 and Cygwin.

14 years agoImplement nanosleep for native Windows.
Bruno Haible [Sun, 4 Apr 2010 18:49:44 +0000 (20:49 +0200)]
Implement nanosleep for native Windows.

14 years agomath: Fix some C++ test errors on Solaris 8.
Bruno Haible [Sun, 4 Apr 2010 18:15:21 +0000 (20:15 +0200)]
math: Fix some C++ test errors on Solaris 8.

14 years agomath: Fix some C++ test errors on Cygwin.
Bruno Haible [Sun, 4 Apr 2010 17:59:32 +0000 (19:59 +0200)]
math: Fix some C++ test errors on Cygwin.

14 years agoautoupdate
Karl Berry [Sun, 4 Apr 2010 16:30:18 +0000 (09:30 -0700)]
autoupdate

14 years agoRemove redundant AC_SUBST invocations.
Bruno Haible [Sun, 4 Apr 2010 16:13:24 +0000 (18:13 +0200)]
Remove redundant AC_SUBST invocations.

14 years agoRemove redundant AC_SUBST invocation.
Bruno Haible [Sun, 4 Apr 2010 15:40:20 +0000 (17:40 +0200)]
Remove redundant AC_SUBST invocation.

14 years agoRename gl_TMPFILE.
Bruno Haible [Sun, 4 Apr 2010 14:26:00 +0000 (16:26 +0200)]
Rename gl_TMPFILE.

14 years agotmpfile: Fix C++ test error on mingw.
Bruno Haible [Sun, 4 Apr 2010 13:37:40 +0000 (15:37 +0200)]
tmpfile: Fix C++ test error on mingw.

14 years agoioctl: Fix C++ test error on mingw.
Bruno Haible [Sun, 4 Apr 2010 08:32:19 +0000 (10:32 +0200)]
ioctl: Fix C++ test error on mingw.

14 years agowcwidth: Fix C++ test error on mingw.
Bruno Haible [Sun, 4 Apr 2010 00:42:00 +0000 (02:42 +0200)]
wcwidth: Fix C++ test error on mingw.

14 years agonanosleep: Fix C++ test error on mingw.
Bruno Haible [Sun, 4 Apr 2010 00:12:01 +0000 (02:12 +0200)]
nanosleep: Fix C++ test error on mingw.

14 years agostrptime: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 18:23:47 +0000 (20:23 +0200)]
strptime: Fix C++ test error on mingw.

14 years agoOops, fix default value in the last commits.
Bruno Haible [Sat, 3 Apr 2010 17:54:49 +0000 (19:54 +0200)]
Oops, fix default value in the last commits.

14 years agotimegm: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 17:15:04 +0000 (19:15 +0200)]
timegm: Fix C++ test error on mingw.

14 years agotimegm: Assume declaration if function exists.
Bruno Haible [Sat, 3 Apr 2010 17:33:13 +0000 (19:33 +0200)]
timegm: Assume declaration if function exists.

14 years agotime_r: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 16:52:49 +0000 (18:52 +0200)]
time_r: Fix C++ test error on mingw.

14 years agotime_r: Minor updates.
Bruno Haible [Sat, 3 Apr 2010 16:43:42 +0000 (18:43 +0200)]
time_r: Minor updates.

14 years agotime: Fix regression introduced on 2010-03-08.
Bruno Haible [Sat, 3 Apr 2010 16:24:34 +0000 (18:24 +0200)]
time: Fix regression introduced on 2010-03-08.

14 years agomaint.mk: don't silently disable project-specific syntax-check rules
Jim Meyering [Sat, 3 Apr 2010 16:03:16 +0000 (18:03 +0200)]
maint.mk: don't silently disable project-specific syntax-check rules

* top/maint.mk (_prohibit_regexp): Define, to help people realize
that they need to convert their project-specific syntax-check rules
to use the new _sc_search_regexp.

14 years agofchdir: Fix regression introduced on 2010-03-08.
Bruno Haible [Sat, 3 Apr 2010 13:59:25 +0000 (15:59 +0200)]
fchdir: Fix regression introduced on 2010-03-08.

14 years agogetpagesize: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 13:43:45 +0000 (15:43 +0200)]
getpagesize: Fix C++ test error on mingw.

14 years agostdio: Make C++ tests work on mingw.
Bruno Haible [Sat, 3 Apr 2010 12:34:57 +0000 (14:34 +0200)]
stdio: Make C++ tests work on mingw.

14 years agoftello: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 12:25:24 +0000 (14:25 +0200)]
ftello: Fix C++ test error on mingw.

14 years agofseeko: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 12:08:25 +0000 (14:08 +0200)]
fseeko: Fix C++ test error on mingw.

14 years agomkstemp: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 11:44:41 +0000 (13:44 +0200)]
mkstemp: Fix C++ test error on mingw.

14 years agostpncpy: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 11:21:17 +0000 (13:21 +0200)]
stpncpy: Fix C++ test error on mingw.

14 years agosys_stat: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 10:55:17 +0000 (12:55 +0200)]
sys_stat: Fix C++ test error on mingw.

14 years agopty: Update doc.
Bruno Haible [Sat, 3 Apr 2010 10:37:54 +0000 (12:37 +0200)]
pty: Update doc.

14 years agounistd: Fix C++ test error on mingw.
Bruno Haible [Sat, 3 Apr 2010 10:30:09 +0000 (12:30 +0200)]
unistd: Fix C++ test error on mingw.

14 years agoUpdate doc regarding mingw.
Bruno Haible [Sat, 3 Apr 2010 10:14:13 +0000 (12:14 +0200)]
Update doc regarding mingw.

14 years agostdlib: Avoid compilation failure of c-strtold on mingw.
Bruno Haible [Sat, 3 Apr 2010 10:07:56 +0000 (12:07 +0200)]
stdlib: Avoid compilation failure of c-strtold on mingw.

14 years agolocale: Make C++ tests work on Cygwin and mingw.
Bruno Haible [Sat, 3 Apr 2010 09:57:20 +0000 (11:57 +0200)]
locale: Make C++ tests work on Cygwin and mingw.

14 years agolocalename: Port to MacOS X 10.6.
Bruno Haible [Sat, 3 Apr 2010 08:46:26 +0000 (10:46 +0200)]
localename: Port to MacOS X 10.6.

14 years agognulib-tool: Ensure that long-running tests are executed last.
Bruno Haible [Fri, 2 Apr 2010 18:04:45 +0000 (20:04 +0200)]
gnulib-tool: Ensure that long-running tests are executed last.

14 years agognulib-tool: Ensure the tests in the main directory are executed first.
Bruno Haible [Fri, 2 Apr 2010 17:44:45 +0000 (19:44 +0200)]
gnulib-tool: Ensure the tests in the main directory are executed first.

14 years agoOops, fix small mistake in last commit.
Bruno Haible [Fri, 2 Apr 2010 16:17:06 +0000 (18:17 +0200)]
Oops, fix small mistake in last commit.