microoptimization of lib/poll.c
[gnulib.git] / ChangeLog
index e3d13f1..9273b33 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,169 @@
+2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
+
+       * lib/poll.c (poll): Avoid division when timeout is 0, cache
+       _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
+
+2008-08-06  Jim Meyering  <meyering@redhat.com>
+
+       * modules/inet_pton (License): Relicense under LGPLv2+.
+
+2008-08-03  Bruno Haible  <bruno@clisp.org>
+
+       Additional non-aborting API for lock and tls.
+       * lib/lock.h: Include <errno.h>.
+       (glthread_lock_init): New macro/function.
+       (gl_lock_init): Define as wrapper around glthread_lock_init.
+       (glthread_lock_lock): New macro/function.
+       (gl_lock_lock): Define as wrapper around glthread_lock_lock.
+       (glthread_lock_unlock): New macro/function.
+       (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
+       (glthread_lock_destroy): New macro/function.
+       (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
+       (glthread_rwlock_init): New macro/function.
+       (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
+       (glthread_rwlock_rdlock): New macro/function.
+       (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
+       (glthread_rwlock_wrlock): New macro/function.
+       (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
+       (glthread_rwlock_unlock): New macro/function.
+       (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
+       (glthread_rwlock_destroy): New macro/function.
+       (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
+       (glthread_recursive_lock_init): New macro/function.
+       (gl_recursive_lock_init): Define as wrapper around
+       glthread_recursive_lock_init.
+       (glthread_recursive_lock_lock): New macro/function.
+       (gl_recursive_lock_lock): Define as wrapper around
+       glthread_recursive_lock_lock.
+       (glthread_recursive_lock_unlock): New macro/function.
+       (gl_recursive_lock_unlock): Define as wrapper around
+       glthread_recursive_lock_unlock.
+       (glthread_recursive_lock_destroy): New macro/function.
+       (gl_recursive_lock_destroy): Define as wrapper around
+       glthread_recursive_lock_destroy.
+       (glthread_once): New macro/function.
+       (gl_once): Define as wrapper around glthread_once.
+       Update function declarations.
+       * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
+       glthread_rwlock_init. Return error code.
+       (glthread_rwlock_rdlock_multithreaded): Renamed from
+       glthread_rwlock_rdlock. Return error code.
+       (glthread_rwlock_wrlock_multithreaded): Renamed from
+       glthread_rwlock_wrlock. Return error code.
+       (glthread_rwlock_unlock_multithreaded): Renamed from
+       glthread_rwlock_unlock. Return error code.
+       (glthread_rwlock_destroy_multithreaded): Renamed from
+       glthread_rwlock_destroy. Return error code.
+       (glthread_recursive_lock_init_multithreaded): Renamed from
+       glthread_recursive_lock_init. Return error code.
+       (glthread_recursive_lock_lock_multithreaded): Renamed from
+       glthread_recursive_lock_lock. Return error code.
+       (glthread_recursive_lock_unlock_multithreaded): Renamed from
+       glthread_recursive_lock_unlock. Return error code.
+       (glthread_recursive_lock_destroy_multithreaded): Renamed from
+       glthread_recursive_lock_destroy. Return error code.
+       (glthread_once_call): Make static.
+       (glthread_once_multithreaded): Renamed from glthread_once.
+       * lib/tls.h: Include <errno.h>.
+       (glthread_tls_key_init): New macro/function.
+       (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
+       (glthread_tls_set): New macro/function.
+       (gl_tls_set): Define as wrapper around glthread_tls_set.
+       (glthread_tls_key_destroy): New macro/function.
+       (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
+       Update function declarations.
+       * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
+       glthread_tls_get.
+       Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
+
+2008-08-04  Eric Blake  <ebb9@byu.net>
+
+       gnumakefile: use space, not TAB, outside of targets
+       * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
+
+2008-08-02  Jim Meyering  <meyering@redhat.com>
+
+       getdate.y: avoid locale-dependent date parsing failure
+       In Turkish locales, getdate would fail to recognize keywords
+       containing a lowercase "i".  The solution is not to rely on
+       locale-sensitive case-conversion.
+       * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
+       (lookup_word): Use c_toupper in place of toupper.
+       (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
+       Reported by Vefa Bicakci <bicave@superonline.com> in
+       <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
+       * modules/getdate (Depends-on): Add c-ctype.
+
+2008-08-02  Bruno Haible  <bruno@clisp.org>
+
+       * gnulib-tool (func_import): When updating or creating a .gitignore
+       file, prepend each added line with a slash, and ignore leading slashes
+       from the existing lines.
+       Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
+
+2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+       Portability fix for GNU make 3.79.1.
+       * top/GNUmakefile: Avoid 'else COND', which older GNU make
+       versions do not understand.
+
+2008-08-01  Bruno Haible  <bruno@clisp.org>
+
+       Work around bug of HP-UX 10.20 cc with -0.0 literal.
+       * tests/test-isnanf.h (zero): New variable.
+       (main): Avoid literal -0.0f.
+       * tests/test-isnand.h (zero): New variable.
+       (main): Avoid literal -0.0.
+       * tests/test-isnanl.h (zero): New variable.
+       (main): Avoid literal -0.0L.
+       * tests/test-isnan.c (zerof, zerod, zerol): New variables.
+       (test_float, test_double, test_long_double): Avoid literals -0.0f,
+       -0.0, -0.0L.
+       * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
+       (test_signbitd): Avoid literal -0.0.
+       (test_signbitl): Avoid literal -0.0L.
+       * tests/test-ceilf1.c (zero): New variable.
+       (main): Avoid literal -0.0f.
+       * tests/test-ceill.c (zero): New variable.
+       (main): Avoid literal -0.0L.
+       * tests/test-floorf1.c (zero): New variable.
+       (main): Avoid literal -0.0f.
+       * tests/test-floorl.c (zero): New variable.
+       (main): Avoid literal -0.0L.
+       * tests/test-roundf1.c (zero): New variable.
+       (main): Avoid literal -0.0f.
+       * tests/test-round1.c (zero): New variable.
+       (main): Avoid literal -0.0.
+       * tests/test-roundl.c (zero): New variable.
+       (main): Avoid literal -0.0L.
+       * tests/test-truncf1.c (zero): New variable.
+       (main): Avoid literal -0.0f.
+       * tests/test-trunc1.c (zero): New variable.
+       (main): Avoid literal -0.0.
+       * tests/test-truncl.c (zero): New variable.
+       (main): Avoid literal -0.0L.
+       * tests/test-frexp.c (zero): New variable.
+       (main): Avoid literal -0.0.
+       * tests/test-frexpl.c (zero): New variable.
+       (main): Avoid literal -0.0L.
+       * tests/test-ldexpl.c (zero): New variable.
+       (main): Avoid literal -0.0L.
+       * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
+       (zerod, zerol): New variables.
+       (test_function): Avoid literals -0.0, -0.0L.
+       * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
+       (zerod, zerol): New variables.
+       (test_function): Avoid literals -0.0, -0.0L.
+       * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
+       (zerod, zerol): New variables.
+       (test_function): Avoid literals -0.0, -0.0L.
+       * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
+       (zerod, zerol): New variables.
+       (test_function): Avoid literals -0.0, -0.0L.
+       * tests/test-strtod.c (zero): New variable.
+       (main): Avoid literal -0.0.
+       Reported by Jonathan C. Patschke <jp@centtech.com>.
+
 2008-07-31  Jim Meyering  <meyering@redhat.com>
 
        sha256.h: correct definition of SHA224_DIGEST_SIZE