gnulib.git
12 years agoTests for module 'frexpf-ieee'.
Bruno Haible [Sun, 26 Feb 2012 14:09:10 +0000 (15:09 +0100)]
Tests for module 'frexpf-ieee'.

* modules/frexpf-ieee-tests: New file.
* tests/test-frexpf-ieee.c: New file.

12 years agoNew module 'frexpf-ieee'.
Bruno Haible [Sun, 26 Feb 2012 14:08:36 +0000 (15:08 +0100)]
New module 'frexpf-ieee'.

* modules/frexpf-ieee: New file.

12 years agoroundl-ieee tests: More tests.
Bruno Haible [Sun, 26 Feb 2012 13:27:44 +0000 (14:27 +0100)]
roundl-ieee tests: More tests.

* tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
* modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
(Depends-on): Add isnanl-nolibm.

12 years agoround-ieee tests: More tests.
Bruno Haible [Sun, 26 Feb 2012 13:27:32 +0000 (14:27 +0100)]
round-ieee tests: More tests.

* tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
* modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
(Depends-on): Add isnand-nolibm.

12 years agoroundf-ieee tests: More tests.
Bruno Haible [Sun, 26 Feb 2012 13:27:22 +0000 (14:27 +0100)]
roundf-ieee tests: More tests.

* tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
* modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
(Depends-on): Add isnanf-nolibm.

12 years agotruncl-ieee tests: More tests.
Bruno Haible [Sun, 26 Feb 2012 13:26:56 +0000 (14:26 +0100)]
truncl-ieee tests: More tests.

* tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
* modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
(Depends-on): Add isnanl-nolibm.

12 years agotrunc-ieee tests: More tests.
Bruno Haible [Sun, 26 Feb 2012 13:26:44 +0000 (14:26 +0100)]
trunc-ieee tests: More tests.

* tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
* modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
(Depends-on): Add isnand-nolibm.

12 years agotruncf-ieee tests: More tests.
Bruno Haible [Sun, 26 Feb 2012 13:26:32 +0000 (14:26 +0100)]
truncf-ieee tests: More tests.

* tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
* modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
(Depends-on): Add isnanf-nolibm.

12 years agoceill-ieee tests: More tests.
Bruno Haible [Sun, 26 Feb 2012 13:26:02 +0000 (14:26 +0100)]
ceill-ieee tests: More tests.

* tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
* modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
(Depends-on): Add isnanl-nolibm.

12 years agoceil-ieee tests: More tests.
Bruno Haible [Sun, 26 Feb 2012 13:25:50 +0000 (14:25 +0100)]
ceil-ieee tests: More tests.

* tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
* modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
(Depends-on): Add isnand-nolibm.

12 years agoceilf-ieee tests: More tests.
Bruno Haible [Sun, 26 Feb 2012 13:25:39 +0000 (14:25 +0100)]
ceilf-ieee tests: More tests.

* tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
* modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
(Depends-on): Add isnanf-nolibm.

12 years agofloorl-ieee tests: More tests.
Bruno Haible [Sun, 26 Feb 2012 13:24:38 +0000 (14:24 +0100)]
floorl-ieee tests: More tests.

* tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
* modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
(Depends-on): Add isnanl-nolibm.

12 years agofloor-ieee tests: More tests.
Bruno Haible [Sun, 26 Feb 2012 13:24:11 +0000 (14:24 +0100)]
floor-ieee tests: More tests.

* tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
* modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
(Depends-on): Add isnand-nolibm.

12 years agofloorf-ieee tests: More tests.
Bruno Haible [Sun, 26 Feb 2012 13:23:35 +0000 (14:23 +0100)]
floorf-ieee tests: More tests.

* tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
* modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
(Depends-on): Add isnanf-nolibm.

12 years agofpieee: More comments.
Bruno Haible [Sun, 26 Feb 2012 12:44:16 +0000 (13:44 +0100)]
fpieee: More comments.

* m4/fpieee.m4 (gl_FP_IEEE): Add more comments.

12 years agoTests for module 'log10l'.
Bruno Haible [Sat, 25 Feb 2012 23:43:21 +0000 (00:43 +0100)]
Tests for module 'log10l'.

* modules/log10l-tests: New file.
* tests/test-log10l.c: New file.
* tests/test-math-c++.cc: Check the declaration of log10l.

12 years agoNew module 'log10l'.
Bruno Haible [Sat, 25 Feb 2012 23:42:25 +0000 (00:42 +0100)]
New module 'log10l'.

* lib/math.in.h (log10l): New declaration.
* lib/log10l.c: New file.
* m4/log10l.m4: New file.
* modules/log10l: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
HAVE_DECL_LOG10L.
* modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
HAVE_DECL_LOG10L.
* doc/posix-functions/log10l.texi: Mention the new module.

12 years agofmodl, remainder*: Avoid wrong results due to rounding errors.
Bruno Haible [Sat, 25 Feb 2012 23:36:01 +0000 (00:36 +0100)]
fmodl, remainder*: Avoid wrong results due to rounding errors.

* lib/fmodl.c (fmodl): Correct the result if it is not within the
expected bounds.
* lib/remainderf.c (remainderf): Likewise.
* lib/remainder.c (remainder): Likewise.
* lib/remainderl.c (remainderl): Likewise.

12 years agoFix typo in recent ChangeLog entry.
Bruno Haible [Sat, 25 Feb 2012 21:19:13 +0000 (22:19 +0100)]
Fix typo in recent ChangeLog entry.

12 years agoTests for module 'remainderl'.
Bruno Haible [Sat, 25 Feb 2012 19:40:44 +0000 (20:40 +0100)]
Tests for module 'remainderl'.

* modules/remainderl-tests: New file.
* tests/test-remainderl.c: New file.
* tests/test-math-c++.cc: Check the declaration of remainderl.

12 years agoNew module 'remainderl'.
Bruno Haible [Sat, 25 Feb 2012 19:37:43 +0000 (20:37 +0100)]
New module 'remainderl'.

* lib/math.in.h (remainderh): New declaration.
* lib/remainderl.c: New file.
* m4/remainderl.m4: New file.
* modules/remainderl: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
* modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
HAVE_REMAINDERL.
* doc/posix-functions/remainderl.texi: Mention the new module.

12 years agoTests for module 'remainderf'.
Bruno Haible [Sat, 25 Feb 2012 18:42:45 +0000 (19:42 +0100)]
Tests for module 'remainderf'.

* modules/remainderf-tests: New file.
* tests/test-remainderf.c: New file.
* tests/test-math-c++.cc: Check the declaration of remainderf.

12 years agoNew module 'remainderf'.
Bruno Haible [Sat, 25 Feb 2012 18:41:33 +0000 (19:41 +0100)]
New module 'remainderf'.

* lib/math.in.h (remainderf): New declaration.
* lib/remainderf.c: New file.
* m4/remainderf.m4: New file.
* modules/remainderf: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
* modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
HAVE_REMAINDERF.
* doc/posix-functions/remainderf.texi: Mention the new module.

12 years agoremainder: Support for MSVC.
Bruno Haible [Sat, 25 Feb 2012 17:27:46 +0000 (18:27 +0100)]
remainder: Support for MSVC.

* lib/math.in.h (remainder): New declaration.
* lib/remainder.c: New file.
* m4/remainder.m4: New file.
* modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
(Depends-on): Add math, round, fma.
(configure.ac): Use results of gl_FUNC_REMAINDER.
* m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
HAVE_DECL_REMAINDER.
* modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
HAVE_REMAINDER, HAVE_DECL_REMAINDER.
* tests/test-math-c++.cc: Check the declaration of remainder.
* doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
problems are fixed.

12 years agoTests for module 'fmodl'.
Bruno Haible [Sat, 25 Feb 2012 16:27:05 +0000 (17:27 +0100)]
Tests for module 'fmodl'.

* modules/fmodl-tests: New file.
* tests/test-fmodl.c: New file.
* tests/test-math-c++.cc: Check the declaration of fmodl.

12 years agoNew module 'fmodl'.
Bruno Haible [Sat, 25 Feb 2012 16:24:31 +0000 (17:24 +0100)]
New module 'fmodl'.

* lib/math.in.h (fmodl): New declaration.
* lib/fmodl.c: New file.
* m4/fmodl.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
REPLACE_FMODL.
* modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
REPLACE_FMODL.
* modules/fmodl: New file.
* doc/posix-functions/fmodl.texi: Mention the new module.

12 years agoTests for module 'modfl'.
Bruno Haible [Sat, 25 Feb 2012 14:31:52 +0000 (15:31 +0100)]
Tests for module 'modfl'.

* modules/modfl-tests: New file.
* tests/test-modfl.c: New file.
* tests/test-math-c++.cc: Check the declaration of modfl.

12 years agoNew module 'modfl'.
Bruno Haible [Sat, 25 Feb 2012 14:30:53 +0000 (15:30 +0100)]
New module 'modfl'.

* lib/math.in.h (modfl): New declaration.
* lib/modfl.c: New file.
* m4/modfl.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
* modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
* modules/modfl: New file.
* doc/posix-functions/modfl.texi: Mention the new module.

12 years agoTests for module 'fabsl'.
Bruno Haible [Sat, 25 Feb 2012 12:44:43 +0000 (13:44 +0100)]
Tests for module 'fabsl'.

* tests/test-math-c++.cc: Check the declaration of fabsl.

12 years agoTests for module 'fabsl'.
Bruno Haible [Sat, 25 Feb 2012 12:22:17 +0000 (13:22 +0100)]
Tests for module 'fabsl'.

* modules/fabsl-tests: New file.
* tests/test-fabsl.c: New file.

12 years agoNew module 'fabsl'.
Bruno Haible [Sat, 25 Feb 2012 12:18:33 +0000 (13:18 +0100)]
New module 'fabsl'.

* lib/math.in.h (fabsl): New declaration.
* lib/fabsl.c: New file.
* m4/fabsl.m4: New file.
* m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
(gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
REPLACE_FABSL.
* modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
REPLACE_FABSL.
* modules/fabsl: New file.
* doc/posix-functions/fabsl.texi: Mention the new module.

12 years agofabs tests: More tests.
Bruno Haible [Sat, 25 Feb 2012 12:13:59 +0000 (13:13 +0100)]
fabs tests: More tests.

* tests/test-fabs.c: Include <string.h>, minus-zero.h.
(zero): New variable.
(main): Add tests for signed zero.
* modules/fabs-tests (Files): Add tests/minus-zero.h.

12 years agofabsf tests: More tests.
Bruno Haible [Sat, 25 Feb 2012 12:13:10 +0000 (13:13 +0100)]
fabsf tests: More tests.

* tests/test-fabsf.c: Include <string.h>, minus-zero.h.
(zero): New variable.
(main): Add tests for signed zero.
* modules/fabsf-tests (Files): Add tests/minus-zero.h.

12 years agoatanl: Provide function definition on MSVC.
Bruno Haible [Sat, 25 Feb 2012 00:45:18 +0000 (01:45 +0100)]
atanl: Provide function definition on MSVC.

* m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
function pointer.
* lib/math.in.h (atanl): Undefine if it does not exist as a function.

12 years agoacosl: Provide function definition on MSVC.
Bruno Haible [Sat, 25 Feb 2012 00:42:45 +0000 (01:42 +0100)]
acosl: Provide function definition on MSVC.

* m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
function pointer.
* lib/math.in.h (acosl): Undefine if it does not exist as a function.

12 years agoasinl: Provide function definition on MSVC.
Bruno Haible [Sat, 25 Feb 2012 00:39:34 +0000 (01:39 +0100)]
asinl: Provide function definition on MSVC.

* m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
function pointer.
* lib/math.in.h (asinl): Undefine if it does not exist as a function.

12 years agotanl: Provide function definition on MSVC.
Bruno Haible [Sat, 25 Feb 2012 00:36:41 +0000 (01:36 +0100)]
tanl: Provide function definition on MSVC.

* m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
function pointer.
* lib/math.in.h (tanl): Undefine if it does not exist as a function.

12 years agocosl: Provide function definition on MSVC.
Bruno Haible [Sat, 25 Feb 2012 00:31:58 +0000 (01:31 +0100)]
cosl: Provide function definition on MSVC.

* m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
function pointer.
* lib/math.in.h (cosl): Undefine if it does not exist as a function.

12 years agosinl: Provide function definition on MSVC.
Bruno Haible [Sat, 25 Feb 2012 00:30:14 +0000 (01:30 +0100)]
sinl: Provide function definition on MSVC.

* m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
function pointer.
* lib/math.in.h (sinl): Undefine if it does not exist as a function.

12 years agologl: Provide function definition on MSVC.
Bruno Haible [Sat, 25 Feb 2012 00:27:00 +0000 (01:27 +0100)]
logl: Provide function definition on MSVC.

* m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
function pointer.
* lib/math.in.h (logl): Undefine if it does not exist as a function.

12 years agoexpl: Provide function definition on MSVC.
Bruno Haible [Sat, 25 Feb 2012 00:24:28 +0000 (01:24 +0100)]
expl: Provide function definition on MSVC.

* m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
function pointer.
* lib/math.in.h (expl): Undefine if it does not exist as a function.

12 years agosqrtl: Provide function definition on MSVC.
Bruno Haible [Sat, 25 Feb 2012 00:10:38 +0000 (01:10 +0100)]
sqrtl: Provide function definition on MSVC.

* m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
a function pointer.
* lib/math.in.h (sqrtl): Undefine if it does not exist as a function.

12 years agoceill: Provide function definition on MSVC.
Bruno Haible [Sat, 25 Feb 2012 00:17:22 +0000 (01:17 +0100)]
ceill: Provide function definition on MSVC.

* m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
used as a function pointer.
* lib/math.in.h (ceill): Undefine if it is not declared as a function.

12 years agofloorl: Provide function definition on MSVC.
Bruno Haible [Sat, 25 Feb 2012 00:15:03 +0000 (01:15 +0100)]
floorl: Provide function definition on MSVC.

* m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
used as a function pointer.
* lib/math.in.h (floorl): Undefine if it is not declared as a function.

12 years agoceilf: Provide function definition on MSVC.
Bruno Haible [Sat, 25 Feb 2012 00:09:12 +0000 (01:09 +0100)]
ceilf: Provide function definition on MSVC.

* m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
used as a function pointer.
* lib/math.in.h (ceilf): Undefine if it is not declared as a function.

12 years agofloorf: Provide function definition on MSVC.
Bruno Haible [Sat, 25 Feb 2012 00:07:19 +0000 (01:07 +0100)]
floorf: Provide function definition on MSVC.

* m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
used as a function pointer.
* lib/math.in.h (floorf): Undefine if it is not declared as a function.

12 years agostdalign: @samp -> @code in doc for consistency
Paul Eggert [Fri, 24 Feb 2012 22:26:59 +0000 (14:26 -0800)]
stdalign: @samp -> @code in doc for consistency

12 years agostdnoreturn: new module
Paul Eggert [Fri, 24 Feb 2012 21:52:45 +0000 (13:52 -0800)]
stdnoreturn: new module

This implements a replacement for C11's <stdnoreturn.h>.
* doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
* doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
* m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
* tests/test-stdnoreturn.c: New files.

12 years agoregex: fix false multibyte matches in some regular expressions
Stanislav Brabec [Fri, 24 Feb 2012 20:24:44 +0000 (12:24 -0800)]
regex: fix false multibyte matches in some regular expressions

See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
* lib/regex_internal.c (re_string_skip_chars):
Fix miscomputation of remain_len that may cause incomplete
multi-byte character and false match.

12 years agomaint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
Jim Meyering [Fri, 24 Feb 2012 08:45:54 +0000 (09:45 +0100)]
maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too

* top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
uses with "==" *before* the call, e.g., 0 == strcmp (...)
Remove now-unnecessary str''cmp obfuscation.
Suggested by Akim Demaille.

12 years agostreq: Rename macro.
Bruno Haible [Fri, 24 Feb 2012 11:33:07 +0000 (12:33 +0100)]
streq: Rename macro.

* lib/streq.h (STREQ_OPT): Renamed from STREQ.
* NEWS: Mention the change.
* lib/mbrtowc.c (mbrtowc): Update.
* lib/uniwidth/cjk.h (is_cjk_encoding): Update.
* lib/wcwidth.c (wcwidth): Update.
Suggested by Akim Demaille and Jim Meyering.

12 years agoregex: fix typo in definition of MIN
Paul Eggert [Mon, 20 Feb 2012 21:03:34 +0000 (13:03 -0800)]
regex: fix typo in definition of MIN

* lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.

12 years agoacl: Don't use ACL_CNT and similar ops, since they are unreliable.
Paul Eggert [Mon, 20 Feb 2012 00:55:37 +0000 (01:55 +0100)]
acl: Don't use ACL_CNT and similar ops, since they are unreliable.

* lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
entries into a stack-allocated buffer directly.
* lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.

12 years agoacl: Don't use GETACLCNT and similar ops, since they are unreliable.
Paul Eggert [Mon, 20 Feb 2012 00:12:06 +0000 (01:12 +0100)]
acl: Don't use GETACLCNT and similar ops, since they are unreliable.

 - There were several instances of this pattern:

     for (;;) {
       n = acl (f, GETACLCNT, 0, NULL);
       [ allocate an array A of size N ]
       if (acl (f, GETACL, n, a) == n)
 break;
     }

   This loop might never terminate if some other process is constantly
   manipulating the file's ACL.  The loop should be rewritten to
   terminate.

 - The acl (... GETACLNT ...) call is merely an optimization; its value
   is merely a hint as to how big to make the array.  A better
   optimization is to avoid the acl (... GETACLNT ...)  call entirely,
   and just guess a reasonably-big size, growing the size and trying
   again if it's not large enough.  This guarantees termination, and
   saves a system call.

* lib/acl-internal.h: Include <limits.h>.
(MIN, SIZE_MAX): New macros.
* lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
a stack-allocated buffer, and use malloc if it does not fit. Don't
use GETACLCNT.
* lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.

12 years agoacl: Fix endless loop on Solaris with vxfs.
Bruno Haible [Sun, 19 Feb 2012 21:17:05 +0000 (22:17 +0100)]
acl: Fix endless loop on Solaris with vxfs.

* lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
* lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
* lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
* tests/test-sameacls.c (main)[Solaris]: Likewise.
Reported by Bill Jones in
<http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.

12 years agoacl: Fix copy-acl test failure on Solaris 11 2011-11.
Bruno Haible [Sun, 19 Feb 2012 20:59:07 +0000 (21:59 +0100)]
acl: Fix copy-acl test failure on Solaris 11 2011-11.

* lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
(acl_ace_nontrivial): Relax the restrictions on access_masks[] so
that this function returns 0 in some more cases.

12 years agoacl: Update doc references.
Bruno Haible [Sun, 19 Feb 2012 15:04:08 +0000 (16:04 +0100)]
acl: Update doc references.

* doc/acl-resources.txt: Update links to Solaris documentation.

12 years agoFix test failure in many locales on Solaris 11.
Bruno Haible [Sun, 19 Feb 2012 14:06:52 +0000 (15:06 +0100)]
Fix test failure in many locales on Solaris 11.

* tests/test-pipe-filter-gi1.c (main): Don't use range expression in
'tr' arguments.
* tests/test-pipe-filter-ii1.c (main): Likewise.
* build-aux/bootstrap (check_versions): Run 'tr' command with range
expressions in the C locale.
* m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
* m4/host-os.m4 (gl_HOST_OS): Likewise.

12 years agognulib-tool: Improve usage message.
Bruno Haible [Sun, 19 Feb 2012 13:37:26 +0000 (14:37 +0100)]
gnulib-tool: Improve usage message.

* gnulib-tool (func_usage): Move doc of --help and --version to the
section "Operation modes".

* gnulib-tool (func_usage): Document --help and --version.

12 years agoautoupdate
Karl Berry [Sun, 19 Feb 2012 00:17:59 +0000 (16:17 -0800)]
autoupdate

12 years agoREADME-release: make it easier to execute commands
Reuben Thomas [Sat, 18 Feb 2012 15:16:38 +0000 (15:16 +0000)]
README-release: make it easier to execute commands

* top/README-release: break commands out on to separate lines.

12 years agoGNUmakefile: simplify detection of unconfigured trees
Stefano Lattarini [Thu, 16 Feb 2012 19:38:23 +0000 (20:38 +0100)]
GNUmakefile: simplify detection of unconfigured trees

* top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
whether the tree make is being run from is already configured or
not.  Related simplifications.

12 years agoautoupdate
Karl Berry [Tue, 14 Feb 2012 22:55:19 +0000 (14:55 -0800)]
autoupdate

12 years agoautoupdate
Karl Berry [Tue, 14 Feb 2012 22:54:50 +0000 (14:54 -0800)]
autoupdate

12 years agoautoupdate
Karl Berry [Mon, 13 Feb 2012 15:13:58 +0000 (07:13 -0800)]
autoupdate

12 years agognulib-tool: Doc fix.
Simon Josefsson [Mon, 13 Feb 2012 14:44:41 +0000 (15:44 +0100)]
gnulib-tool: Doc fix.

* gnulib-tool (Usage): Document --help and --version.

12 years agobootstrap: don't exit 0 upon gnulib-tool failure
Jim Meyering [Sat, 11 Feb 2012 09:57:28 +0000 (10:57 +0100)]
bootstrap: don't exit 0 upon gnulib-tool failure

* build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
its exit status, not 0.

12 years agoREADME-release: various improvements
Reuben Thomas [Thu, 9 Feb 2012 13:05:57 +0000 (13:05 +0000)]
README-release: various improvements

12 years agoautoupdate
Karl Berry [Fri, 10 Feb 2012 19:26:09 +0000 (11:26 -0800)]
autoupdate

12 years agomaint: replace FSF snail-mail addresses with URLs
Paul Eggert [Fri, 10 Feb 2012 05:39:05 +0000 (21:39 -0800)]
maint: replace FSF snail-mail addresses with URLs

* config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
* lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
* lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
* lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
* lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
* lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
* lib/check-version.c, lib/check-version.h, lib/config.charset:
* lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
* lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
* lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
* lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
* lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
* lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
* lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
* lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
* lib/glthread/thread.c, lib/glthread/thread.h:
* lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
* lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
* lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
* lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
* lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
* lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
* lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
* lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
* lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
* lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
* lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
* lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
* lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
* lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
* lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
* lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
* lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
* lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
* lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
* lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
* lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
* lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
* lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
* lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
* lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
* lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
* lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
* lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
* lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
* lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
* lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
* lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
* lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
* lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
* lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
* lib/xsize.h, tests/test-closein.c, tests/test-des.c:
* tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
* tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
* tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
* tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
* tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
* tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
* tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
* tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
* tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
* tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
* tests/test-poll.c, tests/test-quotearg-simple.c:
* tests/test-quotearg.c, tests/test-quotearg.h:
* tests/test-round-ieee.c, tests/test-round1.c:
* tests/test-roundf-ieee.c, tests/test-roundf1.c:
* tests/test-roundl-ieee.c, tests/test-roundl.c:
* tests/test-safe-alloc.c, tests/test-sigpipe.c:
* tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
* tests/test-strerror.c, tests/test-strerror_r.c:
* tests/test-strsignal.c, tests/test-strverscmp.c:
* tests/test-xmemdup0.c:
Replace FSF snail mail addresses with URLs, as per GNU coding
standards.  See glibc bug
<http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.

12 years agoREADME-release: capitalize a word and split a line
Reuben Thomas [Thu, 9 Feb 2012 10:06:39 +0000 (11:06 +0100)]
README-release: capitalize a word and split a line

* top/README-release: Fix punctuation and spacing.

12 years agofatal-signal: use C prototypes (with explicit void).
Akim Demaille [Wed, 8 Feb 2012 09:36:20 +0000 (10:36 +0100)]
fatal-signal: use C prototypes (with explicit void).

* lib/fatal-signal.c (uninstall_handlers, install_handlers)
(init_fatal_signal_set, block_fatal_signals): Fix signatures.

12 years agoregex: spelling fix
Paul Eggert [Wed, 8 Feb 2012 07:07:48 +0000 (23:07 -0800)]
regex: spelling fix

* lib/regexec.c: spelling fix

12 years agoregex: rely on stdint.h for SIZE_MAX
Paul Eggert [Wed, 8 Feb 2012 07:06:43 +0000 (23:06 -0800)]
regex: rely on stdint.h for SIZE_MAX

* lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.

12 years agoregex: merge glibc changes
Paul Eggert [Wed, 8 Feb 2012 06:47:01 +0000 (22:47 -0800)]
regex: merge glibc changes

* lib/regcomp.c (init_dfa): Tighten overflow checks to test
for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
(init_word_char): Work even if bitset words are not exactly 32 or
64 bits wide.  Don't assume there are no padding bits.
* lib/regex.c [_LIBC]: Do not include <config.h>.
[!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
and -Wtype-limits.
* lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
needless disagreement with glibc.  All uses changed.  Define it to
1 only if _GNU_SOURCE, to match glibc.
(_REG_RM_NAME): Remove; no longer needed, since the names in
question are now all protected by __USE_GNU.
(_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
(REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
* lib/regex_internal.h (MIN): New macro.

2012-01-03 Ulrich Drepper <drepper@gmail.com>
* lib/regcomp.c (init_word_char): Optimize regex a bit.

2011-12-30 Jakub Jelinek <jakub@redhat.com>
* lib/regex_internal.c (re_string_fetch_byte_case):
Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
is miscompiled, and it turns out it is because of an incorrect
attribute on re_string_fetch_byte_case.  Unlike
re_string_peek_byte_case, this one is really not pure, it modifies
memory (increments pstr->cur_idx), and with the pure attribute GCC
assumed it doesn't and it cached the presumed value of
regexp->cur_idx in a variable across the
 for (;; ++i)
   {
     if (i >= BRACKET_NAME_BUF_SIZE)
       return REG_EBRACK;
     if (token->type == OP_OPEN_CHAR_CLASS)
       ch = re_string_fetch_byte_case (regexp);
     else
       ch = re_string_fetch_byte (regexp);
     if (re_string_eoi(regexp))
       return REG_EBRACK;
     if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
       break;
     elem->opr.name[i] = ch;
   }

2011-11-29 Andreas Schwab <schwab@redhat.com>
* lib/regcomp.c (build_equiv_class):
Fix access after end of search string in regex matcher.

2011-11-12 Ulrich Drepper <drepper@redhat.com>
* lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.

2011-10-12 Ulrich Drepper <drepper@redhat.com>
* lib/regcomp.c (parse_branch): One more regex memory leak fixed.

2011-10-11 Ulrich Drepper <drepper@redhat.com>
* lib/regcomp.c (parse_branch, parse_sub_exp):
More regex memory leak fixes and tests.
(parse_sub_exp, parse_bracket_exp):
Fix memory leak for some invalid regular expressions.

2011-05-28 Ulrich Drepper <drepper@gmail.com>
* lib/regex_internal.c, lib/regexec.c:
Fix unnecessary overallocation due to incomplete character.  When
incomplete characters are found at the end of a string the code
ran amok and allocated lots of memory.  Stricter limits are now in
place.

2011-05-20 Reuben Thomas <rrt@sc3d.org>
* lib/regex.h: Update documentation.

2011-05-16 Aharon Robbins <arnold@skeeve.com>
* lib/regex.h: Update RE_SYNTAX*_AWK constants.

2010-05-05 Andreas Schwab <schwab@redhat.com>
* lib/regexec.c (find_collation_sequence_value):
Fix lookup of collation sequence value during regexp matching.

2010-01-22 Ulrich Drepper <drepper@redhat.com>
* lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.

2008-01-16 Ulrich Drepper <drepper@redhat.com>
* lib/regex.h: Cleanup namespace.

2007-11-26 Ulrich Drepper <drepper@redhat.com>
* lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.

2007-08-26 Ulrich Drepper <drepper@redhat.com>
* lib/regex_internal.h: Prevent some declarations and definitions
to be seen when used in tests.

2005-05-06 Ulrich Drepper <drepper@redhat.com>
* lib/regex_internal.h: Include bits/libc-lock.h or define dummy
__libc_lock_* macros if not _LIBC.
(struct re_dfa_t): Add lock.

12 years agomaint.mk: also prohibit lower-case @var@
Eric Blake [Thu, 2 Feb 2012 21:11:40 +0000 (14:11 -0700)]
maint.mk: also prohibit lower-case @var@

* top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
lower case, like @top_srcdir@.

Signed-off-by: Eric Blake <eblake@redhat.com>
12 years agoautoupdate
Karl Berry [Tue, 7 Feb 2012 16:57:18 +0000 (08:57 -0800)]
autoupdate

12 years agomaint: spelling fixes
Paul Eggert [Sun, 5 Feb 2012 21:42:03 +0000 (13:42 -0800)]
maint: spelling fixes

12 years agocanonicalize: avoid uninitialized memory use
Eric Blake [Sat, 4 Feb 2012 18:11:40 +0000 (11:11 -0700)]
canonicalize: avoid uninitialized memory use

When DOUBLE_SLASH_IS_DISTINCT_ROOT is non-zero, then we were
reading the contents of rpath[1] even when we had never written
anything there, which meant that "///" would usually canonicalize
to "/" but sometimes to "//" if a '/' was leftover in the heap.
This condition could also occur via 'ln -s / //some/path' and
canonicalizing //some/path, where we rewind rpath but do not
clear out the previous round.  Platforms where "//" and "/" are
equivalent do not suffer from this read-beyond-written bounds.

* lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
random '/' left in dest.
* lib/canonicalize.c (canonicalize_filename_mode): Likewise.

Signed-off-by: Eric Blake <eblake@redhat.com>
12 years agoisatty: Fix test failure of ptsname_r on native Windows.
Bruno Haible [Sat, 4 Feb 2012 18:13:34 +0000 (19:13 +0100)]
isatty: Fix test failure of ptsname_r on native Windows.

* lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
and don't set errno.
(isatty): Test first whether fd is valid. Set errno when returning 0.

12 years agospawn-pipe tests: Fix a NULL program name in a diagnostic.
Bruno Haible [Sat, 4 Feb 2012 17:20:11 +0000 (18:20 +0100)]
spawn-pipe tests: Fix a NULL program name in a diagnostic.

* tests/test-spawn-pipe-main.c: Include progname.h.
(main): Invoke set_program_name.
* modules/spawn-pipe-tests (Depends-on): Add progname.

12 years agononblocking-socket tests: Fix a NULL program name in a diagnostic.
Bruno Haible [Sat, 4 Feb 2012 17:19:11 +0000 (18:19 +0100)]
nonblocking-socket tests: Fix a NULL program name in a diagnostic.

* tests/test-nonblocking-socket-main.c: Include progname.h.
(main): Invoke set_program_name.
* modules/nonblocking-socket-tests (Depends-on): Add progname.

12 years agononblocking-pipe tests: Fix a NULL program name in a diagnostic.
Bruno Haible [Sat, 4 Feb 2012 17:18:37 +0000 (18:18 +0100)]
nonblocking-pipe tests: Fix a NULL program name in a diagnostic.

* tests/test-nonblocking-pipe-main.c: Include progname.h.
(main): Invoke set_program_name.
* modules/nonblocking-pipe-tests (Depends-on): Add progname.

12 years agocanonicalize-lgpl: fix // handling
Eric Blake [Sat, 4 Feb 2012 17:03:29 +0000 (10:03 -0700)]
canonicalize-lgpl: fix // handling

Same as the previous patch, for the lgpl version.

* lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.

Signed-off-by: Eric Blake <eblake@redhat.com>
12 years agocanonicalize: fix // handling
Eric Blake [Sat, 4 Feb 2012 16:46:32 +0000 (09:46 -0700)]
canonicalize: fix // handling

On Cygwin, and other platforms where // is detected as distinct
from / at configure time, the canonicalize routines were incorrectly
treating all instances of multiple leading slashes as //.
See also coreutils bug http://debbugs.gnu.org/10472

* lib/canonicalize.c (canonicalize_filename_mode): Don't convert
/// to //, since only // is special.

Signed-off-by: Eric Blake <eblake@redhat.com>
12 years agoioctl: Fix test failure on native Windows.
Bruno Haible [Sat, 4 Feb 2012 15:39:30 +0000 (16:39 +0100)]
ioctl: Fix test failure on native Windows.

* lib/ioctl.c: Include msvc-nothrow.h.
(primary_ioctl): If fd is not a valid handle, set errno to EBADF.

12 years agofsync: Avoid test failure on native Windows.
Bruno Haible [Sat, 4 Feb 2012 13:59:43 +0000 (14:59 +0100)]
fsync: Avoid test failure on native Windows.

* lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
read-only.

12 years ago* lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
Bruno Haible [Sat, 4 Feb 2012 13:56:18 +0000 (14:56 +0100)]
* lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is

currently being included, just include the system's <sys/select.h>.

2012-02-04  Bruno Haible  <bruno@clisp.org>

sys_select: Avoid syntax error on OpenBSD 5.0.

12 years agosys_select: Avoid syntax error on OpenBSD 5.0.
Bruno Haible [Sat, 4 Feb 2012 13:50:20 +0000 (14:50 +0100)]
sys_select: Avoid syntax error on OpenBSD 5.0.

* lib/sys_select.in.h: Include <signal.h> only after the include_next
<sys/select.h>, not before.
Reported by Jiri B <jirib@devio.us>.

12 years agoget-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
Bruno Haible [Sat, 4 Feb 2012 11:59:00 +0000 (12:59 +0100)]
get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.

* tests/test-get-rusage-as.c (main): Assign the malloc() results to
global variables.
* tests/test-get-rusage-data.c (main): Likewise.
Reported by Jim Meyering.

12 years agostdioext: Fix last commit.
Bruno Haible [Sat, 4 Feb 2012 11:56:33 +0000 (12:56 +0100)]
stdioext: Fix last commit.

* lib/fwritable.c [EPLAN9]: Include <fcntl.h>.

12 years agostdioext: Add tentative support for Plan9.
Bruno Haible [Fri, 3 Feb 2012 21:58:33 +0000 (22:58 +0100)]
stdioext: Add tentative support for Plan9.

* lib/stdio-impl.h: Include <errno.h>.
* lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
* lib/freadable.c (freadable): Likewise.
* lib/fwritable.c (fwritable): Likewise.
* lib/fbufmode.c (fbufmode): Likewise.
* lib/freading.c (freading): Likewise.
* lib/fwriting.c (fwriting): Likewise.
* lib/freadptr.c (freadptr): Likewise.
* lib/freadseek.c (freadptrinc): Likewise.
* lib/freadahead.c (freadahead): Likewise.
* lib/fpurge.c (fpurge): Likewise.
* lib/fseeko.c (rpl_fseeko): Likewise.
* m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
Reported by Jens Staal <staal1978@gmail.com>.

12 years agofile-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
Jim Meyering [Thu, 2 Feb 2012 08:12:13 +0000 (09:12 +0100)]
file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const

* lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
would evoke a new gcc warning.  Given all of the #ifdefs, it is better
not even to try to add the attribute.  Instead, add a pragma to suppress
the suggestion/warning.

12 years agoSpelling fixes.
Paul Eggert [Wed, 1 Feb 2012 05:12:29 +0000 (21:12 -0800)]
Spelling fixes.

12 years agotypo
Karl Berry [Tue, 31 Jan 2012 22:24:40 +0000 (14:24 -0800)]
typo

12 years agoautoupdate
Karl Berry [Tue, 31 Jan 2012 17:03:05 +0000 (09:03 -0800)]
autoupdate

12 years agopopen: Make more robust on Windows.
Bruno Haible [Tue, 31 Jan 2012 11:15:46 +0000 (12:15 +0100)]
popen: Make more robust on Windows.

* lib/popen.c: On native Windows, use the _popen based code even if
HAVE_POPEN is set.
* doc/posix-functions/popen.texi: Mention necessity of COMSPEC
environment variable on native Windows.

12 years agoFix date of recent ChangeLog entries.
Bruno Haible [Tue, 31 Jan 2012 11:13:29 +0000 (12:13 +0100)]
Fix date of recent ChangeLog entries.

12 years agopclose: Fix typo.
Bruno Haible [Tue, 31 Jan 2012 02:02:53 +0000 (03:02 +0100)]
pclose: Fix typo.

* lib/stdio.in.h (pclose): Fix typo in warning message.

12 years agodoc about getlogin_r, setstate.
Bruno Haible [Mon, 30 Jan 2012 21:47:22 +0000 (22:47 +0100)]
doc about getlogin_r, setstate.

* doc/posix-functions/getlogin_r.texi: List the incompatible
declaration problem under "not fixed by gnulib".
* doc/posix-functions/setstate.texi: Mention incompatible declaration
problem on Solaris 11 and other platforms.