gnulib.git
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.

14 years agowctob: Fix for weird platforms.
Bruno Haible [Mon, 3 May 2010 08:07:34 +0000 (10:07 +0200)]
wctob: Fix for weird platforms.

14 years agomaint.mk: remove obsolete comments
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.

14 years agowcwidth: Declare also when it's aliased.
Bruno Haible [Sun, 2 May 2010 21:03:16 +0000 (23:03 +0200)]
wcwidth: Declare also when it's aliased.

14 years agoautoupdate
Karl Berry [Sun, 2 May 2010 15:58:31 +0000 (08:58 -0700)]
autoupdate

14 years agoFix regression from 2010-04-25.
Bruno Haible [Sun, 2 May 2010 12:49:23 +0000 (14:49 +0200)]
Fix regression from 2010-04-25.

14 years agowctob: Work around nasty Cygwin 1.7.2 bug.
Bruno Haible [Sun, 2 May 2010 11:15:21 +0000 (13:15 +0200)]
wctob: Work around nasty Cygwin 1.7.2 bug.

14 years agofpurge: Sharper test.
Bruno Haible [Sat, 1 May 2010 18:42:16 +0000 (20:42 +0200)]
fpurge: Sharper test.

14 years agoftello: Another test.
Bruno Haible [Sat, 1 May 2010 18:35:37 +0000 (20:35 +0200)]
ftello: Another test.

14 years agoftell: Another test.
Bruno Haible [Sat, 1 May 2010 18:34:59 +0000 (20:34 +0200)]
ftell: Another test.

14 years agoftell, ftello: Work around Solaris bug.
Bruno Haible [Sat, 1 May 2010 18:32:26 +0000 (20:32 +0200)]
ftell, ftello: Work around Solaris bug.

14 years agofreading: Adapt to special meaning of _IOREAD flag on Solaris.
Bruno Haible [Sat, 1 May 2010 18:23:22 +0000 (20:23 +0200)]
freading: Adapt to special meaning of _IOREAD flag on Solaris.

14 years agoFix doc about a HP-UX stdio bug.
Bruno Haible [Sat, 1 May 2010 17:20:12 +0000 (19:20 +0200)]
Fix doc about a HP-UX stdio bug.

14 years agolseek test: Fix failure on Solaris.
Bruno Haible [Sat, 1 May 2010 11:59:40 +0000 (13:59 +0200)]
lseek test: Fix failure on Solaris.

14 years agobootstrap: don't ignore failure to generate po*/Makevars
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.

14 years agoautoupdate
Karl Berry [Fri, 30 Apr 2010 13:46:10 +0000 (06:46 -0700)]
autoupdate

14 years agoheaders: relax license to LGPLv2+
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>
14 years agointtypes: relax license to LGPLv2+
Jim Meyering [Thu, 29 Apr 2010 08:56:13 +0000 (10:56 +0200)]
inttypes: relax license to LGPLv2+

* modules/inttypes (License): Relax license.

14 years agotop/maint.mk (indent): Run twice to produce idempotent results.
Simon Josefsson [Thu, 29 Apr 2010 06:46:14 +0000 (08:46 +0200)]
top/maint.mk (indent): Run twice to produce idempotent results.

14 years agogetdate: Generate getdate.c in the source directory.
Bruno Haible [Wed, 28 Apr 2010 17:17:54 +0000 (19:17 +0200)]
getdate: Generate getdate.c in the source directory.

14 years agoutimens: avoid compiler warning
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>
14 years agocanonicalize-lgpl: avoid compiler warning
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>
14 years agoinit.sh: ensure a more reliable exit status when exiting via trap
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).

14 years agoUpdate doc about utimes().
Bruno Haible [Wed, 28 Apr 2010 00:35:24 +0000 (02:35 +0200)]
Update doc about utimes().

14 years agofull-read, full-write: relax license
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>
14 years agopthread: mention library for linking
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>
14 years agomaint.mk: fix a bug introduced in last change
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.

14 years agomaint.mk: avoid side-effect in latest syntax-check
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.

14 years agoautoupdate
Karl Berry [Tue, 27 Apr 2010 14:17:44 +0000 (07:17 -0700)]
autoupdate

14 years agomaint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
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.

14 years agognulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
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.

14 years agogit-version-gen: aesthetic tweak
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.

14 years agogit-version-gen: allow use on EBCDIC hosts
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>
14 years agonetdb: Add support for GNULIB_POSIXCHECK.
Bruno Haible [Mon, 26 Apr 2010 08:25:56 +0000 (10:25 +0200)]
netdb: Add support for GNULIB_POSIXCHECK.

14 years agobuild: avoid "make check" failure without .git/ directory
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.

14 years agoptsname: Fix misuse of ttyname_r.
Bruno Haible [Sun, 25 Apr 2010 20:18:48 +0000 (22:18 +0200)]
ptsname: Fix misuse of ttyname_r.

14 years agottyname_r: Make it work on Solaris 10.
Bruno Haible [Sun, 25 Apr 2010 22:18:10 +0000 (00:18 +0200)]
ttyname_r: Make it work on Solaris 10.

14 years agoUse the 'extensions' module for some more functions on Solaris.
Bruno Haible [Sun, 25 Apr 2010 21:08:38 +0000 (23:08 +0200)]
Use the 'extensions' module for some more functions on Solaris.

14 years agottyname_r: Make it work on MacOS X 10.4 and Solaris 10.
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.

14 years agoMention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
Bruno Haible [Sun, 25 Apr 2010 17:50:16 +0000 (19:50 +0200)]
Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.

14 years agognulib-tool: Don't include hairy tests of dependencies in testdirs.
Bruno Haible [Sun, 25 Apr 2010 16:26:49 +0000 (18:26 +0200)]
gnulib-tool: Don't include hairy tests of dependencies in testdirs.

14 years agognulib-tool: Add --without-*-tests options.
Bruno Haible [Sun, 25 Apr 2010 11:35:31 +0000 (13:35 +0200)]
gnulib-tool: Add --without-*-tests options.

14 years agoWork around a MacOS X 10.4 bug with openpty.
Simon Josefsson [Sun, 25 Apr 2010 10:59:22 +0000 (12:59 +0200)]
Work around a MacOS X 10.4 bug with openpty.

14 years agostrnlen: Fix a C++ test error on MacOS X and Solaris.
Bruno Haible [Sun, 25 Apr 2010 10:27:21 +0000 (12:27 +0200)]
strnlen: Fix a C++ test error on MacOS X and Solaris.

14 years agoAvoid a gcc warning.
Bruno Haible [Sat, 24 Apr 2010 16:02:56 +0000 (18:02 +0200)]
Avoid a gcc warning.

14 years agovasnprintf: Correct errno value in case of out-of-memory.
Bruno Haible [Sat, 24 Apr 2010 15:18:48 +0000 (17:18 +0200)]
vasnprintf: Correct errno value in case of out-of-memory.

14 years agoansi-c++-opt: Find correct compiler when cross-compiling.
Bruno Haible [Sat, 24 Apr 2010 14:14:16 +0000 (16:14 +0200)]
ansi-c++-opt: Find correct compiler when cross-compiling.

14 years agovc-list-files: add subversion support
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.

14 years agoupdate from texinfo
Karl Berry [Fri, 23 Apr 2010 13:56:59 +0000 (06:56 -0700)]
update from texinfo

14 years agovc-list-files tests: convert to use init.sh
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.

14 years agoupdate from texinfo
Karl Berry [Thu, 22 Apr 2010 16:25:24 +0000 (09:25 -0700)]
update from texinfo

14 years agotop/maint.mk (sc_prohibit_backup_files): Prohibit checked in backup files.
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.

14 years agotests/test-vasprintf.c: Test %08lx.
Simon Josefsson [Wed, 21 Apr 2010 11:18:32 +0000 (13:18 +0200)]
tests/test-vasprintf.c: Test %08lx.

14 years agotests: be robust to ignored SIGPIPE
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>
14 years agovisibility: Don't use -fvisibility if it leads to a warning.
Simon Josefsson [Tue, 20 Apr 2010 09:31:26 +0000 (11:31 +0200)]
visibility: Don't use -fvisibility if it leads to a warning.

14 years agobootstrap: use "git -h" instead of "git --help"
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>
14 years agorelocatable: Simplify doc.
Bruno Haible [Mon, 19 Apr 2010 22:45:54 +0000 (00:45 +0200)]
relocatable: Simplify doc.

14 years agorelocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
Bruno Haible [Mon, 19 Apr 2010 22:24:35 +0000 (00:24 +0200)]
relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.

14 years agoFix typo in comment.
Bruno Haible [Mon, 19 Apr 2010 22:02:14 +0000 (00:02 +0200)]
Fix typo in comment.

14 years agoioctl: Move autoconf macro to a .m4 file.
Bruno Haible [Mon, 19 Apr 2010 20:24:13 +0000 (22:24 +0200)]
ioctl: Move autoconf macro to a .m4 file.

14 years agoautupdate
Karl Berry [Mon, 19 Apr 2010 15:50:09 +0000 (08:50 -0700)]
autupdate

14 years agodiffseq: Accommodate use-case with abstract arrays.
Bruno Haible [Sun, 18 Apr 2010 22:01:18 +0000 (00:01 +0200)]
diffseq: Accommodate use-case with abstract arrays.

14 years agoDoc tweak.
Bruno Haible [Sun, 18 Apr 2010 20:01:05 +0000 (22:01 +0200)]
Doc tweak.

14 years agomaint.mk: use gnu-style indentation in an embedded perl script
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/

14 years agotest-stdbool: skip test that fails with Solaris CC
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>
14 years agosetenv: allow compilation with C++
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>
14 years agostdint: allow test to pass with C++
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>
14 years agogetopt: allow compilation with C++
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>
14 years agoOverride netdb.h always.
Bruno Haible [Fri, 16 Apr 2010 16:43:00 +0000 (18:43 +0200)]
Override netdb.h always.

14 years agoopenpty: Fix mistake from 2010-03-21.
Bruno Haible [Fri, 16 Apr 2010 00:38:16 +0000 (02:38 +0200)]
openpty: Fix mistake from 2010-03-21.

14 years agotest-forkpty: fix expected signature
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>
14 years agomaint.mk: texinfo_suffix_re_: correct the default regexp
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.

14 years agotop/maint.mk (sc_texinfo_acronym): Improve filename regexp.
Simon Josefsson [Thu, 15 Apr 2010 11:44:21 +0000 (13:44 +0200)]
top/maint.mk (sc_texinfo_acronym): Improve filename regexp.

14 years agostrtok_r: relax license to LGPLv2+
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>
14 years agoautoupdate
Karl Berry [Wed, 14 Apr 2010 17:05:19 +0000 (10:05 -0700)]
autoupdate

14 years agolib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to version 1.4.4.
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.

14 years agogetopt-gnu: match recent glibc fixes and posix ruling
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.

14 years agogetopt: merge bug fixes from glibc
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>
14 years agogetopt-posix: detect MacOS bug
Eric Blake [Tue, 13 Apr 2010 20:30:37 +0000 (14:30 -0600)]
getopt-posix: detect MacOS bug

On MacOS 10.5 (Darwin 9.8.0), optind is incremented by 2 instead
of 1 in the case of a missing requirement on condensed options.

* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
optind when missing a required argument.
* doc/posix-functions/getopt.texi (getopt): Document the bug.
* doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
* doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agogetopt-posix: avoid spurious failure on Solaris
Eric Blake [Tue, 13 Apr 2010 17:00:29 +0000 (11:00 -0600)]
getopt-posix: avoid spurious failure on Solaris

* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
an indicator that setting optind=1 is sufficient for reset.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agogetopt-posix: avoid spurious failure on FreeBSD
Eric Blake [Tue, 13 Apr 2010 14:37:08 +0000 (08:37 -0600)]
getopt-posix: avoid spurious failure on FreeBSD

* m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
in POSIX mode, since the m4 test uses it.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agognulib-tool: silence warning on BSD sh
Eric Blake [Mon, 12 Apr 2010 23:03:08 +0000 (17:03 -0600)]
gnulib-tool: silence warning on BSD sh

FreeBSD /bin/sh issues warnings about commands not found prior
to redirecting stderr.

* gnulib-tool: Avoid leaking warning about unknown 'declare'.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agodoc: users.txt: GNU patch now uses gnulib
Jim Meyering [Tue, 13 Apr 2010 07:27:02 +0000 (09:27 +0200)]
doc: users.txt: GNU patch now uses gnulib

* users.txt: Add patch.

14 years agomaint.mk: generate more concise timing data for syntax-check rules
Jim Meyering [Mon, 12 Apr 2010 20:15:19 +0000 (22:15 +0200)]
maint.mk: generate more concise timing data for syntax-check rules

* top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
" done" from each line that reports a syntax-check test duration.

14 years agogit-version-gen: use "git update-index..." rather than "git status"
Andreas Gruenbacher [Mon, 12 Apr 2010 15:56:27 +0000 (17:56 +0200)]
git-version-gen: use "git update-index..." rather than "git status"

* build-aux/git-version-gen: Use git update-index --refresh, not
"git status".  With some versions of git, "git status" would fail
to update the index and result in an unwarranted "-dirty" suffix.

14 years agoautoupdate
Karl Berry [Mon, 12 Apr 2010 17:21:32 +0000 (10:21 -0700)]
autoupdate

14 years agoopenat: correct formatting (no semantic change)
Jim Meyering [Sun, 11 Apr 2010 18:35:32 +0000 (20:35 +0200)]
openat: correct formatting (no semantic change)

* m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
Suggested by Bruno Haible.

14 years agoStricter declaration checking in testdirs.
Bruno Haible [Sun, 11 Apr 2010 17:21:20 +0000 (19:21 +0200)]
Stricter declaration checking in testdirs.

14 years agolibunistring: Improve configure output.
Bruno Haible [Sun, 11 Apr 2010 16:26:02 +0000 (18:26 +0200)]
libunistring: Improve configure output.

14 years agolibunistring: Correct value of $LTLIBUNISTRING.
Bruno Haible [Sun, 11 Apr 2010 16:22:50 +0000 (18:22 +0200)]
libunistring: Correct value of $LTLIBUNISTRING.

14 years agohavelib: Add static libraries to LIBS in the right order.
Bruno Haible [Sun, 11 Apr 2010 16:06:48 +0000 (18:06 +0200)]
havelib: Add static libraries to LIBS in the right order.