Index: libc/misc/unctrl.c =================================================================== RCS file: /cvs/src/src/newlib/libc/misc/unctrl.c,v retrieving revision 1.2 diff -u -r1.2 unctrl.c --- libc/misc/unctrl.c 30 Aug 2000 18:34:52 -0000 1.2 +++ libc/misc/unctrl.c 11 Oct 2005 20:24:39 -0000 @@ -1,6 +1,6 @@ /* FUNCTION - <>---translate characters to upper case + <>---get printable representation of a character INDEX unctrl Index: libc/signal/signal.c =================================================================== RCS file: /cvs/src/src/newlib/libc/signal/signal.c,v retrieving revision 1.4 diff -u -r1.4 signal.c --- libc/signal/signal.c 6 Jun 2003 19:57:51 -0000 1.4 +++ libc/signal/signal.c 11 Oct 2005 20:24:39 -0000 @@ -6,21 +6,12 @@ signal INDEX _signal_r -INDEX - raise -INDEX - _raise_r ANSI_SYNOPSIS #include - void ( * signal(int <[sig]>, void(*<[func]>)(int)) )(int); + void (*signal(int <[sig]>, void(*<[func]>)(int))) (int); - void ( * _signal_r(void *<[reent]>, - int <[sig]>, void(*<[func]>)(int)) )(int); - - int raise (int <[sig]>); - - int _raise_r (void *<[reent]>, int <[sig]>); + void (*_signal_r(void *<[reent]>, int <[sig]>, void(*<[func]>)(int))) (int); TRAD_SYNOPSIS #include @@ -33,15 +24,8 @@ int <[sig]>; char ( * <[func]> )(); - int raise (<[sig]>)() - int <[sig]>; - - int _raise_r (<[reent]>, <[sig]>)() - char *<[reent]>; - int <[sig]>; - DESCRIPTION -<> provide a simple signal/raise implementation for embedded +<> provides a simple signal-handling implementation for embedded targets. <> allows you to request changed treatment for a particular @@ -52,7 +36,7 @@ Some of the execution environment for signal handlers is unpredictable; notably, the only library function required to work -correctly from within a signal handler is @code{signal} itself, and +correctly from within a signal handler is <> itself, and only when used to redefine the handler for the current signal value. Static storage is likewise unreliable for signal handlers, with one @@ -66,13 +50,9 @@ itself, or by an external event). Signal handlers can also use functions such as <> and <> to avoid returning. -<> sends the signal sig to the executing program. It returns zero if -successful, non-zero if unsuccessful. - -The alternate functions <<_signal_r, _raise_r>> are the reentrant versions. +The alternate function <<_signal_r>> is the reentrant version. The extra argument <[reent]> is a pointer to a reentrancy structure. - @c FIXME: do we have setjmp.h and assoc fns? RETURNS @@ -83,7 +63,7 @@ one of the predefined macros). PORTABILITY -ANSI C requires <>, <>. +ANSI C requires <>. No supporting OS subroutines are required to link with <>, but it will not have any useful effects, except for software generated signals, Index: libc/stdio/getdelim.c =================================================================== RCS file: /cvs/src/src/newlib/libc/stdio/getdelim.c,v retrieving revision 1.4 diff -u -r1.4 getdelim.c --- libc/stdio/getdelim.c 8 Feb 2005 01:33:17 -0000 1.4 +++ libc/stdio/getdelim.c 11 Oct 2005 20:24:39 -0000 @@ -1,7 +1,7 @@ /* Copyright 2002, Red Hat Inc. - all rights reserved */ /* FUNCTION -<>---read a line up to a specified line delimeter +<>---read a line up to a specified line delimiter INDEX getdelim @@ -21,16 +21,16 @@ DESCRIPTION <> reads a file <[fp]> up to and possibly including a specified -delimeter <[delim]>. The line is read into a buffer pointed to +delimiter <[delim]>. The line is read into a buffer pointed to by <[bufptr]> and designated with size *<[n]>. If the buffer is not large enough, it will be dynamically grown by <>. As the buffer is grown, the pointer to the size <[n]> will be updated. RETURNS -<> returns <<-1>> if no characters were successfully read, +<> returns <<-1>> if no characters were successfully read; otherwise, it returns the number of bytes successfully read. -at end of file, the result is nonzero. +At end of file, the result is nonzero. PORTABILITY <> is a glibc extension. Index: libc/stdio/getw.c =================================================================== RCS file: /cvs/src/src/newlib/libc/stdio/getw.c,v retrieving revision 1.2 diff -u -r1.2 getw.c --- libc/stdio/getw.c 23 Apr 2004 20:01:55 -0000 1.2 +++ libc/stdio/getw.c 11 Oct 2005 20:24:39 -0000 @@ -37,14 +37,15 @@ a side effect, <> advances the file's current position indicator. -RETURNS The next word (read as an <>), unless there is no more -data, or the host system reports a read error; in either of these +RETURNS +The next word (read as an <>), unless there is no more +data or the host system reports a read error; in either of these situations, <> returns <>. Since <> is a valid <>, you must use <> or <> to distinguish these situations. PORTABILITY -<> is a remnant of K&R C, it is not part of any ISO C Standard. +<> is a remnant of K&R C; it is not part of any ISO C Standard. <> should be used instead. In fact, this implementation of <> is based upon <>. Index: libc/stdio/putw.c =================================================================== RCS file: /cvs/src/src/newlib/libc/stdio/putw.c,v retrieving revision 1.3 diff -u -r1.3 putw.c --- libc/stdio/putw.c 23 Apr 2004 20:01:55 -0000 1.3 +++ libc/stdio/putw.c 11 Oct 2005 20:24:39 -0000 @@ -37,10 +37,11 @@ to write a word to the file or stream identified by <[fp]>. As a side effect, <> advances the file's current position indicator. -RETURNS Zero on success, <> on failure. +RETURNS +Zero on success, <> on failure. PORTABILITY -<> is a remnant of K&R C, it is not part of any ISO C Standard. +<> is a remnant of K&R C; it is not part of any ISO C Standard. <> should be used instead. In fact, this implementation of <> is based upon <>. Index: libc/stdlib/a64l.c =================================================================== RCS file: /cvs/src/src/newlib/libc/stdlib/a64l.c,v retrieving revision 1.2 diff -u -r1.2 a64l.c --- libc/stdlib/a64l.c 8 Jan 2004 19:33:13 -0000 1.2 +++ libc/stdlib/a64l.c 11 Oct 2005 20:24:39 -0000 @@ -1,6 +1,6 @@ /* FUNCTION -<>,<>---convert between radix-64 ascii string and long +<>, <>---convert between radix-64 ASCII string and long INDEX a64l @@ -21,31 +21,36 @@ long <[input]>; DESCRIPTION -Conversion is performed between long and radix-64 characters. The <> routine -transforms up to 32-bits of input value starting from least significant bits to -the most significant bits. The input value is split up into a maximum of 5 -groups of 6-bits and possibly one group of 2 bits (bits 31 and 30). - -Each group of 6 bits forms a value from 0-63 which is translated into a character -as follows: - - 0 = '.' - 1 = '/' - 2-11 = '0' to '9' - 12-37 = 'A' to 'Z' - 38-63 = 'a' to 'z' - -When remaining bits are zero or all bits have been translated, a nul terminator -is appended to the string. An input value of 0 results in the empty string. - -The <> performs the reverse translation. Each character is used to generate -a 6-bit value for up to 30 bits and then a 2-bit value to complete a 32-bit result. -The nul terminator means that the remaining digits are 0. An empty input string or -NULL string results in 0L. An invalid string results in undefined behavior. -If the size of a long is > 32 bits, the result is sign-extended. - +Conversion is performed between long and radix-64 characters. The +<> routine transforms up to 32 bits of input value starting from +least significant bits to the most significant bits. The input value +is split up into a maximum of 5 groups of 6 bits and possibly one +group of 2 bits (bits 31 and 30). + +Each group of 6 bits forms a value from 0--63 which is translated into +a character as follows: + +O+ +o 0 = '.' +o 1 = '/' +o 2--11 = '0' to '9' +o 12--37 = 'A' to 'Z' +o 38--63 = 'a' to 'z' +O- + +When the remaining bits are zero or all bits have been translated, a +null terminator is appended to the string. An input value of 0 +results in the empty string. + +The <> function performs the reverse translation. Each +character is used to generate a 6-bit value for up to 30 bits and then +a 2-bit value to complete a 32-bit result. The null terminator means +that the remaining digits are 0. An empty input string or NULL string +results in 0L. An invalid string results in undefined behavior. If +the size of a long is greater than 32 bits, the result is sign-extended. + RETURNS -<> returns a nul-terminated string of 0 to 6 characters. +<> returns a null-terminated string of 0 to 6 characters. <> returns the 32-bit translated value from the input character string. PORTABILITY Index: libc/stdlib/assert.c =================================================================== RCS file: /cvs/src/src/newlib/libc/stdlib/assert.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 assert.c --- libc/stdlib/assert.c 17 Feb 2000 19:39:47 -0000 1.1.1.1 +++ libc/stdlib/assert.c 11 Oct 2005 20:24:39 -0000 @@ -1,6 +1,6 @@ /* FUNCTION -<>---Macro for Debugging Diagnostics +<>---macro for debugging diagnostics INDEX assert Index: libc/stdlib/efgcvt.c =================================================================== RCS file: /cvs/src/src/newlib/libc/stdlib/efgcvt.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 efgcvt.c --- libc/stdlib/efgcvt.c 17 Feb 2000 19:39:47 -0000 1.1.1.1 +++ libc/stdlib/efgcvt.c 11 Oct 2005 20:24:39 -0000 @@ -1,6 +1,6 @@ /* FUNCTION -<>,<>,<>,<>---double or float to string +<>, <>, <>, <>---double or float to string INDEX ecvt Index: libc/stdlib/envlock.c =================================================================== RCS file: /cvs/src/src/newlib/libc/stdlib/envlock.c,v retrieving revision 1.4 diff -u -r1.4 envlock.c --- libc/stdlib/envlock.c 11 Jun 2004 20:37:10 -0000 1.4 +++ libc/stdlib/envlock.c 11 Oct 2005 20:24:39 -0000 @@ -1,6 +1,6 @@ /* FUNCTION -<<__env_lock>>, <<__env_unlock>>--lock environ variable +<<__env_lock>>, <<__env_unlock>>---lock environ variable INDEX __env_lock Index: libc/stdlib/mlock.c =================================================================== RCS file: /cvs/src/src/newlib/libc/stdlib/mlock.c,v retrieving revision 1.4 diff -u -r1.4 mlock.c --- libc/stdlib/mlock.c 11 Jun 2004 20:37:10 -0000 1.4 +++ libc/stdlib/mlock.c 11 Oct 2005 20:24:39 -0000 @@ -1,7 +1,7 @@ #ifndef MALLOC_PROVIDED /* FUNCTION -<<__malloc_lock>>, <<__malloc_unlock>>--lock malloc pool +<<__malloc_lock>>, <<__malloc_unlock>>---lock malloc pool INDEX __malloc_lock Index: libc/stdlib/mstats.c =================================================================== RCS file: /cvs/src/src/newlib/libc/stdlib/mstats.c,v retrieving revision 1.5 diff -u -r1.5 mstats.c --- libc/stdlib/mstats.c 8 Feb 2005 01:33:19 -0000 1.5 +++ libc/stdlib/mstats.c 11 Oct 2005 20:24:39 -0000 @@ -10,7 +10,7 @@ /* FUNCTION -<>, <>, <>--malloc support +<>, <>, <>---malloc support INDEX mallinfo Index: libc/stdlib/rand.c =================================================================== RCS file: /cvs/src/src/newlib/libc/stdlib/rand.c,v retrieving revision 1.4 diff -u -r1.4 rand.c --- libc/stdlib/rand.c 3 Feb 2002 09:24:14 -0000 1.4 +++ libc/stdlib/rand.c 11 Oct 2005 20:24:39 -0000 @@ -51,8 +51,8 @@ <> does not return a result. NOTES -<> and <> are unsafe for multi-thread applications. -<> is MT-Safe and should be used instead. +<> and <> are unsafe for multi-threaded applications. +<> is thread-safe and should be used instead. PORTABILITY Index: libc/stdlib/rand48.c =================================================================== RCS file: /cvs/src/src/newlib/libc/stdlib/rand48.c,v retrieving revision 1.2 diff -u -r1.2 rand48.c --- libc/stdlib/rand48.c 3 Feb 2002 09:24:14 -0000 1.2 +++ libc/stdlib/rand48.c 11 Oct 2005 20:24:39 -0000 @@ -13,7 +13,7 @@ /* FUNCTION - <>, <>, <>, <>, <>, <>, <>, <>, <>, <> ---pseudo random number generators and initialization routines + <>, <>, <>, <>, <>, <>, <>, <>, <>, <>---pseudo-random number generators and initialization routines INDEX rand48 Index: libc/string/bcmp.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/bcmp.c,v retrieving revision 1.2 diff -u -r1.2 bcmp.c --- libc/string/bcmp.c 23 May 2002 18:46:04 -0000 1.2 +++ libc/string/bcmp.c 11 Oct 2005 20:24:39 -0000 @@ -21,8 +21,6 @@ object pointed to by <[s1]> with the object pointed to by <[s2]>. This function is identical to <>. - - RETURNS The function returns an integer greater than, equal to or Index: libc/string/memchr.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/memchr.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 memchr.c --- libc/string/memchr.c 17 Feb 2000 19:39:48 -0000 1.1.1.1 +++ libc/string/memchr.c 11 Oct 2005 20:24:39 -0000 @@ -28,9 +28,9 @@ <[c]> is not found, then <> is returned. PORTABILITY -<>> is ANSI C. +<> is ANSI C. -<> requires no supporting OS subroutines. +<> requires no supporting OS subroutines. QUICKREF memchr ansi pure Index: libc/string/strcspn.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/strcspn.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 strcspn.c --- libc/string/strcspn.c 17 Feb 2000 19:39:48 -0000 1.1.1.1 +++ libc/string/strcspn.c 11 Oct 2005 20:24:39 -0000 @@ -1,6 +1,6 @@ /* FUNCTION - <>---count chars not in string + <>---count characters not in string INDEX strcspn Index: libc/string/strerror_r.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/strerror_r.c,v retrieving revision 1.1 diff -u -r1.1 strerror_r.c --- libc/string/strerror_r.c 24 May 2002 23:44:37 -0000 1.1 +++ libc/string/strerror_r.c 11 Oct 2005 20:24:39 -0000 @@ -30,7 +30,7 @@ not modify that string. PORTABILITY -<> is a gnu extension. +<> is a GNU extension. <> requires no supporting OS subroutines. Index: libc/string/strncat.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/strncat.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 strncat.c --- libc/string/strncat.c 17 Feb 2000 19:39:48 -0000 1.1.1.1 +++ libc/string/strncat.c 11 Oct 2005 20:24:39 -0000 @@ -28,7 +28,6 @@ Note that a null is always appended, so that if the copy is limited by the <[length]> argument, the number of characters appended to <[dst]> is <>. - RETURNS This function returns the initial value of <[dst]> Index: libc/string/strnlen.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/strnlen.c,v retrieving revision 1.1 diff -u -r1.1 strnlen.c --- libc/string/strnlen.c 24 May 2002 23:44:37 -0000 1.1 +++ libc/string/strnlen.c 11 Oct 2005 20:24:39 -0000 @@ -25,7 +25,7 @@ <> returns the character count or <[n]>. PORTABILITY -<> is a Gnu extension. +<> is a GNU extension. <> requires no supporting OS subroutines. Index: libc/string/strpbrk.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/strpbrk.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 strpbrk.c --- libc/string/strpbrk.c 17 Feb 2000 19:39:48 -0000 1.1.1.1 +++ libc/string/strpbrk.c 11 Oct 2005 20:24:39 -0000 @@ -1,6 +1,6 @@ /* FUNCTION - <>---find chars in string + <>---find characters in string INDEX strpbrk Index: libc/string/strtok.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/strtok.c,v retrieving revision 1.5 diff -u -r1.5 strtok.c --- libc/string/strtok.c 24 May 2002 00:13:57 -0000 1.5 +++ libc/string/strtok.c 11 Oct 2005 20:24:39 -0000 @@ -1,6 +1,6 @@ /* FUNCTION - <>,<>,<>---get next token from a string + <>, <>, <>---get next token from a string INDEX strtok @@ -40,25 +40,25 @@ The first time that <> is called, <<*<[source]>>> should be specified; subsequent calls, wishing to obtain further tokens from the same string, should pass a null pointer instead. The separator - string, <<*<[delimiters]>>>, must be supplied each time, and may + string, <<*<[delimiters]>>>, must be supplied each time and may change between calls. The <> function returns a pointer to the beginning of each subsequent token in the string, after replacing the separator - character itself with a NUL character. When no more tokens remain, + character itself with a null character. When no more tokens remain, a null pointer is returned. The <> function has the same behavior as <>, except - a pointer to placeholder <<*[lasts]>> must be supplied by the caller. + a pointer to placeholder <<*<[lasts]>>> must be supplied by the caller. The <> function is similar in behavior to <>, except - a pointer to the string pointer must be supplied <<[source_ptr]>> and - the function does not skip leading delimeters. When the string starts - with a delimeter, the delimeter is changed to the NUL character and + a pointer to the string pointer must be supplied <<<[source_ptr]>>> and + the function does not skip leading delimiters. When the string starts + with a delimiter, the delimiter is changed to the null character and the empty string is returned. Like <> and <>, the - <<*[source_ptr]>> is updated to the next character following the - last delimeter found or NULL if the end of string is reached with - no more delimeters. + <<*<[source_ptr]>>> is updated to the next character following the + last delimiter found or NULL if the end of string is reached with + no more delimiters. RETURNS <>, <>, and <> all return a pointer to the @@ -66,13 +66,13 @@ <>, a token may be the empty string. NOTES - <> is unsafe for multi-thread applications. <> - and <> are MT-Safe and should be used instead. + <> is unsafe for multi-threaded applications. <> + and <> are thread-safe and should be used instead. PORTABILITY <> is ANSI C. <> is POSIX. -<> is a BSD-extension. +<> is a BSD extension. <>, <>, and <> require no supporting OS subroutines. Index: libc/string/wcscat.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcscat.c,v retrieving revision 1.1 diff -u -r1.1 wcscat.c --- libc/string/wcscat.c 29 Aug 2002 19:38:25 -0000 1.1 +++ libc/string/wcscat.c 11 Oct 2005 20:24:39 -0000 @@ -27,6 +27,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wcschr.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcschr.c,v retrieving revision 1.3 diff -u -r1.3 wcschr.c --- libc/string/wcschr.c 17 Mar 2003 17:12:32 -0000 1.3 +++ libc/string/wcschr.c 11 Oct 2005 20:24:39 -0000 @@ -24,6 +24,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wcscmp.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcscmp.c,v retrieving revision 1.2 diff -u -r1.2 wcscmp.c --- libc/string/wcscmp.c 4 Sep 2002 18:16:55 -0000 1.2 +++ libc/string/wcscmp.c 11 Oct 2005 20:24:39 -0000 @@ -26,6 +26,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wcscpy.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcscpy.c,v retrieving revision 1.1 diff -u -r1.1 wcscpy.c --- libc/string/wcscpy.c 29 Aug 2002 19:38:25 -0000 1.1 +++ libc/string/wcscpy.c 11 Oct 2005 20:24:39 -0000 @@ -23,6 +23,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wcscspn.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcscspn.c,v retrieving revision 1.1 diff -u -r1.1 wcscspn.c --- libc/string/wcscspn.c 29 Aug 2002 19:38:25 -0000 1.1 +++ libc/string/wcscspn.c 11 Oct 2005 20:24:39 -0000 @@ -23,6 +23,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wcslen.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcslen.c,v retrieving revision 1.1 diff -u -r1.1 wcslen.c --- libc/string/wcslen.c 29 Aug 2002 19:38:25 -0000 1.1 +++ libc/string/wcslen.c 11 Oct 2005 20:24:39 -0000 @@ -21,6 +21,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wcsncat.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcsncat.c,v retrieving revision 1.1 diff -u -r1.1 wcsncat.c --- libc/string/wcsncat.c 29 Aug 2002 19:38:25 -0000 1.1 +++ libc/string/wcsncat.c 11 Oct 2005 20:24:39 -0000 @@ -29,6 +29,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wcsncmp.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcsncmp.c,v retrieving revision 1.2 diff -u -r1.2 wcsncmp.c --- libc/string/wcsncmp.c 4 Sep 2002 18:16:55 -0000 1.2 +++ libc/string/wcsncmp.c 11 Oct 2005 20:24:39 -0000 @@ -30,6 +30,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wcsncpy.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcsncpy.c,v retrieving revision 1.1 diff -u -r1.1 wcsncpy.c --- libc/string/wcsncpy.c 29 Aug 2002 19:38:25 -0000 1.1 +++ libc/string/wcsncpy.c 11 Oct 2005 20:24:39 -0000 @@ -30,6 +30,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wcsnlen.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcsnlen.c,v retrieving revision 1.1 diff -u -r1.1 wcsnlen.c --- libc/string/wcsnlen.c 23 Oct 2003 18:07:13 -0000 1.1 +++ libc/string/wcsnlen.c 11 Oct 2005 20:24:39 -0000 @@ -27,7 +27,8 @@ characters. PORTABILITY -<> is GNU extension.. +<> is a GNU extension. + <> requires no supporting OS subroutines. */ Index: libc/string/wcspbrk.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcspbrk.c,v retrieving revision 1.2 diff -u -r1.2 wcspbrk.c --- libc/string/wcspbrk.c 3 Sep 2002 19:52:10 -0000 1.2 +++ libc/string/wcspbrk.c 11 Oct 2005 20:24:39 -0000 @@ -23,6 +23,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wcsrchr.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcsrchr.c,v retrieving revision 1.2 diff -u -r1.2 wcsrchr.c --- libc/string/wcsrchr.c 3 Sep 2002 19:52:10 -0000 1.2 +++ libc/string/wcsrchr.c 11 Oct 2005 20:24:39 -0000 @@ -27,6 +27,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wcsspn.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcsspn.c,v retrieving revision 1.2 diff -u -r1.2 wcsspn.c --- libc/string/wcsspn.c 8 Jul 2005 18:28:46 -0000 1.2 +++ libc/string/wcsspn.c 11 Oct 2005 20:24:39 -0000 @@ -23,6 +23,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wcswidth.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcswidth.c,v retrieving revision 1.1 diff -u -r1.1 wcswidth.c --- libc/string/wcswidth.c 9 Apr 2003 10:42:12 -0000 1.1 +++ libc/string/wcswidth.c 11 Oct 2005 20:24:39 -0000 @@ -17,22 +17,22 @@ DESCRIPTION The <> function shall determine the number of column - positions required for n wide-character codes (or fewer than n + positions required for <[n]> wide-character codes (or fewer than <[n]> wide-character codes if a null wide-character code is encountered - before n wide-character codes are exhausted) in the string pointed - to by pwcs. + before <[n]> wide-character codes are exhausted) in the string pointed + to by <[pwcs]>. RETURNS - The <> function either shall return 0 (if pwcs points to a + The <> function either shall return 0 (if <[pwcs]> points to a null wide-character code), or return the number of column positions - to be occupied by the wide-character string pointed to by pwcs, or - return -1 (if any of the first n wide-character codes in the - wide-character string pointed to by pwcs is not a printable + to be occupied by the wide-character string pointed to by <[pwcs]>, or + return -1 (if any of the first <[n]> wide-character codes in the + wide-character string pointed to by <[pwcs]> is not a printable wide-character code). PORTABILITY -<> has been introduced in the Single UNIX Specification Volume 2 -<> has been marked as extension in Single UNIX Specification Volume 3 +<> has been introduced in the Single UNIX Specification Volume 2. +<> has been marked as an extension in the Single UNIX Specification Volume 3. */ #include <_ansi.h> Index: libc/string/wcwidth.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wcwidth.c,v retrieving revision 1.1 diff -u -r1.1 wcwidth.c --- libc/string/wcwidth.c 9 Apr 2003 10:42:12 -0000 1.1 +++ libc/string/wcwidth.c 11 Oct 2005 20:24:39 -0000 @@ -16,15 +16,15 @@ DESCRIPTION The <> function shall determine the number of column - positions required for the wide character wc. The application - shall ensure that the value of wc is a character representable + positions required for the wide character <[wc]>. The application + shall ensure that the value of <[wc]> is a character representable as a wchar_t, and is a wide-character code corresponding to a valid character in the current locale. RETURNS - The <> function shall either return 0 (if wc is a null + The <> function shall either return 0 (if <[wc]> is a null wide-character code), or return the number of column positions to - be occupied by the wide-character code wc, or return -1 (if wc + be occupied by the wide-character code <[wc]>, or return -1 (if <[wc]> does not correspond to a printable wide-character code). The current implementation of <> simply sets the width @@ -32,8 +32,8 @@ tables around. PORTABILITY -<> has been introduced in the Single UNIX Specification Volume 2 -<> has been marked as extension in Single UNIX Specification Volume 3 +<> has been introduced in the Single UNIX Specification Volume 2. +<> has been marked as an extension in the Single UNIX Specification Volume 3. */ #include <_ansi.h> Index: libc/string/wmemchr.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wmemchr.c,v retrieving revision 1.1 diff -u -r1.1 wmemchr.c --- libc/string/wmemchr.c 29 Aug 2002 19:38:25 -0000 1.1 +++ libc/string/wmemchr.c 11 Oct 2005 20:24:39 -0000 @@ -30,6 +30,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wmemcmp.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wmemcmp.c,v retrieving revision 1.1 diff -u -r1.1 wmemcmp.c --- libc/string/wmemcmp.c 29 Aug 2002 19:38:25 -0000 1.1 +++ libc/string/wmemcmp.c 11 Oct 2005 20:24:39 -0000 @@ -30,6 +30,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wmemcpy.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wmemcpy.c,v retrieving revision 1.1 diff -u -r1.1 wmemcpy.c --- libc/string/wmemcpy.c 29 Aug 2002 19:38:25 -0000 1.1 +++ libc/string/wmemcpy.c 11 Oct 2005 20:24:39 -0000 @@ -27,6 +27,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wmemmove.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wmemmove.c,v retrieving revision 1.1 diff -u -r1.1 wmemmove.c --- libc/string/wmemmove.c 29 Aug 2002 19:38:25 -0000 1.1 +++ libc/string/wmemmove.c 11 Oct 2005 20:24:39 -0000 @@ -1,6 +1,6 @@ /* FUNCTION - <>---wmemmove - copy wide-characters in memory with overlapping areas + <>---copy wide characters in memory with overlapping areas ANSI_SYNOPSIS #include @@ -33,6 +33,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/string/wmemset.c =================================================================== RCS file: /cvs/src/src/newlib/libc/string/wmemset.c,v retrieving revision 1.1 diff -u -r1.1 wmemset.c --- libc/string/wmemset.c 29 Aug 2002 19:38:25 -0000 1.1 +++ libc/string/wmemset.c 11 Oct 2005 20:24:39 -0000 @@ -27,6 +27,7 @@ PORTABILITY <> is ISO/IEC 9899/AMD1:1995 (ISO C). + No supporting OS subroutines are required. */ Index: libc/time/tzlock.c =================================================================== RCS file: /cvs/src/src/newlib/libc/time/tzlock.c,v retrieving revision 1.2 diff -u -r1.2 tzlock.c --- libc/time/tzlock.c 16 Sep 2004 21:16:59 -0000 1.2 +++ libc/time/tzlock.c 11 Oct 2005 20:24:39 -0000 @@ -1,6 +1,6 @@ /* FUNCTION -<<__tz_lock>>, <<__tz_unlock>>--lock time zone global variables +<<__tz_lock>>, <<__tz_unlock>>---lock time zone global variables INDEX __tz_lock Index: libm/common/s_modf.c =================================================================== RCS file: /cvs/src/src/newlib/libm/common/s_modf.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 s_modf.c --- libm/common/s_modf.c 17 Feb 2000 19:39:51 -0000 1.1.1.1 +++ libm/common/s_modf.c 11 Oct 2005 20:24:39 -0000 @@ -41,7 +41,7 @@ storing the integer part in <<*<[ipart]>>>. No rounding whatsoever is done; the sum of the integer and fractional parts is guaranteed to be exactly equal to <[val]>. That - is, if . <[realpart]> = modf(<[val]>, &<[intpart]>); then + is, if <[realpart]> = modf(<[val]>, &<[intpart]>); then `<<<[realpart]>+<[intpart]>>>' is the same as <[val]>. <> is identical, save that it takes and returns <> rather than <> values. Index: libm/math/s_isnan.c =================================================================== RCS file: /cvs/src/src/newlib/libm/math/s_isnan.c,v retrieving revision 1.2 diff -u -r1.2 s_isnan.c --- libm/math/s_isnan.c 20 Oct 2003 18:46:37 -0000 1.2 +++ libm/math/s_isnan.c 11 Oct 2005 20:24:39 -0000 @@ -13,7 +13,7 @@ /* FUNCTION - <>,<>,<>,<>,<>,<>---test for exceptional numbers + <>, <>, <>, <>, <>, <>---test for exceptional numbers INDEX isnan @@ -58,14 +58,14 @@ These functions provide information on the floating-point argument supplied. - There are five major number formats - + There are five major number formats: o+ o zero - a number which contains all zero bits. + A number which contains all zero bits. o subnormal - Is used to represent number with a zero exponent, but a nonzero fraction. - o normal - A number with an exponent, and a fraction + A number with a zero exponent but a nonzero fraction. + o normal + A number with an exponent and a fraction. o infinity A number with an all 1's exponent and a zero fraction. o NAN @@ -77,7 +77,7 @@ returns 1 if the argument is infinity. <> returns 1 if the argument is zero, subnormal or normal. - The <>, <> and <> perform the same + The <>, <> and <> functions perform the same operations as their <>, <> and <> counterparts, but on single-precision floating-point numbers. Index: libm/math/s_ldexp.c =================================================================== RCS file: /cvs/src/src/newlib/libm/math/s_ldexp.c,v retrieving revision 1.2 diff -u -r1.2 s_ldexp.c --- libm/math/s_ldexp.c 20 Oct 2003 18:46:37 -0000 1.2 +++ libm/math/s_ldexp.c 11 Oct 2005 20:24:39 -0000 @@ -56,7 +56,7 @@ On overflow, <> returns plus or minus <>. PORTABILITY -<> is ANSI, <> is an extension. +<> is ANSI. <> is an extension. */ Index: libm/math/w_j0.c =================================================================== RCS file: /cvs/src/src/newlib/libm/math/w_j0.c,v retrieving revision 1.2 diff -u -r1.2 w_j0.c --- libm/math/w_j0.c 20 Oct 2003 18:46:37 -0000 1.2 +++ libm/math/w_j0.c 11 Oct 2005 20:24:39 -0000 @@ -13,7 +13,7 @@ /* FUNCTION -<>,<>,<>,<>---Bessel functions +<>, <>, <>, <>---Bessel functions INDEX j0 Index: libm/math/w_log.c =================================================================== RCS file: /cvs/src/src/newlib/libm/math/w_log.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 w_log.c --- libm/math/w_log.c 17 Feb 2000 19:39:51 -0000 1.1.1.1 +++ libm/math/w_log.c 11 Oct 2005 20:24:39 -0000 @@ -49,7 +49,7 @@ <>. PORTABILITY -<> is ANSI, <> is an extension. +<> is ANSI. <> is an extension. */ /* Index: libm/mathfp/s_isnan.c =================================================================== RCS file: /cvs/src/src/newlib/libm/mathfp/s_isnan.c,v retrieving revision 1.2 diff -u -r1.2 s_isnan.c --- libm/mathfp/s_isnan.c 20 Oct 2003 18:46:38 -0000 1.2 +++ libm/mathfp/s_isnan.c 11 Oct 2005 20:24:39 -0000 @@ -3,7 +3,7 @@ /* FUNCTION - <>,<>,<>,<>,<>,<>---test + <>, <>, <>, <>, <>, <>---test for exceptional numbers INDEX @@ -49,15 +49,14 @@ These functions provide information on the floating-point argument supplied. - There are five major number formats - + There are five major number formats: o+ o zero - a number which contains all zero bits. + A number which contains all zero bits. o subnormal - Is used to represent number with a zero exponent, but a nonzero fract -ion. - o normal - A number with an exponent, and a fraction + A number with a zero exponent but a nonzero fraction. + o normal + A number with an exponent and a fraction. o infinity A number with an all 1's exponent and a zero fraction. o NAN @@ -69,7 +68,7 @@ returns 1 if the argument is infinity. <> returns 1 if the argument is zero, subnormal or normal. - The <>, <> and <> perform the same + The <>, <> and <> functions perform the same operations as their <>, <> and <> counterparts, but on single-precision floating-point numbers. Index: libm/mathfp/s_ldexp.c =================================================================== RCS file: /cvs/src/src/newlib/libm/mathfp/s_ldexp.c,v retrieving revision 1.2 diff -u -r1.2 s_ldexp.c --- libm/mathfp/s_ldexp.c 20 Oct 2003 18:46:38 -0000 1.2 +++ libm/mathfp/s_ldexp.c 11 Oct 2005 20:24:39 -0000 @@ -45,7 +45,7 @@ On overflow, <> returns plus or minus <>. PORTABILITY -<> is ANSI, <> is an extension. +<> is ANSI. <> is an extension. */ Index: libm/mathfp/s_logarithm.c =================================================================== RCS file: /cvs/src/src/newlib/libm/mathfp/s_logarithm.c,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 s_logarithm.c --- libm/mathfp/s_logarithm.c 17 Feb 2000 19:39:52 -0000 1.1.1.1 +++ libm/mathfp/s_logarithm.c 11 Oct 2005 20:24:39 -0000 @@ -56,8 +56,9 @@ <>. PORTABILITY -<> is ANSI, <> is an extension. -<> is ANSI, <> is an extension. +<> is ANSI. <> is an extension. + +<> is ANSI. <> is an extension. */ Index: libm/mathfp/w_jn.c =================================================================== RCS file: /cvs/src/src/newlib/libm/mathfp/w_jn.c,v retrieving revision 1.2 diff -u -r1.2 w_jn.c --- libm/mathfp/w_jn.c 20 Oct 2003 18:46:38 -0000 1.2 +++ libm/mathfp/w_jn.c 11 Oct 2005 20:24:39 -0000 @@ -13,7 +13,7 @@ /* FUNCTION -<>,<>,<>,<>---Bessel functions +<>, <>, <>, <>---Bessel functions INDEX j0