gnulib.git
14 years agodebian/control: add vcs-* headers debian/20091120+stable-1
Ian Beckwith [Fri, 20 Nov 2009 01:20:36 +0000 (01:20 +0000)]
debian/control: add vcs-* headers

14 years agoupdate stable snapshot date in changelog
Ian Beckwith [Fri, 20 Nov 2009 01:03:42 +0000 (01:03 +0000)]
update stable snapshot date in changelog

14 years agoupdate debian/copyright
Ian Beckwith [Fri, 20 Nov 2009 01:02:58 +0000 (01:02 +0000)]
update debian/copyright

14 years agoMerge branch 'stable'
Ian Beckwith [Fri, 20 Nov 2009 01:00:58 +0000 (01:00 +0000)]
Merge branch 'stable'

Conflicts:
NEWS.stable

14 years agoNEWS.stable: update stable/20091120
Ian Beckwith [Fri, 20 Nov 2009 00:48:41 +0000 (00:48 +0000)]
NEWS.stable: update

14 years agoautoupdate
Karl Berry [Thu, 19 Nov 2009 17:17:24 +0000 (09:17 -0800)]
autoupdate
(cherry picked from commit 758f9126aabf3d676a6b6ef3f0522d20d799903f)

14 years agoNEWS.stable: update
Ian Beckwith [Fri, 20 Nov 2009 00:47:27 +0000 (00:47 +0000)]
NEWS.stable: update

14 years agomanywarnings: depend on warnings
Eric Blake [Thu, 19 Nov 2009 13:42:21 +0000 (06:42 -0700)]
manywarnings: depend on warnings

* modules/manywarnings (Depends-on): Add warnings.

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

14 years agoNEWS.stable: update
Ian Beckwith [Fri, 20 Nov 2009 00:46:40 +0000 (00:46 +0000)]
NEWS.stable: update

14 years agobuild: avoid compiler warnings
Eric Blake [Thu, 19 Nov 2009 04:46:35 +0000 (21:46 -0700)]
build: avoid compiler warnings

Silence some warnings found on mingw.

* lib/select.c (rpl_select): Delete unused variable.
* lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.

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

14 years agoNEWS.stable: update
Ian Beckwith [Fri, 20 Nov 2009 00:46:07 +0000 (00:46 +0000)]
NEWS.stable: update

14 years agotests: avoid false negative with --with-packager
Eric Blake [Thu, 19 Nov 2009 03:36:01 +0000 (20:36 -0700)]
tests: avoid false negative with --with-packager

Ignore extra line produced by version-etc.

* tests/test-version-etc.sh: Discard packager information.
* tests/test-argp-version-etc-1.sh: Likewise.
Reported by Mike Frysinger.

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

14 years agoNEWS.stable: update
Ian Beckwith [Fri, 20 Nov 2009 00:38:08 +0000 (00:38 +0000)]
NEWS.stable: update

14 years agoutimens: fix regression on Solaris
Eric Blake [Wed, 18 Nov 2009 13:59:44 +0000 (06:59 -0700)]
utimens: fix regression on Solaris

Revert commit 26c5fd742f.  Solaris lacks futimens and futimes, so
futimesat is the only way to change fd timestamps.  But since
FreeBSD futimesat can't change fd timestamps, we need a configure
check to avoid the crash there.

* m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
* lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
can only change fd timestamps via futimesat.  Instead, use an
additional witness macro to avoid BSD bug.
Reported by Jim Meyering.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoNEWS.stable: update
Ian Beckwith [Fri, 20 Nov 2009 00:31:56 +0000 (00:31 +0000)]
NEWS.stable: update

14 years agoAdd.
Simon Josefsson [Tue, 17 Nov 2009 21:23:17 +0000 (22:23 +0100)]
Add.
(cherry picked from commit d9d9b262a95d0ed74b5c30569e68252569094f0a)

14 years agoNEWS.stable: update
Ian Beckwith [Fri, 20 Nov 2009 00:31:05 +0000 (00:31 +0000)]
NEWS.stable: update

14 years agoAdd `gnulib-tool --import' support for LGPLv3+.
Ludovic Courtès [Tue, 17 Nov 2009 20:38:51 +0000 (21:38 +0100)]
Add `gnulib-tool --import' support for LGPLv3+.

* gnulib-tool (func_import): Add support for LGPLv3+.
(cherry picked from commit b9d28ecff874f42e939b817f70244f2a46b054ae)

14 years agoNEWS.stable: update
Ian Beckwith [Fri, 20 Nov 2009 00:30:31 +0000 (00:30 +0000)]
NEWS.stable: update

14 years agoversion-etc: use proper license string
Jim Meyering [Tue, 17 Nov 2009 21:19:54 +0000 (22:19 +0100)]
version-etc: use proper license string

* modules/version-etc (License): Use LGPL, not LGPLv3+.
* modules/version-etc-fsf: Likewise.

14 years agoNEWS.stable: update
Ian Beckwith [Fri, 20 Nov 2009 00:25:06 +0000 (00:25 +0000)]
NEWS.stable: update

14 years agoversion-etc-fsf: relax license to LGPLv3+
Jim Meyering [Tue, 17 Nov 2009 06:20:41 +0000 (07:20 +0100)]
version-etc-fsf: relax license to LGPLv3+

* modules/version-etc-fsf (License): Relax license.

14 years agoNEWS.stable: update
Ian Beckwith [Thu, 19 Nov 2009 02:18:25 +0000 (02:18 +0000)]
NEWS.stable: update

14 years agoadd dependencies needed by gnulib-tool
Ian Beckwith [Tue, 17 Nov 2009 04:24:10 +0000 (04:24 +0000)]
add dependencies needed by gnulib-tool

14 years agoupdate to 20091116 snapshot
Ian Beckwith [Tue, 17 Nov 2009 04:12:58 +0000 (04:12 +0000)]
update to 20091116 snapshot
clscan: allow LGPL-3+ as an override

14 years agoMerge branch 'stable'
Ian Beckwith [Tue, 17 Nov 2009 03:48:47 +0000 (03:48 +0000)]
Merge branch 'stable'

14 years agoNEWS.stable: update
Ian Beckwith [Tue, 17 Nov 2009 03:48:24 +0000 (03:48 +0000)]
NEWS.stable: update

14 years agoversion-etc: relax license to LGPLv3+
Jim Meyering [Mon, 16 Nov 2009 21:08:52 +0000 (22:08 +0100)]
version-etc: relax license to LGPLv3+

* modules/version-etc (License): Relax license.
(cherry picked from commit 1c32714559eaa0e6747ae153eff36dc1f97585f9)

14 years agoNEWS.stable: update
Ian Beckwith [Tue, 17 Nov 2009 03:46:55 +0000 (03:46 +0000)]
NEWS.stable: update

14 years agobetter AC_REQUIRE expanded-before-required-warning avoidance
Jim Meyering [Mon, 16 Nov 2009 18:26:35 +0000 (19:26 +0100)]
better AC_REQUIRE expanded-before-required-warning avoidance

* m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
which is no longer needed.

14 years agoNEWS.stable: update
Ian Beckwith [Tue, 17 Nov 2009 03:41:16 +0000 (03:41 +0000)]
NEWS.stable: update

14 years agoavoid new AC_REQUIRE expanded-before-required warnings
Jim Meyering [Mon, 16 Nov 2009 09:22:53 +0000 (10:22 +0100)]
avoid new AC_REQUIRE expanded-before-required warnings

* modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
merely using it.
* modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
* modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
(cherry picked from commit 1b712ba8bb1359974aa495a1a95b2185ed68e87e)

14 years agoNEWS.stable: update
Ian Beckwith [Tue, 17 Nov 2009 03:24:18 +0000 (03:24 +0000)]
NEWS.stable: update

14 years agolib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.
Simon Josefsson [Sun, 15 Nov 2009 12:52:55 +0000 (13:52 +0100)]
lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.
(cherry picked from commit 24a6641b053b7fc8bf13b4149722e85d77db9920)

14 years ago* Add lintian executable-not-elf-or-script overrides for scripts
Ian Beckwith [Tue, 17 Nov 2009 03:18:06 +0000 (03:18 +0000)]
* Add lintian executable-not-elf-or-script overrides for scripts
  in build-aux/ that invoke themselves with excessively magical
  non-shebang lines.

14 years ago* Install MODULES.html.sh and the root Makefile to /usr/share/gnulib
Ian Beckwith [Mon, 16 Nov 2009 23:39:56 +0000 (23:39 +0000)]
* Install MODULES.html.sh and the root Makefile to /usr/share/gnulib
* Install NEWS, NEWS.stable, README, users.txt to /usr/share/doc/gnulib.

14 years agoinstall posix-modules
Ian Beckwith [Mon, 16 Nov 2009 23:02:29 +0000 (23:02 +0000)]
install posix-modules

14 years agoclean up after clscan
Ian Beckwith [Sun, 15 Nov 2009 06:04:25 +0000 (06:04 +0000)]
clean up after clscan

14 years agoupdate debian/copyright
Ian Beckwith [Sun, 15 Nov 2009 06:03:31 +0000 (06:03 +0000)]
update debian/copyright

14 years agoMerge branch 'stable'
Ian Beckwith [Sun, 15 Nov 2009 04:44:14 +0000 (04:44 +0000)]
Merge branch 'stable'

14 years agoNEWS.stable: update
Ian Beckwith [Sun, 15 Nov 2009 03:45:13 +0000 (03:45 +0000)]
NEWS.stable: update

14 years agofnmatch: avoid compiler warning
Eric Blake [Sat, 14 Nov 2009 22:25:49 +0000 (15:25 -0700)]
fnmatch: avoid compiler warning

cond ? (size_t) : (char* - char* + 1) varies in signedness, but
using 1LU coerces the latter half to unsigned math.

* lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
to silence compiler warning about mismatch signedness in ?:.
Reported by Robert Millan.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agognulib-tool: correctly detect absence of m4 directories
Robert Millan [Sat, 14 Nov 2009 13:45:02 +0000 (06:45 -0700)]
gnulib-tool: correctly detect absence of m4 directories

$m4dirs is incorrectly counting.  In my particular case
(correct value: 0, detected value: 1), this resulted in gnulib-tool
silently exitting with no visible error (and no job done).

* gnulib-tool: Avoid extra newline on data passed to wc -l.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agostrftime.h: wrap funtion declaration in extern "C" block
John W. Eaton [Sat, 14 Nov 2009 07:24:25 +0000 (08:24 +0100)]
strftime.h: wrap funtion declaration in extern "C" block

* lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
(cherry picked from commit ee8909a98bbfffc6317e1e9273e1cb8d6341ea25)

14 years agogetgroups: avoid compiler warning
Eric Blake [Fri, 13 Nov 2009 20:31:35 +0000 (13:31 -0700)]
getgroups: avoid compiler warning

* lib/getgroups.c (rpl_getgroups): Delete shadowed variable.

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

14 years agogetgroups: work around FreeBSD bug
Eric Blake [Fri, 13 Nov 2009 19:53:17 +0000 (12:53 -0700)]
getgroups: work around FreeBSD bug

FreeBSD 7.2 mistakenly succeeds on getgroups(-1,ptr) (POSIX
requires EINVAL failure since -1 is less than the proper result).

* lib/getgroups.c (rpl_getgroups): Work around the bug.
* m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
* doc/posix-functions/getgroups.texi (getgroups): Document it.
* tests/test-getgroups.c (main): Fix buffer overrun.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agogetgroups: avoid compilation failure
Eric Blake [Fri, 13 Nov 2009 16:06:14 +0000 (09:06 -0700)]
getgroups: avoid compilation failure

* lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
* modules/getgroups (Depends-on): Add stdint.

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

14 years agotest-getgroups: avoid compilation failure
Jim Meyering [Fri, 13 Nov 2009 15:15:23 +0000 (16:15 +0100)]
test-getgroups: avoid compilation failure

* tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
(cherry picked from commit 0173b1e598b66fc95f4cf3af023313e29701e384)

14 years agogetgroups, getugroups: provide stubs for mingw
Eric Blake [Thu, 12 Nov 2009 16:53:14 +0000 (09:53 -0700)]
getgroups, getugroups: provide stubs for mingw

Avoid link failure on mingw, which lacks getgroups and anything
else related to gid_t management (stat.st_gid is always 0).

* lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
* lib/getugroups.c (getugroups): Likewise.
* m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
function.  Modernize replacement scheme.
(gl_PREREQ_GETGROUPS): Delete.
* m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
* modules/getgroups (configure.ac): Declare witness.
* m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
* modules/unistd (Depends-on): Substitute witness.
* lib/unistd.in.h (getgroups): Declare replacement.

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

14 years agogetgroups: avoid calling exit
Eric Blake [Thu, 12 Nov 2009 16:30:38 +0000 (09:30 -0700)]
getgroups: avoid calling exit

rpl_getgroups should be a library function, comparable to glibc.

* modules/getgroups (Depends-on): Add malloc-posix and unistd,
drop xalloc.
* modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
dependencies.
* lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
exiting, in the rare case of malloc failure.

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

14 years agogetgroups: fix logic error
Eric Blake [Thu, 12 Nov 2009 15:51:45 +0000 (08:51 -0700)]
getgroups: fix logic error

The replacement getgroups mistakenly failed with EINVAL if there
were more than 20 groups, since -1 < n_groups.  Also, realloc
geometrically rather than linearly.

* lib/getgroups.c (rpl_getgroups): Don't fail if current process
has more than 20 groups.
* modules/getgroups-tests: New test.
* tests/test-getgroups.c: New file.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agofts: do not fail on a submount during traversal
Kamil Dudka [Tue, 10 Nov 2009 13:26:56 +0000 (14:26 +0100)]
fts: do not fail on a submount during traversal

* lib/fts.c (fts_build): Read the stat info again after opening
a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
Original report at http://bugzilla.redhat.com/501848.
(cherry picked from commit ac67780e88411e8fcb94cda0a9e0a9abab6f8369)

14 years agobootstrap: generalize autoheader check
Jim Meyering [Thu, 12 Nov 2009 08:42:52 +0000 (09:42 +0100)]
bootstrap: generalize autoheader check

* build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
AC_CONFIG_HEADERS.
(cherry picked from commit 7127847e1d16e94fec7422e637debeed24092c0f)

14 years agoreadlink: detect FreeBSD bug
Eric Blake [Wed, 11 Nov 2009 13:34:02 +0000 (06:34 -0700)]
readlink: detect FreeBSD bug

readlink("link-to-symlink/",buf,len) mistakenly read the contents
of "symlink", rather than failing.

* m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
slash on symlink.
* doc/posix-functions/readlink.texi (readlink): Document the bug.
* tests/test-readlink.h (test_readlink): Enhance test.

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

14 years agosymlink: detect FreeBSD bug
Eric Blake [Tue, 10 Nov 2009 14:59:39 +0000 (07:59 -0700)]
symlink: detect FreeBSD bug

symlink(name,"dangling/") mistakenly created a symlink at the
target of "dangling".

* m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
slash on symlink.
* doc/posix-functions/symlink.texi (symlink): Document the bug.
* tests/test-symlink.h (test_symlink): Enhance test.

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

14 years agolink: detect FreeBSD bug
Eric Blake [Mon, 9 Nov 2009 21:23:11 +0000 (14:23 -0700)]
link: detect FreeBSD bug

link("link-to-file/","a") mistakenly created "a" as a link to "file".

* m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
symlink.
* doc/posix-functions/link.texi (link): Document the bug.
* tests/test-link.h (test_link): Enhance test.
* tests/test-linkat.c (main): Update caller.

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

14 years agounlink, remove: detect FreeBSD bug
Eric Blake [Mon, 9 Nov 2009 17:44:08 +0000 (10:44 -0700)]
unlink, remove: detect FreeBSD bug

unlink("link-to-file/") mistakenly removed "file".

* m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
slash on symlink.
* doc/posix-functions/unlink.texi (unlink): Document the bug.
* doc/posix-functions/remove.texi (remove): Likewise.
* tests/test-unlink.h (test_unlink): Enhance test.
* tests/test-remove.c (main): Likewise.

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

14 years agoautoupdate
Karl Berry [Mon, 9 Nov 2009 14:10:03 +0000 (06:10 -0800)]
autoupdate
(cherry picked from commit b0d3085924955e48a830dd1630989471f4bc57cb)

14 years agorename: detect FreeBSD bug
Eric Blake [Mon, 9 Nov 2009 01:11:50 +0000 (18:11 -0700)]
rename: detect FreeBSD bug

rename("link-to-file/","new") mistakenly succeeded.

* m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
slash on symlink.
* modules/renameat-tests (Depends-on): Add filenamecat.
* tests/test-rename.h (test_rename): Allow one more errno.
* tests/test-renameat.c (main): Likewise.
* doc/posix-functions/rename.texi (rename): Document the bug.

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

14 years agoopen: detect FreeBSD bug
Eric Blake [Sun, 8 Nov 2009 04:34:32 +0000 (21:34 -0700)]
open: detect FreeBSD bug

open("link-to-file/", O_RDONLY) mistakenly succeeds.  The previous
patch was enough to fix utimens when no fd is involved, but this is
necessary for futimens to pass.

* m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
symlink.
* doc/posix-functions/open.texi (open): Document the bug.
* doc/posix-functions/utimes.texi (utimes): Likewise.
* tests/test-open.h (test_open): Add parameters, and test symlink
handling.
* tests/test-open.c (main): Adjust caller.
* tests/test-fcntl-safer.c (main): Likewise.
* modules/open-tests (Depends-on): Add stdbool, symlink.
* modules/fcntl-safer-tests (Depends-on): Likewise.
* tests/test-openat.c (main): Add test-open tests.

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

14 years agostat: detect FreeBSD bug
Eric Blake [Sat, 7 Nov 2009 23:59:11 +0000 (16:59 -0700)]
stat: detect FreeBSD bug

Like Solaris 9, FreeBSD 7.2 mistakenly allows stat("link-to-file/").
Unlike Solaris, it correctly forbids stat("file/").  A number of
interfaces are affected (such as utimes), but replacing stat is
enough to catch several by reusing the Solaris 9 fixes.

* m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
symlink.
* doc/posix-functions/stat.texi (stat): Document the bug.
* tests/test-stat.h (test_stat_func): Add argument.
* tests/test-stat.c (main): Adjust caller.
* tests/test-fstatat.c (main): Likewise.
* modules/stat-tests (Depends-on): Add stdbool, symlink.
Reported by Jim Meyering.

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

14 years agostrftime.c: include ignore-value.h only when FPRINTFTIME is defined
James Youngman [Mon, 9 Nov 2009 10:41:29 +0000 (11:41 +0100)]
strftime.c: include ignore-value.h only when FPRINTFTIME is defined

* lib/strftime.c: Correct placement of #include "ignore-value.h".
(cherry picked from commit 6553be82a4a522e50ece1a430e82a9b1dfd0f471)

14 years agoutimens: remove invalid futimesat call
Jim Meyering [Sun, 8 Nov 2009 11:09:35 +0000 (12:09 +0100)]
utimens: remove invalid futimesat call

* lib/utimens.c (fdutimens) [HAVE_FUTIMESAT]: Remove invalid futimesat
call.  It used the file descriptor of the target file as the DIR_FD
parameter and NULL as the file name.  That caused failure with
errno == EFAULT on FreeBSD-8.0-rc2.
(cherry picked from commit 26c5fd742f9136e2ddbd4695a9172c3fa30ea260)

14 years agoNEWS.stable: initial version
Ian Beckwith [Sun, 15 Nov 2009 02:39:59 +0000 (02:39 +0000)]
NEWS.stable: initial version

14 years agofflush, freadseek: use fseeko, not fseek
Eric Blake [Sat, 7 Nov 2009 23:03:38 +0000 (16:03 -0700)]
fflush, freadseek: use fseeko, not fseek

Follow our own advice: fseek is not safe to use on large files.

* lib/fflush.c (clear_ungetc_buffer_preserving_position)
(clear_ungetc_buffer): Avoid potential problems on large files.
* lib/freadseek.c (freadseek): Likewise.
* modules/freadseek (Depends-on): Add fseeko.
* modules/fseek (configure.ac): Set a witness.
* tests/test-fflush.c (main): Use fseeko.
* tests/test-fpurge.c (fseek): Disable link warning.
* tests/test-freadable.c (fseek): Likewise.
* tests/test-freading.c (fseek): Likewise.
* tests/test-fseeko.c (fseek): Likewise.
* tests/test-ftell.c (fseek): Likewise.
* tests/test-ftello.c (fseek): Likewise.
* tests/test-fwritable.c (fseek): Likewise.
* tests/test-fwriting.c (fseek): Likewise.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoautoupdate
Karl Berry [Sat, 7 Nov 2009 14:19:36 +0000 (06:19 -0800)]
autoupdate

14 years agomodules/memchr (Depends-on): Drop getpagesize dependency.
Simon Josefsson [Fri, 6 Nov 2009 13:37:15 +0000 (14:37 +0100)]
modules/memchr (Depends-on): Drop getpagesize dependency.

14 years agobuild-aux/pmccabe2html: Drop #! header. Doc fix.
Simon Josefsson [Fri, 6 Nov 2009 13:36:24 +0000 (14:36 +0100)]
build-aux/pmccabe2html: Drop #! header.  Doc fix.

14 years agobuild-aux/pmccabe2html: Disable execute bit. Improve example usage.
Simon Josefsson [Fri, 6 Nov 2009 13:30:03 +0000 (14:30 +0100)]
build-aux/pmccabe2html: Disable execute bit. Improve example usage.

14 years agodo-release-commit-and-tag: New module.
Jim Meyering [Fri, 6 Nov 2009 10:01:31 +0000 (11:01 +0100)]
do-release-commit-and-tag: New module.

Automate the release-commit and tag process.
* build-aux/do-release-commit-and-tag: New script, from coreutils.
* modules/do-release-commit-and-tag: New file.
* MODULES.html.sh (Support for maintaining and releasing): Add it.

14 years agomodules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB).
Simon Josefsson [Fri, 6 Nov 2009 09:01:57 +0000 (10:01 +0100)]
modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB).

14 years agogetaddrinfo: Simplify Link: directive.
Simon Josefsson [Fri, 6 Nov 2009 07:41:12 +0000 (08:41 +0100)]
getaddrinfo: Simplify Link: directive.

14 years agostrtod: detect darwin bug
Eric Blake [Fri, 6 Nov 2009 03:48:01 +0000 (20:48 -0700)]
strtod: detect darwin bug

* m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
Reported by Leo Davis.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agofreopen-safer: new module
Eric Blake [Thu, 5 Nov 2009 22:13:00 +0000 (15:13 -0700)]
freopen-safer: new module

* modules/freopen-safer: New module.
* m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
* lib/freopen-safer.c (freopen_safer): New file.
* lib/stdio-safer.h (freopen_safer): New declaration.
* lib/stdio--.h (freopen): New override.
* MODULES.html.sh (File stream based Input/Output): Mention it.
* doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
freopen-safer module.
* doc/posix-functions/stderr.texi (stderr): Likewise.
* doc/posix-functions/stdin.texi (stdin): Likewise.
* doc/posix-functions/stdout.texi (stdout): Likewise.
* modules/freopen-safer-tests: New test.
* tests/test-reopen-safer.c: New file.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agomaint.mk: Prohibit inclusion of "close-stream.h" without use.
Jim Meyering [Thu, 5 Nov 2009 17:26:32 +0000 (18:26 +0100)]
maint.mk: Prohibit inclusion of "close-stream.h" without use.

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

14 years agomodules/pmccabe2html (configure.ac): Check for pmccabe tool.
Simon Josefsson [Thu, 5 Nov 2009 15:43:08 +0000 (16:43 +0100)]
modules/pmccabe2html (configure.ac): Check for pmccabe tool.

14 years agogetaddrinfo (Link): Add $(INET_NTOP_LIB).
Simon Josefsson [Thu, 5 Nov 2009 14:27:35 +0000 (15:27 +0100)]
getaddrinfo (Link): Add $(INET_NTOP_LIB).

14 years agoFix typo in last commit.
Simon Josefsson [Thu, 5 Nov 2009 14:05:18 +0000 (15:05 +0100)]
Fix typo in last commit.

14 years agoinet_ntop, inet_pton: Fix link error.
Simon Josefsson [Thu, 5 Nov 2009 13:42:03 +0000 (14:42 +0100)]
inet_ntop, inet_pton: Fix link error.

14 years agotest-func.c: Also test value of __func__.
Simon Josefsson [Thu, 5 Nov 2009 13:38:10 +0000 (14:38 +0100)]
test-func.c: Also test value of __func__.

14 years agotest-sys_socket: Fix compilation warning.
Simon Josefsson [Thu, 5 Nov 2009 12:54:32 +0000 (13:54 +0100)]
test-sys_socket: Fix compilation warning.

14 years agoFix link error.
Bruno Haible [Thu, 5 Nov 2009 10:46:16 +0000 (11:46 +0100)]
Fix link error.

14 years agoTests for module 'inet_pton'.
Bruno Haible [Thu, 5 Nov 2009 10:43:09 +0000 (11:43 +0100)]
Tests for module 'inet_pton'.

14 years agoTests for module 'inet_ntop'.
Bruno Haible [Thu, 5 Nov 2009 10:40:48 +0000 (11:40 +0100)]
Tests for module 'inet_ntop'.

14 years agostdlib-safer: wrap all mkstemp variants
Eric Blake [Mon, 2 Nov 2009 23:11:18 +0000 (16:11 -0700)]
stdlib-safer: wrap all mkstemp variants

* modules/mkostemp (configure.ac): Set witness.
* modules/mkostemps (configure.ac): Likewise.
* modules/mkstemps (configure.ac): Likewise.
* lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
(mkstemps_safer): Wrap more functions.
* lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
wrapping.
* lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
(mkstemps_safer): Implement the wrappers.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agomkstemps, mkostemps: new modules
Eric Blake [Mon, 2 Nov 2009 22:33:10 +0000 (15:33 -0700)]
mkstemps, mkostemps: new modules

* modules/mkostemps: New module.
* modules/mkstemps: Likewise.
* lib/mkostemps.c (mkostemps): New file.
* lib/mkstemps.c (mkstemps): Likewise.
* m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
* m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
* m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
* modules/stdlib (Makefile.am): Substitute them.
* lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
* doc/glibc-functions/mkstemps.texi (mkstemps): New file.
* doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
* doc/gnulib.texi (Glibc stdlib.h): Include them.
* MODULES.html.sh (File system functions): Mention them.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agotempname: resync from glibc
Eric Blake [Mon, 2 Nov 2009 20:19:27 +0000 (13:19 -0700)]
tempname: resync from glibc

* lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
same values for __GT_FILE as glibc.  Abort even when assertions
are disabled.
* lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
match its value otherwise.  Allow idempotent inclusion.
* lib/mkdtemp.c (mkdtemp): Adjust caller.
* lib/mkostemp.c (mkostemp): Likewise.
* lib/mkstemp.c (mkstemp): Likewise.
* lib/tmpfile.c (tmpfile): Likewise.
* NEWS: Document this.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoutimens: fix use of futimens on older Linux
Eric Blake [Wed, 4 Nov 2009 13:19:23 +0000 (06:19 -0700)]
utimens: fix use of futimens on older Linux

Using UTIME_OMIT with non-zero seconds was already worked around
for utimensat, but I missed the futimens case.

* lib/utimens.c (fdutimens): Use updated, rather than original,
timespec to avoid bug in older Linux kernel.
Reported by Simon Josefsson.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoMake num_processors more flexible and consistent.
Bruno Haible [Wed, 4 Nov 2009 08:07:54 +0000 (09:07 +0100)]
Make num_processors more flexible and consistent.

14 years agoDocument the new library dependencies of inet_ntop, inet_pton.
Bruno Haible [Wed, 4 Nov 2009 08:02:43 +0000 (09:02 +0100)]
Document the new library dependencies of inet_ntop, inet_pton.

14 years agotest-getaddrinfo: avoid compilation failure on FreeBSD 7.2
Jim Meyering [Tue, 3 Nov 2009 07:53:23 +0000 (08:53 +0100)]
test-getaddrinfo: avoid compilation failure on FreeBSD 7.2

* tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
if it is defined.

14 years agomktime, timegm: share common declaration
Eric Blake [Mon, 2 Nov 2009 18:39:38 +0000 (11:39 -0700)]
mktime, timegm: share common declaration

* lib/mktime-internal.h: New file.
* lib/mktime.c: Use it rather than open-coding a declaration.
* lib/timegm.c: Likewise.
* modules/mktime (Files): Ship it.
* modules/timegm (Files): Likewise.
Suggested by Bruno Haible.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agotest-update-copyright: update test to match script changes
Eric Blake [Mon, 2 Nov 2009 17:23:33 +0000 (10:23 -0700)]
test-update-copyright: update test to match script changes

* tests/test-update-copyright.sh: Avoid hard-coding perl
location.  Don't update *.bak created by earlier runs.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agoFix link error on Solaris 8.
Bruno Haible [Tue, 3 Nov 2009 00:04:41 +0000 (01:04 +0100)]
Fix link error on Solaris 8.

14 years agoAvoid link error for inet_ntop on Solaris.
Simon Josefsson [Mon, 2 Nov 2009 23:49:47 +0000 (00:49 +0100)]
Avoid link error for inet_ntop on Solaris.

14 years agomaint: avoid compiler warnings in m4 macros
Eric Blake [Mon, 2 Nov 2009 13:03:20 +0000 (06:03 -0700)]
maint: avoid compiler warnings in m4 macros

* m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
* m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agopmccabe2html: Don't hard code awk path.
Simon Josefsson [Mon, 2 Nov 2009 10:55:14 +0000 (11:55 +0100)]
pmccabe2html: Don't hard code awk path.

14 years agofseeko: fix m4 regression
Eric Blake [Sat, 31 Oct 2009 13:23:11 +0000 (07:23 -0600)]
fseeko: fix m4 regression

* m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
regression from 2009-10-27.
Reported by Ralf Wildenhues.

Signed-off-by: Eric Blake <ebb9@byu.net>
14 years agointtostr: aesthetics and improved (compile-time) safety
Jim Meyering [Sat, 31 Oct 2009 08:42:37 +0000 (09:42 +0100)]
inttostr: aesthetics and improved (compile-time) safety

Define inttype_is_signed rather than inttype_is_unsigned,
since the sole use is via "#if inttype_is_signed".
* lib/imaxtostr.c (inttype_is_signed): Define this, rather than
inttype_is_unsigned.
* lib/offtostr.c (inttype_is_signed): Likewise.
* lib/uinttostr.c (inttype_is_signed): Likewise.
* lib/umaxtostr.c (inttype_is_signed): Likewise.
* lib/inttostr.c (inttostr): Use verify to cross-check the
inttype_is_signed value and the signedness of the actual type.
* modules/inttostr (Depends-on): Add verify.

14 years agobuild: avoid compiler warnings
Eric Blake [Fri, 30 Oct 2009 15:47:12 +0000 (09:47 -0600)]
build: avoid compiler warnings

* lib/fchmodat.c (lchmod): Mark unused variables.
* lib/getopt.c (_getopt_initialize): Likewise.
* lib/mktime.c (__mktime_internal): Provide prototype.
* lib/inttostr.c (inttostr): Avoid compiler warning even with
older gcc that do not understand #pragma GCC diagnostic.
* lib/uinttostr.c (inttype_is_unsigned): Define.
* lib/umaxtostr.c (inttype_is_unsigned): Likewise.

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