2004-09-16 Antony King <antony.king@st.com>

* 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.
This commit is contained in:
Jeff Johnston
2004-09-16 21:15:14 +00:00
parent 368ffbe3d8
commit 14613e5e74
7 changed files with 88 additions and 35 deletions

View File

@ -63,41 +63,6 @@ RETURNS
PORTABILITY
This function comes from BSD not ANSI or POSIX.
Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
<<lseek>>, <<read>>, <<sbrk>>, <<write>>.
FUNCTION
<<setlinebuf>>---specify line buffering for a file or stream
INDEX
setlinebuf
ANSI_SYNOPSIS
#include <stdio.h>
void setlinebuf(FILE *<[fp]>);
TRAD_SYNOPSIS
#include <stdio.h>
void setlinebuf(<[fp]>)
FILE *<[fp]>;
DESCRIPTION
<<setlinebuf>> 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 <<setlinebuf>> before performing any file operation
other than opening the file.
RETURNS
<<setlinebuf>> returns as per setvbuf.
PORTABILITY
This function comes from BSD not ANSI or POSIX.
Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
<<lseek>>, <<read>>, <<sbrk>>, <<write>>.
*/

View File

@ -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