gnulib.git
13 years agoReplacement header templates are now named with ".in", not "_".
Ben Pfaff [Fri, 11 Jun 2010 03:11:05 +0000 (20:11 -0700)]
Replacement header templates are now named with ".in", not "_".

* doc/gnulib-intro.texi: Correct.

13 years agointtostr-tests: depend on snprintf, not snprintf-posix
Jim Meyering [Thu, 10 Jun 2010 16:35:59 +0000 (18:35 +0200)]
inttostr-tests: depend on snprintf, not snprintf-posix

* modules/inttostr-tests (Depends-on): Depend on snprintf, not
snprintf-posix, to avoid this aclocal failure:
  missing file gnulib-tests/vasnprintf.c
  configure.ac:45: error: expected source file, required through \
  AC_LIBSOURCES, not found

13 years agoautoupdate
Karl Berry [Thu, 10 Jun 2010 13:22:36 +0000 (06:22 -0700)]
autoupdate

13 years agointtostr: add a new function, inttostr, and tests
Jim Meyering [Wed, 9 Jun 2010 16:22:25 +0000 (18:22 +0200)]
inttostr: add a new function, inttostr, and tests

The namesake function was not available.  The existence of the
template file, inttostr.c makes its addition nontrivial.
* lib/anytostr.c: Rename from inttostr.c.
(anytostr): Rename from inttostr.
* lib/inttostr.c: New file.
* modules/inttostr (Files): Add anytostr.c.
(Makefile.am): Set lib_SOURCES instead of ...
* m4/inttostr.m4: Remove uses of AC_LIBOBJ.
* lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
* lib/offtostr.c: Likewise.
* lib/uinttostr.c: Likewise.
* lib/umaxtostr.c: Likewise.
* modules/inttostr-tests: New file.
* tests/test-inttostr.c: New file.  Test these functions.

13 years agoAdd "Extending Gnulib" chapter to manual.
Ben Pfaff [Thu, 10 Jun 2010 03:53:13 +0000 (20:53 -0700)]
Add "Extending Gnulib" chapter to manual.

* doc/gnulib.texi (Writing Modules): Add cross-reference to new chapter.
(Extending Gnulib): New chapter.
* doc/gnulib-intro.texi (Openness): Add cross-reference to new chapter.

13 years agoAvoid relocwrapper link errors due to gnulib replacement functions.
Bruno Haible [Wed, 9 Jun 2010 13:30:40 +0000 (15:30 +0200)]
Avoid relocwrapper link errors due to gnulib replacement functions.

13 years agoAvoid relocwrapper link errors due to gnulib replacement functions.
Bruno Haible [Wed, 9 Jun 2010 10:47:59 +0000 (12:47 +0200)]
Avoid relocwrapper link errors due to gnulib replacement functions.

13 years agoPrefer documented low-level autoconf macro names.
Bruno Haible [Sat, 5 Jun 2010 01:46:32 +0000 (03:46 +0200)]
Prefer documented low-level autoconf macro names.

13 years agohavelib: Allow library names with '+' characters.
Martin Lambers [Sat, 5 Jun 2010 01:29:00 +0000 (03:29 +0200)]
havelib: Allow library names with '+' characters.

13 years agoModule setenv does not depend on 'malloc-posix', 'realloc-posix'.
Bruno Haible [Wed, 9 Jun 2010 10:40:40 +0000 (12:40 +0200)]
Module setenv does not depend on 'malloc-posix', 'realloc-posix'.

13 years agomaint.mk: make the news-check rule more configurable
Peter Simons [Mon, 7 Jun 2010 13:24:21 +0000 (15:24 +0200)]
maint.mk: make the news-check rule more configurable

* top/maint.mk (news-check-lines-spec) New variable.
(news-check): Use "sed -n 1,10p" in place of "head".

13 years agodo-release-commit-and-tag: fix typo in --help
Jim Meyering [Mon, 7 Jun 2010 07:06:42 +0000 (09:06 +0200)]
do-release-commit-and-tag: fix typo in --help

* build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.

13 years agoregex: avoid new dead-code warning with gcc-4.6.0
Jim Meyering [Mon, 7 Jun 2010 05:58:49 +0000 (07:58 +0200)]
regex: avoid new dead-code warning with gcc-4.6.0

* lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
if-block containing a while-loop.  It's been unused for at least
5 years.

13 years agoMention Solaris limitation.
Bruno Haible [Sat, 5 Jun 2010 03:13:57 +0000 (05:13 +0200)]
Mention Solaris limitation.

13 years agoUpdate to GNU gettext 0.18.1.
Bruno Haible [Sat, 5 Jun 2010 00:03:43 +0000 (02:03 +0200)]
Update to GNU gettext 0.18.1.

13 years agoDon't use AC_LIBOBJ with file names in subdirectories.
Bruno Haible [Thu, 3 Jun 2010 22:21:14 +0000 (00:21 +0200)]
Don't use AC_LIBOBJ with file names in subdirectories.

13 years agoSimplify gl_LIBUNISTRING_VERSION_CMP expansion.
Bruno Haible [Thu, 3 Jun 2010 21:54:36 +0000 (23:54 +0200)]
Simplify gl_LIBUNISTRING_VERSION_CMP expansion.

13 years agoReduce dependencies.
Bruno Haible [Thu, 3 Jun 2010 19:46:41 +0000 (21:46 +0200)]
Reduce dependencies.

13 years agoReduce dependencies.
Bruno Haible [Thu, 3 Jun 2010 18:22:57 +0000 (20:22 +0200)]
Reduce dependencies.

13 years agotime: Undefine more broken macros.
Bruno Haible [Thu, 3 Jun 2010 14:25:01 +0000 (16:25 +0200)]
time: Undefine more broken macros.

13 years agoChoose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
Bruno Haible [Thu, 3 Jun 2010 11:55:01 +0000 (13:55 +0200)]
Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.

13 years agotime: work with mingw + pthreads-win32 library
Eric Blake [Wed, 2 Jun 2010 17:08:06 +0000 (11:08 -0600)]
time: work with mingw + pthreads-win32 library

When using the pthreads-win32 library with mingw, struct timespec
is available in <pthread.h>.  Meanwhile, that header has some
rather buggy macros for localtime_r and gmtime_r that interfere
with proper gnulib replacement header actions.

Tested in a cross-compilation environment: Fedora 13 with mingw32-gcc
and mingw32-pthreads installed.

* m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
if timespec is defined only in pthread.h.
* modules/time (Makefile.am): Substitute it.
* lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
<pthread.h>, when needed.
(GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
from the library.

Signed-off-by: Eric Blake <eblake@redhat.com>
13 years agoAvoid expanding two macros in the wrong order.
Bruno Haible [Mon, 31 May 2010 23:26:32 +0000 (01:26 +0200)]
Avoid expanding two macros in the wrong order.

13 years agoautoupdate
Karl Berry [Mon, 31 May 2010 12:04:53 +0000 (05:04 -0700)]
autoupdate

13 years agogit-version-gen: take a sed script to transform the git tag
Ludovic Courtès [Fri, 28 May 2010 10:15:23 +0000 (12:15 +0200)]
git-version-gen: take a sed script to transform the git tag

* build-aux/git-version-gen (tag_sed_script): New variable.  Use it to
transform the output of "git describe" to the canonical form.
* top/GNUmakefile (_curr-ver): Pass $(git-version-gen-tag-sed-script) as
a second argument to `git-version-gen'.

13 years agomaint.mk: also prohibit "#undef" of always-defined symbols
Jim Meyering [Thu, 27 May 2010 11:33:04 +0000 (13:33 +0200)]
maint.mk: also prohibit "#undef" of always-defined symbols

* top/maint.mk (def_sym_regex): Handle #undef as well as #define.
Allow more than one space before the symbol name.
(sc_prohibit_always-defined_macros): Use grep's -E, now that
the regexp uses alternation.

13 years agocorrect ChangeLog
Eric Blake [Wed, 26 May 2010 17:53:58 +0000 (11:53 -0600)]
correct ChangeLog

13 years agomaint.mk: avoid echo -e
Eric Blake [Wed, 26 May 2010 17:47:22 +0000 (11:47 -0600)]
maint.mk: avoid echo -e

There are still other potentially non-portable uses of echo
throughout this file, if $(ME) contains \ or starts with -,
but this patch is a trivial step in the right direction.

* top/maint.mk (gzip_rsyncable): Convert all uses of echo -* to
printf.
Reported by Matthias Bolte.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoOops, typo in ChangeLog entry.
Bruno Haible [Tue, 25 May 2010 19:37:23 +0000 (21:37 +0200)]
Oops, typo in ChangeLog entry.

14 years agoUpdate to GNU gettext 0.18, part 2.
Bruno Haible [Tue, 25 May 2010 19:35:22 +0000 (21:35 +0200)]
Update to GNU gettext 0.18, part 2.

14 years agoAdd missing include in test-pwrite.c.
Ralf Wildenhues [Tue, 25 May 2010 05:22:43 +0000 (07:22 +0200)]
Add missing include in test-pwrite.c.

* tests/test-pwrite.c: Include string.h, for strcmp.

14 years agoMention requirement for Automake option 'subdir-objects'.
Bruno Haible [Tue, 25 May 2010 00:26:15 +0000 (02:26 +0200)]
Mention requirement for Automake option 'subdir-objects'.

14 years agoDon't use conversion with transliteration in u{8,16,32}_strcoll.
Bruno Haible [Mon, 24 May 2010 21:00:42 +0000 (23:00 +0200)]
Don't use conversion with transliteration in u{8,16,32}_strcoll.

14 years agoAvoid a test failure on NetBSD 5.0.
Bruno Haible [Mon, 24 May 2010 20:06:22 +0000 (22:06 +0200)]
Avoid a test failure on NetBSD 5.0.

14 years agoautoupdate
Karl Berry [Mon, 24 May 2010 13:56:22 +0000 (06:56 -0700)]
autoupdate

14 years agoAdjust #include directive style.
Bruno Haible [Mon, 24 May 2010 10:45:20 +0000 (12:45 +0200)]
Adjust #include directive style.

14 years agoregex: Don't require alloca.
Bruno Haible [Mon, 24 May 2010 10:23:03 +0000 (12:23 +0200)]
regex: Don't require alloca.

14 years agotest-renameat.c: include <sys/stat.h>
Jim Meyering [Sun, 23 May 2010 19:57:32 +0000 (21:57 +0200)]
test-renameat.c: include <sys/stat.h>

* tests/test-renameat.c: Include <sys/stat.h>; required for
definition of S_IS* macros.

14 years agoUpdate maintainer documentation for 'relocatable-prog' module.
Ben Pfaff [Sun, 23 May 2010 19:02:39 +0000 (12:02 -0700)]
Update maintainer documentation for 'relocatable-prog' module.

14 years agogit-merge-changelog: Enable --split-merged-entry by default.
Bruno Haible [Sun, 23 May 2010 16:03:16 +0000 (18:03 +0200)]
git-merge-changelog: Enable --split-merged-entry by default.

14 years agotest-pwrite: do not leave behind a test file named "out"
Jim Meyering [Sun, 23 May 2010 08:32:12 +0000 (10:32 +0200)]
test-pwrite: do not leave behind a test file named "out"

Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
The trivial-looking use of init.sh is really necessary.
It ensures that the temporary file, "out", is created in
a temporary directory, and removed upon termination.
* tests/test-pwrite.sh: Re-add file.
* modules/pwrite-tests: Reference it.

14 years agoFix output redirection buglet in init.sh.
Ralf Wildenhues [Sun, 23 May 2010 08:05:31 +0000 (10:05 +0200)]
Fix output redirection buglet in init.sh.

* tests/init.sh: Fix redirection of stderr.

14 years agoupdate from texinfo
Karl Berry [Sun, 23 May 2010 00:38:21 +0000 (17:38 -0700)]
update from texinfo

14 years agoautoupdate
Karl Berry [Fri, 21 May 2010 15:28:16 +0000 (08:28 -0700)]
autoupdate

14 years agomodules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
Simon Josefsson [Thu, 20 May 2010 06:37:18 +0000 (08:37 +0200)]
modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.

14 years agoAdd new module valgrind-tests.
Simon Josefsson [Thu, 20 May 2010 06:29:56 +0000 (08:29 +0200)]
Add new module valgrind-tests.

14 years agoClean up dead code in recent commit.
Bruno Haible [Wed, 19 May 2010 21:30:18 +0000 (23:30 +0200)]
Clean up dead code in recent commit.

14 years agoAvoid valgrind error reports from libunistring.
Bruno Haible [Wed, 19 May 2010 20:11:00 +0000 (22:11 +0200)]
Avoid valgrind error reports from libunistring.

14 years agoautoupdate
Karl Berry [Wed, 19 May 2010 14:11:42 +0000 (07:11 -0700)]
autoupdate

14 years agoNew module 'libunistring-optional'.
Bruno Haible [Tue, 18 May 2010 18:11:42 +0000 (20:11 +0200)]
New module 'libunistring-optional'.

14 years agodoc: users.txt: list hivex
Richard Jones [Tue, 18 May 2010 15:52:12 +0000 (17:52 +0200)]
doc: users.txt: list hivex

* users.txt: Add hivex.

2010-05-18  Richard Jones  <rjones@redhat.com>

14 years agodoc: users.txt: list febootstrap
Richard Jones [Tue, 18 May 2010 14:52:35 +0000 (16:52 +0200)]
doc: users.txt: list febootstrap

* users.txt: Add febootstrap.

14 years agoupdate from texinfo
Karl Berry [Tue, 18 May 2010 00:18:45 +0000 (17:18 -0700)]
update from texinfo

14 years agoFix typo in ChangeLog entry.
Bruno Haible [Mon, 17 May 2010 20:04:41 +0000 (22:04 +0200)]
Fix typo in ChangeLog entry.

14 years agobootstrap: fix an error when gnulib is not used as a git submodule
Giuseppe Scrivano [Mon, 17 May 2010 13:26:42 +0000 (15:26 +0200)]
bootstrap: fix an error when gnulib is not used as a git submodule

* build-aux/bootstrap (gnulib_path): If its length is zero then
assign "gnulib" to it.
* build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.

14 years agoAvoid autoconf warnings about AM_ICONV.
Bruno Haible [Sun, 16 May 2010 21:49:00 +0000 (23:49 +0200)]
Avoid autoconf warnings about AM_ICONV.

14 years agoabsolute-header: Make the macro usable in more situations.
Bruno Haible [Sun, 16 May 2010 21:41:33 +0000 (23:41 +0200)]
absolute-header: Make the macro usable in more situations.

14 years agodoc: update users.txt
James Youngman [Sun, 16 May 2010 20:40:14 +0000 (22:40 +0200)]
doc: update users.txt

14 years agoinit.sh: fix an error in the previous change; add more comments
Jim Meyering [Sun, 16 May 2010 20:30:00 +0000 (22:30 +0200)]
init.sh: fix an error in the previous change; add more comments

* tests/init.sh: Compare exit code in loop against 9, not 2.
Patch by Bruno Haible.
Make the two tests more similar by adding an empty "then" clause.
Add comments.

14 years agoinit.sh: avoid unnecessary shell re-exec
Jim Meyering [Sun, 16 May 2010 16:34:08 +0000 (18:34 +0200)]
init.sh: avoid unnecessary shell re-exec

* tests/init.sh: Improve the re-exec-required check to first test the
current shell.  If it passes the test, do not search for a shell that
does pass, and do not re-exec.  This test is particularly contorted to
avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
of $(...) evokes a syntax error and causes immediate shell exit with
status 2.  Bruno Haible reported that the re-exec made it impossible
to single-step through any init.sh-using script.

14 years agoFix collision between gnulib's and libintl's printf replacements.
Bruno Haible [Sun, 16 May 2010 12:16:03 +0000 (14:16 +0200)]
Fix collision between gnulib's and libintl's printf replacements.

14 years agoverify: Avoid skipping the test on openSUSE 11.0.
Bruno Haible [Sun, 16 May 2010 11:59:42 +0000 (13:59 +0200)]
verify: Avoid skipping the test on openSUSE 11.0.

14 years agoupdate from texinfo
Karl Berry [Fri, 14 May 2010 17:27:58 +0000 (10:27 -0700)]
update from texinfo

14 years agoautoupdate
Karl Berry [Thu, 13 May 2010 23:47:49 +0000 (16:47 -0700)]
autoupdate

14 years agoAvoid useless warnings from G++.
Bruno Haible [Thu, 13 May 2010 17:22:39 +0000 (19:22 +0200)]
Avoid useless warnings from G++.

14 years agomaint.mk: tweak preceding change
Jim Meyering [Tue, 11 May 2010 16:49:29 +0000 (18:49 +0200)]
maint.mk: tweak preceding change

* top/maint.mk (gl_extract_significant_defines_): Make exclusion
regexps tighter by anchoring at EOL, and make the new group "shy"
for slightly decreased overhead.

14 years agomaint.mk: gnulib doesn't guarantee NSIG
Eric Blake [Tue, 11 May 2010 14:52:39 +0000 (08:52 -0600)]
maint.mk: gnulib doesn't guarantee NSIG

Gnulib conditionally defines NSIG to 32 for some platforms.  But since
NSIG is not mandated by standards, and there are platforms with 64
signals, we should not promise that NSIG is guaranteed.

* top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agotest-pwrite.c: Remove unused variable declaration.
Peter O'Gorman [Mon, 10 May 2010 22:54:27 +0000 (00:54 +0200)]
test-pwrite.c: Remove unused variable declaration.

14 years agoRemove useless test-pwrite.sh file.
Peter O'Gorman [Mon, 10 May 2010 22:52:05 +0000 (00:52 +0200)]
Remove useless test-pwrite.sh file.

14 years agoinit.sh: fix a typo
Peter O'Gorman [Mon, 10 May 2010 15:23:08 +0000 (17:23 +0200)]
init.sh: fix a typo

* tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.

14 years agomaint.mk: avoid using a temporary file in the always-defined-macros check
Jim Meyering [Mon, 10 May 2010 07:29:09 +0000 (09:29 +0200)]
maint.mk: avoid using a temporary file in the always-defined-macros check

* top/maint.mk (.re-defmac): Remove rule.
(gl_trap_): Remove definition.
(sc_prohibit_always-defined_macros): Rewrite not to create and
depend on a temporary file.  Instead, depend on GNU grep's ability
to read a list of regular expressions from stdin when given "-f -".

14 years agoinit.sh: enable MALLOC_PERTURB_
Jim Meyering [Sun, 9 May 2010 20:39:34 +0000 (22:39 +0200)]
init.sh: enable MALLOC_PERTURB_

* tests/init.sh: Enable glibc's malloc-perturbing option.

14 years agomaint.mk: improve sc_cross_check_PATH_usage_in_tests
Jim Meyering [Sun, 9 May 2010 20:30:09 +0000 (22:30 +0200)]
maint.mk: improve sc_cross_check_PATH_usage_in_tests

With my recent change in init.sh from the two-line form:
    -#   : ${srcdir=.}
    -#   . "$srcdir/init.sh"; path_prepend_ .
    +#   . "${srcdir=.}/init.sh"; path_prepend_ .
I noticed that using the one-line form would cause this test
to fail with a false-positive, or to stop working altogether,
depending on whether help-version changed or all the tests did.
* top/maint.mk (_hv_regex): Remove this definition.
(_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
(_hv_regex_strong): Use a stronger regex to check for conformance.
(sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
Give a separate diagnostic for lack of conforming use.

14 years agoUpdate to GNU gettext 0.18.
Bruno Haible [Sun, 9 May 2010 18:43:44 +0000 (20:43 +0200)]
Update to GNU gettext 0.18.

14 years agomaint.mk: prohibit definition of symbols defined by gnulib
Jim Meyering [Sun, 9 May 2010 16:50:40 +0000 (18:50 +0200)]
maint.mk: prohibit definition of symbols defined by gnulib

* top/maint.mk (sc_prohibit_always-defined_macros): Reject the
definition of symbols defined by gnulib.

14 years agoacl: Avoid test failure on Cygwin-hosted mingw.
Bruno Haible [Sun, 9 May 2010 16:51:48 +0000 (18:51 +0200)]
acl: Avoid test failure on Cygwin-hosted mingw.

14 years agoautoupdate
Karl Berry [Sun, 9 May 2010 13:41:27 +0000 (06:41 -0700)]
autoupdate

14 years agoerror: Use system's fcntl function.
Bruno Haible [Sun, 9 May 2010 10:16:00 +0000 (12:16 +0200)]
error: Use system's fcntl function.

14 years agoverify: adjust formatting to be more consistent
Jim Meyering [Sun, 9 May 2010 10:02:14 +0000 (12:02 +0200)]
verify: adjust formatting to be more consistent

* lib/verify.h (_GL_GENSYM): Add a space before each of a few
argument-list '('s, and after one comma.

14 years agoerror: More reliable output on mingw.
Bruno Haible [Sun, 9 May 2010 10:00:55 +0000 (12:00 +0200)]
error: More reliable output on mingw.

14 years agovasnprintf: Fix syntax errors in libintl build on mingw.
Bruno Haible [Sun, 9 May 2010 09:14:46 +0000 (11:14 +0200)]
vasnprintf: Fix syntax errors in libintl build on mingw.

14 years agoUpdate for Cygwin 1.7.
Bruno Haible [Sun, 9 May 2010 00:53:40 +0000 (02:53 +0200)]
Update for Cygwin 1.7.

14 years agoinit.sh: improve comments
Jim Meyering [Fri, 7 May 2010 07:19:41 +0000 (09:19 +0200)]
init.sh: improve comments

* tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
. "${srcdir=.}/init.sh"; path_prepend_ .
Add a note about path_prepend_ and the alternative of using
TESTS_ENVIRONMENT.

14 years agoexclude: Unescape hashed patterns in wildcard mode.
Sergey Poznyakoff [Thu, 6 May 2010 20:18:34 +0000 (23:18 +0300)]
exclude: Unescape hashed patterns in wildcard mode.

* lib/exclude.c (add_exclude): Unescape the pattern before adding it
to the hash list.
* tests/test-exclude8.sh: New test case.
* modules/exclude-tests: Add new test.

14 years agoverify: automate tests
Eric Blake [Wed, 5 May 2010 22:19:18 +0000 (16:19 -0600)]
verify: automate tests

Had we automated this sooner, we would have caught the issue
with gcc -Werror -Wredundant-decls sooner.

* modules/verify-tests: New module.
* tests/test-verify.sh: New file.
* tests/test-verify.c: Guard each negative test with a unique id.
Also avoid warning about unused left hand of comma expressions.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoFurther improvements to verify.h, suggested by Eric Blake.
Paul Eggert [Wed, 5 May 2010 20:57:26 +0000 (13:57 -0700)]
Further improvements to verify.h, suggested by Eric Blake.

* lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
the GL_* versions, to avoid collision with OpenGL.
(_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
__COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
than testing merely whether it's defined.

14 years agoModify verify.h to pacify gcc -Wredundant_decls.
Paul Eggert [Wed, 5 May 2010 19:50:00 +0000 (12:50 -0700)]
Modify verify.h to pacify gcc -Wredundant_decls.

* lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
These use the prefix "GL_" since they're likely to be useful elsewhere.
We may need to break them out into a different .h file.
(__COUNTER__): Define to 0 if the compiler doesn't support it.
(verify) [!defined __cplusplus]: Use them to avoid duplicate decls
of verify_function__.

14 years agoTests for module pwrite.
Peter O'Gorman [Wed, 5 May 2010 19:35:50 +0000 (21:35 +0200)]
Tests for module pwrite.

14 years agoTests for module pwrite.
Peter O'Gorman [Wed, 5 May 2010 19:14:11 +0000 (21:14 +0200)]
Tests for module pwrite.

14 years agoNew module pwrite.
Peter O'Gorman [Wed, 5 May 2010 19:09:38 +0000 (21:09 +0200)]
New module pwrite.

14 years agopread: Update documentation.
Peter O'Gorman [Wed, 5 May 2010 18:53:05 +0000 (20:53 +0200)]
pread: Update documentation.

14 years agodocs: update cygwin progress
Eric Blake [Tue, 4 May 2010 14:18:30 +0000 (08:18 -0600)]
docs: update cygwin progress

* doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
this bug.
* doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
Added in cygwin 1.7.2.
* doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
Likewise.
* doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
Likewise.
* doc/glibc-functions/dup3.texi (dup3): Likewise.
* doc/glibc-functions/pipe2.texi (pipe2): Likewise.
* doc/glibc-functions/accept4.texi (accept4): Likewise.
* doc/posix-functions/strfmon.texi (strfmon): Likewise.
* doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
Mention nproc module.
* doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
bug in cygwin 1.7.5 addition.
* doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
* doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
* doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
* doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
1.7.5.
* doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
* doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
* doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
* doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
* doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
* doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
* doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
* doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
* doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
* doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
* doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
* doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
* doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
* doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
* doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
Likewise.
* doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
* doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
* doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
* doc/glibc-functions/xdr_reference.texi (xdr_reference):
Likewise.
* doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
* doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
* doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
* doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
* doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
* doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
* doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
* doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
Likewise.
* doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
* doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
* doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
* doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
* doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
Likewise.
* doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
Likewise.
* doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
Likewise.
* doc/glibc-functions/xdrrec_endofrecord.texi
(xdrrec_endofrecord): Likewise.
* doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
* doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
Likewise.
* doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agogendocs.sh: make its "-s FILE" option more useful
Jim Meyering [Tue, 4 May 2010 07:43:05 +0000 (09:43 +0200)]
gendocs.sh: make its "-s FILE" option more useful

* build-aux/gendocs.sh: When honoring the -s FILE option, update
$PACKAGE to reflect the probably-different basename of "FILE".

14 years agobootstrap: don't ignore download_po_files failure
Giuseppe Scrivano [Mon, 3 May 2010 20:05:41 +0000 (22:05 +0200)]
bootstrap: don't ignore download_po_files failure

* build-aux/bootstrap (update_po_files): Don't ignore download_po_files
failure.

14 years agomaint.mk: allow to pass options to gendocs.sh
Jim Meyering [Mon, 3 May 2010 21:23:09 +0000 (23:23 +0200)]
maint.mk: allow to pass options to gendocs.sh

* top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
(gendocs_options_): New overridable variable.

14 years agognu-web-doc-update: don't ignore configure or build failure
Jim Meyering [Mon, 3 May 2010 21:18:40 +0000 (23:18 +0200)]
gnu-web-doc-update: don't ignore configure or build failure

* build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.

14 years agoannounce-gen: backslash-escape '@'s in --help output
Jim Meyering [Mon, 3 May 2010 20:19:34 +0000 (22:19 +0200)]
announce-gen: backslash-escape '@'s in --help output

* build-aux/announce-gen: Fix syntax errors.

14 years agomaint.mk, announce-gen: allow project-specific announcement mail headers
Jim Meyering [Mon, 3 May 2010 19:58:13 +0000 (21:58 +0200)]
maint.mk, announce-gen: allow project-specific announcement mail headers

* top/maint.mk (translation_project_): Define default.
(announcement_Cc_, announcement_mail_headers_): Likewise.
(announcement): Invoke announce-gen with new --mail-headers option.
* build-aux/announce-gen: New option: --mail-headers=HEADERS.

14 years agotest-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
Jim Meyering [Mon, 3 May 2010 16:30:38 +0000 (18:30 +0200)]
test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11

* tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
"> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
line in the "err2" output file when running "make check" in verbose
mode (i.e., with set -x enabled).

14 years agomaint.mk: prohibit unwarranted use of <strings.h>
Jim Meyering [Mon, 3 May 2010 08:08:20 +0000 (10:08 +0200)]
maint.mk: prohibit unwarranted use of <strings.h>

* top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
strings.h in a file that does not also use strcasecmp, strncasecmp,
ffs or ffsll.