gnulib.git
12 years agoNEWS.stable: update and finalise stable/20110609
Ian Beckwith [Fri, 10 Jun 2011 01:02:48 +0000 (02:02 +0100)]
NEWS.stable: update and finalise

12 years agothread: Fix confusion between NULL and 0.
Bruno Haible [Thu, 9 Jun 2011 10:55:09 +0000 (12:55 +0200)]
thread: Fix confusion between NULL and 0.

* lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
Reported by Paul Eggert.
(cherry picked from commit 5f0441a0bef4d7a8af4e3ba8b24a948e5cccd71c)

12 years agoNEWS.stable: log cherry-pick [9776680]->[6ddae30] acl tests: Fix compilation error...
Ian Beckwith [Fri, 10 Jun 2011 00:52:59 +0000 (01:52 +0100)]
NEWS.stable: log cherry-pick [9776680]->[6ddae30] acl tests: Fix compilation error on HP-UX 11.

12 years agoacl tests: Fix compilation error on HP-UX 11.
Bruno Haible [Thu, 9 Jun 2011 09:35:25 +0000 (11:35 +0200)]
acl tests: Fix compilation error on HP-UX 11.

* tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
(cherry picked from commit 977668097235961df277425c64c0d2f51b3eed0f)

12 years agoNEWS.stable: update
Ian Beckwith [Fri, 10 Jun 2011 00:52:44 +0000 (01:52 +0100)]
NEWS.stable: update

12 years agormdir: Avoid test failure on HP-UX 10.20.
Bruno Haible [Thu, 9 Jun 2011 09:21:23 +0000 (11:21 +0200)]
rmdir: Avoid test failure on HP-UX 10.20.

* tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
EEXIST.
(cherry picked from commit 363971609279e4941f32dc4dcbc3155c763317af)

12 years agoNEWS.stable: log cherry-pick [7b2b693]->[a43f6fd] autoupdate
Ian Beckwith [Fri, 10 Jun 2011 00:41:18 +0000 (01:41 +0100)]
NEWS.stable: log cherry-pick [7b2b693]->[a43f6fd] autoupdate

12 years agoautoupdate
Karl Berry [Tue, 7 Jun 2011 22:41:22 +0000 (15:41 -0700)]
autoupdate
(cherry picked from commit 7b2b6935563291824bbea6a4f163b0ae1c67c4bc)

12 years agoNEWS.stable: update
Ian Beckwith [Fri, 10 Jun 2011 00:41:01 +0000 (01:41 +0100)]
NEWS.stable: update

12 years agotests: fix usage message in 'mktempd_'
Stefano Lattarini [Tue, 7 Jun 2011 11:55:57 +0000 (13:55 +0200)]
tests: fix usage message in 'mktempd_'

* tests/init.sh (mktempd_): In the usage message, use literal
'mktempd_', not '$ME' (which is even undefined), as the name of
the subroutine.
(cherry picked from commit fba324553f05901eebdd0884ffff74b04a06704a)

12 years agoNEWS.stable: log cherry-pick [3180807]->[768eb31] doc/lgpl-2.1.texi
Ian Beckwith [Fri, 10 Jun 2011 00:39:29 +0000 (01:39 +0100)]
NEWS.stable: log cherry-pick [3180807]->[768eb31] doc/lgpl-2.1.texi

12 years agodoc/lgpl-2.1.texi
Karl Berry [Tue, 7 Jun 2011 12:53:38 +0000 (05:53 -0700)]
doc/lgpl-2.1.texi
(cherry picked from commit 318080789c4eb9844fbeaa59aab5bb0649298a68)

12 years agoNEWS.stable: log cherry-pick [79aac72]->[cc1a9b7] canonicalize-lgpl: use common idiom
Ian Beckwith [Fri, 10 Jun 2011 00:39:07 +0000 (01:39 +0100)]
NEWS.stable: log cherry-pick [79aac72]->[cc1a9b7] canonicalize-lgpl: use common idiom

12 years agocanonicalize-lgpl: use common idiom
Eric Blake [Mon, 6 Jun 2011 23:16:18 +0000 (17:16 -0600)]
canonicalize-lgpl: use common idiom

* m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
over newer POSIX -Rf.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit 79aac72351f56c4998c4cd176a7fd30a1598972b)

12 years agoNEWS.stable: update
Ian Beckwith [Fri, 10 Jun 2011 00:38:37 +0000 (01:38 +0100)]
NEWS.stable: update

12 years agocanonicalize-lgpl: work around AIX realpath bug
Eric Blake [Mon, 6 Jun 2011 22:17:50 +0000 (16:17 -0600)]
canonicalize-lgpl: work around AIX realpath bug

AIX 7.1 realpath() gets horribly confused by consecutive /
in the name to be resolved.

* m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
* doc/posix-functions/realpath.texi (realpath): Document it.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit c2245238b3d9cc9a367c133065ef675e2f599333)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 23:47:37 +0000 (00:47 +0100)]
NEWS.stable: update

12 years agocareadlinkat: Avoid mismatch between ssize_t and int.
Bruno Haible [Mon, 6 Jun 2011 09:01:52 +0000 (11:01 +0200)]
careadlinkat: Avoid mismatch between ssize_t and int.

* lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
* lib/careadlinkat.c (careadlinkatcwd): Define always.
(cherry picked from commit 3f9fff25ea73b1a9b168d691d205d9fbb32f5d16)

12 years agoNEWS.stable: log cherry-pick [c914617]->[34d3cce] ansi-c++-opt: Interoperability...
Ian Beckwith [Thu, 9 Jun 2011 23:44:17 +0000 (00:44 +0100)]
NEWS.stable: log cherry-pick [c914617]->[34d3cce] ansi-c++-opt: Interoperability with libtool.

12 years agoansi-c++-opt: Interoperability with libtool.
Bruno Haible [Sun, 5 Jun 2011 22:29:58 +0000 (00:29 +0200)]
ansi-c++-opt: Interoperability with libtool.

* m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
set the variable to "no", not to ":".
* NEWS: Mention the change.
(cherry picked from commit c914617c3a84151020e1251c759dbdd362955fbc)

12 years agoNEWS.stable: log cherry-pick [e7754b0]->[52062c8] acl: Fix test failure on AIX 7.
Ian Beckwith [Thu, 9 Jun 2011 23:40:57 +0000 (00:40 +0100)]
NEWS.stable: log cherry-pick [e7754b0]->[52062c8] acl: Fix test failure on AIX 7.

12 years agoacl: Fix test failure on AIX 7.
Bruno Haible [Sun, 5 Jun 2011 18:08:15 +0000 (20:08 +0200)]
acl: Fix test failure on AIX 7.

* tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
(cherry picked from commit e7754b0a383576a87dd6805cfd1df8fdc9cb2ba9)

12 years agoNEWS.stable: log cherry-pick [bf7690a]->[54731c1] pipe-filter-ii: Fix test failure...
Ian Beckwith [Thu, 9 Jun 2011 23:40:36 +0000 (00:40 +0100)]
NEWS.stable: log cherry-pick [bf7690a]->[54731c1] pipe-filter-ii: Fix test failure on AIX and IRIX.

12 years agopipe-filter-ii: Fix test failure on AIX and IRIX.
Bruno Haible [Sun, 5 Jun 2011 17:15:25 +0000 (19:15 +0200)]
pipe-filter-ii: Fix test failure on AIX and IRIX.

* lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
with EAGAIN, retry with a smaller buffer size.
(cherry picked from commit bf7690a6dc4d459c3a1315ba23ea521d64ab9afa)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 23:39:30 +0000 (00:39 +0100)]
NEWS.stable: update

12 years agolocalename: Fix link dependencies.
Bruno Haible [Sun, 5 Jun 2011 14:18:23 +0000 (16:18 +0200)]
localename: Fix link dependencies.

* modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
* modules/localename-tests (Makefile.am): Link test-localename with
$(LIBTHREAD).
(cherry picked from commit 1866b237156399f7ec44bf09ad1512bf4099bca7)

12 years agoNEWS.stable: log cherry-pick [6f88ff3]->[4c509f3] unsetenv: Avoid gcc warning.
Ian Beckwith [Thu, 9 Jun 2011 23:36:27 +0000 (00:36 +0100)]
NEWS.stable: log cherry-pick [6f88ff3]->[4c509f3] unsetenv: Avoid gcc warning.

12 years agounsetenv: Avoid gcc warning.
Bruno Haible [Sun, 5 Jun 2011 12:32:56 +0000 (14:32 +0200)]
unsetenv: Avoid gcc warning.

* lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
(cherry picked from commit 6f88ff35bd7cbf4d48212a0eda501613c595904d)

12 years agoNEWS.stable: log cherry-pick [c00787b]->[11da7a4] setenv: Avoid gcc warning.
Ian Beckwith [Thu, 9 Jun 2011 23:36:12 +0000 (00:36 +0100)]
NEWS.stable: log cherry-pick [c00787b]->[11da7a4] setenv: Avoid gcc warning.

12 years agosetenv: Avoid gcc warning.
Bruno Haible [Sun, 5 Jun 2011 12:31:51 +0000 (14:31 +0200)]
setenv: Avoid gcc warning.

* lib/setenv.c (setenv): Provide declaration if system lacks it.
(cherry picked from commit c00787b642cb499896ae03a918f13546d24b6552)

12 years agosys_select: Ensure memset is declared also on AIX 7.
Bruno Haible [Sun, 5 Jun 2011 12:20:16 +0000 (14:20 +0200)]
sys_select: Ensure memset is declared also on AIX 7.

* lib/sys_select.in.h: Include <string.h> also on AIX.
* doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
self-contained also on AIX 7.1.
(cherry picked from commit d3e6271320ff89f1fae7885f50a5d2508f8d9e88)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 23:33:53 +0000 (00:33 +0100)]
NEWS.stable: update

12 years agosetlocale: Enable replacement on Cygwin 1.5.
Bruno Haible [Sat, 4 Jun 2011 10:07:57 +0000 (12:07 +0200)]
setlocale: Enable replacement on Cygwin 1.5.

* m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
Cygwin 1.5.x.
* doc/posix-functions/setlocale.texi: Mention that the problem with the
LC_CTYPE category also exists on Cygwin 1.5.x.
(cherry picked from commit 0605107340f96045f8982a30ef5267832f3618e2)

12 years agoNEWS.stable: log cherry-pick [872f360]->[8248d1a] Copyright: Use LGPL 2.1 instead...
Ian Beckwith [Thu, 9 Jun 2011 23:32:08 +0000 (00:32 +0100)]
NEWS.stable: log cherry-pick [872f360]->[8248d1a] Copyright: Use LGPL 2.1 instead of LGPL 2.0.

12 years agoCopyright: Use LGPL 2.1 instead of LGPL 2.0.
Bruno Haible [Fri, 3 Jun 2011 12:21:08 +0000 (14:21 +0200)]
Copyright: Use LGPL 2.1 instead of LGPL 2.0.

* lib/localename.h: Update copyright header.
* lib/localename.c: Likewise.
* lib/relocatable.h: Likewise.
* lib/relocatable.c: Likewise.
(cherry picked from commit 872f360438e48a8755d76820a19bc12ede2877cc)

12 years agoNEWS.stable: log cherry-pick [27edfbd]->[4ba5a2c] doc: Fix a module name.
Ian Beckwith [Thu, 9 Jun 2011 23:31:49 +0000 (00:31 +0100)]
NEWS.stable: log cherry-pick [27edfbd]->[4ba5a2c] doc: Fix a module name.

12 years agodoc: Fix a module name.
Bruno Haible [Thu, 2 Jun 2011 23:45:23 +0000 (01:45 +0200)]
doc: Fix a module name.

* doc/posix-functions/open.texi: Fix module name 'nonblocking'.
(cherry picked from commit 27edfbd1f469a7bcd997ebc1485c6b2af04f649a)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 23:31:28 +0000 (00:31 +0100)]
NEWS.stable: update

12 years agopipe2: Remove dependency on 'nonblocking' module.
Bruno Haible [Thu, 2 Jun 2011 22:10:00 +0000 (00:10 +0200)]
pipe2: Remove dependency on 'nonblocking' module.

* lib/pipe2.c: Include verify.h. Include nonblocking.h only if
O_NONBLOCK is defined by gnulib.
(pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
is zero.
* modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
* tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
defined by gnulib.
(get_nonblocking_flag): New function.
(main): Test O_NONBLOCK flag only if it is nonzero.
(cherry picked from commit 64e338384bc99dfb49c4f46648b3fa0c50e8491d)

12 years agoNEWS.stable: log cherry-pick [7c886ca]->[802ee67] Fix link errors in tests: openat...
Ian Beckwith [Thu, 9 Jun 2011 23:07:18 +0000 (00:07 +0100)]
NEWS.stable: log cherry-pick [7c886ca]->[802ee67] Fix link errors in tests: openat-die uses gettext-h.

12 years agoFix link errors in tests: openat-die uses gettext-h.
Bruno Haible [Tue, 31 May 2011 21:31:26 +0000 (23:31 +0200)]
Fix link errors in tests: openat-die uses gettext-h.

* modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
against $(LIBINTL).
* modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
against $(LIBINTL).
* modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
$(LIBINTL).
* modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
against $(LIBINTL).
* modules/linkat-tests (Makefile.am): Link test-linkat against
$(LIBINTL).
* modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
$(LIBINTL).
* modules/openat-safer-tests (Makefile.am): Link test-openat-safer
against $(LIBINTL).
* modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
* modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
$(LIBINTL).
* modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
$(LIBINTL).
* modules/utimensat-tests (Makefile.am): Link test-utimensat against
$(LIBINTL).
Reported by Tom G. Christensen <tgc@jupiterrise.com>.
(cherry picked from commit 7c886ca1ada4248c6b838d01e9e9b2158829c6b3)

12 years agoNEWS.stable: log cherry-pick [9c3746f]->[7f56311] build-aux/config.sub
Ian Beckwith [Thu, 9 Jun 2011 23:06:44 +0000 (00:06 +0100)]
NEWS.stable: log cherry-pick [9c3746f]->[7f56311] build-aux/config.sub

12 years agobuild-aux/config.sub
Karl Berry [Tue, 31 May 2011 13:19:28 +0000 (06:19 -0700)]
build-aux/config.sub
(cherry picked from commit 9c3746f4895509ac14d9969bbc4799e43b89947d)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 23:06:20 +0000 (00:06 +0100)]
NEWS.stable: update

12 years agoFix link errors in tests: wait-process uses gettext-h.
Bruno Haible [Mon, 30 May 2011 22:44:51 +0000 (00:44 +0200)]
Fix link errors in tests: wait-process uses gettext-h.

* modules/nonblocking-pipe-tests (Makefile.am): Set
test_nonblocking_pipe_main_LDADD.
* modules/nonblocking-socket-tests (Makefile.am): Link
test-nonblocking-socket-main against $(LIBINTL).
Reported by Tom G. Christensen <tgc@jupiterrise.com>.
(cherry picked from commit 224c034db62061450d1e01ec4b2696682cb65c17)

12 years agoNEWS.stable: log cherry-pick [05f391a]->[ca57003] wctype-h: Avoid namespace pollution...
Ian Beckwith [Thu, 9 Jun 2011 20:28:41 +0000 (21:28 +0100)]
NEWS.stable: log cherry-pick [05f391a]->[ca57003] wctype-h: Avoid namespace pollution on Solaris 2.6.

12 years agowctype-h: Avoid namespace pollution on Solaris 2.6.
Bruno Haible [Sat, 28 May 2011 18:58:14 +0000 (20:58 +0200)]
wctype-h: Avoid namespace pollution on Solaris 2.6.

* lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
identifiers.
* doc/posix-headers/wctype.texi: Mention the problem.
Reported by Tom G. Christensen <tgc@jupiterrise.com>.
(cherry picked from commit 05f391a9c40aaf461aacd0a27fc90bfaafdc5ccc)

12 years agoNEWS.stable: log cherry-pick [a8ff65c]->[264aa35] parse-datetime.y: accommodate ...
Ian Beckwith [Thu, 9 Jun 2011 20:14:39 +0000 (21:14 +0100)]
NEWS.stable: log cherry-pick [a8ff65c]->[264aa35] parse-datetime.y: accommodate -Wstrict-overflow

12 years agoparse-datetime.y: accommodate -Wstrict-overflow
Jim Meyering [Sat, 28 May 2011 18:58:14 +0000 (20:58 +0200)]
parse-datetime.y: accommodate -Wstrict-overflow

* lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
placate -Wstrict-overflow.
(cherry picked from commit a8ff65c566a6391a3c1e832452b6b594eb51f180)

12 years agotrim: avoid a warning from -O2 -Wstrict-overflow
Jim Meyering [Sat, 28 May 2011 14:00:20 +0000 (16:00 +0200)]
trim: avoid a warning from -O2 -Wstrict-overflow

* lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
(cherry picked from commit 244906802a300a1744de8881857a3a2897b3db8b)

12 years agoNEWS.stable: log cherry-pick [fdc9e6c]->[264ebf0] Status of work-in-progress around...
Ian Beckwith [Thu, 9 Jun 2011 19:39:19 +0000 (20:39 +0100)]
NEWS.stable: log cherry-pick [fdc9e6c]->[264ebf0] Status of work-in-progress around libposix.

12 years agoStatus of work-in-progress around libposix.
Bruno Haible [Sun, 29 May 2011 11:00:39 +0000 (13:00 +0200)]
Status of work-in-progress around libposix.
(cherry picked from commit fdc9e6c9f8cf6afe33a6fa114c536750f16b459b)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 19:38:35 +0000 (20:38 +0100)]
NEWS.stable: update

12 years agogetloadavg: Remove an unreliable safety check.
Bruno Haible [Sat, 28 May 2011 20:06:11 +0000 (22:06 +0200)]
getloadavg: Remove an unreliable safety check.

* m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
getloadavg.c is in place.
* modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
Reported by Sam Steingold <sds@gnu.org>.
(cherry picked from commit 8d8a973ad831a93279c282e090d204413ed03f2f)

12 years agoNEWS.stable: log cherry-pick [03f358b]->[1ad6403] gen-uni-tables: Say "gen-uni-tables...
Ian Beckwith [Thu, 9 Jun 2011 19:32:58 +0000 (20:32 +0100)]
NEWS.stable: log cherry-pick [03f358b]->[1ad6403] gen-uni-tables: Say "gen-uni-tables.c" consistently.

12 years agogen-uni-tables: Say "gen-uni-tables.c" consistently.
Simon Josefsson [Thu, 26 May 2011 21:32:02 +0000 (23:32 +0200)]
gen-uni-tables: Say "gen-uni-tables.c" consistently.

* lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
(cherry picked from commit 03f358b413de011c710f08b85cdeb0e5b10a3731)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 19:32:35 +0000 (20:32 +0100)]
NEWS.stable: update

12 years agombsrchr: Avoid collision with system function on Interix.
Bruno Haible [Thu, 26 May 2011 10:28:51 +0000 (12:28 +0200)]
mbsrchr: Avoid collision with system function on Interix.

* lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
Reported by Markus Duft <mduft@gentoo.org>.
(cherry picked from commit 4ed9779262a129dea15e31e301389c09e9b876bf)

12 years agoNEWS.stable: log cherry-pick [1622b36]->[527d6c4] getcwd: work around mingw bug
Ian Beckwith [Thu, 9 Jun 2011 19:01:00 +0000 (20:01 +0100)]
NEWS.stable: log cherry-pick [1622b36]->[527d6c4] getcwd: work around mingw bug

12 years agogetcwd: work around mingw bug
Eric Blake [Wed, 25 May 2011 21:15:14 +0000 (15:15 -0600)]
getcwd: work around mingw bug

mingw getcwd(buf, 0) fails with ERANGE, instead of the required
EINVAL.  Since we're already replacing getcwd on mingw, the
workaround is trivial.

* lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
* doc/posix-functions/getcwd.texi (getcwd): Document it.
Reported by Matthias Bolte.

Signed-off-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit 1622b36b4ae889ea79ddc444e86fea31cd91755b)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 19:00:18 +0000 (20:00 +0100)]
NEWS.stable: update

12 years agotest-intprops: disable -Wtype-limits diagnostics
Paul Eggert [Tue, 24 May 2011 23:47:01 +0000 (16:47 -0700)]
test-intprops: disable -Wtype-limits diagnostics

* tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
diagnostics.  Otherwise, the integer overflow macros generate many
diagnostics.  Reported by Jim Meyering in
<http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
(cherry picked from commit 9d196fad055a448c5732a8e950cc044b353d2615)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 18:54:58 +0000 (19:54 +0100)]
NEWS.stable: update

12 years agodocs: document recently fixed glibc printf bug
Eric Blake [Tue, 24 May 2011 23:33:39 +0000 (17:33 -0600)]
docs: document recently fixed glibc printf bug

Document it as a known bug, but one where we don't provide a
workaround since programmers are unlikely to hit it in practice.

* doc/posix-functions/fprintf.texi (fprintf): Document it.
* doc/posix-functions/printf.texi (printf): Likewise.
* doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
* doc/posix-functions/vprintf.texi (vprintf): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit f4c4af09bcf3f0497dc3347ecc0a0b3c9ee1ff63)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 18:52:39 +0000 (19:52 +0100)]
NEWS.stable: update

12 years agoatexit-tests: ensure reliable exit status
Eric Blake [Tue, 24 May 2011 22:42:37 +0000 (16:42 -0600)]
atexit-tests: ensure reliable exit status

This was the only remaining init.sh client that didn't properly
use the 'Exit' function.

* tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
Reported by Bruno Haible.

Signed-off-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit fc9b0f6cfa9e0e148a79e51150c8171d617474f2)

12 years agoNEWS.stable: log cherry-pick [866bbae]->[b9bb8b9] tests: fix logic bug in init.sh
Ian Beckwith [Thu, 9 Jun 2011 18:50:51 +0000 (19:50 +0100)]
NEWS.stable: log cherry-pick [866bbae]->[b9bb8b9] tests: fix logic bug in init.sh

12 years agotests: fix logic bug in init.sh
Eric Blake [Tue, 24 May 2011 16:04:46 +0000 (10:04 -0600)]
tests: fix logic bug in init.sh

If the shell test loop first finds a marginal then a good shell, the
variable $gl_set_x_corrupts_stderr is still set to true and needlessly
drops $VERBOSE logging.

* tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
shell.

Signed-off-by: Eric Blake <eblake@redhat.com>
(cherry picked from commit 866bbaee7bf64b5f54b2b3d566552782dfb514dd)

12 years agoNEWS.stable: log cherry-pick [6dc42e2]->[d0fe920] utimensat: do not reference an...
Ian Beckwith [Thu, 9 Jun 2011 18:50:06 +0000 (19:50 +0100)]
NEWS.stable: log cherry-pick [6dc42e2]->[d0fe920] utimensat: do not reference an out-of-scope buffer

12 years agoutimensat: do not reference an out-of-scope buffer
Jim Meyering [Tue, 24 May 2011 16:24:24 +0000 (18:24 +0200)]
utimensat: do not reference an out-of-scope buffer

Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
declared in an inner scope, yet "times" would be dereferenced outside
the scope in which "ts" was valid.
* lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
of ts[2] "out/up", so that the use of aliased "times" (via "times = ts;")
does not end up referencing an out-of-scope "ts"
(cherry picked from commit 6dc42e2d25df9c84b335062bad9beb0a7319647b)

12 years agoNEWS.stable: log cherry-pick [d94bbd1]->[4af1887] opendir-safer.c: don't clobber...
Ian Beckwith [Thu, 9 Jun 2011 18:49:51 +0000 (19:49 +0100)]
NEWS.stable: log cherry-pick [d94bbd1]->[4af1887] opendir-safer.c: don't clobber errno; don't close negative FD

12 years agoopendir-safer.c: don't clobber errno; don't close negative FD
Jim Meyering [Tue, 24 May 2011 11:44:41 +0000 (13:44 +0200)]
opendir-safer.c: don't clobber errno; don't close negative FD

* lib/opendir-safer.c (opendir_safer):
[HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
file descriptor, and more importantly, don't clobber the
offending errno value with EINVAL.  Before, upon failure
of dup_safer, we would pass the negative file descriptor to
fdopendir, which would clobber errno.
(cherry picked from commit d94bbd1eb1fc483d72397ec5dd94f7e885e12440)

12 years agoNEWS.stable: log cherry-pick [1e8752a]->[4831e70] Fix recent ChangeLog entry.
Ian Beckwith [Thu, 9 Jun 2011 18:47:38 +0000 (19:47 +0100)]
NEWS.stable: log cherry-pick [1e8752a]->[4831e70] Fix recent ChangeLog entry.

12 years agoFix recent ChangeLog entry.
Bruno Haible [Mon, 23 May 2011 22:19:52 +0000 (00:19 +0200)]
Fix recent ChangeLog entry.
(cherry picked from commit 1e8752a054ac477dd9323d448967f770542a594a)

12 years agoNEWS.stable: log cherry-pick [59ed6e8]->[1166200] idcache: Fix module description.
Ian Beckwith [Thu, 9 Jun 2011 18:47:21 +0000 (19:47 +0100)]
NEWS.stable: log cherry-pick [59ed6e8]->[1166200] idcache: Fix module description.

12 years agoidcache: Fix module description.
Bruno Haible [Mon, 23 May 2011 22:14:15 +0000 (00:14 +0200)]
idcache: Fix module description.

* modules/idcache (Include): Set to "idcache.h".
(cherry picked from commit 59ed6e827f34ae3f31927ef5f95cf76daab1cf79)

12 years agoNEWS.stable: log cherry-pick [ddd54c7]->[cd78e73] gnulib-tool: fix portability proble...
Ian Beckwith [Thu, 9 Jun 2011 18:47:09 +0000 (19:47 +0100)]
NEWS.stable: log cherry-pick [ddd54c7]->[cd78e73] gnulib-tool: fix portability problem with MacOS sed

12 years agognulib-tool: fix portability problem with MacOS sed
Paul Eggert [Mon, 23 May 2011 22:02:43 +0000 (15:02 -0700)]
gnulib-tool: fix portability problem with MacOS sed

A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
before the "}".  Problem reported by Leo in
<http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
* gnulib-tool (sed_dependencies_without_conditions):
(cherry picked from commit ddd54c759aedbcabfb17335dab690ce79c5a53b4)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 18:46:31 +0000 (19:46 +0100)]
NEWS.stable: update

12 years agogetugroups: Fix module description.
Bruno Haible [Mon, 23 May 2011 21:47:00 +0000 (23:47 +0200)]
getugroups: Fix module description.

* modules/getugroups (Include): Set to "getugroups.h".
(cherry picked from commit fbd3cc52618eabae9602095c70d33364bd4d0a9c)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 18:44:38 +0000 (19:44 +0100)]
NEWS.stable: update

12 years agolinkat, renameat: Update dependencies.
Bruno Haible [Mon, 23 May 2011 19:46:00 +0000 (21:46 +0200)]
linkat, renameat: Update dependencies.

* modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
* modules/linkat (Depends-on): Likewise. Remove also readlink,
symlinkat.
(cherry picked from commit 64c633297a293c2405730fc66eb3c7d886a37c91)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 18:22:22 +0000 (19:22 +0100)]
NEWS.stable: update

12 years agoverify: fix bug when gnulib <assert.h> is also included
Paul Eggert [Mon, 23 May 2011 01:36:04 +0000 (18:36 -0700)]
verify: fix bug when gnulib <assert.h> is also included

* lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
is defined, not if _GL_STATIC_ASSERT_H is not defined.
Perhaps there's a better way, but this fixes the immediate problem.
Problem reported by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
(cherry picked from commit 99b313868bb6a7441f762d78252ce418f5ca7fdb)

12 years agoNEWS.stable: log cherry-pick [6c8bcfc]->[617bbef] * doc/intprops.texi: fix typo in...
Ian Beckwith [Thu, 9 Jun 2011 17:50:44 +0000 (18:50 +0100)]
NEWS.stable: log cherry-pick [6c8bcfc]->[617bbef] * doc/intprops.texi: fix typo in copyright date

12 years ago* doc/intprops.texi: fix typo in copyright date
Paul Eggert [Sun, 22 May 2011 20:31:38 +0000 (13:31 -0700)]
* doc/intprops.texi: fix typo in copyright date
(cherry picked from commit 6c8bcfcbed6270ca5eb50d94d324d81157a5c912)

12 years agoNEWS.stable: log cherry-pick [21eb071]->[8694861] clock-time: change to LGPLv2+.
Ian Beckwith [Thu, 9 Jun 2011 17:48:03 +0000 (18:48 +0100)]
NEWS.stable: log cherry-pick [21eb071]->[8694861] clock-time: change to LGPLv2+.

12 years agoclock-time: change to LGPLv2+.
Paul Eggert [Sun, 22 May 2011 03:25:03 +0000 (20:25 -0700)]
clock-time: change to LGPLv2+.

* modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
BSD-like but we have no mark for that; this is good enough for now.
(cherry picked from commit 21eb0710bf49def4db1ddc6f710a3ea5e79461f9)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 17:47:46 +0000 (18:47 +0100)]
NEWS.stable: update

12 years agorelocatable-prog-wrapper: Fix possible link error.
Bruno Haible [Sat, 21 May 2011 21:41:37 +0000 (23:41 +0200)]
relocatable-prog-wrapper: Fix possible link error.

* m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
(gl_FUNC_SETENV): ... to here.
* m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
* m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
(cherry picked from commit 325f131b3d6bdf1b14644f51606d81ee98f6867b)

12 years agoNEWS.stable: log cherry-pick [93d7550]->[0cc5541] maint: replace misused "a" with...
Ian Beckwith [Thu, 9 Jun 2011 17:36:06 +0000 (18:36 +0100)]
NEWS.stable: log cherry-pick [93d7550]->[0cc5541] maint: replace misused "a" with "an"

12 years agomaint: replace misused "a" with "an"
Jim Meyering [Fri, 20 May 2011 09:53:34 +0000 (11:53 +0200)]
maint: replace misused "a" with "an"

* doc/intprops.texi: "a integer"
* doc/regex.texi: "a explanation"
* lib/alignof.h: "a object"
* lib/argmatch.h: "a explanation"
* lib/argp-help.c: "a option" and "a OPTION_DOC"
* lib/stdint.in.h: "a integer"
* lib/userspec.c: "a owner"
* doc/gnulib.texi: Fix "a idea", and reword.
(cherry picked from commit 93d7550462f21202b69712f3d489399963965ddd)

12 years agoNEWS.stable: log cherry-pick [c9ff025]->[056b00f] maint: correct misuse of "a" and...
Ian Beckwith [Thu, 9 Jun 2011 17:35:55 +0000 (18:35 +0100)]
NEWS.stable: log cherry-pick [c9ff025]->[056b00f] maint: correct misuse of "a" and "an"

12 years agomaint: correct misuse of "a" and "an"
Jim Meyering [Thu, 19 May 2011 20:18:05 +0000 (22:18 +0200)]
maint: correct misuse of "a" and "an"

* doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
* lib/argp-help.c: "an docum...": s/an/a/
* lib/argp-parse.c: "An vector": s/An/A/
* lib/execute.c: "an native": s/an/a/
* lib/spawn-pipe.c: Likewise.
* lib/gc.h: "an Gc_rc": s/an/a/
* lib/unigbrk.in.h: "an grapheme": s/an/a/
* lib/fts.c: "an stat.st_dev": s/an/a/
(cherry picked from commit c9ff025783e5374226ffbf7940f40ce7db6852ed)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 17:35:43 +0000 (18:35 +0100)]
NEWS.stable: update

12 years agointprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
Paul Eggert [Fri, 20 May 2011 02:16:04 +0000 (19:16 -0700)]
intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1

See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
* lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
(_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
(_GL_REMAINDER_OVERFLOW): Use it.
(cherry picked from commit 92c71a1c8324e3f0776fd0edb3fc400b4d04a592)

12 years agoNEWS.stable: log cherry-pick [8cc0fee]->[8c5e817] intprops: work around C compiler...
Ian Beckwith [Thu, 9 Jun 2011 17:13:48 +0000 (18:13 +0100)]
NEWS.stable: log cherry-pick [8cc0fee]->[8c5e817] intprops: work around C compiler bugs

12 years agointprops: work around C compiler bugs
Paul Eggert [Thu, 19 May 2011 08:36:25 +0000 (01:36 -0700)]
intprops: work around C compiler bugs

* lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
bug in Sun C 5.11 2010/08/13 and other compilers; see
<http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
(cherry picked from commit 8cc0fee0550bac55e1c1244366308eed1d16bb82)

12 years agoNEWS.stable: update
Ian Beckwith [Thu, 9 Jun 2011 17:08:40 +0000 (18:08 +0100)]
NEWS.stable: update

12 years agointprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
Paul Eggert [Thu, 19 May 2011 08:34:14 +0000 (01:34 -0700)]
intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs

* doc/intprops.texi (Integer Type Determination): Fix
documentation for TYPE_IS_INTEGER: it returns an constant
expression, not an integer constant expression.  Fix doc for
TYPE_SIGNED: it returns an integer constant expression only if its
argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
hardly worth documented that way....)
(cherry picked from commit 48cc7484c740d7f0e84fccd1fde11059986e3b94)