aboutsummaryrefslogtreecommitdiff
path: root/newlib
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2008-12-12 17:21:08 +0000
committerJeff Johnston <jjohnstn@redhat.com>2008-12-12 17:21:08 +0000
commitc43663737c91a02d428c3a6e37b89a94f74cd5c2 (patch)
tree4e0f11508913a9979acb188bc50cfd181cf49923 /newlib
parentdb48463a7fdf1c0c008104116b17b76614a5e031 (diff)
downloadnewlib-c43663737c91a02d428c3a6e37b89a94f74cd5c2.zip
newlib-c43663737c91a02d428c3a6e37b89a94f74cd5c2.tar.gz
newlib-c43663737c91a02d428c3a6e37b89a94f74cd5c2.tar.bz2
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.
Diffstat (limited to 'newlib')
-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 6e96fa7..7b84b99 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 5960818..b8e5d1e 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 c55bf1b..f559c76 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 12c9f09..fcb0a7d 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