[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commits] r17181 - in /fsf/trunk/libc: ./ manual/ manual/examples/ sysdeps/mach/hurd/ sysdeps/unix/sysv/linux/
- To: commits@xxxxxxxxxx
- Subject: [Commits] r17181 - in /fsf/trunk/libc: ./ manual/ manual/examples/ sysdeps/mach/hurd/ sysdeps/unix/sysv/linux/
- From: eglibc@xxxxxxxxxx
- Date: Sat, 18 Feb 2012 00:01:34 -0000
Author: eglibc
Date: Sat Feb 18 00:01:33 2012
New Revision: 17181
Log:
Import glibc-mainline for 2012-02-18
Modified:
fsf/trunk/libc/ChangeLog
fsf/trunk/libc/NEWS
fsf/trunk/libc/manual/arith.texi
fsf/trunk/libc/manual/charset.texi
fsf/trunk/libc/manual/errno.texi
fsf/trunk/libc/manual/examples/argp-ex1.c
fsf/trunk/libc/manual/examples/argp-ex2.c
fsf/trunk/libc/manual/examples/argp-ex3.c
fsf/trunk/libc/manual/filesys.texi
fsf/trunk/libc/manual/lang.texi
fsf/trunk/libc/manual/llio.texi
fsf/trunk/libc/manual/locale.texi
fsf/trunk/libc/manual/math.texi
fsf/trunk/libc/manual/memory.texi
fsf/trunk/libc/manual/process.texi
fsf/trunk/libc/manual/resource.texi
fsf/trunk/libc/manual/signal.texi
fsf/trunk/libc/manual/socket.texi
fsf/trunk/libc/manual/startup.texi
fsf/trunk/libc/manual/stdio.texi
fsf/trunk/libc/manual/string.texi
fsf/trunk/libc/manual/syslog.texi
fsf/trunk/libc/manual/terminal.texi
fsf/trunk/libc/manual/users.texi
fsf/trunk/libc/sysdeps/mach/hurd/malloc-machine.h
fsf/trunk/libc/sysdeps/unix/sysv/linux/clock_settime.c
Modified: fsf/trunk/libc/ChangeLog
==============================================================================
--- fsf/trunk/libc/ChangeLog (original)
+++ fsf/trunk/libc/ChangeLog Sat Feb 18 00:01:33 2012
@@ -1,3 +1,106 @@
+2012-02-17 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
+
+ [BZ #5077]
+ * manual/lang.texi (FLT_EPSILON): Avoid description depending on
+ rounding modes.
+
+2012-02-17 Fabrice Bauzac <fabrice.bauzac@xxxxxxxxxx>
+
+ [BZ #6907]
+ * manual/string.texi (strchr): Change when strchrnul is
+ recommended.
+
+2012-02-17 Dwayne Grant McConnell <decimal@xxxxxxxxxx>
+
+ [BZ #174]
+ * manual/locale.texi (setlocale): Document LOCPATH.
+
+2012-02-17 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
+
+ [BZ #10210]
+ * manual/process.texi (execle): Move @dots{} before last argument.
+
+2012-02-17 Paul Bolle <pebolle@xxxxxxxxxx>
+
+ [BZ #12047]
+ * manual/charset.texi (Generic Charset Conversion): Fix typo
+ (LC_TYPE -> LC_CTYPE).
+
+2012-02-17 Nicolas Boulenguez <nicolas.boulenguez@xxxxxxx>
+
+ [BZ #5805]
+ * manual/arith.texi (scalbn): Use @var{} on parameter names.
+ (scalbnf): Likewise.
+ (scalbnl): Likewise.
+ (scalbln): Likewise.
+ (scalblnf): Likewise.
+ (scalblnl): Likewise.
+ * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
+ (vwarnx): Likewise.
+ (verr): Likewise.
+ (verrx): Likewise.
+ * manual/filesys.texi (telldir): Use braces around return type.
+ * manual/llio.texi (mmap): Add space after comma.
+ (mmap64): Likewise.
+ * manual/math.texi (jn): Use @var{} on parameter names.
+ (jnf): Likewise.
+ (jnl): Likewise.
+ (yn): Likewise.
+ (ynf): Likewise.
+ (ynl): Likewise.
+ * manual/memory.texi (alloca): Remove semicolon on @deftypefun
+ line.
+ * manual/resource.texi (ulimit): Use @dots{} instead of literal
+ "...".
+ (sched_get_priority_min): Remove semicolon on @deftypefun line.
+ (sched_get_priority_max): Likewise.
+ * manual/signal.texi (sigvec): Add space after comma.
+ * manual/socket.texi (if_nametoindex): Use @var{} on parameter
+ names.
+ (if_indextoname): Likewise.
+ (if_freenameindex): Likewise.
+ (sendto): Use ',' instead of '.' in prototype.
+ * manual/startup.texi (syscall): Use @dots{} instead of literal
+ "...".
+ * manual/stdio.texi (__fpending): Separate initial words of
+ paragraph from @deftypefun line.
+ * manual/syslog.texi (syslog): Use @dots{} instead of literal
+ "...".
+ (vsyslog): Use @var{} on parameter names.
+ * manual/terminal.texi (stty): Use @var{} on parameter names.
+ * manual/users.texi (getutmp): Use @var{} on parameter names.
+ (getutmpx): Likewise.
+
+2012-02-17 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
+
+ [BZ #6884]
+ * manual/stdio.texi (fopen): Fix typos in description of
+ ",ccs=STRING".
+
+2012-02-17 Aurelien Jarno <aurelien@xxxxxxxxxxx>
+
+ [BZ #4026]
+ * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
+ get clock_id definition.
+
+2012-02-17 Thomas Schwinge <thomas@xxxxxxxxxxxxx>
+
+ [BZ #4822]
+ * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
+ (madvise): Cast every argument to void on its own.
+
+2012-02-17 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
+
+ [BZ #9902]
+ * manual/startup.texi (Exit Status): Fix typo.
+
+2012-02-17 Joseph Myers <joseph@xxxxxxxxxxxxxxxx>
+
+ [BZ #10140]
+ * manual/examples/argp-ex1.c: Include <stdlib.h>.
+ * manual/examples/argp-ex2.c: Likewise.
+ * manual/examples/argp-ex3.c: Likewise.
+
2012-02-16 Richard Henderson <rth@xxxxxxxxxx>
* sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
@@ -24,6 +127,7 @@
2012-02-15 Mike Frysinger <vapier@xxxxxxxxxx>
+ [BZ #3335]
* sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
2012-02-15 Roland McGrath <roland@xxxxxxxxxxxxx>
Modified: fsf/trunk/libc/NEWS
==============================================================================
--- fsf/trunk/libc/NEWS (original)
+++ fsf/trunk/libc/NEWS Sat Feb 18 00:01:33 2012
@@ -9,8 +9,9 @@
* The following bugs are resolved with this release:
- 411, 13525, 13526, 13527, 13528, 13529, 13531, 13532, 13533, 13547, 13530,
- 13551, 13552, 13553, 13555, 13559, 13583, 13618
+ 174, 350, 411, 3335, 4026, 4822, 5077, 5805, 6884, 6907, 9902, 10140,
+ 10210, 11494, 12047, 13525, 13526, 13527, 13528, 13529, 13530, 13531,
+ 13532, 13533, 13547, 13551, 13552, 13553, 13555, 13559, 13583, 13618
* ISO C11 support:
Modified: fsf/trunk/libc/manual/arith.texi
==============================================================================
--- fsf/trunk/libc/manual/arith.texi (original)
+++ fsf/trunk/libc/manual/arith.texi Sat Feb 18 00:01:33 2012
@@ -1264,26 +1264,26 @@
@comment math.h
@comment BSD
-@deftypefun {long long int} scalbn (double @var{x}, int n)
-@comment math.h
-@comment BSD
-@deftypefunx {long long int} scalbnf (float @var{x}, int n)
-@comment math.h
-@comment BSD
-@deftypefunx {long long int} scalbnl (long double @var{x}, int n)
+@deftypefun {long long int} scalbn (double @var{x}, int @var{n})
+@comment math.h
+@comment BSD
+@deftypefunx {long long int} scalbnf (float @var{x}, int @var{n})
+@comment math.h
+@comment BSD
+@deftypefunx {long long int} scalbnl (long double @var{x}, int @var{n})
@code{scalbn} is identical to @code{scalb}, except that the exponent
@var{n} is an @code{int} instead of a floating-point number.
@end deftypefun
@comment math.h
@comment BSD
-@deftypefun {long long int} scalbln (double @var{x}, long int n)
-@comment math.h
-@comment BSD
-@deftypefunx {long long int} scalblnf (float @var{x}, long int n)
-@comment math.h
-@comment BSD
-@deftypefunx {long long int} scalblnl (long double @var{x}, long int n)
+@deftypefun {long long int} scalbln (double @var{x}, long int @var{n})
+@comment math.h
+@comment BSD
+@deftypefunx {long long int} scalblnf (float @var{x}, long int @var{n})
+@comment math.h
+@comment BSD
+@deftypefunx {long long int} scalblnl (long double @var{x}, long int @var{n})
@code{scalbln} is identical to @code{scalb}, except that the exponent
@var{n} is a @code{long int} instead of a floating-point number.
@end deftypefun
Modified: fsf/trunk/libc/manual/charset.texi
==============================================================================
--- fsf/trunk/libc/manual/charset.texi (original)
+++ fsf/trunk/libc/manual/charset.texi Sat Feb 18 00:01:33 2012
@@ -1541,7 +1541,7 @@
category, one has to change the @code{LC_CTYPE} locale using
@code{setlocale}.
-Changing the @code{LC_TYPE} locale introduces major problems for the rest
+Changing the @code{LC_CTYPE} locale introduces major problems for the rest
of the programs since several more functions (e.g., the character
classification functions, @pxref{Classification of Characters}) use the
@code{LC_CTYPE} category.
Modified: fsf/trunk/libc/manual/errno.texi
==============================================================================
--- fsf/trunk/libc/manual/errno.texi (original)
+++ fsf/trunk/libc/manual/errno.texi Sat Feb 18 00:01:33 2012
@@ -1585,7 +1585,7 @@
@comment err.h
@comment BSD
-@deftypefun void vwarn (const char *@var{format}, va_list)
+@deftypefun void vwarn (const char *@var{format}, va_list @var{ap})
The @code{vwarn} function is just like @code{warn} except that the
parameters for the handling of the format string @var{format} are passed
in as an value of type @code{va_list}.
@@ -1606,7 +1606,7 @@
@comment err.h
@comment BSD
-@deftypefun void vwarnx (const char *@var{format}, va_list)
+@deftypefun void vwarnx (const char *@var{format}, va_list @var{ap})
The @code{vwarnx} function is just like @code{warnx} except that the
parameters for the handling of the format string @var{format} are passed
in as an value of type @code{va_list}.
@@ -1626,7 +1626,7 @@
@comment err.h
@comment BSD
-@deftypefun void verr (int @var{status}, const char *@var{format}, va_list)
+@deftypefun void verr (int @var{status}, const char *@var{format}, va_list @var{ap})
The @code{verr} function is just like @code{err} except that the
parameters for the handling of the format string @var{format} are passed
in as an value of type @code{va_list}.
@@ -1648,7 +1648,7 @@
@comment err.h
@comment BSD
-@deftypefun void verrx (int @var{status}, const char *@var{format}, va_list)
+@deftypefun void verrx (int @var{status}, const char *@var{format}, va_list @var{ap})
The @code{verrx} function is just like @code{errx} except that the
parameters for the handling of the format string @var{format} are passed
in as an value of type @code{va_list}.
Modified: fsf/trunk/libc/manual/examples/argp-ex1.c
==============================================================================
--- fsf/trunk/libc/manual/examples/argp-ex1.c (original)
+++ fsf/trunk/libc/manual/examples/argp-ex1.c Sat Feb 18 00:01:33 2012
@@ -5,6 +5,7 @@
messages and exit when there are any arguments, and print
a (rather pointless) messages for --help. */
+#include <stdlib.h>
#include <argp.h>
int main (int argc, char **argv)
Modified: fsf/trunk/libc/manual/examples/argp-ex2.c
==============================================================================
--- fsf/trunk/libc/manual/examples/argp-ex2.c (original)
+++ fsf/trunk/libc/manual/examples/argp-ex2.c Sat Feb 18 00:01:33 2012
@@ -19,6 +19,7 @@
for a given program, even if it uses different argument
parsers for various tasks). */
+#include <stdlib.h>
#include <argp.h>
const char *argp_program_version =
Modified: fsf/trunk/libc/manual/examples/argp-ex3.c
==============================================================================
--- fsf/trunk/libc/manual/examples/argp-ex3.c (original)
+++ fsf/trunk/libc/manual/examples/argp-ex3.c Sat Feb 18 00:01:33 2012
@@ -52,6 +52,7 @@
An options vector should be terminated by an option with all fields zero. */
+#include <stdlib.h>
#include <argp.h>
const char *argp_program_version =
Modified: fsf/trunk/libc/manual/filesys.texi
==============================================================================
--- fsf/trunk/libc/manual/filesys.texi (original)
+++ fsf/trunk/libc/manual/filesys.texi Sat Feb 18 00:01:33 2012
@@ -582,7 +582,7 @@
@comment dirent.h
@comment BSD
-@deftypefun long int telldir (DIR *@var{dirstream})
+@deftypefun {long int} telldir (DIR *@var{dirstream})
The @code{telldir} function returns the file position of the directory
stream @var{dirstream}. You can use this value with @code{seekdir} to
restore the directory stream to that position.
Modified: fsf/trunk/libc/manual/lang.texi
==============================================================================
--- fsf/trunk/libc/manual/lang.texi (original)
+++ fsf/trunk/libc/manual/lang.texi Sat Feb 18 00:01:33 2012
@@ -1202,8 +1202,8 @@
@comment ISO
@item FLT_EPSILON
-This is the minimum positive floating point number of type @code{float}
-such that @code{1.0 + FLT_EPSILON != 1.0} is true. It's supposed to
+This is the difference between 1 and the smallest floating point
+number of type @code{float} that is greater than 1. It's supposed to
be no greater than @code{1E-5}.
@comment float.h
Modified: fsf/trunk/libc/manual/llio.texi
==============================================================================
--- fsf/trunk/libc/manual/llio.texi (original)
+++ fsf/trunk/libc/manual/llio.texi Sat Feb 18 00:01:33 2012
@@ -1161,7 +1161,7 @@
@comment sys/mman.h
@comment POSIX
-@deftypefun {void *} mmap (void *@var{address}, size_t @var{length},int @var{protect}, int @var{flags}, int @var{filedes}, off_t @var{offset})
+@deftypefun {void *} mmap (void *@var{address}, size_t @var{length}, int @var{protect}, int @var{flags}, int @var{filedes}, off_t @var{offset})
The @code{mmap} function creates a new mapping, connected to bytes
(@var{offset}) to (@var{offset} + @var{length} - 1) in the file open on
@@ -1280,7 +1280,7 @@
@comment sys/mman.h
@comment LFS
-@deftypefun {void *} mmap64 (void *@var{address}, size_t @var{length},int @var{protect}, int @var{flags}, int @var{filedes}, off64_t @var{offset})
+@deftypefun {void *} mmap64 (void *@var{address}, size_t @var{length}, int @var{protect}, int @var{flags}, int @var{filedes}, off64_t @var{offset})
The @code{mmap64} function is equivalent to the @code{mmap} function but
the @var{offset} parameter is of type @code{off64_t}. On 32-bit systems
this allows the file associated with the @var{filedes} descriptor to be
Modified: fsf/trunk/libc/manual/locale.texi
==============================================================================
--- fsf/trunk/libc/manual/locale.texi (original)
+++ fsf/trunk/libc/manual/locale.texi Sat Feb 18 00:01:33 2012
@@ -278,6 +278,16 @@
If you specify an invalid locale name, @code{setlocale} returns a null
pointer and leaves the current locale unchanged.
@end deftypefun
+
+The path used for finding locale data can be set using the
+@code{LOCPATH} environment variable. The default path for finding
+locale data is system specific. It is computed from the value given
+as the prefix while configuring the C library. This value normally is
+@file{/usr} or @file{/}. For the former the complete path is:
+
+@smallexample
+/usr/lib/locale
+@end smallexample
Here is an example showing how you might use @code{setlocale} to
temporarily switch to a new locale.
Modified: fsf/trunk/libc/manual/math.texi
==============================================================================
--- fsf/trunk/libc/manual/math.texi (original)
+++ fsf/trunk/libc/manual/math.texi Sat Feb 18 00:01:33 2012
@@ -1148,13 +1148,13 @@
@comment math.h
@comment SVID
-@deftypefun double jn (int n, double @var{x})
-@comment math.h
-@comment SVID
-@deftypefunx float jnf (int n, float @var{x})
-@comment math.h
-@comment SVID
-@deftypefunx {long double} jnl (int n, long double @var{x})
+@deftypefun double jn (int @var{n}, double @var{x})
+@comment math.h
+@comment SVID
+@deftypefunx float jnf (int @var{n}, float @var{x})
+@comment math.h
+@comment SVID
+@deftypefunx {long double} jnl (int @var{n}, long double @var{x})
@code{jn} returns the Bessel function of the first kind of order
@var{n} of @var{x}. It may signal underflow if @var{x} is too large.
@end deftypefun
@@ -1191,13 +1191,13 @@
@comment math.h
@comment SVID
-@deftypefun double yn (int n, double @var{x})
-@comment math.h
-@comment SVID
-@deftypefunx float ynf (int n, float @var{x})
-@comment math.h
-@comment SVID
-@deftypefunx {long double} ynl (int n, long double @var{x})
+@deftypefun double yn (int @var{n}, double @var{x})
+@comment math.h
+@comment SVID
+@deftypefunx float ynf (int @var{n}, float @var{x})
+@comment math.h
+@comment SVID
+@deftypefunx {long double} ynl (int @var{n}, long double @var{x})
@code{yn} returns the Bessel function of the second kind of order @var{n} of
@var{x}. It may signal underflow if @var{x} is too large. If @var{x}
is negative, @code{yn} signals a domain error; if it is zero,
Modified: fsf/trunk/libc/manual/memory.texi
==============================================================================
--- fsf/trunk/libc/manual/memory.texi (original)
+++ fsf/trunk/libc/manual/memory.texi Sat Feb 18 00:01:33 2012
@@ -2168,7 +2168,7 @@
@comment stdlib.h
@comment GNU, BSD
-@deftypefun {void *} alloca (size_t @var{size});
+@deftypefun {void *} alloca (size_t @var{size})
The return value of @code{alloca} is the address of a block of @var{size}
bytes of memory, allocated in the stack frame of the calling function.
@end deftypefun
Modified: fsf/trunk/libc/manual/process.texi
==============================================================================
--- fsf/trunk/libc/manual/process.texi (original)
+++ fsf/trunk/libc/manual/process.texi Sat Feb 18 00:01:33 2012
@@ -321,7 +321,7 @@
@comment unistd.h
@comment POSIX.1
-@deftypefun int execle (const char *@var{filename}, const char *@var{arg0}, char *const @var{env}@t{[]}, @dots{})
+@deftypefun int execle (const char *@var{filename}, const char *@var{arg0}, @dots{}, char *const @var{env}@t{[]})
This is similar to @code{execl}, but permits you to specify the
environment for the new program explicitly. The environment argument is
passed following the null pointer that marks the last @var{argv}
Modified: fsf/trunk/libc/manual/resource.texi
==============================================================================
--- fsf/trunk/libc/manual/resource.texi (original)
+++ fsf/trunk/libc/manual/resource.texi Sat Feb 18 00:01:33 2012
@@ -436,7 +436,7 @@
@comment ulimit.h
@comment BSD
-@deftypefun int ulimit (int @var{cmd}, ...)
+@deftypefun int ulimit (int @var{cmd}, @dots{})
@code{ulimit} gets the current limit or sets the current and maximum
limit for a particular resource for the calling process according to the
@@ -925,7 +925,7 @@
@comment sched.h
@comment POSIX
-@deftypefun int sched_get_priority_min (int *@var{policy});
+@deftypefun int sched_get_priority_min (int *@var{policy})
This function returns the lowest absolute priority value that is
allowable for a process with scheduling policy @var{policy}.
@@ -945,7 +945,7 @@
@comment sched.h
@comment POSIX
-@deftypefun int sched_get_priority_max (int *@var{policy});
+@deftypefun int sched_get_priority_max (int *@var{policy})
This function returns the highest absolute priority value that is
allowable for a process that with scheduling policy @var{policy}.
Modified: fsf/trunk/libc/manual/signal.texi
==============================================================================
--- fsf/trunk/libc/manual/signal.texi (original)
+++ fsf/trunk/libc/manual/signal.texi Sat Feb 18 00:01:33 2012
@@ -3300,7 +3300,7 @@
@comment signal.h
@comment BSD
-@deftypefun int sigvec (int @var{signum}, const struct sigvec *@var{action},struct sigvec *@var{old-action})
+@deftypefun int sigvec (int @var{signum}, const struct sigvec *@var{action}, struct sigvec *@var{old-action})
This function is the equivalent of @code{sigaction} (@pxref{Advanced Signal
Handling}); it installs the action @var{action} for the signal @var{signum},
returning information about the previous action in effect for that signal
Modified: fsf/trunk/libc/manual/socket.texi
==============================================================================
--- fsf/trunk/libc/manual/socket.texi (original)
+++ fsf/trunk/libc/manual/socket.texi Sat Feb 18 00:01:33 2012
@@ -500,14 +500,14 @@
@comment net/if.h
@comment IPv6 basic API
-@deftypefun {unsigned int} if_nametoindex (const char *ifname)
+@deftypefun {unsigned int} if_nametoindex (const char *@var{ifname})
This function yields the interface index corresponding to a particular
name. If no interface exists with the name given, it returns 0.
@end deftypefun
@comment net/if.h
@comment IPv6 basic API
-@deftypefun {char *} if_indextoname (unsigned int ifindex, char *ifname)
+@deftypefun {char *} if_indextoname (unsigned int @var{ifindex}, char *@var{ifname})
This function maps an interface index to its corresponding name. The
returned name is placed in the buffer pointed to by @code{ifname}, which
must be at least @code{IFNAMSIZ} bytes in length. If the index was
@@ -545,7 +545,7 @@
@comment net/if.h
@comment IPv6 basic API
-@deftypefun void if_freenameindex (struct if_nameindex *ptr)
+@deftypefun void if_freenameindex (struct if_nameindex *@var{ptr})
This function frees the structure returned by an earlier call to
@code{if_nameindex}.
@end deftypefun
@@ -2643,7 +2643,7 @@
@comment sys/socket.h
@comment BSD
-@deftypefun int sendto (int @var{socket}, void *@var{buffer}. size_t @var{size}, int @var{flags}, struct sockaddr *@var{addr}, socklen_t @var{length})
+@deftypefun int sendto (int @var{socket}, void *@var{buffer}, size_t @var{size}, int @var{flags}, struct sockaddr *@var{addr}, socklen_t @var{length})
The @code{sendto} function transmits the data in the @var{buffer}
through the socket @var{socket} to the destination address specified
by the @var{addr} and @var{length} arguments. The @var{size} argument
Modified: fsf/trunk/libc/manual/startup.texi
==============================================================================
--- fsf/trunk/libc/manual/startup.texi (original)
+++ fsf/trunk/libc/manual/startup.texi Sat Feb 18 00:01:33 2012
@@ -625,7 +625,7 @@
@comment unistd.h
@comment ???
-@deftypefun {long int} syscall (long int @var{sysno}, ...)
+@deftypefun {long int} syscall (long int @var{sysno}, @dots{})
@code{syscall} performs a generic system call.
@@ -828,7 +828,7 @@
@end deftypevr
Don't confuse a program's exit status with a process' termination status.
-There are lots of ways a process can terminate besides having it's program
+There are lots of ways a process can terminate besides having its program
finish. In the event that the process termination @emph{is} caused by program
termination (i.e., @code{exit}), though, the program's exit status becomes
part of the process' termination status.
Modified: fsf/trunk/libc/manual/stdio.texi
==============================================================================
--- fsf/trunk/libc/manual/stdio.texi (original)
+++ fsf/trunk/libc/manual/stdio.texi Sat Feb 18 00:01:33 2012
@@ -215,8 +215,8 @@
If the @var{opentype} string contains the sequence
@code{,ccs=@var{STRING}} then @var{STRING} is taken as the name of a
coded character set and @code{fopen} will mark the stream as
-wide-oriented which appropriate conversion functions in place to convert
-from and to the character set @var{STRING} is place. Any other stream
+wide-oriented with appropriate conversion functions in place to convert
+from and to the character set @var{STRING}. Any other stream
is opened initially unoriented and the orientation is decided with the
first file operation. If the first operation is a wide character
operation, the stream is not only marked as wide-oriented, also the
@@ -4750,7 +4750,8 @@
@comment stdio_ext.h
@comment GNU
-@deftypefun size_t __fpending (FILE *@var{stream}) The @code{__fpending}
+@deftypefun size_t __fpending (FILE *@var{stream})
+The @code{__fpending}
function returns the number of bytes currently in the output buffer.
For wide-oriented stream the measuring unit is wide characters. This
function should not be used on buffers in read mode or opened read-only.
Modified: fsf/trunk/libc/manual/string.texi
==============================================================================
--- fsf/trunk/libc/manual/string.texi (original)
+++ fsf/trunk/libc/manual/string.texi Sat Feb 18 00:01:33 2012
@@ -1647,9 +1647,12 @@
The terminating null character is considered to be part of the string,
so you can use this function get a pointer to the end of a string by
-specifying a null character as the value of the @var{c} argument. It
-would be better (but less portable) to use @code{strchrnul} in this
-case, though.
+specifying a null character as the value of the @var{c} argument.
+
+When @code{strchr} returns a null pointer, it does not let you know
+the position of the terminating null character it has found. If you
+need that information, it is better (but less portable) to use
+@code{strchrnul} than to search for it a second time.
@end deftypefun
@comment wchar.h
Modified: fsf/trunk/libc/manual/syslog.texi
==============================================================================
--- fsf/trunk/libc/manual/syslog.texi (original)
+++ fsf/trunk/libc/manual/syslog.texi Sat Feb 18 00:01:33 2012
@@ -275,7 +275,7 @@
@c syslog() is implemented as a call to vsyslog().
@comment syslog.h
@comment BSD
-@deftypefun void syslog (int @var{facility_priority}, char *@var{format}, ...)
+@deftypefun void syslog (int @var{facility_priority}, char *@var{format}, @dots{})
@code{syslog} submits a message to the Syslog facility. It does this by
writing to the Unix domain socket @code{/dev/log}.
@@ -403,7 +403,7 @@
@comment syslog.h
@comment BSD
-@deftypefun void vsyslog (int @var{facility_priority}, char *@var{format}, va_list arglist)
+@deftypefun void vsyslog (int @var{facility_priority}, char *@var{format}, va_list @var{arglist})
This is functionally identical to @code{syslog}, with the BSD style variable
length argument.
Modified: fsf/trunk/libc/manual/terminal.texi
==============================================================================
--- fsf/trunk/libc/manual/terminal.texi (original)
+++ fsf/trunk/libc/manual/terminal.texi Sat Feb 18 00:01:33 2012
@@ -1679,7 +1679,7 @@
@comment sgtty.h
@comment BSD
-@deftypefun int stty (int @var{filedes}, struct sgttyb * attributes)
+@deftypefun int stty (int @var{filedes}, struct sgttyb *@var{attributes})
This function sets the attributes of a terminal.
Modified: fsf/trunk/libc/manual/users.texi
==============================================================================
--- fsf/trunk/libc/manual/users.texi (original)
+++ fsf/trunk/libc/manual/users.texi Sat Feb 18 00:01:33 2012
@@ -1390,7 +1390,7 @@
@comment utmpx.h
@comment utmp.h
@comment GNU
-@deftypefun int getutmp (const struct utmpx *utmpx, struct utmp *utmp)
+@deftypefun int getutmp (const struct utmpx *@var{utmpx}, struct utmp *@var{utmp})
@code{getutmp} copies the information, insofar as the structures are
compatible, from @var{utmpx} to @var{utmp}.
@end deftypefun
@@ -1398,7 +1398,7 @@
@comment utmpx.h
@comment utmp.h
@comment GNU
-@deftypefun int getutmpx (const struct utmp *utmp, struct utmpx *utmpx)
+@deftypefun int getutmpx (const struct utmp *@var{utmp}, struct utmpx *@var{utmpx})
@code{getutmpx} copies the information, insofar as the structures are
compatible, from @var{utmp} to @var{utmpx}.
@end deftypefun
Modified: fsf/trunk/libc/sysdeps/mach/hurd/malloc-machine.h
==============================================================================
--- fsf/trunk/libc/sysdeps/mach/hurd/malloc-machine.h (original)
+++ fsf/trunk/libc/sysdeps/mach/hurd/malloc-machine.h Sat Feb 18 00:01:33 2012
@@ -63,8 +63,11 @@
#define tsd_getspecific(key, vptr) ((vptr) = __libc_tsd_get (void *, MALLOC))
/* madvise is a stub on Hurd, so don't bother calling it. */
+
+#include <sys/mman.h>
+
#undef madvise
-#define madvise(addr, len, advice) ((void) ((addr), (len), (advice)))
+#define madvise(addr, len, advice) ((void) (addr), (void) (len), (void) (advice))
#include <sysdeps/generic/malloc-machine.h>
Modified: fsf/trunk/libc/sysdeps/unix/sysv/linux/clock_settime.c
==============================================================================
--- fsf/trunk/libc/sysdeps/unix/sysv/linux/clock_settime.c (original)
+++ fsf/trunk/libc/sysdeps/unix/sysv/linux/clock_settime.c Sat Feb 18 00:01:33 2012
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003, 2004, 2006, 2010 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2004, 2006, 2010, 2012 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
@@ -17,6 +17,7 @@
#include <errno.h>
#include <sysdep.h>
+#include <time.h>
#include "kernel-posix-cpu-timers.h"
#include <kernel-features.h>
_______________________________________________
Commits mailing list
Commits@xxxxxxxxxx
http://eglibc.org/cgi-bin/mailman/listinfo/commits