From 14613e5e74b633aeaa4f69e7ea096074ba94cb1f Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Thu, 16 Sep 2004 21:15:14 +0000 Subject: 2004-09-16 Antony King * libc/ctype/ctype.tex: Added missing documentation. * libc/stdio/stdio.tex Ditto. * libc/stdlib/stdlib.tex Ditto. * libc/string/strings.tex Ditto. * libc/time/time.tex: Ditto. * libc/stdio/setbuffer.c: Removed setlinebuf documentation. --- newlib/ChangeLog | 9 +++++++++ newlib/libc/ctype/ctype.tex | 4 ++++ newlib/libc/stdio/setbuffer.c | 35 ---------------------------------- newlib/libc/stdio/stdio.tex | 43 ++++++++++++++++++++++++++++++++++++++++++ newlib/libc/stdlib/stdlib.tex | 20 ++++++++++++++++++++ newlib/libc/string/strings.tex | 8 ++++++++ newlib/libc/time/time.tex | 4 ++++ 7 files changed, 88 insertions(+), 35 deletions(-) (limited to 'newlib') diff --git a/newlib/ChangeLog b/newlib/ChangeLog index defa90acf..09843bf33 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,12 @@ +2004-09-16 Antony King + + * libc/ctype/ctype.tex: Added missing documentation. + * libc/stdio/stdio.tex Ditto. + * libc/stdlib/stdlib.tex Ditto. + * libc/string/strings.tex Ditto. + * libc/time/time.tex: Ditto. + * libc/stdio/setbuffer.c: Removed setlinebuf documentation. + 2004-09-15 Corinna Vinschen * libc/reent/impure.c (reent_data): Define as alias to impure_data diff --git a/newlib/libc/ctype/ctype.tex b/newlib/libc/ctype/ctype.tex index df398f609..bfdc929f7 100644 --- a/newlib/libc/ctype/ctype.tex +++ b/newlib/libc/ctype/ctype.tex @@ -23,6 +23,7 @@ The header file @file{ctype.h} defines the macros. * toupper:: Translate characters to upper case * iswalnum:: Alphanumeric wide-character predicate * iswalpha:: Alphabetic wide-character predicate +* iswblank:: Blank wide-character predicate * iswcntrl:: Control wide-character predicate * iswdigit:: Decimal digit wide-character predicate * iswgraph:: Graphic wide-character predicate @@ -91,6 +92,9 @@ The header file @file{ctype.h} defines the macros. @page @include ctype/iswcntrl.def +@page +@include ctype/iswblank.def + @page @include ctype/iswdigit.def diff --git a/newlib/libc/stdio/setbuffer.c b/newlib/libc/stdio/setbuffer.c index 4b2e2f62c..e88187446 100644 --- a/newlib/libc/stdio/setbuffer.c +++ b/newlib/libc/stdio/setbuffer.c @@ -63,41 +63,6 @@ RETURNS PORTABILITY This function comes from BSD not ANSI or POSIX. -Supporting OS subroutines required: <>, <>, <>, -<>, <>, <>, <>. - - -FUNCTION -<>---specify line buffering for a file or stream - -INDEX - setlinebuf - -ANSI_SYNOPSIS - #include - void setlinebuf(FILE *<[fp]>); - -TRAD_SYNOPSIS - #include - void setlinebuf(<[fp]>) - FILE *<[fp]>; - -DESCRIPTION -<> specifies that output to the file or stream identified by -<[fp]> should be line buffered. This causes the file or stream to pass -on output to the host system at every newline, as well as when the -buffer is full, or when an input operation intervenes. - -WARNINGS -You may only use <> before performing any file operation -other than opening the file. - -RETURNS -<> returns as per setvbuf. - -PORTABILITY -This function comes from BSD not ANSI or POSIX. - Supporting OS subroutines required: <>, <>, <>, <>, <>, <>, <>. */ diff --git a/newlib/libc/stdio/stdio.tex b/newlib/libc/stdio/stdio.tex index 217aed1ef..728831cd5 100644 --- a/newlib/libc/stdio/stdio.tex +++ b/newlib/libc/stdio/stdio.tex @@ -26,12 +26,14 @@ structure. @menu * clearerr:: Clear file or stream error indicator * fclose:: Close a file +* fcloseall:: Close all files * feof:: Test for end of file * ferror:: Test whether read/write error has occurred * fflush:: Flush buffered file output * fgetc:: Get a character from a file or stream * fgetpos:: Record position in a stream or file * fgets:: Get character string from a file or stream +* fileno:: Get file descriptor associated with stream * fiprintf:: Write formatted output to file (integer only) * fopen:: Open a file * fdopen:: Turn an open file into a stream @@ -44,20 +46,28 @@ structure. * ftell:: Return position in a stream or file * fwrite:: Write array elements from memory to a file or stream * getc:: Get a character from a file or stream (macro) +* getc_unlocked:: Get a character from a file or stream (macro) * getchar:: Get a character from standard input (macro) +* getchar_unlocked:: Get a character from standard input (macro) +* getdelim:: Get character string from a file or stream +* getline:: Get character string from a file or stream * gets:: Get character string from standard input (obsolete) * getw:: Get a word (int) from a file or stream * iprintf:: Write formatted output (integer only) * mktemp:: Generate unused file name * perror:: Print an error message on standard error * putc:: Write a character on a stream or file (macro) +* putc_unlocked:: Write a character on a stream or file (macro) * putchar:: Write a character on standard output (macro) +* putchar_unlocked:: Write a character on standard output (macro) * puts:: Write a character string on standard output * putw:: Write a word (int) to a file or stream * remove:: Delete a file's name * rename:: Rename a file * rewind:: Reinitialize a file or stream * setbuf:: Specify full buffering for a file or stream +* setbuffer:: Specify full buffering for a file or stream with size +* setlinebuf:: Specify line buffering for a file or stream * setvbuf:: Specify buffering for a file or stream * siprintf:: Write formatted output (integer only) * printf:: Write formatted output @@ -65,6 +75,7 @@ structure. * tmpfile:: Create a temporary file * tmpnam:: Generate name for a temporary file * vprintf:: Format variable argument list +* vscanf:: Format variable argument list @end menu @page @@ -73,6 +84,9 @@ structure. @page @include stdio/fclose.def +@page +@include stdio/fcloseall.def + @page @include stdio/feof.def @@ -91,6 +105,9 @@ structure. @page @include stdio/fgets.def +@page +@include stdio/fileno.def + @page @include stdio/fiprintf.def @@ -127,9 +144,21 @@ structure. @page @include stdio/getc.def +@page +@include stdio/getc_u.def + @page @include stdio/getchar.def +@page +@include stdio/getchar_u.def + +@page +@include stdio/getdelim.def + +@page +@include stdio/getline.def + @page @include stdio/gets.def @@ -148,9 +177,15 @@ structure. @page @include stdio/putc.def +@page +@include stdio/putc_u.def + @page @include stdio/putchar.def +@page +@include stdio/putchar_u.def + @page @include stdio/puts.def @@ -169,6 +204,12 @@ structure. @page @include stdio/setbuf.def +@page +@include stdio/setbuffer.def + +@page +@include stdio/setlinebuf.def + @page @include stdio/setvbuf.def @@ -190,3 +231,5 @@ structure. @page @include stdio/vfprintf.def +@page +@include stdio/vfscanf.def diff --git a/newlib/libc/stdlib/stdlib.tex b/newlib/libc/stdlib/stdlib.tex index 39fb915fc..9d19b71a8 100644 --- a/newlib/libc/stdlib/stdlib.tex +++ b/newlib/libc/stdlib/stdlib.tex @@ -5,6 +5,8 @@ This chapter groups utility functions useful in a variety of programs. The corresponding declarations are in the header file @file{stdlib.h}. @menu +* _Exit:: End program execution without cleaning up +* a64l:: String to long long * abort:: Abnormal termination of a program * abs:: Integer absolute value (magnitude) * assert:: Macro for Debugging Diagnostics @@ -30,16 +32,25 @@ The corresponding declarations are in the header file @file{stdlib.h}. * mbstowcs:: Minimal multibyte string to wide string converter * mblen:: Minimal multibyte length * mbtowc:: Minimal multibyte to wide character converter +* on_exit:: Request execution of functions at program exit * rand:: Pseudo-random numbers * rand48:: Uniformly distributed pseudo-random numbers * strtod:: String to double or float * strtol:: String to long +* strtoll:: String to long long * strtoul:: String to unsigned long +* strtoull:: String to unsigned long long * system:: Execute command string * wcstombs:: Minimal wide string to multibyte string converter * wctomb:: Minimal wide character to multibyte converter @end menu +@page +@include stdlib/_Exit.def + +@page +@include stdlib/a64l.def + @page @include stdlib/abort.def @@ -112,6 +123,9 @@ The corresponding declarations are in the header file @file{stdlib.h}. @page @include stdlib/mbtowc.def +@page +@include stdlib/on_exit.def + @page @include stdlib/rand.def @@ -124,9 +138,15 @@ The corresponding declarations are in the header file @file{stdlib.h}. @page @include stdlib/strtol.def +@page +@include stdlib/strtoll.def + @page @include stdlib/strtoul.def +@page +@include stdlib/strtoull.def + @page @include stdlib/system.def diff --git a/newlib/libc/string/strings.tex b/newlib/libc/string/strings.tex index 7f9106ee9..4e1a2cd16 100644 --- a/newlib/libc/string/strings.tex +++ b/newlib/libc/string/strings.tex @@ -26,12 +26,14 @@ managing areas of memory. The corresponding declarations are in * strcpy:: Copy string * strcspn:: Count chars not in string * strerror:: Convert error number to string +* strerror_r:: Convert error number to string * strlen:: Character string length * strlwr:: Convert string to lower case * strncasecmp:: Compare strings ignoring case * strncat:: Concatenate strings * strncmp:: Character string compare * strncpy:: Counted copy string +* strnlen:: Character string length * strpbrk:: Find chars in string * strrchr:: Reverse search for character in string * strspn:: Find initial match @@ -102,6 +104,9 @@ managing areas of memory. The corresponding declarations are in @page @include string/strerror.def +@page +@include string/strerror_r.def + @page @include string/strlen.def @@ -120,6 +125,9 @@ managing areas of memory. The corresponding declarations are in @page @include string/strncpy.def +@page +@include string/strnlen.def + @page @include string/strpbrk.def diff --git a/newlib/libc/time/time.tex b/newlib/libc/time/time.tex index ace08b036..59018575c 100644 --- a/newlib/libc/time/time.tex +++ b/newlib/libc/time/time.tex @@ -56,6 +56,7 @@ not in effect, negative means no information about DST is available. * mktime:: Convert time to arithmetic representation * strftime:: Flexible calendar time formatter * time:: Get current calendar time (as single number) +* __tz_lock:: Lock time zone global variables * tzset:: Set timezone info @end menu @@ -86,5 +87,8 @@ not in effect, negative means no information about DST is available. @page @include time/time.def +@page +@include time/tzlock.def + @page @include time/tzset.def -- cgit v1.2.3