Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-12-12 20:21:08 +0300
committerJeff Johnston <jjohnstn@redhat.com>2008-12-12 20:21:08 +0300
commitc43663737c91a02d428c3a6e37b89a94f74cd5c2 (patch)
tree4e0f11508913a9979acb188bc50cfd181cf49923
parentdb48463a7fdf1c0c008104116b17b76614a5e031 (diff)
2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
* libc/stdio/fputws.c: Fix documentation. * libc/stdio/getwchar.c: Ditto. * libc/stdio/putwchar.c: Ditto.
-rw-r--r--newlib/ChangeLog6
-rw-r--r--newlib/libc/stdio/fputws.c2
-rw-r--r--newlib/libc/stdio/getwchar.c6
-rw-r--r--newlib/libc/stdio/putwchar.c2
4 files changed, 11 insertions, 5 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 6e96fa7b4..7b84b99f4 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,5 +1,11 @@
2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
+ * libc/stdio/fputws.c: Fix documentation.
+ * libc/stdio/getwchar.c: Ditto.
+ * libc/stdio/putwchar.c: Ditto.
+
+2008-12-12 Ralf Corsepius <ralf.corsepius@rtems.org>
+
* libc/include/sys/features.h: Set RTEMS's _POSIX_MONOTONIC_CLOCK to
200112L (SUSv3 compliance).
Comment out RTEMS's _POSIX_SHARED_MEMORY_OBJECTS (Unsupported).
diff --git a/newlib/libc/stdio/fputws.c b/newlib/libc/stdio/fputws.c
index 596081806..b8e5d1e0b 100644
--- a/newlib/libc/stdio/fputws.c
+++ b/newlib/libc/stdio/fputws.c
@@ -26,7 +26,7 @@
/*
FUNCTION
-<<fputs>>---write a wide character string in a file or stream
+<<fputws>>---write a wide character string in a file or stream
INDEX
fputws
diff --git a/newlib/libc/stdio/getwchar.c b/newlib/libc/stdio/getwchar.c
index c55bf1b83..f559c7677 100644
--- a/newlib/libc/stdio/getwchar.c
+++ b/newlib/libc/stdio/getwchar.c
@@ -56,11 +56,11 @@ The alternate function <<_getwchar_r>> is a reentrant version. The
extra argument <[reent]> is a pointer to a reentrancy structure.
RETURNS
-The next wide character cast to <<wint_t>>), unless there is no more
+The next wide character cast to <<wint_t>>, unless there is no more
data, or the host system reports a read error; in either of these
-situations, <<getwchar>> returns <<EOF>>.
+situations, <<getwchar>> returns <<WEOF>>.
-You can distinguish the two situations that cause an <<EOF>> result by
+You can distinguish the two situations that cause an <<WEOF>> result by
using `<<ferror(stdin)>>' and `<<feof(stdin)>>'.
PORTABILITY
diff --git a/newlib/libc/stdio/putwchar.c b/newlib/libc/stdio/putwchar.c
index 12c9f09cc..fcb0a7dba 100644
--- a/newlib/libc/stdio/putwchar.c
+++ b/newlib/libc/stdio/putwchar.c
@@ -49,7 +49,7 @@ TRAD_SYNOPSIS
wchar_t <[wc]>;
DESCRIPTION
-The <<putwchar(>> function or macro is the wide-character equivalent of
+The <<putwchar>> function or macro is the wide-character equivalent of
the <<putchar>> function. It writes the wide character wc to stdout.
The alternate function <<_putwchar_r>> is a reentrant version. The