Bruno Haible [Sun, 9 May 2010 10:16:00 +0000 (12:16 +0200)]
error: Use system's fcntl function.
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.
Bruno Haible [Sun, 9 May 2010 10:00:55 +0000 (12:00 +0200)]
error: More reliable output on mingw.
Bruno Haible [Sun, 9 May 2010 09:14:46 +0000 (11:14 +0200)]
vasnprintf: Fix syntax errors in libintl build on mingw.
Bruno Haible [Sun, 9 May 2010 00:53:40 +0000 (02:53 +0200)]
Update for Cygwin 1.7.
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.
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.
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>
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.
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__.
Peter O'Gorman [Wed, 5 May 2010 19:35:50 +0000 (21:35 +0200)]
Tests for module pwrite.
Peter O'Gorman [Wed, 5 May 2010 19:14:11 +0000 (21:14 +0200)]
Tests for module pwrite.
Peter O'Gorman [Wed, 5 May 2010 19:09:38 +0000 (21:09 +0200)]
New module pwrite.
Peter O'Gorman [Wed, 5 May 2010 18:53:05 +0000 (20:53 +0200)]
pread: Update documentation.
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>
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".
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.
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.
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.
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.
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.
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).
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.
Bruno Haible [Mon, 3 May 2010 08:07:34 +0000 (10:07 +0200)]
wctob: Fix for weird platforms.
Jim Meyering [Mon, 3 May 2010 07:49:58 +0000 (09:49 +0200)]
maint.mk: remove obsolete comments
* top/maint.mk: Remove stale, commented-out rules.
Bruno Haible [Sun, 2 May 2010 21:03:16 +0000 (23:03 +0200)]
wcwidth: Declare also when it's aliased.
Karl Berry [Sun, 2 May 2010 15:58:31 +0000 (08:58 -0700)]
autoupdate
Bruno Haible [Sun, 2 May 2010 12:49:23 +0000 (14:49 +0200)]
Fix regression from 2010-04-25.
Bruno Haible [Sun, 2 May 2010 11:15:21 +0000 (13:15 +0200)]
wctob: Work around nasty Cygwin 1.7.2 bug.
Bruno Haible [Sat, 1 May 2010 18:42:16 +0000 (20:42 +0200)]
fpurge: Sharper test.
Bruno Haible [Sat, 1 May 2010 18:35:37 +0000 (20:35 +0200)]
ftello: Another test.
Bruno Haible [Sat, 1 May 2010 18:34:59 +0000 (20:34 +0200)]
ftell: Another test.
Bruno Haible [Sat, 1 May 2010 18:32:26 +0000 (20:32 +0200)]
ftell, ftello: Work around Solaris bug.
Bruno Haible [Sat, 1 May 2010 18:23:22 +0000 (20:23 +0200)]
freading: Adapt to special meaning of _IOREAD flag on Solaris.
Bruno Haible [Sat, 1 May 2010 17:20:12 +0000 (19:20 +0200)]
Fix doc about a HP-UX stdio bug.
Bruno Haible [Sat, 1 May 2010 11:59:40 +0000 (13:59 +0200)]
lseek test: Fix failure on Solaris.
Jim Meyering [Fri, 30 Apr 2010 16:17:36 +0000 (18:17 +0200)]
bootstrap: don't ignore failure to generate po*/Makevars
* build-aux/bootstrap (with_gettext): Don't ignore failure
to create po/Makevars or runtime-po/Makevars.
Karl Berry [Fri, 30 Apr 2010 13:46:10 +0000 (06:46 -0700)]
autoupdate
Eric Blake [Thu, 29 Apr 2010 19:40:19 +0000 (13:40 -0600)]
headers: relax license to LGPLv2+
The replacement headers deserve relaxed licenses, even if the
functions they declare cannot be accessed without a tighter license.
See the list archives for consensus on this action.
* modules/fcntl-h (License): Relax license.
* modules/getopt-posix (License): Likewise.
* modules/locale (License): Likewise.
* modules/math (License): Likewise.
* modules/pty (License): Likewise.
* modules/sched (License): Likewise.
* modules/search (License): Likewise.
* modules/spawn (License): Likewise.
* modules/stdarg (License): Likewise.
* modules/sysexits (License): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
Jim Meyering [Thu, 29 Apr 2010 08:56:13 +0000 (10:56 +0200)]
inttypes: relax license to LGPLv2+
* modules/inttypes (License): Relax license.
Simon Josefsson [Thu, 29 Apr 2010 06:46:14 +0000 (08:46 +0200)]
top/maint.mk (indent): Run twice to produce idempotent results.
Bruno Haible [Wed, 28 Apr 2010 17:17:54 +0000 (19:17 +0200)]
getdate: Generate getdate.c in the source directory.
Andreas Gruenbacher [Wed, 28 Apr 2010 16:32:46 +0000 (10:32 -0600)]
utimens: avoid compiler warning
* lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
is not declared as a const *; avoid warnings in that case.
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Wed, 28 Apr 2010 16:13:24 +0000 (10:13 -0600)]
canonicalize-lgpl: avoid compiler warning
* lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
declaration' / 'extraneous semicolon' warning with some compilers.
Reported by Andreas Gruenbacher.
Signed-off-by: Eric Blake <eblake@redhat.com>
Jim Meyering [Wed, 28 Apr 2010 07:51:15 +0000 (09:51 +0200)]
init.sh: ensure a more reliable exit status when exiting via trap
* tests/init.sh (setup_): Don't rely on $? in signal handler.
Inspired by patches from Dmitry V. Levin.
Also trap on signal 3 (SIGQUIT).
Bruno Haible [Wed, 28 Apr 2010 00:35:24 +0000 (02:35 +0200)]
Update doc about utimes().
Eric Blake [Tue, 27 Apr 2010 18:14:04 +0000 (12:14 -0600)]
full-read, full-write: relax license
Jim Meyering gave consent to this action:
http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00446.html
* modules/full-read (License): Drop to LGPLv2+.
* modules/full-write (License): Likewise.
* modules/safe-read (License): Likewise.
* modules/safe-write (License): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Tue, 27 Apr 2010 17:38:51 +0000 (11:38 -0600)]
pthread: mention library for linking
* modules/pthread (Link): Mention $(LIB_PTHREAD).
Signed-off-by: Eric Blake <eblake@redhat.com>
Jim Meyering [Tue, 27 Apr 2010 15:29:03 +0000 (17:29 +0200)]
maint.mk: fix a bug introduced in last change
* top/maint.mk (gl_assured_headers_): Now that all names are on
one line, use sed's "g" modifier. Note that while the \.in\.h LHS
is not anchored to end of word, it should be adequate.
Jim Meyering [Tue, 27 Apr 2010 14:32:40 +0000 (16:32 +0200)]
maint.mk: avoid side-effect in latest syntax-check
* top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
to run commands via $(shell...), and hence to incur cost only when
the new rule is actually run.
Karl Berry [Tue, 27 Apr 2010 14:17:44 +0000 (07:17 -0700)]
autoupdate
Jim Meyering [Fri, 9 Apr 2010 17:07:57 +0000 (19:07 +0200)]
maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
Derive the list of guaranteed header names from gnulib/lib/*.in.h,
and use that to create a regexp used to detect all #if HAVE_..._H uses.
* top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
(gl_assured_headers_, az_, AZ_): Define.
(gl_header_upper_case_or_, gl_have_header_regex_): Define.
Jim Meyering [Tue, 27 Apr 2010 06:57:31 +0000 (08:57 +0200)]
gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
* m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
Prompted by an exchange with Gilles Espinasse.
Jim Meyering [Mon, 26 Apr 2010 16:59:46 +0000 (18:59 +0200)]
git-version-gen: aesthetic tweak
* build-aux/git-version-gen: Use "$nl" rather than a literal,
so that the command remains on a single line.
Eric Blake [Mon, 26 Apr 2010 15:44:42 +0000 (09:44 -0600)]
git-version-gen: allow use on EBCDIC hosts
* build-aux/git-version-gen (dirty): Use literal rather than tying
ourselves to ascii.
Reported by Steve Goetze.
Signed-off-by: Eric Blake <eblake@redhat.com>
Bruno Haible [Mon, 26 Apr 2010 08:25:56 +0000 (10:25 +0200)]
netdb: Add support for GNULIB_POSIXCHECK.
Ian Beckwith [Mon, 26 Apr 2010 07:26:35 +0000 (09:26 +0200)]
build: avoid "make check" failure without .git/ directory
* Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
there is no .git/ directory.
Bruno Haible [Sun, 25 Apr 2010 20:18:48 +0000 (22:18 +0200)]
ptsname: Fix misuse of ttyname_r.
Bruno Haible [Sun, 25 Apr 2010 22:18:10 +0000 (00:18 +0200)]
ttyname_r: Make it work on Solaris 10.
Bruno Haible [Sun, 25 Apr 2010 21:08:38 +0000 (23:08 +0200)]
Use the 'extensions' module for some more functions on Solaris.
Bruno Haible [Sun, 25 Apr 2010 18:57:52 +0000 (20:57 +0200)]
ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
Bruno Haible [Sun, 25 Apr 2010 17:50:16 +0000 (19:50 +0200)]
Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
Bruno Haible [Sun, 25 Apr 2010 16:26:49 +0000 (18:26 +0200)]
gnulib-tool: Don't include hairy tests of dependencies in testdirs.
Bruno Haible [Sun, 25 Apr 2010 11:35:31 +0000 (13:35 +0200)]
gnulib-tool: Add --without-*-tests options.
Simon Josefsson [Sun, 25 Apr 2010 10:59:22 +0000 (12:59 +0200)]
Work around a MacOS X 10.4 bug with openpty.
Bruno Haible [Sun, 25 Apr 2010 10:27:21 +0000 (12:27 +0200)]
strnlen: Fix a C++ test error on MacOS X and Solaris.
Bruno Haible [Sat, 24 Apr 2010 16:02:56 +0000 (18:02 +0200)]
Avoid a gcc warning.
Bruno Haible [Sat, 24 Apr 2010 15:18:48 +0000 (17:18 +0200)]
vasnprintf: Correct errno value in case of out-of-memory.
Bruno Haible [Sat, 24 Apr 2010 14:14:16 +0000 (16:14 +0200)]
ansi-c++-opt: Find correct compiler when cross-compiling.
Giuseppe Scrivano [Fri, 23 Apr 2010 22:46:29 +0000 (00:46 +0200)]
vc-list-files: add subversion support
* build-aux/vc-list-files: Use "svn list" to generate the list of
files controlled by subversion.
Karl Berry [Fri, 23 Apr 2010 13:56:59 +0000 (06:56 -0700)]
update from texinfo
Jim Meyering [Fri, 23 Apr 2010 09:38:35 +0000 (11:38 +0200)]
vc-list-files tests: convert to use init.sh
* tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
path_prepend_.
Use Exit, not exit.
Use skip_ rather than open coding it.
Remove trap set-up and compare definitions.
* tests/test-vc-list-files-git.sh: Likewise.
* modules/vc-list-files-tests (Files): Add tests/init.sh.
Karl Berry [Thu, 22 Apr 2010 16:25:24 +0000 (09:25 -0700)]
update from texinfo
Simon Josefsson [Thu, 22 Apr 2010 09:04:21 +0000 (11:04 +0200)]
top/maint.mk (sc_prohibit_backup_files): Prohibit checked in backup files.
Simon Josefsson [Wed, 21 Apr 2010 11:18:32 +0000 (13:18 +0200)]
tests/test-vasprintf.c: Test %08lx.
Eric Blake [Tue, 20 Apr 2010 15:34:04 +0000 (09:34 -0600)]
tests: be robust to ignored SIGPIPE
Noticed during a libvirt test run with trap '' SIGPIPE.
* tests/test-select-in.sh: Consume all output.
* tests/test-lseek.sh: Check correct exit status, while avoiding
EPIPE.
Signed-off-by: Eric Blake <eblake@redhat.com>
Simon Josefsson [Tue, 20 Apr 2010 09:31:26 +0000 (11:31 +0200)]
visibility: Don't use -fvisibility if it leads to a warning.
Andreas Gruenbacher [Mon, 19 Apr 2010 22:30:51 +0000 (00:30 +0200)]
bootstrap: use "git -h" instead of "git --help"
Use "git -h" for testing for supported options instead of "git --help".
The short-form option only shows a summary, and doesn't layout the full
man page, which is much faster and saves a dependency.
(We found out that git uses man in a build environment of
http://hydra.nixos.org/, which by default doesn't have man installed.)
Grep for the full option name in the summary, too.
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Bruno Haible [Mon, 19 Apr 2010 22:45:54 +0000 (00:45 +0200)]
relocatable: Simplify doc.
Bruno Haible [Mon, 19 Apr 2010 22:24:35 +0000 (00:24 +0200)]
relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
Bruno Haible [Mon, 19 Apr 2010 22:02:14 +0000 (00:02 +0200)]
Fix typo in comment.
Bruno Haible [Mon, 19 Apr 2010 20:24:13 +0000 (22:24 +0200)]
ioctl: Move autoconf macro to a .m4 file.
Karl Berry [Mon, 19 Apr 2010 15:50:09 +0000 (08:50 -0700)]
autupdate
Bruno Haible [Sun, 18 Apr 2010 22:01:18 +0000 (00:01 +0200)]
diffseq: Accommodate use-case with abstract arrays.
Bruno Haible [Sun, 18 Apr 2010 20:01:05 +0000 (22:01 +0200)]
Doc tweak.
Jim Meyering [Sat, 17 Apr 2010 20:13:41 +0000 (22:13 +0200)]
maint.mk: use gnu-style indentation in an embedded perl script
* top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
Rename variable: s/two/last_two_bytes/
Eric Blake [Fri, 16 Apr 2010 23:04:58 +0000 (17:04 -0600)]
test-stdbool: skip test that fails with Solaris CC
Solaris 9 CC has a bug; it allows (int)0.0 and (bool)0 in constant
expressions, but not (bool)0.0. Our replacement stdbool cannot
provide that guarantee of C99 for this particular compiler, but
since use of that feature causes compilation failure rather than
silent mis-compilation, we just skip the test.
* tests/test-stdbool.c (f): Skip test that causes compilation
error under buggy C++ compiler.
* lib/stdbool.in.h: Document the limitation.
* doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Fri, 16 Apr 2010 20:21:29 +0000 (14:21 -0600)]
setenv: allow compilation with C++
* lib/setenv.c (__add_to_environ): Add a cast. Also, drop use of
register keyword.
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Fri, 16 Apr 2010 20:11:08 +0000 (14:11 -0600)]
stdint: allow test to pass with C++
__STDC_LIMIT_MACROS is only half the battle.
* tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
Signed-off-by: Eric Blake <eblake@redhat.com>
Eric Blake [Fri, 16 Apr 2010 20:08:15 +0000 (14:08 -0600)]
getopt: allow compilation with C++
A C++ compiler complains that REQUIRE_ORDER is unknown if it is
buried inside the struct.
* lib/getopt_int.h (__ordering): Hoist enum declaration outside
struct.
* lib/getopt.c (_getopt_internal_r): Use correct type.
Reported by Dagobert Michelson, via Joel E. Denny.
Signed-off-by: Eric Blake <eblake@redhat.com>
Bruno Haible [Fri, 16 Apr 2010 16:43:00 +0000 (18:43 +0200)]
Override netdb.h always.
Bruno Haible [Fri, 16 Apr 2010 00:38:16 +0000 (02:38 +0200)]
openpty: Fix mistake from 2010-03-21.
Eric Blake [Thu, 15 Apr 2010 13:54:02 +0000 (07:54 -0600)]
test-forkpty: fix expected signature
* tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
Reported by Simon Josefsson.
Signed-off-by: Eric Blake <eblake@redhat.com>
Jim Meyering [Thu, 15 Apr 2010 11:50:16 +0000 (13:50 +0200)]
maint.mk: texinfo_suffix_re_: correct the default regexp
* top/maint.mk (texinfo_suffix_re_): Fix default regexp.
Simon Josefsson [Thu, 15 Apr 2010 11:44:21 +0000 (13:44 +0200)]
top/maint.mk (sc_texinfo_acronym): Improve filename regexp.
Eric Blake [Wed, 14 Apr 2010 19:03:38 +0000 (13:03 -0600)]
strtok_r: relax license to LGPLv2+
strtok_r borrows from glibc, which is LGPLv2+; besides, the
only major changes since 2007-10, when LGPLv3 became the default,
were in commit
5985805, to work around a glibc header bug.
* modules/strtok_r (License): Relax license.
Reported by Matthias Bolte.
Signed-off-by: Eric Blake <eblake@redhat.com>
Karl Berry [Wed, 14 Apr 2010 17:05:19 +0000 (10:05 -0700)]
autoupdate
Simon Josefsson [Wed, 14 Apr 2010 13:23:28 +0000 (15:23 +0200)]
lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to version 1.4.4.
Eric Blake [Fri, 9 Apr 2010 22:34:16 +0000 (16:34 -0600)]
getopt-gnu: match recent glibc fixes and posix ruling
The POSIX folks admitted that codifying the behavior of GNU
getopt on a leading '+' in optstring is worthwhile, for writing
programs such as env(1) even when POSIXLY_CORRECT is not defined.
http://austingroupbugs.net/view.php?id=191
However, the ruling is an enhancement request for the next
version of POSIX, and is not binding on platforms that comply
with POSIX 2008, so it should only be enforced for getopt-gnu.
* tests/test-getopt.h (test_getopt): Strengthen tests of leading
'+' handling, when requesting extensions.
* tests/test-getopt_long.h (test_getopt_long): Strengthen test of
'W;' handling.
* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
* doc/posix-functions/getopt.texi (getopt): Document this.
* doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
* doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
Likewise.
Eric Blake [Sat, 10 Apr 2010 17:56:34 +0000 (11:56 -0600)]
getopt: merge bug fixes from glibc
* lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
diagnostics. Honor '+:' correctly. Reject ';'.
Signed-off-by: Eric Blake <eblake@redhat.com>