gnulib.git
14 years agoclose #561117 in changelog debian/20100109+stable-1
Ian Beckwith [Sun, 17 Jan 2010 07:27:27 +0000 (07:27 +0000)]
close #561117 in changelog

14 years agoupdate copyright info
Ian Beckwith [Sun, 17 Jan 2010 07:10:45 +0000 (07:10 +0000)]
update copyright info

14 years agodebian/rules: make lib/config.charset executable
Ian Beckwith [Sun, 10 Jan 2010 22:25:55 +0000 (22:25 +0000)]
debian/rules: make lib/config.charset executable

14 years agoupdate debian/copyright
Ian Beckwith [Sun, 10 Jan 2010 01:10:22 +0000 (01:10 +0000)]
update debian/copyright

14 years agoMerge branch 'stable'
Ian Beckwith [Sun, 10 Jan 2010 01:02:59 +0000 (01:02 +0000)]
Merge branch 'stable'

14 years agoNEWS.stable: update stable/20100109
Ian Beckwith [Sun, 10 Jan 2010 00:55:37 +0000 (00:55 +0000)]
NEWS.stable: update

14 years agounistr/u16-to-u32: Reject invalid input.
Bruno Haible [Sat, 9 Jan 2010 22:30:53 +0000 (23:30 +0100)]
unistr/u16-to-u32: Reject invalid input.
(cherry picked from commit 19aa55eaba476927ff9480bf2277b7ebb5ef9ad2)

14 years agounistr/u16-to-u8: Reject invalid input.
Bruno Haible [Sat, 9 Jan 2010 22:30:20 +0000 (23:30 +0100)]
unistr/u16-to-u8: Reject invalid input.
(cherry picked from commit f03c8d5562c251bfa6850372bb68d8eb346205f8)

14 years agounistr/u8-to-u32: Reject invalid input.
Bruno Haible [Sat, 9 Jan 2010 22:29:05 +0000 (23:29 +0100)]
unistr/u8-to-u32: Reject invalid input.
(cherry picked from commit 95a86a971a26592ce38fa66c56168707a140d1d3)

14 years agoNEWS.stable: update
Ian Beckwith [Sun, 10 Jan 2010 00:54:39 +0000 (00:54 +0000)]
NEWS.stable: update

14 years agounistr/u8-to-u16: Reject invalid input.
Ian Beckwith [Sun, 10 Jan 2010 00:54:06 +0000 (00:54 +0000)]
unistr/u8-to-u16: Reject invalid input.
(cherry picked from commit 630a387fb1ef0a2fda5fd73c02c37328d65d0755)

Conflicts:

ChangeLog

14 years agogetlogin_r: Support for native Windows.
Bruno Haible [Sat, 9 Jan 2010 15:06:42 +0000 (16:06 +0100)]
getlogin_r: Support for native Windows.
(cherry picked from commit 570a589f450f56efd364d9b561d8ff9a697735ab)

14 years agogetlogin_r: Small fixes.
Bruno Haible [Sat, 9 Jan 2010 14:14:41 +0000 (15:14 +0100)]
getlogin_r: Small fixes.
(cherry picked from commit 89b39efd31cd0ffdaf05c9785c1af1e479728472)

14 years agogetlogin_r: Add comment.
Bruno Haible [Sat, 9 Jan 2010 13:16:57 +0000 (14:16 +0100)]
getlogin_r: Add comment.
(cherry picked from commit 3361cfa64ad042478aea5834785270e1553b1801)

14 years agoNEWS.stable: update
Ian Beckwith [Sun, 10 Jan 2010 00:49:55 +0000 (00:49 +0000)]
NEWS.stable: update

14 years agoTests for module 'getlogin_r'.
Ian Beckwith [Sun, 10 Jan 2010 00:48:30 +0000 (00:48 +0000)]
Tests for module 'getlogin_r'.
(cherry picked from commit dd5823d49cf74819742b51ff48044ebe1adbd834)

Conflicts:

ChangeLog

14 years agoNEWS.stable: update
Ian Beckwith [Sun, 10 Jan 2010 00:47:23 +0000 (00:47 +0000)]
NEWS.stable: update

14 years agolib/dup2.c (rpl_dup2): Improve comment.
Simon Josefsson [Fri, 8 Jan 2010 22:29:17 +0000 (23:29 +0100)]
lib/dup2.c (rpl_dup2): Improve comment.
(cherry picked from commit 581419c98c50af5daefcbb07ca1cbc16539db072)

14 years agodup2: work around mingw bug
Eric Blake [Fri, 8 Jan 2010 15:17:00 +0000 (08:17 -0700)]
dup2: work around mingw bug

dup2 (fd, -2) returned -2 instead of the proper -1.

* lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
Reported by Simon Josefsson.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit 2cf2e370931afbad5ce4c365c3113008d90bcfef)

14 years agoNEWS.stable: update
Ian Beckwith [Sun, 10 Jan 2010 00:34:54 +0000 (00:34 +0000)]
NEWS.stable: update

14 years agoglob: Fix C++ compilation.
John W. Eaton [Fri, 8 Jan 2010 09:11:07 +0000 (10:11 +0100)]
glob: Fix C++ compilation.
(cherry picked from commit 0906b5f3d776d1a91b4c1f2c244cb01b2c6aabcd)

14 years agoFix indentation of wctype.in.h, broken since 2007-01-06.
Bruno Haible [Thu, 7 Jan 2010 22:57:15 +0000 (23:57 +0100)]
Fix indentation of wctype.in.h, broken since 2007-01-06.
(cherry picked from commit ccc06b224dfe349ef3d7324fd688cf630a77004c)

14 years agombslen: Avoid collision with system function.
Bruno Haible [Thu, 7 Jan 2010 22:42:03 +0000 (23:42 +0100)]
mbslen: Avoid collision with system function.
(cherry picked from commit 969fe755730d23ba7ff21ae7511f66067d0a94d8)

14 years agodirent: Document the last fix.
Bruno Haible [Thu, 7 Jan 2010 22:19:38 +0000 (23:19 +0100)]
dirent: Document the last fix.
(cherry picked from commit 027bd46103b5e6a19653b216b15fe04d3a3f63bc)

14 years agostdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
Bruno Haible [Thu, 7 Jan 2010 22:12:26 +0000 (23:12 +0100)]
stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
(cherry picked from commit f1195ccd1ee2cd56ed6b82a76fdee8de0c3d78b7)

14 years agoxlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
Bruno Haible [Thu, 7 Jan 2010 20:44:46 +0000 (21:44 +0100)]
xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
(cherry picked from commit 64cbaddad77b797bddb457c0769afa7db9054d65)

14 years agodoc: Clarify the platforms.
Bruno Haible [Thu, 7 Jan 2010 20:33:02 +0000 (21:33 +0100)]
doc: Clarify the platforms.
(cherry picked from commit cc6a6870c567a7476a2608f73b3a4ca8d1ffb2d6)

14 years agonl_langinfo: Simplify logic.
Bruno Haible [Thu, 7 Jan 2010 20:25:30 +0000 (21:25 +0100)]
nl_langinfo: Simplify logic.
(cherry picked from commit 7f01cc5253fa60903c1963c23c34eb79b1fb4b79)

14 years agoChangeLog: Correct a recent entry.
Bruno Haible [Thu, 7 Jan 2010 19:52:03 +0000 (20:52 +0100)]
ChangeLog: Correct a recent entry.
(cherry picked from commit 5cd308a4676d3dfbb5faffb602b8ad3b0b806b0d)

14 years agoautoupdate
Karl Berry [Thu, 7 Jan 2010 18:33:44 +0000 (10:33 -0800)]
autoupdate
(cherry picked from commit 67516517a5cd666e9494e9eca61aac7feb1d9b9d)

14 years agowctype: allow C++ use
John W. Eaton [Thu, 7 Jan 2010 13:16:09 +0000 (06:16 -0700)]
wctype: allow C++ use

* lib/wctype.in.h: Add extern "C" block for C++.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit c1a179cd48726257211e503550e1199da90c8465)

14 years agomaint.mk: detect incorrect GFDL usage
Eric Blake [Thu, 7 Jan 2010 03:47:08 +0000 (20:47 -0700)]
maint.mk: detect incorrect GFDL usage

Similar to the existing sc_GPL_version.  Fortunately, the two licenses
have enough distinction in wording so that neither regexp is a false
positive for the other license.  This won't catch files that line wrap
differently than expected; as it was, the GFDL needed two regexp to
handle the use of GFDL in the m4 project.

* top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit cb361c968d771304ab68ed5cb8016a6b0c1b8cf2)

14 years agomaint.mk: ignore multi-line copyright in NEWS
Eric Blake [Wed, 6 Jan 2010 17:03:34 +0000 (10:03 -0700)]
maint.mk: ignore multi-line copyright in NEWS

The old algorithm did not work for projects like m4 that used
long-hand copyright years that wrapped lines.  Meanwhile, this
change has no impact to single-line copyrights, like coreutils.

Changing the rest of the footer, such as bumping from GFDL 1.2
to GFDL 1.3, will still require the developer to rerun
'make update-NEWS-hash' to get the hash back in sync, but that
is probably less frequent.

* top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit c4b45631bce0034e4433a9f421cf16fe803c51f3)

14 years agoselect: add missing dependency
Eric Blake [Thu, 7 Jan 2010 02:44:15 +0000 (19:44 -0700)]
select: add missing dependency

* modules/select-tests (Depends-on): Move sockets dependency...
* modules/select (Depends-on): ...here.
Reported by Ian Beckwith.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit 654c876d285ca580043bf3074f7f66128b08bad0)

14 years agodoc: regenerate INSTALL
Eric Blake [Wed, 21 Oct 2009 02:27:20 +0000 (20:27 -0600)]
doc: regenerate INSTALL

* doc/INSTALL: Reflect recent autoconf update.
* doc/INSTALL.ISO: Likewise.
* doc/INSTALL.UTF-8: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit 2f0e0a85324a518837fca63bc696ca0ce16d9ee9)

14 years agopread: fix compilation on glibc
Eric Blake [Wed, 6 Jan 2010 21:12:45 +0000 (14:12 -0700)]
pread: fix compilation on glibc

pread was not mandatory until POSIX 2008, so glibc does not
expose it by default.

* m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit 978114f6f3d4c5d0c1fd7f2bb1f48a37bab89553)

14 years agodirent: fix test failure
Eric Blake [Wed, 6 Jan 2010 21:08:15 +0000 (14:08 -0700)]
dirent: fix test failure

POSIX 2008 XSI requires ino_t.  But it is easier if gnulib
guarantees it always, rather than just on XSI systems.

* lib/dirent.in.h (includes): Guarantee ino_t.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit 010ecd2dfc078e5a475bc5ab152e7cfc10cef804)

14 years agolinkat, renameat: avoid bad free
Petr Salinger [Thu, 7 Jan 2010 01:59:29 +0000 (18:59 -0700)]
linkat, renameat: avoid bad free

* lib/at-func2.c (at_func2): Fix typo.
Reported via Ian Beckwith, from http://bugs.debian.org/561117.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit e5697c685644390cb2ec3f753a5547b73128f6b4)

14 years agocleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
Ralf Wildenhues [Wed, 6 Jan 2010 18:21:57 +0000 (19:21 +0100)]
cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test

* m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
to avoid failure of symlink test later.

Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
(cherry picked from commit eb9c0c2d754d2a93ca3a8475dbdbdea396d9d5dd)

14 years agoautoupdate
Karl Berry [Wed, 6 Jan 2010 15:38:23 +0000 (07:38 -0800)]
autoupdate
(cherry picked from commit ae0044cde430d5feeba0c9c53a5c0fe1ba636080)

14 years agostdio, unistd: guarantee ssize_t
Eric Blake [Wed, 6 Jan 2010 14:09:03 +0000 (07:09 -0700)]
stdio, unistd: guarantee ssize_t

Per POSIX 2008, ssize_t needs to exist whether or not we are
replacing functions that use it.  For now, we only guarantee
it if we know that the user expects a function that uses
that type, while waiting for glibc to catch up to POSIX.

* lib/unistd.in.h (includes): Ensure that types required by POSIX
2008 are exposed when needed.
* lib/stdio.in.h (includes): Likewise.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit 60ad192b7032409b579ea059591cfd2558f57075)

14 years agonl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
Paolo Bonzini [Tue, 5 Jan 2010 17:54:29 +0000 (18:54 +0100)]
nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.

* m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
(cherry picked from commit f9eed4bc005946e46ce0888ba759f06442c4754e)

14 years agoreadtokens: this module *does* require xalloc.h
Jim Meyering [Wed, 6 Jan 2010 07:38:14 +0000 (08:38 +0100)]
readtokens: this module *does* require xalloc.h

It uses only functions that were omitted by the old syntax-check rule.
* lib/readtokens.c: Include "xalloc.h" once again.
* modules/readtokens (Depends-on): Add xalloc.
This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
(cherry picked from commit 816a1ec4c989ffea4a462978db076c2f4322b730)

14 years agomaint: support 'make announcement' from a VPATH build
Eric Blake [Wed, 6 Jan 2010 04:23:08 +0000 (21:23 -0700)]
maint: support 'make announcement' from a VPATH build

* top/maint.mk (announcement): Look for correct NEWS file.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit 735d9d0a10551cec9e67cc0eb0aadb541bc63d27)

14 years agoutimens (fdutimens): ignore a negative FD, per contract
Aurelien Jarno [Wed, 6 Jan 2010 03:27:12 +0000 (20:27 -0700)]
utimens (fdutimens): ignore a negative FD, per contract

* lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
when we have a valid file descriptor.  Otherwise, using a brand
new glibc (with just-patched futimens that now fails with EBADF)
would cause this function to fail with ENOSYS.
Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
See also http://bugzilla.redhat.com/552320.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit 41c44a66101c6c14b4e7f151247d517579760ba9)

14 years agostrcase: document what it provides
Eric Blake [Wed, 6 Jan 2010 03:23:07 +0000 (20:23 -0700)]
strcase: document what it provides

* doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
gnulib module.
* doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit f8b8f4f5e1c1fd8687f4eeda7055aa89e30f65a5)

14 years agoChangeLog: correct last entry: s/alloca.h/xalloc.h/
Jim Meyering [Tue, 5 Jan 2010 15:43:50 +0000 (16:43 +0100)]
ChangeLog: correct last entry: s/alloca.h/xalloc.h/
(cherry picked from commit c1b6197b10313c0f1e0b0992d51e7964a9bf2f99)

14 years agomaint: remove useless inclusions of "alloca.h"
Jim Meyering [Tue, 5 Jan 2010 14:14:35 +0000 (15:14 +0100)]
maint: remove useless inclusions of "alloca.h"

* lib/getloadavg.c: Remove useless inclusion of "alloca.h".
* lib/readtokens.c: Likewise.
* lib/same.c: Likewise.
* modules/getloadavg (Depends-on): Remove xalloc.
* modules/readtokens: Likewise.
* modules/same: Likewise.
(cherry picked from commit 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c)

14 years agomaint.mk: include 4 more function names in alloca.h-checking regexp
Jim Meyering [Tue, 5 Jan 2010 14:12:15 +0000 (15:12 +0100)]
maint.mk: include 4 more function names in alloca.h-checking regexp

* top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
regexp.  Before, we would give a false-positive (saying alloca.h
is included unnecessarily) when the only uses involved omitted symbols.
(cherry picked from commit 0c2fded89d2ebb3395d176001182ef710d68d430)

14 years agoxalloc.h: use consistent formatting
Jim Meyering [Tue, 5 Jan 2010 14:10:02 +0000 (15:10 +0100)]
xalloc.h: use consistent formatting

* lib/xalloc.h: Move declarations to start in the first column.
(cherry picked from commit 28e6fc0a9042637a27233dca31962afd53bbb8cd)

14 years agomkdir: avoid xalloc
Eric Blake [Tue, 5 Jan 2010 13:09:14 +0000 (06:09 -0700)]
mkdir: avoid xalloc

Leftovers from when the mkdir replacement was converted to be LGPL.

* lib/mkdir.c (includes): Drop unused header.
Reported by John W. Eaton.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit 51983dcb2ce9d20eb1f72d0b877e40fe0de07e87)

14 years agoNEWS.stable: update
Ian Beckwith [Sun, 10 Jan 2010 00:18:52 +0000 (00:18 +0000)]
NEWS.stable: update

14 years agonl_langinfo: avoid configure-time syntax error
Ian Beckwith [Sun, 10 Jan 2010 00:17:52 +0000 (00:17 +0000)]
nl_langinfo: avoid configure-time syntax error

* m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
the empty string.  Don't let that provoke a shell syntax error.
(cherry picked from commit 7a29e0093f4a87478cdf7b7c87786272d6f37dfe)

Conflicts:

ChangeLog

14 years agoNEWS.stable: update
Ian Beckwith [Sun, 10 Jan 2010 00:14:36 +0000 (00:14 +0000)]
NEWS.stable: update

14 years agofdopendir: fix configure test
Eric Blake [Mon, 4 Jan 2010 13:36:13 +0000 (06:36 -0700)]
fdopendir: fix configure test

A typo was causing spurious rejection of fdopendir.

* m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit e138cd8fc9c9465059e9d0427d0cf0669d5a8caf)

14 years agoautoupdate
Karl Berry [Sun, 3 Jan 2010 14:30:52 +0000 (06:30 -0800)]
autoupdate
(cherry picked from commit 8f3aa1fee051bc5091d5f9b207609c03cf023894)

14 years agoNEWS.stable: update
Ian Beckwith [Sun, 10 Jan 2010 00:13:11 +0000 (00:13 +0000)]
NEWS.stable: update

14 years agowchar: Remove unused configure check.
Bruno Haible [Fri, 1 Jan 2010 19:02:59 +0000 (20:02 +0100)]
wchar: Remove unused configure check.
(cherry picked from commit 1bf02c37a30c1e2cac729a3f035ec132d4b2f205)

14 years agoNEWS.stable: update
Ian Beckwith [Sun, 10 Jan 2010 00:05:31 +0000 (00:05 +0000)]
NEWS.stable: update

14 years agoheaders: make check of system header explicit
Eric Blake [Thu, 31 Dec 2009 23:20:15 +0000 (16:20 -0700)]
headers: make check of system header explicit

Exploiting knowledge of internal behavior of other macros can
be dangerous, especially since AC_CHECK_HEADERS_ONCE is designed
to be cheap on subsequent use.

* m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
ourselves.
* m4/search_h.m4 (gl_SEARCH_H): Likewise.
* m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
* m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
* m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
internals.
* m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
missing.
Suggested by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
(cherry picked from commit e7100ae48702b41167615d0dba263125114216ef)

14 years agoprepare NEWS.stable
Ian Beckwith [Sun, 10 Jan 2010 00:03:52 +0000 (00:03 +0000)]
prepare NEWS.stable

14 years agoupdate copyright to start of stable snapshot
Ian Beckwith [Sat, 9 Jan 2010 06:19:14 +0000 (06:19 +0000)]
update copyright to start of stable snapshot

14 years agoMerge branch 'stable'
Ian Beckwith [Fri, 8 Jan 2010 05:17:35 +0000 (05:17 +0000)]
Merge branch 'stable'

Merge to start of new stable snapshot

Conflicts:
ChangeLog
build-aux/config.guess
m4/getugroups.m4
m4/unistd_h.m4
m4/unlink.m4

14 years agomerge tab->whitespace change
Ian Beckwith [Fri, 8 Jan 2010 05:10:40 +0000 (05:10 +0000)]
merge tab->whitespace change

14 years agoMerge commit '441aa3044f43e5572f58c354f01e6bc070acd5c7'
Ian Beckwith [Fri, 8 Jan 2010 05:08:51 +0000 (05:08 +0000)]
Merge commit '441aa3044f43e5572f58c354f01e6bc070acd5c7'

14 years agoupdate debian/copyright
Ian Beckwith [Fri, 8 Jan 2010 05:05:05 +0000 (05:05 +0000)]
update debian/copyright

14 years agoMerge commit '039ae97'
Ian Beckwith [Fri, 8 Jan 2010 04:18:56 +0000 (04:18 +0000)]
Merge commit '039ae97'

Merge up to commit before tab/space changes

Conflicts:
ChangeLog
build-aux/config.guess
lib/unistd.in.h
m4/chown.m4
m4/getgroups.m4
m4/getugroups.m4
m4/unistd_h.m4
m4/unlink.m4
tests/test-getgroups.c

14 years agoMerge commit '12319ff4e84ca616a671216d991dd6eaf1c39c47' into stable
Ian Beckwith [Fri, 8 Jan 2010 04:12:31 +0000 (04:12 +0000)]
Merge commit '12319ff4e84ca616a671216d991dd6eaf1c39c47' into stable

14 years agoChangeLog: tweak to eliminate unnecessary copyright line
Jim Meyering [Fri, 1 Jan 2010 15:00:07 +0000 (16:00 +0100)]
ChangeLog: tweak to eliminate unnecessary copyright line

* ChangeLog: Remove a copyright line that was mistakenly updated
by today's update-copyright run.  Reported by Eric Blake.

14 years agoautoupdate
Karl Berry [Fri, 1 Jan 2010 14:37:02 +0000 (06:37 -0800)]
autoupdate

14 years agotest-update-copyright: don't let envvar setting cause test failure
Jim Meyering [Fri, 1 Jan 2010 10:28:11 +0000 (11:28 +0100)]
test-update-copyright: don't let envvar setting cause test failure

* tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.

14 years agoupdate nearly all FSF copyright year lists to include 2010
Jim Meyering [Fri, 1 Jan 2010 09:31:12 +0000 (10:31 +0100)]
update nearly all FSF copyright year lists to include 2010

Use the same procedure as for 2009, outlined in
http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081

14 years agolocalename: Avoid gcc warning.
Bruno Haible [Fri, 1 Jan 2010 09:33:57 +0000 (10:33 +0100)]
localename: Avoid gcc warning.

14 years agoversion-etc: set COPYRIGHT_YEAR to 2010
Jim Meyering [Fri, 1 Jan 2010 09:20:42 +0000 (10:20 +0100)]
version-etc: set COPYRIGHT_YEAR to 2010

* lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.

14 years agodoc: correct availability of cygwin 1.5.x getopt
Eric Blake [Thu, 31 Dec 2009 15:48:16 +0000 (08:48 -0700)]
doc: correct availability of cygwin 1.5.x getopt

* doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
variables.
* doc/posix-functions/opterr.texi (opterr): Likewise.
* doc/posix-functions/optind.texi (optind): Likewise.
* doc/posix-functions/optopt.texi (optopt): Likewise.
* doc/posix-functions/tzname.texi (tzname): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoopenat: update maintainer
Eric Blake [Thu, 31 Dec 2009 15:33:43 +0000 (08:33 -0700)]
openat: update maintainer

* modules/openat (Maintainer): Add myself.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoutimens: avoid shadowing warning
Eric Blake [Thu, 31 Dec 2009 19:28:35 +0000 (12:28 -0700)]
utimens: avoid shadowing warning

lutimens declared struct stat st in two scopes.  Worse, on Linux
kernels between 2.6.18 and 2.6.22 (when utimensat existed, but
rejected AT_SYMLINK_NOFOLLOW) or before 2.6.18 (if the glibc
headers have utimensat, but the kernel does not), it would
result in redundant [fl]stat calls.

* lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
buffers into one, to avoid shadowing, as well as avoiding a
redundant stat.
Reported by Jim Meyering.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agotest-dup2: avoid compiler warning
Eric Blake [Thu, 31 Dec 2009 20:43:28 +0000 (13:43 -0700)]
test-dup2: avoid compiler warning

A warning cropped up from the 2009-12-28 change, when not using cloexec.

* tests/test-dup2.c (is_inheritable): Only define if used.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agovasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
Bruno Haible [Fri, 1 Jan 2010 01:59:04 +0000 (02:59 +0100)]
vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.

14 years agoiconv: Reject native Solaris iconv.
Bruno Haible [Fri, 1 Jan 2010 00:57:29 +0000 (01:57 +0100)]
iconv: Reject native Solaris iconv.

14 years agoFix mistake in last patch of tests/test-signal.c.
Bruno Haible [Thu, 31 Dec 2009 22:33:04 +0000 (23:33 +0100)]
Fix mistake in last patch of tests/test-signal.c.

14 years agospawn: Fix incomplete fix.
Bruno Haible [Thu, 31 Dec 2009 22:29:51 +0000 (23:29 +0100)]
spawn: Fix incomplete fix.

14 years agoAvoid namespace pollution on glibc systems.
Bruno Haible [Thu, 31 Dec 2009 21:54:32 +0000 (22:54 +0100)]
Avoid namespace pollution on glibc systems.

14 years agoFurther updates, following today's commits.
Bruno Haible [Thu, 31 Dec 2009 21:41:49 +0000 (22:41 +0100)]
Further updates, following today's commits.

14 years agoFix bug in last change of m4/sys_select_h.m4.
Bruno Haible [Thu, 31 Dec 2009 21:27:32 +0000 (22:27 +0100)]
Fix bug in last change of m4/sys_select_h.m4.

14 years agoComplete last change to m4/sys_utsname_h.m4.
Bruno Haible [Thu, 31 Dec 2009 21:24:22 +0000 (22:24 +0100)]
Complete last change to m4/sys_utsname_h.m4.

14 years agospawn: Fix misapplied patch.
Bruno Haible [Thu, 31 Dec 2009 21:02:09 +0000 (22:02 +0100)]
spawn: Fix misapplied patch.

14 years agotimes: Update after sys_times changed.
Bruno Haible [Thu, 31 Dec 2009 20:31:35 +0000 (21:31 +0100)]
times: Update after sys_times changed.

14 years agoUse AC_C_INLINE where necessary.
Bruno Haible [Thu, 31 Dec 2009 15:13:01 +0000 (16:13 +0100)]
Use AC_C_INLINE where necessary.

14 years agoUse AC_C_INLINE instead of module 'inline' where possible.
Bruno Haible [Thu, 31 Dec 2009 14:47:10 +0000 (15:47 +0100)]
Use AC_C_INLINE instead of module 'inline' where possible.

14 years agoRemove unnecessary AC_C_INLINE invocation.
Bruno Haible [Thu, 31 Dec 2009 14:12:41 +0000 (15:12 +0100)]
Remove unnecessary AC_C_INLINE invocation.

14 years agomaint.mk: don't require explicit gpg_key_ID in cfg.mk
Jim Meyering [Thu, 31 Dec 2009 15:31:11 +0000 (16:31 +0100)]
maint.mk: don't require explicit gpg_key_ID in cfg.mk

* top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
With this change, we can all remove the gpg_key_ID = ... definition
from our respective cfg.mk files.

14 years agomaint.mk: create announcement template in ~/, not in /tmp
Jim Meyering [Thu, 31 Dec 2009 14:59:29 +0000 (15:59 +0100)]
maint.mk: create announcement template in ~/, not in /tmp

* top/maint.mk (emit_upload_commands): Adjust.
(release-prep): Emit into ~/announce-..., not /tmp/announce-...
Remove temporary file, .ci-msg.

14 years agoautoupdate
Karl Berry [Thu, 31 Dec 2009 14:20:57 +0000 (06:20 -0800)]
autoupdate

14 years agolink-warning: always build headers with link warnings
Eric Blake [Thu, 24 Dec 2009 19:06:48 +0000 (12:06 -0700)]
link-warning: always build headers with link warnings

Replacement headers must be built unconditionally if they use
GL_LINK_WARNING, if the warning is to ever trigger on a
glibc system during CFLAGS=-DGNULIB_POSIXCHECK.

* modules/arpa_inet (Makefile.am): Always build replacement
header.
* modules/ctype (Makefile.am): Likewise.
* modules/dirent (Makefile.am): Likewise.
* modules/inttypes (Makefile.am): Likewise.
* modules/langinfo (Makefile.am): Likewise.
* modules/locale (Makefile.am): Likewise.
* modules/spawn (Makefile.am): Likewise.
* modules/sys_file (Makefile.am): Likewise.
* modules/sys_ioctl (Makefile.am): Likewise.
* modules/sys_select (Makefile.am): Likewise.
* modules/sys_socket (Makefile.am): Likewise.
* modules/sys_times (Makefile.am): Likewise.
* modules/sys_utsname (Makefile.am): Likewise.
* modules/sys_wait (Makefile.am): Likewise.
* modules/wchar (Makefile.am): Likewise.
* m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
(gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
* m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
* m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
* m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
Likewise.
* m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
* m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
* m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
Likewise.
* m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
Likewise.
* m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
* m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
(gl_SYS_IOCTL_H_DEFAULTS): Likewise.
* m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
* m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
* m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
(gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
* m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
(gl_WCHAR_H_DEFAULTS): Likewise.

14 years agosignal, spawn: use link warnings
Eric Blake [Wed, 30 Dec 2009 21:42:41 +0000 (14:42 -0700)]
signal, spawn: use link warnings

These modules depended on link-warning, then didn't use it.

* lib/signal.in.h (sigset_t): Make unconditional.
(sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
(sigpending, sigprocmask, sigaction): Add link warnings.
* lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
(posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
(posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
(posix_spawnattr_setsigmask, posix_spawnattr_getflags)
(posix_spawnattr_setflags, posix_spawnattr_getpgroup)
(posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
(posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
(posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
(posix_spawn_file_actions_destroy)
(posix_spawn_file_actions_addopen)
(posix_spawn_file_actions_addclose)
(posix_spawwn_file_actions_adddup2): Likewise.
* m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
* tests/test-signal.c (main): Enhance test.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agospawn: improve wrapper support
Eric Blake [Wed, 30 Dec 2009 18:52:31 +0000 (11:52 -0700)]
spawn: improve wrapper support

Avoid type conflicts if overriding system header.

* m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
(gl_SPAWN_H_DEFAULTS): New defaults.
* modules/spawn (Makefile.am): Substitute them.
* lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
Only declare if missing or broken.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agosys_times, sys_utsname: use include_next
Eric Blake [Wed, 30 Dec 2009 16:47:55 +0000 (09:47 -0700)]
sys_times, sys_utsname: use include_next

Another step towards being able to make GL_LINK_WARNING useful.

* m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
header.
(gl_SYS_TIMES_H_DEFAULTS): Add another variable.
* m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
(gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
* modules/sys_times (Depends-on): Add include_next.
(Makefile.am): Substitute additional values.
* modules/sys_utsname (Depends-on, Makefile.am): Likewise.
* lib/sys_times.in.h (includes): Include native header, if
available.
* lib/sys_utsname.in.h (includes): Likewise.
* tests/test-sys_times.c (main): Enhance test.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agofdutimensat: revert prior patch
Eric Blake [Thu, 31 Dec 2009 12:42:02 +0000 (05:42 -0700)]
fdutimensat: revert prior patch

This reverts commit 2c391ad5ed26c01e161b5de30d3a225fabe08731.

* modules/fdutimensat (Depends-on): Re-add inline; it is needed by
utimens.h.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agosys_wait: drop link-warning dependency
Eric Blake [Wed, 30 Dec 2009 18:59:29 +0000 (11:59 -0700)]
sys_wait: drop link-warning dependency

Until gnulib provides any replacement for functions in <sys/wait.h>,
the header does not need to depend on link-warning.

* modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
link-warning efforts.
* lib/sys_wait.in.h: Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>