gnulib.git
14 years agobootstrap: improve some comments
Eric Blake [Tue, 23 Feb 2010 16:37:26 +0000 (09:37 -0700)]
bootstrap: improve some comments

* build-aux/bootstrap: Drop unneeded emacs hint.  Add some
clarification comments.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agogettimeofday: provide correct function
Eric Blake [Tue, 23 Feb 2010 15:22:04 +0000 (08:22 -0700)]
gettimeofday: provide correct function

* lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
when replacement is declared, otherwise provide gettimeofday.
Reported by Michael Goffioul.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoautoupdate
Karl Berry [Tue, 23 Feb 2010 14:14:37 +0000 (06:14 -0800)]
autoupdate

14 years agolib-ignore: relax license to "unlimited", not LGPLv2+
Jim Meyering [Tue, 23 Feb 2010 09:21:53 +0000 (10:21 +0100)]
lib-ignore: relax license to "unlimited", not LGPLv2+

* modules/lib-ignore (License): Relax to "unlimited".

2010-02-23  Jim Meyering  <meyering@redhat.com>

14 years agolib-ignore: relax license to LGPLv2+
Jim Meyering [Tue, 23 Feb 2010 08:51:54 +0000 (09:51 +0100)]
lib-ignore: relax license to LGPLv2+

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

14 years agoChangeLog: add entry for "init.sh: automatically accommodate programs with the .exe...
Jim Meyering [Tue, 23 Feb 2010 00:46:36 +0000 (01:46 +0100)]
ChangeLog: add entry for "init.sh: automatically accommodate programs with the .exe suffix"

14 years agolseek: avoid bash 3.2 broken pipe bug
Eric Blake [Mon, 22 Feb 2010 22:15:56 +0000 (15:15 -0700)]
lseek: avoid bash 3.2 broken pipe bug

Avoid a spurious message caused by SIGPIPE handling, as well as
avoiding bash 3.2 messages even when SIGPIPE is not handled.

* m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
warning from bash 3.2.
Reported by Ben Pfaff, with analysis from Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agobootstrap: support non-FSF copyright holder
Eric Blake [Mon, 22 Feb 2010 22:28:38 +0000 (15:28 -0700)]
bootstrap: support non-FSF copyright holder

Allow non-FSF projects, like libvirt, to make full use of bootstrap.

* build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
bootstrap.conf override of COPYRIGHT_HOLDER.
(MSGID_BUGS_ADDRESS): Allow URL rather than email.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agobootstrap: interoperate with gettext 0.14.1
Eric Blake [Mon, 22 Feb 2010 19:13:22 +0000 (12:13 -0700)]
bootstrap: interoperate with gettext 0.14.1

Without this patch, the modified gettext.m4 aborts autoconf due
to an unterminated m4 string.

* build-aux/bootstrap (slurp): Fix typo when using older gettext.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agobootstrap: allow for alternate submodule location
Eric Blake [Mon, 22 Feb 2010 17:59:33 +0000 (10:59 -0700)]
bootstrap: allow for alternate submodule location

Libvirt sets submodule.gnulib.path to ".gnulib".  Also, it does
not need gnulib.mk, but directly uses Makefile.am.

* build-aux/bootstrap (gnulib_path): New variable; use instead of
hardcoding submodule location.
(gnulib_mk): Allow direct use of Makefile.am.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agobootstrap: use GNULIB_SRCDIR to reduce disk usage
Eric Blake [Mon, 22 Feb 2010 15:46:42 +0000 (08:46 -0700)]
bootstrap: use GNULIB_SRCDIR to reduce disk usage

This slightly changes the semantics of GNULIB_SRCDIR; previously,
it was a way to change the contents of .gitmodules to actually
point to a new location, which meant that running:
 GNULIB_SRCDIR=~/gnulib ./bootstrap
would result in a dirty tree.  The new semantics are nicer; the
submodule is cloned as normal, but the clone uses the original
$GNULIB_SRCDIR as an object reference to reduce download time
and disk space.

* build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
rather than reconfiguring where the submodule points.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agogettimeofday: restore support for platforms that lack function
Eric Blake [Mon, 22 Feb 2010 16:00:06 +0000 (09:00 -0700)]
gettimeofday: restore support for platforms that lack function

Fixes a regression from 2010-02-04, commit de4d0a3.

* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
replacement if function is missing.
* m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
* modules/sys_time (Makefile.am): Substitute it.
* lib/sys_time.in.h (gettimeofday): Check it.
Reported by Michael Goffioul.

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years ago* build-aux/gendocs.sh: restore executable bit
Eric Blake [Mon, 22 Feb 2010 21:30:18 +0000 (14:30 -0700)]
* build-aux/gendocs.sh: restore executable bit

Signed-off-by: Eric Blake <eblake@redhat.com>
14 years agoChangeLog: add entry for "init.sh: improve portability and efficiency"
Jim Meyering [Mon, 22 Feb 2010 07:50:24 +0000 (08:50 +0100)]
ChangeLog: add entry for "init.sh: improve portability and efficiency"

14 years agoobstack-printf: Fix typo.
Bruno Haible [Mon, 22 Feb 2010 01:57:50 +0000 (02:57 +0100)]
obstack-printf: Fix typo.

14 years agovc-list-files: use bzr ls's -R option
Jose E. Marchesi [Sun, 21 Feb 2010 19:36:24 +0000 (20:36 +0100)]
vc-list-files: use bzr ls's -R option

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

14 years agoinit.sh: fix EXEEXT shims to work also for names like test-prog
Jim Meyering [Sun, 21 Feb 2010 16:47:43 +0000 (17:47 +0100)]
init.sh: fix EXEEXT shims to work also for names like test-prog

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

14 years agoTypo in comment.
Bruno Haible [Sun, 21 Feb 2010 12:33:05 +0000 (13:33 +0100)]
Typo in comment.

14 years agoReally work around around "broken pipe" error message from bash 3.2.
Bruno Haible [Sun, 21 Feb 2010 12:27:25 +0000 (13:27 +0100)]
Really work around around "broken pipe" error message from bash 3.2.

14 years agoRestore support for automake 1.9.6 with autoconf 2.61.
Bruno Haible [Sun, 21 Feb 2010 02:29:36 +0000 (03:29 +0100)]
Restore support for automake 1.9.6 with autoconf 2.61.

14 years agoImprove *printf warning condition.
Bruno Haible [Sun, 21 Feb 2010 00:04:28 +0000 (01:04 +0100)]
Improve *printf warning condition.

14 years agoTweak comments.
Bruno Haible [Sat, 20 Feb 2010 23:17:12 +0000 (00:17 +0100)]
Tweak comments.

14 years agoTweak last commit: Reduce the candidate list.
Bruno Haible [Fri, 19 Feb 2010 11:15:16 +0000 (12:15 +0100)]
Tweak last commit: Reduce the candidate list.

14 years agoMake it easier to find modules. New gnulib-tool option '--find'.
Bruno Haible [Fri, 19 Feb 2010 10:54:07 +0000 (11:54 +0100)]
Make it easier to find modules. New gnulib-tool option '--find'.

14 years agosys_select.in.h: Fix for Interix.
Simon Josefsson [Thu, 18 Feb 2010 10:22:20 +0000 (11:22 +0100)]
sys_select.in.h: Fix for Interix.

Tiny patch from Markus Duft <mduft@gentoo.org>.

14 years agoinit.sh: don't use $(...) just yet
Jim Meyering [Thu, 18 Feb 2010 09:28:24 +0000 (10:28 +0100)]
init.sh: don't use $(...) just yet

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

14 years agoMention NetBSD 5.0 problem.
Bruno Haible [Wed, 17 Feb 2010 23:30:21 +0000 (00:30 +0100)]
Mention NetBSD 5.0 problem.

14 years agoFix typo in last change. Reported by Eric Blake <ebb9@byu.net>.
Simon Josefsson [Wed, 17 Feb 2010 12:50:10 +0000 (13:50 +0100)]
Fix typo in last change.  Reported by Eric Blake <ebb9@byu.net>.

14 years agouserspec-tests: Fix Windows link failure.
Simon Josefsson [Wed, 17 Feb 2010 12:49:21 +0000 (13:49 +0100)]
userspec-tests: Fix Windows link failure.

14 years agonetdb.h: Define AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG when needed.
Simon Josefsson [Wed, 17 Feb 2010 08:19:03 +0000 (09:19 +0100)]
netdb.h: Define AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG when needed.

14 years agoinit.sh: improve portability and efficiency
Jim Meyering [Sat, 13 Feb 2010 14:51:37 +0000 (15:51 +0100)]
init.sh: improve portability and efficiency

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

14 years agoinit.sh: automatically accommodate programs with the .exe suffix
Jim Meyering [Mon, 18 Jan 2010 07:08:18 +0000 (08:08 +0100)]
init.sh: automatically accommodate programs with the .exe suffix

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

14 years agoautoupdate
Karl Berry [Mon, 15 Feb 2010 15:20:37 +0000 (07:20 -0800)]
autoupdate

14 years agomaint.mk: mark syntax-check sc_*.m rules as .PHONY
Jim Meyering [Mon, 15 Feb 2010 10:04:56 +0000 (11:04 +0100)]
maint.mk: mark syntax-check sc_*.m rules as .PHONY

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

14 years agomaint.mk: prohibit inclusion of "hash-pjw.h" without_use
Jim Meyering [Sun, 14 Feb 2010 18:28:39 +0000 (19:28 +0100)]
maint.mk: prohibit inclusion of "hash-pjw.h" without_use

* top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
(sc_prohibit_hash_pjw_without_use): New rule.

14 years agomaint.mk: allow the default upload destination dir to be overridden
Jim Meyering [Sun, 14 Feb 2010 15:42:22 +0000 (16:42 +0100)]
maint.mk: allow the default upload destination dir to be overridden

* top/maint.mk (upload_dest_dir_): Define with a default that
preserves the status quo.
(emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
Reported by Peter Simons.

14 years agomaint.mk: prohibit inclusion of "hash.h" without_use
Jim Meyering [Sun, 14 Feb 2010 10:22:29 +0000 (11:22 +0100)]
maint.mk: prohibit inclusion of "hash.h" without_use

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

14 years agoupdate from texinfo
Karl Berry [Sat, 13 Feb 2010 17:17:17 +0000 (09:17 -0800)]
update from texinfo

14 years agomaint.mk: prohibit inclusion of "ignore-value.h" without_use
Jim Meyering [Wed, 10 Feb 2010 11:31:55 +0000 (12:31 +0100)]
maint.mk: prohibit inclusion of "ignore-value.h" without_use

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

14 years agoobstack-printf-posix: ensure declaration
Eric Blake [Mon, 8 Feb 2010 22:07:14 +0000 (15:07 -0700)]
obstack-printf-posix: ensure declaration

The replacement <stdio.h> was failing to declare obstack_printf
if obstack-printf-posix was used in isolation without unit tests.

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

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agognulib-tool: Fix typo in 2010-02-07 commit.
Bruno Haible [Mon, 8 Feb 2010 20:29:32 +0000 (21:29 +0100)]
gnulib-tool: Fix typo in 2010-02-07 commit.

14 years ago-mautoupdate
Karl Berry [Mon, 8 Feb 2010 16:48:22 +0000 (08:48 -0800)]
-mautoupdate

14 years agognulib-tool: Fix up caching patches.
Bruno Haible [Mon, 8 Feb 2010 00:08:30 +0000 (01:08 +0100)]
gnulib-tool: Fix up caching patches.

14 years agognulib-tool: Ensure cache variables are unique.
Ralf Wildenhues [Sun, 31 Jan 2010 21:37:41 +0000 (22:37 +0100)]
gnulib-tool: Ensure cache variables are unique.

14 years agognulib-tool: Make caching optional.
Ralf Wildenhues [Sun, 31 Jan 2010 20:06:21 +0000 (21:06 +0100)]
gnulib-tool: Make caching optional.

14 years agognulib-tool: cache module metainformation.
Ralf Wildenhues [Sun, 31 Jan 2010 19:40:24 +0000 (20:40 +0100)]
gnulib-tool: cache module metainformation.

14 years agofnctl: Fix missing dependency.
Bruno Haible [Sun, 7 Feb 2010 23:44:42 +0000 (00:44 +0100)]
fnctl: Fix missing dependency.

14 years ago-mautoupdate
Karl Berry [Sun, 7 Feb 2010 14:46:52 +0000 (06:46 -0800)]
-mautoupdate

14 years agoArgp: fix recognition of short alias options.
Sergey Poznyakoff [Fri, 5 Feb 2010 11:33:15 +0000 (13:33 +0200)]
Argp: fix recognition of short alias options.

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

14 years agoFix indentation
Sergey Poznyakoff [Fri, 5 Feb 2010 11:06:53 +0000 (13:06 +0200)]
Fix indentation

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

14 years agogettimeofday: expose type of second argument
Eric Blake [Sat, 30 Jan 2010 14:47:40 +0000 (07:47 -0700)]
gettimeofday: expose type of second argument

Needed to silence compiler warnings such as:
test-gettimeofday.c:23: warning: initialization from incompatible pointer type
based on whether gettimeofday complies with POSIX or provides
the extension of struct timezone.

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

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoregcomp.c: avoid the sole warning from gcc's -Wtype-limits
Jim Meyering [Wed, 3 Feb 2010 17:01:36 +0000 (18:01 +0100)]
regcomp.c: avoid the sole warning from gcc's -Wtype-limits

* lib/regcomp.c (TYPE_SIGNED): Define.
(parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.

14 years agoregcomp.c: avoid a new -Wshadow warning
Jim Meyering [Wed, 3 Feb 2010 16:15:03 +0000 (17:15 +0100)]
regcomp.c: avoid a new -Wshadow warning

* lib/regcomp.c (create_initial_state): Do not shadow local "err".

14 years agoensure that the regexp [b-a] is diagnosed as invalid
Jim Meyering [Tue, 19 Jan 2010 07:25:12 +0000 (08:25 +0100)]
ensure that the regexp [b-a] is diagnosed as invalid

* m4/regex.m4 (gl_REGEX): Ensure that re_compiler_pattern
diagnoses [b-a] as invalid when using RE_SYNTAX_POSIX_EGREP.
Currently, glibc-2.11.90-10 fails to do that.

14 years agoremoving useless parentheses in cpp #define directives
Jim Meyering [Mon, 1 Feb 2010 18:05:26 +0000 (19:05 +0100)]
removing useless parentheses in cpp #define directives

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

14 years agosys_time: use link-warning
Eric Blake [Sat, 30 Jan 2010 15:51:59 +0000 (08:51 -0700)]
sys_time: use link-warning

Modernize replacement header, to allow another GNULIB_POSIXCHECK
opportunity.

* m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
(gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
(gl_SYS_TIME_MODULE_INDICATOR): New macro.
* modules/sys_time (Depends-on): Add warn-on-use.
(Makefile.am): Always build replacement.
(configure.ac): Update substitutions.
* m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
(gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
bother with SYS_TIME_H.
* modules/gettimeofday (configure.ac): Declare indicator.
* lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
in use.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoclosein-tests: silence compiler warning
Eric Blake [Sat, 30 Jan 2010 14:44:38 +0000 (07:44 -0700)]
closein-tests: silence compiler warning

* tests/test-closein.c (main): Ignore fread result.
* modules/closein-tests (Depends-on): Add ignore-value.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agotests: silence warning about system return
Eric Blake [Sat, 30 Jan 2010 14:37:11 +0000 (07:37 -0700)]
tests: silence warning about system return

Silence a compiler warning for platforms that mark system()
with attribute warn_unused_result.

* tests/test-areadlink-with-size.c (main): Ignore system result.
* tests/test-areadlink.c (main): Likewise.
* tests/test-areadlinkat-with-size.c (main): Likewise.
* tests/test-areadlinkat.c (main): Likewise.
* tests/test-canonicalize-lgpl.c (main): Likewise.
* tests/test-canonicalize.c (main): Likewise.
* tests/test-chown.c (main): Likewise.
* tests/test-fchownat.c (main): Likewise.
* tests/test-fdutimensat.c (main): Likewise.
* tests/test-fstatat.c (main): Likewise.
* tests/test-futimens.c (main): Likewise.
* tests/test-lchown.c (main): Likewise.
* tests/test-link.c (main): Likewise.
* tests/test-linkat.c (main): Likewise.
* tests/test-lstat.c (main): Likewise.
* tests/test-mkdir.c (main): Likewise.
* tests/test-mkdirat.c (main): Likewise.
* tests/test-mkfifo.c (main): Likewise.
* tests/test-mkfifoat.c (main): Likewise.
* tests/test-mknod.c (main): Likewise.
* tests/test-readlink.c (main): Likewise.
* tests/test-remove.c (main): Likewise.
* tests/test-rename.c (main): Likewise.
* tests/test-renameat.c (main): Likewise.
* tests/test-rmdir.c (main): Likewise.
* tests/test-symlink.c (main): Likewise.
* tests/test-symlinkat.c (main): Likewise.
* tests/test-unlink.c (main): Likewise.
* tests/test-unlinkat.c (main): Likewise.
* tests/test-utimens.c (main): Likewise.
* tests/test-utimensat.c (main): Likewise.
* modules/areadlink-tests (Depends-on): Add ignore-value.
* modules/areadlink-with-size-tests (Depends-on): Likewise.
* modules/areadlinkat-tests (Depends-on): Likewise.
* modules/areadlinkat-with-size-tests (Depends-on): Likewise.
* modules/canonicalize-lgpl-tests (Depends-on): Likewise.
* modules/canonicalize-tests (Depends-on): Likewise.
* modules/chown-tests (Depends-on): Likewise.
* modules/fdutimensat-tests (Depends-on): Likewise.
* modules/futimens-tests (Depends-on): Likewise.
* modules/lchown-tests (Depends-on): Likewise.
* modules/link-tests (Depends-on): Likewise.
* modules/linkat-tests (Depends-on): Likewise.
* modules/lstat-tests (Depends-on): Likewise.
* modules/mkdir-tests (Depends-on): Likewise.
* modules/mkfifo-tests (Depends-on): Likewise.
* modules/mkfifoat-tests (Depends-on): Likewise.
* modules/mknod-tests (Depends-on): Likewise.
* modules/openat-tests (Depends-on): Likewise.
* modules/readlink-tests (Depends-on): Likewise.
* modules/remove-tests (Depends-on): Likewise.
* modules/rename-tests (Depends-on): Likewise.
* modules/renameat-tests (Depends-on): Likewise.
* modules/rmdir-tests (Depends-on): Likewise.
* modules/symlink-tests (Depends-on): Likewise.
* modules/symlinkat-tests (Depends-on): Likewise.
* modules/unlink-tests (Depends-on): Likewise.
* modules/utimens-tests (Depends-on): Likewise.
* modules/utimensat-tests (Depends-on): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoPerform the same test for many <math.h> functions.
Bruno Haible [Sun, 31 Jan 2010 18:40:17 +0000 (19:40 +0100)]
Perform the same test for many <math.h> functions.

14 years agoUndo last commit. Add comment instead.
Bruno Haible [Sun, 31 Jan 2010 16:57:07 +0000 (17:57 +0100)]
Undo last commit. Add comment instead.

14 years agoWork around getdelim() bug on FreeBSD 8.0.
Bruno Haible [Sun, 31 Jan 2010 16:43:25 +0000 (17:43 +0100)]
Work around getdelim() bug on FreeBSD 8.0.

14 years agoAvoid redundant symbol replacement.
Bruno Haible [Sun, 31 Jan 2010 16:32:22 +0000 (17:32 +0100)]
Avoid redundant symbol replacement.

14 years agoWork around getline() bug on FreeBSD 8.0.
Bruno Haible [Sun, 31 Jan 2010 16:30:24 +0000 (17:30 +0100)]
Work around getline() bug on FreeBSD 8.0.

14 years agoautoupdate
Karl Berry [Thu, 28 Jan 2010 15:16:59 +0000 (07:16 -0800)]
autoupdate

14 years agoregex: fix build failure
Eric Blake [Thu, 28 Jan 2010 13:46:05 +0000 (06:46 -0700)]
regex: fix build failure

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

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoregex: do not ignore memory allocation failure
Jim Meyering [Tue, 19 Jan 2010 14:13:16 +0000 (15:13 +0100)]
regex: do not ignore memory allocation failure

* lib/regex_internal.c (create_cd_newstate): Detect
re_node_set_init_copy failure.   Extracted from glibc commit
2da42bc06566bc89785e580fa1ac89b4c9f2a63c.

14 years agoregex: sync more white-space changes from libc
Jim Meyering [Tue, 19 Jan 2010 14:04:37 +0000 (15:04 +0100)]
regex: sync more white-space changes from libc

* lib/regex_internal.c: White-space only changes.
* lib/regexec.c: Likewise.

14 years agoregex: add many uses of __attribute_warn_unused_result__
Jim Meyering [Tue, 19 Jan 2010 12:44:26 +0000 (13:44 +0100)]
regex: add many uses of __attribute_warn_unused_result__

* lib/regex_internal.c: Use __attribute_warn_unused_result__.
* lib/regexec.c: Likewise.
Extracted from a messy glibc commit.

14 years agoregcomp.c: spelling and merge-artifact from glibc
Jim Meyering [Tue, 19 Jan 2010 08:23:51 +0000 (09:23 +0100)]
regcomp.c: spelling and merge-artifact from glibc

* lib/regcomp.c: Merge remainder of glibc's
2da42bc06566bc89785e580fa1ac89b4c9f2a63c.

14 years agoregcomp.c: sync white-space changes from glibc
Jim Meyering [Tue, 19 Jan 2010 08:22:30 +0000 (09:22 +0100)]
regcomp.c: sync white-space changes from glibc

* lib/regcomp.c: Merge to accommodate white space
changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.

14 years agoregcomp.c: do not ignore internal return values
Jim Meyering [Tue, 19 Jan 2010 08:18:19 +0000 (09:18 +0100)]
regcomp.c: do not ignore internal return values

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

14 years agoregex_internal.h: define __attribute_warn_unused_result__
Jim Meyering [Tue, 19 Jan 2010 07:47:17 +0000 (08:47 +0100)]
regex_internal.h: define __attribute_warn_unused_result__

* lib/regex_internal.h (__attribute_warn_unused_result__): Define.

14 years agomaint: add a syntax-check rule to check for vulnerable Makefile.in
Jim Meyering [Thu, 28 Jan 2010 08:37:12 +0000 (09:37 +0100)]
maint: add a syntax-check rule to check for vulnerable Makefile.in

* top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.

14 years agoncftpput-ftp: clean up spaces
Jim Meyering [Wed, 27 Jan 2010 18:58:30 +0000 (19:58 +0100)]
ncftpput-ftp: clean up spaces

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

14 years agomaint: normalize copyright notices
Jim Meyering [Wed, 27 Jan 2010 16:12:30 +0000 (17:12 +0100)]
maint: normalize copyright notices

Normalize some copyright comments: change the two spaces before
"Free Software..." to one:

  git grep -l -E '[0-9]{4}   *Free Software' \
    | xargs perl -pi -e 's/  +(Free Software)/ $1/'

14 years agobuild-aux/ncftpput-ftp: Fix copyright statement.
Simon Josefsson [Wed, 27 Jan 2010 16:11:58 +0000 (17:11 +0100)]
build-aux/ncftpput-ftp: Fix copyright statement.

14 years agoFix last commit.
Simon Josefsson [Wed, 27 Jan 2010 15:56:30 +0000 (16:56 +0100)]
Fix last commit.

14 years agoFix copyright statement.
Simon Josefsson [Wed, 27 Jan 2010 15:13:04 +0000 (16:13 +0100)]
Fix copyright statement.

14 years agoignore-value: update recommended header name
Eric Blake [Mon, 25 Jan 2010 22:42:55 +0000 (15:42 -0700)]
ignore-value: update recommended header name

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

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agotest-userspec.c: avoid compiler warnings
Jim Meyering [Tue, 26 Jan 2010 08:51:26 +0000 (09:51 +0100)]
test-userspec.c: avoid compiler warnings

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

14 years agognulib-tool: Make warning diagnostics consistent.
Bruno Haible [Mon, 25 Jan 2010 21:37:52 +0000 (22:37 +0100)]
gnulib-tool: Make warning diagnostics consistent.

14 years agoFix test dependencies.
Bruno Haible [Mon, 25 Jan 2010 21:12:37 +0000 (22:12 +0100)]
Fix test dependencies.

14 years agoautoupdate
Karl Berry [Mon, 25 Jan 2010 15:27:04 +0000 (07:27 -0800)]
autoupdate

14 years agosyntax-check: detect incorrect boolean macro values in config.h
Pádraig Brady [Mon, 25 Jan 2010 10:55:34 +0000 (10:55 +0000)]
syntax-check: detect incorrect boolean macro values in config.h

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

14 years agobootstrap: detect MacOS 10.6's shasum, too
Jim Meyering [Mon, 25 Jan 2010 11:54:12 +0000 (12:54 +0100)]
bootstrap: detect MacOS 10.6's shasum, too

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

14 years agoxstrtoll: new module
Jim Meyering [Sat, 23 Jan 2010 10:52:44 +0000 (11:52 +0100)]
xstrtoll: new module

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

14 years agoTests for module 'yn'.
Bruno Haible [Mon, 25 Jan 2010 01:23:02 +0000 (02:23 +0100)]
Tests for module 'yn'.

14 years agoTests for module 'y1'.
Bruno Haible [Mon, 25 Jan 2010 01:22:36 +0000 (02:22 +0100)]
Tests for module 'y1'.

14 years agoTests for module 'y0'.
Bruno Haible [Mon, 25 Jan 2010 01:22:15 +0000 (02:22 +0100)]
Tests for module 'y0'.

14 years agoTests for module 'tanh'.
Bruno Haible [Mon, 25 Jan 2010 01:21:44 +0000 (02:21 +0100)]
Tests for module 'tanh'.

14 years agoTests for module 'tan'.
Bruno Haible [Mon, 25 Jan 2010 01:21:20 +0000 (02:21 +0100)]
Tests for module 'tan'.

14 years agoTests for module 'sqrt'.
Bruno Haible [Mon, 25 Jan 2010 01:20:52 +0000 (02:20 +0100)]
Tests for module 'sqrt'.

14 years agoTests for module 'sinh'.
Bruno Haible [Mon, 25 Jan 2010 01:20:23 +0000 (02:20 +0100)]
Tests for module 'sinh'.

14 years agoTests for module 'sin'.
Bruno Haible [Mon, 25 Jan 2010 01:19:58 +0000 (02:19 +0100)]
Tests for module 'sin'.

14 years agoTests for module 'rint'.
Bruno Haible [Mon, 25 Jan 2010 01:19:20 +0000 (02:19 +0100)]
Tests for module 'rint'.

14 years agoTests for module 'remainder'.
Bruno Haible [Mon, 25 Jan 2010 01:18:51 +0000 (02:18 +0100)]
Tests for module 'remainder'.

14 years agoTests for module 'pow'.
Bruno Haible [Mon, 25 Jan 2010 01:18:19 +0000 (02:18 +0100)]
Tests for module 'pow'.

14 years agoTests for module 'nextafter'.
Bruno Haible [Mon, 25 Jan 2010 01:13:03 +0000 (02:13 +0100)]
Tests for module 'nextafter'.

14 years agoTests for module 'modf'.
Bruno Haible [Mon, 25 Jan 2010 01:14:54 +0000 (02:14 +0100)]
Tests for module 'modf'.

14 years agoTests for module 'logb'.
Bruno Haible [Mon, 25 Jan 2010 01:11:59 +0000 (02:11 +0100)]
Tests for module 'logb'.