[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[commits] r6674 - in /fsf/trunk/libc: ./ manual/ sysdeps/mach/i386/ sysdeps/posix/
- To: commits@xxxxxxxxxx
- Subject: [commits] r6674 - in /fsf/trunk/libc: ./ manual/ sysdeps/mach/i386/ sysdeps/posix/
- From: eglibc@xxxxxxxxxx
- Date: Sun, 03 Aug 2008 07:07:14 -0000
Author: eglibc
Date: Sun Aug 3 00:07:12 2008
New Revision: 6674
Log:
Import glibc-mainline for 2008-08-03
Modified:
fsf/trunk/libc/ChangeLog
fsf/trunk/libc/NEWS
fsf/trunk/libc/manual/arith.texi
fsf/trunk/libc/manual/creature.texi
fsf/trunk/libc/manual/filesys.texi
fsf/trunk/libc/manual/math.texi
fsf/trunk/libc/manual/memory.texi
fsf/trunk/libc/manual/resource.texi
fsf/trunk/libc/manual/syslog.texi
fsf/trunk/libc/manual/time.texi
fsf/trunk/libc/sysdeps/mach/i386/machine-lock.h
fsf/trunk/libc/sysdeps/posix/clock_getres.c
Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Sun Aug 3 00:07:12 2008
@@ -1,3 +1,22 @@
+2008-08-02 Roland McGrath <roland@xxxxxxxx>
+
+ * sysdeps/mach/i386/machine-lock.h (__spin_unlock, __spin_try_lock):
+ Add memory clobbers.
+
+2008-08-02 Ulrich Drepper <drepper@xxxxxxxxxx>
+
+ * manual/arith.texi: Avoid @strong{Note:}.
+ * manual/creature.texi: Likewise.
+ * manual/filesys.texi: Likewise.
+ * manual/math.texi: Likewise.
+ * manual/memory.texi: Likewise.
+ * manual/resource.texi: Likewise.
+ * manual/syslog.texi: Likewise.
+ * manual/time.texi: Likewise.
+
+ * sysdeps/posix/clock_getres.c (hp_timing_getres): Remove inline
+ to prevent warning.
+
2008-08-01 Ulrich Drepper <drepper@xxxxxxxxxx>
* sysdeps/unix/sysv/linux/Versions: Fix changes due to old patch for
Modified: fsf/trunk/libc/NEWS
==============================================================================
--- fsf/trunk/libc/NEWS (original)
+++ fsf/trunk/libc/NEWS Sun Aug 3 00:07:12 2008
@@ -1,4 +1,4 @@
-GNU C Library NEWS -- history of user-visible changes. 2008-8-1
+GNU C Library NEWS -- history of user-visible changes. 2008-8-2
Copyright (C) 1992-2007, 2008 Free Software Foundation, Inc.
See the end for copying conditions.
@@ -30,6 +30,9 @@
* Many functions, exported and internal, now atomically set the close-on-exec
flag when run on a sufficiently new kernel. Implemented by Ulrich Drepper.
+
+* Sorting rules for some Indian languages (Kannada, Gurumukhi, Telugu)
+ Implemented by Pravin Satpute.
Version 2.8
Modified: fsf/trunk/libc/manual/arith.texi
==============================================================================
--- fsf/trunk/libc/manual/arith.texi (original)
+++ fsf/trunk/libc/manual/arith.texi Sun Aug 3 00:07:12 2008
@@ -418,7 +418,7 @@
This function returns a nonzero value if @var{x} is a ``not a number''
value, and zero otherwise.
-@strong{Note:} The @code{isnan} macro defined by @w{ISO C99} overrides
+@strong{NB:} The @code{isnan} macro defined by @w{ISO C99} overrides
the BSD function. This is normally not a problem, because the two
routines behave identically. However, if you really need to get the BSD
function for some reason, you can write
@@ -968,7 +968,7 @@
bits in the @dfn{control word}. In C, traps result in the program
receiving the @code{SIGFPE} signal; see @ref{Signal Handling}.
-@strong{Note:} @w{IEEE 754} says that trap handlers are given details of
+@strong{NB:} @w{IEEE 754} says that trap handlers are given details of
the exceptional situation, and can set the result value. C signals do
not provide any mechanism to pass this information back and forth.
Trapping exceptions in C is therefore not very useful.
@@ -1721,7 +1721,7 @@
machines that don't, the macros can be very slow. Therefore, you should
not use these functions when NaN is not a concern.
-@strong{Note:} There are no macros @code{isequal} or @code{isunequal}.
+@strong{NB:} There are no macros @code{isequal} or @code{isunequal}.
They are unnecessary, because the @code{==} and @code{!=} operators do
@emph{not} throw an exception if one or both of the operands are NaN.
Modified: fsf/trunk/libc/manual/creature.texi
==============================================================================
--- fsf/trunk/libc/manual/creature.texi (original)
+++ fsf/trunk/libc/manual/creature.texi Sun Aug 3 00:07:12 2008
@@ -217,7 +217,7 @@
Note that if you do this, you must link your program with the BSD
compatibility library by passing the @samp{-lbsd-compat} option to the
-compiler or linker. @strong{Note:} If you forget to do this, you may
+compiler or linker. @strong{NB:} If you forget to do this, you may
get very strange errors at run time.
@end defvr
Modified: fsf/trunk/libc/manual/filesys.texi
==============================================================================
--- fsf/trunk/libc/manual/filesys.texi (original)
+++ fsf/trunk/libc/manual/filesys.texi Sun Aug 3 00:07:12 2008
@@ -3239,7 +3239,7 @@
file name. Usually the template string is something like
@samp{/tmp/@var{prefix}XXXXXX}, and each program uses a unique @var{prefix}.
-@strong{Note:} Because @code{mktemp} and @code{mkstemp} modify the
+@strong{NB:} Because @code{mktemp} and @code{mkstemp} modify the
template string, you @emph{must not} pass string constants to them.
String constants are normally in read-only storage, so your program
would crash when @code{mktemp} or @code{mkstemp} tried to modify the
Modified: fsf/trunk/libc/manual/math.texi
==============================================================================
--- fsf/trunk/libc/manual/math.texi (original)
+++ fsf/trunk/libc/manual/math.texi Sun Aug 3 00:07:12 2008
@@ -1366,7 +1366,7 @@
This function returns the next pseudo-random number in the sequence.
The value returned ranges from @code{0} to @code{RAND_MAX}.
-@strong{Note:} Temporarily this function was defined to return a
+@strong{NB:} Temporarily this function was defined to return a
@code{int32_t} value to indicate that the return value always contains
32 bits even if @code{long int} is wider. The standard demands it
differently. Users must always be aware of the 32-bit limitation,
Modified: fsf/trunk/libc/manual/memory.texi
==============================================================================
--- fsf/trunk/libc/manual/memory.texi (original)
+++ fsf/trunk/libc/manual/memory.texi Sun Aug 3 00:07:12 2008
@@ -2326,7 +2326,7 @@
variable-sized arrays.
@end itemize
-@strong{Note:} If you mix use of @code{alloca} and variable-sized arrays
+@strong{NB:} If you mix use of @code{alloca} and variable-sized arrays
within one function, exiting a scope in which a variable-sized array was
declared frees all blocks allocated with @code{alloca} during the
execution of that scope.
Modified: fsf/trunk/libc/manual/resource.texi
==============================================================================
--- fsf/trunk/libc/manual/resource.texi (original)
+++ fsf/trunk/libc/manual/resource.texi Sun Aug 3 00:07:12 2008
@@ -591,7 +591,7 @@
for something like I/O, its absolute priority is irrelevant.
@cindex runnable process
-@strong{Note:} The term ``runnable'' is a synonym for ``ready to run.''
+@strong{NB:} The term ``runnable'' is a synonym for ``ready to run.''
When two processes are running or ready to run and both have the same
absolute priority, it's more interesting. In that case, who gets the
@@ -663,7 +663,7 @@
its absolute priority when the process isn't getting its entitled share
and lowers it when the process is exceeding it.
-@strong{Note:} The absolute priority is sometimes called the ``static
+@strong{NB:} The absolute priority is sometimes called the ``static
priority.'' We don't use that term in this manual because it misses the
most important feature of the absolute priority: its absoluteness.
Modified: fsf/trunk/libc/manual/syslog.texi
==============================================================================
--- fsf/trunk/libc/manual/syslog.texi (original)
+++ fsf/trunk/libc/manual/syslog.texi Sun Aug 3 00:07:12 2008
@@ -337,7 +337,7 @@
Results are undefined if the facility code is anything else.
-@strong{note:} @code{syslog} recognizes one other facility code: that of
+@strong{NB:} @code{syslog} recognizes one other facility code: that of
the kernel. But you can't specify that facility code with these
functions. If you try, it looks the same to @code{syslog} as if you are
requesting the default facility. But you wouldn't want to anyway,
Modified: fsf/trunk/libc/manual/time.texi
==============================================================================
--- fsf/trunk/libc/manual/time.texi (original)
+++ fsf/trunk/libc/manual/time.texi Sun Aug 3 00:07:12 2008
@@ -1652,7 +1652,7 @@
Leading zeroes are permitted but not required.
-@strong{Note:} The Unix specification says the upper bound on this value
+@strong{NB:} The Unix specification says the upper bound on this value
is @code{61}, a result of a decision to allow double leap seconds. You
will not see the value @code{61} because no minute has more than one
leap second, but the myth persists.
Modified: fsf/trunk/libc/sysdeps/mach/i386/machine-lock.h
==============================================================================
--- fsf/trunk/libc/sysdeps/mach/i386/machine-lock.h (original)
+++ fsf/trunk/libc/sysdeps/mach/i386/machine-lock.h Sun Aug 3 00:07:12 2008
@@ -1,5 +1,5 @@
/* Machine-specific definition for spin locks. i386 version.
- Copyright (C) 1994, 1997, 2007 Free Software Foundation, Inc.
+ Copyright (C) 1994,1997,2007,2008 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -40,7 +40,8 @@
{
register int __unlocked;
__asm__ __volatile ("xchgl %0, %1"
- : "=&r" (__unlocked), "=m" (*__lock) : "0" (0));
+ : "=&r" (__unlocked), "=m" (*__lock) : "0" (0)
+ : : "memory");
}
/* Try to lock LOCK; return nonzero if we locked it, zero if another has. */
@@ -50,7 +51,8 @@
{
register int __locked;
__asm__ __volatile ("xchgl %0, %1"
- : "=&r" (__locked), "=m" (*__lock) : "0" (1));
+ : "=&r" (__locked), "=m" (*__lock) : "0" (1)
+ : : "memory");
return !__locked;
}
Modified: fsf/trunk/libc/sysdeps/posix/clock_getres.c
==============================================================================
--- fsf/trunk/libc/sysdeps/posix/clock_getres.c (original)
+++ fsf/trunk/libc/sysdeps/posix/clock_getres.c Sun Aug 3 00:07:12 2008
@@ -1,5 +1,5 @@
/* clock_getres -- Get the resolution of a POSIX clockid_t.
- Copyright (C) 1999, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
+ Copyright (C) 1999,2000,2001,2003,2004,2008 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -28,7 +28,7 @@
#if HP_TIMING_AVAIL
static long int nsec; /* Clock frequency of the processor. */
-static inline int
+static int
hp_timing_getres (struct timespec *res)
{
if (__builtin_expect (nsec == 0, 0))