stdnoreturn: new module
[gnulib.git] / ChangeLog
index 9842d6f..c7a6e10 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,103 @@
+2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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.
+
+2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
+
+       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.
+
+2012-02-24  Jim Meyering  <meyering@redhat.com>
+
+       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.
+
+2012-02-24  Bruno Haible  <bruno@clisp.org>
+
+       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.
+
+2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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>.
+
+2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
+           Bruno Haible  <bruno@clisp.org>
+
+       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.
+
+2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
+           Bruno Haible  <bruno@clisp.org>
+
+       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.
+
+2012-02-19  Bruno Haible  <bruno@clisp.org>
+
+       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.
+
+2012-02-19  Bruno Haible  <bruno@clisp.org>
+
+       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.
+
 2012-02-19  Bruno Haible  <bruno@clisp.org>
 
        acl: Update doc references.